From 151bbe6c4daa6063abe73d39427b5a76f2051c5a Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 15 Nov 2024 12:35:48 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- .../ElevenLabs/Generated/AllOf.1.Json.g.cs | 92 + src/libs/ElevenLabs/Generated/AllOf.1.g.cs | 91 +- .../ElevenLabs/Generated/AnyOf.2.Json.g.cs | 92 + src/libs/ElevenLabs/Generated/AnyOf.2.g.cs | 91 +- .../ElevenLabs/Generated/AnyOf.3.Json.g.cs | 92 + src/libs/ElevenLabs/Generated/AnyOf.3.g.cs | 264 +++ ...oIsolationClient.CreateAudioIsolation.g.cs | 40 +- ...tionClient.CreateAudioIsolationStream.g.cs | 40 +- .../ElevenLabs.AudioIsolationClient.g.cs | 5 + ...s.AudioNativeClient.CreateAudioNative.g.cs | 105 +- .../ElevenLabs.AudioNativeClient.g.cs | 5 + ....CreateConvaiAgentsByAgentIdAddSecret.g.cs | 245 +++ ...nvaiAgentsByAgentIdAddToKnowledgeBase.g.cs | 268 +++ ...ent.CreateConvaiAgentsByAgentIdAvatar.g.cs | 254 +++ ...onalAIClient.CreateConvaiAgentsCreate.g.cs | 237 +++ ...lAIClient.DeleteConvaiAgentsByAgentId.g.cs | 193 ++ ...nalAIClient.EditConvaiAgentsByAgentId.g.cs | 250 +++ ...onversationalAIClient.GetConvaiAgents.g.cs | 105 +- ...onalAIClient.GetConvaiAgentsByAgentId.g.cs | 193 ++ ...AgentIdKnowledgeBaseByDocumentationId.g.cs | 201 ++ ...Client.GetConvaiAgentsByAgentIdWidget.g.cs | 193 ++ ...ent.GetConvaiConversationGetSignedUrl.g.cs | 196 ++ ...tionalAIClient.GetConvaiConversations.g.cs | 224 +++ ...etConvaiConversationsByConversationId.g.cs | 193 ++ ...vaiConversationsByConversationIdAudio.g.cs | 114 ++ .../ElevenLabs.ConversationalAIClient.g.cs | 5 + ...levenLabs.DubbingClient.CreateDubbing.g.cs | 105 +- ...ubbingClient.DeleteDubbingByDubbingId.g.cs | 99 +- ...s.DubbingClient.GetDubbingByDubbingId.g.cs | 105 +- ...DubbingByDubbingIdAudioByLanguageCode.g.cs | 86 +- ...ngByDubbingIdTranscriptByLanguageCode.g.cs | 99 +- .../Generated/ElevenLabs.DubbingClient.g.cs | 5 + .../ElevenLabs.ElevenLabsClient.GetDocs.g.cs | 71 +- .../ElevenLabs.ElevenLabsClient.g.cs | 23 + .../Generated/ElevenLabs.Exceptions.g.cs | 90 + ...oIsolationClient.CreateAudioIsolation.g.cs | 6 +- ...tionClient.CreateAudioIsolationStream.g.cs | 6 +- .../ElevenLabs.IAudioIsolationClient.g.cs | 6 + ....IAudioNativeClient.CreateAudioNative.g.cs | 2 +- .../ElevenLabs.IAudioNativeClient.g.cs | 6 + ....CreateConvaiAgentsByAgentIdAddSecret.g.cs | 51 + ...nvaiAgentsByAgentIdAddToKnowledgeBase.g.cs | 55 + ...ent.CreateConvaiAgentsByAgentIdAvatar.g.cs | 51 + ...onalAIClient.CreateConvaiAgentsCreate.g.cs | 47 + ...lAIClient.DeleteConvaiAgentsByAgentId.g.cs | 24 + ...nalAIClient.EditConvaiAgentsByAgentId.g.cs | 55 + ...onversationalAIClient.GetConvaiAgents.g.cs | 2 +- ...onalAIClient.GetConvaiAgentsByAgentId.g.cs | 24 + ...AgentIdKnowledgeBaseByDocumentationId.g.cs | 28 + ...Client.GetConvaiAgentsByAgentIdWidget.g.cs | 24 + ...ent.GetConvaiConversationGetSignedUrl.g.cs | 24 + ...tionalAIClient.GetConvaiConversations.g.cs | 37 + ...etConvaiConversationsByConversationId.g.cs | 24 + ...vaiConversationsByConversationIdAudio.g.cs | 24 + .../ElevenLabs.IConversationalAIClient.g.cs | 6 + ...evenLabs.IDubbingClient.CreateDubbing.g.cs | 2 +- ...ubbingClient.DeleteDubbingByDubbingId.g.cs | 2 +- ....IDubbingClient.GetDubbingByDubbingId.g.cs | 2 +- ...DubbingByDubbingIdAudioByLanguageCode.g.cs | 2 +- ...ngByDubbingIdTranscriptByLanguageCode.g.cs | 2 +- .../Generated/ElevenLabs.IDubbingClient.g.cs | 6 + .../ElevenLabs.IElevenLabsClient.GetDocs.g.cs | 2 +- .../ElevenLabs.IElevenLabsClient.g.cs | 6 + .../ElevenLabs.IModelsClient.GetModels.g.cs | 2 +- .../Generated/ElevenLabs.IModelsClient.g.cs | 6 + ...abs.IProjectsClient.CreateProjectsAdd.g.cs | 6 +- ...jectsClient.CreateProjectsByProjectId.g.cs | 6 +- ....CreateProjectsByProjectIdChaptersAdd.g.cs | 2 +- ...ByProjectIdChaptersByChapterIdConvert.g.cs | 2 +- ...rIdSnapshotsByChapterSnapshotIdStream.g.cs | 6 +- ...ient.CreateProjectsByProjectIdConvert.g.cs | 2 +- ...IdSnapshotsByProjectSnapshotIdArchive.g.cs | 4 +- ...tIdSnapshotsByProjectSnapshotIdStream.g.cs | 6 +- ...jectIdUpdatePronunciationDictionaries.g.cs | 2 +- ...jectsClient.DeleteProjectsByProjectId.g.cs | 2 +- ...rojectsByProjectIdChaptersByChapterId.g.cs | 2 +- ...levenLabs.IProjectsClient.GetProjects.g.cs | 2 +- ...ProjectsClient.GetProjectsByProjectId.g.cs | 2 +- ...Client.GetProjectsByProjectIdChapters.g.cs | 2 +- ...rojectsByProjectIdChaptersByChapterId.g.cs | 2 +- ...ProjectIdChaptersByChapterIdSnapshots.g.cs | 2 +- ...lient.GetProjectsByProjectIdSnapshots.g.cs | 2 +- .../Generated/ElevenLabs.IProjectsClient.g.cs | 6 + ...ePronunciationDictionariesAddFromFile.g.cs | 2 +- ...esByPronunciationDictionaryIdAddRules.g.cs | 2 +- ...yPronunciationDictionaryIdRemoveRules.g.cs | 2 +- ...ryClient.GetPronunciationDictionaries.g.cs | 2 +- ...riesByDictionaryIdByVersionIdDownload.g.cs | 4 +- ...ctionariesByPronunciationDictionaryId.g.cs | 2 +- ...enLabs.IPronunciationDictionaryClient.g.cs | 6 + ...eleteVoicesByVoiceIdSamplesBySampleId.g.cs | 2 +- ...VoicesByVoiceIdSamplesBySampleIdAudio.g.cs | 4 +- .../Generated/ElevenLabs.ISamplesClient.g.cs | 6 + ...enerationClient.CreateSoundGeneration.g.cs | 6 +- .../ElevenLabs.ISoundGenerationClient.g.cs | 6 + ...chHistoryClient.CreateHistoryDownload.g.cs | 6 +- ...ryClient.DeleteHistoryByHistoryItemId.g.cs | 2 +- ...nLabs.ISpeechHistoryClient.GetHistory.g.cs | 2 +- ...storyClient.GetHistoryByHistoryItemId.g.cs | 2 +- ...Client.GetHistoryByHistoryItemIdAudio.g.cs | 4 +- .../ElevenLabs.ISpeechHistoryClient.g.cs | 6 + ...hClient.CreateSpeechToSpeechByVoiceId.g.cs | 6 +- ...t.CreateSpeechToSpeechByVoiceIdStream.g.cs | 6 +- .../ElevenLabs.ISpeechToSpeechClient.g.cs | 6 + ...echClient.CreateTextToSpeechByVoiceId.g.cs | 6 +- ...ent.CreateTextToSpeechByVoiceIdStream.g.cs | 6 +- ...ToSpeechByVoiceIdStreamWithTimestamps.g.cs | 6 +- ...teTextToSpeechByVoiceIdWithTimestamps.g.cs | 6 +- .../ElevenLabs.ITextToSpeechClient.g.cs | 6 + ...lient.CreateTextToVoiceCreatePreviews.g.cs | 2 +- ...eateTextToVoiceCreateVoiceFromPreview.g.cs | 2 +- .../ElevenLabs.ITextToVoiceClient.g.cs | 6 + ...s.IUsageClient.GetUsageCharacterStats.g.cs | 2 +- .../Generated/ElevenLabs.IUsageClient.g.cs | 6 + .../ElevenLabs.IUserClient.GetUser.g.cs | 2 +- ...nLabs.IUserClient.GetUserSubscription.g.cs | 2 +- .../Generated/ElevenLabs.IUserClient.g.cs | 6 + ...ient.CreateVoiceGenerationCreateVoice.g.cs | 2 +- ...nt.CreateVoiceGenerationGenerateVoice.g.cs | 6 +- ...oiceGenerationGenerateVoiceParameters.g.cs | 2 +- .../ElevenLabs.IVoiceGenerationClient.g.cs | 6 + ...abs.IVoicesClient.CreateSimilarVoices.g.cs | 2 +- ...venLabs.IVoicesClient.CreateVoicesAdd.g.cs | 2 +- ...reateVoicesAddByPublicUserIdByVoiceId.g.cs | 2 +- ...oicesClient.CreateVoicesByVoiceIdEdit.g.cs | 2 +- ...ent.CreateVoicesByVoiceIdSettingsEdit.g.cs | 2 +- ...s.IVoicesClient.DeleteVoicesByVoiceId.g.cs | 2 +- ...Labs.IVoicesClient.GetProfileByHandle.g.cs | 2 +- ...venLabs.IVoicesClient.GetSharedVoices.g.cs | 2 +- .../ElevenLabs.IVoicesClient.GetVoices.g.cs | 2 +- ...Labs.IVoicesClient.GetVoicesByVoiceId.g.cs | 2 +- ...icesClient.GetVoicesByVoiceIdSettings.g.cs | 2 +- ...VoicesClient.GetVoicesSettingsDefault.g.cs | 2 +- .../Generated/ElevenLabs.IVoicesClient.g.cs | 6 + ...spaceClient.CreateWorkspaceInvitesAdd.g.cs | 2 +- ...orkspaceClient.CreateWorkspaceMembers.g.cs | 2 +- ...orkspaceClient.DeleteWorkspaceInvites.g.cs | 2 +- ...eClient.GetAdminN8enylacgdSsoProvider.g.cs | 2 +- .../ElevenLabs.IWorkspaceClient.g.cs | 6 + ...s.Models.ASRConversationalConfig.Json.g.cs | 92 + ...enLabs.Models.ASRConversationalConfig.g.cs | 77 + .../ElevenLabs.Models.ASRInputFormat.g.cs | 63 + .../ElevenLabs.Models.ASRProvider.g.cs | 45 + .../ElevenLabs.Models.ASRQuality.g.cs | 45 + ...dels.AddAgentSecretResponseModel.Json.g.cs | 92 + ...bs.Models.AddAgentSecretResponseModel.g.cs | 52 + ...s.Models.AddChapterResponseModel.Json.g.cs | 92 + ...enLabs.Models.AddChapterResponseModel.g.cs | 85 +- ...ls.AddKnowledgeBaseResponseModel.Json.g.cs | 92 + ....Models.AddKnowledgeBaseResponseModel.g.cs | 42 + ...s.Models.AddProjectResponseModel.Json.g.cs | 92 + ...enLabs.Models.AddProjectResponseModel.g.cs | 85 +- ...unciationDictionaryResponseModel.Json.g.cs | 92 + ...dPronunciationDictionaryResponseModel.g.cs | 100 +- ...tionDictionaryRulesResponseModel.Json.g.cs | 92 + ...unciationDictionaryRulesResponseModel.g.cs | 88 +- ....Models.AddVoiceIVCResponseModel.Json.g.cs | 92 + ...nLabs.Models.AddVoiceIVCResponseModel.g.cs | 88 +- ...abs.Models.AddVoiceResponseModel.Json.g.cs | 92 + ...evenLabs.Models.AddVoiceResponseModel.g.cs | 85 +- .../ElevenLabs.Models.AgentConfig.Json.g.cs | 92 + .../ElevenLabs.Models.AgentConfig.g.cs | 70 + ...odels.AgentMetadataResponseModel.Json.g.cs | 92 + ...abs.Models.AgentMetadataResponseModel.g.cs | 42 + ...abs.Models.AgentPlatformSettings.Json.g.cs | 92 + ...evenLabs.Models.AgentPlatformSettings.g.cs | 72 + ...ntPlatformSettingsDataCollection.Json.g.cs | 92 + ...s.AgentPlatformSettingsDataCollection.g.cs | 27 + ...Models.AgentSummaryResponseModel.Json.g.cs | 92 + ...Labs.Models.AgentSummaryResponseModel.g.cs | 91 +- ...NativeCreateProjectResponseModel.Json.g.cs | 92 + ...AudioNativeCreateProjectResponseModel.g.cs | 91 +- .../ElevenLabs.Models.AuthSettings.Json.g.cs | 92 + .../ElevenLabs.Models.AuthSettings.g.cs | 43 + ...ationDictionariesAddFromFilePost.Json.g.cs | 92 + ...nunciationDictionariesAddFromFilePost.g.cs | 107 +- ...ConvaiAgentsAgentIdAddSecretPost.Json.g.cs | 92 + ...llsV1ConvaiAgentsAgentIdAddSecretPost.g.cs | 56 + ...ProjectsProjectIdChaptersAddPost.Json.g.cs | 92 + ...ectV1ProjectsProjectIdChaptersAddPost.g.cs | 92 +- ....BodyAddProjectV1ProjectsAddPost.Json.g.cs | 92 + ...odels.BodyAddProjectV1ProjectsAddPost.g.cs | 211 ++- ...nciationDictionaryIdAddRulesPost.Json.g.cs | 92 + ...PronunciationDictionaryIdAddRulesPost.g.cs | 89 +- ...VoicesAddPublicUserIdVoiceIdPost.Json.g.cs | 92 + ...iceV1VoicesAddPublicUserIdVoiceIdPost.g.cs | 87 +- ...ntsAgentIdAddToKnowledgeBasePost.Json.g.cs | 92 + ...aiAgentsAgentIdAddToKnowledgeBasePost.g.cs | 65 + ...dels.BodyAddVoiceV1VoicesAddPost.Json.g.cs | 92 + ...bs.Models.BodyAddVoiceV1VoicesAddPost.g.cs | 108 +- ...StreamV1AudioIsolationStreamPost.Json.g.cs | 92 + ...ationStreamV1AudioIsolationStreamPost.g.cs | 92 +- ...dioIsolationV1AudioIsolationPost.Json.g.cs | 92 + ...odyAudioIsolationV1AudioIsolationPost.g.cs | 92 +- ...oVoiceCreateVoiceFromPreviewPost.Json.g.cs | 92 + ...TextToVoiceCreateVoiceFromPreviewPost.g.cs | 113 +- ...CreateVoiceFromPreviewPostLabels.Json.g.cs | 92 + ...VoiceCreateVoiceFromPreviewPostLabels.g.cs | 86 +- ...V1VoiceGenerationCreateVoicePost.Json.g.cs | 92 + ...VoiceV1VoiceGenerationCreateVoicePost.g.cs | 113 +- ...eGenerationCreateVoicePostLabels.Json.g.cs | 92 + ...1VoiceGenerationCreateVoicePostLabels.g.cs | 86 +- ...ateAgentV1ConvaiAgentsCreatePost.Json.g.cs | 92 + ...dyCreateAgentV1ConvaiAgentsCreatePost.g.cs | 66 + ...eEnabledProjectV1AudioNativePost.Json.g.cs | 92 + ...NativeEnabledProjectV1AudioNativePost.g.cs | 150 +- ...vitationV1WorkspaceInvitesDelete.Json.g.cs | 92 + ...ingInvitationV1WorkspaceInvitesDelete.g.cs | 87 +- ...istoryItemsV1HistoryDownloadPost.Json.g.cs | 92 + ...loadHistoryItemsV1HistoryDownloadPost.g.cs | 92 +- ...AVideoOrAnAudioFileV1DubbingPost.Json.g.cs | 92 + ...dyDubAVideoOrAnAudioFileV1DubbingPost.g.cs | 152 +- ...ojectInfoV1ProjectsProjectIdPost.Json.g.cs | 92 + ...sicProjectInfoV1ProjectsProjectIdPost.g.cs | 129 +- ...EditVoiceV1VoicesVoiceIdEditPost.Json.g.cs | 92 + ....BodyEditVoiceV1VoicesVoiceIdEditPost.g.cs | 108 +- ...VoiceGenerationGenerateVoicePost.Json.g.cs | 92 + ...iceV1VoiceGenerationGenerateVoicePost.g.cs | 109 +- ...nV1TextToVoiceCreatePreviewsPost.Json.g.cs | 92 + ...iptionV1TextToVoiceCreatePreviewsPost.g.cs | 96 +- ...LibraryVoicesV1SimilarVoicesPost.Json.g.cs | 92 + ...milarLibraryVoicesV1SimilarVoicesPost.g.cs | 98 +- ...iteUserV1WorkspaceInvitesAddPost.Json.g.cs | 92 + ...dyInviteUserV1WorkspaceInvitesAddPost.g.cs | 87 +- ...ttingsV1ConvaiAgentsAgentIdPatch.Json.g.cs | 92 + ...entSettingsV1ConvaiAgentsAgentIdPatch.g.cs | 65 + ...tsAgentIdPatchConversationConfig.Json.g.cs | 92 + ...iAgentsAgentIdPatchConversationConfig.g.cs | 27 + ...entsAgentIdPatchPlatformSettings.Json.g.cs | 92 + ...vaiAgentsAgentIdPatchPlatformSettings.g.cs | 27 + ...rV1ConvaiAgentsAgentIdAvatarPost.Json.g.cs | 92 + ...AvatarV1ConvaiAgentsAgentIdAvatarPost.g.cs | 56 + ...ationDictionaryIdRemoveRulesPost.Json.g.cs | 92 + ...nunciationDictionaryIdRemoveRulesPost.g.cs | 87 +- ...dGenerationV1SoundGenerationPost.Json.g.cs | 92 + ...ySoundGenerationV1SoundGenerationPost.g.cs | 98 +- ...1SpeechToSpeechVoiceIdStreamPost.Json.g.cs | 92 + ...mingV1SpeechToSpeechVoiceIdStreamPost.g.cs | 114 +- ...peechV1SpeechToSpeechVoiceIdPost.Json.g.cs | 92 + ...chToSpeechV1SpeechToSpeechVoiceIdPost.g.cs | 114 +- ...shotsChapterSnapshotIdStreamPost.Json.g.cs | 92 + ...dSnapshotsChapterSnapshotIdStreamPost.g.cs | 88 +- ...shotsProjectSnapshotIdStreamPost.Json.g.cs | 92 + ...dSnapshotsProjectSnapshotIdStreamPost.g.cs | 88 +- ...gV1TextToSpeechVoiceIdStreamPost.Json.g.cs | 92 + ...eamingV1TextToSpeechVoiceIdStreamPost.g.cs | 139 +- ...hVoiceIdStreamWithTimestampsPost.Json.g.cs | 92 + ...SpeechVoiceIdStreamWithTimestampsPost.g.cs | 139 +- ...oSpeechV1TextToSpeechVoiceIdPost.Json.g.cs | 92 + ...TextToSpeechV1TextToSpeechVoiceIdPost.g.cs | 139 +- ...oSpeechVoiceIdWithTimestampsPost.Json.g.cs | 92 + ...TextToSpeechVoiceIdWithTimestampsPost.g.cs | 139 +- ...dateMemberV1WorkspaceMembersPost.Json.g.cs | 92 + ...odyUpdateMemberV1WorkspaceMembersPost.g.cs | 97 +- ...atePronunciationDictionariesPost.Json.g.cs | 92 + ...IdUpdatePronunciationDictionariesPost.g.cs | 87 +- ...Labs.Models.ChapterResponseModel.Json.g.cs | 92 + ...levenLabs.Models.ChapterResponseModel.g.cs | 103 +- ...els.ChapterSnapshotResponseModel.Json.g.cs | 92 + ...s.Models.ChapterSnapshotResponseModel.g.cs | 97 +- ...ls.ChapterSnapshotsResponseModel.Json.g.cs | 92 + ....Models.ChapterSnapshotsResponseModel.g.cs | 85 +- ...s.ChapterStatisticsResponseModel.Json.g.cs | 92 + ...Models.ChapterStatisticsResponseModel.g.cs | 94 +- .../ElevenLabs.Models.ClientEvent.g.cs | 99 + ...nLabs.Models.ConvAISecretLocator.Json.g.cs | 92 + ...ElevenLabs.Models.ConvAISecretLocator.g.cs | 42 + ...enLabs.Models.ConversationConfig.Json.g.cs | 92 + .../ElevenLabs.Models.ConversationConfig.g.cs | 52 + ...sationHistoryAnalysisCommonModel.Json.g.cs | 92 + ...onversationHistoryAnalysisCommonModel.g.cs | 73 + ...CommonModelDataCollectionResults.Json.g.cs | 92 + ...lysisCommonModelDataCollectionResults.g.cs | 27 + ...onModelEvaluationCriteriaResults.Json.g.cs | 92 + ...sCommonModelEvaluationCriteriaResults.g.cs | 27 + ...luationCriteriaResultCommonModel.Json.g.cs | 92 + ...ryEvaluationCriteriaResultCommonModel.g.cs | 65 + ...sationHistoryMetadataCommonModel.Json.g.cs | 92 + ...onversationHistoryMetadataCommonModel.g.cs | 61 + ...tionHistoryTranscriptCommonModel.Json.g.cs | 92 + ...versationHistoryTranscriptCommonModel.g.cs | 63 + ...ationHistoryTranscriptCommonModelRole.g.cs | 51 + ...nversationSignedUrlResponseModel.Json.g.cs | 92 + ...ls.ConversationSignedUrlResponseModel.g.cs | 42 + ...ConversationSummaryResponseModel.Json.g.cs | 92 + ...dels.ConversationSummaryResponseModel.g.cs | 115 ++ ...onversationSummaryResponseModelStatus.g.cs | 51 + ...Labs.Models.ConversationalConfig.Json.g.cs | 92 + ...levenLabs.Models.ConversationalConfig.g.cs | 77 + ...tersChapterIdConvertPostResponse.Json.g.cs | 92 + ...dChaptersChapterIdConvertPostResponse.g.cs | 86 +- ...ectsProjectIdConvertPostResponse.Json.g.cs | 92 + ...1ProjectsProjectIdConvertPostResponse.g.cs | 86 +- ....Models.CreateAgentResponseModel.Json.g.cs | 92 + ...nLabs.Models.CreateAgentResponseModel.g.cs | 42 + ....DataCollectionResultCommonModel.Json.g.cs | 92 + ...odels.DataCollectionResultCommonModel.g.cs | 70 + ...CollectionResultCommonModelValue.Json.g.cs | 92 + ....DataCollectionResultCommonModelValue.g.cs | 27 + ...onvaiAgentsAgentIdDeleteResponse.Json.g.cs | 92 + ...ntV1ConvaiAgentsAgentIdDeleteResponse.g.cs | 27 + ...dChaptersChapterIdDeleteResponse.Json.g.cs | 92 + ...jectIdChaptersChapterIdDeleteResponse.g.cs | 86 +- ...V1DubbingDubbingIdDeleteResponse.Json.g.cs | 92 + ...ojectV1DubbingDubbingIdDeleteResponse.g.cs | 86 +- ...V1WorkspaceInvitesDeleteResponse.Json.g.cs | 92 + ...ationV1WorkspaceInvitesDeleteResponse.g.cs | 86 +- ...storyHistoryItemIdDeleteResponse.Json.g.cs | 92 + ...mV1HistoryHistoryItemIdDeleteResponse.g.cs | 86 +- ...1ProjectsProjectIdDeleteResponse.Json.g.cs | 92 + ...jectV1ProjectsProjectIdDeleteResponse.g.cs | 86 +- ...eIdSamplesSampleIdDeleteResponse.Json.g.cs | 92 + ...sVoiceIdSamplesSampleIdDeleteResponse.g.cs | 86 +- ...iceV1VoicesVoiceIdDeleteResponse.Json.g.cs | 92 + ...eteVoiceV1VoicesVoiceIdDeleteResponse.g.cs | 86 +- ...bs.Models.DoDubbingResponseModel.Json.g.cs | 92 + ...venLabs.Models.DoDubbingResponseModel.g.cs | 88 +- ...s.Models.DubbingMetadataResponse.Json.g.cs | 92 + ...enLabs.Models.DubbingMetadataResponse.g.cs | 97 +- ....Models.EditProjectResponseModel.Json.g.cs | 92 + ...nLabs.Models.EditProjectResponseModel.g.cs | 85 +- ...sVoiceIdSettingsEditPostResponse.Json.g.cs | 92 + ...VoicesVoiceIdSettingsEditPostResponse.g.cs | 86 +- ...eV1VoicesVoiceIdEditPostResponse.Json.g.cs | 92 + ...tVoiceV1VoicesVoiceIdEditPostResponse.g.cs | 86 +- .../ElevenLabs.Models.EmbedConfig.Json.g.cs | 92 + .../ElevenLabs.Models.EmbedConfig.g.cs | 203 +++ .../ElevenLabs.Models.EmbedVariant.g.cs | 57 + ...enLabs.Models.EvaluationSettings.Json.g.cs | 92 + .../ElevenLabs.Models.EvaluationSettings.g.cs | 42 + ...enLabs.Models.EvaluationSuccessResult.g.cs | 57 + ...xtendedSubscriptionResponseModel.Json.g.cs | 92 + ...els.ExtendedSubscriptionResponseModel.g.cs | 141 +- ...abs.Models.FeedbackResponseModel.Json.g.cs | 92 + ...evenLabs.Models.FeedbackResponseModel.g.cs | 108 +- ...s.Models.FineTuningResponseModel.Json.g.cs | 92 + ...enLabs.Models.FineTuningResponseModel.g.cs | 126 +- ...s.FineTuningResponseModelMessage.Json.g.cs | 92 + ...Models.FineTuningResponseModelMessage.g.cs | 86 +- ....FineTuningResponseModelProgress.Json.g.cs | 92 + ...odels.FineTuningResponseModelProgress.g.cs | 86 +- ...els.FineTuningResponseModelState.Json.g.cs | 92 + ...s.Models.FineTuningResponseModelState.g.cs | 86 +- ...odels.GetAgentEmbedResponseModel.Json.g.cs | 92 + ...abs.Models.GetAgentEmbedResponseModel.g.cs | 52 + ...abs.Models.GetAgentResponseModel.Json.g.cs | 92 + ...evenLabs.Models.GetAgentResponseModel.g.cs | 81 + ...odels.GetAgentsPageResponseModel.Json.g.cs | 92 + ...abs.Models.GetAgentsPageResponseModel.g.cs | 91 +- ....Models.GetChaptersResponseModel.Json.g.cs | 92 + ...nLabs.Models.GetChaptersResponseModel.g.cs | 85 +- ...els.GetConversationResponseModel.Json.g.cs | 92 + ...s.Models.GetConversationResponseModel.g.cs | 92 + ...ls.GetConversationResponseModelStatus.g.cs | 51 + ...etConversationsPageResponseModel.Json.g.cs | 92 + ...els.GetConversationsPageResponseModel.g.cs | 61 + ...els.GetKnowledgeBaseReponseModel.Json.g.cs | 92 + ...s.Models.GetKnowledgeBaseReponseModel.g.cs | 63 + ...dels.GetKnowledgeBaseReponseModelType.g.cs | 51 + ...ls.GetLibraryVoicesResponseModel.Json.g.cs | 92 + ....Models.GetLibraryVoicesResponseModel.g.cs | 91 +- ....Models.GetProjectsResponseModel.Json.g.cs | 92 + ...nLabs.Models.GetProjectsResponseModel.g.cs | 85 +- ...ictionariesMetadataResponseModel.Json.g.cs | 92 + ...tionDictionariesMetadataResponseModel.g.cs | 91 +- ...nDictionaryMetadataResponseModel.Json.g.cs | 92 + ...iationDictionaryMetadataResponseModel.g.cs | 100 +- ...ls.GetSpeechHistoryResponseModel.Json.g.cs | 92 + ....Models.GetSpeechHistoryResponseModel.g.cs | 91 +- ...ranscriptLanguageCodeGetResponse.Json.g.cs | 92 + ...ngIdTranscriptLanguageCodeGetResponse.g.cs | 86 +- ...bs.Models.GetVoicesResponseModel.Json.g.cs | 92 + ...venLabs.Models.GetVoicesResponseModel.g.cs | 85 +- ...nLabs.Models.HTTPValidationError.Json.g.cs | 92 + ...ElevenLabs.Models.HTTPValidationError.g.cs | 85 +- ...ls.HistoryAlignmentResponseModel.Json.g.cs | 92 + ....Models.HistoryAlignmentResponseModel.g.cs | 91 +- ...s.HistoryAlignmentsResponseModel.Json.g.cs | 92 + ...Models.HistoryAlignmentsResponseModel.g.cs | 88 +- .../ElevenLabs.Models.ImageAvatar.Json.g.cs | 92 + .../ElevenLabs.Models.ImageAvatar.g.cs | 53 + .../ElevenLabs.Models.ImageAvatarType.g.cs | 45 + ...1WorkspaceInvitesAddPostResponse.Json.g.cs | 92 + ...UserV1WorkspaceInvitesAddPostResponse.g.cs | 86 +- ...Labs.Models.InvoiceResponseModel.Json.g.cs | 92 + ...levenLabs.Models.InvoiceResponseModel.g.cs | 88 +- .../ElevenLabs.Models.JsonLiteralType.g.cs | 63 + ...enLabs.Models.JsonSchemaProperty.Json.g.cs | 92 + .../ElevenLabs.Models.JsonSchemaProperty.g.cs | 45 + ...venLabs.Models.JsonSchemaPropertyType.g.cs | 51 + ...Labs.Models.KnowledgeBaseLocator.Json.g.cs | 92 + ...levenLabs.Models.KnowledgeBaseLocator.g.cs | 63 + ...nLabs.Models.KnowledgeBaseLocatorType.g.cs | 51 + .../Generated/ElevenLabs.Models.LLM.g.cs | 99 + ...abs.Models.LanguageResponseModel.Json.g.cs | 92 + ...evenLabs.Models.LanguageResponseModel.g.cs | 88 +- ...Models.LibraryVoiceResponseModel.Json.g.cs | 92 + ...Labs.Models.LibraryVoiceResponseModel.g.cs | 165 +- ...Models.LiteralJsonSchemaProperty.Json.g.cs | 92 + ...Labs.Models.LiteralJsonSchemaProperty.g.cs | 55 + ...ualVerificationFileResponseModel.Json.g.cs | 92 + ...s.ManualVerificationFileResponseModel.g.cs | 97 +- ....ManualVerificationResponseModel.Json.g.cs | 92 + ...odels.ManualVerificationResponseModel.g.cs | 91 +- ...s.Models.ModelRatesResponseModel.Json.g.cs | 92 + ...enLabs.Models.ModelRatesResponseModel.g.cs | 85 +- ...enLabs.Models.ModelResponseModel.Json.g.cs | 92 + .../ElevenLabs.Models.ModelResponseModel.g.cs | 135 +- ....Models.ObjectJsonSchemaProperty.Json.g.cs | 92 + ...nLabs.Models.ObjectJsonSchemaProperty.g.cs | 71 + ...jectJsonSchemaPropertyProperties.Json.g.cs | 92 + ...ls.ObjectJsonSchemaPropertyProperties.g.cs | 27 + ...s.Models.ObjectJsonSchemaPropertyType.g.cs | 45 + .../ElevenLabs.Models.OrbAvatar.Json.g.cs | 92 + .../ElevenLabs.Models.OrbAvatar.g.cs | 66 + .../ElevenLabs.Models.OrbAvatarType.g.cs | 45 + ...els.PostAgentAvatarResponseModel.Json.g.cs | 92 + ...s.Models.PostAgentAvatarResponseModel.g.cs | 51 + ....Models.ProfilePageResponseModel.Json.g.cs | 92 + ...nLabs.Models.ProfilePageResponseModel.g.cs | 97 +- ...els.ProjectExtendedResponseModel.Json.g.cs | 92 + ...s.Models.ProjectExtendedResponseModel.g.cs | 162 +- ...xtendedResponseModelExperimental.Json.g.cs | 92 + ...jectExtendedResponseModelExperimental.g.cs | 86 +- ...Labs.Models.ProjectResponseModel.Json.g.cs | 92 + ...levenLabs.Models.ProjectResponseModel.g.cs | 150 +- ...els.ProjectSnapshotResponseModel.Json.g.cs | 92 + ...s.Models.ProjectSnapshotResponseModel.g.cs | 100 +- ...ojectSnapshotUploadResponseModel.Json.g.cs | 92 + ...ls.ProjectSnapshotUploadResponseModel.g.cs | 88 +- ...ls.ProjectSnapshotsResponseModel.Json.g.cs | 92 + ....Models.ProjectSnapshotsResponseModel.g.cs | 85 +- .../ElevenLabs.Models.PromptAgent.Json.g.cs | 92 + .../ElevenLabs.Models.PromptAgent.g.cs | 94 + ...abs.Models.PromptAgentToolConfig.Json.g.cs | 92 + ...evenLabs.Models.PromptAgentToolConfig.g.cs | 86 + ...Labs.Models.PromptAgentToolConfigType.g.cs | 45 + ....Models.PromptEvaluationCriteria.Json.g.cs | 92 + ...nLabs.Models.PromptEvaluationCriteria.g.cs | 73 + ...s.Models.PromptEvaluationCriteriaType.g.cs | 45 + ...nDictionaryAliasRuleRequestModel.Json.g.cs | 92 + ...iationDictionaryAliasRuleRequestModel.g.cs | 91 +- ...ictionaryPhonemeRuleRequestModel.Json.g.cs | 92 + ...tionDictionaryPhonemeRuleRequestModel.g.cs | 94 +- ...nDictionaryVersionLocatorDBModel.Json.g.cs | 92 + ...iationDictionaryVersionLocatorDBModel.g.cs | 88 +- ...onDictionaryVersionResponseModel.Json.g.cs | 92 + ...ciationDictionaryVersionResponseModel.g.cs | 100 +- ...abs.Models.QueryParamsJsonSchema.Json.g.cs | 92 + ...evenLabs.Models.QueryParamsJsonSchema.g.cs | 51 + ....QueryParamsJsonSchemaProperties.Json.g.cs | 92 + ...odels.QueryParamsJsonSchemaProperties.g.cs | 27 + ...bs.Models.RecordingResponseModel.Json.g.cs | 92 + ...venLabs.Models.RecordingResponseModel.g.cs | 97 +- ...edirectToMintlifyDocsGetResponse.Json.g.cs | 92 + ...els.RedirectToMintlifyDocsGetResponse.g.cs | 86 +- ...tionDictionaryRulesResponseModel.Json.g.cs | 92 + ...unciationDictionaryRulesResponseModel.g.cs | 88 +- ...nLabs.Models.SampleResponseModel.Json.g.cs | 92 + ...ElevenLabs.Models.SampleResponseModel.g.cs | 97 +- .../ElevenLabs.Models.ServerAgent.Json.g.cs | 92 + .../ElevenLabs.Models.ServerAgent.g.cs | 93 + .../ElevenLabs.Models.ServerEvent.g.cs | 57 + ...s.SpeechHistoryItemResponseModel.Json.g.cs | 92 + ...Models.SpeechHistoryItemResponseModel.g.cs | 135 +- ...HistoryItemResponseModelSettings.Json.g.cs | 92 + ...peechHistoryItemResponseModelSettings.g.cs | 86 +- ....Models.SsoProviderResponseModel.Json.g.cs | 92 + ...nLabs.Models.SsoProviderResponseModel.g.cs | 91 +- ...Models.SubscriptionResponseModel.Json.g.cs | 92 + ...Labs.Models.SubscriptionResponseModel.g.cs | 135 +- ...s.Models.TTSConversationalConfig.Json.g.cs | 92 + ...enLabs.Models.TTSConversationalConfig.g.cs | 100 + ...venLabs.Models.TTSConversationalModel.g.cs | 51 + .../ElevenLabs.Models.TTSOutputFormat.g.cs | 63 + ...venLabs.Models.ToolWebhookConfig.Json.g.cs | 92 + .../ElevenLabs.Models.ToolWebhookConfig.g.cs | 90 + ...enLabs.Models.ToolWebhookConfigMethod.g.cs | 63 + ...oolWebhookConfigPathParamsSchema.Json.g.cs | 92 + ...els.ToolWebhookConfigPathParamsSchema.g.cs | 27 + ....ToolWebhookConfigRequestHeaders.Json.g.cs | 92 + ...odels.ToolWebhookConfigRequestHeaders.g.cs | 27 + .../ElevenLabs.Models.TurnConfig.Json.g.cs | 92 + .../ElevenLabs.Models.TurnConfig.g.cs | 43 + .../ElevenLabs.Models.URLAvatar.Json.g.cs | 92 + .../ElevenLabs.Models.URLAvatar.g.cs | 53 + .../ElevenLabs.Models.URLAvatarType.g.cs | 45 + ...erV1WorkspaceMembersPostResponse.Json.g.cs | 92 + ...eMemberV1WorkspaceMembersPostResponse.g.cs | 86 +- ...nciationDictionariesPostResponse.Json.g.cs | 92 + ...PronunciationDictionariesPostResponse.g.cs | 86 +- ...els.UsageCharactersResponseModel.Json.g.cs | 92 + ...s.Models.UsageCharactersResponseModel.g.cs | 88 +- ...sageCharactersResponseModelUsage.Json.g.cs | 92 + ...els.UsageCharactersResponseModelUsage.g.cs | 86 +- ...venLabs.Models.UserResponseModel.Json.g.cs | 92 + .../ElevenLabs.Models.UserResponseModel.g.cs | 111 +- ...levenLabs.Models.ValidationError.Json.g.cs | 92 + .../ElevenLabs.Models.ValidationError.g.cs | 91 +- ...VerificationAttemptResponseModel.Json.g.cs | 92 + ...dels.VerificationAttemptResponseModel.g.cs | 100 +- ...tionParameterOptionResponseModel.Json.g.cs | 92 + ...enerationParameterOptionResponseModel.g.cs | 88 +- ...GenerationParameterResponseModel.Json.g.cs | 92 + ...VoiceGenerationParameterResponseModel.g.cs | 103 +- ...Models.VoicePreviewResponseModel.Json.g.cs | 92 + ...Labs.Models.VoicePreviewResponseModel.g.cs | 93 +- ...odels.VoicePreviewsResponseModel.Json.g.cs | 92 + ...abs.Models.VoicePreviewsResponseModel.g.cs | 85 +- ...enLabs.Models.VoiceResponseModel.Json.g.cs | 92 + .../ElevenLabs.Models.VoiceResponseModel.g.cs | 142 +- ....Models.VoiceResponseModelLabels.Json.g.cs | 92 + ...nLabs.Models.VoiceResponseModelLabels.g.cs | 86 +- ...odels.VoiceSettingsResponseModel.Json.g.cs | 92 + ...abs.Models.VoiceSettingsResponseModel.g.cs | 98 +- ...ringModerationCheckResponseModel.Json.g.cs | 92 + ...ceSharingModerationCheckResponseModel.g.cs | 111 +- ...Models.VoiceSharingResponseModel.Json.g.cs | 92 + ...Labs.Models.VoiceSharingResponseModel.g.cs | 177 +- ....VoiceSharingResponseModelLabels.Json.g.cs | 92 + ...odels.VoiceSharingResponseModelLabels.g.cs | 86 +- ...s.VoiceVerificationResponseModel.Json.g.cs | 92 + ...Models.VoiceVerificationResponseModel.g.cs | 100 +- .../ElevenLabs.ModelsClient.GetModels.g.cs | 105 +- .../Generated/ElevenLabs.ModelsClient.g.cs | 5 + .../Generated/ElevenLabs.PathBuilder.g.cs | 14 +- .../Generated/ElevenLabs.Polyfills.g.cs | 2 +- ...Labs.ProjectsClient.CreateProjectsAdd.g.cs | 116 +- ...jectsClient.CreateProjectsByProjectId.g.cs | 110 +- ....CreateProjectsByProjectIdChaptersAdd.g.cs | 105 +- ...ByProjectIdChaptersByChapterIdConvert.g.cs | 99 +- ...rIdSnapshotsByChapterSnapshotIdStream.g.cs | 40 +- ...ient.CreateProjectsByProjectIdConvert.g.cs | 99 +- ...IdSnapshotsByProjectSnapshotIdArchive.g.cs | 36 +- ...tIdSnapshotsByProjectSnapshotIdStream.g.cs | 40 +- ...jectIdUpdatePronunciationDictionaries.g.cs | 99 +- ...jectsClient.DeleteProjectsByProjectId.g.cs | 99 +- ...rojectsByProjectIdChaptersByChapterId.g.cs | 99 +- ...ElevenLabs.ProjectsClient.GetProjects.g.cs | 105 +- ...ProjectsClient.GetProjectsByProjectId.g.cs | 105 +- ...Client.GetProjectsByProjectIdChapters.g.cs | 105 +- ...rojectsByProjectIdChaptersByChapterId.g.cs | 105 +- ...ProjectIdChaptersByChapterIdSnapshots.g.cs | 105 +- ...lient.GetProjectsByProjectIdSnapshots.g.cs | 105 +- .../Generated/ElevenLabs.ProjectsClient.g.cs | 5 + ...ePronunciationDictionariesAddFromFile.g.cs | 105 +- ...esByPronunciationDictionaryIdAddRules.g.cs | 105 +- ...yPronunciationDictionaryIdRemoveRules.g.cs | 105 +- ...ryClient.GetPronunciationDictionaries.g.cs | 105 +- ...riesByDictionaryIdByVersionIdDownload.g.cs | 36 +- ...ctionariesByPronunciationDictionaryId.g.cs | 105 +- ...venLabs.PronunciationDictionaryClient.g.cs | 5 + ...eleteVoicesByVoiceIdSamplesBySampleId.g.cs | 99 +- ...VoicesByVoiceIdSamplesBySampleIdAudio.g.cs | 36 +- .../Generated/ElevenLabs.SamplesClient.g.cs | 5 + ...enerationClient.CreateSoundGeneration.g.cs | 40 +- .../ElevenLabs.SoundGenerationClient.g.cs | 5 + ...chHistoryClient.CreateHistoryDownload.g.cs | 40 +- ...ryClient.DeleteHistoryByHistoryItemId.g.cs | 99 +- ...enLabs.SpeechHistoryClient.GetHistory.g.cs | 105 +- ...storyClient.GetHistoryByHistoryItemId.g.cs | 105 +- ...Client.GetHistoryByHistoryItemIdAudio.g.cs | 36 +- .../ElevenLabs.SpeechHistoryClient.g.cs | 5 + ...hClient.CreateSpeechToSpeechByVoiceId.g.cs | 40 +- ...t.CreateSpeechToSpeechByVoiceIdStream.g.cs | 40 +- .../ElevenLabs.SpeechToSpeechClient.g.cs | 5 + ...echClient.CreateTextToSpeechByVoiceId.g.cs | 40 +- ...ent.CreateTextToSpeechByVoiceIdStream.g.cs | 40 +- ...ToSpeechByVoiceIdStreamWithTimestamps.g.cs | 40 +- ...teTextToSpeechByVoiceIdWithTimestamps.g.cs | 40 +- .../ElevenLabs.TextToSpeechClient.g.cs | 5 + ...lient.CreateTextToVoiceCreatePreviews.g.cs | 105 +- ...eateTextToVoiceCreateVoiceFromPreview.g.cs | 105 +- .../ElevenLabs.TextToVoiceClient.g.cs | 5 + ...bs.UsageClient.GetUsageCharacterStats.g.cs | 105 +- .../Generated/ElevenLabs.UsageClient.g.cs | 5 + .../ElevenLabs.UserClient.GetUser.g.cs | 105 +- ...enLabs.UserClient.GetUserSubscription.g.cs | 105 +- .../Generated/ElevenLabs.UserClient.g.cs | 5 + ...ient.CreateVoiceGenerationCreateVoice.g.cs | 105 +- ...nt.CreateVoiceGenerationGenerateVoice.g.cs | 40 +- ...oiceGenerationGenerateVoiceParameters.g.cs | 77 +- .../ElevenLabs.VoiceGenerationClient.g.cs | 5 + ...Labs.VoicesClient.CreateSimilarVoices.g.cs | 105 +- ...evenLabs.VoicesClient.CreateVoicesAdd.g.cs | 105 +- ...reateVoicesAddByPublicUserIdByVoiceId.g.cs | 105 +- ...oicesClient.CreateVoicesByVoiceIdEdit.g.cs | 99 +- ...ent.CreateVoicesByVoiceIdSettingsEdit.g.cs | 99 +- ...bs.VoicesClient.DeleteVoicesByVoiceId.g.cs | 99 +- ...nLabs.VoicesClient.GetProfileByHandle.g.cs | 105 +- ...evenLabs.VoicesClient.GetSharedVoices.g.cs | 105 +- .../ElevenLabs.VoicesClient.GetVoices.g.cs | 105 +- ...nLabs.VoicesClient.GetVoicesByVoiceId.g.cs | 105 +- ...icesClient.GetVoicesByVoiceIdSettings.g.cs | 105 +- ...VoicesClient.GetVoicesSettingsDefault.g.cs | 77 +- .../Generated/ElevenLabs.VoicesClient.g.cs | 5 + ...spaceClient.CreateWorkspaceInvitesAdd.g.cs | 99 +- ...orkspaceClient.CreateWorkspaceMembers.g.cs | 99 +- ...orkspaceClient.DeleteWorkspaceInvites.g.cs | 99 +- ...eClient.GetAdminN8enylacgdSsoProvider.g.cs | 105 +- .../Generated/ElevenLabs.WorkspaceClient.g.cs | 5 + .../JsonConverters.ASRInputFormat.g.cs | 49 + ...JsonConverters.ASRInputFormatNullable.g.cs | 56 + .../Generated/JsonConverters.ASRProvider.g.cs | 49 + .../JsonConverters.ASRProviderNullable.g.cs | 56 + .../Generated/JsonConverters.ASRQuality.g.cs | 49 + .../JsonConverters.ASRQualityNullable.g.cs | 56 + .../JsonConverters.AllOfFactory1.g.cs | 25 - .../Generated/JsonConverters.AnyOf3.g.cs | 111 ++ .../JsonConverters.AnyOfFactory2.g.cs | 25 - .../Generated/JsonConverters.ClientEvent.g.cs | 49 + .../JsonConverters.ClientEventNullable.g.cs | 56 + ...ationHistoryTranscriptCommonModelRole.g.cs | 49 + ...toryTranscriptCommonModelRoleNullable.g.cs | 56 + ...onversationSummaryResponseModelStatus.g.cs | 49 + ...ionSummaryResponseModelStatusNullable.g.cs | 56 + .../JsonConverters.EmbedVariant.g.cs | 49 + .../JsonConverters.EmbedVariantNullable.g.cs | 56 + ...sonConverters.EvaluationSuccessResult.g.cs | 49 + ...rters.EvaluationSuccessResultNullable.g.cs | 56 + ...rs.GetConversationResponseModelStatus.g.cs | 49 + ...nversationResponseModelStatusNullable.g.cs | 56 + ...ters.GetKnowledgeBaseReponseModelType.g.cs | 49 + ...KnowledgeBaseReponseModelTypeNullable.g.cs | 56 + .../JsonConverters.ImageAvatarType.g.cs | 49 + ...sonConverters.ImageAvatarTypeNullable.g.cs | 56 + .../JsonConverters.JsonLiteralType.g.cs | 49 + ...sonConverters.JsonLiteralTypeNullable.g.cs | 56 + ...JsonConverters.JsonSchemaPropertyType.g.cs | 49 + ...erters.JsonSchemaPropertyTypeNullable.g.cs | 56 + ...onConverters.KnowledgeBaseLocatorType.g.cs | 49 + ...ters.KnowledgeBaseLocatorTypeNullable.g.cs | 56 + .../Generated/JsonConverters.LLM.g.cs | 49 + .../Generated/JsonConverters.LLMNullable.g.cs | 56 + ...nverters.ObjectJsonSchemaPropertyType.g.cs | 49 + ....ObjectJsonSchemaPropertyTypeNullable.g.cs | 56 + .../JsonConverters.OrbAvatarType.g.cs | 49 + .../JsonConverters.OrbAvatarTypeNullable.g.cs | 56 + ...nConverters.PromptAgentToolConfigType.g.cs | 49 + ...ers.PromptAgentToolConfigTypeNullable.g.cs | 56 + ...nverters.PromptEvaluationCriteriaType.g.cs | 49 + ....PromptEvaluationCriteriaTypeNullable.g.cs | 56 + .../Generated/JsonConverters.ServerEvent.g.cs | 49 + .../JsonConverters.ServerEventNullable.g.cs | 56 + ...JsonConverters.TTSConversationalModel.g.cs | 49 + ...erters.TTSConversationalModelNullable.g.cs | 56 + .../JsonConverters.TTSOutputFormat.g.cs | 49 + ...sonConverters.TTSOutputFormatNullable.g.cs | 56 + ...sonConverters.ToolWebhookConfigMethod.g.cs | 49 + ...rters.ToolWebhookConfigMethodNullable.g.cs | 56 + .../JsonConverters.URLAvatarType.g.cs | 49 + .../JsonConverters.URLAvatarTypeNullable.g.cs | 56 + .../Generated/JsonSerializerContext.g.cs | 58 +- .../Generated/JsonSerializerContextTypes.g.cs | 700 +++++-- src/libs/ElevenLabs/openapi.yaml | 1622 ++++++++++++++++- 655 files changed, 37802 insertions(+), 11626 deletions(-) create mode 100644 src/libs/ElevenLabs/Generated/AllOf.1.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/AnyOf.2.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/AnyOf.3.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/AnyOf.3.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.ConversationalAIClient.CreateConvaiAgentsByAgentIdAddSecret.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.ConversationalAIClient.CreateConvaiAgentsByAgentIdAddToKnowledgeBase.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.ConversationalAIClient.CreateConvaiAgentsByAgentIdAvatar.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.ConversationalAIClient.CreateConvaiAgentsCreate.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.ConversationalAIClient.DeleteConvaiAgentsByAgentId.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.ConversationalAIClient.EditConvaiAgentsByAgentId.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.ConversationalAIClient.GetConvaiAgentsByAgentId.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.ConversationalAIClient.GetConvaiAgentsByAgentIdKnowledgeBaseByDocumentationId.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.ConversationalAIClient.GetConvaiAgentsByAgentIdWidget.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.ConversationalAIClient.GetConvaiConversationGetSignedUrl.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.ConversationalAIClient.GetConvaiConversations.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.ConversationalAIClient.GetConvaiConversationsByConversationId.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.ConversationalAIClient.GetConvaiConversationsByConversationIdAudio.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Exceptions.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.IConversationalAIClient.CreateConvaiAgentsByAgentIdAddSecret.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.IConversationalAIClient.CreateConvaiAgentsByAgentIdAddToKnowledgeBase.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.IConversationalAIClient.CreateConvaiAgentsByAgentIdAvatar.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.IConversationalAIClient.CreateConvaiAgentsCreate.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.IConversationalAIClient.DeleteConvaiAgentsByAgentId.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.IConversationalAIClient.EditConvaiAgentsByAgentId.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.IConversationalAIClient.GetConvaiAgentsByAgentId.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.IConversationalAIClient.GetConvaiAgentsByAgentIdKnowledgeBaseByDocumentationId.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.IConversationalAIClient.GetConvaiAgentsByAgentIdWidget.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.IConversationalAIClient.GetConvaiConversationGetSignedUrl.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.IConversationalAIClient.GetConvaiConversations.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.IConversationalAIClient.GetConvaiConversationsByConversationId.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.IConversationalAIClient.GetConvaiConversationsByConversationIdAudio.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.ASRConversationalConfig.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.ASRConversationalConfig.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.ASRInputFormat.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.ASRProvider.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.ASRQuality.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.AddAgentSecretResponseModel.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.AddAgentSecretResponseModel.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.AddChapterResponseModel.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.AddKnowledgeBaseResponseModel.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.AddKnowledgeBaseResponseModel.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.AddProjectResponseModel.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.AddPronunciationDictionaryResponseModel.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.AddPronunciationDictionaryRulesResponseModel.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.AddVoiceIVCResponseModel.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.AddVoiceResponseModel.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.AgentConfig.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.AgentConfig.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.AgentMetadataResponseModel.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.AgentMetadataResponseModel.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.AgentPlatformSettings.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.AgentPlatformSettings.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.AgentPlatformSettingsDataCollection.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.AgentPlatformSettingsDataCollection.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.AgentSummaryResponseModel.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.AudioNativeCreateProjectResponseModel.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.AuthSettings.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.AuthSettings.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyAddAPronunciationDictionaryV1PronunciationDictionariesAddFromFilePost.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyAddASecretToTheAgentWhichCanBeReferencedInToolCallsV1ConvaiAgentsAgentIdAddSecretPost.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyAddASecretToTheAgentWhichCanBeReferencedInToolCallsV1ConvaiAgentsAgentIdAddSecretPost.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyAddChapterToAProjectV1ProjectsProjectIdChaptersAddPost.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyAddProjectV1ProjectsAddPost.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyAddRulesToThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdAddRulesPost.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyAddSharingVoiceV1VoicesAddPublicUserIdVoiceIdPost.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyAddToAgentSKnowledgeBaseV1ConvaiAgentsAgentIdAddToKnowledgeBasePost.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyAddToAgentSKnowledgeBaseV1ConvaiAgentsAgentIdAddToKnowledgeBasePost.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyAddVoiceV1VoicesAddPost.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyAudioIsolationStreamV1AudioIsolationStreamPost.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyAudioIsolationV1AudioIsolationPost.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyCreateANewVoiceFromVoicePreviewV1TextToVoiceCreateVoiceFromPreviewPost.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyCreateANewVoiceFromVoicePreviewV1TextToVoiceCreateVoiceFromPreviewPostLabels.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyCreateAPreviouslyGeneratedVoiceV1VoiceGenerationCreateVoicePost.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyCreateAPreviouslyGeneratedVoiceV1VoiceGenerationCreateVoicePostLabels.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyCreateAgentV1ConvaiAgentsCreatePost.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyCreateAgentV1ConvaiAgentsCreatePost.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyCreatesAudioNativeEnabledProjectV1AudioNativePost.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyDeleteExistingInvitationV1WorkspaceInvitesDelete.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyDownloadHistoryItemsV1HistoryDownloadPost.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyDubAVideoOrAnAudioFileV1DubbingPost.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyEditBasicProjectInfoV1ProjectsProjectIdPost.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyEditVoiceV1VoicesVoiceIdEditPost.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyGenerateARandomVoiceV1VoiceGenerationGenerateVoicePost.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyGenerateAVoicePreviewFromDescriptionV1TextToVoiceCreatePreviewsPost.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyGetSimilarLibraryVoicesV1SimilarVoicesPost.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyInviteUserV1WorkspaceInvitesAddPost.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatch.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatch.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchConversationConfig.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchConversationConfig.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchPlatformSettings.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchPlatformSettings.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyPostAgentAvatarV1ConvaiAgentsAgentIdAvatarPost.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyPostAgentAvatarV1ConvaiAgentsAgentIdAvatarPost.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyRemoveRulesFromThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdRemoveRulesPost.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodySoundGenerationV1SoundGenerationPost.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodySpeechToSpeechStreamingV1SpeechToSpeechVoiceIdStreamPost.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodySpeechToSpeechV1SpeechToSpeechVoiceIdPost.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyStreamChapterAudioV1ProjectsProjectIdChaptersChapterIdSnapshotsChapterSnapshotIdStreamPost.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyStreamProjectAudioV1ProjectsProjectIdSnapshotsProjectSnapshotIdStreamPost.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyTextToSpeechStreamingV1TextToSpeechVoiceIdStreamPost.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyTextToSpeechStreamingWithTimestampsV1TextToSpeechVoiceIdStreamWithTimestampsPost.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyTextToSpeechV1TextToSpeechVoiceIdPost.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyTextToSpeechWithTimestampsV1TextToSpeechVoiceIdWithTimestampsPost.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyUpdateMemberV1WorkspaceMembersPost.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyUpdatePronunciationDictionariesV1ProjectsProjectIdUpdatePronunciationDictionariesPost.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.ChapterResponseModel.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.ChapterSnapshotResponseModel.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.ChapterSnapshotsResponseModel.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.ChapterStatisticsResponseModel.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.ClientEvent.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConvAISecretLocator.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConvAISecretLocator.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConversationConfig.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConversationConfig.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConversationHistoryAnalysisCommonModel.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConversationHistoryAnalysisCommonModel.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConversationHistoryAnalysisCommonModelDataCollectionResults.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConversationHistoryAnalysisCommonModelDataCollectionResults.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConversationHistoryAnalysisCommonModelEvaluationCriteriaResults.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConversationHistoryAnalysisCommonModelEvaluationCriteriaResults.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConversationHistoryEvaluationCriteriaResultCommonModel.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConversationHistoryEvaluationCriteriaResultCommonModel.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConversationHistoryMetadataCommonModel.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConversationHistoryMetadataCommonModel.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConversationHistoryTranscriptCommonModel.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConversationHistoryTranscriptCommonModel.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConversationHistoryTranscriptCommonModelRole.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConversationSignedUrlResponseModel.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConversationSignedUrlResponseModel.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConversationSummaryResponseModel.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConversationSummaryResponseModel.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConversationSummaryResponseModelStatus.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConversationalConfig.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConversationalConfig.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConvertChapterV1ProjectsProjectIdChaptersChapterIdConvertPostResponse.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConvertProjectV1ProjectsProjectIdConvertPostResponse.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.CreateAgentResponseModel.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.CreateAgentResponseModel.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.DataCollectionResultCommonModel.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.DataCollectionResultCommonModel.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.DataCollectionResultCommonModelValue.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.DataCollectionResultCommonModelValue.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.DeleteAgentV1ConvaiAgentsAgentIdDeleteResponse.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.DeleteAgentV1ConvaiAgentsAgentIdDeleteResponse.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.DeleteChapterV1ProjectsProjectIdChaptersChapterIdDeleteResponse.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.DeleteDubbingProjectV1DubbingDubbingIdDeleteResponse.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.DeleteExistingInvitationV1WorkspaceInvitesDeleteResponse.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.DeleteHistoryItemV1HistoryHistoryItemIdDeleteResponse.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.DeleteProjectV1ProjectsProjectIdDeleteResponse.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.DeleteSampleV1VoicesVoiceIdSamplesSampleIdDeleteResponse.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.DeleteVoiceV1VoicesVoiceIdDeleteResponse.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.DoDubbingResponseModel.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.DubbingMetadataResponse.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.EditProjectResponseModel.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.EditVoiceSettingsV1VoicesVoiceIdSettingsEditPostResponse.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.EditVoiceV1VoicesVoiceIdEditPostResponse.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.EmbedConfig.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.EmbedConfig.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.EmbedVariant.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.EvaluationSettings.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.EvaluationSettings.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.EvaluationSuccessResult.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.ExtendedSubscriptionResponseModel.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.FeedbackResponseModel.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.FineTuningResponseModel.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.FineTuningResponseModelMessage.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.FineTuningResponseModelProgress.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.FineTuningResponseModelState.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetAgentEmbedResponseModel.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetAgentEmbedResponseModel.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetAgentResponseModel.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetAgentResponseModel.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetAgentsPageResponseModel.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetChaptersResponseModel.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetConversationResponseModel.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetConversationResponseModel.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetConversationResponseModelStatus.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetConversationsPageResponseModel.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetConversationsPageResponseModel.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetKnowledgeBaseReponseModel.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetKnowledgeBaseReponseModel.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetKnowledgeBaseReponseModelType.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetLibraryVoicesResponseModel.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetProjectsResponseModel.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetPronunciationDictionariesMetadataResponseModel.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetPronunciationDictionaryMetadataResponseModel.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetSpeechHistoryResponseModel.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetTranscriptForDubV1DubbingDubbingIdTranscriptLanguageCodeGetResponse.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetVoicesResponseModel.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.HTTPValidationError.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.HistoryAlignmentResponseModel.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.HistoryAlignmentsResponseModel.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.ImageAvatar.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.ImageAvatar.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.ImageAvatarType.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.InviteUserV1WorkspaceInvitesAddPostResponse.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.InvoiceResponseModel.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.JsonLiteralType.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.JsonSchemaProperty.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.JsonSchemaProperty.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.JsonSchemaPropertyType.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.KnowledgeBaseLocator.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.KnowledgeBaseLocator.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.KnowledgeBaseLocatorType.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.LLM.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.LanguageResponseModel.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.LibraryVoiceResponseModel.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.LiteralJsonSchemaProperty.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.LiteralJsonSchemaProperty.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.ManualVerificationFileResponseModel.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.ManualVerificationResponseModel.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.ModelRatesResponseModel.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.ModelResponseModel.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.ObjectJsonSchemaProperty.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.ObjectJsonSchemaProperty.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.ObjectJsonSchemaPropertyProperties.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.ObjectJsonSchemaPropertyProperties.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.ObjectJsonSchemaPropertyType.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.OrbAvatar.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.OrbAvatar.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.OrbAvatarType.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.PostAgentAvatarResponseModel.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.PostAgentAvatarResponseModel.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.ProfilePageResponseModel.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.ProjectExtendedResponseModel.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.ProjectExtendedResponseModelExperimental.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.ProjectResponseModel.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.ProjectSnapshotResponseModel.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.ProjectSnapshotUploadResponseModel.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.ProjectSnapshotsResponseModel.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.PromptAgent.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.PromptAgent.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.PromptAgentToolConfig.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.PromptAgentToolConfig.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.PromptAgentToolConfigType.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.PromptEvaluationCriteria.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.PromptEvaluationCriteria.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.PromptEvaluationCriteriaType.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.PronunciationDictionaryAliasRuleRequestModel.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.PronunciationDictionaryPhonemeRuleRequestModel.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.PronunciationDictionaryVersionLocatorDBModel.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.PronunciationDictionaryVersionResponseModel.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.QueryParamsJsonSchema.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.QueryParamsJsonSchema.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.QueryParamsJsonSchemaProperties.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.QueryParamsJsonSchemaProperties.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.RecordingResponseModel.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.RedirectToMintlifyDocsGetResponse.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.RemovePronunciationDictionaryRulesResponseModel.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.SampleResponseModel.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.ServerAgent.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.ServerAgent.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.ServerEvent.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.SpeechHistoryItemResponseModel.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.SpeechHistoryItemResponseModelSettings.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.SsoProviderResponseModel.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.SubscriptionResponseModel.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.TTSConversationalConfig.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.TTSConversationalConfig.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.TTSConversationalModel.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.TTSOutputFormat.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.ToolWebhookConfig.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.ToolWebhookConfig.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.ToolWebhookConfigMethod.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.ToolWebhookConfigPathParamsSchema.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.ToolWebhookConfigPathParamsSchema.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.ToolWebhookConfigRequestHeaders.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.ToolWebhookConfigRequestHeaders.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.TurnConfig.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.TurnConfig.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.URLAvatar.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.URLAvatar.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.URLAvatarType.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.UpdateMemberV1WorkspaceMembersPostResponse.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.UpdatePronunciationDictionariesV1ProjectsProjectIdUpdatePronunciationDictionariesPostResponse.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.UsageCharactersResponseModel.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.UsageCharactersResponseModelUsage.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.UserResponseModel.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.ValidationError.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.VerificationAttemptResponseModel.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.VoiceGenerationParameterOptionResponseModel.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.VoiceGenerationParameterResponseModel.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.VoicePreviewResponseModel.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.VoicePreviewsResponseModel.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.VoiceResponseModel.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.VoiceResponseModelLabels.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.VoiceSettingsResponseModel.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.VoiceSharingModerationCheckResponseModel.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.VoiceSharingResponseModel.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.VoiceSharingResponseModelLabels.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/ElevenLabs.Models.VoiceVerificationResponseModel.Json.g.cs create mode 100644 src/libs/ElevenLabs/Generated/JsonConverters.ASRInputFormat.g.cs create mode 100644 src/libs/ElevenLabs/Generated/JsonConverters.ASRInputFormatNullable.g.cs create mode 100644 src/libs/ElevenLabs/Generated/JsonConverters.ASRProvider.g.cs create mode 100644 src/libs/ElevenLabs/Generated/JsonConverters.ASRProviderNullable.g.cs create mode 100644 src/libs/ElevenLabs/Generated/JsonConverters.ASRQuality.g.cs create mode 100644 src/libs/ElevenLabs/Generated/JsonConverters.ASRQualityNullable.g.cs delete mode 100644 src/libs/ElevenLabs/Generated/JsonConverters.AllOfFactory1.g.cs create mode 100644 src/libs/ElevenLabs/Generated/JsonConverters.AnyOf3.g.cs delete mode 100644 src/libs/ElevenLabs/Generated/JsonConverters.AnyOfFactory2.g.cs create mode 100644 src/libs/ElevenLabs/Generated/JsonConverters.ClientEvent.g.cs create mode 100644 src/libs/ElevenLabs/Generated/JsonConverters.ClientEventNullable.g.cs create mode 100644 src/libs/ElevenLabs/Generated/JsonConverters.ConversationHistoryTranscriptCommonModelRole.g.cs create mode 100644 src/libs/ElevenLabs/Generated/JsonConverters.ConversationHistoryTranscriptCommonModelRoleNullable.g.cs create mode 100644 src/libs/ElevenLabs/Generated/JsonConverters.ConversationSummaryResponseModelStatus.g.cs create mode 100644 src/libs/ElevenLabs/Generated/JsonConverters.ConversationSummaryResponseModelStatusNullable.g.cs create mode 100644 src/libs/ElevenLabs/Generated/JsonConverters.EmbedVariant.g.cs create mode 100644 src/libs/ElevenLabs/Generated/JsonConverters.EmbedVariantNullable.g.cs create mode 100644 src/libs/ElevenLabs/Generated/JsonConverters.EvaluationSuccessResult.g.cs create mode 100644 src/libs/ElevenLabs/Generated/JsonConverters.EvaluationSuccessResultNullable.g.cs create mode 100644 src/libs/ElevenLabs/Generated/JsonConverters.GetConversationResponseModelStatus.g.cs create mode 100644 src/libs/ElevenLabs/Generated/JsonConverters.GetConversationResponseModelStatusNullable.g.cs create mode 100644 src/libs/ElevenLabs/Generated/JsonConverters.GetKnowledgeBaseReponseModelType.g.cs create mode 100644 src/libs/ElevenLabs/Generated/JsonConverters.GetKnowledgeBaseReponseModelTypeNullable.g.cs create mode 100644 src/libs/ElevenLabs/Generated/JsonConverters.ImageAvatarType.g.cs create mode 100644 src/libs/ElevenLabs/Generated/JsonConverters.ImageAvatarTypeNullable.g.cs create mode 100644 src/libs/ElevenLabs/Generated/JsonConverters.JsonLiteralType.g.cs create mode 100644 src/libs/ElevenLabs/Generated/JsonConverters.JsonLiteralTypeNullable.g.cs create mode 100644 src/libs/ElevenLabs/Generated/JsonConverters.JsonSchemaPropertyType.g.cs create mode 100644 src/libs/ElevenLabs/Generated/JsonConverters.JsonSchemaPropertyTypeNullable.g.cs create mode 100644 src/libs/ElevenLabs/Generated/JsonConverters.KnowledgeBaseLocatorType.g.cs create mode 100644 src/libs/ElevenLabs/Generated/JsonConverters.KnowledgeBaseLocatorTypeNullable.g.cs create mode 100644 src/libs/ElevenLabs/Generated/JsonConverters.LLM.g.cs create mode 100644 src/libs/ElevenLabs/Generated/JsonConverters.LLMNullable.g.cs create mode 100644 src/libs/ElevenLabs/Generated/JsonConverters.ObjectJsonSchemaPropertyType.g.cs create mode 100644 src/libs/ElevenLabs/Generated/JsonConverters.ObjectJsonSchemaPropertyTypeNullable.g.cs create mode 100644 src/libs/ElevenLabs/Generated/JsonConverters.OrbAvatarType.g.cs create mode 100644 src/libs/ElevenLabs/Generated/JsonConverters.OrbAvatarTypeNullable.g.cs create mode 100644 src/libs/ElevenLabs/Generated/JsonConverters.PromptAgentToolConfigType.g.cs create mode 100644 src/libs/ElevenLabs/Generated/JsonConverters.PromptAgentToolConfigTypeNullable.g.cs create mode 100644 src/libs/ElevenLabs/Generated/JsonConverters.PromptEvaluationCriteriaType.g.cs create mode 100644 src/libs/ElevenLabs/Generated/JsonConverters.PromptEvaluationCriteriaTypeNullable.g.cs create mode 100644 src/libs/ElevenLabs/Generated/JsonConverters.ServerEvent.g.cs create mode 100644 src/libs/ElevenLabs/Generated/JsonConverters.ServerEventNullable.g.cs create mode 100644 src/libs/ElevenLabs/Generated/JsonConverters.TTSConversationalModel.g.cs create mode 100644 src/libs/ElevenLabs/Generated/JsonConverters.TTSConversationalModelNullable.g.cs create mode 100644 src/libs/ElevenLabs/Generated/JsonConverters.TTSOutputFormat.g.cs create mode 100644 src/libs/ElevenLabs/Generated/JsonConverters.TTSOutputFormatNullable.g.cs create mode 100644 src/libs/ElevenLabs/Generated/JsonConverters.ToolWebhookConfigMethod.g.cs create mode 100644 src/libs/ElevenLabs/Generated/JsonConverters.ToolWebhookConfigMethodNullable.g.cs create mode 100644 src/libs/ElevenLabs/Generated/JsonConverters.URLAvatarType.g.cs create mode 100644 src/libs/ElevenLabs/Generated/JsonConverters.URLAvatarTypeNullable.g.cs diff --git a/src/libs/ElevenLabs/Generated/AllOf.1.Json.g.cs b/src/libs/ElevenLabs/Generated/AllOf.1.Json.g.cs new file mode 100644 index 0000000..83aa67f --- /dev/null +++ b/src/libs/ElevenLabs/Generated/AllOf.1.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public readonly partial struct AllOf + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.AllOf? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.AllOf), + jsonSerializerContext) as global::ElevenLabs.AllOf?; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.AllOf? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize>( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask?> FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.AllOf), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.AllOf?; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask?> FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync?>( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/AllOf.1.g.cs b/src/libs/ElevenLabs/Generated/AllOf.1.g.cs index 7ed9f97..1dbae23 100644 --- a/src/libs/ElevenLabs/Generated/AllOf.1.g.cs +++ b/src/libs/ElevenLabs/Generated/AllOf.1.g.cs @@ -1,4 +1,3 @@ -using System.Linq; #nullable enable @@ -112,7 +111,8 @@ public override int GetHashCode() static int HashCodeAggregator(int hashCode, object? value) => value == null ? (hashCode ^ 0) * prime : (hashCode ^ value.GetHashCode()) * prime; - return fields.Aggregate(offset, HashCodeAggregator); + + return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); } /// @@ -148,92 +148,5 @@ public override bool Equals(object? obj) { return obj is AllOf o && Equals(o); } - - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ElevenLabs.AllOf? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.AllOf), - jsonSerializerContext) as global::ElevenLabs.AllOf?; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.AllOf? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize>( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask?> FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.AllOf), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.AllOf?; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask?> FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync?>( - jsonStream, - jsonSerializerOptions); - } - } } diff --git a/src/libs/ElevenLabs/Generated/AnyOf.2.Json.g.cs b/src/libs/ElevenLabs/Generated/AnyOf.2.Json.g.cs new file mode 100644 index 0000000..4a518fc --- /dev/null +++ b/src/libs/ElevenLabs/Generated/AnyOf.2.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public readonly partial struct AnyOf + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.AnyOf? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.AnyOf), + jsonSerializerContext) as global::ElevenLabs.AnyOf?; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.AnyOf? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize>( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask?> FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.AnyOf), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.AnyOf?; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask?> FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync?>( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/AnyOf.2.g.cs b/src/libs/ElevenLabs/Generated/AnyOf.2.g.cs index 80ac6f6..3a72bb2 100644 --- a/src/libs/ElevenLabs/Generated/AnyOf.2.g.cs +++ b/src/libs/ElevenLabs/Generated/AnyOf.2.g.cs @@ -1,4 +1,3 @@ -using System.Linq; #nullable enable @@ -172,7 +171,8 @@ public override int GetHashCode() static int HashCodeAggregator(int hashCode, object? value) => value == null ? (hashCode ^ 0) * prime : (hashCode ^ value.GetHashCode()) * prime; - return fields.Aggregate(offset, HashCodeAggregator); + + return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); } /// @@ -209,92 +209,5 @@ public override bool Equals(object? obj) { return obj is AnyOf o && Equals(o); } - - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ElevenLabs.AnyOf? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.AnyOf), - jsonSerializerContext) as global::ElevenLabs.AnyOf?; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.AnyOf? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize>( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask?> FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.AnyOf), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.AnyOf?; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask?> FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync?>( - jsonStream, - jsonSerializerOptions); - } - } } diff --git a/src/libs/ElevenLabs/Generated/AnyOf.3.Json.g.cs b/src/libs/ElevenLabs/Generated/AnyOf.3.Json.g.cs new file mode 100644 index 0000000..59034d4 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/AnyOf.3.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public readonly partial struct AnyOf + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.AnyOf? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.AnyOf), + jsonSerializerContext) as global::ElevenLabs.AnyOf?; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.AnyOf? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize>( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask?> FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.AnyOf), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.AnyOf?; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask?> FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync?>( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/AnyOf.3.g.cs b/src/libs/ElevenLabs/Generated/AnyOf.3.g.cs new file mode 100644 index 0000000..1d7379f --- /dev/null +++ b/src/libs/ElevenLabs/Generated/AnyOf.3.g.cs @@ -0,0 +1,264 @@ + +#nullable enable + +namespace ElevenLabs +{ + /// + /// + /// + public readonly partial struct AnyOf : global::System.IEquatable> + { + /// + /// + /// +#if NET6_0_OR_GREATER + public T1? Value1 { get; init; } +#else + public T1? Value1 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))] +#endif + public bool IsValue1 => Value1 != null; + + /// + /// + /// + public static implicit operator AnyOf(T1 value) => new AnyOf(value); + + /// + /// + /// + public static implicit operator T1?(AnyOf @this) => @this.Value1; + + /// + /// + /// + public AnyOf(T1? value) + { + Value1 = value; + } + + /// + /// + /// +#if NET6_0_OR_GREATER + public T2? Value2 { get; init; } +#else + public T2? Value2 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] +#endif + public bool IsValue2 => Value2 != null; + + /// + /// + /// + public static implicit operator AnyOf(T2 value) => new AnyOf(value); + + /// + /// + /// + public static implicit operator T2?(AnyOf @this) => @this.Value2; + + /// + /// + /// + public AnyOf(T2? value) + { + Value2 = value; + } + + /// + /// + /// +#if NET6_0_OR_GREATER + public T3? Value3 { get; init; } +#else + public T3? Value3 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value3))] +#endif + public bool IsValue3 => Value3 != null; + + /// + /// + /// + public static implicit operator AnyOf(T3 value) => new AnyOf(value); + + /// + /// + /// + public static implicit operator T3?(AnyOf @this) => @this.Value3; + + /// + /// + /// + public AnyOf(T3? value) + { + Value3 = value; + } + + /// + /// + /// + public AnyOf( + T1? value1, + T2? value2, + T3? value3 + ) + { + Value1 = value1; + Value2 = value2; + Value3 = value3; + } + + /// + /// + /// + public object? Object => + Value3 as object ?? + Value2 as object ?? + Value1 as object + ; + + /// + /// + /// + public bool Validate() + { + return IsValue1 || IsValue2 || IsValue3; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? value1 = null, + global::System.Func? value2 = null, + global::System.Func? value3 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsValue1 && value1 != null) + { + return value1(Value1!); + } + else if (IsValue2 && value2 != null) + { + return value2(Value2!); + } + else if (IsValue3 && value3 != null) + { + return value3(Value3!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? value1 = null, + global::System.Action? value2 = null, + global::System.Action? value3 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsValue1) + { + value1?.Invoke(Value1!); + } + else if (IsValue2) + { + value2?.Invoke(Value2!); + } + else if (IsValue3) + { + value3?.Invoke(Value3!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + Value1, + typeof(T1), + Value2, + typeof(T2), + Value3, + typeof(T3), + }; + const int offset = unchecked((int)2166136261); + const int prime = 16777619; + static int HashCodeAggregator(int hashCode, object? value) => value == null + ? (hashCode ^ 0) * prime + : (hashCode ^ value.GetHashCode()) * prime; + + return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); + } + + /// + /// + /// + public bool Equals(AnyOf other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Value3, other.Value3) + ; + } + + /// + /// + /// + public static bool operator ==(AnyOf obj1, AnyOf obj2) + { + return global::System.Collections.Generic.EqualityComparer>.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(AnyOf obj1, AnyOf obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is AnyOf o && Equals(o); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.AudioIsolationClient.CreateAudioIsolation.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.AudioIsolationClient.CreateAudioIsolation.g.cs index 14b6f56..d132de1 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.AudioIsolationClient.CreateAudioIsolation.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.AudioIsolationClient.CreateAudioIsolation.g.cs @@ -18,11 +18,6 @@ partial void ProcessCreateAudioIsolationResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessCreateAudioIsolationResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - /// /// Audio Isolation
/// Removes background noise from audio @@ -32,8 +27,8 @@ partial void ProcessCreateAudioIsolationResponseContent( /// /// /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task CreateAudioIsolationAsync( + /// + public async global::System.Threading.Tasks.Task CreateAudioIsolationAsync( global::ElevenLabs.BodyAudioIsolationV1AudioIsolationPost request, string? xiApiKey = default, global::System.Threading.CancellationToken cancellationToken = default) @@ -109,30 +104,23 @@ partial void ProcessCreateAudioIsolationResponseContent( ProcessCreateAudioIsolationResponse( httpClient: HttpClient, httpResponseMessage: __response); - - var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessCreateAudioIsolationResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - try { __response.EnsureSuccessStatusCode(); } catch (global::System.Net.Http.HttpRequestException __ex) { - throw new global::System.InvalidOperationException(__content, __ex); + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; } - - return - global::ElevenLabs.HTTPValidationError.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } /// @@ -150,7 +138,7 @@ partial void ProcessCreateAudioIsolationResponseContent( /// /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task CreateAudioIsolationAsync( + public async global::System.Threading.Tasks.Task CreateAudioIsolationAsync( byte[] audio, string audioname, string? xiApiKey = default, @@ -162,7 +150,7 @@ partial void ProcessCreateAudioIsolationResponseContent( Audioname = audioname, }; - return await CreateAudioIsolationAsync( + await CreateAudioIsolationAsync( xiApiKey: xiApiKey, request: __request, cancellationToken: cancellationToken).ConfigureAwait(false); diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.AudioIsolationClient.CreateAudioIsolationStream.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.AudioIsolationClient.CreateAudioIsolationStream.g.cs index 9860081..9123f07 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.AudioIsolationClient.CreateAudioIsolationStream.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.AudioIsolationClient.CreateAudioIsolationStream.g.cs @@ -18,11 +18,6 @@ partial void ProcessCreateAudioIsolationStreamResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessCreateAudioIsolationStreamResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - /// /// Audio Isolation Stream
/// Removes background noise from audio and streams the result @@ -32,8 +27,8 @@ partial void ProcessCreateAudioIsolationStreamResponseContent( /// /// /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task CreateAudioIsolationStreamAsync( + /// + public async global::System.Threading.Tasks.Task CreateAudioIsolationStreamAsync( global::ElevenLabs.BodyAudioIsolationStreamV1AudioIsolationStreamPost request, string? xiApiKey = default, global::System.Threading.CancellationToken cancellationToken = default) @@ -109,30 +104,23 @@ partial void ProcessCreateAudioIsolationStreamResponseContent( ProcessCreateAudioIsolationStreamResponse( httpClient: HttpClient, httpResponseMessage: __response); - - var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessCreateAudioIsolationStreamResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - try { __response.EnsureSuccessStatusCode(); } catch (global::System.Net.Http.HttpRequestException __ex) { - throw new global::System.InvalidOperationException(__content, __ex); + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; } - - return - global::ElevenLabs.HTTPValidationError.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } /// @@ -150,7 +138,7 @@ partial void ProcessCreateAudioIsolationStreamResponseContent( /// /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task CreateAudioIsolationStreamAsync( + public async global::System.Threading.Tasks.Task CreateAudioIsolationStreamAsync( byte[] audio, string audioname, string? xiApiKey = default, @@ -162,7 +150,7 @@ partial void ProcessCreateAudioIsolationStreamResponseContent( Audioname = audioname, }; - return await CreateAudioIsolationStreamAsync( + await CreateAudioIsolationStreamAsync( xiApiKey: xiApiKey, request: __request, cancellationToken: cancellationToken).ConfigureAwait(false); diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.AudioIsolationClient.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.AudioIsolationClient.g.cs index 47383e5..7c00f1a 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.AudioIsolationClient.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.AudioIsolationClient.g.cs @@ -25,6 +25,11 @@ public sealed partial class AudioIsolationClient : global::ElevenLabs.IAudioIsol /// public global::System.Collections.Generic.List Authorizations { get; } + /// + public bool ReadResponseAsString { get; set; } +#if DEBUG + = true; +#endif /// /// /// diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.AudioNativeClient.CreateAudioNative.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.AudioNativeClient.CreateAudioNative.g.cs index aa2fe94..76b54ac 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.AudioNativeClient.CreateAudioNative.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.AudioNativeClient.CreateAudioNative.g.cs @@ -32,7 +32,7 @@ partial void ProcessCreateAudioNativeResponseContent( /// /// /// The token to cancel the operation with - /// + /// public async global::System.Threading.Tasks.Task CreateAudioNativeAsync( global::ElevenLabs.BodyCreatesAudioNativeEnabledProjectV1AudioNativePost request, string? xiApiKey = default, @@ -175,30 +175,97 @@ partial void ProcessCreateAudioNativeResponseContent( ProcessCreateAudioNativeResponse( httpClient: HttpClient, httpResponseMessage: __response); + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::ElevenLabs.HTTPValidationError? __value_422 = null; + if (ReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + __value_422 = global::ElevenLabs.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + __value_422 = await global::ElevenLabs.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + } - var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessCreateAudioNativeResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + statusCode: __response.StatusCode) + { + ResponseBody = __content_422, + ResponseObject = __value_422, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } - try + if (ReadResponseAsString) { - __response.EnsureSuccessStatusCode(); + var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessCreateAudioNativeResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + return + global::ElevenLabs.AudioNativeCreateProjectResponseModel.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } - catch (global::System.Net.Http.HttpRequestException __ex) + else { - throw new global::System.InvalidOperationException(__content, __ex); - } + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - return - global::ElevenLabs.AudioNativeCreateProjectResponseModel.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return + await global::ElevenLabs.AudioNativeCreateProjectResponseModel.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } } /// diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.AudioNativeClient.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.AudioNativeClient.g.cs index 075b36e..13a2369 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.AudioNativeClient.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.AudioNativeClient.g.cs @@ -25,6 +25,11 @@ public sealed partial class AudioNativeClient : global::ElevenLabs.IAudioNativeC /// public global::System.Collections.Generic.List Authorizations { get; } + /// + public bool ReadResponseAsString { get; set; } +#if DEBUG + = true; +#endif /// /// /// diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.ConversationalAIClient.CreateConvaiAgentsByAgentIdAddSecret.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.ConversationalAIClient.CreateConvaiAgentsByAgentIdAddSecret.g.cs new file mode 100644 index 0000000..00605c3 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.ConversationalAIClient.CreateConvaiAgentsByAgentIdAddSecret.g.cs @@ -0,0 +1,245 @@ + +#nullable enable + +namespace ElevenLabs +{ + public partial class ConversationalAIClient + { + partial void PrepareCreateConvaiAgentsByAgentIdAddSecretArguments( + global::System.Net.Http.HttpClient httpClient, + ref string agentId, + ref string? xiApiKey, + global::ElevenLabs.BodyAddASecretToTheAgentWhichCanBeReferencedInToolCallsV1ConvaiAgentsAgentIdAddSecretPost request); + partial void PrepareCreateConvaiAgentsByAgentIdAddSecretRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string agentId, + string? xiApiKey, + global::ElevenLabs.BodyAddASecretToTheAgentWhichCanBeReferencedInToolCallsV1ConvaiAgentsAgentIdAddSecretPost request); + partial void ProcessCreateConvaiAgentsByAgentIdAddSecretResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessCreateConvaiAgentsByAgentIdAddSecretResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Add A Secret To The Agent Which Can Be Referenced In Tool Calls
+ /// Uploads a file or reference a webpage for the agent to use as part of it's knowledge base + ///
+ /// + /// The id of an agent. This is returned on agent creation. + /// + /// + /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. + /// + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task CreateConvaiAgentsByAgentIdAddSecretAsync( + string agentId, + global::ElevenLabs.BodyAddASecretToTheAgentWhichCanBeReferencedInToolCallsV1ConvaiAgentsAgentIdAddSecretPost request, + string? xiApiKey = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareCreateConvaiAgentsByAgentIdAddSecretArguments( + httpClient: HttpClient, + agentId: ref agentId, + xiApiKey: ref xiApiKey, + request: request); + + var __pathBuilder = new PathBuilder( + path: $"/v1/convai/agents/{agentId}/add-secret", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using 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)); + + foreach (var __authorization in Authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2") + { + __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); + } + } + + if (xiApiKey != default) + { + __httpRequest.Headers.TryAddWithoutValidation("xi-api-key", xiApiKey.ToString()); + } + + 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; + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareCreateConvaiAgentsByAgentIdAddSecretRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + agentId: agentId, + xiApiKey: xiApiKey, + request: request); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessCreateConvaiAgentsByAgentIdAddSecretResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::ElevenLabs.HTTPValidationError? __value_422 = null; + if (ReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + __value_422 = global::ElevenLabs.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + __value_422 = await global::ElevenLabs.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + } + + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + statusCode: __response.StatusCode) + { + ResponseBody = __content_422, + ResponseObject = __value_422, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessCreateConvaiAgentsByAgentIdAddSecretResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + return + global::ElevenLabs.AddAgentSecretResponseModel.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + + return + await global::ElevenLabs.AddAgentSecretResponseModel.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } + } + + /// + /// Add A Secret To The Agent Which Can Be Referenced In Tool Calls
+ /// Uploads a file or reference a webpage for the agent to use as part of it's knowledge base + ///
+ /// + /// The id of an agent. This is returned on agent creation. + /// + /// + /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. + /// + /// + /// A name to help identify a particular agent secret + /// + /// + /// A value to be encrypted and used by the agent + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task CreateConvaiAgentsByAgentIdAddSecretAsync( + string agentId, + string name, + string secretValue, + string? xiApiKey = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::ElevenLabs.BodyAddASecretToTheAgentWhichCanBeReferencedInToolCallsV1ConvaiAgentsAgentIdAddSecretPost + { + Name = name, + SecretValue = secretValue, + }; + + return await CreateConvaiAgentsByAgentIdAddSecretAsync( + agentId: agentId, + xiApiKey: xiApiKey, + request: __request, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.ConversationalAIClient.CreateConvaiAgentsByAgentIdAddToKnowledgeBase.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.ConversationalAIClient.CreateConvaiAgentsByAgentIdAddToKnowledgeBase.g.cs new file mode 100644 index 0000000..f4571eb --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.ConversationalAIClient.CreateConvaiAgentsByAgentIdAddToKnowledgeBase.g.cs @@ -0,0 +1,268 @@ + +#nullable enable + +namespace ElevenLabs +{ + public partial class ConversationalAIClient + { + partial void PrepareCreateConvaiAgentsByAgentIdAddToKnowledgeBaseArguments( + global::System.Net.Http.HttpClient httpClient, + ref string agentId, + ref string? xiApiKey, + global::ElevenLabs.BodyAddToAgentSKnowledgeBaseV1ConvaiAgentsAgentIdAddToKnowledgeBasePost request); + partial void PrepareCreateConvaiAgentsByAgentIdAddToKnowledgeBaseRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string agentId, + string? xiApiKey, + global::ElevenLabs.BodyAddToAgentSKnowledgeBaseV1ConvaiAgentsAgentIdAddToKnowledgeBasePost request); + partial void ProcessCreateConvaiAgentsByAgentIdAddToKnowledgeBaseResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessCreateConvaiAgentsByAgentIdAddToKnowledgeBaseResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Add To Agent'S Knowledge Base
+ /// Uploads a file or reference a webpage for the agent to use as part of it's knowledge base + ///
+ /// + /// The id of an agent. This is returned on agent creation. + /// + /// + /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. + /// + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task CreateConvaiAgentsByAgentIdAddToKnowledgeBaseAsync( + string agentId, + global::ElevenLabs.BodyAddToAgentSKnowledgeBaseV1ConvaiAgentsAgentIdAddToKnowledgeBasePost request, + string? xiApiKey = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareCreateConvaiAgentsByAgentIdAddToKnowledgeBaseArguments( + httpClient: HttpClient, + agentId: ref agentId, + xiApiKey: ref xiApiKey, + request: request); + + var __pathBuilder = new PathBuilder( + path: $"/v1/convai/agents/{agentId}/add-to-knowledge-base", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using 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)); + + foreach (var __authorization in Authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2") + { + __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); + } + } + + if (xiApiKey != default) + { + __httpRequest.Headers.TryAddWithoutValidation("xi-api-key", xiApiKey.ToString()); + } + + using var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent(); + __httpRequestContent.Add( + content: new global::System.Net.Http.StringContent($"{agentId}"), + name: "agent_id"); + if (xiApiKey != default) + { + __httpRequestContent.Add( + content: new global::System.Net.Http.StringContent($"{xiApiKey}"), + name: "xi-api-key"); + } + if (request.Url != default) + { + __httpRequestContent.Add( + content: new global::System.Net.Http.StringContent($"{request.Url}"), + name: "url"); + } + if (request.File != default) + { + __httpRequestContent.Add( + content: new global::System.Net.Http.ByteArrayContent(request.File ?? global::System.Array.Empty()), + name: "file", + fileName: request.Filename ?? string.Empty); + } + __httpRequest.Content = __httpRequestContent; + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareCreateConvaiAgentsByAgentIdAddToKnowledgeBaseRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + agentId: agentId, + xiApiKey: xiApiKey, + request: request); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessCreateConvaiAgentsByAgentIdAddToKnowledgeBaseResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::ElevenLabs.HTTPValidationError? __value_422 = null; + if (ReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + __value_422 = global::ElevenLabs.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + __value_422 = await global::ElevenLabs.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + } + + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + statusCode: __response.StatusCode) + { + ResponseBody = __content_422, + ResponseObject = __value_422, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessCreateConvaiAgentsByAgentIdAddToKnowledgeBaseResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + return + global::ElevenLabs.AddKnowledgeBaseResponseModel.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + + return + await global::ElevenLabs.AddKnowledgeBaseResponseModel.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } + } + + /// + /// Add To Agent'S Knowledge Base
+ /// Uploads a file or reference a webpage for the agent to use as part of it's knowledge base + ///
+ /// + /// The id of an agent. This is returned on agent creation. + /// + /// + /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. + /// + /// + /// URL to a page of documentation that the agent will have access to in order to interact with users. + /// + /// + /// Documentation that the agent will have access to in order to interact with users. + /// + /// + /// Documentation that the agent will have access to in order to interact with users. + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task CreateConvaiAgentsByAgentIdAddToKnowledgeBaseAsync( + string agentId, + string? xiApiKey = default, + string? url = default, + byte[]? file = default, + string? filename = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::ElevenLabs.BodyAddToAgentSKnowledgeBaseV1ConvaiAgentsAgentIdAddToKnowledgeBasePost + { + Url = url, + File = file, + Filename = filename, + }; + + return await CreateConvaiAgentsByAgentIdAddToKnowledgeBaseAsync( + agentId: agentId, + xiApiKey: xiApiKey, + request: __request, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.ConversationalAIClient.CreateConvaiAgentsByAgentIdAvatar.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.ConversationalAIClient.CreateConvaiAgentsByAgentIdAvatar.g.cs new file mode 100644 index 0000000..c5f9910 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.ConversationalAIClient.CreateConvaiAgentsByAgentIdAvatar.g.cs @@ -0,0 +1,254 @@ + +#nullable enable + +namespace ElevenLabs +{ + public partial class ConversationalAIClient + { + partial void PrepareCreateConvaiAgentsByAgentIdAvatarArguments( + global::System.Net.Http.HttpClient httpClient, + ref string agentId, + ref string? xiApiKey, + global::ElevenLabs.BodyPostAgentAvatarV1ConvaiAgentsAgentIdAvatarPost request); + partial void PrepareCreateConvaiAgentsByAgentIdAvatarRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string agentId, + string? xiApiKey, + global::ElevenLabs.BodyPostAgentAvatarV1ConvaiAgentsAgentIdAvatarPost request); + partial void ProcessCreateConvaiAgentsByAgentIdAvatarResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessCreateConvaiAgentsByAgentIdAvatarResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Post Agent Avatar
+ /// Sets the avatar for an agent displayed in the widget + ///
+ /// + /// The id of an agent. This is returned on agent creation. + /// + /// + /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. + /// + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task CreateConvaiAgentsByAgentIdAvatarAsync( + string agentId, + global::ElevenLabs.BodyPostAgentAvatarV1ConvaiAgentsAgentIdAvatarPost request, + string? xiApiKey = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareCreateConvaiAgentsByAgentIdAvatarArguments( + httpClient: HttpClient, + agentId: ref agentId, + xiApiKey: ref xiApiKey, + request: request); + + var __pathBuilder = new PathBuilder( + path: $"/v1/convai/agents/{agentId}/avatar", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using 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)); + + foreach (var __authorization in Authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2") + { + __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); + } + } + + if (xiApiKey != default) + { + __httpRequest.Headers.TryAddWithoutValidation("xi-api-key", xiApiKey.ToString()); + } + + using var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent(); + __httpRequestContent.Add( + content: new global::System.Net.Http.StringContent($"{agentId}"), + name: "agent_id"); + if (xiApiKey != default) + { + __httpRequestContent.Add( + content: new global::System.Net.Http.StringContent($"{xiApiKey}"), + name: "xi-api-key"); + } + __httpRequestContent.Add( + content: new global::System.Net.Http.ByteArrayContent(request.AvatarFile ?? global::System.Array.Empty()), + name: "avatar_file", + fileName: request.AvatarFilename ?? string.Empty); + __httpRequest.Content = __httpRequestContent; + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareCreateConvaiAgentsByAgentIdAvatarRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + agentId: agentId, + xiApiKey: xiApiKey, + request: request); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessCreateConvaiAgentsByAgentIdAvatarResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::ElevenLabs.HTTPValidationError? __value_422 = null; + if (ReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + __value_422 = global::ElevenLabs.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + __value_422 = await global::ElevenLabs.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + } + + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + statusCode: __response.StatusCode) + { + ResponseBody = __content_422, + ResponseObject = __value_422, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessCreateConvaiAgentsByAgentIdAvatarResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + return + global::ElevenLabs.PostAgentAvatarResponseModel.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + + return + await global::ElevenLabs.PostAgentAvatarResponseModel.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } + } + + /// + /// Post Agent Avatar
+ /// Sets the avatar for an agent displayed in the widget + ///
+ /// + /// The id of an agent. This is returned on agent creation. + /// + /// + /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. + /// + /// + /// An image file to be used as the agent's avatar. + /// + /// + /// An image file to be used as the agent's avatar. + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task CreateConvaiAgentsByAgentIdAvatarAsync( + string agentId, + byte[] avatarFile, + string avatarFilename, + string? xiApiKey = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::ElevenLabs.BodyPostAgentAvatarV1ConvaiAgentsAgentIdAvatarPost + { + AvatarFile = avatarFile, + AvatarFilename = avatarFilename, + }; + + return await CreateConvaiAgentsByAgentIdAvatarAsync( + agentId: agentId, + xiApiKey: xiApiKey, + request: __request, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.ConversationalAIClient.CreateConvaiAgentsCreate.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.ConversationalAIClient.CreateConvaiAgentsCreate.g.cs new file mode 100644 index 0000000..c33279a --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.ConversationalAIClient.CreateConvaiAgentsCreate.g.cs @@ -0,0 +1,237 @@ + +#nullable enable + +namespace ElevenLabs +{ + public partial class ConversationalAIClient + { + partial void PrepareCreateConvaiAgentsCreateArguments( + global::System.Net.Http.HttpClient httpClient, + ref string? xiApiKey, + global::ElevenLabs.BodyCreateAgentV1ConvaiAgentsCreatePost request); + partial void PrepareCreateConvaiAgentsCreateRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string? xiApiKey, + global::ElevenLabs.BodyCreateAgentV1ConvaiAgentsCreatePost request); + partial void ProcessCreateConvaiAgentsCreateResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessCreateConvaiAgentsCreateResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Create Agent
+ /// Create an agent from a config object + ///
+ /// + /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. + /// + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task CreateConvaiAgentsCreateAsync( + global::ElevenLabs.BodyCreateAgentV1ConvaiAgentsCreatePost request, + string? xiApiKey = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareCreateConvaiAgentsCreateArguments( + httpClient: HttpClient, + xiApiKey: ref xiApiKey, + request: request); + + var __pathBuilder = new PathBuilder( + path: "/v1/convai/agents/create", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using 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)); + + foreach (var __authorization in Authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2") + { + __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); + } + } + + if (xiApiKey != default) + { + __httpRequest.Headers.TryAddWithoutValidation("xi-api-key", xiApiKey.ToString()); + } + + 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; + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareCreateConvaiAgentsCreateRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + xiApiKey: xiApiKey, + request: request); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessCreateConvaiAgentsCreateResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::ElevenLabs.HTTPValidationError? __value_422 = null; + if (ReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + __value_422 = global::ElevenLabs.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + __value_422 = await global::ElevenLabs.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + } + + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + statusCode: __response.StatusCode) + { + ResponseBody = __content_422, + ResponseObject = __value_422, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessCreateConvaiAgentsCreateResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + return + global::ElevenLabs.CreateAgentResponseModel.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + + return + await global::ElevenLabs.CreateAgentResponseModel.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } + } + + /// + /// Create Agent
+ /// Create an agent from a config object + ///
+ /// + /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. + /// + /// + /// Conversation configuration for an agent + /// + /// + /// Platform settings for the agent are all settings that aren't related to the conversation orchestration and content. + /// + /// + /// A name to make the agent easier to find + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task CreateConvaiAgentsCreateAsync( + global::ElevenLabs.ConversationalConfig conversationConfig, + string? xiApiKey = default, + global::ElevenLabs.AgentPlatformSettings? platformSettings = default, + string? name = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::ElevenLabs.BodyCreateAgentV1ConvaiAgentsCreatePost + { + ConversationConfig = conversationConfig, + PlatformSettings = platformSettings, + Name = name, + }; + + return await CreateConvaiAgentsCreateAsync( + xiApiKey: xiApiKey, + request: __request, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.ConversationalAIClient.DeleteConvaiAgentsByAgentId.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.ConversationalAIClient.DeleteConvaiAgentsByAgentId.g.cs new file mode 100644 index 0000000..02ec379 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.ConversationalAIClient.DeleteConvaiAgentsByAgentId.g.cs @@ -0,0 +1,193 @@ + +#nullable enable + +namespace ElevenLabs +{ + public partial class ConversationalAIClient + { + partial void PrepareDeleteConvaiAgentsByAgentIdArguments( + global::System.Net.Http.HttpClient httpClient, + ref string agentId, + ref string? xiApiKey); + partial void PrepareDeleteConvaiAgentsByAgentIdRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string agentId, + string? xiApiKey); + partial void ProcessDeleteConvaiAgentsByAgentIdResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessDeleteConvaiAgentsByAgentIdResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Delete Agent
+ /// Delete an agent + ///
+ /// + /// The id of an agent. This is returned on agent creation. + /// + /// + /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task> DeleteConvaiAgentsByAgentIdAsync( + string agentId, + string? xiApiKey = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareDeleteConvaiAgentsByAgentIdArguments( + httpClient: HttpClient, + agentId: ref agentId, + xiApiKey: ref xiApiKey); + + var __pathBuilder = new PathBuilder( + path: $"/v1/convai/agents/{agentId}", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using 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)); + + foreach (var __authorization in Authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2") + { + __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); + } + } + + if (xiApiKey != default) + { + __httpRequest.Headers.TryAddWithoutValidation("xi-api-key", xiApiKey.ToString()); + } + + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareDeleteConvaiAgentsByAgentIdRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + agentId: agentId, + xiApiKey: xiApiKey); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessDeleteConvaiAgentsByAgentIdResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::ElevenLabs.HTTPValidationError? __value_422 = null; + if (ReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + __value_422 = global::ElevenLabs.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + __value_422 = await global::ElevenLabs.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + } + + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + statusCode: __response.StatusCode) + { + ResponseBody = __content_422, + ResponseObject = __value_422, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessDeleteConvaiAgentsByAgentIdResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + return + global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.Dictionary), JsonSerializerContext) as global::System.Collections.Generic.Dictionary ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + + return + await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.Dictionary), JsonSerializerContext).ConfigureAwait(false) as global::System.Collections.Generic.Dictionary ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.ConversationalAIClient.EditConvaiAgentsByAgentId.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.ConversationalAIClient.EditConvaiAgentsByAgentId.g.cs new file mode 100644 index 0000000..4a3092b --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.ConversationalAIClient.EditConvaiAgentsByAgentId.g.cs @@ -0,0 +1,250 @@ + +#nullable enable + +namespace ElevenLabs +{ + public partial class ConversationalAIClient + { + partial void PrepareEditConvaiAgentsByAgentIdArguments( + global::System.Net.Http.HttpClient httpClient, + ref string agentId, + ref string? xiApiKey, + global::ElevenLabs.BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatch request); + partial void PrepareEditConvaiAgentsByAgentIdRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string agentId, + string? xiApiKey, + global::ElevenLabs.BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatch request); + partial void ProcessEditConvaiAgentsByAgentIdResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessEditConvaiAgentsByAgentIdResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Patches An Agent Settings
+ /// Patches an Agent settings + ///
+ /// + /// The id of an agent. This is returned on agent creation. + /// + /// + /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. + /// + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task EditConvaiAgentsByAgentIdAsync( + string agentId, + global::ElevenLabs.BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatch request, + string? xiApiKey = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareEditConvaiAgentsByAgentIdArguments( + httpClient: HttpClient, + agentId: ref agentId, + xiApiKey: ref xiApiKey, + request: request); + + var __pathBuilder = new PathBuilder( + path: $"/v1/convai/agents/{agentId}", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using 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)); + + foreach (var __authorization in Authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2") + { + __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); + } + } + + if (xiApiKey != default) + { + __httpRequest.Headers.TryAddWithoutValidation("xi-api-key", xiApiKey.ToString()); + } + + 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; + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareEditConvaiAgentsByAgentIdRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + agentId: agentId, + xiApiKey: xiApiKey, + request: request); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessEditConvaiAgentsByAgentIdResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::ElevenLabs.HTTPValidationError? __value_422 = null; + if (ReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + __value_422 = global::ElevenLabs.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + __value_422 = await global::ElevenLabs.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + } + + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + statusCode: __response.StatusCode) + { + ResponseBody = __content_422, + ResponseObject = __value_422, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessEditConvaiAgentsByAgentIdResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + return + global::ElevenLabs.GetAgentResponseModel.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + + return + await global::ElevenLabs.GetAgentResponseModel.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } + } + + /// + /// Patches An Agent Settings
+ /// Patches an Agent settings + ///
+ /// + /// The id of an agent. This is returned on agent creation. + /// + /// + /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. + /// + /// + /// Conversation configuration for an agent + /// + /// + /// Platform settings for the agent are all settings that aren't related to the conversation orchestration and content. + /// + /// + /// A name to make the agent easier to find + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task EditConvaiAgentsByAgentIdAsync( + string agentId, + string? xiApiKey = default, + object? conversationConfig = default, + object? platformSettings = default, + string? name = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::ElevenLabs.BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatch + { + ConversationConfig = conversationConfig, + PlatformSettings = platformSettings, + Name = name, + }; + + return await EditConvaiAgentsByAgentIdAsync( + agentId: agentId, + xiApiKey: xiApiKey, + request: __request, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.ConversationalAIClient.GetConvaiAgents.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.ConversationalAIClient.GetConvaiAgents.g.cs index 49eccee..6e9a9ab 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.ConversationalAIClient.GetConvaiAgents.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.ConversationalAIClient.GetConvaiAgents.g.cs @@ -45,7 +45,7 @@ partial void ProcessGetConvaiAgentsResponseContent( /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. /// /// The token to cancel the operation with - /// + /// public async global::System.Threading.Tasks.Task GetConvaiAgentsAsync( string? cursor = default, int? pageSize = default, @@ -119,30 +119,97 @@ partial void ProcessGetConvaiAgentsResponseContent( ProcessGetConvaiAgentsResponse( httpClient: HttpClient, httpResponseMessage: __response); + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::ElevenLabs.HTTPValidationError? __value_422 = null; + if (ReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + __value_422 = global::ElevenLabs.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + __value_422 = await global::ElevenLabs.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + } - var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessGetConvaiAgentsResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + statusCode: __response.StatusCode) + { + ResponseBody = __content_422, + ResponseObject = __value_422, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } - try + if (ReadResponseAsString) { - __response.EnsureSuccessStatusCode(); + var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessGetConvaiAgentsResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + return + global::ElevenLabs.GetAgentsPageResponseModel.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } - catch (global::System.Net.Http.HttpRequestException __ex) + else { - throw new global::System.InvalidOperationException(__content, __ex); - } + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - return - global::ElevenLabs.GetAgentsPageResponseModel.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return + await global::ElevenLabs.GetAgentsPageResponseModel.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } } } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.ConversationalAIClient.GetConvaiAgentsByAgentId.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.ConversationalAIClient.GetConvaiAgentsByAgentId.g.cs new file mode 100644 index 0000000..67ac78b --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.ConversationalAIClient.GetConvaiAgentsByAgentId.g.cs @@ -0,0 +1,193 @@ + +#nullable enable + +namespace ElevenLabs +{ + public partial class ConversationalAIClient + { + partial void PrepareGetConvaiAgentsByAgentIdArguments( + global::System.Net.Http.HttpClient httpClient, + ref string agentId, + ref string? xiApiKey); + partial void PrepareGetConvaiAgentsByAgentIdRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string agentId, + string? xiApiKey); + partial void ProcessGetConvaiAgentsByAgentIdResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessGetConvaiAgentsByAgentIdResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Get Agent
+ /// Retrieve config for an agent + ///
+ /// + /// The id of an agent. This is returned on agent creation. + /// + /// + /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task GetConvaiAgentsByAgentIdAsync( + string agentId, + string? xiApiKey = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareGetConvaiAgentsByAgentIdArguments( + httpClient: HttpClient, + agentId: ref agentId, + xiApiKey: ref xiApiKey); + + var __pathBuilder = new PathBuilder( + path: $"/v1/convai/agents/{agentId}", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using 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)); + + foreach (var __authorization in Authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2") + { + __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); + } + } + + if (xiApiKey != default) + { + __httpRequest.Headers.TryAddWithoutValidation("xi-api-key", xiApiKey.ToString()); + } + + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareGetConvaiAgentsByAgentIdRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + agentId: agentId, + xiApiKey: xiApiKey); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessGetConvaiAgentsByAgentIdResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::ElevenLabs.HTTPValidationError? __value_422 = null; + if (ReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + __value_422 = global::ElevenLabs.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + __value_422 = await global::ElevenLabs.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + } + + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + statusCode: __response.StatusCode) + { + ResponseBody = __content_422, + ResponseObject = __value_422, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessGetConvaiAgentsByAgentIdResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + return + global::ElevenLabs.GetAgentResponseModel.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + + return + await global::ElevenLabs.GetAgentResponseModel.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.ConversationalAIClient.GetConvaiAgentsByAgentIdKnowledgeBaseByDocumentationId.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.ConversationalAIClient.GetConvaiAgentsByAgentIdKnowledgeBaseByDocumentationId.g.cs new file mode 100644 index 0000000..c4286a8 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.ConversationalAIClient.GetConvaiAgentsByAgentIdKnowledgeBaseByDocumentationId.g.cs @@ -0,0 +1,201 @@ + +#nullable enable + +namespace ElevenLabs +{ + public partial class ConversationalAIClient + { + partial void PrepareGetConvaiAgentsByAgentIdKnowledgeBaseByDocumentationIdArguments( + global::System.Net.Http.HttpClient httpClient, + ref string agentId, + ref string documentationId, + ref string? xiApiKey); + partial void PrepareGetConvaiAgentsByAgentIdKnowledgeBaseByDocumentationIdRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string agentId, + string documentationId, + string? xiApiKey); + partial void ProcessGetConvaiAgentsByAgentIdKnowledgeBaseByDocumentationIdResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessGetConvaiAgentsByAgentIdKnowledgeBaseByDocumentationIdResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Get Documentation From Agent'S Knowledge Base
+ /// Get details about a specific documentation making up the agent's knowledge base + ///
+ /// + /// The id of an agent. This is returned on agent creation. + /// + /// + /// The id of a document from the agent's knowledge base. This is returned on document addition. + /// + /// + /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task GetConvaiAgentsByAgentIdKnowledgeBaseByDocumentationIdAsync( + string agentId, + string documentationId, + string? xiApiKey = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareGetConvaiAgentsByAgentIdKnowledgeBaseByDocumentationIdArguments( + httpClient: HttpClient, + agentId: ref agentId, + documentationId: ref documentationId, + xiApiKey: ref xiApiKey); + + var __pathBuilder = new PathBuilder( + path: $"/v1/convai/agents/{agentId}/knowledge-base/{documentationId}", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using 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)); + + foreach (var __authorization in Authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2") + { + __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); + } + } + + if (xiApiKey != default) + { + __httpRequest.Headers.TryAddWithoutValidation("xi-api-key", xiApiKey.ToString()); + } + + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareGetConvaiAgentsByAgentIdKnowledgeBaseByDocumentationIdRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + agentId: agentId, + documentationId: documentationId, + xiApiKey: xiApiKey); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessGetConvaiAgentsByAgentIdKnowledgeBaseByDocumentationIdResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::ElevenLabs.HTTPValidationError? __value_422 = null; + if (ReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + __value_422 = global::ElevenLabs.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + __value_422 = await global::ElevenLabs.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + } + + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + statusCode: __response.StatusCode) + { + ResponseBody = __content_422, + ResponseObject = __value_422, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessGetConvaiAgentsByAgentIdKnowledgeBaseByDocumentationIdResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + return + global::ElevenLabs.GetKnowledgeBaseReponseModel.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + + return + await global::ElevenLabs.GetKnowledgeBaseReponseModel.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.ConversationalAIClient.GetConvaiAgentsByAgentIdWidget.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.ConversationalAIClient.GetConvaiAgentsByAgentIdWidget.g.cs new file mode 100644 index 0000000..d5962b5 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.ConversationalAIClient.GetConvaiAgentsByAgentIdWidget.g.cs @@ -0,0 +1,193 @@ + +#nullable enable + +namespace ElevenLabs +{ + public partial class ConversationalAIClient + { + partial void PrepareGetConvaiAgentsByAgentIdWidgetArguments( + global::System.Net.Http.HttpClient httpClient, + ref string agentId, + ref string? xiApiKey); + partial void PrepareGetConvaiAgentsByAgentIdWidgetRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string agentId, + string? xiApiKey); + partial void ProcessGetConvaiAgentsByAgentIdWidgetResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessGetConvaiAgentsByAgentIdWidgetResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Get Agent Widget Config
+ /// Retrieve the widget configuration for an agent + ///
+ /// + /// The id of an agent. This is returned on agent creation. + /// + /// + /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task GetConvaiAgentsByAgentIdWidgetAsync( + string agentId, + string? xiApiKey = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareGetConvaiAgentsByAgentIdWidgetArguments( + httpClient: HttpClient, + agentId: ref agentId, + xiApiKey: ref xiApiKey); + + var __pathBuilder = new PathBuilder( + path: $"/v1/convai/agents/{agentId}/widget", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using 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)); + + foreach (var __authorization in Authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2") + { + __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); + } + } + + if (xiApiKey != default) + { + __httpRequest.Headers.TryAddWithoutValidation("xi-api-key", xiApiKey.ToString()); + } + + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareGetConvaiAgentsByAgentIdWidgetRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + agentId: agentId, + xiApiKey: xiApiKey); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessGetConvaiAgentsByAgentIdWidgetResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::ElevenLabs.HTTPValidationError? __value_422 = null; + if (ReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + __value_422 = global::ElevenLabs.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + __value_422 = await global::ElevenLabs.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + } + + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + statusCode: __response.StatusCode) + { + ResponseBody = __content_422, + ResponseObject = __value_422, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessGetConvaiAgentsByAgentIdWidgetResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + return + global::ElevenLabs.GetAgentEmbedResponseModel.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + + return + await global::ElevenLabs.GetAgentEmbedResponseModel.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.ConversationalAIClient.GetConvaiConversationGetSignedUrl.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.ConversationalAIClient.GetConvaiConversationGetSignedUrl.g.cs new file mode 100644 index 0000000..4a3a990 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.ConversationalAIClient.GetConvaiConversationGetSignedUrl.g.cs @@ -0,0 +1,196 @@ + +#nullable enable + +namespace ElevenLabs +{ + public partial class ConversationalAIClient + { + partial void PrepareGetConvaiConversationGetSignedUrlArguments( + global::System.Net.Http.HttpClient httpClient, + ref string agentId, + ref string? xiApiKey); + partial void PrepareGetConvaiConversationGetSignedUrlRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string agentId, + string? xiApiKey); + partial void ProcessGetConvaiConversationGetSignedUrlResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessGetConvaiConversationGetSignedUrlResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Get Signed Url
+ /// Get a signed url to start a conversation with an agent with an agent that requires authorization + ///
+ /// + /// The id of the agent you're taking the action on. + /// + /// + /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task GetConvaiConversationGetSignedUrlAsync( + string agentId, + string? xiApiKey = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareGetConvaiConversationGetSignedUrlArguments( + httpClient: HttpClient, + agentId: ref agentId, + xiApiKey: ref xiApiKey); + + var __pathBuilder = new PathBuilder( + path: "/v1/convai/conversation/get_signed_url", + baseUri: HttpClient.BaseAddress); + __pathBuilder + .AddRequiredParameter("agent_id", agentId) + ; + var __path = __pathBuilder.ToString(); + using 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)); + + foreach (var __authorization in Authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2") + { + __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); + } + } + + if (xiApiKey != default) + { + __httpRequest.Headers.TryAddWithoutValidation("xi-api-key", xiApiKey.ToString()); + } + + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareGetConvaiConversationGetSignedUrlRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + agentId: agentId, + xiApiKey: xiApiKey); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessGetConvaiConversationGetSignedUrlResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::ElevenLabs.HTTPValidationError? __value_422 = null; + if (ReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + __value_422 = global::ElevenLabs.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + __value_422 = await global::ElevenLabs.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + } + + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + statusCode: __response.StatusCode) + { + ResponseBody = __content_422, + ResponseObject = __value_422, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessGetConvaiConversationGetSignedUrlResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + return + global::ElevenLabs.ConversationSignedUrlResponseModel.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + + return + await global::ElevenLabs.ConversationSignedUrlResponseModel.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.ConversationalAIClient.GetConvaiConversations.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.ConversationalAIClient.GetConvaiConversations.g.cs new file mode 100644 index 0000000..e118b30 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.ConversationalAIClient.GetConvaiConversations.g.cs @@ -0,0 +1,224 @@ + +#nullable enable + +namespace ElevenLabs +{ + public partial class ConversationalAIClient + { + partial void PrepareGetConvaiConversationsArguments( + global::System.Net.Http.HttpClient httpClient, + ref string? cursor, + ref string? agentId, + ref global::ElevenLabs.AllOf? callSuccessful, + ref int? pageSize, + ref string? xiApiKey); + partial void PrepareGetConvaiConversationsRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string? cursor, + string? agentId, + global::ElevenLabs.AllOf? callSuccessful, + int? pageSize, + string? xiApiKey); + partial void ProcessGetConvaiConversationsResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessGetConvaiConversationsResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Get Conversations
+ /// Get all conversations of agents that user owns. With option to restrict to a specific agent. + ///
+ /// + /// Used for fetching next page. Cursor is returned in the response. + /// + /// + /// The id of the agent you're taking the action on. + /// + /// + /// The result of the success evaluation + /// + /// + /// How many conversations to return at maximum. Can not exceed 100, defaults to 30.
+ /// Default Value: 30 + /// + /// + /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task GetConvaiConversationsAsync( + string? cursor = default, + string? agentId = default, + global::ElevenLabs.AllOf? callSuccessful = default, + int? pageSize = default, + string? xiApiKey = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareGetConvaiConversationsArguments( + httpClient: HttpClient, + cursor: ref cursor, + agentId: ref agentId, + callSuccessful: ref callSuccessful, + pageSize: ref pageSize, + xiApiKey: ref xiApiKey); + + var __pathBuilder = new PathBuilder( + path: "/v1/convai/conversations", + baseUri: HttpClient.BaseAddress); + __pathBuilder + .AddOptionalParameter("cursor", cursor) + .AddOptionalParameter("agent_id", agentId) + .AddOptionalParameter("call_successful", callSuccessful?.ToString() ?? string.Empty) + .AddOptionalParameter("page_size", pageSize?.ToString()) + ; + var __path = __pathBuilder.ToString(); + using 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)); + + foreach (var __authorization in Authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2") + { + __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); + } + } + + if (xiApiKey != default) + { + __httpRequest.Headers.TryAddWithoutValidation("xi-api-key", xiApiKey.ToString()); + } + + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareGetConvaiConversationsRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + cursor: cursor, + agentId: agentId, + callSuccessful: callSuccessful, + pageSize: pageSize, + xiApiKey: xiApiKey); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessGetConvaiConversationsResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::ElevenLabs.HTTPValidationError? __value_422 = null; + if (ReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + __value_422 = global::ElevenLabs.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + __value_422 = await global::ElevenLabs.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + } + + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + statusCode: __response.StatusCode) + { + ResponseBody = __content_422, + ResponseObject = __value_422, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessGetConvaiConversationsResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + return + global::ElevenLabs.GetConversationsPageResponseModel.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + + return + await global::ElevenLabs.GetConversationsPageResponseModel.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.ConversationalAIClient.GetConvaiConversationsByConversationId.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.ConversationalAIClient.GetConvaiConversationsByConversationId.g.cs new file mode 100644 index 0000000..ca64317 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.ConversationalAIClient.GetConvaiConversationsByConversationId.g.cs @@ -0,0 +1,193 @@ + +#nullable enable + +namespace ElevenLabs +{ + public partial class ConversationalAIClient + { + partial void PrepareGetConvaiConversationsByConversationIdArguments( + global::System.Net.Http.HttpClient httpClient, + ref string conversationId, + ref string? xiApiKey); + partial void PrepareGetConvaiConversationsByConversationIdRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string conversationId, + string? xiApiKey); + partial void ProcessGetConvaiConversationsByConversationIdResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessGetConvaiConversationsByConversationIdResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Get Conversation Details
+ /// Get the details of a particular conversation + ///
+ /// + /// The id of the conversation you're taking the action on. + /// + /// + /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task GetConvaiConversationsByConversationIdAsync( + string conversationId, + string? xiApiKey = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareGetConvaiConversationsByConversationIdArguments( + httpClient: HttpClient, + conversationId: ref conversationId, + xiApiKey: ref xiApiKey); + + var __pathBuilder = new PathBuilder( + path: $"/v1/convai/conversations/{conversationId}", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using 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)); + + foreach (var __authorization in Authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2") + { + __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); + } + } + + if (xiApiKey != default) + { + __httpRequest.Headers.TryAddWithoutValidation("xi-api-key", xiApiKey.ToString()); + } + + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareGetConvaiConversationsByConversationIdRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + conversationId: conversationId, + xiApiKey: xiApiKey); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessGetConvaiConversationsByConversationIdResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::ElevenLabs.HTTPValidationError? __value_422 = null; + if (ReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + __value_422 = global::ElevenLabs.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + __value_422 = await global::ElevenLabs.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + } + + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + statusCode: __response.StatusCode) + { + ResponseBody = __content_422, + ResponseObject = __value_422, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessGetConvaiConversationsByConversationIdResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + return + global::ElevenLabs.GetConversationResponseModel.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + + return + await global::ElevenLabs.GetConversationResponseModel.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.ConversationalAIClient.GetConvaiConversationsByConversationIdAudio.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.ConversationalAIClient.GetConvaiConversationsByConversationIdAudio.g.cs new file mode 100644 index 0000000..2f6b984 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.ConversationalAIClient.GetConvaiConversationsByConversationIdAudio.g.cs @@ -0,0 +1,114 @@ + +#nullable enable + +namespace ElevenLabs +{ + public partial class ConversationalAIClient + { + partial void PrepareGetConvaiConversationsByConversationIdAudioArguments( + global::System.Net.Http.HttpClient httpClient, + ref string conversationId, + ref string? xiApiKey); + partial void PrepareGetConvaiConversationsByConversationIdAudioRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string conversationId, + string? xiApiKey); + partial void ProcessGetConvaiConversationsByConversationIdAudioResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + /// + /// Get Conversation Audio
+ /// Get the audio recording of a particular conversation + ///
+ /// + /// The id of the conversation you're taking the action on. + /// + /// + /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task GetConvaiConversationsByConversationIdAudioAsync( + string conversationId, + string? xiApiKey = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareGetConvaiConversationsByConversationIdAudioArguments( + httpClient: HttpClient, + conversationId: ref conversationId, + xiApiKey: ref xiApiKey); + + var __pathBuilder = new PathBuilder( + path: $"/v1/convai/conversations/{conversationId}/audio", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + using 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)); + + foreach (var __authorization in Authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2") + { + __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); + } + } + + if (xiApiKey != default) + { + __httpRequest.Headers.TryAddWithoutValidation("xi-api-key", xiApiKey.ToString()); + } + + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareGetConvaiConversationsByConversationIdAudioRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + conversationId: conversationId, + xiApiKey: xiApiKey); + + using var __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessGetConvaiConversationsByConversationIdAudioResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.ConversationalAIClient.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.ConversationalAIClient.g.cs index cea495e..26af407 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.ConversationalAIClient.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.ConversationalAIClient.g.cs @@ -25,6 +25,11 @@ public sealed partial class ConversationalAIClient : global::ElevenLabs.IConvers /// public global::System.Collections.Generic.List Authorizations { get; } + /// + public bool ReadResponseAsString { get; set; } +#if DEBUG + = true; +#endif /// /// /// diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.DubbingClient.CreateDubbing.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.DubbingClient.CreateDubbing.g.cs index 0b08c69..f4a692b 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.DubbingClient.CreateDubbing.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.DubbingClient.CreateDubbing.g.cs @@ -32,7 +32,7 @@ partial void ProcessCreateDubbingResponseContent( /// /// /// The token to cancel the operation with - /// + /// public async global::System.Threading.Tasks.Task CreateDubbingAsync( global::ElevenLabs.BodyDubAVideoOrAnAudioFileV1DubbingPost request, string? xiApiKey = default, @@ -178,30 +178,97 @@ partial void ProcessCreateDubbingResponseContent( ProcessCreateDubbingResponse( httpClient: HttpClient, httpResponseMessage: __response); + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::ElevenLabs.HTTPValidationError? __value_422 = null; + if (ReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + __value_422 = global::ElevenLabs.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + __value_422 = await global::ElevenLabs.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + } - var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessCreateDubbingResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + statusCode: __response.StatusCode) + { + ResponseBody = __content_422, + ResponseObject = __value_422, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } - try + if (ReadResponseAsString) { - __response.EnsureSuccessStatusCode(); + var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessCreateDubbingResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + return + global::ElevenLabs.DoDubbingResponseModel.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } - catch (global::System.Net.Http.HttpRequestException __ex) + else { - throw new global::System.InvalidOperationException(__content, __ex); - } + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - return - global::ElevenLabs.DoDubbingResponseModel.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return + await global::ElevenLabs.DoDubbingResponseModel.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } } /// diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.DubbingClient.DeleteDubbingByDubbingId.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.DubbingClient.DeleteDubbingByDubbingId.g.cs index c886d42..12a2802 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.DubbingClient.DeleteDubbingByDubbingId.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.DubbingClient.DeleteDubbingByDubbingId.g.cs @@ -34,7 +34,7 @@ partial void ProcessDeleteDubbingByDubbingIdResponseContent( /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. /// /// The token to cancel the operation with - /// + /// public async global::System.Threading.Tasks.Task DeleteDubbingByDubbingIdAsync( string dubbingId, string? xiApiKey = default, @@ -97,28 +97,93 @@ partial void ProcessDeleteDubbingByDubbingIdResponseContent( ProcessDeleteDubbingByDubbingIdResponse( httpClient: HttpClient, httpResponseMessage: __response); + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::ElevenLabs.HTTPValidationError? __value_422 = null; + if (ReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + __value_422 = global::ElevenLabs.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + __value_422 = await global::ElevenLabs.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + } - var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessDeleteDubbingByDubbingIdResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + statusCode: __response.StatusCode) + { + ResponseBody = __content_422, + ResponseObject = __value_422, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } - try + if (ReadResponseAsString) { - __response.EnsureSuccessStatusCode(); + var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessDeleteDubbingByDubbingIdResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + return __content; } - catch (global::System.Net.Http.HttpRequestException __ex) + else { - throw new global::System.InvalidOperationException(__content, __ex); - } + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - return __content; + return __content; + } } } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.DubbingClient.GetDubbingByDubbingId.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.DubbingClient.GetDubbingByDubbingId.g.cs index 1fc1f5d..ff5bd08 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.DubbingClient.GetDubbingByDubbingId.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.DubbingClient.GetDubbingByDubbingId.g.cs @@ -34,7 +34,7 @@ partial void ProcessGetDubbingByDubbingIdResponseContent( /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. /// /// The token to cancel the operation with - /// + /// public async global::System.Threading.Tasks.Task GetDubbingByDubbingIdAsync( string dubbingId, string? xiApiKey = default, @@ -97,30 +97,97 @@ partial void ProcessGetDubbingByDubbingIdResponseContent( ProcessGetDubbingByDubbingIdResponse( httpClient: HttpClient, httpResponseMessage: __response); + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::ElevenLabs.HTTPValidationError? __value_422 = null; + if (ReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + __value_422 = global::ElevenLabs.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + __value_422 = await global::ElevenLabs.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + } - var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessGetDubbingByDubbingIdResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + statusCode: __response.StatusCode) + { + ResponseBody = __content_422, + ResponseObject = __value_422, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } - try + if (ReadResponseAsString) { - __response.EnsureSuccessStatusCode(); + var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessGetDubbingByDubbingIdResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + return + global::ElevenLabs.DubbingMetadataResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } - catch (global::System.Net.Http.HttpRequestException __ex) + else { - throw new global::System.InvalidOperationException(__content, __ex); - } + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - return - global::ElevenLabs.DubbingMetadataResponse.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return + await global::ElevenLabs.DubbingMetadataResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } } } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.DubbingClient.GetDubbingByDubbingIdAudioByLanguageCode.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.DubbingClient.GetDubbingByDubbingIdAudioByLanguageCode.g.cs index bf9fbd1..7d1e92f 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.DubbingClient.GetDubbingByDubbingIdAudioByLanguageCode.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.DubbingClient.GetDubbingByDubbingIdAudioByLanguageCode.g.cs @@ -39,7 +39,7 @@ partial void ProcessGetDubbingByDubbingIdAudioByLanguageCodeResponseContent( /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. /// /// The token to cancel the operation with - /// + /// public async global::System.Threading.Tasks.Task GetDubbingByDubbingIdAudioByLanguageCodeAsync( string dubbingId, string languageCode, @@ -105,18 +105,88 @@ partial void ProcessGetDubbingByDubbingIdAudioByLanguageCodeResponseContent( ProcessGetDubbingByDubbingIdAudioByLanguageCodeResponse( httpClient: HttpClient, httpResponseMessage: __response); + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::ElevenLabs.HTTPValidationError? __value_422 = null; + if (ReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + __value_422 = global::ElevenLabs.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + __value_422 = await global::ElevenLabs.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + } - var __content = await __response.Content.ReadAsByteArrayAsync(cancellationToken).ConfigureAwait(false); + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + statusCode: __response.StatusCode) + { + ResponseBody = __content_422, + ResponseObject = __value_422, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } - ProcessGetDubbingByDubbingIdAudioByLanguageCodeResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsByteArrayAsync(cancellationToken).ConfigureAwait(false); + + ProcessGetDubbingByDubbingIdAudioByLanguageCodeResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + return __content; + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } - __response.EnsureSuccessStatusCode(); + var __content = await __response.Content.ReadAsByteArrayAsync(cancellationToken).ConfigureAwait(false); - return __content; + return __content; + } } } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.DubbingClient.GetDubbingByDubbingIdTranscriptByLanguageCode.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.DubbingClient.GetDubbingByDubbingIdTranscriptByLanguageCode.g.cs index 5286d6e..706732d 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.DubbingClient.GetDubbingByDubbingIdTranscriptByLanguageCode.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.DubbingClient.GetDubbingByDubbingIdTranscriptByLanguageCode.g.cs @@ -44,7 +44,7 @@ partial void ProcessGetDubbingByDubbingIdTranscriptByLanguageCodeResponseContent /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. /// /// The token to cancel the operation with - /// + /// public async global::System.Threading.Tasks.Task GetDubbingByDubbingIdTranscriptByLanguageCodeAsync( string dubbingId, string languageCode, @@ -116,28 +116,93 @@ partial void ProcessGetDubbingByDubbingIdTranscriptByLanguageCodeResponseContent ProcessGetDubbingByDubbingIdTranscriptByLanguageCodeResponse( httpClient: HttpClient, httpResponseMessage: __response); + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::ElevenLabs.HTTPValidationError? __value_422 = null; + if (ReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + __value_422 = global::ElevenLabs.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + __value_422 = await global::ElevenLabs.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + } - var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessGetDubbingByDubbingIdTranscriptByLanguageCodeResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + statusCode: __response.StatusCode) + { + ResponseBody = __content_422, + ResponseObject = __value_422, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } - try + if (ReadResponseAsString) { - __response.EnsureSuccessStatusCode(); + var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessGetDubbingByDubbingIdTranscriptByLanguageCodeResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + return __content; } - catch (global::System.Net.Http.HttpRequestException __ex) + else { - throw new global::System.InvalidOperationException(__content, __ex); - } + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - return __content; + return __content; + } } } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.DubbingClient.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.DubbingClient.g.cs index 2d62faa..fc874d6 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.DubbingClient.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.DubbingClient.g.cs @@ -25,6 +25,11 @@ public sealed partial class DubbingClient : global::ElevenLabs.IDubbingClient, g /// public global::System.Collections.Generic.List Authorizations { get; } + /// + public bool ReadResponseAsString { get; set; } +#if DEBUG + = true; +#endif /// /// /// diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.ElevenLabsClient.GetDocs.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.ElevenLabsClient.GetDocs.g.cs index 0d7b95a..0dffc2e 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.ElevenLabsClient.GetDocs.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.ElevenLabsClient.GetDocs.g.cs @@ -23,7 +23,7 @@ partial void ProcessGetDocsResponseContent( /// Redirect To Mintlify /// /// The token to cancel the operation with - /// + /// public async global::System.Threading.Tasks.Task GetDocsAsync( global::System.Threading.CancellationToken cancellationToken = default) { @@ -75,27 +75,64 @@ partial void ProcessGetDocsResponseContent( httpClient: HttpClient, httpResponseMessage: __response); - var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessGetDocsResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessGetDocsResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); - try - { - __response.EnsureSuccessStatusCode(); + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + return __content; } - catch (global::System.Net.Http.HttpRequestException __ex) + else { - throw new global::System.InvalidOperationException(__content, __ex); - } + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } - return __content; + var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + return __content; + } } } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.ElevenLabsClient.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.ElevenLabsClient.g.cs index 80f8f54..52259c2 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.ElevenLabsClient.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.ElevenLabsClient.g.cs @@ -26,6 +26,11 @@ public sealed partial class ElevenLabsClient : global::ElevenLabs.IElevenLabsCli /// public global::System.Collections.Generic.List Authorizations { get; } + /// + public bool ReadResponseAsString { get; set; } +#if DEBUG + = true; +#endif /// /// /// @@ -37,6 +42,7 @@ public sealed partial class ElevenLabsClient : global::ElevenLabs.IElevenLabsCli ///
public TextToSpeechClient TextToSpeech => new TextToSpeechClient(HttpClient, authorizations: Authorizations) { + ReadResponseAsString = ReadResponseAsString, JsonSerializerContext = JsonSerializerContext, }; @@ -45,6 +51,7 @@ public sealed partial class ElevenLabsClient : global::ElevenLabs.IElevenLabsCli ///
public SpeechToSpeechClient SpeechToSpeech => new SpeechToSpeechClient(HttpClient, authorizations: Authorizations) { + ReadResponseAsString = ReadResponseAsString, JsonSerializerContext = JsonSerializerContext, }; @@ -53,6 +60,7 @@ public sealed partial class ElevenLabsClient : global::ElevenLabs.IElevenLabsCli ///
public ModelsClient Models => new ModelsClient(HttpClient, authorizations: Authorizations) { + ReadResponseAsString = ReadResponseAsString, JsonSerializerContext = JsonSerializerContext, }; @@ -61,6 +69,7 @@ public sealed partial class ElevenLabsClient : global::ElevenLabs.IElevenLabsCli ///
public VoicesClient Voices => new VoicesClient(HttpClient, authorizations: Authorizations) { + ReadResponseAsString = ReadResponseAsString, JsonSerializerContext = JsonSerializerContext, }; @@ -69,6 +78,7 @@ public sealed partial class ElevenLabsClient : global::ElevenLabs.IElevenLabsCli ///
public SamplesClient Samples => new SamplesClient(HttpClient, authorizations: Authorizations) { + ReadResponseAsString = ReadResponseAsString, JsonSerializerContext = JsonSerializerContext, }; @@ -77,6 +87,7 @@ public sealed partial class ElevenLabsClient : global::ElevenLabs.IElevenLabsCli ///
public SpeechHistoryClient SpeechHistory => new SpeechHistoryClient(HttpClient, authorizations: Authorizations) { + ReadResponseAsString = ReadResponseAsString, JsonSerializerContext = JsonSerializerContext, }; @@ -85,6 +96,7 @@ public sealed partial class ElevenLabsClient : global::ElevenLabs.IElevenLabsCli ///
public ProjectsClient Projects => new ProjectsClient(HttpClient, authorizations: Authorizations) { + ReadResponseAsString = ReadResponseAsString, JsonSerializerContext = JsonSerializerContext, }; @@ -93,6 +105,7 @@ public sealed partial class ElevenLabsClient : global::ElevenLabs.IElevenLabsCli /// public ConversationalAIClient ConversationalAI => new ConversationalAIClient(HttpClient, authorizations: Authorizations) { + ReadResponseAsString = ReadResponseAsString, JsonSerializerContext = JsonSerializerContext, }; @@ -101,6 +114,7 @@ public sealed partial class ElevenLabsClient : global::ElevenLabs.IElevenLabsCli /// public SoundGenerationClient SoundGeneration => new SoundGenerationClient(HttpClient, authorizations: Authorizations) { + ReadResponseAsString = ReadResponseAsString, JsonSerializerContext = JsonSerializerContext, }; @@ -109,6 +123,7 @@ public sealed partial class ElevenLabsClient : global::ElevenLabs.IElevenLabsCli /// public AudioIsolationClient AudioIsolation => new AudioIsolationClient(HttpClient, authorizations: Authorizations) { + ReadResponseAsString = ReadResponseAsString, JsonSerializerContext = JsonSerializerContext, }; @@ -117,6 +132,7 @@ public sealed partial class ElevenLabsClient : global::ElevenLabs.IElevenLabsCli /// public VoiceGenerationClient VoiceGeneration => new VoiceGenerationClient(HttpClient, authorizations: Authorizations) { + ReadResponseAsString = ReadResponseAsString, JsonSerializerContext = JsonSerializerContext, }; @@ -125,6 +141,7 @@ public sealed partial class ElevenLabsClient : global::ElevenLabs.IElevenLabsCli /// public TextToVoiceClient TextToVoice => new TextToVoiceClient(HttpClient, authorizations: Authorizations) { + ReadResponseAsString = ReadResponseAsString, JsonSerializerContext = JsonSerializerContext, }; @@ -133,6 +150,7 @@ public sealed partial class ElevenLabsClient : global::ElevenLabs.IElevenLabsCli /// public UserClient User => new UserClient(HttpClient, authorizations: Authorizations) { + ReadResponseAsString = ReadResponseAsString, JsonSerializerContext = JsonSerializerContext, }; @@ -141,6 +159,7 @@ public sealed partial class ElevenLabsClient : global::ElevenLabs.IElevenLabsCli /// public DubbingClient Dubbing => new DubbingClient(HttpClient, authorizations: Authorizations) { + ReadResponseAsString = ReadResponseAsString, JsonSerializerContext = JsonSerializerContext, }; @@ -149,6 +168,7 @@ public sealed partial class ElevenLabsClient : global::ElevenLabs.IElevenLabsCli /// public WorkspaceClient Workspace => new WorkspaceClient(HttpClient, authorizations: Authorizations) { + ReadResponseAsString = ReadResponseAsString, JsonSerializerContext = JsonSerializerContext, }; @@ -157,6 +177,7 @@ public sealed partial class ElevenLabsClient : global::ElevenLabs.IElevenLabsCli /// public AudioNativeClient AudioNative => new AudioNativeClient(HttpClient, authorizations: Authorizations) { + ReadResponseAsString = ReadResponseAsString, JsonSerializerContext = JsonSerializerContext, }; @@ -165,6 +186,7 @@ public sealed partial class ElevenLabsClient : global::ElevenLabs.IElevenLabsCli /// public UsageClient Usage => new UsageClient(HttpClient, authorizations: Authorizations) { + ReadResponseAsString = ReadResponseAsString, JsonSerializerContext = JsonSerializerContext, }; @@ -173,6 +195,7 @@ public sealed partial class ElevenLabsClient : global::ElevenLabs.IElevenLabsCli /// public PronunciationDictionaryClient PronunciationDictionary => new PronunciationDictionaryClient(HttpClient, authorizations: Authorizations) { + ReadResponseAsString = ReadResponseAsString, JsonSerializerContext = JsonSerializerContext, }; diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Exceptions.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Exceptions.g.cs new file mode 100644 index 0000000..5264919 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Exceptions.g.cs @@ -0,0 +1,90 @@ +#nullable enable + +namespace ElevenLabs +{ + /// + /// Represents an exception thrown by the API. + /// + [global::System.Serializable] + public partial class ApiException : global::System.Exception + { + /// + /// The HTTP status code of the response. + /// + public global::System.Net.HttpStatusCode StatusCode { get; } + /// + /// The response body. + /// + public string? ResponseBody { get; set; } + /// + /// The response headers. + /// + public global::System.Collections.Generic.Dictionary>? ResponseHeaders { get; set; } + /// + /// Initializes a new instance of the class. + /// + public ApiException() + { + } + + /// + /// Initializes a new instance of the class with a specified error message. + /// + /// The message that describes the error. + /// The HTTP status code of the response. + public ApiException(string message, global::System.Net.HttpStatusCode statusCode) : base(message) + { + StatusCode = statusCode; + } + + /// + /// Initializes a new instance of the class with a specified error message and a reference to the inner exception that is the cause of this exception. + /// + /// The error message that explains the reason for the exception. + /// The exception that is the cause of the current exception, or a null reference if no inner exception is specified. + /// The HTTP status code of the response. + public ApiException(string message, global::System.Exception innerException, global::System.Net.HttpStatusCode statusCode) : base(message, innerException) + { + StatusCode = statusCode; + } + } + + /// + /// Represents an exception thrown by the API. + /// + /// + [global::System.Serializable] + public partial class ApiException : ApiException + { + /// + /// The response object. + /// + public T? ResponseObject { get; set; } + + /// + /// Initializes a new instance of the class. + /// + public ApiException() + { + } + + /// + /// Initializes a new instance of the class with a specified error message. + /// + /// The message that describes the error. + /// The HTTP status code of the response. + public ApiException(string message, global::System.Net.HttpStatusCode statusCode) : base(message, statusCode) + { + } + + /// + /// Initializes a new instance of the class with a specified error message and a reference to the inner exception that is the cause of this exception. + /// + /// The error message that explains the reason for the exception. + /// The exception that is the cause of the current exception, or a null reference if no inner exception is specified. + /// The HTTP status code of the response. + public ApiException(string message, global::System.Exception innerException, global::System.Net.HttpStatusCode statusCode) : base(message, innerException, statusCode) + { + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.IAudioIsolationClient.CreateAudioIsolation.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.IAudioIsolationClient.CreateAudioIsolation.g.cs index e81a0c2..e8f3cf1 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.IAudioIsolationClient.CreateAudioIsolation.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.IAudioIsolationClient.CreateAudioIsolation.g.cs @@ -13,8 +13,8 @@ public partial interface IAudioIsolationClient /// /// /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task CreateAudioIsolationAsync( + /// + global::System.Threading.Tasks.Task CreateAudioIsolationAsync( global::ElevenLabs.BodyAudioIsolationV1AudioIsolationPost request, string? xiApiKey = default, global::System.Threading.CancellationToken cancellationToken = default); @@ -34,7 +34,7 @@ public partial interface IAudioIsolationClient /// /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task CreateAudioIsolationAsync( + global::System.Threading.Tasks.Task CreateAudioIsolationAsync( byte[] audio, string audioname, string? xiApiKey = default, diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.IAudioIsolationClient.CreateAudioIsolationStream.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.IAudioIsolationClient.CreateAudioIsolationStream.g.cs index 647e14a..08b953d 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.IAudioIsolationClient.CreateAudioIsolationStream.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.IAudioIsolationClient.CreateAudioIsolationStream.g.cs @@ -13,8 +13,8 @@ public partial interface IAudioIsolationClient /// /// /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task CreateAudioIsolationStreamAsync( + /// + global::System.Threading.Tasks.Task CreateAudioIsolationStreamAsync( global::ElevenLabs.BodyAudioIsolationStreamV1AudioIsolationStreamPost request, string? xiApiKey = default, global::System.Threading.CancellationToken cancellationToken = default); @@ -34,7 +34,7 @@ public partial interface IAudioIsolationClient /// /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task CreateAudioIsolationStreamAsync( + global::System.Threading.Tasks.Task CreateAudioIsolationStreamAsync( byte[] audio, string audioname, string? xiApiKey = default, diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.IAudioIsolationClient.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.IAudioIsolationClient.g.cs index a6f2320..cfeaf4f 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.IAudioIsolationClient.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.IAudioIsolationClient.g.cs @@ -24,6 +24,12 @@ public partial interface IAudioIsolationClient : global::System.IDisposable /// 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. + /// + public bool ReadResponseAsString { get; set; } + /// /// /// diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.IAudioNativeClient.CreateAudioNative.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.IAudioNativeClient.CreateAudioNative.g.cs index 40107b2..d87092e 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.IAudioNativeClient.CreateAudioNative.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.IAudioNativeClient.CreateAudioNative.g.cs @@ -13,7 +13,7 @@ public partial interface IAudioNativeClient /// /// /// The token to cancel the operation with - /// + /// global::System.Threading.Tasks.Task CreateAudioNativeAsync( global::ElevenLabs.BodyCreatesAudioNativeEnabledProjectV1AudioNativePost request, string? xiApiKey = default, diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.IAudioNativeClient.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.IAudioNativeClient.g.cs index 8d2819f..c84f263 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.IAudioNativeClient.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.IAudioNativeClient.g.cs @@ -24,6 +24,12 @@ public partial interface IAudioNativeClient : global::System.IDisposable /// 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. + /// + public bool ReadResponseAsString { get; set; } + /// /// /// diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.IConversationalAIClient.CreateConvaiAgentsByAgentIdAddSecret.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.IConversationalAIClient.CreateConvaiAgentsByAgentIdAddSecret.g.cs new file mode 100644 index 0000000..daef11b --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.IConversationalAIClient.CreateConvaiAgentsByAgentIdAddSecret.g.cs @@ -0,0 +1,51 @@ +#nullable enable + +namespace ElevenLabs +{ + public partial interface IConversationalAIClient + { + /// + /// Add A Secret To The Agent Which Can Be Referenced In Tool Calls
+ /// Uploads a file or reference a webpage for the agent to use as part of it's knowledge base + ///
+ /// + /// The id of an agent. This is returned on agent creation. + /// + /// + /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. + /// + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task CreateConvaiAgentsByAgentIdAddSecretAsync( + string agentId, + global::ElevenLabs.BodyAddASecretToTheAgentWhichCanBeReferencedInToolCallsV1ConvaiAgentsAgentIdAddSecretPost request, + string? xiApiKey = default, + global::System.Threading.CancellationToken cancellationToken = default); + + /// + /// Add A Secret To The Agent Which Can Be Referenced In Tool Calls
+ /// Uploads a file or reference a webpage for the agent to use as part of it's knowledge base + ///
+ /// + /// The id of an agent. This is returned on agent creation. + /// + /// + /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. + /// + /// + /// A name to help identify a particular agent secret + /// + /// + /// A value to be encrypted and used by the agent + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task CreateConvaiAgentsByAgentIdAddSecretAsync( + string agentId, + string name, + string secretValue, + string? xiApiKey = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.IConversationalAIClient.CreateConvaiAgentsByAgentIdAddToKnowledgeBase.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.IConversationalAIClient.CreateConvaiAgentsByAgentIdAddToKnowledgeBase.g.cs new file mode 100644 index 0000000..4f16af4 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.IConversationalAIClient.CreateConvaiAgentsByAgentIdAddToKnowledgeBase.g.cs @@ -0,0 +1,55 @@ +#nullable enable + +namespace ElevenLabs +{ + public partial interface IConversationalAIClient + { + /// + /// Add To Agent'S Knowledge Base
+ /// Uploads a file or reference a webpage for the agent to use as part of it's knowledge base + ///
+ /// + /// The id of an agent. This is returned on agent creation. + /// + /// + /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. + /// + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task CreateConvaiAgentsByAgentIdAddToKnowledgeBaseAsync( + string agentId, + global::ElevenLabs.BodyAddToAgentSKnowledgeBaseV1ConvaiAgentsAgentIdAddToKnowledgeBasePost request, + string? xiApiKey = default, + global::System.Threading.CancellationToken cancellationToken = default); + + /// + /// Add To Agent'S Knowledge Base
+ /// Uploads a file or reference a webpage for the agent to use as part of it's knowledge base + ///
+ /// + /// The id of an agent. This is returned on agent creation. + /// + /// + /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. + /// + /// + /// URL to a page of documentation that the agent will have access to in order to interact with users. + /// + /// + /// Documentation that the agent will have access to in order to interact with users. + /// + /// + /// Documentation that the agent will have access to in order to interact with users. + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task CreateConvaiAgentsByAgentIdAddToKnowledgeBaseAsync( + string agentId, + string? xiApiKey = default, + string? url = default, + byte[]? file = default, + string? filename = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.IConversationalAIClient.CreateConvaiAgentsByAgentIdAvatar.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.IConversationalAIClient.CreateConvaiAgentsByAgentIdAvatar.g.cs new file mode 100644 index 0000000..b8e2297 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.IConversationalAIClient.CreateConvaiAgentsByAgentIdAvatar.g.cs @@ -0,0 +1,51 @@ +#nullable enable + +namespace ElevenLabs +{ + public partial interface IConversationalAIClient + { + /// + /// Post Agent Avatar
+ /// Sets the avatar for an agent displayed in the widget + ///
+ /// + /// The id of an agent. This is returned on agent creation. + /// + /// + /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. + /// + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task CreateConvaiAgentsByAgentIdAvatarAsync( + string agentId, + global::ElevenLabs.BodyPostAgentAvatarV1ConvaiAgentsAgentIdAvatarPost request, + string? xiApiKey = default, + global::System.Threading.CancellationToken cancellationToken = default); + + /// + /// Post Agent Avatar
+ /// Sets the avatar for an agent displayed in the widget + ///
+ /// + /// The id of an agent. This is returned on agent creation. + /// + /// + /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. + /// + /// + /// An image file to be used as the agent's avatar. + /// + /// + /// An image file to be used as the agent's avatar. + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task CreateConvaiAgentsByAgentIdAvatarAsync( + string agentId, + byte[] avatarFile, + string avatarFilename, + string? xiApiKey = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.IConversationalAIClient.CreateConvaiAgentsCreate.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.IConversationalAIClient.CreateConvaiAgentsCreate.g.cs new file mode 100644 index 0000000..48de9d2 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.IConversationalAIClient.CreateConvaiAgentsCreate.g.cs @@ -0,0 +1,47 @@ +#nullable enable + +namespace ElevenLabs +{ + public partial interface IConversationalAIClient + { + /// + /// Create Agent
+ /// Create an agent from a config object + ///
+ /// + /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. + /// + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task CreateConvaiAgentsCreateAsync( + global::ElevenLabs.BodyCreateAgentV1ConvaiAgentsCreatePost request, + string? xiApiKey = default, + global::System.Threading.CancellationToken cancellationToken = default); + + /// + /// Create Agent
+ /// Create an agent from a config object + ///
+ /// + /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. + /// + /// + /// Conversation configuration for an agent + /// + /// + /// Platform settings for the agent are all settings that aren't related to the conversation orchestration and content. + /// + /// + /// A name to make the agent easier to find + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task CreateConvaiAgentsCreateAsync( + global::ElevenLabs.ConversationalConfig conversationConfig, + string? xiApiKey = default, + global::ElevenLabs.AgentPlatformSettings? platformSettings = default, + string? name = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.IConversationalAIClient.DeleteConvaiAgentsByAgentId.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.IConversationalAIClient.DeleteConvaiAgentsByAgentId.g.cs new file mode 100644 index 0000000..dc9320e --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.IConversationalAIClient.DeleteConvaiAgentsByAgentId.g.cs @@ -0,0 +1,24 @@ +#nullable enable + +namespace ElevenLabs +{ + public partial interface IConversationalAIClient + { + /// + /// Delete Agent
+ /// Delete an agent + ///
+ /// + /// The id of an agent. This is returned on agent creation. + /// + /// + /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task> DeleteConvaiAgentsByAgentIdAsync( + string agentId, + string? xiApiKey = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.IConversationalAIClient.EditConvaiAgentsByAgentId.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.IConversationalAIClient.EditConvaiAgentsByAgentId.g.cs new file mode 100644 index 0000000..695c850 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.IConversationalAIClient.EditConvaiAgentsByAgentId.g.cs @@ -0,0 +1,55 @@ +#nullable enable + +namespace ElevenLabs +{ + public partial interface IConversationalAIClient + { + /// + /// Patches An Agent Settings
+ /// Patches an Agent settings + ///
+ /// + /// The id of an agent. This is returned on agent creation. + /// + /// + /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. + /// + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task EditConvaiAgentsByAgentIdAsync( + string agentId, + global::ElevenLabs.BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatch request, + string? xiApiKey = default, + global::System.Threading.CancellationToken cancellationToken = default); + + /// + /// Patches An Agent Settings
+ /// Patches an Agent settings + ///
+ /// + /// The id of an agent. This is returned on agent creation. + /// + /// + /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. + /// + /// + /// Conversation configuration for an agent + /// + /// + /// Platform settings for the agent are all settings that aren't related to the conversation orchestration and content. + /// + /// + /// A name to make the agent easier to find + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task EditConvaiAgentsByAgentIdAsync( + string agentId, + string? xiApiKey = default, + object? conversationConfig = default, + object? platformSettings = default, + string? name = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.IConversationalAIClient.GetConvaiAgents.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.IConversationalAIClient.GetConvaiAgents.g.cs index 990b9a5..01a6eb3 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.IConversationalAIClient.GetConvaiAgents.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.IConversationalAIClient.GetConvaiAgents.g.cs @@ -22,7 +22,7 @@ public partial interface IConversationalAIClient /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. /// /// The token to cancel the operation with - /// + /// global::System.Threading.Tasks.Task GetConvaiAgentsAsync( string? cursor = default, int? pageSize = default, diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.IConversationalAIClient.GetConvaiAgentsByAgentId.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.IConversationalAIClient.GetConvaiAgentsByAgentId.g.cs new file mode 100644 index 0000000..af5d121 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.IConversationalAIClient.GetConvaiAgentsByAgentId.g.cs @@ -0,0 +1,24 @@ +#nullable enable + +namespace ElevenLabs +{ + public partial interface IConversationalAIClient + { + /// + /// Get Agent
+ /// Retrieve config for an agent + ///
+ /// + /// The id of an agent. This is returned on agent creation. + /// + /// + /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task GetConvaiAgentsByAgentIdAsync( + string agentId, + string? xiApiKey = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.IConversationalAIClient.GetConvaiAgentsByAgentIdKnowledgeBaseByDocumentationId.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.IConversationalAIClient.GetConvaiAgentsByAgentIdKnowledgeBaseByDocumentationId.g.cs new file mode 100644 index 0000000..1f4f2ff --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.IConversationalAIClient.GetConvaiAgentsByAgentIdKnowledgeBaseByDocumentationId.g.cs @@ -0,0 +1,28 @@ +#nullable enable + +namespace ElevenLabs +{ + public partial interface IConversationalAIClient + { + /// + /// Get Documentation From Agent'S Knowledge Base
+ /// Get details about a specific documentation making up the agent's knowledge base + ///
+ /// + /// The id of an agent. This is returned on agent creation. + /// + /// + /// The id of a document from the agent's knowledge base. This is returned on document addition. + /// + /// + /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task GetConvaiAgentsByAgentIdKnowledgeBaseByDocumentationIdAsync( + string agentId, + string documentationId, + string? xiApiKey = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.IConversationalAIClient.GetConvaiAgentsByAgentIdWidget.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.IConversationalAIClient.GetConvaiAgentsByAgentIdWidget.g.cs new file mode 100644 index 0000000..5d978ef --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.IConversationalAIClient.GetConvaiAgentsByAgentIdWidget.g.cs @@ -0,0 +1,24 @@ +#nullable enable + +namespace ElevenLabs +{ + public partial interface IConversationalAIClient + { + /// + /// Get Agent Widget Config
+ /// Retrieve the widget configuration for an agent + ///
+ /// + /// The id of an agent. This is returned on agent creation. + /// + /// + /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task GetConvaiAgentsByAgentIdWidgetAsync( + string agentId, + string? xiApiKey = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.IConversationalAIClient.GetConvaiConversationGetSignedUrl.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.IConversationalAIClient.GetConvaiConversationGetSignedUrl.g.cs new file mode 100644 index 0000000..725b7f8 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.IConversationalAIClient.GetConvaiConversationGetSignedUrl.g.cs @@ -0,0 +1,24 @@ +#nullable enable + +namespace ElevenLabs +{ + public partial interface IConversationalAIClient + { + /// + /// Get Signed Url
+ /// Get a signed url to start a conversation with an agent with an agent that requires authorization + ///
+ /// + /// The id of the agent you're taking the action on. + /// + /// + /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task GetConvaiConversationGetSignedUrlAsync( + string agentId, + string? xiApiKey = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.IConversationalAIClient.GetConvaiConversations.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.IConversationalAIClient.GetConvaiConversations.g.cs new file mode 100644 index 0000000..b129684 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.IConversationalAIClient.GetConvaiConversations.g.cs @@ -0,0 +1,37 @@ +#nullable enable + +namespace ElevenLabs +{ + public partial interface IConversationalAIClient + { + /// + /// Get Conversations
+ /// Get all conversations of agents that user owns. With option to restrict to a specific agent. + ///
+ /// + /// Used for fetching next page. Cursor is returned in the response. + /// + /// + /// The id of the agent you're taking the action on. + /// + /// + /// The result of the success evaluation + /// + /// + /// How many conversations to return at maximum. Can not exceed 100, defaults to 30.
+ /// Default Value: 30 + /// + /// + /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task GetConvaiConversationsAsync( + string? cursor = default, + string? agentId = default, + global::ElevenLabs.AllOf? callSuccessful = default, + int? pageSize = default, + string? xiApiKey = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.IConversationalAIClient.GetConvaiConversationsByConversationId.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.IConversationalAIClient.GetConvaiConversationsByConversationId.g.cs new file mode 100644 index 0000000..0e50f33 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.IConversationalAIClient.GetConvaiConversationsByConversationId.g.cs @@ -0,0 +1,24 @@ +#nullable enable + +namespace ElevenLabs +{ + public partial interface IConversationalAIClient + { + /// + /// Get Conversation Details
+ /// Get the details of a particular conversation + ///
+ /// + /// The id of the conversation you're taking the action on. + /// + /// + /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task GetConvaiConversationsByConversationIdAsync( + string conversationId, + string? xiApiKey = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.IConversationalAIClient.GetConvaiConversationsByConversationIdAudio.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.IConversationalAIClient.GetConvaiConversationsByConversationIdAudio.g.cs new file mode 100644 index 0000000..e4020e2 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.IConversationalAIClient.GetConvaiConversationsByConversationIdAudio.g.cs @@ -0,0 +1,24 @@ +#nullable enable + +namespace ElevenLabs +{ + public partial interface IConversationalAIClient + { + /// + /// Get Conversation Audio
+ /// Get the audio recording of a particular conversation + ///
+ /// + /// The id of the conversation you're taking the action on. + /// + /// + /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. + /// + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task GetConvaiConversationsByConversationIdAudioAsync( + string conversationId, + string? xiApiKey = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.IConversationalAIClient.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.IConversationalAIClient.g.cs index ed73808..7748fb1 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.IConversationalAIClient.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.IConversationalAIClient.g.cs @@ -24,6 +24,12 @@ public partial interface IConversationalAIClient : global::System.IDisposable /// 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. + /// + public bool ReadResponseAsString { get; set; } + /// /// /// diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.IDubbingClient.CreateDubbing.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.IDubbingClient.CreateDubbing.g.cs index ec91b0f..bf677b6 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.IDubbingClient.CreateDubbing.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.IDubbingClient.CreateDubbing.g.cs @@ -13,7 +13,7 @@ public partial interface IDubbingClient /// /// /// The token to cancel the operation with - /// + /// global::System.Threading.Tasks.Task CreateDubbingAsync( global::ElevenLabs.BodyDubAVideoOrAnAudioFileV1DubbingPost request, string? xiApiKey = default, diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.IDubbingClient.DeleteDubbingByDubbingId.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.IDubbingClient.DeleteDubbingByDubbingId.g.cs index 4e5539f..a14359c 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.IDubbingClient.DeleteDubbingByDubbingId.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.IDubbingClient.DeleteDubbingByDubbingId.g.cs @@ -15,7 +15,7 @@ public partial interface IDubbingClient /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. /// /// The token to cancel the operation with - /// + /// global::System.Threading.Tasks.Task DeleteDubbingByDubbingIdAsync( string dubbingId, string? xiApiKey = default, diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.IDubbingClient.GetDubbingByDubbingId.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.IDubbingClient.GetDubbingByDubbingId.g.cs index 898def8..7ab0d4f 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.IDubbingClient.GetDubbingByDubbingId.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.IDubbingClient.GetDubbingByDubbingId.g.cs @@ -15,7 +15,7 @@ public partial interface IDubbingClient /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. /// /// The token to cancel the operation with - /// + /// global::System.Threading.Tasks.Task GetDubbingByDubbingIdAsync( string dubbingId, string? xiApiKey = default, diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.IDubbingClient.GetDubbingByDubbingIdAudioByLanguageCode.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.IDubbingClient.GetDubbingByDubbingIdAudioByLanguageCode.g.cs index 1dd8a97..019bf03 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.IDubbingClient.GetDubbingByDubbingIdAudioByLanguageCode.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.IDubbingClient.GetDubbingByDubbingIdAudioByLanguageCode.g.cs @@ -18,7 +18,7 @@ public partial interface IDubbingClient /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. /// /// The token to cancel the operation with - /// + /// global::System.Threading.Tasks.Task GetDubbingByDubbingIdAudioByLanguageCodeAsync( string dubbingId, string languageCode, diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.IDubbingClient.GetDubbingByDubbingIdTranscriptByLanguageCode.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.IDubbingClient.GetDubbingByDubbingIdTranscriptByLanguageCode.g.cs index 1a57f2d..bcfc509 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.IDubbingClient.GetDubbingByDubbingIdTranscriptByLanguageCode.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.IDubbingClient.GetDubbingByDubbingIdTranscriptByLanguageCode.g.cs @@ -21,7 +21,7 @@ public partial interface IDubbingClient /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. /// /// The token to cancel the operation with - /// + /// global::System.Threading.Tasks.Task GetDubbingByDubbingIdTranscriptByLanguageCodeAsync( string dubbingId, string languageCode, diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.IDubbingClient.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.IDubbingClient.g.cs index 31e320d..1c36bb2 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.IDubbingClient.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.IDubbingClient.g.cs @@ -24,6 +24,12 @@ public partial interface IDubbingClient : global::System.IDisposable /// 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. + /// + public bool ReadResponseAsString { get; set; } + /// /// /// diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.IElevenLabsClient.GetDocs.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.IElevenLabsClient.GetDocs.g.cs index a44c785..d24db21 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.IElevenLabsClient.GetDocs.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.IElevenLabsClient.GetDocs.g.cs @@ -8,7 +8,7 @@ public partial interface IElevenLabsClient /// Redirect To Mintlify /// /// The token to cancel the operation with - /// + /// global::System.Threading.Tasks.Task GetDocsAsync( global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.IElevenLabsClient.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.IElevenLabsClient.g.cs index 1ffc29a..e469485 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.IElevenLabsClient.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.IElevenLabsClient.g.cs @@ -25,6 +25,12 @@ public partial interface IElevenLabsClient : global::System.IDisposable /// 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. + /// + public bool ReadResponseAsString { get; set; } + /// /// /// diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.IModelsClient.GetModels.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.IModelsClient.GetModels.g.cs index 1fe5216..6499380 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.IModelsClient.GetModels.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.IModelsClient.GetModels.g.cs @@ -12,7 +12,7 @@ public partial interface IModelsClient /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. /// /// The token to cancel the operation with - /// + /// global::System.Threading.Tasks.Task> GetModelsAsync( string? xiApiKey = default, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.IModelsClient.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.IModelsClient.g.cs index bceb949..52d77b6 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.IModelsClient.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.IModelsClient.g.cs @@ -25,6 +25,12 @@ public partial interface IModelsClient : global::System.IDisposable /// 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. + /// + public bool ReadResponseAsString { get; set; } + /// /// /// diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.IProjectsClient.CreateProjectsAdd.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.IProjectsClient.CreateProjectsAdd.g.cs index 5828b20..820f785 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.IProjectsClient.CreateProjectsAdd.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.IProjectsClient.CreateProjectsAdd.g.cs @@ -13,7 +13,7 @@ public partial interface IProjectsClient /// /// /// The token to cancel the operation with - /// + /// global::System.Threading.Tasks.Task CreateProjectsAddAsync( global::ElevenLabs.BodyAddProjectV1ProjectsAddPost request, string? xiApiKey = default, @@ -100,6 +100,9 @@ public partial interface IProjectsClient /// /// [Deprecated] A url that will be called by our service when the project is converted with a json containing the status of the conversion /// + /// + /// Whether to run quality check on the generated audio and regenerate if needed. + /// /// The token to cancel the operation with /// global::System.Threading.Tasks.Task CreateProjectsAddAsync( @@ -126,6 +129,7 @@ public partial interface IProjectsClient bool? volumeNormalization = default, global::System.Collections.Generic.IList? pronunciationDictionaryLocators = default, string? callbackUrl = default, + bool? qualityCheckOn = default, global::System.Threading.CancellationToken cancellationToken = default); } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.IProjectsClient.CreateProjectsByProjectId.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.IProjectsClient.CreateProjectsByProjectId.g.cs index bbdefd9..a3c9e75 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.IProjectsClient.CreateProjectsByProjectId.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.IProjectsClient.CreateProjectsByProjectId.g.cs @@ -16,7 +16,7 @@ public partial interface IProjectsClient /// /// /// The token to cancel the operation with - /// + /// global::System.Threading.Tasks.Task CreateProjectsByProjectIdAsync( string projectId, global::ElevenLabs.BodyEditBasicProjectInfoV1ProjectsProjectIdPost request, @@ -55,6 +55,9 @@ public partial interface IProjectsClient /// When the project is downloaded, should the returned audio have postprocessing in order to make it compliant with audiobook normalized volume requirements
/// Default Value: false /// + /// + /// Whether to run quality check on the generated audio and regenerate if needed. + /// /// The token to cancel the operation with /// global::System.Threading.Tasks.Task CreateProjectsByProjectIdAsync( @@ -67,6 +70,7 @@ public partial interface IProjectsClient string? author = default, string? isbnNumber = default, bool? volumeNormalization = default, + bool? qualityCheckOn = default, global::System.Threading.CancellationToken cancellationToken = default); } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.IProjectsClient.CreateProjectsByProjectIdChaptersAdd.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.IProjectsClient.CreateProjectsByProjectIdChaptersAdd.g.cs index aca893c..f627eaa 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.IProjectsClient.CreateProjectsByProjectIdChaptersAdd.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.IProjectsClient.CreateProjectsByProjectIdChaptersAdd.g.cs @@ -16,7 +16,7 @@ public partial interface IProjectsClient /// /// /// The token to cancel the operation with - /// + /// global::System.Threading.Tasks.Task CreateProjectsByProjectIdChaptersAddAsync( string projectId, global::ElevenLabs.BodyAddChapterToAProjectV1ProjectsProjectIdChaptersAddPost request, diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.IProjectsClient.CreateProjectsByProjectIdChaptersByChapterIdConvert.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.IProjectsClient.CreateProjectsByProjectIdChaptersByChapterIdConvert.g.cs index f1e4530..e647171 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.IProjectsClient.CreateProjectsByProjectIdChaptersByChapterIdConvert.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.IProjectsClient.CreateProjectsByProjectIdChaptersByChapterIdConvert.g.cs @@ -18,7 +18,7 @@ public partial interface IProjectsClient /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. /// /// The token to cancel the operation with - /// + /// global::System.Threading.Tasks.Task CreateProjectsByProjectIdChaptersByChapterIdConvertAsync( string projectId, string chapterId, diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.IProjectsClient.CreateProjectsByProjectIdChaptersByChapterIdSnapshotsByChapterSnapshotIdStream.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.IProjectsClient.CreateProjectsByProjectIdChaptersByChapterIdSnapshotsByChapterSnapshotIdStream.g.cs index a46a2e2..fa85df8 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.IProjectsClient.CreateProjectsByProjectIdChaptersByChapterIdSnapshotsByChapterSnapshotIdStream.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.IProjectsClient.CreateProjectsByProjectIdChaptersByChapterIdSnapshotsByChapterSnapshotIdStream.g.cs @@ -22,8 +22,8 @@ public partial interface IProjectsClient /// /// /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task CreateProjectsByProjectIdChaptersByChapterIdSnapshotsByChapterSnapshotIdStreamAsync( + /// + global::System.Threading.Tasks.Task CreateProjectsByProjectIdChaptersByChapterIdSnapshotsByChapterSnapshotIdStreamAsync( string projectId, string chapterId, string chapterSnapshotId, @@ -53,7 +53,7 @@ public partial interface IProjectsClient /// /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task CreateProjectsByProjectIdChaptersByChapterIdSnapshotsByChapterSnapshotIdStreamAsync( + global::System.Threading.Tasks.Task CreateProjectsByProjectIdChaptersByChapterIdSnapshotsByChapterSnapshotIdStreamAsync( string projectId, string chapterId, string chapterSnapshotId, diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.IProjectsClient.CreateProjectsByProjectIdConvert.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.IProjectsClient.CreateProjectsByProjectIdConvert.g.cs index 6c8dc35..104b845 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.IProjectsClient.CreateProjectsByProjectIdConvert.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.IProjectsClient.CreateProjectsByProjectIdConvert.g.cs @@ -15,7 +15,7 @@ public partial interface IProjectsClient /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. /// /// The token to cancel the operation with - /// + /// global::System.Threading.Tasks.Task CreateProjectsByProjectIdConvertAsync( string projectId, string? xiApiKey = default, diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.IProjectsClient.CreateProjectsByProjectIdSnapshotsByProjectSnapshotIdArchive.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.IProjectsClient.CreateProjectsByProjectIdSnapshotsByProjectSnapshotIdArchive.g.cs index 7e1802e..c8bcf4c 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.IProjectsClient.CreateProjectsByProjectIdSnapshotsByProjectSnapshotIdArchive.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.IProjectsClient.CreateProjectsByProjectIdSnapshotsByProjectSnapshotIdArchive.g.cs @@ -18,8 +18,8 @@ public partial interface IProjectsClient /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. /// /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task CreateProjectsByProjectIdSnapshotsByProjectSnapshotIdArchiveAsync( + /// + global::System.Threading.Tasks.Task CreateProjectsByProjectIdSnapshotsByProjectSnapshotIdArchiveAsync( string projectId, string projectSnapshotId, string? xiApiKey = default, diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.IProjectsClient.CreateProjectsByProjectIdSnapshotsByProjectSnapshotIdStream.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.IProjectsClient.CreateProjectsByProjectIdSnapshotsByProjectSnapshotIdStream.g.cs index de40199..7e64144 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.IProjectsClient.CreateProjectsByProjectIdSnapshotsByProjectSnapshotIdStream.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.IProjectsClient.CreateProjectsByProjectIdSnapshotsByProjectSnapshotIdStream.g.cs @@ -19,8 +19,8 @@ public partial interface IProjectsClient /// /// /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task CreateProjectsByProjectIdSnapshotsByProjectSnapshotIdStreamAsync( + /// + global::System.Threading.Tasks.Task CreateProjectsByProjectIdSnapshotsByProjectSnapshotIdStreamAsync( string projectId, string projectSnapshotId, global::ElevenLabs.BodyStreamProjectAudioV1ProjectsProjectIdSnapshotsProjectSnapshotIdStreamPost request, @@ -46,7 +46,7 @@ public partial interface IProjectsClient /// /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task CreateProjectsByProjectIdSnapshotsByProjectSnapshotIdStreamAsync( + global::System.Threading.Tasks.Task CreateProjectsByProjectIdSnapshotsByProjectSnapshotIdStreamAsync( string projectId, string projectSnapshotId, string? xiApiKey = default, diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.IProjectsClient.CreateProjectsByProjectIdUpdatePronunciationDictionaries.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.IProjectsClient.CreateProjectsByProjectIdUpdatePronunciationDictionaries.g.cs index db3c38b..1569a13 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.IProjectsClient.CreateProjectsByProjectIdUpdatePronunciationDictionaries.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.IProjectsClient.CreateProjectsByProjectIdUpdatePronunciationDictionaries.g.cs @@ -16,7 +16,7 @@ public partial interface IProjectsClient /// /// /// The token to cancel the operation with - /// + /// global::System.Threading.Tasks.Task CreateProjectsByProjectIdUpdatePronunciationDictionariesAsync( string projectId, global::ElevenLabs.BodyUpdatePronunciationDictionariesV1ProjectsProjectIdUpdatePronunciationDictionariesPost request, diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.IProjectsClient.DeleteProjectsByProjectId.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.IProjectsClient.DeleteProjectsByProjectId.g.cs index cd28c34..cd7c8b4 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.IProjectsClient.DeleteProjectsByProjectId.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.IProjectsClient.DeleteProjectsByProjectId.g.cs @@ -15,7 +15,7 @@ public partial interface IProjectsClient /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. /// /// The token to cancel the operation with - /// + /// global::System.Threading.Tasks.Task DeleteProjectsByProjectIdAsync( string projectId, string? xiApiKey = default, diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.IProjectsClient.DeleteProjectsByProjectIdChaptersByChapterId.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.IProjectsClient.DeleteProjectsByProjectIdChaptersByChapterId.g.cs index 7bdf9e6..306988e 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.IProjectsClient.DeleteProjectsByProjectIdChaptersByChapterId.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.IProjectsClient.DeleteProjectsByProjectIdChaptersByChapterId.g.cs @@ -18,7 +18,7 @@ public partial interface IProjectsClient /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. /// /// The token to cancel the operation with - /// + /// global::System.Threading.Tasks.Task DeleteProjectsByProjectIdChaptersByChapterIdAsync( string projectId, string chapterId, diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.IProjectsClient.GetProjects.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.IProjectsClient.GetProjects.g.cs index 882586b..8e8e224 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.IProjectsClient.GetProjects.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.IProjectsClient.GetProjects.g.cs @@ -12,7 +12,7 @@ public partial interface IProjectsClient /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. /// /// The token to cancel the operation with - /// + /// global::System.Threading.Tasks.Task GetProjectsAsync( string? xiApiKey = default, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.IProjectsClient.GetProjectsByProjectId.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.IProjectsClient.GetProjectsByProjectId.g.cs index 1164ffa..5b68d7e 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.IProjectsClient.GetProjectsByProjectId.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.IProjectsClient.GetProjectsByProjectId.g.cs @@ -15,7 +15,7 @@ public partial interface IProjectsClient /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. /// /// The token to cancel the operation with - /// + /// global::System.Threading.Tasks.Task GetProjectsByProjectIdAsync( string projectId, string? xiApiKey = default, diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.IProjectsClient.GetProjectsByProjectIdChapters.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.IProjectsClient.GetProjectsByProjectIdChapters.g.cs index 61200c6..a9283a2 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.IProjectsClient.GetProjectsByProjectIdChapters.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.IProjectsClient.GetProjectsByProjectIdChapters.g.cs @@ -15,7 +15,7 @@ public partial interface IProjectsClient /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. /// /// The token to cancel the operation with - /// + /// global::System.Threading.Tasks.Task GetProjectsByProjectIdChaptersAsync( string projectId, string? xiApiKey = default, diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.IProjectsClient.GetProjectsByProjectIdChaptersByChapterId.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.IProjectsClient.GetProjectsByProjectIdChaptersByChapterId.g.cs index d3b1c19..3218ded 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.IProjectsClient.GetProjectsByProjectIdChaptersByChapterId.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.IProjectsClient.GetProjectsByProjectIdChaptersByChapterId.g.cs @@ -18,7 +18,7 @@ public partial interface IProjectsClient /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. /// /// The token to cancel the operation with - /// + /// global::System.Threading.Tasks.Task GetProjectsByProjectIdChaptersByChapterIdAsync( string projectId, string chapterId, diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.IProjectsClient.GetProjectsByProjectIdChaptersByChapterIdSnapshots.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.IProjectsClient.GetProjectsByProjectIdChaptersByChapterIdSnapshots.g.cs index c472df7..284c0c8 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.IProjectsClient.GetProjectsByProjectIdChaptersByChapterIdSnapshots.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.IProjectsClient.GetProjectsByProjectIdChaptersByChapterIdSnapshots.g.cs @@ -18,7 +18,7 @@ public partial interface IProjectsClient /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. /// /// The token to cancel the operation with - /// + /// global::System.Threading.Tasks.Task GetProjectsByProjectIdChaptersByChapterIdSnapshotsAsync( string projectId, string chapterId, diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.IProjectsClient.GetProjectsByProjectIdSnapshots.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.IProjectsClient.GetProjectsByProjectIdSnapshots.g.cs index f8c43bc..349a85e 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.IProjectsClient.GetProjectsByProjectIdSnapshots.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.IProjectsClient.GetProjectsByProjectIdSnapshots.g.cs @@ -15,7 +15,7 @@ public partial interface IProjectsClient /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. /// /// The token to cancel the operation with - /// + /// global::System.Threading.Tasks.Task GetProjectsByProjectIdSnapshotsAsync( string projectId, string? xiApiKey = default, diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.IProjectsClient.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.IProjectsClient.g.cs index 86add93..1797aff 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.IProjectsClient.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.IProjectsClient.g.cs @@ -25,6 +25,12 @@ public partial interface IProjectsClient : global::System.IDisposable /// 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. + /// + public bool ReadResponseAsString { get; set; } + /// /// /// diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.IPronunciationDictionaryClient.CreatePronunciationDictionariesAddFromFile.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.IPronunciationDictionaryClient.CreatePronunciationDictionariesAddFromFile.g.cs index fdbeab3..4490dbd 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.IPronunciationDictionaryClient.CreatePronunciationDictionariesAddFromFile.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.IPronunciationDictionaryClient.CreatePronunciationDictionariesAddFromFile.g.cs @@ -13,7 +13,7 @@ public partial interface IPronunciationDictionaryClient /// /// /// The token to cancel the operation with - /// + /// global::System.Threading.Tasks.Task CreatePronunciationDictionariesAddFromFileAsync( global::ElevenLabs.BodyAddAPronunciationDictionaryV1PronunciationDictionariesAddFromFilePost request, string? xiApiKey = default, diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.IPronunciationDictionaryClient.CreatePronunciationDictionariesByPronunciationDictionaryIdAddRules.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.IPronunciationDictionaryClient.CreatePronunciationDictionariesByPronunciationDictionaryIdAddRules.g.cs index 65604f7..4b0e8d1 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.IPronunciationDictionaryClient.CreatePronunciationDictionariesByPronunciationDictionaryIdAddRules.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.IPronunciationDictionaryClient.CreatePronunciationDictionariesByPronunciationDictionaryIdAddRules.g.cs @@ -16,7 +16,7 @@ public partial interface IPronunciationDictionaryClient /// /// /// The token to cancel the operation with - /// + /// global::System.Threading.Tasks.Task CreatePronunciationDictionariesByPronunciationDictionaryIdAddRulesAsync( string pronunciationDictionaryId, global::ElevenLabs.BodyAddRulesToThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdAddRulesPost request, diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.IPronunciationDictionaryClient.CreatePronunciationDictionariesByPronunciationDictionaryIdRemoveRules.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.IPronunciationDictionaryClient.CreatePronunciationDictionariesByPronunciationDictionaryIdRemoveRules.g.cs index 2ca3d79..5bd7501 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.IPronunciationDictionaryClient.CreatePronunciationDictionariesByPronunciationDictionaryIdRemoveRules.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.IPronunciationDictionaryClient.CreatePronunciationDictionariesByPronunciationDictionaryIdRemoveRules.g.cs @@ -16,7 +16,7 @@ public partial interface IPronunciationDictionaryClient /// /// /// The token to cancel the operation with - /// + /// global::System.Threading.Tasks.Task CreatePronunciationDictionariesByPronunciationDictionaryIdRemoveRulesAsync( string pronunciationDictionaryId, global::ElevenLabs.BodyRemoveRulesFromThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdRemoveRulesPost request, diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.IPronunciationDictionaryClient.GetPronunciationDictionaries.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.IPronunciationDictionaryClient.GetPronunciationDictionaries.g.cs index 4cb581b..813dd21 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.IPronunciationDictionaryClient.GetPronunciationDictionaries.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.IPronunciationDictionaryClient.GetPronunciationDictionaries.g.cs @@ -19,7 +19,7 @@ public partial interface IPronunciationDictionaryClient /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. /// /// The token to cancel the operation with - /// + /// global::System.Threading.Tasks.Task GetPronunciationDictionariesAsync( string? cursor = default, int? pageSize = default, diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.IPronunciationDictionaryClient.GetPronunciationDictionariesByDictionaryIdByVersionIdDownload.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.IPronunciationDictionaryClient.GetPronunciationDictionariesByDictionaryIdByVersionIdDownload.g.cs index 4f72bf3..862b400 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.IPronunciationDictionaryClient.GetPronunciationDictionariesByDictionaryIdByVersionIdDownload.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.IPronunciationDictionaryClient.GetPronunciationDictionariesByDictionaryIdByVersionIdDownload.g.cs @@ -18,8 +18,8 @@ public partial interface IPronunciationDictionaryClient /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. /// /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task GetPronunciationDictionariesByDictionaryIdByVersionIdDownloadAsync( + /// + global::System.Threading.Tasks.Task GetPronunciationDictionariesByDictionaryIdByVersionIdDownloadAsync( string dictionaryId, string versionId, string? xiApiKey = default, diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.IPronunciationDictionaryClient.GetPronunciationDictionariesByPronunciationDictionaryId.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.IPronunciationDictionaryClient.GetPronunciationDictionariesByPronunciationDictionaryId.g.cs index 0a2394a..6e648c2 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.IPronunciationDictionaryClient.GetPronunciationDictionariesByPronunciationDictionaryId.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.IPronunciationDictionaryClient.GetPronunciationDictionariesByPronunciationDictionaryId.g.cs @@ -15,7 +15,7 @@ public partial interface IPronunciationDictionaryClient /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. /// /// The token to cancel the operation with - /// + /// global::System.Threading.Tasks.Task GetPronunciationDictionariesByPronunciationDictionaryIdAsync( string pronunciationDictionaryId, string? xiApiKey = default, diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.IPronunciationDictionaryClient.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.IPronunciationDictionaryClient.g.cs index 569cab6..0db1ebc 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.IPronunciationDictionaryClient.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.IPronunciationDictionaryClient.g.cs @@ -24,6 +24,12 @@ public partial interface IPronunciationDictionaryClient : global::System.IDispos /// 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. + /// + public bool ReadResponseAsString { get; set; } + /// /// /// diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.ISamplesClient.DeleteVoicesByVoiceIdSamplesBySampleId.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.ISamplesClient.DeleteVoicesByVoiceIdSamplesBySampleId.g.cs index 94b2096..a58ed41 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.ISamplesClient.DeleteVoicesByVoiceIdSamplesBySampleId.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.ISamplesClient.DeleteVoicesByVoiceIdSamplesBySampleId.g.cs @@ -18,7 +18,7 @@ public partial interface ISamplesClient /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. /// /// The token to cancel the operation with - /// + /// global::System.Threading.Tasks.Task DeleteVoicesByVoiceIdSamplesBySampleIdAsync( string voiceId, string sampleId, diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.ISamplesClient.GetVoicesByVoiceIdSamplesBySampleIdAudio.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.ISamplesClient.GetVoicesByVoiceIdSamplesBySampleIdAudio.g.cs index 46816ef..29f32b3 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.ISamplesClient.GetVoicesByVoiceIdSamplesBySampleIdAudio.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.ISamplesClient.GetVoicesByVoiceIdSamplesBySampleIdAudio.g.cs @@ -18,8 +18,8 @@ public partial interface ISamplesClient /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. /// /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task GetVoicesByVoiceIdSamplesBySampleIdAudioAsync( + /// + global::System.Threading.Tasks.Task GetVoicesByVoiceIdSamplesBySampleIdAudioAsync( string voiceId, string sampleId, string? xiApiKey = default, diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.ISamplesClient.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.ISamplesClient.g.cs index d89198b..6f0e60a 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.ISamplesClient.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.ISamplesClient.g.cs @@ -25,6 +25,12 @@ public partial interface ISamplesClient : global::System.IDisposable /// 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. + /// + public bool ReadResponseAsString { get; set; } + /// /// /// diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.ISoundGenerationClient.CreateSoundGeneration.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.ISoundGenerationClient.CreateSoundGeneration.g.cs index 813f977..c291f94 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.ISoundGenerationClient.CreateSoundGeneration.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.ISoundGenerationClient.CreateSoundGeneration.g.cs @@ -13,8 +13,8 @@ public partial interface ISoundGenerationClient /// /// /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task CreateSoundGenerationAsync( + /// + global::System.Threading.Tasks.Task CreateSoundGenerationAsync( global::ElevenLabs.BodySoundGenerationV1SoundGenerationPost request, string? xiApiKey = default, global::System.Threading.CancellationToken cancellationToken = default); @@ -38,7 +38,7 @@ public partial interface ISoundGenerationClient /// /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task CreateSoundGenerationAsync( + global::System.Threading.Tasks.Task CreateSoundGenerationAsync( string text, string? xiApiKey = default, double? durationSeconds = default, diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.ISoundGenerationClient.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.ISoundGenerationClient.g.cs index c0af995..bc87bdc 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.ISoundGenerationClient.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.ISoundGenerationClient.g.cs @@ -24,6 +24,12 @@ public partial interface ISoundGenerationClient : global::System.IDisposable /// 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. + /// + public bool ReadResponseAsString { get; set; } + /// /// /// diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.ISpeechHistoryClient.CreateHistoryDownload.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.ISpeechHistoryClient.CreateHistoryDownload.g.cs index d0f2827..714ed53 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.ISpeechHistoryClient.CreateHistoryDownload.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.ISpeechHistoryClient.CreateHistoryDownload.g.cs @@ -13,8 +13,8 @@ public partial interface ISpeechHistoryClient /// /// /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task CreateHistoryDownloadAsync( + /// + global::System.Threading.Tasks.Task CreateHistoryDownloadAsync( global::ElevenLabs.BodyDownloadHistoryItemsV1HistoryDownloadPost request, string? xiApiKey = default, global::System.Threading.CancellationToken cancellationToken = default); @@ -34,7 +34,7 @@ public partial interface ISpeechHistoryClient /// /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task CreateHistoryDownloadAsync( + global::System.Threading.Tasks.Task CreateHistoryDownloadAsync( global::System.Collections.Generic.IList historyItemIds, string? xiApiKey = default, string? outputFormat = default, diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.ISpeechHistoryClient.DeleteHistoryByHistoryItemId.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.ISpeechHistoryClient.DeleteHistoryByHistoryItemId.g.cs index b33e732..211f321 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.ISpeechHistoryClient.DeleteHistoryByHistoryItemId.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.ISpeechHistoryClient.DeleteHistoryByHistoryItemId.g.cs @@ -15,7 +15,7 @@ public partial interface ISpeechHistoryClient /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. /// /// The token to cancel the operation with - /// + /// global::System.Threading.Tasks.Task DeleteHistoryByHistoryItemIdAsync( string historyItemId, string? xiApiKey = default, diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.ISpeechHistoryClient.GetHistory.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.ISpeechHistoryClient.GetHistory.g.cs index b45f603..d30ab1b 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.ISpeechHistoryClient.GetHistory.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.ISpeechHistoryClient.GetHistory.g.cs @@ -22,7 +22,7 @@ public partial interface ISpeechHistoryClient /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. /// /// The token to cancel the operation with - /// + /// global::System.Threading.Tasks.Task GetHistoryAsync( int? pageSize = default, string? startAfterHistoryItemId = default, diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.ISpeechHistoryClient.GetHistoryByHistoryItemId.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.ISpeechHistoryClient.GetHistoryByHistoryItemId.g.cs index 67b03af..e643091 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.ISpeechHistoryClient.GetHistoryByHistoryItemId.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.ISpeechHistoryClient.GetHistoryByHistoryItemId.g.cs @@ -15,7 +15,7 @@ public partial interface ISpeechHistoryClient /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. /// /// The token to cancel the operation with - /// + /// global::System.Threading.Tasks.Task GetHistoryByHistoryItemIdAsync( string historyItemId, string? xiApiKey = default, diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.ISpeechHistoryClient.GetHistoryByHistoryItemIdAudio.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.ISpeechHistoryClient.GetHistoryByHistoryItemIdAudio.g.cs index 9d76c2e..b9869b6 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.ISpeechHistoryClient.GetHistoryByHistoryItemIdAudio.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.ISpeechHistoryClient.GetHistoryByHistoryItemIdAudio.g.cs @@ -15,8 +15,8 @@ public partial interface ISpeechHistoryClient /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. /// /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task GetHistoryByHistoryItemIdAudioAsync( + /// + global::System.Threading.Tasks.Task GetHistoryByHistoryItemIdAudioAsync( string historyItemId, string? xiApiKey = default, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.ISpeechHistoryClient.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.ISpeechHistoryClient.g.cs index 6be3fa4..ad80fac 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.ISpeechHistoryClient.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.ISpeechHistoryClient.g.cs @@ -25,6 +25,12 @@ public partial interface ISpeechHistoryClient : global::System.IDisposable /// 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. + /// + public bool ReadResponseAsString { get; set; } + /// /// /// diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.ISpeechToSpeechClient.CreateSpeechToSpeechByVoiceId.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.ISpeechToSpeechClient.CreateSpeechToSpeechByVoiceId.g.cs index ee01f58..a416ac1 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.ISpeechToSpeechClient.CreateSpeechToSpeechByVoiceId.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.ISpeechToSpeechClient.CreateSpeechToSpeechByVoiceId.g.cs @@ -44,8 +44,8 @@ public partial interface ISpeechToSpeechClient /// /// /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task CreateSpeechToSpeechByVoiceIdAsync( + /// + global::System.Threading.Tasks.Task CreateSpeechToSpeechByVoiceIdAsync( string voiceId, global::ElevenLabs.BodySpeechToSpeechV1SpeechToSpeechVoiceIdPost request, bool? enableLogging = default, @@ -114,7 +114,7 @@ public partial interface ISpeechToSpeechClient /// /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task CreateSpeechToSpeechByVoiceIdAsync( + global::System.Threading.Tasks.Task CreateSpeechToSpeechByVoiceIdAsync( string voiceId, byte[] audio, string audioname, diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.ISpeechToSpeechClient.CreateSpeechToSpeechByVoiceIdStream.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.ISpeechToSpeechClient.CreateSpeechToSpeechByVoiceIdStream.g.cs index f24b80f..cf7cce4 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.ISpeechToSpeechClient.CreateSpeechToSpeechByVoiceIdStream.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.ISpeechToSpeechClient.CreateSpeechToSpeechByVoiceIdStream.g.cs @@ -44,8 +44,8 @@ public partial interface ISpeechToSpeechClient /// /// /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task CreateSpeechToSpeechByVoiceIdStreamAsync( + /// + global::System.Threading.Tasks.Task CreateSpeechToSpeechByVoiceIdStreamAsync( string voiceId, global::ElevenLabs.BodySpeechToSpeechStreamingV1SpeechToSpeechVoiceIdStreamPost request, bool? enableLogging = default, @@ -114,7 +114,7 @@ public partial interface ISpeechToSpeechClient /// /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task CreateSpeechToSpeechByVoiceIdStreamAsync( + global::System.Threading.Tasks.Task CreateSpeechToSpeechByVoiceIdStreamAsync( string voiceId, byte[] audio, string audioname, diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.ISpeechToSpeechClient.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.ISpeechToSpeechClient.g.cs index dfdbbf9..47a7647 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.ISpeechToSpeechClient.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.ISpeechToSpeechClient.g.cs @@ -25,6 +25,12 @@ public partial interface ISpeechToSpeechClient : global::System.IDisposable /// 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. + /// + public bool ReadResponseAsString { get; set; } + /// /// /// diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.ITextToSpeechClient.CreateTextToSpeechByVoiceId.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.ITextToSpeechClient.CreateTextToSpeechByVoiceId.g.cs index 9456da8..c0f586a 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.ITextToSpeechClient.CreateTextToSpeechByVoiceId.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.ITextToSpeechClient.CreateTextToSpeechByVoiceId.g.cs @@ -44,8 +44,8 @@ public partial interface ITextToSpeechClient /// /// /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task CreateTextToSpeechByVoiceIdAsync( + /// + global::System.Threading.Tasks.Task CreateTextToSpeechByVoiceIdAsync( string voiceId, global::ElevenLabs.BodyTextToSpeechV1TextToSpeechVoiceIdPost request, bool? enableLogging = default, @@ -129,7 +129,7 @@ public partial interface ITextToSpeechClient /// /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task CreateTextToSpeechByVoiceIdAsync( + global::System.Threading.Tasks.Task CreateTextToSpeechByVoiceIdAsync( string voiceId, string text, bool? enableLogging = default, diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.ITextToSpeechClient.CreateTextToSpeechByVoiceIdStream.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.ITextToSpeechClient.CreateTextToSpeechByVoiceIdStream.g.cs index 8ceede0..f5c6517 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.ITextToSpeechClient.CreateTextToSpeechByVoiceIdStream.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.ITextToSpeechClient.CreateTextToSpeechByVoiceIdStream.g.cs @@ -44,8 +44,8 @@ public partial interface ITextToSpeechClient /// /// /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task CreateTextToSpeechByVoiceIdStreamAsync( + /// + global::System.Threading.Tasks.Task CreateTextToSpeechByVoiceIdStreamAsync( string voiceId, global::ElevenLabs.BodyTextToSpeechStreamingV1TextToSpeechVoiceIdStreamPost request, bool? enableLogging = default, @@ -129,7 +129,7 @@ public partial interface ITextToSpeechClient /// /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task CreateTextToSpeechByVoiceIdStreamAsync( + global::System.Threading.Tasks.Task CreateTextToSpeechByVoiceIdStreamAsync( string voiceId, string text, bool? enableLogging = default, diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.ITextToSpeechClient.CreateTextToSpeechByVoiceIdStreamWithTimestamps.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.ITextToSpeechClient.CreateTextToSpeechByVoiceIdStreamWithTimestamps.g.cs index cb14a68..ce0fcef 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.ITextToSpeechClient.CreateTextToSpeechByVoiceIdStreamWithTimestamps.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.ITextToSpeechClient.CreateTextToSpeechByVoiceIdStreamWithTimestamps.g.cs @@ -44,8 +44,8 @@ public partial interface ITextToSpeechClient /// /// /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task CreateTextToSpeechByVoiceIdStreamWithTimestampsAsync( + /// + global::System.Threading.Tasks.Task CreateTextToSpeechByVoiceIdStreamWithTimestampsAsync( string voiceId, global::ElevenLabs.BodyTextToSpeechStreamingWithTimestampsV1TextToSpeechVoiceIdStreamWithTimestampsPost request, bool? enableLogging = default, @@ -129,7 +129,7 @@ public partial interface ITextToSpeechClient /// /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task CreateTextToSpeechByVoiceIdStreamWithTimestampsAsync( + global::System.Threading.Tasks.Task CreateTextToSpeechByVoiceIdStreamWithTimestampsAsync( string voiceId, string text, bool? enableLogging = default, diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.ITextToSpeechClient.CreateTextToSpeechByVoiceIdWithTimestamps.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.ITextToSpeechClient.CreateTextToSpeechByVoiceIdWithTimestamps.g.cs index 4aea061..bb15fea 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.ITextToSpeechClient.CreateTextToSpeechByVoiceIdWithTimestamps.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.ITextToSpeechClient.CreateTextToSpeechByVoiceIdWithTimestamps.g.cs @@ -44,8 +44,8 @@ public partial interface ITextToSpeechClient /// /// /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task CreateTextToSpeechByVoiceIdWithTimestampsAsync( + /// + global::System.Threading.Tasks.Task CreateTextToSpeechByVoiceIdWithTimestampsAsync( string voiceId, global::ElevenLabs.BodyTextToSpeechWithTimestampsV1TextToSpeechVoiceIdWithTimestampsPost request, bool? enableLogging = default, @@ -129,7 +129,7 @@ public partial interface ITextToSpeechClient /// /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task CreateTextToSpeechByVoiceIdWithTimestampsAsync( + global::System.Threading.Tasks.Task CreateTextToSpeechByVoiceIdWithTimestampsAsync( string voiceId, string text, bool? enableLogging = default, diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.ITextToSpeechClient.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.ITextToSpeechClient.g.cs index fab15fa..9dee270 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.ITextToSpeechClient.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.ITextToSpeechClient.g.cs @@ -25,6 +25,12 @@ public partial interface ITextToSpeechClient : global::System.IDisposable /// 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. + /// + public bool ReadResponseAsString { get; set; } + /// /// /// diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.ITextToVoiceClient.CreateTextToVoiceCreatePreviews.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.ITextToVoiceClient.CreateTextToVoiceCreatePreviews.g.cs index 9ca0621..c5c82db 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.ITextToVoiceClient.CreateTextToVoiceCreatePreviews.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.ITextToVoiceClient.CreateTextToVoiceCreatePreviews.g.cs @@ -13,7 +13,7 @@ public partial interface ITextToVoiceClient /// /// /// The token to cancel the operation with - /// + /// global::System.Threading.Tasks.Task CreateTextToVoiceCreatePreviewsAsync( global::ElevenLabs.BodyGenerateAVoicePreviewFromDescriptionV1TextToVoiceCreatePreviewsPost request, string? xiApiKey = default, diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.ITextToVoiceClient.CreateTextToVoiceCreateVoiceFromPreview.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.ITextToVoiceClient.CreateTextToVoiceCreateVoiceFromPreview.g.cs index e2853b7..3c25f61 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.ITextToVoiceClient.CreateTextToVoiceCreateVoiceFromPreview.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.ITextToVoiceClient.CreateTextToVoiceCreateVoiceFromPreview.g.cs @@ -13,7 +13,7 @@ public partial interface ITextToVoiceClient /// /// /// The token to cancel the operation with - /// + /// global::System.Threading.Tasks.Task CreateTextToVoiceCreateVoiceFromPreviewAsync( global::ElevenLabs.BodyCreateANewVoiceFromVoicePreviewV1TextToVoiceCreateVoiceFromPreviewPost request, string? xiApiKey = default, diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.ITextToVoiceClient.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.ITextToVoiceClient.g.cs index c843c8d..1bd02a7 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.ITextToVoiceClient.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.ITextToVoiceClient.g.cs @@ -24,6 +24,12 @@ public partial interface ITextToVoiceClient : global::System.IDisposable /// 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. + /// + public bool ReadResponseAsString { get; set; } + /// /// /// diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.IUsageClient.GetUsageCharacterStats.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.IUsageClient.GetUsageCharacterStats.g.cs index abbe5d1..f23571a 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.IUsageClient.GetUsageCharacterStats.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.IUsageClient.GetUsageCharacterStats.g.cs @@ -26,7 +26,7 @@ public partial interface IUsageClient /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. /// /// The token to cancel the operation with - /// + /// global::System.Threading.Tasks.Task GetUsageCharacterStatsAsync( global::System.DateTimeOffset startUnix, global::System.DateTimeOffset endUnix, diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.IUsageClient.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.IUsageClient.g.cs index db1bf1f..ee73096 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.IUsageClient.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.IUsageClient.g.cs @@ -24,6 +24,12 @@ public partial interface IUsageClient : global::System.IDisposable /// 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. + /// + public bool ReadResponseAsString { get; set; } + /// /// /// diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.IUserClient.GetUser.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.IUserClient.GetUser.g.cs index 96ce0d1..b7369d3 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.IUserClient.GetUser.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.IUserClient.GetUser.g.cs @@ -12,7 +12,7 @@ public partial interface IUserClient /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. /// /// The token to cancel the operation with - /// + /// global::System.Threading.Tasks.Task GetUserAsync( string? xiApiKey = default, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.IUserClient.GetUserSubscription.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.IUserClient.GetUserSubscription.g.cs index 84ff85b..a0be209 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.IUserClient.GetUserSubscription.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.IUserClient.GetUserSubscription.g.cs @@ -12,7 +12,7 @@ public partial interface IUserClient /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. /// /// The token to cancel the operation with - /// + /// global::System.Threading.Tasks.Task GetUserSubscriptionAsync( string? xiApiKey = default, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.IUserClient.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.IUserClient.g.cs index 42425c3..f77b51b 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.IUserClient.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.IUserClient.g.cs @@ -24,6 +24,12 @@ public partial interface IUserClient : global::System.IDisposable /// 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. + /// + public bool ReadResponseAsString { get; set; } + /// /// /// diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.IVoiceGenerationClient.CreateVoiceGenerationCreateVoice.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.IVoiceGenerationClient.CreateVoiceGenerationCreateVoice.g.cs index 8e39a90..064ffd3 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.IVoiceGenerationClient.CreateVoiceGenerationCreateVoice.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.IVoiceGenerationClient.CreateVoiceGenerationCreateVoice.g.cs @@ -13,7 +13,7 @@ public partial interface IVoiceGenerationClient /// /// /// The token to cancel the operation with - /// + /// global::System.Threading.Tasks.Task CreateVoiceGenerationCreateVoiceAsync( global::ElevenLabs.BodyCreateAPreviouslyGeneratedVoiceV1VoiceGenerationCreateVoicePost request, string? xiApiKey = default, diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.IVoiceGenerationClient.CreateVoiceGenerationGenerateVoice.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.IVoiceGenerationClient.CreateVoiceGenerationGenerateVoice.g.cs index 8239c2d..1418fa8 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.IVoiceGenerationClient.CreateVoiceGenerationGenerateVoice.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.IVoiceGenerationClient.CreateVoiceGenerationGenerateVoice.g.cs @@ -13,8 +13,8 @@ public partial interface IVoiceGenerationClient /// /// /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task CreateVoiceGenerationGenerateVoiceAsync( + /// + global::System.Threading.Tasks.Task CreateVoiceGenerationGenerateVoiceAsync( global::ElevenLabs.BodyGenerateARandomVoiceV1VoiceGenerationGenerateVoicePost request, string? xiApiKey = default, global::System.Threading.CancellationToken cancellationToken = default); @@ -44,7 +44,7 @@ public partial interface IVoiceGenerationClient /// /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task CreateVoiceGenerationGenerateVoiceAsync( + global::System.Threading.Tasks.Task CreateVoiceGenerationGenerateVoiceAsync( global::ElevenLabs.BodyGenerateARandomVoiceV1VoiceGenerationGenerateVoicePostGender gender, string accent, global::ElevenLabs.BodyGenerateARandomVoiceV1VoiceGenerationGenerateVoicePostAge age, diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.IVoiceGenerationClient.GetVoiceGenerationGenerateVoiceParameters.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.IVoiceGenerationClient.GetVoiceGenerationGenerateVoiceParameters.g.cs index 8d3d4b2..1e65980 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.IVoiceGenerationClient.GetVoiceGenerationGenerateVoiceParameters.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.IVoiceGenerationClient.GetVoiceGenerationGenerateVoiceParameters.g.cs @@ -9,7 +9,7 @@ public partial interface IVoiceGenerationClient /// Get possible parameters for the /v1/voice-generation/generate-voice endpoint. /// /// The token to cancel the operation with - /// + /// global::System.Threading.Tasks.Task GetVoiceGenerationGenerateVoiceParametersAsync( global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.IVoiceGenerationClient.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.IVoiceGenerationClient.g.cs index f52ad4c..b4b94c5 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.IVoiceGenerationClient.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.IVoiceGenerationClient.g.cs @@ -24,6 +24,12 @@ public partial interface IVoiceGenerationClient : global::System.IDisposable /// 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. + /// + public bool ReadResponseAsString { get; set; } + /// /// /// diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.IVoicesClient.CreateSimilarVoices.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.IVoicesClient.CreateSimilarVoices.g.cs index af0b2c4..decb9fe 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.IVoicesClient.CreateSimilarVoices.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.IVoicesClient.CreateSimilarVoices.g.cs @@ -13,7 +13,7 @@ public partial interface IVoicesClient /// /// /// The token to cancel the operation with - /// + /// global::System.Threading.Tasks.Task CreateSimilarVoicesAsync( global::ElevenLabs.BodyGetSimilarLibraryVoicesV1SimilarVoicesPost request, string? xiApiKey = default, diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.IVoicesClient.CreateVoicesAdd.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.IVoicesClient.CreateVoicesAdd.g.cs index 491af89..a4db73d 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.IVoicesClient.CreateVoicesAdd.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.IVoicesClient.CreateVoicesAdd.g.cs @@ -13,7 +13,7 @@ public partial interface IVoicesClient /// /// /// The token to cancel the operation with - /// + /// global::System.Threading.Tasks.Task CreateVoicesAddAsync( global::ElevenLabs.BodyAddVoiceV1VoicesAddPost request, string? xiApiKey = default, diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.IVoicesClient.CreateVoicesAddByPublicUserIdByVoiceId.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.IVoicesClient.CreateVoicesAddByPublicUserIdByVoiceId.g.cs index 1578aab..df42fb1 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.IVoicesClient.CreateVoicesAddByPublicUserIdByVoiceId.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.IVoicesClient.CreateVoicesAddByPublicUserIdByVoiceId.g.cs @@ -19,7 +19,7 @@ public partial interface IVoicesClient /// /// /// The token to cancel the operation with - /// + /// global::System.Threading.Tasks.Task CreateVoicesAddByPublicUserIdByVoiceIdAsync( string publicUserId, string voiceId, diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.IVoicesClient.CreateVoicesByVoiceIdEdit.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.IVoicesClient.CreateVoicesByVoiceIdEdit.g.cs index d7e8946..3f8c2a1 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.IVoicesClient.CreateVoicesByVoiceIdEdit.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.IVoicesClient.CreateVoicesByVoiceIdEdit.g.cs @@ -16,7 +16,7 @@ public partial interface IVoicesClient /// /// /// The token to cancel the operation with - /// + /// global::System.Threading.Tasks.Task CreateVoicesByVoiceIdEditAsync( string voiceId, global::ElevenLabs.BodyEditVoiceV1VoicesVoiceIdEditPost request, diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.IVoicesClient.CreateVoicesByVoiceIdSettingsEdit.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.IVoicesClient.CreateVoicesByVoiceIdSettingsEdit.g.cs index 303bcbe..662e17c 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.IVoicesClient.CreateVoicesByVoiceIdSettingsEdit.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.IVoicesClient.CreateVoicesByVoiceIdSettingsEdit.g.cs @@ -16,7 +16,7 @@ public partial interface IVoicesClient /// /// /// The token to cancel the operation with - /// + /// global::System.Threading.Tasks.Task CreateVoicesByVoiceIdSettingsEditAsync( string voiceId, global::ElevenLabs.AllOf request, diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.IVoicesClient.DeleteVoicesByVoiceId.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.IVoicesClient.DeleteVoicesByVoiceId.g.cs index e26f552..7661388 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.IVoicesClient.DeleteVoicesByVoiceId.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.IVoicesClient.DeleteVoicesByVoiceId.g.cs @@ -15,7 +15,7 @@ public partial interface IVoicesClient /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. /// /// The token to cancel the operation with - /// + /// global::System.Threading.Tasks.Task DeleteVoicesByVoiceIdAsync( string voiceId, string? xiApiKey = default, diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.IVoicesClient.GetProfileByHandle.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.IVoicesClient.GetProfileByHandle.g.cs index 4edf8c1..3aa375a 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.IVoicesClient.GetProfileByHandle.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.IVoicesClient.GetProfileByHandle.g.cs @@ -12,7 +12,7 @@ public partial interface IVoicesClient /// Handle for a VA's profile page /// /// The token to cancel the operation with - /// + /// global::System.Threading.Tasks.Task GetProfileByHandleAsync( string handle, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.IVoicesClient.GetSharedVoices.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.IVoicesClient.GetSharedVoices.g.cs index 515f2d9..64f9670 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.IVoicesClient.GetSharedVoices.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.IVoicesClient.GetSharedVoices.g.cs @@ -57,7 +57,7 @@ public partial interface IVoicesClient /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. /// /// The token to cancel the operation with - /// + /// global::System.Threading.Tasks.Task GetSharedVoicesAsync( int? pageSize = default, string? category = default, diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.IVoicesClient.GetVoices.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.IVoicesClient.GetVoices.g.cs index 94ab64d..481c088 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.IVoicesClient.GetVoices.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.IVoicesClient.GetVoices.g.cs @@ -16,7 +16,7 @@ public partial interface IVoicesClient /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. /// /// The token to cancel the operation with - /// + /// global::System.Threading.Tasks.Task GetVoicesAsync( bool? showLegacy = default, string? xiApiKey = default, diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.IVoicesClient.GetVoicesByVoiceId.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.IVoicesClient.GetVoicesByVoiceId.g.cs index 5fa9e64..13badff 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.IVoicesClient.GetVoicesByVoiceId.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.IVoicesClient.GetVoicesByVoiceId.g.cs @@ -19,7 +19,7 @@ public partial interface IVoicesClient /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. /// /// The token to cancel the operation with - /// + /// global::System.Threading.Tasks.Task GetVoicesByVoiceIdAsync( string voiceId, bool? withSettings = default, diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.IVoicesClient.GetVoicesByVoiceIdSettings.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.IVoicesClient.GetVoicesByVoiceIdSettings.g.cs index 0f66c5d..e8c8ed2 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.IVoicesClient.GetVoicesByVoiceIdSettings.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.IVoicesClient.GetVoicesByVoiceIdSettings.g.cs @@ -15,7 +15,7 @@ public partial interface IVoicesClient /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. /// /// The token to cancel the operation with - /// + /// global::System.Threading.Tasks.Task GetVoicesByVoiceIdSettingsAsync( string voiceId, string? xiApiKey = default, diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.IVoicesClient.GetVoicesSettingsDefault.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.IVoicesClient.GetVoicesSettingsDefault.g.cs index 99b618d..b91b8e8 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.IVoicesClient.GetVoicesSettingsDefault.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.IVoicesClient.GetVoicesSettingsDefault.g.cs @@ -9,7 +9,7 @@ public partial interface IVoicesClient /// Gets the default settings for voices. "similarity_boost" corresponds to"Clarity + Similarity Enhancement" in the web app and "stability" corresponds to "Stability" slider in the web app. /// /// The token to cancel the operation with - /// + /// global::System.Threading.Tasks.Task GetVoicesSettingsDefaultAsync( global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.IVoicesClient.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.IVoicesClient.g.cs index bda0d83..b2f590e 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.IVoicesClient.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.IVoicesClient.g.cs @@ -25,6 +25,12 @@ public partial interface IVoicesClient : global::System.IDisposable /// 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. + /// + public bool ReadResponseAsString { get; set; } + /// /// /// diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.IWorkspaceClient.CreateWorkspaceInvitesAdd.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.IWorkspaceClient.CreateWorkspaceInvitesAdd.g.cs index 7136123..7d16161 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.IWorkspaceClient.CreateWorkspaceInvitesAdd.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.IWorkspaceClient.CreateWorkspaceInvitesAdd.g.cs @@ -13,7 +13,7 @@ public partial interface IWorkspaceClient /// /// /// The token to cancel the operation with - /// + /// global::System.Threading.Tasks.Task CreateWorkspaceInvitesAddAsync( global::ElevenLabs.BodyInviteUserV1WorkspaceInvitesAddPost request, string? xiApiKey = default, diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.IWorkspaceClient.CreateWorkspaceMembers.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.IWorkspaceClient.CreateWorkspaceMembers.g.cs index 7a53b71..3232ad4 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.IWorkspaceClient.CreateWorkspaceMembers.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.IWorkspaceClient.CreateWorkspaceMembers.g.cs @@ -13,7 +13,7 @@ public partial interface IWorkspaceClient /// /// /// The token to cancel the operation with - /// + /// global::System.Threading.Tasks.Task CreateWorkspaceMembersAsync( global::ElevenLabs.BodyUpdateMemberV1WorkspaceMembersPost request, string? xiApiKey = default, diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.IWorkspaceClient.DeleteWorkspaceInvites.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.IWorkspaceClient.DeleteWorkspaceInvites.g.cs index f7dac3d..97790b9 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.IWorkspaceClient.DeleteWorkspaceInvites.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.IWorkspaceClient.DeleteWorkspaceInvites.g.cs @@ -13,7 +13,7 @@ public partial interface IWorkspaceClient /// /// /// The token to cancel the operation with - /// + /// global::System.Threading.Tasks.Task DeleteWorkspaceInvitesAsync( global::ElevenLabs.BodyDeleteExistingInvitationV1WorkspaceInvitesDelete request, string? xiApiKey = default, diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.IWorkspaceClient.GetAdminN8enylacgdSsoProvider.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.IWorkspaceClient.GetAdminN8enylacgdSsoProvider.g.cs index 5452305..53122bb 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.IWorkspaceClient.GetAdminN8enylacgdSsoProvider.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.IWorkspaceClient.GetAdminN8enylacgdSsoProvider.g.cs @@ -9,7 +9,7 @@ public partial interface IWorkspaceClient /// /// /// The token to cancel the operation with - /// + /// global::System.Threading.Tasks.Task GetAdminN8enylacgdSsoProviderAsync( string workspaceId, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.IWorkspaceClient.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.IWorkspaceClient.g.cs index bffc5b1..6acf6ac 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.IWorkspaceClient.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.IWorkspaceClient.g.cs @@ -24,6 +24,12 @@ public partial interface IWorkspaceClient : global::System.IDisposable /// 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. + /// + public bool ReadResponseAsString { get; set; } + /// /// /// diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ASRConversationalConfig.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ASRConversationalConfig.Json.g.cs new file mode 100644 index 0000000..eb5420c --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ASRConversationalConfig.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class ASRConversationalConfig + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.ASRConversationalConfig? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.ASRConversationalConfig), + jsonSerializerContext) as global::ElevenLabs.ASRConversationalConfig; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.ASRConversationalConfig? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.ASRConversationalConfig), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.ASRConversationalConfig; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ASRConversationalConfig.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ASRConversationalConfig.g.cs new file mode 100644 index 0000000..0adb70b --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ASRConversationalConfig.g.cs @@ -0,0 +1,77 @@ + +#nullable enable + +namespace ElevenLabs +{ + /// + /// + /// + public sealed partial class ASRConversationalConfig + { + /// + /// Default Value: high + /// + [global::System.Text.Json.Serialization.JsonPropertyName("quality")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::ElevenLabs.JsonConverters.ASRQualityJsonConverter))] + public global::ElevenLabs.ASRQuality? Quality { get; set; } + + /// + /// Default Value: elevenlabs + /// + [global::System.Text.Json.Serialization.JsonPropertyName("provider")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::ElevenLabs.JsonConverters.ASRProviderJsonConverter))] + public global::ElevenLabs.ASRProvider? 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::ElevenLabs.JsonConverters.ASRInputFormatJsonConverter))] + public global::ElevenLabs.ASRInputFormat? 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: high + /// + /// + /// Default Value: elevenlabs + /// + /// + /// Default Value: pcm_16000 + /// + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public ASRConversationalConfig( + global::ElevenLabs.ASRQuality? quality, + global::ElevenLabs.ASRProvider? provider, + global::ElevenLabs.ASRInputFormat? userInputAudioFormat, + global::System.Collections.Generic.IList? keywords) + { + this.Quality = quality; + this.Provider = provider; + this.UserInputAudioFormat = userInputAudioFormat; + this.Keywords = keywords; + } + + /// + /// Initializes a new instance of the class. + /// + public ASRConversationalConfig() + { + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ASRInputFormat.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ASRInputFormat.g.cs new file mode 100644 index 0000000..07ee1de --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ASRInputFormat.g.cs @@ -0,0 +1,63 @@ + +#nullable enable + +namespace ElevenLabs +{ + /// + /// An enumeration. + /// + public enum ASRInputFormat + { + /// + /// + /// + Pcm16000, + /// + /// + /// + Pcm22050, + /// + /// + /// + Pcm24000, + /// + /// + /// + Pcm44100, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ASRInputFormatExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ASRInputFormat value) + { + return value switch + { + ASRInputFormat.Pcm16000 => "pcm_16000", + ASRInputFormat.Pcm22050 => "pcm_22050", + ASRInputFormat.Pcm24000 => "pcm_24000", + ASRInputFormat.Pcm44100 => "pcm_44100", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ASRInputFormat? ToEnum(string value) + { + return value switch + { + "pcm_16000" => ASRInputFormat.Pcm16000, + "pcm_22050" => ASRInputFormat.Pcm22050, + "pcm_24000" => ASRInputFormat.Pcm24000, + "pcm_44100" => ASRInputFormat.Pcm44100, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ASRProvider.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ASRProvider.g.cs new file mode 100644 index 0000000..aa02a21 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ASRProvider.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace ElevenLabs +{ + /// + /// An enumeration. + /// + public enum ASRProvider + { + /// + /// + /// + Elevenlabs, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ASRProviderExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ASRProvider value) + { + return value switch + { + ASRProvider.Elevenlabs => "elevenlabs", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ASRProvider? ToEnum(string value) + { + return value switch + { + "elevenlabs" => ASRProvider.Elevenlabs, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ASRQuality.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ASRQuality.g.cs new file mode 100644 index 0000000..1c1ca09 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ASRQuality.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace ElevenLabs +{ + /// + /// An enumeration. + /// + public enum ASRQuality + { + /// + /// + /// + High, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ASRQualityExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ASRQuality value) + { + return value switch + { + ASRQuality.High => "high", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ASRQuality? ToEnum(string value) + { + return value switch + { + "high" => ASRQuality.High, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AddAgentSecretResponseModel.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AddAgentSecretResponseModel.Json.g.cs new file mode 100644 index 0000000..e34d9c3 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AddAgentSecretResponseModel.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class AddAgentSecretResponseModel + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.AddAgentSecretResponseModel? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.AddAgentSecretResponseModel), + jsonSerializerContext) as global::ElevenLabs.AddAgentSecretResponseModel; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.AddAgentSecretResponseModel? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.AddAgentSecretResponseModel), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.AddAgentSecretResponseModel; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AddAgentSecretResponseModel.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AddAgentSecretResponseModel.g.cs new file mode 100644 index 0000000..3b8f2cb --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AddAgentSecretResponseModel.g.cs @@ -0,0 +1,52 @@ + +#nullable enable + +namespace ElevenLabs +{ + /// + /// + /// + public sealed partial class AddAgentSecretResponseModel + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Id { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + [global::System.Text.Json.Serialization.JsonRequired] + public required 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. + /// + /// + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public AddAgentSecretResponseModel( + string id, + string name) + { + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); + } + + /// + /// Initializes a new instance of the class. + /// + public AddAgentSecretResponseModel() + { + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AddChapterResponseModel.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AddChapterResponseModel.Json.g.cs new file mode 100644 index 0000000..bd603df --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AddChapterResponseModel.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class AddChapterResponseModel + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.AddChapterResponseModel? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.AddChapterResponseModel), + jsonSerializerContext) as global::ElevenLabs.AddChapterResponseModel; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.AddChapterResponseModel? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.AddChapterResponseModel), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.AddChapterResponseModel; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AddChapterResponseModel.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AddChapterResponseModel.g.cs index 0872eea..65e5a58 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AddChapterResponseModel.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AddChapterResponseModel.g.cs @@ -21,91 +21,22 @@ public sealed partial class AddChapterResponseModel [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static global::ElevenLabs.AddChapterResponseModel? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public AddChapterResponseModel( + global::ElevenLabs.ChapterResponseModel chapter) { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.AddChapterResponseModel), - jsonSerializerContext) as global::ElevenLabs.AddChapterResponseModel; + this.Chapter = chapter ?? throw new global::System.ArgumentNullException(nameof(chapter)); } /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.AddChapterResponseModel? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public AddChapterResponseModel() { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.AddChapterResponseModel), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.AddChapterResponseModel; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AddKnowledgeBaseResponseModel.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AddKnowledgeBaseResponseModel.Json.g.cs new file mode 100644 index 0000000..8051541 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AddKnowledgeBaseResponseModel.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class AddKnowledgeBaseResponseModel + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.AddKnowledgeBaseResponseModel? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.AddKnowledgeBaseResponseModel), + jsonSerializerContext) as global::ElevenLabs.AddKnowledgeBaseResponseModel; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.AddKnowledgeBaseResponseModel? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.AddKnowledgeBaseResponseModel), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.AddKnowledgeBaseResponseModel; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AddKnowledgeBaseResponseModel.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AddKnowledgeBaseResponseModel.g.cs new file mode 100644 index 0000000..d10ab22 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AddKnowledgeBaseResponseModel.g.cs @@ -0,0 +1,42 @@ + +#nullable enable + +namespace ElevenLabs +{ + /// + /// + /// + public sealed partial class AddKnowledgeBaseResponseModel + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Id { 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. + /// + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public AddKnowledgeBaseResponseModel( + string id) + { + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + } + + /// + /// Initializes a new instance of the class. + /// + public AddKnowledgeBaseResponseModel() + { + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AddProjectResponseModel.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AddProjectResponseModel.Json.g.cs new file mode 100644 index 0000000..f2c253e --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AddProjectResponseModel.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class AddProjectResponseModel + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.AddProjectResponseModel? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.AddProjectResponseModel), + jsonSerializerContext) as global::ElevenLabs.AddProjectResponseModel; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.AddProjectResponseModel? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.AddProjectResponseModel), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.AddProjectResponseModel; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AddProjectResponseModel.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AddProjectResponseModel.g.cs index d22fa7f..afb2a07 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AddProjectResponseModel.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AddProjectResponseModel.g.cs @@ -21,91 +21,22 @@ public sealed partial class AddProjectResponseModel [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static global::ElevenLabs.AddProjectResponseModel? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public AddProjectResponseModel( + global::ElevenLabs.ProjectResponseModel project) { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.AddProjectResponseModel), - jsonSerializerContext) as global::ElevenLabs.AddProjectResponseModel; + this.Project = project ?? throw new global::System.ArgumentNullException(nameof(project)); } /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.AddProjectResponseModel? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public AddProjectResponseModel() { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.AddProjectResponseModel), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.AddProjectResponseModel; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AddPronunciationDictionaryResponseModel.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AddPronunciationDictionaryResponseModel.Json.g.cs new file mode 100644 index 0000000..21f652f --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AddPronunciationDictionaryResponseModel.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class AddPronunciationDictionaryResponseModel + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.AddPronunciationDictionaryResponseModel? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.AddPronunciationDictionaryResponseModel), + jsonSerializerContext) as global::ElevenLabs.AddPronunciationDictionaryResponseModel; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.AddPronunciationDictionaryResponseModel? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.AddPronunciationDictionaryResponseModel), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.AddPronunciationDictionaryResponseModel; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AddPronunciationDictionaryResponseModel.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AddPronunciationDictionaryResponseModel.g.cs index 2eb52ec..06a41db 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AddPronunciationDictionaryResponseModel.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AddPronunciationDictionaryResponseModel.g.cs @@ -55,91 +55,37 @@ public sealed partial class AddPronunciationDictionaryResponseModel [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static global::ElevenLabs.AddPronunciationDictionaryResponseModel? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// + /// + /// + /// + /// + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public AddPronunciationDictionaryResponseModel( + string id, + string name, + string createdBy, + int creationTimeUnix, + string versionId, + string? description) { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.AddPronunciationDictionaryResponseModel), - jsonSerializerContext) as global::ElevenLabs.AddPronunciationDictionaryResponseModel; + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); + this.CreatedBy = createdBy ?? throw new global::System.ArgumentNullException(nameof(createdBy)); + this.CreationTimeUnix = creationTimeUnix; + this.VersionId = versionId ?? throw new global::System.ArgumentNullException(nameof(versionId)); + this.Description = description; } /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.AddPronunciationDictionaryResponseModel? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public AddPronunciationDictionaryResponseModel() { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.AddPronunciationDictionaryResponseModel), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.AddPronunciationDictionaryResponseModel; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AddPronunciationDictionaryRulesResponseModel.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AddPronunciationDictionaryRulesResponseModel.Json.g.cs new file mode 100644 index 0000000..3cebac5 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AddPronunciationDictionaryRulesResponseModel.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class AddPronunciationDictionaryRulesResponseModel + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.AddPronunciationDictionaryRulesResponseModel? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.AddPronunciationDictionaryRulesResponseModel), + jsonSerializerContext) as global::ElevenLabs.AddPronunciationDictionaryRulesResponseModel; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.AddPronunciationDictionaryRulesResponseModel? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.AddPronunciationDictionaryRulesResponseModel), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.AddPronunciationDictionaryRulesResponseModel; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AddPronunciationDictionaryRulesResponseModel.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AddPronunciationDictionaryRulesResponseModel.g.cs index 2100c30..69e4855 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AddPronunciationDictionaryRulesResponseModel.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AddPronunciationDictionaryRulesResponseModel.g.cs @@ -28,91 +28,25 @@ public sealed partial class AddPronunciationDictionaryRulesResponseModel [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static global::ElevenLabs.AddPronunciationDictionaryRulesResponseModel? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public AddPronunciationDictionaryRulesResponseModel( + string id, + string versionId) { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.AddPronunciationDictionaryRulesResponseModel), - jsonSerializerContext) as global::ElevenLabs.AddPronunciationDictionaryRulesResponseModel; + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + this.VersionId = versionId ?? throw new global::System.ArgumentNullException(nameof(versionId)); } /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.AddPronunciationDictionaryRulesResponseModel? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public AddPronunciationDictionaryRulesResponseModel() { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.AddPronunciationDictionaryRulesResponseModel), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.AddPronunciationDictionaryRulesResponseModel; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AddVoiceIVCResponseModel.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AddVoiceIVCResponseModel.Json.g.cs new file mode 100644 index 0000000..3928242 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AddVoiceIVCResponseModel.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class AddVoiceIVCResponseModel + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.AddVoiceIVCResponseModel? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.AddVoiceIVCResponseModel), + jsonSerializerContext) as global::ElevenLabs.AddVoiceIVCResponseModel; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.AddVoiceIVCResponseModel? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.AddVoiceIVCResponseModel), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.AddVoiceIVCResponseModel; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AddVoiceIVCResponseModel.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AddVoiceIVCResponseModel.g.cs index 0501478..fe82978 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AddVoiceIVCResponseModel.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AddVoiceIVCResponseModel.g.cs @@ -28,91 +28,25 @@ public sealed partial class AddVoiceIVCResponseModel [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static global::ElevenLabs.AddVoiceIVCResponseModel? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public AddVoiceIVCResponseModel( + string voiceId, + bool requiresVerification) { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.AddVoiceIVCResponseModel), - jsonSerializerContext) as global::ElevenLabs.AddVoiceIVCResponseModel; + this.VoiceId = voiceId ?? throw new global::System.ArgumentNullException(nameof(voiceId)); + this.RequiresVerification = requiresVerification; } /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.AddVoiceIVCResponseModel? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public AddVoiceIVCResponseModel() { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.AddVoiceIVCResponseModel), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.AddVoiceIVCResponseModel; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AddVoiceResponseModel.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AddVoiceResponseModel.Json.g.cs new file mode 100644 index 0000000..f841bf9 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AddVoiceResponseModel.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class AddVoiceResponseModel + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.AddVoiceResponseModel? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.AddVoiceResponseModel), + jsonSerializerContext) as global::ElevenLabs.AddVoiceResponseModel; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.AddVoiceResponseModel? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.AddVoiceResponseModel), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.AddVoiceResponseModel; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AddVoiceResponseModel.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AddVoiceResponseModel.g.cs index 0d7149a..4315b9f 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AddVoiceResponseModel.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AddVoiceResponseModel.g.cs @@ -21,91 +21,22 @@ public sealed partial class AddVoiceResponseModel [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static global::ElevenLabs.AddVoiceResponseModel? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public AddVoiceResponseModel( + string voiceId) { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.AddVoiceResponseModel), - jsonSerializerContext) as global::ElevenLabs.AddVoiceResponseModel; + this.VoiceId = voiceId ?? throw new global::System.ArgumentNullException(nameof(voiceId)); } /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.AddVoiceResponseModel? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public AddVoiceResponseModel() { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.AddVoiceResponseModel), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.AddVoiceResponseModel; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AgentConfig.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AgentConfig.Json.g.cs new file mode 100644 index 0000000..c5f637f --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AgentConfig.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class AgentConfig + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.AgentConfig? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.AgentConfig), + jsonSerializerContext) as global::ElevenLabs.AgentConfig; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.AgentConfig? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.AgentConfig), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.AgentConfig; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AgentConfig.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AgentConfig.g.cs new file mode 100644 index 0000000..8d5d25f --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AgentConfig.g.cs @@ -0,0 +1,70 @@ + +#nullable enable + +namespace ElevenLabs +{ + /// + /// + /// + public sealed partial class AgentConfig + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("server")] + public global::ElevenLabs.ServerAgent? Server { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("prompt")] + public global::ElevenLabs.PromptAgent? Prompt { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("first_message")] + public string? FirstMessage { get; set; } + + /// + /// Default Value: en + /// + [global::System.Text.Json.Serialization.JsonPropertyName("language")] + public string? Language { 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: en + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public AgentConfig( + global::ElevenLabs.ServerAgent? server, + global::ElevenLabs.PromptAgent? prompt, + string? firstMessage, + string? language) + { + this.Server = server; + this.Prompt = prompt; + this.FirstMessage = firstMessage; + this.Language = language; + } + + /// + /// Initializes a new instance of the class. + /// + public AgentConfig() + { + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AgentMetadataResponseModel.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AgentMetadataResponseModel.Json.g.cs new file mode 100644 index 0000000..38d0631 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AgentMetadataResponseModel.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class AgentMetadataResponseModel + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.AgentMetadataResponseModel? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.AgentMetadataResponseModel), + jsonSerializerContext) as global::ElevenLabs.AgentMetadataResponseModel; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.AgentMetadataResponseModel? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.AgentMetadataResponseModel), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.AgentMetadataResponseModel; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AgentMetadataResponseModel.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AgentMetadataResponseModel.g.cs new file mode 100644 index 0000000..6083dce --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AgentMetadataResponseModel.g.cs @@ -0,0 +1,42 @@ + +#nullable enable + +namespace ElevenLabs +{ + /// + /// + /// + public sealed partial class AgentMetadataResponseModel + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created_at_unix_secs")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int CreatedAtUnixSecs { 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. + /// + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public AgentMetadataResponseModel( + int createdAtUnixSecs) + { + this.CreatedAtUnixSecs = createdAtUnixSecs; + } + + /// + /// Initializes a new instance of the class. + /// + public AgentMetadataResponseModel() + { + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AgentPlatformSettings.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AgentPlatformSettings.Json.g.cs new file mode 100644 index 0000000..2a3ac63 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AgentPlatformSettings.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class AgentPlatformSettings + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.AgentPlatformSettings? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.AgentPlatformSettings), + jsonSerializerContext) as global::ElevenLabs.AgentPlatformSettings; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.AgentPlatformSettings? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.AgentPlatformSettings), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.AgentPlatformSettings; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AgentPlatformSettings.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AgentPlatformSettings.g.cs new file mode 100644 index 0000000..0cbb21d --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AgentPlatformSettings.g.cs @@ -0,0 +1,72 @@ + +#nullable enable + +namespace ElevenLabs +{ + /// + /// + /// + public sealed partial class AgentPlatformSettings + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("auth")] + public global::ElevenLabs.AuthSettings? Auth { get; set; } + + /// + /// Settings to evaluate an agent's performance.
+ /// Agents are evaluated against a set of criteria, with success being defined as meeting some combination of those criteria. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("evaluation")] + public global::ElevenLabs.EvaluationSettings? Evaluation { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("widget")] + public global::ElevenLabs.EmbedConfig? Widget { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("data_collection")] + public global::System.Collections.Generic.Dictionary? DataCollection { 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. + /// + /// + /// + /// Settings to evaluate an agent's performance.
+ /// Agents are evaluated against a set of criteria, with success being defined as meeting some combination of those criteria. + /// + /// + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public AgentPlatformSettings( + global::ElevenLabs.AuthSettings? auth, + global::ElevenLabs.EvaluationSettings? evaluation, + global::ElevenLabs.EmbedConfig? widget, + global::System.Collections.Generic.Dictionary? dataCollection) + { + this.Auth = auth; + this.Evaluation = evaluation; + this.Widget = widget; + this.DataCollection = dataCollection; + } + + /// + /// Initializes a new instance of the class. + /// + public AgentPlatformSettings() + { + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AgentPlatformSettingsDataCollection.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AgentPlatformSettingsDataCollection.Json.g.cs new file mode 100644 index 0000000..b7ec96f --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AgentPlatformSettingsDataCollection.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class AgentPlatformSettingsDataCollection + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.AgentPlatformSettingsDataCollection? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.AgentPlatformSettingsDataCollection), + jsonSerializerContext) as global::ElevenLabs.AgentPlatformSettingsDataCollection; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.AgentPlatformSettingsDataCollection? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.AgentPlatformSettingsDataCollection), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.AgentPlatformSettingsDataCollection; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AgentPlatformSettingsDataCollection.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AgentPlatformSettingsDataCollection.g.cs new file mode 100644 index 0000000..c833af9 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AgentPlatformSettingsDataCollection.g.cs @@ -0,0 +1,27 @@ + +#nullable enable + +namespace ElevenLabs +{ + /// + /// + /// + public sealed partial class AgentPlatformSettingsDataCollection + { + + /// + /// Additional properties that are not explicitly defined 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. + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public AgentPlatformSettingsDataCollection( + ) + { + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AgentSummaryResponseModel.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AgentSummaryResponseModel.Json.g.cs new file mode 100644 index 0000000..ea8e793 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AgentSummaryResponseModel.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class AgentSummaryResponseModel + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.AgentSummaryResponseModel? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.AgentSummaryResponseModel), + jsonSerializerContext) as global::ElevenLabs.AgentSummaryResponseModel; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.AgentSummaryResponseModel? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.AgentSummaryResponseModel), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.AgentSummaryResponseModel; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AgentSummaryResponseModel.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AgentSummaryResponseModel.g.cs index a723c64..d126415 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AgentSummaryResponseModel.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AgentSummaryResponseModel.g.cs @@ -35,91 +35,28 @@ public sealed partial class AgentSummaryResponseModel [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static global::ElevenLabs.AgentSummaryResponseModel? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// + /// + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public AgentSummaryResponseModel( + string agentId, + string name, + int createdAtUnixSecs) { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.AgentSummaryResponseModel), - jsonSerializerContext) as global::ElevenLabs.AgentSummaryResponseModel; + this.AgentId = agentId ?? throw new global::System.ArgumentNullException(nameof(agentId)); + this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); + this.CreatedAtUnixSecs = createdAtUnixSecs; } /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.AgentSummaryResponseModel? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public AgentSummaryResponseModel() { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.AgentSummaryResponseModel), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.AgentSummaryResponseModel; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AudioNativeCreateProjectResponseModel.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AudioNativeCreateProjectResponseModel.Json.g.cs new file mode 100644 index 0000000..cbae657 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AudioNativeCreateProjectResponseModel.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class AudioNativeCreateProjectResponseModel + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.AudioNativeCreateProjectResponseModel? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.AudioNativeCreateProjectResponseModel), + jsonSerializerContext) as global::ElevenLabs.AudioNativeCreateProjectResponseModel; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.AudioNativeCreateProjectResponseModel? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.AudioNativeCreateProjectResponseModel), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.AudioNativeCreateProjectResponseModel; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AudioNativeCreateProjectResponseModel.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AudioNativeCreateProjectResponseModel.g.cs index bebe6e3..6de69b5 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AudioNativeCreateProjectResponseModel.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AudioNativeCreateProjectResponseModel.g.cs @@ -35,91 +35,28 @@ public sealed partial class AudioNativeCreateProjectResponseModel [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static global::ElevenLabs.AudioNativeCreateProjectResponseModel? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// + /// + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public AudioNativeCreateProjectResponseModel( + string projectId, + bool converting, + string htmlSnippet) { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.AudioNativeCreateProjectResponseModel), - jsonSerializerContext) as global::ElevenLabs.AudioNativeCreateProjectResponseModel; + this.ProjectId = projectId ?? throw new global::System.ArgumentNullException(nameof(projectId)); + this.Converting = converting; + this.HtmlSnippet = htmlSnippet ?? throw new global::System.ArgumentNullException(nameof(htmlSnippet)); } /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.AudioNativeCreateProjectResponseModel? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public AudioNativeCreateProjectResponseModel() { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.AudioNativeCreateProjectResponseModel), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.AudioNativeCreateProjectResponseModel; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AuthSettings.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AuthSettings.Json.g.cs new file mode 100644 index 0000000..8b6e9f4 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AuthSettings.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class AuthSettings + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.AuthSettings? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.AuthSettings), + jsonSerializerContext) as global::ElevenLabs.AuthSettings; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.AuthSettings? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.AuthSettings), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.AuthSettings; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AuthSettings.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AuthSettings.g.cs new file mode 100644 index 0000000..0c9f699 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.AuthSettings.g.cs @@ -0,0 +1,43 @@ + +#nullable enable + +namespace ElevenLabs +{ + /// + /// + /// + public sealed partial class AuthSettings + { + /// + /// Default Value: false + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enable_auth")] + public bool? EnableAuth { 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: false + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public AuthSettings( + bool? enableAuth) + { + this.EnableAuth = enableAuth; + } + + /// + /// Initializes a new instance of the class. + /// + public AuthSettings() + { + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyAddAPronunciationDictionaryV1PronunciationDictionariesAddFromFilePost.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyAddAPronunciationDictionaryV1PronunciationDictionariesAddFromFilePost.Json.g.cs new file mode 100644 index 0000000..25700d7 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyAddAPronunciationDictionaryV1PronunciationDictionariesAddFromFilePost.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class BodyAddAPronunciationDictionaryV1PronunciationDictionariesAddFromFilePost + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.BodyAddAPronunciationDictionaryV1PronunciationDictionariesAddFromFilePost? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.BodyAddAPronunciationDictionaryV1PronunciationDictionariesAddFromFilePost), + jsonSerializerContext) as global::ElevenLabs.BodyAddAPronunciationDictionaryV1PronunciationDictionariesAddFromFilePost; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.BodyAddAPronunciationDictionaryV1PronunciationDictionariesAddFromFilePost? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.BodyAddAPronunciationDictionaryV1PronunciationDictionariesAddFromFilePost), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.BodyAddAPronunciationDictionaryV1PronunciationDictionariesAddFromFilePost; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyAddAPronunciationDictionaryV1PronunciationDictionariesAddFromFilePost.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyAddAPronunciationDictionaryV1PronunciationDictionariesAddFromFilePost.g.cs index 94d05b0..de2e1ff 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyAddAPronunciationDictionaryV1PronunciationDictionariesAddFromFilePost.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyAddAPronunciationDictionaryV1PronunciationDictionariesAddFromFilePost.g.cs @@ -46,91 +46,44 @@ public sealed partial class BodyAddAPronunciationDictionaryV1PronunciationDictio [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static global::ElevenLabs.BodyAddAPronunciationDictionaryV1PronunciationDictionariesAddFromFilePost? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.BodyAddAPronunciationDictionaryV1PronunciationDictionariesAddFromFilePost), - jsonSerializerContext) as global::ElevenLabs.BodyAddAPronunciationDictionaryV1PronunciationDictionariesAddFromFilePost; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.BodyAddAPronunciationDictionaryV1PronunciationDictionariesAddFromFilePost? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// + /// The name of the pronunciation dictionary, used for identification only. + /// + /// + /// A lexicon .pls file which we will use to initialize the project with. + /// + /// + /// A lexicon .pls file which we will use to initialize the project with. + /// + /// + /// A description of the pronunciation dictionary, used for identification only. + /// + /// + /// Should be one of 'editor' or 'viewer'. If not provided, defaults to no access. + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public BodyAddAPronunciationDictionaryV1PronunciationDictionariesAddFromFilePost( + string name, + byte[]? file, + string? filename, + string? description, + global::ElevenLabs.BodyAddAPronunciationDictionaryV1PronunciationDictionariesAddFromFilePostWorkspaceAccess? workspaceAccess) { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.BodyAddAPronunciationDictionaryV1PronunciationDictionariesAddFromFilePost), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.BodyAddAPronunciationDictionaryV1PronunciationDictionariesAddFromFilePost; + this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); + this.File = file; + this.Filename = filename; + this.Description = description; + this.WorkspaceAccess = workspaceAccess; } /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public BodyAddAPronunciationDictionaryV1PronunciationDictionariesAddFromFilePost() { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyAddASecretToTheAgentWhichCanBeReferencedInToolCallsV1ConvaiAgentsAgentIdAddSecretPost.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyAddASecretToTheAgentWhichCanBeReferencedInToolCallsV1ConvaiAgentsAgentIdAddSecretPost.Json.g.cs new file mode 100644 index 0000000..9d40579 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyAddASecretToTheAgentWhichCanBeReferencedInToolCallsV1ConvaiAgentsAgentIdAddSecretPost.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class BodyAddASecretToTheAgentWhichCanBeReferencedInToolCallsV1ConvaiAgentsAgentIdAddSecretPost + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.BodyAddASecretToTheAgentWhichCanBeReferencedInToolCallsV1ConvaiAgentsAgentIdAddSecretPost? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.BodyAddASecretToTheAgentWhichCanBeReferencedInToolCallsV1ConvaiAgentsAgentIdAddSecretPost), + jsonSerializerContext) as global::ElevenLabs.BodyAddASecretToTheAgentWhichCanBeReferencedInToolCallsV1ConvaiAgentsAgentIdAddSecretPost; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.BodyAddASecretToTheAgentWhichCanBeReferencedInToolCallsV1ConvaiAgentsAgentIdAddSecretPost? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.BodyAddASecretToTheAgentWhichCanBeReferencedInToolCallsV1ConvaiAgentsAgentIdAddSecretPost), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.BodyAddASecretToTheAgentWhichCanBeReferencedInToolCallsV1ConvaiAgentsAgentIdAddSecretPost; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyAddASecretToTheAgentWhichCanBeReferencedInToolCallsV1ConvaiAgentsAgentIdAddSecretPost.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyAddASecretToTheAgentWhichCanBeReferencedInToolCallsV1ConvaiAgentsAgentIdAddSecretPost.g.cs new file mode 100644 index 0000000..adf122a --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyAddASecretToTheAgentWhichCanBeReferencedInToolCallsV1ConvaiAgentsAgentIdAddSecretPost.g.cs @@ -0,0 +1,56 @@ + +#nullable enable + +namespace ElevenLabs +{ + /// + /// + /// + public sealed partial class BodyAddASecretToTheAgentWhichCanBeReferencedInToolCallsV1ConvaiAgentsAgentIdAddSecretPost + { + /// + /// A name to help identify a particular agent secret + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Name { get; set; } + + /// + /// A value to be encrypted and used by the agent + /// + [global::System.Text.Json.Serialization.JsonPropertyName("secret_value")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string SecretValue { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// A name to help identify a particular agent secret + /// + /// + /// A value to be encrypted and used by the agent + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public BodyAddASecretToTheAgentWhichCanBeReferencedInToolCallsV1ConvaiAgentsAgentIdAddSecretPost( + string name, + string secretValue) + { + this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); + this.SecretValue = secretValue ?? throw new global::System.ArgumentNullException(nameof(secretValue)); + } + + /// + /// Initializes a new instance of the class. + /// + public BodyAddASecretToTheAgentWhichCanBeReferencedInToolCallsV1ConvaiAgentsAgentIdAddSecretPost() + { + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyAddChapterToAProjectV1ProjectsProjectIdChaptersAddPost.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyAddChapterToAProjectV1ProjectsProjectIdChaptersAddPost.Json.g.cs new file mode 100644 index 0000000..006b44a --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyAddChapterToAProjectV1ProjectsProjectIdChaptersAddPost.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class BodyAddChapterToAProjectV1ProjectsProjectIdChaptersAddPost + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.BodyAddChapterToAProjectV1ProjectsProjectIdChaptersAddPost? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.BodyAddChapterToAProjectV1ProjectsProjectIdChaptersAddPost), + jsonSerializerContext) as global::ElevenLabs.BodyAddChapterToAProjectV1ProjectsProjectIdChaptersAddPost; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.BodyAddChapterToAProjectV1ProjectsProjectIdChaptersAddPost? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.BodyAddChapterToAProjectV1ProjectsProjectIdChaptersAddPost), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.BodyAddChapterToAProjectV1ProjectsProjectIdChaptersAddPost; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyAddChapterToAProjectV1ProjectsProjectIdChaptersAddPost.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyAddChapterToAProjectV1ProjectsProjectIdChaptersAddPost.g.cs index b36d6e4..ae01c91 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyAddChapterToAProjectV1ProjectsProjectIdChaptersAddPost.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyAddChapterToAProjectV1ProjectsProjectIdChaptersAddPost.g.cs @@ -27,91 +27,29 @@ public sealed partial class BodyAddChapterToAProjectV1ProjectsProjectIdChaptersA [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ElevenLabs.BodyAddChapterToAProjectV1ProjectsProjectIdChaptersAddPost? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.BodyAddChapterToAProjectV1ProjectsProjectIdChaptersAddPost), - jsonSerializerContext) as global::ElevenLabs.BodyAddChapterToAProjectV1ProjectsProjectIdChaptersAddPost; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.BodyAddChapterToAProjectV1ProjectsProjectIdChaptersAddPost? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// + /// The name of the chapter, used for identification only. + /// + /// + /// An optional URL from which we will extract content to initialize the project. If this is set, 'from_url' must be null. If neither 'from_url' or 'from_document' are provided we will initialize the project as blank. + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public BodyAddChapterToAProjectV1ProjectsProjectIdChaptersAddPost( + string name, + string? fromUrl) { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.BodyAddChapterToAProjectV1ProjectsProjectIdChaptersAddPost), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.BodyAddChapterToAProjectV1ProjectsProjectIdChaptersAddPost; + this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); + this.FromUrl = fromUrl; } /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public BodyAddChapterToAProjectV1ProjectsProjectIdChaptersAddPost() { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyAddProjectV1ProjectsAddPost.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyAddProjectV1ProjectsAddPost.Json.g.cs new file mode 100644 index 0000000..b23ec21 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyAddProjectV1ProjectsAddPost.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class BodyAddProjectV1ProjectsAddPost + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.BodyAddProjectV1ProjectsAddPost? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.BodyAddProjectV1ProjectsAddPost), + jsonSerializerContext) as global::ElevenLabs.BodyAddProjectV1ProjectsAddPost; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.BodyAddProjectV1ProjectsAddPost? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.BodyAddProjectV1ProjectsAddPost), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.BodyAddProjectV1ProjectsAddPost; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyAddProjectV1ProjectsAddPost.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyAddProjectV1ProjectsAddPost.g.cs index dcf3f32..69116cb 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyAddProjectV1ProjectsAddPost.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyAddProjectV1ProjectsAddPost.g.cs @@ -154,96 +154,153 @@ public sealed partial class BodyAddProjectV1ProjectsAddPost public string? CallbackUrl { 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(); - - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. + /// Whether to run quality check on the generated audio and regenerate if needed. /// - public static global::ElevenLabs.BodyAddProjectV1ProjectsAddPost? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.BodyAddProjectV1ProjectsAddPost), - jsonSerializerContext) as global::ElevenLabs.BodyAddProjectV1ProjectsAddPost; - } + [global::System.Text.Json.Serialization.JsonPropertyName("quality_check_on")] + public bool? QualityCheckOn { get; set; } /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// Additional properties that are not explicitly defined in the schema /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.BodyAddProjectV1ProjectsAddPost? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// + /// The name of the project, used for identification only. + /// + /// + /// The voice_id that corresponds to the default voice used for new titles. + /// + /// + /// The voice_id that corresponds to the default voice used for new paragraphs. + /// + /// + /// The model_id of the model to be used for this project, you can query GET https://api.elevenlabs.io/v1/models to list all available models. + /// + /// + /// An optional URL from which we will extract content to initialize the project. If this is set, 'from_url' must be null. If neither 'from_url' or 'from_document' are provided we will initialize the project as blank. + /// + /// + /// An optional .epub, .pdf, .txt or similar file can be provided. If provided, we will initialize the project with its content. If this is set, 'from_url' must be null. If neither 'from_url' or 'from_document' are provided we will initialize the project as blank. + /// + /// + /// An optional .epub, .pdf, .txt or similar file can be provided. If provided, we will initialize the project with its content. If this is set, 'from_url' must be null. If neither 'from_url' or 'from_document' are provided we will initialize the project as blank. + /// + /// + /// Output quality of the generated audio. Must be one of:
+ /// standard - standard output format, 128kbps with 44.1kHz sample rate.
+ /// high - high quality output format, 192kbps with 44.1kHz sample rate and major improvements on our side. Using this setting increases the credit cost by 20%.
+ /// ultra - ultra quality output format, 192kbps with 44.1kHz sample rate and highest improvements on our side. Using this setting increases the credit cost by 50%.
+ /// ultra_lossless - ultra quality output format, 705.6kbps with 44.1kHz sample rate and highest improvements on our side in a fully lossless format. Using this setting increases the credit cost by 100%.
+ /// Default Value: standard + /// + /// + /// An optional name of the author of the project, this will be added as metadata to the mp3 file on project / chapter download. + /// + /// + /// An optional name of the author of the project, this will be added as metadata to the mp3 file on project / chapter download. + /// + /// + /// An optional description of the project. + /// + /// + /// An optional list of genres associated with the project. + /// + /// + /// An optional target audience of the project. + /// + /// + /// An optional language of the project. Two-letter language code (ISO 639-1). + /// + /// + /// An optional content type of the project. + /// + /// + /// An optional original publication date of the project, in the format YYYY-MM-DD or YYYY. + /// + /// + /// An optional mature content of the project.
+ /// Default Value: false + /// + /// + /// An optional ISBN number of the project you want to create, this will be added as metadata to the mp3 file on project / chapter download. + /// + /// + /// [Deprecated] When the project is downloaded, should the returned audio have postprocessing in order to make it compliant with audiobook normalized volume requirements
+ /// Default Value: false + /// + /// + /// When the project is downloaded, should the returned audio have postprocessing in order to make it compliant with audiobook normalized volume requirements
+ /// Default Value: false + /// + /// + /// A list of pronunciation dictionary locators (pronunciation_dictionary_id, version_id) encoded as a list of JSON strings for pronunciation dictionaries to be applied to the text. A list of json encoded strings is required as adding projects may occur through formData as opposed to jsonBody. To specify multiple dictionaries use multiple --form lines in your curl, such as --form 'pronunciation_dictionary_locators="{\"pronunciation_dictionary_id\":\"Vmd4Zor6fplcA7WrINey\",\"version_id\":\"hRPaxjlTdR7wFMhV4w0b\"}"' --form 'pronunciation_dictionary_locators="{\"pronunciation_dictionary_id\":\"JzWtcGQMJ6bnlWwyMo7e\",\"version_id\":\"lbmwxiLu4q6txYxgdZqn\"}"'. Note that multiple dictionaries are not currently supported by our UI which will only show the first. + /// + /// + /// [Deprecated] A url that will be called by our service when the project is converted with a json containing the status of the conversion + /// + /// + /// Whether to run quality check on the generated audio and regenerate if needed. + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public BodyAddProjectV1ProjectsAddPost( + string name, + string defaultTitleVoiceId, + string defaultParagraphVoiceId, + string defaultModelId, + string? fromUrl, + byte[]? fromDocument, + string? fromDocumentname, + string? qualityPreset, + string? title, + string? author, + string? description, + global::System.Collections.Generic.IList? genres, + global::ElevenLabs.BodyAddProjectV1ProjectsAddPostTargetAudience? targetAudience, + string? language, + string? contentType, + string? originalPublicationDate, + bool? matureContent, + string? isbnNumber, + bool? acxVolumeNormalization, + bool? volumeNormalization, + global::System.Collections.Generic.IList? pronunciationDictionaryLocators, + string? callbackUrl, + bool? qualityCheckOn) { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.BodyAddProjectV1ProjectsAddPost), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.BodyAddProjectV1ProjectsAddPost; + this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); + this.DefaultTitleVoiceId = defaultTitleVoiceId ?? throw new global::System.ArgumentNullException(nameof(defaultTitleVoiceId)); + this.DefaultParagraphVoiceId = defaultParagraphVoiceId ?? throw new global::System.ArgumentNullException(nameof(defaultParagraphVoiceId)); + this.DefaultModelId = defaultModelId ?? throw new global::System.ArgumentNullException(nameof(defaultModelId)); + this.FromUrl = fromUrl; + this.FromDocument = fromDocument; + this.FromDocumentname = fromDocumentname; + this.QualityPreset = qualityPreset; + this.Title = title; + this.Author = author; + this.Description = description; + this.Genres = genres; + this.TargetAudience = targetAudience; + this.Language = language; + this.ContentType = contentType; + this.OriginalPublicationDate = originalPublicationDate; + this.MatureContent = matureContent; + this.IsbnNumber = isbnNumber; + this.AcxVolumeNormalization = acxVolumeNormalization; + this.VolumeNormalization = volumeNormalization; + this.PronunciationDictionaryLocators = pronunciationDictionaryLocators; + this.CallbackUrl = callbackUrl; + this.QualityCheckOn = qualityCheckOn; } /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public BodyAddProjectV1ProjectsAddPost() { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyAddRulesToThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdAddRulesPost.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyAddRulesToThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdAddRulesPost.Json.g.cs new file mode 100644 index 0000000..e30e269 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyAddRulesToThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdAddRulesPost.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class BodyAddRulesToThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdAddRulesPost + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.BodyAddRulesToThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdAddRulesPost? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.BodyAddRulesToThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdAddRulesPost), + jsonSerializerContext) as global::ElevenLabs.BodyAddRulesToThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdAddRulesPost; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.BodyAddRulesToThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdAddRulesPost? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.BodyAddRulesToThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdAddRulesPost), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.BodyAddRulesToThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdAddRulesPost; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyAddRulesToThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdAddRulesPost.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyAddRulesToThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdAddRulesPost.g.cs index 214dfdc..5fe333c 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyAddRulesToThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdAddRulesPost.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyAddRulesToThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdAddRulesPost.g.cs @@ -25,91 +25,26 @@ public sealed partial class BodyAddRulesToThePronunciationDictionaryV1Pronunciat [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ElevenLabs.BodyAddRulesToThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdAddRulesPost? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.BodyAddRulesToThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdAddRulesPost), - jsonSerializerContext) as global::ElevenLabs.BodyAddRulesToThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdAddRulesPost; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.BodyAddRulesToThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdAddRulesPost? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// + /// List of pronunciation rules. Rule can be either:
+ /// an alias rule: {'string_to_replace': 'a', 'type': 'alias', 'alias': 'b', }
+ /// or a phoneme rule: {'string_to_replace': 'a', 'type': 'phoneme', 'phoneme': 'b', 'alphabet': 'ipa' } + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public BodyAddRulesToThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdAddRulesPost( + global::System.Collections.Generic.IList> rules) { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.BodyAddRulesToThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdAddRulesPost), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.BodyAddRulesToThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdAddRulesPost; + this.Rules = rules ?? throw new global::System.ArgumentNullException(nameof(rules)); } /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public BodyAddRulesToThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdAddRulesPost() { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyAddSharingVoiceV1VoicesAddPublicUserIdVoiceIdPost.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyAddSharingVoiceV1VoicesAddPublicUserIdVoiceIdPost.Json.g.cs new file mode 100644 index 0000000..a4a8a42 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyAddSharingVoiceV1VoicesAddPublicUserIdVoiceIdPost.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class BodyAddSharingVoiceV1VoicesAddPublicUserIdVoiceIdPost + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.BodyAddSharingVoiceV1VoicesAddPublicUserIdVoiceIdPost? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.BodyAddSharingVoiceV1VoicesAddPublicUserIdVoiceIdPost), + jsonSerializerContext) as global::ElevenLabs.BodyAddSharingVoiceV1VoicesAddPublicUserIdVoiceIdPost; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.BodyAddSharingVoiceV1VoicesAddPublicUserIdVoiceIdPost? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.BodyAddSharingVoiceV1VoicesAddPublicUserIdVoiceIdPost), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.BodyAddSharingVoiceV1VoicesAddPublicUserIdVoiceIdPost; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyAddSharingVoiceV1VoicesAddPublicUserIdVoiceIdPost.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyAddSharingVoiceV1VoicesAddPublicUserIdVoiceIdPost.g.cs index 8bf7344..5e76243 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyAddSharingVoiceV1VoicesAddPublicUserIdVoiceIdPost.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyAddSharingVoiceV1VoicesAddPublicUserIdVoiceIdPost.g.cs @@ -21,91 +21,24 @@ public sealed partial class BodyAddSharingVoiceV1VoicesAddPublicUserIdVoiceIdPos [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ElevenLabs.BodyAddSharingVoiceV1VoicesAddPublicUserIdVoiceIdPost? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.BodyAddSharingVoiceV1VoicesAddPublicUserIdVoiceIdPost), - jsonSerializerContext) as global::ElevenLabs.BodyAddSharingVoiceV1VoicesAddPublicUserIdVoiceIdPost; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.BodyAddSharingVoiceV1VoicesAddPublicUserIdVoiceIdPost? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// + /// The name that identifies this voice. This will be displayed in the dropdown of the website. + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public BodyAddSharingVoiceV1VoicesAddPublicUserIdVoiceIdPost( + string newName) { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.BodyAddSharingVoiceV1VoicesAddPublicUserIdVoiceIdPost), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.BodyAddSharingVoiceV1VoicesAddPublicUserIdVoiceIdPost; + this.NewName = newName ?? throw new global::System.ArgumentNullException(nameof(newName)); } /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public BodyAddSharingVoiceV1VoicesAddPublicUserIdVoiceIdPost() { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyAddToAgentSKnowledgeBaseV1ConvaiAgentsAgentIdAddToKnowledgeBasePost.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyAddToAgentSKnowledgeBaseV1ConvaiAgentsAgentIdAddToKnowledgeBasePost.Json.g.cs new file mode 100644 index 0000000..75b191c --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyAddToAgentSKnowledgeBaseV1ConvaiAgentsAgentIdAddToKnowledgeBasePost.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class BodyAddToAgentSKnowledgeBaseV1ConvaiAgentsAgentIdAddToKnowledgeBasePost + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.BodyAddToAgentSKnowledgeBaseV1ConvaiAgentsAgentIdAddToKnowledgeBasePost? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.BodyAddToAgentSKnowledgeBaseV1ConvaiAgentsAgentIdAddToKnowledgeBasePost), + jsonSerializerContext) as global::ElevenLabs.BodyAddToAgentSKnowledgeBaseV1ConvaiAgentsAgentIdAddToKnowledgeBasePost; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.BodyAddToAgentSKnowledgeBaseV1ConvaiAgentsAgentIdAddToKnowledgeBasePost? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.BodyAddToAgentSKnowledgeBaseV1ConvaiAgentsAgentIdAddToKnowledgeBasePost), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.BodyAddToAgentSKnowledgeBaseV1ConvaiAgentsAgentIdAddToKnowledgeBasePost; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyAddToAgentSKnowledgeBaseV1ConvaiAgentsAgentIdAddToKnowledgeBasePost.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyAddToAgentSKnowledgeBaseV1ConvaiAgentsAgentIdAddToKnowledgeBasePost.g.cs new file mode 100644 index 0000000..9041c60 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyAddToAgentSKnowledgeBaseV1ConvaiAgentsAgentIdAddToKnowledgeBasePost.g.cs @@ -0,0 +1,65 @@ + +#nullable enable + +namespace ElevenLabs +{ + /// + /// + /// + public sealed partial class BodyAddToAgentSKnowledgeBaseV1ConvaiAgentsAgentIdAddToKnowledgeBasePost + { + /// + /// URL to a page of documentation that the agent will have access to in order to interact with users. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("url")] + public string? Url { get; set; } + + /// + /// Documentation that the agent will have access to in order to interact with users. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("file")] + public byte[]? File { get; set; } + + /// + /// Documentation that the agent will have access to in order to interact with users. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filename")] + public string? Filename { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// URL to a page of documentation that the agent will have access to in order to interact with users. + /// + /// + /// Documentation that the agent will have access to in order to interact with users. + /// + /// + /// Documentation that the agent will have access to in order to interact with users. + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public BodyAddToAgentSKnowledgeBaseV1ConvaiAgentsAgentIdAddToKnowledgeBasePost( + string? url, + byte[]? file, + string? filename) + { + this.Url = url; + this.File = file; + this.Filename = filename; + } + + /// + /// Initializes a new instance of the class. + /// + public BodyAddToAgentSKnowledgeBaseV1ConvaiAgentsAgentIdAddToKnowledgeBasePost() + { + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyAddVoiceV1VoicesAddPost.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyAddVoiceV1VoicesAddPost.Json.g.cs new file mode 100644 index 0000000..bd5f5ae --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyAddVoiceV1VoicesAddPost.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class BodyAddVoiceV1VoicesAddPost + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.BodyAddVoiceV1VoicesAddPost? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.BodyAddVoiceV1VoicesAddPost), + jsonSerializerContext) as global::ElevenLabs.BodyAddVoiceV1VoicesAddPost; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.BodyAddVoiceV1VoicesAddPost? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.BodyAddVoiceV1VoicesAddPost), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.BodyAddVoiceV1VoicesAddPost; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyAddVoiceV1VoicesAddPost.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyAddVoiceV1VoicesAddPost.g.cs index e6f1da3..449e97c 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyAddVoiceV1VoicesAddPost.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyAddVoiceV1VoicesAddPost.g.cs @@ -47,91 +47,45 @@ public sealed partial class BodyAddVoiceV1VoicesAddPost [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ElevenLabs.BodyAddVoiceV1VoicesAddPost? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.BodyAddVoiceV1VoicesAddPost), - jsonSerializerContext) as global::ElevenLabs.BodyAddVoiceV1VoicesAddPost; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.BodyAddVoiceV1VoicesAddPost? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// + /// The name that identifies this voice. This will be displayed in the dropdown of the website. + /// + /// + /// A list of file paths to audio recordings intended for voice cloning + /// + /// + /// If set will remove background noise for voice samples using our audio isolation model. If the samples do not include background noise, it can make the quality worse.
+ /// Default Value: false + /// + /// + /// How would you describe the voice? + /// + /// + /// Serialized labels dictionary for the voice. + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public BodyAddVoiceV1VoicesAddPost( + string name, + global::System.Collections.Generic.IList files, + bool? removeBackgroundNoise, + string? description, + string? labels) { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.BodyAddVoiceV1VoicesAddPost), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.BodyAddVoiceV1VoicesAddPost; + this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); + this.Files = files ?? throw new global::System.ArgumentNullException(nameof(files)); + this.RemoveBackgroundNoise = removeBackgroundNoise; + this.Description = description; + this.Labels = labels; } /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public BodyAddVoiceV1VoicesAddPost() { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyAudioIsolationStreamV1AudioIsolationStreamPost.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyAudioIsolationStreamV1AudioIsolationStreamPost.Json.g.cs new file mode 100644 index 0000000..9cdf8b1 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyAudioIsolationStreamV1AudioIsolationStreamPost.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class BodyAudioIsolationStreamV1AudioIsolationStreamPost + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.BodyAudioIsolationStreamV1AudioIsolationStreamPost? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.BodyAudioIsolationStreamV1AudioIsolationStreamPost), + jsonSerializerContext) as global::ElevenLabs.BodyAudioIsolationStreamV1AudioIsolationStreamPost; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.BodyAudioIsolationStreamV1AudioIsolationStreamPost? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.BodyAudioIsolationStreamV1AudioIsolationStreamPost), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.BodyAudioIsolationStreamV1AudioIsolationStreamPost; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyAudioIsolationStreamV1AudioIsolationStreamPost.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyAudioIsolationStreamV1AudioIsolationStreamPost.g.cs index 14cfdb9..e2fa344 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyAudioIsolationStreamV1AudioIsolationStreamPost.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyAudioIsolationStreamV1AudioIsolationStreamPost.g.cs @@ -28,91 +28,29 @@ public sealed partial class BodyAudioIsolationStreamV1AudioIsolationStreamPost [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ElevenLabs.BodyAudioIsolationStreamV1AudioIsolationStreamPost? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.BodyAudioIsolationStreamV1AudioIsolationStreamPost), - jsonSerializerContext) as global::ElevenLabs.BodyAudioIsolationStreamV1AudioIsolationStreamPost; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.BodyAudioIsolationStreamV1AudioIsolationStreamPost? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// + /// The audio file from which vocals/speech will be isolated from. + /// + /// + /// The audio file from which vocals/speech will be isolated from. + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public BodyAudioIsolationStreamV1AudioIsolationStreamPost( + byte[] audio, + string audioname) { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.BodyAudioIsolationStreamV1AudioIsolationStreamPost), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.BodyAudioIsolationStreamV1AudioIsolationStreamPost; + this.Audio = audio ?? throw new global::System.ArgumentNullException(nameof(audio)); + this.Audioname = audioname ?? throw new global::System.ArgumentNullException(nameof(audioname)); } /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public BodyAudioIsolationStreamV1AudioIsolationStreamPost() { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyAudioIsolationV1AudioIsolationPost.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyAudioIsolationV1AudioIsolationPost.Json.g.cs new file mode 100644 index 0000000..9fe2154 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyAudioIsolationV1AudioIsolationPost.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class BodyAudioIsolationV1AudioIsolationPost + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.BodyAudioIsolationV1AudioIsolationPost? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.BodyAudioIsolationV1AudioIsolationPost), + jsonSerializerContext) as global::ElevenLabs.BodyAudioIsolationV1AudioIsolationPost; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.BodyAudioIsolationV1AudioIsolationPost? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.BodyAudioIsolationV1AudioIsolationPost), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.BodyAudioIsolationV1AudioIsolationPost; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyAudioIsolationV1AudioIsolationPost.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyAudioIsolationV1AudioIsolationPost.g.cs index 4547cd8..3d62c83 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyAudioIsolationV1AudioIsolationPost.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyAudioIsolationV1AudioIsolationPost.g.cs @@ -28,91 +28,29 @@ public sealed partial class BodyAudioIsolationV1AudioIsolationPost [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ElevenLabs.BodyAudioIsolationV1AudioIsolationPost? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.BodyAudioIsolationV1AudioIsolationPost), - jsonSerializerContext) as global::ElevenLabs.BodyAudioIsolationV1AudioIsolationPost; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.BodyAudioIsolationV1AudioIsolationPost? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// + /// The audio file from which vocals/speech will be isolated from. + /// + /// + /// The audio file from which vocals/speech will be isolated from. + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public BodyAudioIsolationV1AudioIsolationPost( + byte[] audio, + string audioname) { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.BodyAudioIsolationV1AudioIsolationPost), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.BodyAudioIsolationV1AudioIsolationPost; + this.Audio = audio ?? throw new global::System.ArgumentNullException(nameof(audio)); + this.Audioname = audioname ?? throw new global::System.ArgumentNullException(nameof(audioname)); } /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public BodyAudioIsolationV1AudioIsolationPost() { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyCreateANewVoiceFromVoicePreviewV1TextToVoiceCreateVoiceFromPreviewPost.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyCreateANewVoiceFromVoicePreviewV1TextToVoiceCreateVoiceFromPreviewPost.Json.g.cs new file mode 100644 index 0000000..f7add28 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyCreateANewVoiceFromVoicePreviewV1TextToVoiceCreateVoiceFromPreviewPost.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class BodyCreateANewVoiceFromVoicePreviewV1TextToVoiceCreateVoiceFromPreviewPost + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.BodyCreateANewVoiceFromVoicePreviewV1TextToVoiceCreateVoiceFromPreviewPost? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.BodyCreateANewVoiceFromVoicePreviewV1TextToVoiceCreateVoiceFromPreviewPost), + jsonSerializerContext) as global::ElevenLabs.BodyCreateANewVoiceFromVoicePreviewV1TextToVoiceCreateVoiceFromPreviewPost; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.BodyCreateANewVoiceFromVoicePreviewV1TextToVoiceCreateVoiceFromPreviewPost? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.BodyCreateANewVoiceFromVoicePreviewV1TextToVoiceCreateVoiceFromPreviewPost), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.BodyCreateANewVoiceFromVoicePreviewV1TextToVoiceCreateVoiceFromPreviewPost; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyCreateANewVoiceFromVoicePreviewV1TextToVoiceCreateVoiceFromPreviewPost.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyCreateANewVoiceFromVoicePreviewV1TextToVoiceCreateVoiceFromPreviewPost.g.cs index 35fd326..780241e 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyCreateANewVoiceFromVoicePreviewV1TextToVoiceCreateVoiceFromPreviewPost.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyCreateANewVoiceFromVoicePreviewV1TextToVoiceCreateVoiceFromPreviewPost.g.cs @@ -12,6 +12,7 @@ public sealed partial class BodyCreateANewVoiceFromVoicePreviewV1TextToVoiceCrea /// Name to use for the created voice.
/// Example: Little squeaky mouse /// + /// Little squeaky mouse [global::System.Text.Json.Serialization.JsonPropertyName("voice_name")] [global::System.Text.Json.Serialization.JsonRequired] public required string VoiceName { get; set; } @@ -20,6 +21,7 @@ public sealed partial class BodyCreateANewVoiceFromVoicePreviewV1TextToVoiceCrea /// Description to use for the created voice. See https://elevenlabs.io/docs/voices/voice-lab/voice-design for prompting guide.
/// Example: A sassy little squeaky mouse /// + /// A sassy little squeaky mouse [global::System.Text.Json.Serialization.JsonPropertyName("voice_description")] [global::System.Text.Json.Serialization.JsonRequired] public required string VoiceDescription { get; set; } @@ -28,6 +30,7 @@ public sealed partial class BodyCreateANewVoiceFromVoicePreviewV1TextToVoiceCrea /// The generated_voice_id to create, call POST /v1/text-to-voice/create-previews and fetch the generated_voice_id from the response if don't have one yet.
/// Example: 37HceQefKmEi3bGovXjL /// + /// 37HceQefKmEi3bGovXjL [global::System.Text.Json.Serialization.JsonPropertyName("generated_voice_id")] [global::System.Text.Json.Serialization.JsonRequired] public required string GeneratedVoiceId { get; set; } @@ -50,91 +53,47 @@ public sealed partial class BodyCreateANewVoiceFromVoicePreviewV1TextToVoiceCrea [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ElevenLabs.BodyCreateANewVoiceFromVoicePreviewV1TextToVoiceCreateVoiceFromPreviewPost? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.BodyCreateANewVoiceFromVoicePreviewV1TextToVoiceCreateVoiceFromPreviewPost), - jsonSerializerContext) as global::ElevenLabs.BodyCreateANewVoiceFromVoicePreviewV1TextToVoiceCreateVoiceFromPreviewPost; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.BodyCreateANewVoiceFromVoicePreviewV1TextToVoiceCreateVoiceFromPreviewPost? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// + /// Name to use for the created voice.
+ /// Example: Little squeaky mouse + /// + /// + /// Description to use for the created voice. See https://elevenlabs.io/docs/voices/voice-lab/voice-design for prompting guide.
+ /// Example: A sassy little squeaky mouse + /// + /// + /// The generated_voice_id to create, call POST /v1/text-to-voice/create-previews and fetch the generated_voice_id from the response if don't have one yet.
+ /// Example: 37HceQefKmEi3bGovXjL + /// + /// + /// Optional, metadata to add to the created voice. Defaults to None. + /// + /// + /// List of voice ids that the user has played but not selected. Used for RLHF. + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public BodyCreateANewVoiceFromVoicePreviewV1TextToVoiceCreateVoiceFromPreviewPost( + string voiceName, + string voiceDescription, + string generatedVoiceId, + global::System.Collections.Generic.Dictionary? labels, + global::System.Collections.Generic.IList? playedNotSelectedVoiceIds) { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.BodyCreateANewVoiceFromVoicePreviewV1TextToVoiceCreateVoiceFromPreviewPost), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.BodyCreateANewVoiceFromVoicePreviewV1TextToVoiceCreateVoiceFromPreviewPost; + this.VoiceName = voiceName ?? throw new global::System.ArgumentNullException(nameof(voiceName)); + this.VoiceDescription = voiceDescription ?? throw new global::System.ArgumentNullException(nameof(voiceDescription)); + this.GeneratedVoiceId = generatedVoiceId ?? throw new global::System.ArgumentNullException(nameof(generatedVoiceId)); + this.Labels = labels; + this.PlayedNotSelectedVoiceIds = playedNotSelectedVoiceIds; } /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public BodyCreateANewVoiceFromVoicePreviewV1TextToVoiceCreateVoiceFromPreviewPost() { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyCreateANewVoiceFromVoicePreviewV1TextToVoiceCreateVoiceFromPreviewPostLabels.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyCreateANewVoiceFromVoicePreviewV1TextToVoiceCreateVoiceFromPreviewPostLabels.Json.g.cs new file mode 100644 index 0000000..83620ff --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyCreateANewVoiceFromVoicePreviewV1TextToVoiceCreateVoiceFromPreviewPostLabels.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class BodyCreateANewVoiceFromVoicePreviewV1TextToVoiceCreateVoiceFromPreviewPostLabels + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.BodyCreateANewVoiceFromVoicePreviewV1TextToVoiceCreateVoiceFromPreviewPostLabels? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.BodyCreateANewVoiceFromVoicePreviewV1TextToVoiceCreateVoiceFromPreviewPostLabels), + jsonSerializerContext) as global::ElevenLabs.BodyCreateANewVoiceFromVoicePreviewV1TextToVoiceCreateVoiceFromPreviewPostLabels; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.BodyCreateANewVoiceFromVoicePreviewV1TextToVoiceCreateVoiceFromPreviewPostLabels? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.BodyCreateANewVoiceFromVoicePreviewV1TextToVoiceCreateVoiceFromPreviewPostLabels), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.BodyCreateANewVoiceFromVoicePreviewV1TextToVoiceCreateVoiceFromPreviewPostLabels; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyCreateANewVoiceFromVoicePreviewV1TextToVoiceCreateVoiceFromPreviewPostLabels.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyCreateANewVoiceFromVoicePreviewV1TextToVoiceCreateVoiceFromPreviewPostLabels.g.cs index 50f8bc8..dd8e754 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyCreateANewVoiceFromVoicePreviewV1TextToVoiceCreateVoiceFromPreviewPostLabels.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyCreateANewVoiceFromVoicePreviewV1TextToVoiceCreateVoiceFromPreviewPostLabels.g.cs @@ -15,91 +15,13 @@ public sealed partial class BodyCreateANewVoiceFromVoicePreviewV1TextToVoiceCrea [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static global::ElevenLabs.BodyCreateANewVoiceFromVoicePreviewV1TextToVoiceCreateVoiceFromPreviewPostLabels? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public BodyCreateANewVoiceFromVoicePreviewV1TextToVoiceCreateVoiceFromPreviewPostLabels( + ) { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.BodyCreateANewVoiceFromVoicePreviewV1TextToVoiceCreateVoiceFromPreviewPostLabels), - jsonSerializerContext) as global::ElevenLabs.BodyCreateANewVoiceFromVoicePreviewV1TextToVoiceCreateVoiceFromPreviewPostLabels; } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.BodyCreateANewVoiceFromVoicePreviewV1TextToVoiceCreateVoiceFromPreviewPostLabels? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.BodyCreateANewVoiceFromVoicePreviewV1TextToVoiceCreateVoiceFromPreviewPostLabels), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.BodyCreateANewVoiceFromVoicePreviewV1TextToVoiceCreateVoiceFromPreviewPostLabels; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyCreateAPreviouslyGeneratedVoiceV1VoiceGenerationCreateVoicePost.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyCreateAPreviouslyGeneratedVoiceV1VoiceGenerationCreateVoicePost.Json.g.cs new file mode 100644 index 0000000..b870910 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyCreateAPreviouslyGeneratedVoiceV1VoiceGenerationCreateVoicePost.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class BodyCreateAPreviouslyGeneratedVoiceV1VoiceGenerationCreateVoicePost + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.BodyCreateAPreviouslyGeneratedVoiceV1VoiceGenerationCreateVoicePost? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.BodyCreateAPreviouslyGeneratedVoiceV1VoiceGenerationCreateVoicePost), + jsonSerializerContext) as global::ElevenLabs.BodyCreateAPreviouslyGeneratedVoiceV1VoiceGenerationCreateVoicePost; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.BodyCreateAPreviouslyGeneratedVoiceV1VoiceGenerationCreateVoicePost? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.BodyCreateAPreviouslyGeneratedVoiceV1VoiceGenerationCreateVoicePost), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.BodyCreateAPreviouslyGeneratedVoiceV1VoiceGenerationCreateVoicePost; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyCreateAPreviouslyGeneratedVoiceV1VoiceGenerationCreateVoicePost.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyCreateAPreviouslyGeneratedVoiceV1VoiceGenerationCreateVoicePost.g.cs index cd6fbd0..b0230ec 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyCreateAPreviouslyGeneratedVoiceV1VoiceGenerationCreateVoicePost.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyCreateAPreviouslyGeneratedVoiceV1VoiceGenerationCreateVoicePost.g.cs @@ -12,6 +12,7 @@ public sealed partial class BodyCreateAPreviouslyGeneratedVoiceV1VoiceGeneration /// Name to use for the created voice.
/// Example: Little squeaky mouse /// + /// Little squeaky mouse [global::System.Text.Json.Serialization.JsonPropertyName("voice_name")] [global::System.Text.Json.Serialization.JsonRequired] public required string VoiceName { get; set; } @@ -20,6 +21,7 @@ public sealed partial class BodyCreateAPreviouslyGeneratedVoiceV1VoiceGeneration /// Description to use for the created voice.
/// Example: A sassy little squeaky mouse /// + /// A sassy little squeaky mouse [global::System.Text.Json.Serialization.JsonPropertyName("voice_description")] [global::System.Text.Json.Serialization.JsonRequired] public required string VoiceDescription { get; set; } @@ -28,6 +30,7 @@ public sealed partial class BodyCreateAPreviouslyGeneratedVoiceV1VoiceGeneration /// The generated_voice_id to create, call POST /v1/voice-generation/generate-voice and fetch the generated_voice_id from the response header if don't have one yet.
/// Example: 37HceQefKmEi3bGovXjL /// + /// 37HceQefKmEi3bGovXjL [global::System.Text.Json.Serialization.JsonPropertyName("generated_voice_id")] [global::System.Text.Json.Serialization.JsonRequired] public required string GeneratedVoiceId { get; set; } @@ -50,91 +53,47 @@ public sealed partial class BodyCreateAPreviouslyGeneratedVoiceV1VoiceGeneration [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ElevenLabs.BodyCreateAPreviouslyGeneratedVoiceV1VoiceGenerationCreateVoicePost? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.BodyCreateAPreviouslyGeneratedVoiceV1VoiceGenerationCreateVoicePost), - jsonSerializerContext) as global::ElevenLabs.BodyCreateAPreviouslyGeneratedVoiceV1VoiceGenerationCreateVoicePost; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.BodyCreateAPreviouslyGeneratedVoiceV1VoiceGenerationCreateVoicePost? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// + /// Name to use for the created voice.
+ /// Example: Little squeaky mouse + /// + /// + /// Description to use for the created voice.
+ /// Example: A sassy little squeaky mouse + /// + /// + /// The generated_voice_id to create, call POST /v1/voice-generation/generate-voice and fetch the generated_voice_id from the response header if don't have one yet.
+ /// Example: 37HceQefKmEi3bGovXjL + /// + /// + /// List of voice ids that the user has played but not selected. Used for RLHF. + /// + /// + /// Optional, metadata to add to the created voice. Defaults to None. + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public BodyCreateAPreviouslyGeneratedVoiceV1VoiceGenerationCreateVoicePost( + string voiceName, + string voiceDescription, + string generatedVoiceId, + global::System.Collections.Generic.IList? playedNotSelectedVoiceIds, + global::System.Collections.Generic.Dictionary? labels) { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.BodyCreateAPreviouslyGeneratedVoiceV1VoiceGenerationCreateVoicePost), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.BodyCreateAPreviouslyGeneratedVoiceV1VoiceGenerationCreateVoicePost; + this.VoiceName = voiceName ?? throw new global::System.ArgumentNullException(nameof(voiceName)); + this.VoiceDescription = voiceDescription ?? throw new global::System.ArgumentNullException(nameof(voiceDescription)); + this.GeneratedVoiceId = generatedVoiceId ?? throw new global::System.ArgumentNullException(nameof(generatedVoiceId)); + this.PlayedNotSelectedVoiceIds = playedNotSelectedVoiceIds; + this.Labels = labels; } /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public BodyCreateAPreviouslyGeneratedVoiceV1VoiceGenerationCreateVoicePost() { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyCreateAPreviouslyGeneratedVoiceV1VoiceGenerationCreateVoicePostLabels.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyCreateAPreviouslyGeneratedVoiceV1VoiceGenerationCreateVoicePostLabels.Json.g.cs new file mode 100644 index 0000000..2d93198 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyCreateAPreviouslyGeneratedVoiceV1VoiceGenerationCreateVoicePostLabels.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class BodyCreateAPreviouslyGeneratedVoiceV1VoiceGenerationCreateVoicePostLabels + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.BodyCreateAPreviouslyGeneratedVoiceV1VoiceGenerationCreateVoicePostLabels? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.BodyCreateAPreviouslyGeneratedVoiceV1VoiceGenerationCreateVoicePostLabels), + jsonSerializerContext) as global::ElevenLabs.BodyCreateAPreviouslyGeneratedVoiceV1VoiceGenerationCreateVoicePostLabels; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.BodyCreateAPreviouslyGeneratedVoiceV1VoiceGenerationCreateVoicePostLabels? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.BodyCreateAPreviouslyGeneratedVoiceV1VoiceGenerationCreateVoicePostLabels), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.BodyCreateAPreviouslyGeneratedVoiceV1VoiceGenerationCreateVoicePostLabels; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyCreateAPreviouslyGeneratedVoiceV1VoiceGenerationCreateVoicePostLabels.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyCreateAPreviouslyGeneratedVoiceV1VoiceGenerationCreateVoicePostLabels.g.cs index 962f39a..1ea0d0b 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyCreateAPreviouslyGeneratedVoiceV1VoiceGenerationCreateVoicePostLabels.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyCreateAPreviouslyGeneratedVoiceV1VoiceGenerationCreateVoicePostLabels.g.cs @@ -15,91 +15,13 @@ public sealed partial class BodyCreateAPreviouslyGeneratedVoiceV1VoiceGeneration [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static global::ElevenLabs.BodyCreateAPreviouslyGeneratedVoiceV1VoiceGenerationCreateVoicePostLabels? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public BodyCreateAPreviouslyGeneratedVoiceV1VoiceGenerationCreateVoicePostLabels( + ) { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.BodyCreateAPreviouslyGeneratedVoiceV1VoiceGenerationCreateVoicePostLabels), - jsonSerializerContext) as global::ElevenLabs.BodyCreateAPreviouslyGeneratedVoiceV1VoiceGenerationCreateVoicePostLabels; } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.BodyCreateAPreviouslyGeneratedVoiceV1VoiceGenerationCreateVoicePostLabels? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.BodyCreateAPreviouslyGeneratedVoiceV1VoiceGenerationCreateVoicePostLabels), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.BodyCreateAPreviouslyGeneratedVoiceV1VoiceGenerationCreateVoicePostLabels; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyCreateAgentV1ConvaiAgentsCreatePost.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyCreateAgentV1ConvaiAgentsCreatePost.Json.g.cs new file mode 100644 index 0000000..cb0f92f --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyCreateAgentV1ConvaiAgentsCreatePost.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class BodyCreateAgentV1ConvaiAgentsCreatePost + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.BodyCreateAgentV1ConvaiAgentsCreatePost? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.BodyCreateAgentV1ConvaiAgentsCreatePost), + jsonSerializerContext) as global::ElevenLabs.BodyCreateAgentV1ConvaiAgentsCreatePost; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.BodyCreateAgentV1ConvaiAgentsCreatePost? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.BodyCreateAgentV1ConvaiAgentsCreatePost), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.BodyCreateAgentV1ConvaiAgentsCreatePost; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyCreateAgentV1ConvaiAgentsCreatePost.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyCreateAgentV1ConvaiAgentsCreatePost.g.cs new file mode 100644 index 0000000..d18e7f8 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyCreateAgentV1ConvaiAgentsCreatePost.g.cs @@ -0,0 +1,66 @@ + +#nullable enable + +namespace ElevenLabs +{ + /// + /// + /// + public sealed partial class BodyCreateAgentV1ConvaiAgentsCreatePost + { + /// + /// Conversation configuration for an agent + /// + [global::System.Text.Json.Serialization.JsonPropertyName("conversation_config")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::ElevenLabs.ConversationalConfig ConversationConfig { get; set; } + + /// + /// Platform settings for the agent are all settings that aren't related to the conversation orchestration and content. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("platform_settings")] + public global::ElevenLabs.AgentPlatformSettings? PlatformSettings { get; set; } + + /// + /// A name to make the agent easier to find + /// + [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. + /// + /// + /// Conversation configuration for an agent + /// + /// + /// Platform settings for the agent are all settings that aren't related to the conversation orchestration and content. + /// + /// + /// A name to make the agent easier to find + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public BodyCreateAgentV1ConvaiAgentsCreatePost( + global::ElevenLabs.ConversationalConfig conversationConfig, + global::ElevenLabs.AgentPlatformSettings? platformSettings, + string? name) + { + this.ConversationConfig = conversationConfig ?? throw new global::System.ArgumentNullException(nameof(conversationConfig)); + this.PlatformSettings = platformSettings; + this.Name = name; + } + + /// + /// Initializes a new instance of the class. + /// + public BodyCreateAgentV1ConvaiAgentsCreatePost() + { + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyCreatesAudioNativeEnabledProjectV1AudioNativePost.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyCreatesAudioNativeEnabledProjectV1AudioNativePost.Json.g.cs new file mode 100644 index 0000000..d0b87f5 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyCreatesAudioNativeEnabledProjectV1AudioNativePost.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class BodyCreatesAudioNativeEnabledProjectV1AudioNativePost + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.BodyCreatesAudioNativeEnabledProjectV1AudioNativePost? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.BodyCreatesAudioNativeEnabledProjectV1AudioNativePost), + jsonSerializerContext) as global::ElevenLabs.BodyCreatesAudioNativeEnabledProjectV1AudioNativePost; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.BodyCreatesAudioNativeEnabledProjectV1AudioNativePost? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.BodyCreatesAudioNativeEnabledProjectV1AudioNativePost), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.BodyCreatesAudioNativeEnabledProjectV1AudioNativePost; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyCreatesAudioNativeEnabledProjectV1AudioNativePost.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyCreatesAudioNativeEnabledProjectV1AudioNativePost.g.cs index eece364..e74069c 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyCreatesAudioNativeEnabledProjectV1AudioNativePost.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyCreatesAudioNativeEnabledProjectV1AudioNativePost.g.cs @@ -96,91 +96,87 @@ public sealed partial class BodyCreatesAudioNativeEnabledProjectV1AudioNativePos [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ElevenLabs.BodyCreatesAudioNativeEnabledProjectV1AudioNativePost? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.BodyCreatesAudioNativeEnabledProjectV1AudioNativePost), - jsonSerializerContext) as global::ElevenLabs.BodyCreatesAudioNativeEnabledProjectV1AudioNativePost; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.BodyCreatesAudioNativeEnabledProjectV1AudioNativePost? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// + /// Project name. + /// + /// + /// Image URL used in the player. If not provided, default image set in the Player settings is used. + /// + /// + /// Author used in the player and inserted at the start of the uploaded article. If not provided, the default author set in the Player settings is used. + /// + /// + /// Title used in the player and inserted at the top of the uploaded article. If not provided, the default title set in the Player settings is used. + /// + /// + /// Whether to use small player or not. If not provided, default value set in the Player settings is used.
+ /// Default Value: false + /// + /// + /// Text color used in the player. If not provided, default text color set in the Player settings is used. + /// + /// + /// Background color used in the player. If not provided, default background color set in the Player settings is used. + /// + /// + /// Specifies for how many minutes to persist the session across page reloads. If not provided, default sessionization set in the Player settings is used.
+ /// Default Value: 0 + /// + /// + /// Voice ID used to voice the content. If not provided, default voice ID set in the Player settings is used. + /// + /// + /// TTS Model ID used in the player. If not provided, default model ID set in the Player settings is used. + /// + /// + /// Either txt or HTML input file containing the article content. HTML should be formatted as follows '<html><body><div><p>Your content</p><h5>More of your content</h5><p>Some more of your content</p></div></body></html>' + /// + /// + /// Either txt or HTML input file containing the article content. HTML should be formatted as follows '<html><body><div><p>Your content</p><h5>More of your content</h5><p>Some more of your content</p></div></body></html>' + /// + /// + /// Whether to auto convert the project to audio or not.
+ /// Default Value: false + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public BodyCreatesAudioNativeEnabledProjectV1AudioNativePost( + string name, + string? image, + string? author, + string? title, + bool? small, + string? textColor, + string? backgroundColor, + int? sessionization, + string? voiceId, + string? modelId, + byte[]? file, + string? filename, + bool? autoConvert) { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.BodyCreatesAudioNativeEnabledProjectV1AudioNativePost), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.BodyCreatesAudioNativeEnabledProjectV1AudioNativePost; + this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); + this.Image = image; + this.Author = author; + this.Title = title; + this.Small = small; + this.TextColor = textColor; + this.BackgroundColor = backgroundColor; + this.Sessionization = sessionization; + this.VoiceId = voiceId; + this.ModelId = modelId; + this.File = file; + this.Filename = filename; + this.AutoConvert = autoConvert; } /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public BodyCreatesAudioNativeEnabledProjectV1AudioNativePost() { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyDeleteExistingInvitationV1WorkspaceInvitesDelete.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyDeleteExistingInvitationV1WorkspaceInvitesDelete.Json.g.cs new file mode 100644 index 0000000..51a8cbb --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyDeleteExistingInvitationV1WorkspaceInvitesDelete.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class BodyDeleteExistingInvitationV1WorkspaceInvitesDelete + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.BodyDeleteExistingInvitationV1WorkspaceInvitesDelete? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.BodyDeleteExistingInvitationV1WorkspaceInvitesDelete), + jsonSerializerContext) as global::ElevenLabs.BodyDeleteExistingInvitationV1WorkspaceInvitesDelete; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.BodyDeleteExistingInvitationV1WorkspaceInvitesDelete? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.BodyDeleteExistingInvitationV1WorkspaceInvitesDelete), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.BodyDeleteExistingInvitationV1WorkspaceInvitesDelete; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyDeleteExistingInvitationV1WorkspaceInvitesDelete.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyDeleteExistingInvitationV1WorkspaceInvitesDelete.g.cs index 11cab8d..c4cba10 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyDeleteExistingInvitationV1WorkspaceInvitesDelete.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyDeleteExistingInvitationV1WorkspaceInvitesDelete.g.cs @@ -21,91 +21,24 @@ public sealed partial class BodyDeleteExistingInvitationV1WorkspaceInvitesDelete [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ElevenLabs.BodyDeleteExistingInvitationV1WorkspaceInvitesDelete? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.BodyDeleteExistingInvitationV1WorkspaceInvitesDelete), - jsonSerializerContext) as global::ElevenLabs.BodyDeleteExistingInvitationV1WorkspaceInvitesDelete; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.BodyDeleteExistingInvitationV1WorkspaceInvitesDelete? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// + /// Email of the target user. + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public BodyDeleteExistingInvitationV1WorkspaceInvitesDelete( + string email) { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.BodyDeleteExistingInvitationV1WorkspaceInvitesDelete), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.BodyDeleteExistingInvitationV1WorkspaceInvitesDelete; + this.Email = email ?? throw new global::System.ArgumentNullException(nameof(email)); } /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public BodyDeleteExistingInvitationV1WorkspaceInvitesDelete() { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyDownloadHistoryItemsV1HistoryDownloadPost.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyDownloadHistoryItemsV1HistoryDownloadPost.Json.g.cs new file mode 100644 index 0000000..2790200 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyDownloadHistoryItemsV1HistoryDownloadPost.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class BodyDownloadHistoryItemsV1HistoryDownloadPost + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.BodyDownloadHistoryItemsV1HistoryDownloadPost? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.BodyDownloadHistoryItemsV1HistoryDownloadPost), + jsonSerializerContext) as global::ElevenLabs.BodyDownloadHistoryItemsV1HistoryDownloadPost; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.BodyDownloadHistoryItemsV1HistoryDownloadPost? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.BodyDownloadHistoryItemsV1HistoryDownloadPost), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.BodyDownloadHistoryItemsV1HistoryDownloadPost; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyDownloadHistoryItemsV1HistoryDownloadPost.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyDownloadHistoryItemsV1HistoryDownloadPost.g.cs index 1fce030..f0ec4eb 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyDownloadHistoryItemsV1HistoryDownloadPost.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyDownloadHistoryItemsV1HistoryDownloadPost.g.cs @@ -27,91 +27,29 @@ public sealed partial class BodyDownloadHistoryItemsV1HistoryDownloadPost [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ElevenLabs.BodyDownloadHistoryItemsV1HistoryDownloadPost? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.BodyDownloadHistoryItemsV1HistoryDownloadPost), - jsonSerializerContext) as global::ElevenLabs.BodyDownloadHistoryItemsV1HistoryDownloadPost; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.BodyDownloadHistoryItemsV1HistoryDownloadPost? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// + /// A list of history items to download, you can get IDs of history items and other metadata using the GET https://api.elevenlabs.io/v1/history endpoint. + /// + /// + /// Output format to transcode the audio file, can be wav or default. + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public BodyDownloadHistoryItemsV1HistoryDownloadPost( + global::System.Collections.Generic.IList historyItemIds, + string? outputFormat) { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.BodyDownloadHistoryItemsV1HistoryDownloadPost), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.BodyDownloadHistoryItemsV1HistoryDownloadPost; + this.HistoryItemIds = historyItemIds ?? throw new global::System.ArgumentNullException(nameof(historyItemIds)); + this.OutputFormat = outputFormat; } /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public BodyDownloadHistoryItemsV1HistoryDownloadPost() { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyDubAVideoOrAnAudioFileV1DubbingPost.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyDubAVideoOrAnAudioFileV1DubbingPost.Json.g.cs new file mode 100644 index 0000000..6bd7b13 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyDubAVideoOrAnAudioFileV1DubbingPost.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class BodyDubAVideoOrAnAudioFileV1DubbingPost + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.BodyDubAVideoOrAnAudioFileV1DubbingPost? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.BodyDubAVideoOrAnAudioFileV1DubbingPost), + jsonSerializerContext) as global::ElevenLabs.BodyDubAVideoOrAnAudioFileV1DubbingPost; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.BodyDubAVideoOrAnAudioFileV1DubbingPost? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.BodyDubAVideoOrAnAudioFileV1DubbingPost), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.BodyDubAVideoOrAnAudioFileV1DubbingPost; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyDubAVideoOrAnAudioFileV1DubbingPost.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyDubAVideoOrAnAudioFileV1DubbingPost.g.cs index 51500e6..2413a4a 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyDubAVideoOrAnAudioFileV1DubbingPost.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyDubAVideoOrAnAudioFileV1DubbingPost.g.cs @@ -97,91 +97,89 @@ public sealed partial class BodyDubAVideoOrAnAudioFileV1DubbingPost [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ElevenLabs.BodyDubAVideoOrAnAudioFileV1DubbingPost? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.BodyDubAVideoOrAnAudioFileV1DubbingPost), - jsonSerializerContext) as global::ElevenLabs.BodyDubAVideoOrAnAudioFileV1DubbingPost; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.BodyDubAVideoOrAnAudioFileV1DubbingPost? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// + /// A list of file paths to audio recordings intended for voice cloning + /// + /// + /// A list of file paths to audio recordings intended for voice cloning + /// + /// + /// Name of the dubbing project. + /// + /// + /// URL of the source video/audio file. + /// + /// + /// Source language.
+ /// Default Value: auto + /// + /// + /// The Target language to dub the content into. + /// + /// + /// Number of speakers to use for the dubbing. Set to 0 to automatically detect the number of speakers
+ /// Default Value: 0 + /// + /// + /// Whether to apply watermark to the output video.
+ /// Default Value: false + /// + /// + /// Start time of the source video/audio file. + /// + /// + /// End time of the source video/audio file. + /// + /// + /// Whether to use the highest resolution available.
+ /// Default Value: false + /// + /// + /// An advanced setting. Whether to drop background audio from the final dub. This can improve dub quality where it's known that audio shouldn't have a background track such as for speeches or monologues.
+ /// Default Value: false + /// + /// + /// [BETA] Whether transcripts should have profanities censored with the words '[censored]' + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public BodyDubAVideoOrAnAudioFileV1DubbingPost( + byte[]? file, + string? filename, + string? name, + string? sourceUrl, + string? sourceLang, + string? targetLang, + int? numSpeakers, + bool? watermark, + int? startTime, + int? endTime, + bool? highestResolution, + bool? dropBackgroundAudio, + bool? useProfanityFilter) { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.BodyDubAVideoOrAnAudioFileV1DubbingPost), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.BodyDubAVideoOrAnAudioFileV1DubbingPost; + this.File = file; + this.Filename = filename; + this.Name = name; + this.SourceUrl = sourceUrl; + this.SourceLang = sourceLang; + this.TargetLang = targetLang; + this.NumSpeakers = numSpeakers; + this.Watermark = watermark; + this.StartTime = startTime; + this.EndTime = endTime; + this.HighestResolution = highestResolution; + this.DropBackgroundAudio = dropBackgroundAudio; + this.UseProfanityFilter = useProfanityFilter; } /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public BodyDubAVideoOrAnAudioFileV1DubbingPost() { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyEditBasicProjectInfoV1ProjectsProjectIdPost.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyEditBasicProjectInfoV1ProjectsProjectIdPost.Json.g.cs new file mode 100644 index 0000000..813f469 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyEditBasicProjectInfoV1ProjectsProjectIdPost.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class BodyEditBasicProjectInfoV1ProjectsProjectIdPost + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.BodyEditBasicProjectInfoV1ProjectsProjectIdPost? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.BodyEditBasicProjectInfoV1ProjectsProjectIdPost), + jsonSerializerContext) as global::ElevenLabs.BodyEditBasicProjectInfoV1ProjectsProjectIdPost; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.BodyEditBasicProjectInfoV1ProjectsProjectIdPost? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.BodyEditBasicProjectInfoV1ProjectsProjectIdPost), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.BodyEditBasicProjectInfoV1ProjectsProjectIdPost; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyEditBasicProjectInfoV1ProjectsProjectIdPost.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyEditBasicProjectInfoV1ProjectsProjectIdPost.g.cs index 1fe6009..e1d97a0 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyEditBasicProjectInfoV1ProjectsProjectIdPost.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyEditBasicProjectInfoV1ProjectsProjectIdPost.g.cs @@ -55,96 +55,71 @@ public sealed partial class BodyEditBasicProjectInfoV1ProjectsProjectIdPost public bool? VolumeNormalization { get; set; } /// - /// Additional properties that are not explicitly defined in the schema + /// Whether to run quality check on the generated audio and regenerate if needed. /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } + [global::System.Text.Json.Serialization.JsonPropertyName("quality_check_on")] + public bool? QualityCheckOn { get; set; } /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ElevenLabs.BodyEditBasicProjectInfoV1ProjectsProjectIdPost? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.BodyEditBasicProjectInfoV1ProjectsProjectIdPost), - jsonSerializerContext) as global::ElevenLabs.BodyEditBasicProjectInfoV1ProjectsProjectIdPost; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// Additional properties that are not explicitly defined in the schema /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.BodyEditBasicProjectInfoV1ProjectsProjectIdPost? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// + /// The name of the project, used for identification only. + /// + /// + /// The voice_id that corresponds to the default voice used for new titles. + /// + /// + /// The voice_id that corresponds to the default voice used for new paragraphs. + /// + /// + /// An optional name of the author of the project, this will be added as metadata to the mp3 file on project / chapter download. + /// + /// + /// An optional name of the author of the project, this will be added as metadata to the mp3 file on project / chapter download. + /// + /// + /// An optional ISBN number of the project you want to create, this will be added as metadata to the mp3 file on project / chapter download. + /// + /// + /// When the project is downloaded, should the returned audio have postprocessing in order to make it compliant with audiobook normalized volume requirements
+ /// Default Value: false + /// + /// + /// Whether to run quality check on the generated audio and regenerate if needed. + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public BodyEditBasicProjectInfoV1ProjectsProjectIdPost( + string name, + string defaultTitleVoiceId, + string defaultParagraphVoiceId, + string? title, + string? author, + string? isbnNumber, + bool? volumeNormalization, + bool? qualityCheckOn) { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.BodyEditBasicProjectInfoV1ProjectsProjectIdPost), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.BodyEditBasicProjectInfoV1ProjectsProjectIdPost; + this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); + this.DefaultTitleVoiceId = defaultTitleVoiceId ?? throw new global::System.ArgumentNullException(nameof(defaultTitleVoiceId)); + this.DefaultParagraphVoiceId = defaultParagraphVoiceId ?? throw new global::System.ArgumentNullException(nameof(defaultParagraphVoiceId)); + this.Title = title; + this.Author = author; + this.IsbnNumber = isbnNumber; + this.VolumeNormalization = volumeNormalization; + this.QualityCheckOn = qualityCheckOn; } /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public BodyEditBasicProjectInfoV1ProjectsProjectIdPost() { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyEditVoiceV1VoicesVoiceIdEditPost.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyEditVoiceV1VoicesVoiceIdEditPost.Json.g.cs new file mode 100644 index 0000000..39df0a6 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyEditVoiceV1VoicesVoiceIdEditPost.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class BodyEditVoiceV1VoicesVoiceIdEditPost + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.BodyEditVoiceV1VoicesVoiceIdEditPost? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.BodyEditVoiceV1VoicesVoiceIdEditPost), + jsonSerializerContext) as global::ElevenLabs.BodyEditVoiceV1VoicesVoiceIdEditPost; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.BodyEditVoiceV1VoicesVoiceIdEditPost? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.BodyEditVoiceV1VoicesVoiceIdEditPost), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.BodyEditVoiceV1VoicesVoiceIdEditPost; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyEditVoiceV1VoicesVoiceIdEditPost.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyEditVoiceV1VoicesVoiceIdEditPost.g.cs index 592c411..f8fec98 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyEditVoiceV1VoicesVoiceIdEditPost.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyEditVoiceV1VoicesVoiceIdEditPost.g.cs @@ -46,91 +46,45 @@ public sealed partial class BodyEditVoiceV1VoicesVoiceIdEditPost [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ElevenLabs.BodyEditVoiceV1VoicesVoiceIdEditPost? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.BodyEditVoiceV1VoicesVoiceIdEditPost), - jsonSerializerContext) as global::ElevenLabs.BodyEditVoiceV1VoicesVoiceIdEditPost; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.BodyEditVoiceV1VoicesVoiceIdEditPost? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// + /// The name that identifies this voice. This will be displayed in the dropdown of the website. + /// + /// + /// Audio files to add to the voice + /// + /// + /// If set will remove background noise for voice samples using our audio isolation model. If the samples do not include background noise, it can make the quality worse.
+ /// Default Value: false + /// + /// + /// How would you describe the voice? + /// + /// + /// Serialized labels dictionary for the voice. + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public BodyEditVoiceV1VoicesVoiceIdEditPost( + string name, + global::System.Collections.Generic.IList? files, + bool? removeBackgroundNoise, + string? description, + string? labels) { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.BodyEditVoiceV1VoicesVoiceIdEditPost), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.BodyEditVoiceV1VoicesVoiceIdEditPost; + this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); + this.Files = files; + this.RemoveBackgroundNoise = removeBackgroundNoise; + this.Description = description; + this.Labels = labels; } /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public BodyEditVoiceV1VoicesVoiceIdEditPost() { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyGenerateARandomVoiceV1VoiceGenerationGenerateVoicePost.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyGenerateARandomVoiceV1VoiceGenerationGenerateVoicePost.Json.g.cs new file mode 100644 index 0000000..4fd7256 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyGenerateARandomVoiceV1VoiceGenerationGenerateVoicePost.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class BodyGenerateARandomVoiceV1VoiceGenerationGenerateVoicePost + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.BodyGenerateARandomVoiceV1VoiceGenerationGenerateVoicePost? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.BodyGenerateARandomVoiceV1VoiceGenerationGenerateVoicePost), + jsonSerializerContext) as global::ElevenLabs.BodyGenerateARandomVoiceV1VoiceGenerationGenerateVoicePost; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.BodyGenerateARandomVoiceV1VoiceGenerationGenerateVoicePost? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.BodyGenerateARandomVoiceV1VoiceGenerationGenerateVoicePost), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.BodyGenerateARandomVoiceV1VoiceGenerationGenerateVoicePost; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyGenerateARandomVoiceV1VoiceGenerationGenerateVoicePost.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyGenerateARandomVoiceV1VoiceGenerationGenerateVoicePost.g.cs index aa5490c..16fc0e4 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyGenerateARandomVoiceV1VoiceGenerationGenerateVoicePost.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyGenerateARandomVoiceV1VoiceGenerationGenerateVoicePost.g.cs @@ -42,6 +42,7 @@ public sealed partial class BodyGenerateARandomVoiceV1VoiceGenerationGenerateVoi /// Text to use for generating the voice preview. Text length has to be between 100 and 1000.
/// Example: Every act of kindness, no matter how small, carries value and can make a difference, as no gesture of goodwill is ever wasted. /// + /// Every act of kindness, no matter how small, carries value and can make a difference, as no gesture of goodwill is ever wasted. [global::System.Text.Json.Serialization.JsonPropertyName("text")] [global::System.Text.Json.Serialization.JsonRequired] public required string Text { get; set; } @@ -52,91 +53,45 @@ public sealed partial class BodyGenerateARandomVoiceV1VoiceGenerationGenerateVoi [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ElevenLabs.BodyGenerateARandomVoiceV1VoiceGenerationGenerateVoicePost? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.BodyGenerateARandomVoiceV1VoiceGenerationGenerateVoicePost), - jsonSerializerContext) as global::ElevenLabs.BodyGenerateARandomVoiceV1VoiceGenerationGenerateVoicePost; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.BodyGenerateARandomVoiceV1VoiceGenerationGenerateVoicePost? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// + /// Category code corresponding to the gender of the generated voice. Possible values: female, male. + /// + /// + /// Category code corresponding to the accent of the generated voice. Possible values: american, british, african, australian, indian. + /// + /// + /// Category code corresponding to the age of the generated voice. Possible values: young, middle_aged, old. + /// + /// + /// The strength of the accent of the generated voice. Has to be between 0.3 and 2.0. + /// + /// + /// Text to use for generating the voice preview. Text length has to be between 100 and 1000.
+ /// Example: Every act of kindness, no matter how small, carries value and can make a difference, as no gesture of goodwill is ever wasted. + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public BodyGenerateARandomVoiceV1VoiceGenerationGenerateVoicePost( + global::ElevenLabs.BodyGenerateARandomVoiceV1VoiceGenerationGenerateVoicePostGender gender, + string accent, + global::ElevenLabs.BodyGenerateARandomVoiceV1VoiceGenerationGenerateVoicePostAge age, + double accentStrength, + string text) { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.BodyGenerateARandomVoiceV1VoiceGenerationGenerateVoicePost), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.BodyGenerateARandomVoiceV1VoiceGenerationGenerateVoicePost; + this.Gender = gender; + this.Accent = accent ?? throw new global::System.ArgumentNullException(nameof(accent)); + this.Age = age; + this.AccentStrength = accentStrength; + this.Text = text ?? throw new global::System.ArgumentNullException(nameof(text)); } /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public BodyGenerateARandomVoiceV1VoiceGenerationGenerateVoicePost() { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyGenerateAVoicePreviewFromDescriptionV1TextToVoiceCreatePreviewsPost.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyGenerateAVoicePreviewFromDescriptionV1TextToVoiceCreatePreviewsPost.Json.g.cs new file mode 100644 index 0000000..62e764f --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyGenerateAVoicePreviewFromDescriptionV1TextToVoiceCreatePreviewsPost.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class BodyGenerateAVoicePreviewFromDescriptionV1TextToVoiceCreatePreviewsPost + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.BodyGenerateAVoicePreviewFromDescriptionV1TextToVoiceCreatePreviewsPost? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.BodyGenerateAVoicePreviewFromDescriptionV1TextToVoiceCreatePreviewsPost), + jsonSerializerContext) as global::ElevenLabs.BodyGenerateAVoicePreviewFromDescriptionV1TextToVoiceCreatePreviewsPost; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.BodyGenerateAVoicePreviewFromDescriptionV1TextToVoiceCreatePreviewsPost? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.BodyGenerateAVoicePreviewFromDescriptionV1TextToVoiceCreatePreviewsPost), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.BodyGenerateAVoicePreviewFromDescriptionV1TextToVoiceCreatePreviewsPost; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyGenerateAVoicePreviewFromDescriptionV1TextToVoiceCreatePreviewsPost.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyGenerateAVoicePreviewFromDescriptionV1TextToVoiceCreatePreviewsPost.g.cs index 716d24a..a19ff0f 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyGenerateAVoicePreviewFromDescriptionV1TextToVoiceCreatePreviewsPost.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyGenerateAVoicePreviewFromDescriptionV1TextToVoiceCreatePreviewsPost.g.cs @@ -12,6 +12,7 @@ public sealed partial class BodyGenerateAVoicePreviewFromDescriptionV1TextToVoic /// Description to use for the created voice.
/// Example: A sassy little squeaky mouse /// + /// A sassy little squeaky mouse [global::System.Text.Json.Serialization.JsonPropertyName("voice_description")] [global::System.Text.Json.Serialization.JsonRequired] public required string VoiceDescription { get; set; } @@ -20,6 +21,7 @@ public sealed partial class BodyGenerateAVoicePreviewFromDescriptionV1TextToVoic /// Text to generate, text length has to be between 100 and 1000.
/// Example: Every act of kindness, no matter how small, carries value and can make a difference, as no gesture of goodwill is ever wasted. /// + /// Every act of kindness, no matter how small, carries value and can make a difference, as no gesture of goodwill is ever wasted. [global::System.Text.Json.Serialization.JsonPropertyName("text")] [global::System.Text.Json.Serialization.JsonRequired] public required string Text { get; set; } @@ -30,91 +32,31 @@ public sealed partial class BodyGenerateAVoicePreviewFromDescriptionV1TextToVoic [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ElevenLabs.BodyGenerateAVoicePreviewFromDescriptionV1TextToVoiceCreatePreviewsPost? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.BodyGenerateAVoicePreviewFromDescriptionV1TextToVoiceCreatePreviewsPost), - jsonSerializerContext) as global::ElevenLabs.BodyGenerateAVoicePreviewFromDescriptionV1TextToVoiceCreatePreviewsPost; - } - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.BodyGenerateAVoicePreviewFromDescriptionV1TextToVoiceCreatePreviewsPost? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// + /// Description to use for the created voice.
+ /// Example: A sassy little squeaky mouse + /// + /// + /// Text to generate, text length has to be between 100 and 1000.
+ /// Example: Every act of kindness, no matter how small, carries value and can make a difference, as no gesture of goodwill is ever wasted. + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public BodyGenerateAVoicePreviewFromDescriptionV1TextToVoiceCreatePreviewsPost( + string voiceDescription, + string text) { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.BodyGenerateAVoicePreviewFromDescriptionV1TextToVoiceCreatePreviewsPost), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.BodyGenerateAVoicePreviewFromDescriptionV1TextToVoiceCreatePreviewsPost; + this.VoiceDescription = voiceDescription ?? throw new global::System.ArgumentNullException(nameof(voiceDescription)); + this.Text = text ?? throw new global::System.ArgumentNullException(nameof(text)); } /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public BodyGenerateAVoicePreviewFromDescriptionV1TextToVoiceCreatePreviewsPost() { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyGetSimilarLibraryVoicesV1SimilarVoicesPost.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyGetSimilarLibraryVoicesV1SimilarVoicesPost.Json.g.cs new file mode 100644 index 0000000..85c3107 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyGetSimilarLibraryVoicesV1SimilarVoicesPost.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class BodyGetSimilarLibraryVoicesV1SimilarVoicesPost + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.BodyGetSimilarLibraryVoicesV1SimilarVoicesPost? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.BodyGetSimilarLibraryVoicesV1SimilarVoicesPost), + jsonSerializerContext) as global::ElevenLabs.BodyGetSimilarLibraryVoicesV1SimilarVoicesPost; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.BodyGetSimilarLibraryVoicesV1SimilarVoicesPost? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.BodyGetSimilarLibraryVoicesV1SimilarVoicesPost), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.BodyGetSimilarLibraryVoicesV1SimilarVoicesPost; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyGetSimilarLibraryVoicesV1SimilarVoicesPost.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyGetSimilarLibraryVoicesV1SimilarVoicesPost.g.cs index 54ef2c1..11f34e6 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyGetSimilarLibraryVoicesV1SimilarVoicesPost.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyGetSimilarLibraryVoicesV1SimilarVoicesPost.g.cs @@ -38,91 +38,35 @@ public sealed partial class BodyGetSimilarLibraryVoicesV1SimilarVoicesPost [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ElevenLabs.BodyGetSimilarLibraryVoicesV1SimilarVoicesPost? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.BodyGetSimilarLibraryVoicesV1SimilarVoicesPost), - jsonSerializerContext) as global::ElevenLabs.BodyGetSimilarLibraryVoicesV1SimilarVoicesPost; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.BodyGetSimilarLibraryVoicesV1SimilarVoicesPost? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// + /// + /// + /// Threshold for voice similarity between provided sample and library voices. Must be in range <0, 2>. The smaller the value the more similar voices will be returned. + /// + /// + /// Number of most similar voices to return. If similarity_threshold is provided, less than this number of voices may be returned. Must be in range <1, 100>. + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public BodyGetSimilarLibraryVoicesV1SimilarVoicesPost( + byte[]? audioFile, + string? audioFilename, + double? similarityThreshold, + int? topK) { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.BodyGetSimilarLibraryVoicesV1SimilarVoicesPost), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.BodyGetSimilarLibraryVoicesV1SimilarVoicesPost; + this.AudioFile = audioFile; + this.AudioFilename = audioFilename; + this.SimilarityThreshold = similarityThreshold; + this.TopK = topK; } /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public BodyGetSimilarLibraryVoicesV1SimilarVoicesPost() { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyInviteUserV1WorkspaceInvitesAddPost.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyInviteUserV1WorkspaceInvitesAddPost.Json.g.cs new file mode 100644 index 0000000..0351722 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyInviteUserV1WorkspaceInvitesAddPost.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class BodyInviteUserV1WorkspaceInvitesAddPost + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.BodyInviteUserV1WorkspaceInvitesAddPost? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.BodyInviteUserV1WorkspaceInvitesAddPost), + jsonSerializerContext) as global::ElevenLabs.BodyInviteUserV1WorkspaceInvitesAddPost; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.BodyInviteUserV1WorkspaceInvitesAddPost? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.BodyInviteUserV1WorkspaceInvitesAddPost), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.BodyInviteUserV1WorkspaceInvitesAddPost; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyInviteUserV1WorkspaceInvitesAddPost.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyInviteUserV1WorkspaceInvitesAddPost.g.cs index 6bcdb8d..bd61b1d 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyInviteUserV1WorkspaceInvitesAddPost.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyInviteUserV1WorkspaceInvitesAddPost.g.cs @@ -21,91 +21,24 @@ public sealed partial class BodyInviteUserV1WorkspaceInvitesAddPost [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ElevenLabs.BodyInviteUserV1WorkspaceInvitesAddPost? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.BodyInviteUserV1WorkspaceInvitesAddPost), - jsonSerializerContext) as global::ElevenLabs.BodyInviteUserV1WorkspaceInvitesAddPost; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.BodyInviteUserV1WorkspaceInvitesAddPost? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// + /// Email of the target user. + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public BodyInviteUserV1WorkspaceInvitesAddPost( + string email) { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.BodyInviteUserV1WorkspaceInvitesAddPost), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.BodyInviteUserV1WorkspaceInvitesAddPost; + this.Email = email ?? throw new global::System.ArgumentNullException(nameof(email)); } /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public BodyInviteUserV1WorkspaceInvitesAddPost() { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatch.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatch.Json.g.cs new file mode 100644 index 0000000..2d9891d --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatch.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatch + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatch? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatch), + jsonSerializerContext) as global::ElevenLabs.BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatch; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatch? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatch), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatch; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatch.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatch.g.cs new file mode 100644 index 0000000..db6eed7 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatch.g.cs @@ -0,0 +1,65 @@ + +#nullable enable + +namespace ElevenLabs +{ + /// + /// + /// + public sealed partial class BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatch + { + /// + /// Conversation configuration for an agent + /// + [global::System.Text.Json.Serialization.JsonPropertyName("conversation_config")] + public object? ConversationConfig { get; set; } + + /// + /// Platform settings for the agent are all settings that aren't related to the conversation orchestration and content. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("platform_settings")] + public object? PlatformSettings { get; set; } + + /// + /// A name to make the agent easier to find + /// + [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. + /// + /// + /// Conversation configuration for an agent + /// + /// + /// Platform settings for the agent are all settings that aren't related to the conversation orchestration and content. + /// + /// + /// A name to make the agent easier to find + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatch( + object? conversationConfig, + object? platformSettings, + string? name) + { + this.ConversationConfig = conversationConfig; + this.PlatformSettings = platformSettings; + this.Name = name; + } + + /// + /// Initializes a new instance of the class. + /// + public BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatch() + { + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchConversationConfig.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchConversationConfig.Json.g.cs new file mode 100644 index 0000000..3e6063d --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchConversationConfig.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchConversationConfig + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchConversationConfig? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchConversationConfig), + jsonSerializerContext) as global::ElevenLabs.BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchConversationConfig; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchConversationConfig? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchConversationConfig), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchConversationConfig; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchConversationConfig.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchConversationConfig.g.cs new file mode 100644 index 0000000..8d8f02e --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchConversationConfig.g.cs @@ -0,0 +1,27 @@ + +#nullable enable + +namespace ElevenLabs +{ + /// + /// Conversation configuration for an agent + /// + public sealed partial class BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchConversationConfig + { + + /// + /// Additional properties that are not explicitly defined 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. + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchConversationConfig( + ) + { + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchPlatformSettings.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchPlatformSettings.Json.g.cs new file mode 100644 index 0000000..5c854cd --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchPlatformSettings.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchPlatformSettings + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchPlatformSettings? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchPlatformSettings), + jsonSerializerContext) as global::ElevenLabs.BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchPlatformSettings; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchPlatformSettings? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchPlatformSettings), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchPlatformSettings; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchPlatformSettings.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchPlatformSettings.g.cs new file mode 100644 index 0000000..5278eb4 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchPlatformSettings.g.cs @@ -0,0 +1,27 @@ + +#nullable enable + +namespace ElevenLabs +{ + /// + /// Platform settings for the agent are all settings that aren't related to the conversation orchestration and content. + /// + public sealed partial class BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchPlatformSettings + { + + /// + /// Additional properties that are not explicitly defined 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. + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchPlatformSettings( + ) + { + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyPostAgentAvatarV1ConvaiAgentsAgentIdAvatarPost.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyPostAgentAvatarV1ConvaiAgentsAgentIdAvatarPost.Json.g.cs new file mode 100644 index 0000000..b174a45 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyPostAgentAvatarV1ConvaiAgentsAgentIdAvatarPost.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class BodyPostAgentAvatarV1ConvaiAgentsAgentIdAvatarPost + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.BodyPostAgentAvatarV1ConvaiAgentsAgentIdAvatarPost? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.BodyPostAgentAvatarV1ConvaiAgentsAgentIdAvatarPost), + jsonSerializerContext) as global::ElevenLabs.BodyPostAgentAvatarV1ConvaiAgentsAgentIdAvatarPost; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.BodyPostAgentAvatarV1ConvaiAgentsAgentIdAvatarPost? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.BodyPostAgentAvatarV1ConvaiAgentsAgentIdAvatarPost), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.BodyPostAgentAvatarV1ConvaiAgentsAgentIdAvatarPost; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyPostAgentAvatarV1ConvaiAgentsAgentIdAvatarPost.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyPostAgentAvatarV1ConvaiAgentsAgentIdAvatarPost.g.cs new file mode 100644 index 0000000..d516d33 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyPostAgentAvatarV1ConvaiAgentsAgentIdAvatarPost.g.cs @@ -0,0 +1,56 @@ + +#nullable enable + +namespace ElevenLabs +{ + /// + /// + /// + public sealed partial class BodyPostAgentAvatarV1ConvaiAgentsAgentIdAvatarPost + { + /// + /// An image file to be used as the agent's avatar. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("avatar_file")] + [global::System.Text.Json.Serialization.JsonRequired] + public required byte[] AvatarFile { get; set; } + + /// + /// An image file to be used as the agent's avatar. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("avatar_filename")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string AvatarFilename { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// An image file to be used as the agent's avatar. + /// + /// + /// An image file to be used as the agent's avatar. + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public BodyPostAgentAvatarV1ConvaiAgentsAgentIdAvatarPost( + byte[] avatarFile, + string avatarFilename) + { + this.AvatarFile = avatarFile ?? throw new global::System.ArgumentNullException(nameof(avatarFile)); + this.AvatarFilename = avatarFilename ?? throw new global::System.ArgumentNullException(nameof(avatarFilename)); + } + + /// + /// Initializes a new instance of the class. + /// + public BodyPostAgentAvatarV1ConvaiAgentsAgentIdAvatarPost() + { + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyRemoveRulesFromThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdRemoveRulesPost.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyRemoveRulesFromThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdRemoveRulesPost.Json.g.cs new file mode 100644 index 0000000..7350c1f --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyRemoveRulesFromThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdRemoveRulesPost.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class BodyRemoveRulesFromThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdRemoveRulesPost + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.BodyRemoveRulesFromThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdRemoveRulesPost? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.BodyRemoveRulesFromThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdRemoveRulesPost), + jsonSerializerContext) as global::ElevenLabs.BodyRemoveRulesFromThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdRemoveRulesPost; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.BodyRemoveRulesFromThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdRemoveRulesPost? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.BodyRemoveRulesFromThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdRemoveRulesPost), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.BodyRemoveRulesFromThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdRemoveRulesPost; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyRemoveRulesFromThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdRemoveRulesPost.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyRemoveRulesFromThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdRemoveRulesPost.g.cs index 2446ecb..39ed653 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyRemoveRulesFromThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdRemoveRulesPost.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyRemoveRulesFromThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdRemoveRulesPost.g.cs @@ -21,91 +21,24 @@ public sealed partial class BodyRemoveRulesFromThePronunciationDictionaryV1Pronu [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ElevenLabs.BodyRemoveRulesFromThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdRemoveRulesPost? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.BodyRemoveRulesFromThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdRemoveRulesPost), - jsonSerializerContext) as global::ElevenLabs.BodyRemoveRulesFromThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdRemoveRulesPost; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.BodyRemoveRulesFromThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdRemoveRulesPost? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// + /// List of strings to remove from the pronunciation dictionary. + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public BodyRemoveRulesFromThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdRemoveRulesPost( + global::System.Collections.Generic.IList ruleStrings) { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.BodyRemoveRulesFromThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdRemoveRulesPost), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.BodyRemoveRulesFromThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdRemoveRulesPost; + this.RuleStrings = ruleStrings ?? throw new global::System.ArgumentNullException(nameof(ruleStrings)); } /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public BodyRemoveRulesFromThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdRemoveRulesPost() { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodySoundGenerationV1SoundGenerationPost.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodySoundGenerationV1SoundGenerationPost.Json.g.cs new file mode 100644 index 0000000..a0f821e --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodySoundGenerationV1SoundGenerationPost.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class BodySoundGenerationV1SoundGenerationPost + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.BodySoundGenerationV1SoundGenerationPost? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.BodySoundGenerationV1SoundGenerationPost), + jsonSerializerContext) as global::ElevenLabs.BodySoundGenerationV1SoundGenerationPost; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.BodySoundGenerationV1SoundGenerationPost? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.BodySoundGenerationV1SoundGenerationPost), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.BodySoundGenerationV1SoundGenerationPost; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodySoundGenerationV1SoundGenerationPost.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodySoundGenerationV1SoundGenerationPost.g.cs index 5fa6919..7b7888f 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodySoundGenerationV1SoundGenerationPost.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodySoundGenerationV1SoundGenerationPost.g.cs @@ -34,91 +34,35 @@ public sealed partial class BodySoundGenerationV1SoundGenerationPost [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ElevenLabs.BodySoundGenerationV1SoundGenerationPost? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.BodySoundGenerationV1SoundGenerationPost), - jsonSerializerContext) as global::ElevenLabs.BodySoundGenerationV1SoundGenerationPost; - } - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.BodySoundGenerationV1SoundGenerationPost? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// + /// The text that will get converted into a sound effect. + /// + /// + /// The duration of the sound which will be generated in seconds. Must be at least 0.5 and at most 22. If set to None we will guess the optimal duration using the prompt. Defaults to None. + /// + /// + /// A higher prompt influence makes your generation follow the prompt more closely while also making generations less variable. Must be a value between 0 and 1. Defaults to 0.3.
+ /// Default Value: 0.3 + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public BodySoundGenerationV1SoundGenerationPost( + string text, + double? durationSeconds, + double? promptInfluence) { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.BodySoundGenerationV1SoundGenerationPost), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.BodySoundGenerationV1SoundGenerationPost; + this.Text = text ?? throw new global::System.ArgumentNullException(nameof(text)); + this.DurationSeconds = durationSeconds; + this.PromptInfluence = promptInfluence; } /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public BodySoundGenerationV1SoundGenerationPost() { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodySpeechToSpeechStreamingV1SpeechToSpeechVoiceIdStreamPost.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodySpeechToSpeechStreamingV1SpeechToSpeechVoiceIdStreamPost.Json.g.cs new file mode 100644 index 0000000..35bb02b --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodySpeechToSpeechStreamingV1SpeechToSpeechVoiceIdStreamPost.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class BodySpeechToSpeechStreamingV1SpeechToSpeechVoiceIdStreamPost + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.BodySpeechToSpeechStreamingV1SpeechToSpeechVoiceIdStreamPost? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.BodySpeechToSpeechStreamingV1SpeechToSpeechVoiceIdStreamPost), + jsonSerializerContext) as global::ElevenLabs.BodySpeechToSpeechStreamingV1SpeechToSpeechVoiceIdStreamPost; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.BodySpeechToSpeechStreamingV1SpeechToSpeechVoiceIdStreamPost? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.BodySpeechToSpeechStreamingV1SpeechToSpeechVoiceIdStreamPost), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.BodySpeechToSpeechStreamingV1SpeechToSpeechVoiceIdStreamPost; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodySpeechToSpeechStreamingV1SpeechToSpeechVoiceIdStreamPost.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodySpeechToSpeechStreamingV1SpeechToSpeechVoiceIdStreamPost.g.cs index 2c4d3a4..a3a85b1 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodySpeechToSpeechStreamingV1SpeechToSpeechVoiceIdStreamPost.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodySpeechToSpeechStreamingV1SpeechToSpeechVoiceIdStreamPost.g.cs @@ -54,91 +54,51 @@ public sealed partial class BodySpeechToSpeechStreamingV1SpeechToSpeechVoiceIdSt [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ElevenLabs.BodySpeechToSpeechStreamingV1SpeechToSpeechVoiceIdStreamPost? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.BodySpeechToSpeechStreamingV1SpeechToSpeechVoiceIdStreamPost), - jsonSerializerContext) as global::ElevenLabs.BodySpeechToSpeechStreamingV1SpeechToSpeechVoiceIdStreamPost; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.BodySpeechToSpeechStreamingV1SpeechToSpeechVoiceIdStreamPost? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// + /// The audio file which holds the content and emotion that will control the generated speech. + /// + /// + /// The audio file which holds the content and emotion that will control the generated speech. + /// + /// + /// Identifier of the model that will be used, you can query them using GET /v1/models. The model needs to have support for speech to speech, you can check this using the can_do_voice_conversion property.
+ /// Default Value: eleven_english_sts_v2 + /// + /// + /// Voice settings overriding stored setttings for the given voice. They are applied only on the given request. Needs to be send as a JSON encoded string. + /// + /// + /// If specified, our system will make a best effort to sample deterministically, such that repeated requests with the same seed and parameters should return the same result. Determinism is not guaranteed. + /// + /// + /// If set will remove the background noise from your audio input using our audio isolation model. Only applies to Voice Changer.
+ /// Default Value: false + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public BodySpeechToSpeechStreamingV1SpeechToSpeechVoiceIdStreamPost( + byte[] audio, + string audioname, + string? modelId, + string? voiceSettings, + int? seed, + bool? removeBackgroundNoise) { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.BodySpeechToSpeechStreamingV1SpeechToSpeechVoiceIdStreamPost), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.BodySpeechToSpeechStreamingV1SpeechToSpeechVoiceIdStreamPost; + this.Audio = audio ?? throw new global::System.ArgumentNullException(nameof(audio)); + this.Audioname = audioname ?? throw new global::System.ArgumentNullException(nameof(audioname)); + this.ModelId = modelId; + this.VoiceSettings = voiceSettings; + this.Seed = seed; + this.RemoveBackgroundNoise = removeBackgroundNoise; } /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public BodySpeechToSpeechStreamingV1SpeechToSpeechVoiceIdStreamPost() { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodySpeechToSpeechV1SpeechToSpeechVoiceIdPost.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodySpeechToSpeechV1SpeechToSpeechVoiceIdPost.Json.g.cs new file mode 100644 index 0000000..b1982e3 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodySpeechToSpeechV1SpeechToSpeechVoiceIdPost.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class BodySpeechToSpeechV1SpeechToSpeechVoiceIdPost + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.BodySpeechToSpeechV1SpeechToSpeechVoiceIdPost? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.BodySpeechToSpeechV1SpeechToSpeechVoiceIdPost), + jsonSerializerContext) as global::ElevenLabs.BodySpeechToSpeechV1SpeechToSpeechVoiceIdPost; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.BodySpeechToSpeechV1SpeechToSpeechVoiceIdPost? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.BodySpeechToSpeechV1SpeechToSpeechVoiceIdPost), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.BodySpeechToSpeechV1SpeechToSpeechVoiceIdPost; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodySpeechToSpeechV1SpeechToSpeechVoiceIdPost.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodySpeechToSpeechV1SpeechToSpeechVoiceIdPost.g.cs index 8c79db3..bc0f8b5 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodySpeechToSpeechV1SpeechToSpeechVoiceIdPost.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodySpeechToSpeechV1SpeechToSpeechVoiceIdPost.g.cs @@ -54,91 +54,51 @@ public sealed partial class BodySpeechToSpeechV1SpeechToSpeechVoiceIdPost [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ElevenLabs.BodySpeechToSpeechV1SpeechToSpeechVoiceIdPost? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.BodySpeechToSpeechV1SpeechToSpeechVoiceIdPost), - jsonSerializerContext) as global::ElevenLabs.BodySpeechToSpeechV1SpeechToSpeechVoiceIdPost; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.BodySpeechToSpeechV1SpeechToSpeechVoiceIdPost? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// + /// The audio file which holds the content and emotion that will control the generated speech. + /// + /// + /// The audio file which holds the content and emotion that will control the generated speech. + /// + /// + /// Identifier of the model that will be used, you can query them using GET /v1/models. The model needs to have support for speech to speech, you can check this using the can_do_voice_conversion property.
+ /// Default Value: eleven_english_sts_v2 + /// + /// + /// Voice settings overriding stored setttings for the given voice. They are applied only on the given request. Needs to be send as a JSON encoded string. + /// + /// + /// If specified, our system will make a best effort to sample deterministically, such that repeated requests with the same seed and parameters should return the same result. Determinism is not guaranteed. + /// + /// + /// If set will remove the background noise from your audio input using our audio isolation model. Only applies to Voice Changer.
+ /// Default Value: false + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public BodySpeechToSpeechV1SpeechToSpeechVoiceIdPost( + byte[] audio, + string audioname, + string? modelId, + string? voiceSettings, + int? seed, + bool? removeBackgroundNoise) { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.BodySpeechToSpeechV1SpeechToSpeechVoiceIdPost), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.BodySpeechToSpeechV1SpeechToSpeechVoiceIdPost; + this.Audio = audio ?? throw new global::System.ArgumentNullException(nameof(audio)); + this.Audioname = audioname ?? throw new global::System.ArgumentNullException(nameof(audioname)); + this.ModelId = modelId; + this.VoiceSettings = voiceSettings; + this.Seed = seed; + this.RemoveBackgroundNoise = removeBackgroundNoise; } /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public BodySpeechToSpeechV1SpeechToSpeechVoiceIdPost() { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyStreamChapterAudioV1ProjectsProjectIdChaptersChapterIdSnapshotsChapterSnapshotIdStreamPost.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyStreamChapterAudioV1ProjectsProjectIdChaptersChapterIdSnapshotsChapterSnapshotIdStreamPost.Json.g.cs new file mode 100644 index 0000000..82d55c5 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyStreamChapterAudioV1ProjectsProjectIdChaptersChapterIdSnapshotsChapterSnapshotIdStreamPost.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class BodyStreamChapterAudioV1ProjectsProjectIdChaptersChapterIdSnapshotsChapterSnapshotIdStreamPost + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.BodyStreamChapterAudioV1ProjectsProjectIdChaptersChapterIdSnapshotsChapterSnapshotIdStreamPost? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.BodyStreamChapterAudioV1ProjectsProjectIdChaptersChapterIdSnapshotsChapterSnapshotIdStreamPost), + jsonSerializerContext) as global::ElevenLabs.BodyStreamChapterAudioV1ProjectsProjectIdChaptersChapterIdSnapshotsChapterSnapshotIdStreamPost; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.BodyStreamChapterAudioV1ProjectsProjectIdChaptersChapterIdSnapshotsChapterSnapshotIdStreamPost? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.BodyStreamChapterAudioV1ProjectsProjectIdChaptersChapterIdSnapshotsChapterSnapshotIdStreamPost), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.BodyStreamChapterAudioV1ProjectsProjectIdChaptersChapterIdSnapshotsChapterSnapshotIdStreamPost; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyStreamChapterAudioV1ProjectsProjectIdChaptersChapterIdSnapshotsChapterSnapshotIdStreamPost.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyStreamChapterAudioV1ProjectsProjectIdChaptersChapterIdSnapshotsChapterSnapshotIdStreamPost.g.cs index ca84be9..05ba5c1 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyStreamChapterAudioV1ProjectsProjectIdChaptersChapterIdSnapshotsChapterSnapshotIdStreamPost.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyStreamChapterAudioV1ProjectsProjectIdChaptersChapterIdSnapshotsChapterSnapshotIdStreamPost.g.cs @@ -21,91 +21,25 @@ public sealed partial class BodyStreamChapterAudioV1ProjectsProjectIdChaptersCha [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ElevenLabs.BodyStreamChapterAudioV1ProjectsProjectIdChaptersChapterIdSnapshotsChapterSnapshotIdStreamPost? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.BodyStreamChapterAudioV1ProjectsProjectIdChaptersChapterIdSnapshotsChapterSnapshotIdStreamPost), - jsonSerializerContext) as global::ElevenLabs.BodyStreamChapterAudioV1ProjectsProjectIdChaptersChapterIdSnapshotsChapterSnapshotIdStreamPost; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.BodyStreamChapterAudioV1ProjectsProjectIdChaptersChapterIdSnapshotsChapterSnapshotIdStreamPost? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// + /// Whether to convert the audio to mpeg format.
+ /// Default Value: false + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public BodyStreamChapterAudioV1ProjectsProjectIdChaptersChapterIdSnapshotsChapterSnapshotIdStreamPost( + bool? convertToMpeg) { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.BodyStreamChapterAudioV1ProjectsProjectIdChaptersChapterIdSnapshotsChapterSnapshotIdStreamPost), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.BodyStreamChapterAudioV1ProjectsProjectIdChaptersChapterIdSnapshotsChapterSnapshotIdStreamPost; + this.ConvertToMpeg = convertToMpeg; } /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public BodyStreamChapterAudioV1ProjectsProjectIdChaptersChapterIdSnapshotsChapterSnapshotIdStreamPost() { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyStreamProjectAudioV1ProjectsProjectIdSnapshotsProjectSnapshotIdStreamPost.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyStreamProjectAudioV1ProjectsProjectIdSnapshotsProjectSnapshotIdStreamPost.Json.g.cs new file mode 100644 index 0000000..3df96ca --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyStreamProjectAudioV1ProjectsProjectIdSnapshotsProjectSnapshotIdStreamPost.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class BodyStreamProjectAudioV1ProjectsProjectIdSnapshotsProjectSnapshotIdStreamPost + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.BodyStreamProjectAudioV1ProjectsProjectIdSnapshotsProjectSnapshotIdStreamPost? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.BodyStreamProjectAudioV1ProjectsProjectIdSnapshotsProjectSnapshotIdStreamPost), + jsonSerializerContext) as global::ElevenLabs.BodyStreamProjectAudioV1ProjectsProjectIdSnapshotsProjectSnapshotIdStreamPost; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.BodyStreamProjectAudioV1ProjectsProjectIdSnapshotsProjectSnapshotIdStreamPost? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.BodyStreamProjectAudioV1ProjectsProjectIdSnapshotsProjectSnapshotIdStreamPost), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.BodyStreamProjectAudioV1ProjectsProjectIdSnapshotsProjectSnapshotIdStreamPost; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyStreamProjectAudioV1ProjectsProjectIdSnapshotsProjectSnapshotIdStreamPost.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyStreamProjectAudioV1ProjectsProjectIdSnapshotsProjectSnapshotIdStreamPost.g.cs index 0d1587a..5aafdd8 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyStreamProjectAudioV1ProjectsProjectIdSnapshotsProjectSnapshotIdStreamPost.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyStreamProjectAudioV1ProjectsProjectIdSnapshotsProjectSnapshotIdStreamPost.g.cs @@ -21,91 +21,25 @@ public sealed partial class BodyStreamProjectAudioV1ProjectsProjectIdSnapshotsPr [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ElevenLabs.BodyStreamProjectAudioV1ProjectsProjectIdSnapshotsProjectSnapshotIdStreamPost? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.BodyStreamProjectAudioV1ProjectsProjectIdSnapshotsProjectSnapshotIdStreamPost), - jsonSerializerContext) as global::ElevenLabs.BodyStreamProjectAudioV1ProjectsProjectIdSnapshotsProjectSnapshotIdStreamPost; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.BodyStreamProjectAudioV1ProjectsProjectIdSnapshotsProjectSnapshotIdStreamPost? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// + /// Whether to convert the audio to mpeg format.
+ /// Default Value: false + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public BodyStreamProjectAudioV1ProjectsProjectIdSnapshotsProjectSnapshotIdStreamPost( + bool? convertToMpeg) { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.BodyStreamProjectAudioV1ProjectsProjectIdSnapshotsProjectSnapshotIdStreamPost), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.BodyStreamProjectAudioV1ProjectsProjectIdSnapshotsProjectSnapshotIdStreamPost; + this.ConvertToMpeg = convertToMpeg; } /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public BodyStreamProjectAudioV1ProjectsProjectIdSnapshotsProjectSnapshotIdStreamPost() { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyTextToSpeechStreamingV1TextToSpeechVoiceIdStreamPost.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyTextToSpeechStreamingV1TextToSpeechVoiceIdStreamPost.Json.g.cs new file mode 100644 index 0000000..c70e838 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyTextToSpeechStreamingV1TextToSpeechVoiceIdStreamPost.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class BodyTextToSpeechStreamingV1TextToSpeechVoiceIdStreamPost + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.BodyTextToSpeechStreamingV1TextToSpeechVoiceIdStreamPost? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.BodyTextToSpeechStreamingV1TextToSpeechVoiceIdStreamPost), + jsonSerializerContext) as global::ElevenLabs.BodyTextToSpeechStreamingV1TextToSpeechVoiceIdStreamPost; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.BodyTextToSpeechStreamingV1TextToSpeechVoiceIdStreamPost? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.BodyTextToSpeechStreamingV1TextToSpeechVoiceIdStreamPost), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.BodyTextToSpeechStreamingV1TextToSpeechVoiceIdStreamPost; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyTextToSpeechStreamingV1TextToSpeechVoiceIdStreamPost.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyTextToSpeechStreamingV1TextToSpeechVoiceIdStreamPost.g.cs index 8fb8d58..0bde24e 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyTextToSpeechStreamingV1TextToSpeechVoiceIdStreamPost.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyTextToSpeechStreamingV1TextToSpeechVoiceIdStreamPost.g.cs @@ -92,91 +92,76 @@ public sealed partial class BodyTextToSpeechStreamingV1TextToSpeechVoiceIdStream [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static global::ElevenLabs.BodyTextToSpeechStreamingV1TextToSpeechVoiceIdStreamPost? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.BodyTextToSpeechStreamingV1TextToSpeechVoiceIdStreamPost), - jsonSerializerContext) as global::ElevenLabs.BodyTextToSpeechStreamingV1TextToSpeechVoiceIdStreamPost; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.BodyTextToSpeechStreamingV1TextToSpeechVoiceIdStreamPost? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// + /// The text that will get converted into speech. + /// + /// + /// Identifier of the model that will be used, you can query them using GET /v1/models. The model needs to have support for text to speech, you can check this using the can_do_text_to_speech property.
+ /// Default Value: eleven_monolingual_v1 + /// + /// + /// Language code (ISO 639-1) used to enforce a language for the model. Currently only Turbo v2.5 supports language enforcement. For other models, an error will be returned if language code is provided. + /// + /// + /// Voice settings overriding stored setttings for the given voice. They are applied only on the given request. + /// + /// + /// A list of pronunciation dictionary locators (id, version_id) to be applied to the text. They will be applied in order. You may have up to 3 locators per request + /// + /// + /// If specified, our system will make a best effort to sample deterministically, such that repeated requests with the same seed and parameters should return the same result. Determinism is not guaranteed. + /// + /// + /// The text that came before the text of the current request. Can be used to improve the flow of prosody when concatenating together multiple generations or to influence the prosody in the current generation. + /// + /// + /// The text that comes after the text of the current request. Can be used to improve the flow of prosody when concatenating together multiple generations or to influence the prosody in the current generation. + /// + /// + /// A list of request_id of the samples that were generated before this generation. Can be used to improve the flow of prosody when splitting up a large task into multiple requests. The results will be best when the same model is used across the generations. In case both previous_text and previous_request_ids is send, previous_text will be ignored. A maximum of 3 request_ids can be send. + /// + /// + /// A list of request_id of the samples that were generated before this generation. Can be used to improve the flow of prosody when splitting up a large task into multiple requests. The results will be best when the same model is used across the generations. In case both next_text and next_request_ids is send, next_text will be ignored. A maximum of 3 request_ids can be send. + /// + /// + /// This parameter controls text normalization with three modes: 'auto', 'on', and 'off'. When set to 'auto', the system will automatically decide whether to apply text normalization (e.g., spelling out numbers). With 'on', text normalization will always be applied, while with 'off', it will be skipped. Cannot be turned on for 'eleven_turbo_v2_5' model.
+ /// Default Value: auto + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public BodyTextToSpeechStreamingV1TextToSpeechVoiceIdStreamPost( + string text, + string? modelId, + string? languageCode, + global::ElevenLabs.VoiceSettingsResponseModel? voiceSettings, + global::System.Collections.Generic.IList? pronunciationDictionaryLocators, + int? seed, + string? previousText, + string? nextText, + global::System.Collections.Generic.IList? previousRequestIds, + global::System.Collections.Generic.IList? nextRequestIds, + global::ElevenLabs.BodyTextToSpeechStreamingV1TextToSpeechVoiceIdStreamPostApplyTextNormalization? applyTextNormalization) { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.BodyTextToSpeechStreamingV1TextToSpeechVoiceIdStreamPost), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.BodyTextToSpeechStreamingV1TextToSpeechVoiceIdStreamPost; + this.Text = text ?? throw new global::System.ArgumentNullException(nameof(text)); + this.ModelId = modelId; + this.LanguageCode = languageCode; + this.VoiceSettings = voiceSettings; + this.PronunciationDictionaryLocators = pronunciationDictionaryLocators; + this.Seed = seed; + this.PreviousText = previousText; + this.NextText = nextText; + this.PreviousRequestIds = previousRequestIds; + this.NextRequestIds = nextRequestIds; + this.ApplyTextNormalization = applyTextNormalization; } /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public BodyTextToSpeechStreamingV1TextToSpeechVoiceIdStreamPost() { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyTextToSpeechStreamingWithTimestampsV1TextToSpeechVoiceIdStreamWithTimestampsPost.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyTextToSpeechStreamingWithTimestampsV1TextToSpeechVoiceIdStreamWithTimestampsPost.Json.g.cs new file mode 100644 index 0000000..0d556ce --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyTextToSpeechStreamingWithTimestampsV1TextToSpeechVoiceIdStreamWithTimestampsPost.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class BodyTextToSpeechStreamingWithTimestampsV1TextToSpeechVoiceIdStreamWithTimestampsPost + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.BodyTextToSpeechStreamingWithTimestampsV1TextToSpeechVoiceIdStreamWithTimestampsPost? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.BodyTextToSpeechStreamingWithTimestampsV1TextToSpeechVoiceIdStreamWithTimestampsPost), + jsonSerializerContext) as global::ElevenLabs.BodyTextToSpeechStreamingWithTimestampsV1TextToSpeechVoiceIdStreamWithTimestampsPost; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.BodyTextToSpeechStreamingWithTimestampsV1TextToSpeechVoiceIdStreamWithTimestampsPost? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.BodyTextToSpeechStreamingWithTimestampsV1TextToSpeechVoiceIdStreamWithTimestampsPost), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.BodyTextToSpeechStreamingWithTimestampsV1TextToSpeechVoiceIdStreamWithTimestampsPost; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyTextToSpeechStreamingWithTimestampsV1TextToSpeechVoiceIdStreamWithTimestampsPost.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyTextToSpeechStreamingWithTimestampsV1TextToSpeechVoiceIdStreamWithTimestampsPost.g.cs index d7537a5..07f4d6b 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyTextToSpeechStreamingWithTimestampsV1TextToSpeechVoiceIdStreamWithTimestampsPost.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyTextToSpeechStreamingWithTimestampsV1TextToSpeechVoiceIdStreamWithTimestampsPost.g.cs @@ -92,91 +92,76 @@ public sealed partial class BodyTextToSpeechStreamingWithTimestampsV1TextToSpeec [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static global::ElevenLabs.BodyTextToSpeechStreamingWithTimestampsV1TextToSpeechVoiceIdStreamWithTimestampsPost? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.BodyTextToSpeechStreamingWithTimestampsV1TextToSpeechVoiceIdStreamWithTimestampsPost), - jsonSerializerContext) as global::ElevenLabs.BodyTextToSpeechStreamingWithTimestampsV1TextToSpeechVoiceIdStreamWithTimestampsPost; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.BodyTextToSpeechStreamingWithTimestampsV1TextToSpeechVoiceIdStreamWithTimestampsPost? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// + /// The text that will get converted into speech. + /// + /// + /// Identifier of the model that will be used, you can query them using GET /v1/models. The model needs to have support for text to speech, you can check this using the can_do_text_to_speech property.
+ /// Default Value: eleven_monolingual_v1 + /// + /// + /// Language code (ISO 639-1) used to enforce a language for the model. Currently only Turbo v2.5 supports language enforcement. For other models, an error will be returned if language code is provided. + /// + /// + /// Voice settings overriding stored setttings for the given voice. They are applied only on the given request. + /// + /// + /// A list of pronunciation dictionary locators (id, version_id) to be applied to the text. They will be applied in order. You may have up to 3 locators per request + /// + /// + /// If specified, our system will make a best effort to sample deterministically, such that repeated requests with the same seed and parameters should return the same result. Determinism is not guaranteed. + /// + /// + /// The text that came before the text of the current request. Can be used to improve the flow of prosody when concatenating together multiple generations or to influence the prosody in the current generation. + /// + /// + /// The text that comes after the text of the current request. Can be used to improve the flow of prosody when concatenating together multiple generations or to influence the prosody in the current generation. + /// + /// + /// A list of request_id of the samples that were generated before this generation. Can be used to improve the flow of prosody when splitting up a large task into multiple requests. The results will be best when the same model is used across the generations. In case both previous_text and previous_request_ids is send, previous_text will be ignored. A maximum of 3 request_ids can be send. + /// + /// + /// A list of request_id of the samples that were generated before this generation. Can be used to improve the flow of prosody when splitting up a large task into multiple requests. The results will be best when the same model is used across the generations. In case both next_text and next_request_ids is send, next_text will be ignored. A maximum of 3 request_ids can be send. + /// + /// + /// This parameter controls text normalization with three modes: 'auto', 'on', and 'off'. When set to 'auto', the system will automatically decide whether to apply text normalization (e.g., spelling out numbers). With 'on', text normalization will always be applied, while with 'off', it will be skipped. Cannot be turned on for 'eleven_turbo_v2_5' model.
+ /// Default Value: auto + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public BodyTextToSpeechStreamingWithTimestampsV1TextToSpeechVoiceIdStreamWithTimestampsPost( + string text, + string? modelId, + string? languageCode, + global::ElevenLabs.VoiceSettingsResponseModel? voiceSettings, + global::System.Collections.Generic.IList? pronunciationDictionaryLocators, + int? seed, + string? previousText, + string? nextText, + global::System.Collections.Generic.IList? previousRequestIds, + global::System.Collections.Generic.IList? nextRequestIds, + global::ElevenLabs.BodyTextToSpeechStreamingWithTimestampsV1TextToSpeechVoiceIdStreamWithTimestampsPostApplyTextNormalization? applyTextNormalization) { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.BodyTextToSpeechStreamingWithTimestampsV1TextToSpeechVoiceIdStreamWithTimestampsPost), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.BodyTextToSpeechStreamingWithTimestampsV1TextToSpeechVoiceIdStreamWithTimestampsPost; + this.Text = text ?? throw new global::System.ArgumentNullException(nameof(text)); + this.ModelId = modelId; + this.LanguageCode = languageCode; + this.VoiceSettings = voiceSettings; + this.PronunciationDictionaryLocators = pronunciationDictionaryLocators; + this.Seed = seed; + this.PreviousText = previousText; + this.NextText = nextText; + this.PreviousRequestIds = previousRequestIds; + this.NextRequestIds = nextRequestIds; + this.ApplyTextNormalization = applyTextNormalization; } /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public BodyTextToSpeechStreamingWithTimestampsV1TextToSpeechVoiceIdStreamWithTimestampsPost() { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyTextToSpeechV1TextToSpeechVoiceIdPost.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyTextToSpeechV1TextToSpeechVoiceIdPost.Json.g.cs new file mode 100644 index 0000000..6d892fe --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyTextToSpeechV1TextToSpeechVoiceIdPost.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class BodyTextToSpeechV1TextToSpeechVoiceIdPost + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.BodyTextToSpeechV1TextToSpeechVoiceIdPost? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.BodyTextToSpeechV1TextToSpeechVoiceIdPost), + jsonSerializerContext) as global::ElevenLabs.BodyTextToSpeechV1TextToSpeechVoiceIdPost; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.BodyTextToSpeechV1TextToSpeechVoiceIdPost? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.BodyTextToSpeechV1TextToSpeechVoiceIdPost), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.BodyTextToSpeechV1TextToSpeechVoiceIdPost; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyTextToSpeechV1TextToSpeechVoiceIdPost.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyTextToSpeechV1TextToSpeechVoiceIdPost.g.cs index b82f92b..b1de442 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyTextToSpeechV1TextToSpeechVoiceIdPost.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyTextToSpeechV1TextToSpeechVoiceIdPost.g.cs @@ -92,91 +92,76 @@ public sealed partial class BodyTextToSpeechV1TextToSpeechVoiceIdPost [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static global::ElevenLabs.BodyTextToSpeechV1TextToSpeechVoiceIdPost? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.BodyTextToSpeechV1TextToSpeechVoiceIdPost), - jsonSerializerContext) as global::ElevenLabs.BodyTextToSpeechV1TextToSpeechVoiceIdPost; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.BodyTextToSpeechV1TextToSpeechVoiceIdPost? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// + /// The text that will get converted into speech. + /// + /// + /// Identifier of the model that will be used, you can query them using GET /v1/models. The model needs to have support for text to speech, you can check this using the can_do_text_to_speech property.
+ /// Default Value: eleven_monolingual_v1 + /// + /// + /// Language code (ISO 639-1) used to enforce a language for the model. Currently only Turbo v2.5 supports language enforcement. For other models, an error will be returned if language code is provided. + /// + /// + /// Voice settings overriding stored setttings for the given voice. They are applied only on the given request. + /// + /// + /// A list of pronunciation dictionary locators (id, version_id) to be applied to the text. They will be applied in order. You may have up to 3 locators per request + /// + /// + /// If specified, our system will make a best effort to sample deterministically, such that repeated requests with the same seed and parameters should return the same result. Determinism is not guaranteed. + /// + /// + /// The text that came before the text of the current request. Can be used to improve the flow of prosody when concatenating together multiple generations or to influence the prosody in the current generation. + /// + /// + /// The text that comes after the text of the current request. Can be used to improve the flow of prosody when concatenating together multiple generations or to influence the prosody in the current generation. + /// + /// + /// A list of request_id of the samples that were generated before this generation. Can be used to improve the flow of prosody when splitting up a large task into multiple requests. The results will be best when the same model is used across the generations. In case both previous_text and previous_request_ids is send, previous_text will be ignored. A maximum of 3 request_ids can be send. + /// + /// + /// A list of request_id of the samples that were generated before this generation. Can be used to improve the flow of prosody when splitting up a large task into multiple requests. The results will be best when the same model is used across the generations. In case both next_text and next_request_ids is send, next_text will be ignored. A maximum of 3 request_ids can be send. + /// + /// + /// This parameter controls text normalization with three modes: 'auto', 'on', and 'off'. When set to 'auto', the system will automatically decide whether to apply text normalization (e.g., spelling out numbers). With 'on', text normalization will always be applied, while with 'off', it will be skipped. Cannot be turned on for 'eleven_turbo_v2_5' model.
+ /// Default Value: auto + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public BodyTextToSpeechV1TextToSpeechVoiceIdPost( + string text, + string? modelId, + string? languageCode, + global::ElevenLabs.VoiceSettingsResponseModel? voiceSettings, + global::System.Collections.Generic.IList? pronunciationDictionaryLocators, + int? seed, + string? previousText, + string? nextText, + global::System.Collections.Generic.IList? previousRequestIds, + global::System.Collections.Generic.IList? nextRequestIds, + global::ElevenLabs.BodyTextToSpeechV1TextToSpeechVoiceIdPostApplyTextNormalization? applyTextNormalization) { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.BodyTextToSpeechV1TextToSpeechVoiceIdPost), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.BodyTextToSpeechV1TextToSpeechVoiceIdPost; + this.Text = text ?? throw new global::System.ArgumentNullException(nameof(text)); + this.ModelId = modelId; + this.LanguageCode = languageCode; + this.VoiceSettings = voiceSettings; + this.PronunciationDictionaryLocators = pronunciationDictionaryLocators; + this.Seed = seed; + this.PreviousText = previousText; + this.NextText = nextText; + this.PreviousRequestIds = previousRequestIds; + this.NextRequestIds = nextRequestIds; + this.ApplyTextNormalization = applyTextNormalization; } /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public BodyTextToSpeechV1TextToSpeechVoiceIdPost() { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyTextToSpeechWithTimestampsV1TextToSpeechVoiceIdWithTimestampsPost.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyTextToSpeechWithTimestampsV1TextToSpeechVoiceIdWithTimestampsPost.Json.g.cs new file mode 100644 index 0000000..09697b9 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyTextToSpeechWithTimestampsV1TextToSpeechVoiceIdWithTimestampsPost.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class BodyTextToSpeechWithTimestampsV1TextToSpeechVoiceIdWithTimestampsPost + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.BodyTextToSpeechWithTimestampsV1TextToSpeechVoiceIdWithTimestampsPost? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.BodyTextToSpeechWithTimestampsV1TextToSpeechVoiceIdWithTimestampsPost), + jsonSerializerContext) as global::ElevenLabs.BodyTextToSpeechWithTimestampsV1TextToSpeechVoiceIdWithTimestampsPost; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.BodyTextToSpeechWithTimestampsV1TextToSpeechVoiceIdWithTimestampsPost? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.BodyTextToSpeechWithTimestampsV1TextToSpeechVoiceIdWithTimestampsPost), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.BodyTextToSpeechWithTimestampsV1TextToSpeechVoiceIdWithTimestampsPost; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyTextToSpeechWithTimestampsV1TextToSpeechVoiceIdWithTimestampsPost.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyTextToSpeechWithTimestampsV1TextToSpeechVoiceIdWithTimestampsPost.g.cs index c565969..f6c4855 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyTextToSpeechWithTimestampsV1TextToSpeechVoiceIdWithTimestampsPost.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyTextToSpeechWithTimestampsV1TextToSpeechVoiceIdWithTimestampsPost.g.cs @@ -92,91 +92,76 @@ public sealed partial class BodyTextToSpeechWithTimestampsV1TextToSpeechVoiceIdW [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static global::ElevenLabs.BodyTextToSpeechWithTimestampsV1TextToSpeechVoiceIdWithTimestampsPost? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.BodyTextToSpeechWithTimestampsV1TextToSpeechVoiceIdWithTimestampsPost), - jsonSerializerContext) as global::ElevenLabs.BodyTextToSpeechWithTimestampsV1TextToSpeechVoiceIdWithTimestampsPost; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.BodyTextToSpeechWithTimestampsV1TextToSpeechVoiceIdWithTimestampsPost? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// + /// The text that will get converted into speech. + /// + /// + /// Identifier of the model that will be used, you can query them using GET /v1/models. The model needs to have support for text to speech, you can check this using the can_do_text_to_speech property.
+ /// Default Value: eleven_monolingual_v1 + /// + /// + /// Language code (ISO 639-1) used to enforce a language for the model. Currently only Turbo v2.5 supports language enforcement. For other models, an error will be returned if language code is provided. + /// + /// + /// Voice settings overriding stored setttings for the given voice. They are applied only on the given request. + /// + /// + /// A list of pronunciation dictionary locators (id, version_id) to be applied to the text. They will be applied in order. You may have up to 3 locators per request + /// + /// + /// If specified, our system will make a best effort to sample deterministically, such that repeated requests with the same seed and parameters should return the same result. Determinism is not guaranteed. + /// + /// + /// The text that came before the text of the current request. Can be used to improve the flow of prosody when concatenating together multiple generations or to influence the prosody in the current generation. + /// + /// + /// The text that comes after the text of the current request. Can be used to improve the flow of prosody when concatenating together multiple generations or to influence the prosody in the current generation. + /// + /// + /// A list of request_id of the samples that were generated before this generation. Can be used to improve the flow of prosody when splitting up a large task into multiple requests. The results will be best when the same model is used across the generations. In case both previous_text and previous_request_ids is send, previous_text will be ignored. A maximum of 3 request_ids can be send. + /// + /// + /// A list of request_id of the samples that were generated before this generation. Can be used to improve the flow of prosody when splitting up a large task into multiple requests. The results will be best when the same model is used across the generations. In case both next_text and next_request_ids is send, next_text will be ignored. A maximum of 3 request_ids can be send. + /// + /// + /// This parameter controls text normalization with three modes: 'auto', 'on', and 'off'. When set to 'auto', the system will automatically decide whether to apply text normalization (e.g., spelling out numbers). With 'on', text normalization will always be applied, while with 'off', it will be skipped. Cannot be turned on for 'eleven_turbo_v2_5' model.
+ /// Default Value: auto + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public BodyTextToSpeechWithTimestampsV1TextToSpeechVoiceIdWithTimestampsPost( + string text, + string? modelId, + string? languageCode, + global::ElevenLabs.VoiceSettingsResponseModel? voiceSettings, + global::System.Collections.Generic.IList? pronunciationDictionaryLocators, + int? seed, + string? previousText, + string? nextText, + global::System.Collections.Generic.IList? previousRequestIds, + global::System.Collections.Generic.IList? nextRequestIds, + global::ElevenLabs.BodyTextToSpeechWithTimestampsV1TextToSpeechVoiceIdWithTimestampsPostApplyTextNormalization? applyTextNormalization) { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.BodyTextToSpeechWithTimestampsV1TextToSpeechVoiceIdWithTimestampsPost), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.BodyTextToSpeechWithTimestampsV1TextToSpeechVoiceIdWithTimestampsPost; + this.Text = text ?? throw new global::System.ArgumentNullException(nameof(text)); + this.ModelId = modelId; + this.LanguageCode = languageCode; + this.VoiceSettings = voiceSettings; + this.PronunciationDictionaryLocators = pronunciationDictionaryLocators; + this.Seed = seed; + this.PreviousText = previousText; + this.NextText = nextText; + this.PreviousRequestIds = previousRequestIds; + this.NextRequestIds = nextRequestIds; + this.ApplyTextNormalization = applyTextNormalization; } /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public BodyTextToSpeechWithTimestampsV1TextToSpeechVoiceIdWithTimestampsPost() { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyUpdateMemberV1WorkspaceMembersPost.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyUpdateMemberV1WorkspaceMembersPost.Json.g.cs new file mode 100644 index 0000000..5967bcb --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyUpdateMemberV1WorkspaceMembersPost.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class BodyUpdateMemberV1WorkspaceMembersPost + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.BodyUpdateMemberV1WorkspaceMembersPost? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.BodyUpdateMemberV1WorkspaceMembersPost), + jsonSerializerContext) as global::ElevenLabs.BodyUpdateMemberV1WorkspaceMembersPost; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.BodyUpdateMemberV1WorkspaceMembersPost? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.BodyUpdateMemberV1WorkspaceMembersPost), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.BodyUpdateMemberV1WorkspaceMembersPost; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyUpdateMemberV1WorkspaceMembersPost.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyUpdateMemberV1WorkspaceMembersPost.g.cs index f3257f5..c295610 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyUpdateMemberV1WorkspaceMembersPost.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyUpdateMemberV1WorkspaceMembersPost.g.cs @@ -34,91 +34,34 @@ public sealed partial class BodyUpdateMemberV1WorkspaceMembersPost [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ElevenLabs.BodyUpdateMemberV1WorkspaceMembersPost? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.BodyUpdateMemberV1WorkspaceMembersPost), - jsonSerializerContext) as global::ElevenLabs.BodyUpdateMemberV1WorkspaceMembersPost; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.BodyUpdateMemberV1WorkspaceMembersPost? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// + /// Email of the target user. + /// + /// + /// Whether to lock or unlock the user account. + /// + /// + /// Role dictating permissions in the workspace. + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public BodyUpdateMemberV1WorkspaceMembersPost( + string email, + bool? isLocked, + global::ElevenLabs.BodyUpdateMemberV1WorkspaceMembersPostWorkspaceRole? workspaceRole) { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.BodyUpdateMemberV1WorkspaceMembersPost), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.BodyUpdateMemberV1WorkspaceMembersPost; + this.Email = email ?? throw new global::System.ArgumentNullException(nameof(email)); + this.IsLocked = isLocked; + this.WorkspaceRole = workspaceRole; } /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public BodyUpdateMemberV1WorkspaceMembersPost() { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyUpdatePronunciationDictionariesV1ProjectsProjectIdUpdatePronunciationDictionariesPost.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyUpdatePronunciationDictionariesV1ProjectsProjectIdUpdatePronunciationDictionariesPost.Json.g.cs new file mode 100644 index 0000000..67117e8 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyUpdatePronunciationDictionariesV1ProjectsProjectIdUpdatePronunciationDictionariesPost.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class BodyUpdatePronunciationDictionariesV1ProjectsProjectIdUpdatePronunciationDictionariesPost + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.BodyUpdatePronunciationDictionariesV1ProjectsProjectIdUpdatePronunciationDictionariesPost? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.BodyUpdatePronunciationDictionariesV1ProjectsProjectIdUpdatePronunciationDictionariesPost), + jsonSerializerContext) as global::ElevenLabs.BodyUpdatePronunciationDictionariesV1ProjectsProjectIdUpdatePronunciationDictionariesPost; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.BodyUpdatePronunciationDictionariesV1ProjectsProjectIdUpdatePronunciationDictionariesPost? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.BodyUpdatePronunciationDictionariesV1ProjectsProjectIdUpdatePronunciationDictionariesPost), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.BodyUpdatePronunciationDictionariesV1ProjectsProjectIdUpdatePronunciationDictionariesPost; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyUpdatePronunciationDictionariesV1ProjectsProjectIdUpdatePronunciationDictionariesPost.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyUpdatePronunciationDictionariesV1ProjectsProjectIdUpdatePronunciationDictionariesPost.g.cs index 661c54e..a975edc 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyUpdatePronunciationDictionariesV1ProjectsProjectIdUpdatePronunciationDictionariesPost.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyUpdatePronunciationDictionariesV1ProjectsProjectIdUpdatePronunciationDictionariesPost.g.cs @@ -21,91 +21,24 @@ public sealed partial class BodyUpdatePronunciationDictionariesV1ProjectsProject [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ElevenLabs.BodyUpdatePronunciationDictionariesV1ProjectsProjectIdUpdatePronunciationDictionariesPost? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.BodyUpdatePronunciationDictionariesV1ProjectsProjectIdUpdatePronunciationDictionariesPost), - jsonSerializerContext) as global::ElevenLabs.BodyUpdatePronunciationDictionariesV1ProjectsProjectIdUpdatePronunciationDictionariesPost; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.BodyUpdatePronunciationDictionariesV1ProjectsProjectIdUpdatePronunciationDictionariesPost? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// + /// A list of pronunciation dictionary locators (pronunciation_dictionary_id, version_id) encoded as a list of JSON strings for pronunciation dictionaries to be applied to the text. A list of json encoded strings is required as adding projects may occur through formData as opposed to jsonBody. To specify multiple dictionaries use multiple --form lines in your curl, such as --form 'pronunciation_dictionary_locators="{\"pronunciation_dictionary_id\":\"Vmd4Zor6fplcA7WrINey\",\"version_id\":\"hRPaxjlTdR7wFMhV4w0b\"}"' --form 'pronunciation_dictionary_locators="{\"pronunciation_dictionary_id\":\"JzWtcGQMJ6bnlWwyMo7e\",\"version_id\":\"lbmwxiLu4q6txYxgdZqn\"}"'. Note that multiple dictionaries are not currently supported by our UI which will only show the first. + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public BodyUpdatePronunciationDictionariesV1ProjectsProjectIdUpdatePronunciationDictionariesPost( + global::System.Collections.Generic.IList pronunciationDictionaryLocators) { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.BodyUpdatePronunciationDictionariesV1ProjectsProjectIdUpdatePronunciationDictionariesPost), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.BodyUpdatePronunciationDictionariesV1ProjectsProjectIdUpdatePronunciationDictionariesPost; + this.PronunciationDictionaryLocators = pronunciationDictionaryLocators ?? throw new global::System.ArgumentNullException(nameof(pronunciationDictionaryLocators)); } /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public BodyUpdatePronunciationDictionariesV1ProjectsProjectIdUpdatePronunciationDictionariesPost() { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ChapterResponseModel.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ChapterResponseModel.Json.g.cs new file mode 100644 index 0000000..b478735 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ChapterResponseModel.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class ChapterResponseModel + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.ChapterResponseModel? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.ChapterResponseModel), + jsonSerializerContext) as global::ElevenLabs.ChapterResponseModel; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.ChapterResponseModel? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.ChapterResponseModel), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.ChapterResponseModel; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ChapterResponseModel.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ChapterResponseModel.g.cs index e1a6819..48103ae 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ChapterResponseModel.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ChapterResponseModel.g.cs @@ -61,91 +61,40 @@ public sealed partial class ChapterResponseModel [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static global::ElevenLabs.ChapterResponseModel? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// + /// + /// + /// + /// + /// + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public ChapterResponseModel( + string chapterId, + string name, + bool canBeDownloaded, + global::ElevenLabs.ChapterResponseModelState state, + int? lastConversionDateUnix, + double? conversionProgress, + global::ElevenLabs.ChapterStatisticsResponseModel? statistics) { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.ChapterResponseModel), - jsonSerializerContext) as global::ElevenLabs.ChapterResponseModel; + this.ChapterId = chapterId ?? throw new global::System.ArgumentNullException(nameof(chapterId)); + this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); + this.CanBeDownloaded = canBeDownloaded; + this.State = state; + this.LastConversionDateUnix = lastConversionDateUnix; + this.ConversionProgress = conversionProgress; + this.Statistics = statistics; } /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.ChapterResponseModel? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public ChapterResponseModel() { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.ChapterResponseModel), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.ChapterResponseModel; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ChapterSnapshotResponseModel.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ChapterSnapshotResponseModel.Json.g.cs new file mode 100644 index 0000000..9165582 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ChapterSnapshotResponseModel.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class ChapterSnapshotResponseModel + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.ChapterSnapshotResponseModel? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.ChapterSnapshotResponseModel), + jsonSerializerContext) as global::ElevenLabs.ChapterSnapshotResponseModel; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.ChapterSnapshotResponseModel? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.ChapterSnapshotResponseModel), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.ChapterSnapshotResponseModel; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ChapterSnapshotResponseModel.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ChapterSnapshotResponseModel.g.cs index f870112..803e925 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ChapterSnapshotResponseModel.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ChapterSnapshotResponseModel.g.cs @@ -49,91 +49,34 @@ public sealed partial class ChapterSnapshotResponseModel [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static global::ElevenLabs.ChapterSnapshotResponseModel? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// + /// + /// + /// + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public ChapterSnapshotResponseModel( + string chapterSnapshotId, + string projectId, + string chapterId, + int createdAtUnix, + string name) { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.ChapterSnapshotResponseModel), - jsonSerializerContext) as global::ElevenLabs.ChapterSnapshotResponseModel; + this.ChapterSnapshotId = chapterSnapshotId ?? throw new global::System.ArgumentNullException(nameof(chapterSnapshotId)); + this.ProjectId = projectId ?? throw new global::System.ArgumentNullException(nameof(projectId)); + this.ChapterId = chapterId ?? throw new global::System.ArgumentNullException(nameof(chapterId)); + this.CreatedAtUnix = createdAtUnix; + this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); } /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.ChapterSnapshotResponseModel? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public ChapterSnapshotResponseModel() { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.ChapterSnapshotResponseModel), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.ChapterSnapshotResponseModel; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ChapterSnapshotsResponseModel.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ChapterSnapshotsResponseModel.Json.g.cs new file mode 100644 index 0000000..7bc0a95 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ChapterSnapshotsResponseModel.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class ChapterSnapshotsResponseModel + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.ChapterSnapshotsResponseModel? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.ChapterSnapshotsResponseModel), + jsonSerializerContext) as global::ElevenLabs.ChapterSnapshotsResponseModel; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.ChapterSnapshotsResponseModel? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.ChapterSnapshotsResponseModel), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.ChapterSnapshotsResponseModel; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ChapterSnapshotsResponseModel.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ChapterSnapshotsResponseModel.g.cs index 1e45ad8..3169b7f 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ChapterSnapshotsResponseModel.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ChapterSnapshotsResponseModel.g.cs @@ -21,91 +21,22 @@ public sealed partial class ChapterSnapshotsResponseModel [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static global::ElevenLabs.ChapterSnapshotsResponseModel? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public ChapterSnapshotsResponseModel( + global::System.Collections.Generic.IList snapshots) { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.ChapterSnapshotsResponseModel), - jsonSerializerContext) as global::ElevenLabs.ChapterSnapshotsResponseModel; + this.Snapshots = snapshots ?? throw new global::System.ArgumentNullException(nameof(snapshots)); } /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.ChapterSnapshotsResponseModel? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public ChapterSnapshotsResponseModel() { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.ChapterSnapshotsResponseModel), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.ChapterSnapshotsResponseModel; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ChapterStatisticsResponseModel.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ChapterStatisticsResponseModel.Json.g.cs new file mode 100644 index 0000000..a9c2ee0 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ChapterStatisticsResponseModel.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class ChapterStatisticsResponseModel + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.ChapterStatisticsResponseModel? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.ChapterStatisticsResponseModel), + jsonSerializerContext) as global::ElevenLabs.ChapterStatisticsResponseModel; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.ChapterStatisticsResponseModel? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.ChapterStatisticsResponseModel), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.ChapterStatisticsResponseModel; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ChapterStatisticsResponseModel.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ChapterStatisticsResponseModel.g.cs index c0bd89e..1dd1109 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ChapterStatisticsResponseModel.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ChapterStatisticsResponseModel.g.cs @@ -42,91 +42,31 @@ public sealed partial class ChapterStatisticsResponseModel [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static global::ElevenLabs.ChapterStatisticsResponseModel? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// + /// + /// + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public ChapterStatisticsResponseModel( + int charactersUnconverted, + int charactersConverted, + int paragraphsConverted, + int paragraphsUnconverted) { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.ChapterStatisticsResponseModel), - jsonSerializerContext) as global::ElevenLabs.ChapterStatisticsResponseModel; + this.CharactersUnconverted = charactersUnconverted; + this.CharactersConverted = charactersConverted; + this.ParagraphsConverted = paragraphsConverted; + this.ParagraphsUnconverted = paragraphsUnconverted; } /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.ChapterStatisticsResponseModel? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public ChapterStatisticsResponseModel() { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.ChapterStatisticsResponseModel), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.ChapterStatisticsResponseModel; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ClientEvent.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ClientEvent.g.cs new file mode 100644 index 0000000..73b7dea --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ClientEvent.g.cs @@ -0,0 +1,99 @@ + +#nullable enable + +namespace ElevenLabs +{ + /// + /// An enumeration. + /// + public enum ClientEvent + { + /// + /// + /// + ConversationInitiationMetadata, + /// + /// + /// + Ping, + /// + /// + /// + Audio, + /// + /// + /// + Interruption, + /// + /// + /// + UserTranscript, + /// + /// + /// + AgentResponse, + /// + /// + /// + AgentResponseCorrection, + /// + /// + /// + InternalVadScore, + /// + /// + /// + InternalTurnProbability, + /// + /// + /// + InternalTentativeAgentResponse, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ClientEventExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ClientEvent value) + { + return value switch + { + ClientEvent.ConversationInitiationMetadata => "conversation_initiation_metadata", + ClientEvent.Ping => "ping", + ClientEvent.Audio => "audio", + ClientEvent.Interruption => "interruption", + ClientEvent.UserTranscript => "user_transcript", + ClientEvent.AgentResponse => "agent_response", + ClientEvent.AgentResponseCorrection => "agent_response_correction", + ClientEvent.InternalVadScore => "internal_vad_score", + ClientEvent.InternalTurnProbability => "internal_turn_probability", + ClientEvent.InternalTentativeAgentResponse => "internal_tentative_agent_response", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ClientEvent? ToEnum(string value) + { + return value switch + { + "conversation_initiation_metadata" => ClientEvent.ConversationInitiationMetadata, + "ping" => ClientEvent.Ping, + "audio" => ClientEvent.Audio, + "interruption" => ClientEvent.Interruption, + "user_transcript" => ClientEvent.UserTranscript, + "agent_response" => ClientEvent.AgentResponse, + "agent_response_correction" => ClientEvent.AgentResponseCorrection, + "internal_vad_score" => ClientEvent.InternalVadScore, + "internal_turn_probability" => ClientEvent.InternalTurnProbability, + "internal_tentative_agent_response" => ClientEvent.InternalTentativeAgentResponse, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConvAISecretLocator.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConvAISecretLocator.Json.g.cs new file mode 100644 index 0000000..f7c7912 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConvAISecretLocator.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class ConvAISecretLocator + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.ConvAISecretLocator? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.ConvAISecretLocator), + jsonSerializerContext) as global::ElevenLabs.ConvAISecretLocator; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.ConvAISecretLocator? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.ConvAISecretLocator), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.ConvAISecretLocator; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConvAISecretLocator.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConvAISecretLocator.g.cs new file mode 100644 index 0000000..449ebc2 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConvAISecretLocator.g.cs @@ -0,0 +1,42 @@ + +#nullable enable + +namespace ElevenLabs +{ + /// + /// Used to reference a secret from the agent's secret store. + /// + public sealed partial class ConvAISecretLocator + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("secret_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string SecretId { 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. + /// + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public ConvAISecretLocator( + string secretId) + { + this.SecretId = secretId ?? throw new global::System.ArgumentNullException(nameof(secretId)); + } + + /// + /// Initializes a new instance of the class. + /// + public ConvAISecretLocator() + { + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConversationConfig.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConversationConfig.Json.g.cs new file mode 100644 index 0000000..48dd02f --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConversationConfig.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class ConversationConfig + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.ConversationConfig? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.ConversationConfig), + jsonSerializerContext) as global::ElevenLabs.ConversationConfig; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.ConversationConfig? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.ConversationConfig), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.ConversationConfig; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConversationConfig.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConversationConfig.g.cs new file mode 100644 index 0000000..fcb54b2 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConversationConfig.g.cs @@ -0,0 +1,52 @@ + +#nullable enable + +namespace ElevenLabs +{ + /// + /// + /// + public sealed partial class ConversationConfig + { + /// + /// Default Value: 600 + /// + [global::System.Text.Json.Serialization.JsonPropertyName("max_duration_seconds")] + public int? MaxDurationSeconds { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("client_events")] + public global::System.Collections.Generic.IList? ClientEvents { 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: 600 + /// + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public ConversationConfig( + int? maxDurationSeconds, + global::System.Collections.Generic.IList? clientEvents) + { + this.MaxDurationSeconds = maxDurationSeconds; + this.ClientEvents = clientEvents; + } + + /// + /// Initializes a new instance of the class. + /// + public ConversationConfig() + { + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConversationHistoryAnalysisCommonModel.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConversationHistoryAnalysisCommonModel.Json.g.cs new file mode 100644 index 0000000..4fcac11 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConversationHistoryAnalysisCommonModel.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class ConversationHistoryAnalysisCommonModel + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.ConversationHistoryAnalysisCommonModel? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.ConversationHistoryAnalysisCommonModel), + jsonSerializerContext) as global::ElevenLabs.ConversationHistoryAnalysisCommonModel; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.ConversationHistoryAnalysisCommonModel? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.ConversationHistoryAnalysisCommonModel), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.ConversationHistoryAnalysisCommonModel; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConversationHistoryAnalysisCommonModel.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConversationHistoryAnalysisCommonModel.g.cs new file mode 100644 index 0000000..d5669fe --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConversationHistoryAnalysisCommonModel.g.cs @@ -0,0 +1,73 @@ + +#nullable enable + +namespace ElevenLabs +{ + /// + /// + /// + public sealed partial class ConversationHistoryAnalysisCommonModel + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("evaluation_criteria_results")] + public global::System.Collections.Generic.Dictionary? EvaluationCriteriaResults { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("data_collection_results")] + public global::System.Collections.Generic.Dictionary? DataCollectionResults { get; set; } + + /// + /// An enumeration. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("call_successful")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::ElevenLabs.JsonConverters.EvaluationSuccessResultJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::ElevenLabs.EvaluationSuccessResult CallSuccessful { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("transcript_summary")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string TranscriptSummary { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// + /// An enumeration. + /// + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public ConversationHistoryAnalysisCommonModel( + global::ElevenLabs.EvaluationSuccessResult callSuccessful, + string transcriptSummary, + global::System.Collections.Generic.Dictionary? evaluationCriteriaResults, + global::System.Collections.Generic.Dictionary? dataCollectionResults) + { + this.CallSuccessful = callSuccessful; + this.TranscriptSummary = transcriptSummary ?? throw new global::System.ArgumentNullException(nameof(transcriptSummary)); + this.EvaluationCriteriaResults = evaluationCriteriaResults; + this.DataCollectionResults = dataCollectionResults; + } + + /// + /// Initializes a new instance of the class. + /// + public ConversationHistoryAnalysisCommonModel() + { + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConversationHistoryAnalysisCommonModelDataCollectionResults.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConversationHistoryAnalysisCommonModelDataCollectionResults.Json.g.cs new file mode 100644 index 0000000..9993a20 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConversationHistoryAnalysisCommonModelDataCollectionResults.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class ConversationHistoryAnalysisCommonModelDataCollectionResults + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.ConversationHistoryAnalysisCommonModelDataCollectionResults? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.ConversationHistoryAnalysisCommonModelDataCollectionResults), + jsonSerializerContext) as global::ElevenLabs.ConversationHistoryAnalysisCommonModelDataCollectionResults; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.ConversationHistoryAnalysisCommonModelDataCollectionResults? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.ConversationHistoryAnalysisCommonModelDataCollectionResults), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.ConversationHistoryAnalysisCommonModelDataCollectionResults; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConversationHistoryAnalysisCommonModelDataCollectionResults.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConversationHistoryAnalysisCommonModelDataCollectionResults.g.cs new file mode 100644 index 0000000..337c230 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConversationHistoryAnalysisCommonModelDataCollectionResults.g.cs @@ -0,0 +1,27 @@ + +#nullable enable + +namespace ElevenLabs +{ + /// + /// + /// + public sealed partial class ConversationHistoryAnalysisCommonModelDataCollectionResults + { + + /// + /// Additional properties that are not explicitly defined 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. + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public ConversationHistoryAnalysisCommonModelDataCollectionResults( + ) + { + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConversationHistoryAnalysisCommonModelEvaluationCriteriaResults.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConversationHistoryAnalysisCommonModelEvaluationCriteriaResults.Json.g.cs new file mode 100644 index 0000000..c718e26 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConversationHistoryAnalysisCommonModelEvaluationCriteriaResults.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class ConversationHistoryAnalysisCommonModelEvaluationCriteriaResults + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.ConversationHistoryAnalysisCommonModelEvaluationCriteriaResults? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.ConversationHistoryAnalysisCommonModelEvaluationCriteriaResults), + jsonSerializerContext) as global::ElevenLabs.ConversationHistoryAnalysisCommonModelEvaluationCriteriaResults; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.ConversationHistoryAnalysisCommonModelEvaluationCriteriaResults? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.ConversationHistoryAnalysisCommonModelEvaluationCriteriaResults), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.ConversationHistoryAnalysisCommonModelEvaluationCriteriaResults; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConversationHistoryAnalysisCommonModelEvaluationCriteriaResults.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConversationHistoryAnalysisCommonModelEvaluationCriteriaResults.g.cs new file mode 100644 index 0000000..926f070 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConversationHistoryAnalysisCommonModelEvaluationCriteriaResults.g.cs @@ -0,0 +1,27 @@ + +#nullable enable + +namespace ElevenLabs +{ + /// + /// + /// + public sealed partial class ConversationHistoryAnalysisCommonModelEvaluationCriteriaResults + { + + /// + /// Additional properties that are not explicitly defined 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. + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public ConversationHistoryAnalysisCommonModelEvaluationCriteriaResults( + ) + { + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConversationHistoryEvaluationCriteriaResultCommonModel.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConversationHistoryEvaluationCriteriaResultCommonModel.Json.g.cs new file mode 100644 index 0000000..e080bca --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConversationHistoryEvaluationCriteriaResultCommonModel.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class ConversationHistoryEvaluationCriteriaResultCommonModel + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.ConversationHistoryEvaluationCriteriaResultCommonModel? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.ConversationHistoryEvaluationCriteriaResultCommonModel), + jsonSerializerContext) as global::ElevenLabs.ConversationHistoryEvaluationCriteriaResultCommonModel; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.ConversationHistoryEvaluationCriteriaResultCommonModel? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.ConversationHistoryEvaluationCriteriaResultCommonModel), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.ConversationHistoryEvaluationCriteriaResultCommonModel; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConversationHistoryEvaluationCriteriaResultCommonModel.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConversationHistoryEvaluationCriteriaResultCommonModel.g.cs new file mode 100644 index 0000000..0f6abf1 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConversationHistoryEvaluationCriteriaResultCommonModel.g.cs @@ -0,0 +1,65 @@ + +#nullable enable + +namespace ElevenLabs +{ + /// + /// + /// + public sealed partial class ConversationHistoryEvaluationCriteriaResultCommonModel + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("criteria_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string CriteriaId { get; set; } + + /// + /// An enumeration. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("result")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::ElevenLabs.JsonConverters.EvaluationSuccessResultJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::ElevenLabs.EvaluationSuccessResult Result { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("rationale")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Rationale { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// An enumeration. + /// + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public ConversationHistoryEvaluationCriteriaResultCommonModel( + string criteriaId, + global::ElevenLabs.EvaluationSuccessResult result, + string rationale) + { + this.CriteriaId = criteriaId ?? throw new global::System.ArgumentNullException(nameof(criteriaId)); + this.Result = result; + this.Rationale = rationale ?? throw new global::System.ArgumentNullException(nameof(rationale)); + } + + /// + /// Initializes a new instance of the class. + /// + public ConversationHistoryEvaluationCriteriaResultCommonModel() + { + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConversationHistoryMetadataCommonModel.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConversationHistoryMetadataCommonModel.Json.g.cs new file mode 100644 index 0000000..04ca23b --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConversationHistoryMetadataCommonModel.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class ConversationHistoryMetadataCommonModel + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.ConversationHistoryMetadataCommonModel? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.ConversationHistoryMetadataCommonModel), + jsonSerializerContext) as global::ElevenLabs.ConversationHistoryMetadataCommonModel; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.ConversationHistoryMetadataCommonModel? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.ConversationHistoryMetadataCommonModel), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.ConversationHistoryMetadataCommonModel; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConversationHistoryMetadataCommonModel.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConversationHistoryMetadataCommonModel.g.cs new file mode 100644 index 0000000..dd61e78 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConversationHistoryMetadataCommonModel.g.cs @@ -0,0 +1,61 @@ + +#nullable enable + +namespace ElevenLabs +{ + /// + /// + /// + public sealed partial class ConversationHistoryMetadataCommonModel + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("start_time_unix_secs")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int StartTimeUnixSecs { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("call_duration_secs")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int CallDurationSecs { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("cost")] + public int? Cost { 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. + /// + /// + /// + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public ConversationHistoryMetadataCommonModel( + int startTimeUnixSecs, + int callDurationSecs, + int? cost) + { + this.StartTimeUnixSecs = startTimeUnixSecs; + this.CallDurationSecs = callDurationSecs; + this.Cost = cost; + } + + /// + /// Initializes a new instance of the class. + /// + public ConversationHistoryMetadataCommonModel() + { + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConversationHistoryTranscriptCommonModel.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConversationHistoryTranscriptCommonModel.Json.g.cs new file mode 100644 index 0000000..e73487d --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConversationHistoryTranscriptCommonModel.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class ConversationHistoryTranscriptCommonModel + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.ConversationHistoryTranscriptCommonModel? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.ConversationHistoryTranscriptCommonModel), + jsonSerializerContext) as global::ElevenLabs.ConversationHistoryTranscriptCommonModel; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.ConversationHistoryTranscriptCommonModel? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.ConversationHistoryTranscriptCommonModel), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.ConversationHistoryTranscriptCommonModel; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConversationHistoryTranscriptCommonModel.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConversationHistoryTranscriptCommonModel.g.cs new file mode 100644 index 0000000..cf96bad --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConversationHistoryTranscriptCommonModel.g.cs @@ -0,0 +1,63 @@ + +#nullable enable + +namespace ElevenLabs +{ + /// + /// + /// + public sealed partial class ConversationHistoryTranscriptCommonModel + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("role")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::ElevenLabs.JsonConverters.ConversationHistoryTranscriptCommonModelRoleJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::ElevenLabs.ConversationHistoryTranscriptCommonModelRole Role { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("message")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Message { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("time_in_call_secs")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int TimeInCallSecs { 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. + /// + /// + /// + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public ConversationHistoryTranscriptCommonModel( + global::ElevenLabs.ConversationHistoryTranscriptCommonModelRole role, + string message, + int timeInCallSecs) + { + this.Role = role; + this.Message = message ?? throw new global::System.ArgumentNullException(nameof(message)); + this.TimeInCallSecs = timeInCallSecs; + } + + /// + /// Initializes a new instance of the class. + /// + public ConversationHistoryTranscriptCommonModel() + { + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConversationHistoryTranscriptCommonModelRole.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConversationHistoryTranscriptCommonModelRole.g.cs new file mode 100644 index 0000000..c633b89 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConversationHistoryTranscriptCommonModelRole.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace ElevenLabs +{ + /// + /// + /// + public enum ConversationHistoryTranscriptCommonModelRole + { + /// + /// + /// + User, + /// + /// + /// + Agent, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ConversationHistoryTranscriptCommonModelRoleExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ConversationHistoryTranscriptCommonModelRole value) + { + return value switch + { + ConversationHistoryTranscriptCommonModelRole.User => "user", + ConversationHistoryTranscriptCommonModelRole.Agent => "agent", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ConversationHistoryTranscriptCommonModelRole? ToEnum(string value) + { + return value switch + { + "user" => ConversationHistoryTranscriptCommonModelRole.User, + "agent" => ConversationHistoryTranscriptCommonModelRole.Agent, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConversationSignedUrlResponseModel.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConversationSignedUrlResponseModel.Json.g.cs new file mode 100644 index 0000000..42cf6dc --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConversationSignedUrlResponseModel.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class ConversationSignedUrlResponseModel + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.ConversationSignedUrlResponseModel? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.ConversationSignedUrlResponseModel), + jsonSerializerContext) as global::ElevenLabs.ConversationSignedUrlResponseModel; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.ConversationSignedUrlResponseModel? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.ConversationSignedUrlResponseModel), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.ConversationSignedUrlResponseModel; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConversationSignedUrlResponseModel.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConversationSignedUrlResponseModel.g.cs new file mode 100644 index 0000000..b9f81e9 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConversationSignedUrlResponseModel.g.cs @@ -0,0 +1,42 @@ + +#nullable enable + +namespace ElevenLabs +{ + /// + /// + /// + public sealed partial class ConversationSignedUrlResponseModel + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("signed_url")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string SignedUrl { 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. + /// + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public ConversationSignedUrlResponseModel( + string signedUrl) + { + this.SignedUrl = signedUrl ?? throw new global::System.ArgumentNullException(nameof(signedUrl)); + } + + /// + /// Initializes a new instance of the class. + /// + public ConversationSignedUrlResponseModel() + { + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConversationSummaryResponseModel.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConversationSummaryResponseModel.Json.g.cs new file mode 100644 index 0000000..6d0e39d --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConversationSummaryResponseModel.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class ConversationSummaryResponseModel + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.ConversationSummaryResponseModel? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.ConversationSummaryResponseModel), + jsonSerializerContext) as global::ElevenLabs.ConversationSummaryResponseModel; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.ConversationSummaryResponseModel? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.ConversationSummaryResponseModel), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.ConversationSummaryResponseModel; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConversationSummaryResponseModel.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConversationSummaryResponseModel.g.cs new file mode 100644 index 0000000..983647b --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConversationSummaryResponseModel.g.cs @@ -0,0 +1,115 @@ + +#nullable enable + +namespace ElevenLabs +{ + /// + /// + /// + public sealed partial class ConversationSummaryResponseModel + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("agent_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string AgentId { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("agent_name")] + public string? AgentName { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("conversation_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ConversationId { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("start_time_unix_secs")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int StartTimeUnixSecs { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("call_duration_secs")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int CallDurationSecs { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("message_count")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int MessageCount { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::ElevenLabs.JsonConverters.ConversationSummaryResponseModelStatusJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::ElevenLabs.ConversationSummaryResponseModelStatus Status { get; set; } + + /// + /// An enumeration. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("call_successful")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::ElevenLabs.JsonConverters.EvaluationSuccessResultJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::ElevenLabs.EvaluationSuccessResult CallSuccessful { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// An enumeration. + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public ConversationSummaryResponseModel( + string agentId, + string conversationId, + int startTimeUnixSecs, + int callDurationSecs, + int messageCount, + global::ElevenLabs.ConversationSummaryResponseModelStatus status, + global::ElevenLabs.EvaluationSuccessResult callSuccessful, + string? agentName) + { + this.AgentId = agentId ?? throw new global::System.ArgumentNullException(nameof(agentId)); + this.ConversationId = conversationId ?? throw new global::System.ArgumentNullException(nameof(conversationId)); + this.StartTimeUnixSecs = startTimeUnixSecs; + this.CallDurationSecs = callDurationSecs; + this.MessageCount = messageCount; + this.Status = status; + this.CallSuccessful = callSuccessful; + this.AgentName = agentName; + } + + /// + /// Initializes a new instance of the class. + /// + public ConversationSummaryResponseModel() + { + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConversationSummaryResponseModelStatus.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConversationSummaryResponseModelStatus.g.cs new file mode 100644 index 0000000..b289db0 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConversationSummaryResponseModelStatus.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace ElevenLabs +{ + /// + /// + /// + public enum ConversationSummaryResponseModelStatus + { + /// + /// + /// + Processing, + /// + /// + /// + Done, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ConversationSummaryResponseModelStatusExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ConversationSummaryResponseModelStatus value) + { + return value switch + { + ConversationSummaryResponseModelStatus.Processing => "processing", + ConversationSummaryResponseModelStatus.Done => "done", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ConversationSummaryResponseModelStatus? ToEnum(string value) + { + return value switch + { + "processing" => ConversationSummaryResponseModelStatus.Processing, + "done" => ConversationSummaryResponseModelStatus.Done, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConversationalConfig.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConversationalConfig.Json.g.cs new file mode 100644 index 0000000..7aa0358 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConversationalConfig.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class ConversationalConfig + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.ConversationalConfig? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.ConversationalConfig), + jsonSerializerContext) as global::ElevenLabs.ConversationalConfig; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.ConversationalConfig? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.ConversationalConfig), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.ConversationalConfig; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConversationalConfig.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConversationalConfig.g.cs new file mode 100644 index 0000000..b7f46bd --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConversationalConfig.g.cs @@ -0,0 +1,77 @@ + +#nullable enable + +namespace ElevenLabs +{ + /// + /// + /// + public sealed partial class ConversationalConfig + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("agent")] + public global::ElevenLabs.AgentConfig? Agent { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("asr")] + public global::ElevenLabs.ASRConversationalConfig? Asr { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("turn")] + public global::ElevenLabs.TurnConfig? Turn { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("tts")] + public global::ElevenLabs.TTSConversationalConfig? Tts { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("conversation")] + public global::ElevenLabs.ConversationConfig? Conversation { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// + /// + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public ConversationalConfig( + global::ElevenLabs.AgentConfig? agent, + global::ElevenLabs.ASRConversationalConfig? asr, + global::ElevenLabs.TurnConfig? turn, + global::ElevenLabs.TTSConversationalConfig? tts, + global::ElevenLabs.ConversationConfig? conversation) + { + this.Agent = agent; + this.Asr = asr; + this.Turn = turn; + this.Tts = tts; + this.Conversation = conversation; + } + + /// + /// Initializes a new instance of the class. + /// + public ConversationalConfig() + { + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConvertChapterV1ProjectsProjectIdChaptersChapterIdConvertPostResponse.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConvertChapterV1ProjectsProjectIdChaptersChapterIdConvertPostResponse.Json.g.cs new file mode 100644 index 0000000..4ba7577 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConvertChapterV1ProjectsProjectIdChaptersChapterIdConvertPostResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class ConvertChapterV1ProjectsProjectIdChaptersChapterIdConvertPostResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.ConvertChapterV1ProjectsProjectIdChaptersChapterIdConvertPostResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.ConvertChapterV1ProjectsProjectIdChaptersChapterIdConvertPostResponse), + jsonSerializerContext) as global::ElevenLabs.ConvertChapterV1ProjectsProjectIdChaptersChapterIdConvertPostResponse; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.ConvertChapterV1ProjectsProjectIdChaptersChapterIdConvertPostResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.ConvertChapterV1ProjectsProjectIdChaptersChapterIdConvertPostResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.ConvertChapterV1ProjectsProjectIdChaptersChapterIdConvertPostResponse; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConvertChapterV1ProjectsProjectIdChaptersChapterIdConvertPostResponse.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConvertChapterV1ProjectsProjectIdChaptersChapterIdConvertPostResponse.g.cs index 68de362..1b51423 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConvertChapterV1ProjectsProjectIdChaptersChapterIdConvertPostResponse.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConvertChapterV1ProjectsProjectIdChaptersChapterIdConvertPostResponse.g.cs @@ -15,91 +15,13 @@ public sealed partial class ConvertChapterV1ProjectsProjectIdChaptersChapterIdCo [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static global::ElevenLabs.ConvertChapterV1ProjectsProjectIdChaptersChapterIdConvertPostResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public ConvertChapterV1ProjectsProjectIdChaptersChapterIdConvertPostResponse( + ) { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.ConvertChapterV1ProjectsProjectIdChaptersChapterIdConvertPostResponse), - jsonSerializerContext) as global::ElevenLabs.ConvertChapterV1ProjectsProjectIdChaptersChapterIdConvertPostResponse; } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.ConvertChapterV1ProjectsProjectIdChaptersChapterIdConvertPostResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.ConvertChapterV1ProjectsProjectIdChaptersChapterIdConvertPostResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.ConvertChapterV1ProjectsProjectIdChaptersChapterIdConvertPostResponse; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConvertProjectV1ProjectsProjectIdConvertPostResponse.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConvertProjectV1ProjectsProjectIdConvertPostResponse.Json.g.cs new file mode 100644 index 0000000..5d5a7e8 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConvertProjectV1ProjectsProjectIdConvertPostResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class ConvertProjectV1ProjectsProjectIdConvertPostResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.ConvertProjectV1ProjectsProjectIdConvertPostResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.ConvertProjectV1ProjectsProjectIdConvertPostResponse), + jsonSerializerContext) as global::ElevenLabs.ConvertProjectV1ProjectsProjectIdConvertPostResponse; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.ConvertProjectV1ProjectsProjectIdConvertPostResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.ConvertProjectV1ProjectsProjectIdConvertPostResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.ConvertProjectV1ProjectsProjectIdConvertPostResponse; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConvertProjectV1ProjectsProjectIdConvertPostResponse.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConvertProjectV1ProjectsProjectIdConvertPostResponse.g.cs index 8b41262..980b13b 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConvertProjectV1ProjectsProjectIdConvertPostResponse.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ConvertProjectV1ProjectsProjectIdConvertPostResponse.g.cs @@ -15,91 +15,13 @@ public sealed partial class ConvertProjectV1ProjectsProjectIdConvertPostResponse [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static global::ElevenLabs.ConvertProjectV1ProjectsProjectIdConvertPostResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public ConvertProjectV1ProjectsProjectIdConvertPostResponse( + ) { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.ConvertProjectV1ProjectsProjectIdConvertPostResponse), - jsonSerializerContext) as global::ElevenLabs.ConvertProjectV1ProjectsProjectIdConvertPostResponse; } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.ConvertProjectV1ProjectsProjectIdConvertPostResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.ConvertProjectV1ProjectsProjectIdConvertPostResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.ConvertProjectV1ProjectsProjectIdConvertPostResponse; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.CreateAgentResponseModel.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.CreateAgentResponseModel.Json.g.cs new file mode 100644 index 0000000..4441962 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.CreateAgentResponseModel.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class CreateAgentResponseModel + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.CreateAgentResponseModel? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.CreateAgentResponseModel), + jsonSerializerContext) as global::ElevenLabs.CreateAgentResponseModel; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.CreateAgentResponseModel? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.CreateAgentResponseModel), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.CreateAgentResponseModel; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.CreateAgentResponseModel.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.CreateAgentResponseModel.g.cs new file mode 100644 index 0000000..c7991fc --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.CreateAgentResponseModel.g.cs @@ -0,0 +1,42 @@ + +#nullable enable + +namespace ElevenLabs +{ + /// + /// + /// + public sealed partial class CreateAgentResponseModel + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("agent_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string AgentId { 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. + /// + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public CreateAgentResponseModel( + string agentId) + { + this.AgentId = agentId ?? throw new global::System.ArgumentNullException(nameof(agentId)); + } + + /// + /// Initializes a new instance of the class. + /// + public CreateAgentResponseModel() + { + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.DataCollectionResultCommonModel.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.DataCollectionResultCommonModel.Json.g.cs new file mode 100644 index 0000000..dc622d6 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.DataCollectionResultCommonModel.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class DataCollectionResultCommonModel + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.DataCollectionResultCommonModel? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.DataCollectionResultCommonModel), + jsonSerializerContext) as global::ElevenLabs.DataCollectionResultCommonModel; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.DataCollectionResultCommonModel? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.DataCollectionResultCommonModel), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.DataCollectionResultCommonModel; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.DataCollectionResultCommonModel.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.DataCollectionResultCommonModel.g.cs new file mode 100644 index 0000000..baff693 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.DataCollectionResultCommonModel.g.cs @@ -0,0 +1,70 @@ + +#nullable enable + +namespace ElevenLabs +{ + /// + /// + /// + public sealed partial class DataCollectionResultCommonModel + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("data_collection_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string DataCollectionId { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("value")] + public object? Value { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("json_schema")] + public global::ElevenLabs.LiteralJsonSchemaProperty? JsonSchema { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("rationale")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Rationale { 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. + /// + /// + /// + /// + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public DataCollectionResultCommonModel( + string dataCollectionId, + string rationale, + object? value, + global::ElevenLabs.LiteralJsonSchemaProperty? jsonSchema) + { + this.DataCollectionId = dataCollectionId ?? throw new global::System.ArgumentNullException(nameof(dataCollectionId)); + this.Rationale = rationale ?? throw new global::System.ArgumentNullException(nameof(rationale)); + this.Value = value; + this.JsonSchema = jsonSchema; + } + + /// + /// Initializes a new instance of the class. + /// + public DataCollectionResultCommonModel() + { + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.DataCollectionResultCommonModelValue.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.DataCollectionResultCommonModelValue.Json.g.cs new file mode 100644 index 0000000..5a926ad --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.DataCollectionResultCommonModelValue.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class DataCollectionResultCommonModelValue + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.DataCollectionResultCommonModelValue? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.DataCollectionResultCommonModelValue), + jsonSerializerContext) as global::ElevenLabs.DataCollectionResultCommonModelValue; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.DataCollectionResultCommonModelValue? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.DataCollectionResultCommonModelValue), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.DataCollectionResultCommonModelValue; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.DataCollectionResultCommonModelValue.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.DataCollectionResultCommonModelValue.g.cs new file mode 100644 index 0000000..ef5b619 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.DataCollectionResultCommonModelValue.g.cs @@ -0,0 +1,27 @@ + +#nullable enable + +namespace ElevenLabs +{ + /// + /// + /// + public sealed partial class DataCollectionResultCommonModelValue + { + + /// + /// Additional properties that are not explicitly defined 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. + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public DataCollectionResultCommonModelValue( + ) + { + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.DeleteAgentV1ConvaiAgentsAgentIdDeleteResponse.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.DeleteAgentV1ConvaiAgentsAgentIdDeleteResponse.Json.g.cs new file mode 100644 index 0000000..be37ea3 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.DeleteAgentV1ConvaiAgentsAgentIdDeleteResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class DeleteAgentV1ConvaiAgentsAgentIdDeleteResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.DeleteAgentV1ConvaiAgentsAgentIdDeleteResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.DeleteAgentV1ConvaiAgentsAgentIdDeleteResponse), + jsonSerializerContext) as global::ElevenLabs.DeleteAgentV1ConvaiAgentsAgentIdDeleteResponse; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.DeleteAgentV1ConvaiAgentsAgentIdDeleteResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.DeleteAgentV1ConvaiAgentsAgentIdDeleteResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.DeleteAgentV1ConvaiAgentsAgentIdDeleteResponse; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.DeleteAgentV1ConvaiAgentsAgentIdDeleteResponse.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.DeleteAgentV1ConvaiAgentsAgentIdDeleteResponse.g.cs new file mode 100644 index 0000000..26a2aa0 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.DeleteAgentV1ConvaiAgentsAgentIdDeleteResponse.g.cs @@ -0,0 +1,27 @@ + +#nullable enable + +namespace ElevenLabs +{ + /// + /// + /// + public sealed partial class DeleteAgentV1ConvaiAgentsAgentIdDeleteResponse + { + + /// + /// Additional properties that are not explicitly defined 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. + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public DeleteAgentV1ConvaiAgentsAgentIdDeleteResponse( + ) + { + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.DeleteChapterV1ProjectsProjectIdChaptersChapterIdDeleteResponse.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.DeleteChapterV1ProjectsProjectIdChaptersChapterIdDeleteResponse.Json.g.cs new file mode 100644 index 0000000..d67afe2 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.DeleteChapterV1ProjectsProjectIdChaptersChapterIdDeleteResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class DeleteChapterV1ProjectsProjectIdChaptersChapterIdDeleteResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.DeleteChapterV1ProjectsProjectIdChaptersChapterIdDeleteResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.DeleteChapterV1ProjectsProjectIdChaptersChapterIdDeleteResponse), + jsonSerializerContext) as global::ElevenLabs.DeleteChapterV1ProjectsProjectIdChaptersChapterIdDeleteResponse; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.DeleteChapterV1ProjectsProjectIdChaptersChapterIdDeleteResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.DeleteChapterV1ProjectsProjectIdChaptersChapterIdDeleteResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.DeleteChapterV1ProjectsProjectIdChaptersChapterIdDeleteResponse; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.DeleteChapterV1ProjectsProjectIdChaptersChapterIdDeleteResponse.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.DeleteChapterV1ProjectsProjectIdChaptersChapterIdDeleteResponse.g.cs index bb89642..3a68809 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.DeleteChapterV1ProjectsProjectIdChaptersChapterIdDeleteResponse.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.DeleteChapterV1ProjectsProjectIdChaptersChapterIdDeleteResponse.g.cs @@ -15,91 +15,13 @@ public sealed partial class DeleteChapterV1ProjectsProjectIdChaptersChapterIdDel [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static global::ElevenLabs.DeleteChapterV1ProjectsProjectIdChaptersChapterIdDeleteResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public DeleteChapterV1ProjectsProjectIdChaptersChapterIdDeleteResponse( + ) { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.DeleteChapterV1ProjectsProjectIdChaptersChapterIdDeleteResponse), - jsonSerializerContext) as global::ElevenLabs.DeleteChapterV1ProjectsProjectIdChaptersChapterIdDeleteResponse; } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.DeleteChapterV1ProjectsProjectIdChaptersChapterIdDeleteResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.DeleteChapterV1ProjectsProjectIdChaptersChapterIdDeleteResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.DeleteChapterV1ProjectsProjectIdChaptersChapterIdDeleteResponse; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.DeleteDubbingProjectV1DubbingDubbingIdDeleteResponse.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.DeleteDubbingProjectV1DubbingDubbingIdDeleteResponse.Json.g.cs new file mode 100644 index 0000000..30800ce --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.DeleteDubbingProjectV1DubbingDubbingIdDeleteResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class DeleteDubbingProjectV1DubbingDubbingIdDeleteResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.DeleteDubbingProjectV1DubbingDubbingIdDeleteResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.DeleteDubbingProjectV1DubbingDubbingIdDeleteResponse), + jsonSerializerContext) as global::ElevenLabs.DeleteDubbingProjectV1DubbingDubbingIdDeleteResponse; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.DeleteDubbingProjectV1DubbingDubbingIdDeleteResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.DeleteDubbingProjectV1DubbingDubbingIdDeleteResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.DeleteDubbingProjectV1DubbingDubbingIdDeleteResponse; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.DeleteDubbingProjectV1DubbingDubbingIdDeleteResponse.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.DeleteDubbingProjectV1DubbingDubbingIdDeleteResponse.g.cs index 95423db..5cb230e 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.DeleteDubbingProjectV1DubbingDubbingIdDeleteResponse.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.DeleteDubbingProjectV1DubbingDubbingIdDeleteResponse.g.cs @@ -15,91 +15,13 @@ public sealed partial class DeleteDubbingProjectV1DubbingDubbingIdDeleteResponse [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static global::ElevenLabs.DeleteDubbingProjectV1DubbingDubbingIdDeleteResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public DeleteDubbingProjectV1DubbingDubbingIdDeleteResponse( + ) { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.DeleteDubbingProjectV1DubbingDubbingIdDeleteResponse), - jsonSerializerContext) as global::ElevenLabs.DeleteDubbingProjectV1DubbingDubbingIdDeleteResponse; } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.DeleteDubbingProjectV1DubbingDubbingIdDeleteResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.DeleteDubbingProjectV1DubbingDubbingIdDeleteResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.DeleteDubbingProjectV1DubbingDubbingIdDeleteResponse; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.DeleteExistingInvitationV1WorkspaceInvitesDeleteResponse.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.DeleteExistingInvitationV1WorkspaceInvitesDeleteResponse.Json.g.cs new file mode 100644 index 0000000..e2a4e16 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.DeleteExistingInvitationV1WorkspaceInvitesDeleteResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class DeleteExistingInvitationV1WorkspaceInvitesDeleteResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.DeleteExistingInvitationV1WorkspaceInvitesDeleteResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.DeleteExistingInvitationV1WorkspaceInvitesDeleteResponse), + jsonSerializerContext) as global::ElevenLabs.DeleteExistingInvitationV1WorkspaceInvitesDeleteResponse; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.DeleteExistingInvitationV1WorkspaceInvitesDeleteResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.DeleteExistingInvitationV1WorkspaceInvitesDeleteResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.DeleteExistingInvitationV1WorkspaceInvitesDeleteResponse; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.DeleteExistingInvitationV1WorkspaceInvitesDeleteResponse.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.DeleteExistingInvitationV1WorkspaceInvitesDeleteResponse.g.cs index cb5bafe..6449222 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.DeleteExistingInvitationV1WorkspaceInvitesDeleteResponse.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.DeleteExistingInvitationV1WorkspaceInvitesDeleteResponse.g.cs @@ -15,91 +15,13 @@ public sealed partial class DeleteExistingInvitationV1WorkspaceInvitesDeleteResp [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static global::ElevenLabs.DeleteExistingInvitationV1WorkspaceInvitesDeleteResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public DeleteExistingInvitationV1WorkspaceInvitesDeleteResponse( + ) { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.DeleteExistingInvitationV1WorkspaceInvitesDeleteResponse), - jsonSerializerContext) as global::ElevenLabs.DeleteExistingInvitationV1WorkspaceInvitesDeleteResponse; } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.DeleteExistingInvitationV1WorkspaceInvitesDeleteResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.DeleteExistingInvitationV1WorkspaceInvitesDeleteResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.DeleteExistingInvitationV1WorkspaceInvitesDeleteResponse; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.DeleteHistoryItemV1HistoryHistoryItemIdDeleteResponse.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.DeleteHistoryItemV1HistoryHistoryItemIdDeleteResponse.Json.g.cs new file mode 100644 index 0000000..a2b490a --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.DeleteHistoryItemV1HistoryHistoryItemIdDeleteResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class DeleteHistoryItemV1HistoryHistoryItemIdDeleteResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.DeleteHistoryItemV1HistoryHistoryItemIdDeleteResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.DeleteHistoryItemV1HistoryHistoryItemIdDeleteResponse), + jsonSerializerContext) as global::ElevenLabs.DeleteHistoryItemV1HistoryHistoryItemIdDeleteResponse; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.DeleteHistoryItemV1HistoryHistoryItemIdDeleteResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.DeleteHistoryItemV1HistoryHistoryItemIdDeleteResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.DeleteHistoryItemV1HistoryHistoryItemIdDeleteResponse; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.DeleteHistoryItemV1HistoryHistoryItemIdDeleteResponse.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.DeleteHistoryItemV1HistoryHistoryItemIdDeleteResponse.g.cs index 7925721..59a1e92 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.DeleteHistoryItemV1HistoryHistoryItemIdDeleteResponse.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.DeleteHistoryItemV1HistoryHistoryItemIdDeleteResponse.g.cs @@ -15,91 +15,13 @@ public sealed partial class DeleteHistoryItemV1HistoryHistoryItemIdDeleteRespons [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static global::ElevenLabs.DeleteHistoryItemV1HistoryHistoryItemIdDeleteResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public DeleteHistoryItemV1HistoryHistoryItemIdDeleteResponse( + ) { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.DeleteHistoryItemV1HistoryHistoryItemIdDeleteResponse), - jsonSerializerContext) as global::ElevenLabs.DeleteHistoryItemV1HistoryHistoryItemIdDeleteResponse; } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.DeleteHistoryItemV1HistoryHistoryItemIdDeleteResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.DeleteHistoryItemV1HistoryHistoryItemIdDeleteResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.DeleteHistoryItemV1HistoryHistoryItemIdDeleteResponse; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.DeleteProjectV1ProjectsProjectIdDeleteResponse.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.DeleteProjectV1ProjectsProjectIdDeleteResponse.Json.g.cs new file mode 100644 index 0000000..6dfe5b6 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.DeleteProjectV1ProjectsProjectIdDeleteResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class DeleteProjectV1ProjectsProjectIdDeleteResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.DeleteProjectV1ProjectsProjectIdDeleteResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.DeleteProjectV1ProjectsProjectIdDeleteResponse), + jsonSerializerContext) as global::ElevenLabs.DeleteProjectV1ProjectsProjectIdDeleteResponse; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.DeleteProjectV1ProjectsProjectIdDeleteResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.DeleteProjectV1ProjectsProjectIdDeleteResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.DeleteProjectV1ProjectsProjectIdDeleteResponse; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.DeleteProjectV1ProjectsProjectIdDeleteResponse.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.DeleteProjectV1ProjectsProjectIdDeleteResponse.g.cs index 78ba63d..c991846 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.DeleteProjectV1ProjectsProjectIdDeleteResponse.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.DeleteProjectV1ProjectsProjectIdDeleteResponse.g.cs @@ -15,91 +15,13 @@ public sealed partial class DeleteProjectV1ProjectsProjectIdDeleteResponse [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static global::ElevenLabs.DeleteProjectV1ProjectsProjectIdDeleteResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public DeleteProjectV1ProjectsProjectIdDeleteResponse( + ) { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.DeleteProjectV1ProjectsProjectIdDeleteResponse), - jsonSerializerContext) as global::ElevenLabs.DeleteProjectV1ProjectsProjectIdDeleteResponse; } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.DeleteProjectV1ProjectsProjectIdDeleteResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.DeleteProjectV1ProjectsProjectIdDeleteResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.DeleteProjectV1ProjectsProjectIdDeleteResponse; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.DeleteSampleV1VoicesVoiceIdSamplesSampleIdDeleteResponse.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.DeleteSampleV1VoicesVoiceIdSamplesSampleIdDeleteResponse.Json.g.cs new file mode 100644 index 0000000..ac1c209 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.DeleteSampleV1VoicesVoiceIdSamplesSampleIdDeleteResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class DeleteSampleV1VoicesVoiceIdSamplesSampleIdDeleteResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.DeleteSampleV1VoicesVoiceIdSamplesSampleIdDeleteResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.DeleteSampleV1VoicesVoiceIdSamplesSampleIdDeleteResponse), + jsonSerializerContext) as global::ElevenLabs.DeleteSampleV1VoicesVoiceIdSamplesSampleIdDeleteResponse; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.DeleteSampleV1VoicesVoiceIdSamplesSampleIdDeleteResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.DeleteSampleV1VoicesVoiceIdSamplesSampleIdDeleteResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.DeleteSampleV1VoicesVoiceIdSamplesSampleIdDeleteResponse; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.DeleteSampleV1VoicesVoiceIdSamplesSampleIdDeleteResponse.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.DeleteSampleV1VoicesVoiceIdSamplesSampleIdDeleteResponse.g.cs index 1565528..77ffc0e 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.DeleteSampleV1VoicesVoiceIdSamplesSampleIdDeleteResponse.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.DeleteSampleV1VoicesVoiceIdSamplesSampleIdDeleteResponse.g.cs @@ -15,91 +15,13 @@ public sealed partial class DeleteSampleV1VoicesVoiceIdSamplesSampleIdDeleteResp [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static global::ElevenLabs.DeleteSampleV1VoicesVoiceIdSamplesSampleIdDeleteResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public DeleteSampleV1VoicesVoiceIdSamplesSampleIdDeleteResponse( + ) { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.DeleteSampleV1VoicesVoiceIdSamplesSampleIdDeleteResponse), - jsonSerializerContext) as global::ElevenLabs.DeleteSampleV1VoicesVoiceIdSamplesSampleIdDeleteResponse; } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.DeleteSampleV1VoicesVoiceIdSamplesSampleIdDeleteResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.DeleteSampleV1VoicesVoiceIdSamplesSampleIdDeleteResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.DeleteSampleV1VoicesVoiceIdSamplesSampleIdDeleteResponse; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.DeleteVoiceV1VoicesVoiceIdDeleteResponse.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.DeleteVoiceV1VoicesVoiceIdDeleteResponse.Json.g.cs new file mode 100644 index 0000000..fb08f2f --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.DeleteVoiceV1VoicesVoiceIdDeleteResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class DeleteVoiceV1VoicesVoiceIdDeleteResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.DeleteVoiceV1VoicesVoiceIdDeleteResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.DeleteVoiceV1VoicesVoiceIdDeleteResponse), + jsonSerializerContext) as global::ElevenLabs.DeleteVoiceV1VoicesVoiceIdDeleteResponse; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.DeleteVoiceV1VoicesVoiceIdDeleteResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.DeleteVoiceV1VoicesVoiceIdDeleteResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.DeleteVoiceV1VoicesVoiceIdDeleteResponse; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.DeleteVoiceV1VoicesVoiceIdDeleteResponse.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.DeleteVoiceV1VoicesVoiceIdDeleteResponse.g.cs index f0825eb..a950a85 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.DeleteVoiceV1VoicesVoiceIdDeleteResponse.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.DeleteVoiceV1VoicesVoiceIdDeleteResponse.g.cs @@ -15,91 +15,13 @@ public sealed partial class DeleteVoiceV1VoicesVoiceIdDeleteResponse [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static global::ElevenLabs.DeleteVoiceV1VoicesVoiceIdDeleteResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public DeleteVoiceV1VoicesVoiceIdDeleteResponse( + ) { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.DeleteVoiceV1VoicesVoiceIdDeleteResponse), - jsonSerializerContext) as global::ElevenLabs.DeleteVoiceV1VoicesVoiceIdDeleteResponse; } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.DeleteVoiceV1VoicesVoiceIdDeleteResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.DeleteVoiceV1VoicesVoiceIdDeleteResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.DeleteVoiceV1VoicesVoiceIdDeleteResponse; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.DoDubbingResponseModel.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.DoDubbingResponseModel.Json.g.cs new file mode 100644 index 0000000..222e1fe --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.DoDubbingResponseModel.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class DoDubbingResponseModel + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.DoDubbingResponseModel? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.DoDubbingResponseModel), + jsonSerializerContext) as global::ElevenLabs.DoDubbingResponseModel; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.DoDubbingResponseModel? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.DoDubbingResponseModel), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.DoDubbingResponseModel; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.DoDubbingResponseModel.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.DoDubbingResponseModel.g.cs index ef6a4cf..bcae951 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.DoDubbingResponseModel.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.DoDubbingResponseModel.g.cs @@ -28,91 +28,25 @@ public sealed partial class DoDubbingResponseModel [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static global::ElevenLabs.DoDubbingResponseModel? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public DoDubbingResponseModel( + string dubbingId, + double expectedDurationSec) { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.DoDubbingResponseModel), - jsonSerializerContext) as global::ElevenLabs.DoDubbingResponseModel; + this.DubbingId = dubbingId ?? throw new global::System.ArgumentNullException(nameof(dubbingId)); + this.ExpectedDurationSec = expectedDurationSec; } /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.DoDubbingResponseModel? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public DoDubbingResponseModel() { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.DoDubbingResponseModel), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.DoDubbingResponseModel; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.DubbingMetadataResponse.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.DubbingMetadataResponse.Json.g.cs new file mode 100644 index 0000000..87671ce --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.DubbingMetadataResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class DubbingMetadataResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.DubbingMetadataResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.DubbingMetadataResponse), + jsonSerializerContext) as global::ElevenLabs.DubbingMetadataResponse; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.DubbingMetadataResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.DubbingMetadataResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.DubbingMetadataResponse; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.DubbingMetadataResponse.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.DubbingMetadataResponse.g.cs index f142129..bee2dbd 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.DubbingMetadataResponse.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.DubbingMetadataResponse.g.cs @@ -48,91 +48,34 @@ public sealed partial class DubbingMetadataResponse [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static global::ElevenLabs.DubbingMetadataResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// + /// + /// + /// + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public DubbingMetadataResponse( + string dubbingId, + string name, + string status, + global::System.Collections.Generic.IList targetLanguages, + string? error) { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.DubbingMetadataResponse), - jsonSerializerContext) as global::ElevenLabs.DubbingMetadataResponse; + this.DubbingId = dubbingId ?? throw new global::System.ArgumentNullException(nameof(dubbingId)); + this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); + this.Status = status ?? throw new global::System.ArgumentNullException(nameof(status)); + this.TargetLanguages = targetLanguages ?? throw new global::System.ArgumentNullException(nameof(targetLanguages)); + this.Error = error; } /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.DubbingMetadataResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public DubbingMetadataResponse() { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.DubbingMetadataResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.DubbingMetadataResponse; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.EditProjectResponseModel.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.EditProjectResponseModel.Json.g.cs new file mode 100644 index 0000000..7d4bbec --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.EditProjectResponseModel.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class EditProjectResponseModel + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.EditProjectResponseModel? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.EditProjectResponseModel), + jsonSerializerContext) as global::ElevenLabs.EditProjectResponseModel; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.EditProjectResponseModel? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.EditProjectResponseModel), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.EditProjectResponseModel; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.EditProjectResponseModel.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.EditProjectResponseModel.g.cs index 8749124..b0e862e 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.EditProjectResponseModel.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.EditProjectResponseModel.g.cs @@ -21,91 +21,22 @@ public sealed partial class EditProjectResponseModel [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static global::ElevenLabs.EditProjectResponseModel? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public EditProjectResponseModel( + global::ElevenLabs.ProjectResponseModel project) { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.EditProjectResponseModel), - jsonSerializerContext) as global::ElevenLabs.EditProjectResponseModel; + this.Project = project ?? throw new global::System.ArgumentNullException(nameof(project)); } /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.EditProjectResponseModel? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public EditProjectResponseModel() { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.EditProjectResponseModel), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.EditProjectResponseModel; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.EditVoiceSettingsV1VoicesVoiceIdSettingsEditPostResponse.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.EditVoiceSettingsV1VoicesVoiceIdSettingsEditPostResponse.Json.g.cs new file mode 100644 index 0000000..d24aec3 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.EditVoiceSettingsV1VoicesVoiceIdSettingsEditPostResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class EditVoiceSettingsV1VoicesVoiceIdSettingsEditPostResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.EditVoiceSettingsV1VoicesVoiceIdSettingsEditPostResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.EditVoiceSettingsV1VoicesVoiceIdSettingsEditPostResponse), + jsonSerializerContext) as global::ElevenLabs.EditVoiceSettingsV1VoicesVoiceIdSettingsEditPostResponse; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.EditVoiceSettingsV1VoicesVoiceIdSettingsEditPostResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.EditVoiceSettingsV1VoicesVoiceIdSettingsEditPostResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.EditVoiceSettingsV1VoicesVoiceIdSettingsEditPostResponse; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.EditVoiceSettingsV1VoicesVoiceIdSettingsEditPostResponse.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.EditVoiceSettingsV1VoicesVoiceIdSettingsEditPostResponse.g.cs index a7a5a2e..f028b48 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.EditVoiceSettingsV1VoicesVoiceIdSettingsEditPostResponse.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.EditVoiceSettingsV1VoicesVoiceIdSettingsEditPostResponse.g.cs @@ -15,91 +15,13 @@ public sealed partial class EditVoiceSettingsV1VoicesVoiceIdSettingsEditPostResp [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static global::ElevenLabs.EditVoiceSettingsV1VoicesVoiceIdSettingsEditPostResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public EditVoiceSettingsV1VoicesVoiceIdSettingsEditPostResponse( + ) { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.EditVoiceSettingsV1VoicesVoiceIdSettingsEditPostResponse), - jsonSerializerContext) as global::ElevenLabs.EditVoiceSettingsV1VoicesVoiceIdSettingsEditPostResponse; } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.EditVoiceSettingsV1VoicesVoiceIdSettingsEditPostResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.EditVoiceSettingsV1VoicesVoiceIdSettingsEditPostResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.EditVoiceSettingsV1VoicesVoiceIdSettingsEditPostResponse; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.EditVoiceV1VoicesVoiceIdEditPostResponse.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.EditVoiceV1VoicesVoiceIdEditPostResponse.Json.g.cs new file mode 100644 index 0000000..63c5c43 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.EditVoiceV1VoicesVoiceIdEditPostResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class EditVoiceV1VoicesVoiceIdEditPostResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.EditVoiceV1VoicesVoiceIdEditPostResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.EditVoiceV1VoicesVoiceIdEditPostResponse), + jsonSerializerContext) as global::ElevenLabs.EditVoiceV1VoicesVoiceIdEditPostResponse; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.EditVoiceV1VoicesVoiceIdEditPostResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.EditVoiceV1VoicesVoiceIdEditPostResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.EditVoiceV1VoicesVoiceIdEditPostResponse; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.EditVoiceV1VoicesVoiceIdEditPostResponse.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.EditVoiceV1VoicesVoiceIdEditPostResponse.g.cs index 69a943f..cf3e9f1 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.EditVoiceV1VoicesVoiceIdEditPostResponse.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.EditVoiceV1VoicesVoiceIdEditPostResponse.g.cs @@ -15,91 +15,13 @@ public sealed partial class EditVoiceV1VoicesVoiceIdEditPostResponse [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static global::ElevenLabs.EditVoiceV1VoicesVoiceIdEditPostResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public EditVoiceV1VoicesVoiceIdEditPostResponse( + ) { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.EditVoiceV1VoicesVoiceIdEditPostResponse), - jsonSerializerContext) as global::ElevenLabs.EditVoiceV1VoicesVoiceIdEditPostResponse; } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.EditVoiceV1VoicesVoiceIdEditPostResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.EditVoiceV1VoicesVoiceIdEditPostResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.EditVoiceV1VoicesVoiceIdEditPostResponse; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.EmbedConfig.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.EmbedConfig.Json.g.cs new file mode 100644 index 0000000..446f072 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.EmbedConfig.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class EmbedConfig + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.EmbedConfig? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.EmbedConfig), + jsonSerializerContext) as global::ElevenLabs.EmbedConfig; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.EmbedConfig? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.EmbedConfig), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.EmbedConfig; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.EmbedConfig.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.EmbedConfig.g.cs new file mode 100644 index 0000000..4ac32a6 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.EmbedConfig.g.cs @@ -0,0 +1,203 @@ + +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace ElevenLabs +{ + /// + /// + /// + public sealed partial class EmbedConfig + { + /// + /// Default Value: full + /// + [global::System.Text.Json.Serialization.JsonPropertyName("variant")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::ElevenLabs.JsonConverters.EmbedVariantJsonConverter))] + public global::ElevenLabs.EmbedVariant? Variant { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("avatar")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::ElevenLabs.JsonConverters.AnyOfJsonConverter))] + public global::ElevenLabs.AnyOf? Avatar { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("custom_avatar_path")] + public string? CustomAvatarPath { get; set; } + + /// + /// Default Value: #ffffff + /// + [global::System.Text.Json.Serialization.JsonPropertyName("bg_color")] + public string? BgColor { get; set; } + + /// + /// Default Value: #000000 + /// + [global::System.Text.Json.Serialization.JsonPropertyName("text_color")] + public string? TextColor { get; set; } + + /// + /// Default Value: #000000 + /// + [global::System.Text.Json.Serialization.JsonPropertyName("btn_color")] + public string? BtnColor { get; set; } + + /// + /// Default Value: #ffffff + /// + [global::System.Text.Json.Serialization.JsonPropertyName("btn_text_color")] + public string? BtnTextColor { get; set; } + + /// + /// Default Value: #e1e1e1 + /// + [global::System.Text.Json.Serialization.JsonPropertyName("border_color")] + public string? BorderColor { get; set; } + + /// + /// Default Value: #000000 + /// + [global::System.Text.Json.Serialization.JsonPropertyName("focus_color")] + public string? FocusColor { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("border_radius")] + public int? BorderRadius { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("btn_radius")] + public int? BtnRadius { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("action_text")] + public string? ActionText { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("start_call_text")] + public string? StartCallText { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("end_call_text")] + public string? EndCallText { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("expand_text")] + public string? ExpandText { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("listening_text")] + public string? ListeningText { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("speaking_text")] + public string? SpeakingText { 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: full + /// + /// + /// + /// + /// Default Value: #ffffff + /// + /// + /// Default Value: #000000 + /// + /// + /// Default Value: #000000 + /// + /// + /// Default Value: #ffffff + /// + /// + /// Default Value: #e1e1e1 + /// + /// + /// Default Value: #000000 + /// + /// + /// + /// + /// + /// + /// + /// + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public EmbedConfig( + global::ElevenLabs.EmbedVariant? variant, + global::ElevenLabs.AnyOf? avatar, + string? customAvatarPath, + string? bgColor, + string? textColor, + string? btnColor, + string? btnTextColor, + string? borderColor, + string? focusColor, + int? borderRadius, + int? btnRadius, + string? actionText, + string? startCallText, + string? endCallText, + string? expandText, + string? listeningText, + string? speakingText) + { + this.Variant = variant; + this.Avatar = avatar; + this.CustomAvatarPath = customAvatarPath; + this.BgColor = bgColor; + this.TextColor = textColor; + this.BtnColor = btnColor; + this.BtnTextColor = btnTextColor; + this.BorderColor = borderColor; + this.FocusColor = focusColor; + this.BorderRadius = borderRadius; + this.BtnRadius = btnRadius; + this.ActionText = actionText; + this.StartCallText = startCallText; + this.EndCallText = endCallText; + this.ExpandText = expandText; + this.ListeningText = listeningText; + this.SpeakingText = speakingText; + } + + /// + /// Initializes a new instance of the class. + /// + public EmbedConfig() + { + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.EmbedVariant.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.EmbedVariant.g.cs new file mode 100644 index 0000000..04b67d9 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.EmbedVariant.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace ElevenLabs +{ + /// + /// An enumeration. + /// + public enum EmbedVariant + { + /// + /// + /// + Compact, + /// + /// + /// + Full, + /// + /// + /// + Expandable, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class EmbedVariantExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this EmbedVariant value) + { + return value switch + { + EmbedVariant.Compact => "compact", + EmbedVariant.Full => "full", + EmbedVariant.Expandable => "expandable", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static EmbedVariant? ToEnum(string value) + { + return value switch + { + "compact" => EmbedVariant.Compact, + "full" => EmbedVariant.Full, + "expandable" => EmbedVariant.Expandable, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.EvaluationSettings.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.EvaluationSettings.Json.g.cs new file mode 100644 index 0000000..3a4bb90 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.EvaluationSettings.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class EvaluationSettings + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.EvaluationSettings? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.EvaluationSettings), + jsonSerializerContext) as global::ElevenLabs.EvaluationSettings; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.EvaluationSettings? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.EvaluationSettings), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.EvaluationSettings; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.EvaluationSettings.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.EvaluationSettings.g.cs new file mode 100644 index 0000000..8a1311c --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.EvaluationSettings.g.cs @@ -0,0 +1,42 @@ + +#nullable enable + +namespace ElevenLabs +{ + /// + /// Settings to evaluate an agent's performance.
+ /// Agents are evaluated against a set of criteria, with success being defined as meeting some combination of those criteria. + ///
+ public sealed partial class EvaluationSettings + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("criteria")] + public global::System.Collections.Generic.IList? Criteria { 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. + /// + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public EvaluationSettings( + global::System.Collections.Generic.IList? criteria) + { + this.Criteria = criteria; + } + + /// + /// Initializes a new instance of the class. + /// + public EvaluationSettings() + { + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.EvaluationSuccessResult.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.EvaluationSuccessResult.g.cs new file mode 100644 index 0000000..618131c --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.EvaluationSuccessResult.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace ElevenLabs +{ + /// + /// An enumeration. + /// + public enum EvaluationSuccessResult + { + /// + /// + /// + Success, + /// + /// + /// + Failure, + /// + /// + /// + Unknown, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class EvaluationSuccessResultExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this EvaluationSuccessResult value) + { + return value switch + { + EvaluationSuccessResult.Success => "success", + EvaluationSuccessResult.Failure => "failure", + EvaluationSuccessResult.Unknown => "unknown", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static EvaluationSuccessResult? ToEnum(string value) + { + return value switch + { + "success" => EvaluationSuccessResult.Success, + "failure" => EvaluationSuccessResult.Failure, + "unknown" => EvaluationSuccessResult.Unknown, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ExtendedSubscriptionResponseModel.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ExtendedSubscriptionResponseModel.Json.g.cs new file mode 100644 index 0000000..637319a --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ExtendedSubscriptionResponseModel.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class ExtendedSubscriptionResponseModel + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.ExtendedSubscriptionResponseModel? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.ExtendedSubscriptionResponseModel), + jsonSerializerContext) as global::ElevenLabs.ExtendedSubscriptionResponseModel; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.ExtendedSubscriptionResponseModel? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.ExtendedSubscriptionResponseModel), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.ExtendedSubscriptionResponseModel; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ExtendedSubscriptionResponseModel.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ExtendedSubscriptionResponseModel.g.cs index da9102a..3ad041c 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ExtendedSubscriptionResponseModel.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ExtendedSubscriptionResponseModel.g.cs @@ -151,91 +151,76 @@ public sealed partial class ExtendedSubscriptionResponseModel [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ElevenLabs.ExtendedSubscriptionResponseModel? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// Initializes a new instance of the class. + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public ExtendedSubscriptionResponseModel( + string tier, + int characterCount, + int characterLimit, + bool canExtendCharacterLimit, + bool allowedToExtendCharacterLimit, + int nextCharacterCountResetUnix, + int voiceLimit, + int maxVoiceAddEdits, + int voiceAddEditCounter, + int professionalVoiceLimit, + bool canExtendVoiceLimit, + bool canUseInstantVoiceCloning, + bool canUseProfessionalVoiceCloning, + global::ElevenLabs.ExtendedSubscriptionResponseModelCurrency currency, + global::ElevenLabs.ExtendedSubscriptionResponseModelStatus status, + global::ElevenLabs.ExtendedSubscriptionResponseModelBillingPeriod billingPeriod, + global::ElevenLabs.ExtendedSubscriptionResponseModelCharacterRefreshPeriod characterRefreshPeriod, + global::ElevenLabs.InvoiceResponseModel nextInvoice, + bool hasOpenInvoices) { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.ExtendedSubscriptionResponseModel), - jsonSerializerContext) as global::ElevenLabs.ExtendedSubscriptionResponseModel; + this.Tier = tier ?? throw new global::System.ArgumentNullException(nameof(tier)); + this.CharacterCount = characterCount; + this.CharacterLimit = characterLimit; + this.CanExtendCharacterLimit = canExtendCharacterLimit; + this.AllowedToExtendCharacterLimit = allowedToExtendCharacterLimit; + this.NextCharacterCountResetUnix = nextCharacterCountResetUnix; + this.VoiceLimit = voiceLimit; + this.MaxVoiceAddEdits = maxVoiceAddEdits; + this.VoiceAddEditCounter = voiceAddEditCounter; + this.ProfessionalVoiceLimit = professionalVoiceLimit; + this.CanExtendVoiceLimit = canExtendVoiceLimit; + this.CanUseInstantVoiceCloning = canUseInstantVoiceCloning; + this.CanUseProfessionalVoiceCloning = canUseProfessionalVoiceCloning; + this.Currency = currency; + this.Status = status; + this.BillingPeriod = billingPeriod; + this.CharacterRefreshPeriod = characterRefreshPeriod; + this.NextInvoice = nextInvoice ?? throw new global::System.ArgumentNullException(nameof(nextInvoice)); + this.HasOpenInvoices = hasOpenInvoices; } /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.ExtendedSubscriptionResponseModel? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public ExtendedSubscriptionResponseModel() { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.ExtendedSubscriptionResponseModel), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.ExtendedSubscriptionResponseModel; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.FeedbackResponseModel.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.FeedbackResponseModel.Json.g.cs new file mode 100644 index 0000000..118abb9 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.FeedbackResponseModel.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class FeedbackResponseModel + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.FeedbackResponseModel? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.FeedbackResponseModel), + jsonSerializerContext) as global::ElevenLabs.FeedbackResponseModel; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.FeedbackResponseModel? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.FeedbackResponseModel), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.FeedbackResponseModel; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.FeedbackResponseModel.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.FeedbackResponseModel.g.cs index 0f3f5fa..afa83d1 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.FeedbackResponseModel.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.FeedbackResponseModel.g.cs @@ -69,91 +69,45 @@ public sealed partial class FeedbackResponseModel [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ElevenLabs.FeedbackResponseModel? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.FeedbackResponseModel), - jsonSerializerContext) as global::ElevenLabs.FeedbackResponseModel; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.FeedbackResponseModel? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// + /// + /// + /// + /// + /// + /// + /// + /// Default Value: not_reviewed + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public FeedbackResponseModel( + bool thumbsUp, + string feedback, + bool emotions, + bool inaccurateClone, + bool glitches, + bool audioQuality, + bool other, + string? reviewStatus) { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.FeedbackResponseModel), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.FeedbackResponseModel; + this.ThumbsUp = thumbsUp; + this.Feedback = feedback ?? throw new global::System.ArgumentNullException(nameof(feedback)); + this.Emotions = emotions; + this.InaccurateClone = inaccurateClone; + this.Glitches = glitches; + this.AudioQuality = audioQuality; + this.Other = other; + this.ReviewStatus = reviewStatus; } /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public FeedbackResponseModel() { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.FineTuningResponseModel.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.FineTuningResponseModel.Json.g.cs new file mode 100644 index 0000000..7773e72 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.FineTuningResponseModel.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class FineTuningResponseModel + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.FineTuningResponseModel? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.FineTuningResponseModel), + jsonSerializerContext) as global::ElevenLabs.FineTuningResponseModel; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.FineTuningResponseModel? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.FineTuningResponseModel), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.FineTuningResponseModel; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.FineTuningResponseModel.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.FineTuningResponseModel.g.cs index 5e3b9e9..4ca7252 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.FineTuningResponseModel.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.FineTuningResponseModel.g.cs @@ -103,91 +103,61 @@ public sealed partial class FineTuningResponseModel [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ElevenLabs.FineTuningResponseModel? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// Initializes a new instance of the class. + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public FineTuningResponseModel( + bool isAllowedToFineTune, + global::System.Collections.Generic.Dictionary state, + global::System.Collections.Generic.IList verificationFailures, + int verificationAttemptsCount, + bool manualVerificationRequested, + string? language, + global::System.Collections.Generic.Dictionary? progress, + global::System.Collections.Generic.Dictionary? message, + double? datasetDurationSeconds, + global::System.Collections.Generic.IList? verificationAttempts, + global::System.Collections.Generic.IList? sliceIds, + global::ElevenLabs.ManualVerificationResponseModel? manualVerification, + int? maxVerificationAttempts, + int? nextMaxVerificationAttemptsResetUnixMs) { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.FineTuningResponseModel), - jsonSerializerContext) as global::ElevenLabs.FineTuningResponseModel; + this.IsAllowedToFineTune = isAllowedToFineTune; + this.State = state ?? throw new global::System.ArgumentNullException(nameof(state)); + this.VerificationFailures = verificationFailures ?? throw new global::System.ArgumentNullException(nameof(verificationFailures)); + this.VerificationAttemptsCount = verificationAttemptsCount; + this.ManualVerificationRequested = manualVerificationRequested; + this.Language = language; + this.Progress = progress; + this.Message = message; + this.DatasetDurationSeconds = datasetDurationSeconds; + this.VerificationAttempts = verificationAttempts; + this.SliceIds = sliceIds; + this.ManualVerification = manualVerification; + this.MaxVerificationAttempts = maxVerificationAttempts; + this.NextMaxVerificationAttemptsResetUnixMs = nextMaxVerificationAttemptsResetUnixMs; } /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.FineTuningResponseModel? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public FineTuningResponseModel() { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.FineTuningResponseModel), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.FineTuningResponseModel; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.FineTuningResponseModelMessage.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.FineTuningResponseModelMessage.Json.g.cs new file mode 100644 index 0000000..410e9e5 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.FineTuningResponseModelMessage.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class FineTuningResponseModelMessage + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.FineTuningResponseModelMessage? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.FineTuningResponseModelMessage), + jsonSerializerContext) as global::ElevenLabs.FineTuningResponseModelMessage; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.FineTuningResponseModelMessage? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.FineTuningResponseModelMessage), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.FineTuningResponseModelMessage; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.FineTuningResponseModelMessage.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.FineTuningResponseModelMessage.g.cs index a44a7ca..c045093 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.FineTuningResponseModelMessage.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.FineTuningResponseModelMessage.g.cs @@ -15,91 +15,13 @@ public sealed partial class FineTuningResponseModelMessage [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static global::ElevenLabs.FineTuningResponseModelMessage? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public FineTuningResponseModelMessage( + ) { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.FineTuningResponseModelMessage), - jsonSerializerContext) as global::ElevenLabs.FineTuningResponseModelMessage; } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.FineTuningResponseModelMessage? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.FineTuningResponseModelMessage), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.FineTuningResponseModelMessage; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.FineTuningResponseModelProgress.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.FineTuningResponseModelProgress.Json.g.cs new file mode 100644 index 0000000..b523e73 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.FineTuningResponseModelProgress.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class FineTuningResponseModelProgress + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.FineTuningResponseModelProgress? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.FineTuningResponseModelProgress), + jsonSerializerContext) as global::ElevenLabs.FineTuningResponseModelProgress; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.FineTuningResponseModelProgress? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.FineTuningResponseModelProgress), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.FineTuningResponseModelProgress; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.FineTuningResponseModelProgress.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.FineTuningResponseModelProgress.g.cs index 8f14d4f..c813913 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.FineTuningResponseModelProgress.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.FineTuningResponseModelProgress.g.cs @@ -15,91 +15,13 @@ public sealed partial class FineTuningResponseModelProgress [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static global::ElevenLabs.FineTuningResponseModelProgress? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public FineTuningResponseModelProgress( + ) { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.FineTuningResponseModelProgress), - jsonSerializerContext) as global::ElevenLabs.FineTuningResponseModelProgress; } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.FineTuningResponseModelProgress? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.FineTuningResponseModelProgress), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.FineTuningResponseModelProgress; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.FineTuningResponseModelState.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.FineTuningResponseModelState.Json.g.cs new file mode 100644 index 0000000..1a39764 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.FineTuningResponseModelState.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class FineTuningResponseModelState + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.FineTuningResponseModelState? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.FineTuningResponseModelState), + jsonSerializerContext) as global::ElevenLabs.FineTuningResponseModelState; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.FineTuningResponseModelState? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.FineTuningResponseModelState), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.FineTuningResponseModelState; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.FineTuningResponseModelState.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.FineTuningResponseModelState.g.cs index bcb7f8d..cd8057c 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.FineTuningResponseModelState.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.FineTuningResponseModelState.g.cs @@ -15,91 +15,13 @@ public sealed partial class FineTuningResponseModelState [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static global::ElevenLabs.FineTuningResponseModelState? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public FineTuningResponseModelState( + ) { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.FineTuningResponseModelState), - jsonSerializerContext) as global::ElevenLabs.FineTuningResponseModelState; } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.FineTuningResponseModelState? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.FineTuningResponseModelState), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.FineTuningResponseModelState; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetAgentEmbedResponseModel.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetAgentEmbedResponseModel.Json.g.cs new file mode 100644 index 0000000..6c16444 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetAgentEmbedResponseModel.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class GetAgentEmbedResponseModel + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.GetAgentEmbedResponseModel? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.GetAgentEmbedResponseModel), + jsonSerializerContext) as global::ElevenLabs.GetAgentEmbedResponseModel; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.GetAgentEmbedResponseModel? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.GetAgentEmbedResponseModel), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.GetAgentEmbedResponseModel; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetAgentEmbedResponseModel.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetAgentEmbedResponseModel.g.cs new file mode 100644 index 0000000..a606712 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetAgentEmbedResponseModel.g.cs @@ -0,0 +1,52 @@ + +#nullable enable + +namespace ElevenLabs +{ + /// + /// + /// + public sealed partial class GetAgentEmbedResponseModel + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("agent_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string AgentId { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("widget_config")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::ElevenLabs.EmbedConfig WidgetConfig { 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. + /// + /// + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public GetAgentEmbedResponseModel( + string agentId, + global::ElevenLabs.EmbedConfig widgetConfig) + { + this.AgentId = agentId ?? throw new global::System.ArgumentNullException(nameof(agentId)); + this.WidgetConfig = widgetConfig ?? throw new global::System.ArgumentNullException(nameof(widgetConfig)); + } + + /// + /// Initializes a new instance of the class. + /// + public GetAgentEmbedResponseModel() + { + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetAgentResponseModel.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetAgentResponseModel.Json.g.cs new file mode 100644 index 0000000..e47ff64 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetAgentResponseModel.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class GetAgentResponseModel + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.GetAgentResponseModel? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.GetAgentResponseModel), + jsonSerializerContext) as global::ElevenLabs.GetAgentResponseModel; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.GetAgentResponseModel? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.GetAgentResponseModel), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.GetAgentResponseModel; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetAgentResponseModel.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetAgentResponseModel.g.cs new file mode 100644 index 0000000..368ec67 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetAgentResponseModel.g.cs @@ -0,0 +1,81 @@ + +#nullable enable + +namespace ElevenLabs +{ + /// + /// + /// + public sealed partial class GetAgentResponseModel + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("agent_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string AgentId { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Name { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("conversation_config")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::ElevenLabs.ConversationalConfig ConversationConfig { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("metadata")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::ElevenLabs.AgentMetadataResponseModel Metadata { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("platform_settings")] + public global::ElevenLabs.AgentPlatformSettings? PlatformSettings { 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. + /// + /// + /// + /// + /// + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public GetAgentResponseModel( + string agentId, + string name, + global::ElevenLabs.ConversationalConfig conversationConfig, + global::ElevenLabs.AgentMetadataResponseModel metadata, + global::ElevenLabs.AgentPlatformSettings? platformSettings) + { + this.AgentId = agentId ?? throw new global::System.ArgumentNullException(nameof(agentId)); + this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); + this.ConversationConfig = conversationConfig ?? throw new global::System.ArgumentNullException(nameof(conversationConfig)); + this.Metadata = metadata ?? throw new global::System.ArgumentNullException(nameof(metadata)); + this.PlatformSettings = platformSettings; + } + + /// + /// Initializes a new instance of the class. + /// + public GetAgentResponseModel() + { + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetAgentsPageResponseModel.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetAgentsPageResponseModel.Json.g.cs new file mode 100644 index 0000000..8378a41 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetAgentsPageResponseModel.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class GetAgentsPageResponseModel + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.GetAgentsPageResponseModel? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.GetAgentsPageResponseModel), + jsonSerializerContext) as global::ElevenLabs.GetAgentsPageResponseModel; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.GetAgentsPageResponseModel? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.GetAgentsPageResponseModel), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.GetAgentsPageResponseModel; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetAgentsPageResponseModel.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetAgentsPageResponseModel.g.cs index dba951a..25f72e4 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetAgentsPageResponseModel.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetAgentsPageResponseModel.g.cs @@ -34,91 +34,28 @@ public sealed partial class GetAgentsPageResponseModel [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static global::ElevenLabs.GetAgentsPageResponseModel? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// + /// + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public GetAgentsPageResponseModel( + global::System.Collections.Generic.IList agents, + bool hasMore, + string? nextCursor) { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.GetAgentsPageResponseModel), - jsonSerializerContext) as global::ElevenLabs.GetAgentsPageResponseModel; + this.Agents = agents ?? throw new global::System.ArgumentNullException(nameof(agents)); + this.HasMore = hasMore; + this.NextCursor = nextCursor; } /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.GetAgentsPageResponseModel? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public GetAgentsPageResponseModel() { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.GetAgentsPageResponseModel), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.GetAgentsPageResponseModel; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetChaptersResponseModel.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetChaptersResponseModel.Json.g.cs new file mode 100644 index 0000000..bab5c07 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetChaptersResponseModel.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class GetChaptersResponseModel + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.GetChaptersResponseModel? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.GetChaptersResponseModel), + jsonSerializerContext) as global::ElevenLabs.GetChaptersResponseModel; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.GetChaptersResponseModel? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.GetChaptersResponseModel), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.GetChaptersResponseModel; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetChaptersResponseModel.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetChaptersResponseModel.g.cs index b197f03..d5a457a 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetChaptersResponseModel.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetChaptersResponseModel.g.cs @@ -21,91 +21,22 @@ public sealed partial class GetChaptersResponseModel [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static global::ElevenLabs.GetChaptersResponseModel? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public GetChaptersResponseModel( + global::System.Collections.Generic.IList chapters) { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.GetChaptersResponseModel), - jsonSerializerContext) as global::ElevenLabs.GetChaptersResponseModel; + this.Chapters = chapters ?? throw new global::System.ArgumentNullException(nameof(chapters)); } /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.GetChaptersResponseModel? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public GetChaptersResponseModel() { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.GetChaptersResponseModel), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.GetChaptersResponseModel; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetConversationResponseModel.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetConversationResponseModel.Json.g.cs new file mode 100644 index 0000000..ff45590 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetConversationResponseModel.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class GetConversationResponseModel + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.GetConversationResponseModel? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.GetConversationResponseModel), + jsonSerializerContext) as global::ElevenLabs.GetConversationResponseModel; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.GetConversationResponseModel? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.GetConversationResponseModel), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.GetConversationResponseModel; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetConversationResponseModel.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetConversationResponseModel.g.cs new file mode 100644 index 0000000..cc60477 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetConversationResponseModel.g.cs @@ -0,0 +1,92 @@ + +#nullable enable + +namespace ElevenLabs +{ + /// + /// + /// + public sealed partial class GetConversationResponseModel + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("agent_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string AgentId { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("conversation_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ConversationId { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::ElevenLabs.JsonConverters.GetConversationResponseModelStatusJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::ElevenLabs.GetConversationResponseModelStatus Status { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("transcript")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Transcript { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("metadata")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::ElevenLabs.ConversationHistoryMetadataCommonModel Metadata { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("analysis")] + public global::ElevenLabs.ConversationHistoryAnalysisCommonModel? Analysis { 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. + /// + /// + /// + /// + /// + /// + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public GetConversationResponseModel( + string agentId, + string conversationId, + global::ElevenLabs.GetConversationResponseModelStatus status, + global::System.Collections.Generic.IList transcript, + global::ElevenLabs.ConversationHistoryMetadataCommonModel metadata, + global::ElevenLabs.ConversationHistoryAnalysisCommonModel? analysis) + { + this.AgentId = agentId ?? throw new global::System.ArgumentNullException(nameof(agentId)); + this.ConversationId = conversationId ?? throw new global::System.ArgumentNullException(nameof(conversationId)); + this.Status = status; + this.Transcript = transcript ?? throw new global::System.ArgumentNullException(nameof(transcript)); + this.Metadata = metadata ?? throw new global::System.ArgumentNullException(nameof(metadata)); + this.Analysis = analysis; + } + + /// + /// Initializes a new instance of the class. + /// + public GetConversationResponseModel() + { + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetConversationResponseModelStatus.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetConversationResponseModelStatus.g.cs new file mode 100644 index 0000000..43f3ac5 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetConversationResponseModelStatus.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace ElevenLabs +{ + /// + /// + /// + public enum GetConversationResponseModelStatus + { + /// + /// + /// + Processing, + /// + /// + /// + Done, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class GetConversationResponseModelStatusExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this GetConversationResponseModelStatus value) + { + return value switch + { + GetConversationResponseModelStatus.Processing => "processing", + GetConversationResponseModelStatus.Done => "done", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static GetConversationResponseModelStatus? ToEnum(string value) + { + return value switch + { + "processing" => GetConversationResponseModelStatus.Processing, + "done" => GetConversationResponseModelStatus.Done, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetConversationsPageResponseModel.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetConversationsPageResponseModel.Json.g.cs new file mode 100644 index 0000000..e9104f8 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetConversationsPageResponseModel.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class GetConversationsPageResponseModel + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.GetConversationsPageResponseModel? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.GetConversationsPageResponseModel), + jsonSerializerContext) as global::ElevenLabs.GetConversationsPageResponseModel; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.GetConversationsPageResponseModel? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.GetConversationsPageResponseModel), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.GetConversationsPageResponseModel; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetConversationsPageResponseModel.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetConversationsPageResponseModel.g.cs new file mode 100644 index 0000000..47eb011 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetConversationsPageResponseModel.g.cs @@ -0,0 +1,61 @@ + +#nullable enable + +namespace ElevenLabs +{ + /// + /// + /// + public sealed partial class GetConversationsPageResponseModel + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("conversations")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Conversations { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("next_cursor")] + public string? NextCursor { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("has_more")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool HasMore { 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. + /// + /// + /// + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public GetConversationsPageResponseModel( + global::System.Collections.Generic.IList conversations, + bool hasMore, + string? nextCursor) + { + this.Conversations = conversations ?? throw new global::System.ArgumentNullException(nameof(conversations)); + this.HasMore = hasMore; + this.NextCursor = nextCursor; + } + + /// + /// Initializes a new instance of the class. + /// + public GetConversationsPageResponseModel() + { + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetKnowledgeBaseReponseModel.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetKnowledgeBaseReponseModel.Json.g.cs new file mode 100644 index 0000000..47851cb --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetKnowledgeBaseReponseModel.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class GetKnowledgeBaseReponseModel + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.GetKnowledgeBaseReponseModel? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.GetKnowledgeBaseReponseModel), + jsonSerializerContext) as global::ElevenLabs.GetKnowledgeBaseReponseModel; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.GetKnowledgeBaseReponseModel? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.GetKnowledgeBaseReponseModel), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.GetKnowledgeBaseReponseModel; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetKnowledgeBaseReponseModel.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetKnowledgeBaseReponseModel.g.cs new file mode 100644 index 0000000..0ac3ee6 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetKnowledgeBaseReponseModel.g.cs @@ -0,0 +1,63 @@ + +#nullable enable + +namespace ElevenLabs +{ + /// + /// + /// + public sealed partial class GetKnowledgeBaseReponseModel + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Id { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::ElevenLabs.JsonConverters.GetKnowledgeBaseReponseModelTypeJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::ElevenLabs.GetKnowledgeBaseReponseModelType Type { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("extracted_inner_html")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ExtractedInnerHtml { 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. + /// + /// + /// + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public GetKnowledgeBaseReponseModel( + string id, + global::ElevenLabs.GetKnowledgeBaseReponseModelType type, + string extractedInnerHtml) + { + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + this.Type = type; + this.ExtractedInnerHtml = extractedInnerHtml ?? throw new global::System.ArgumentNullException(nameof(extractedInnerHtml)); + } + + /// + /// Initializes a new instance of the class. + /// + public GetKnowledgeBaseReponseModel() + { + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetKnowledgeBaseReponseModelType.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetKnowledgeBaseReponseModelType.g.cs new file mode 100644 index 0000000..70090d6 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetKnowledgeBaseReponseModelType.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace ElevenLabs +{ + /// + /// + /// + public enum GetKnowledgeBaseReponseModelType + { + /// + /// + /// + File, + /// + /// + /// + Url, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class GetKnowledgeBaseReponseModelTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this GetKnowledgeBaseReponseModelType value) + { + return value switch + { + GetKnowledgeBaseReponseModelType.File => "file", + GetKnowledgeBaseReponseModelType.Url => "url", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static GetKnowledgeBaseReponseModelType? ToEnum(string value) + { + return value switch + { + "file" => GetKnowledgeBaseReponseModelType.File, + "url" => GetKnowledgeBaseReponseModelType.Url, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetLibraryVoicesResponseModel.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetLibraryVoicesResponseModel.Json.g.cs new file mode 100644 index 0000000..7bd91d1 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetLibraryVoicesResponseModel.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class GetLibraryVoicesResponseModel + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.GetLibraryVoicesResponseModel? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.GetLibraryVoicesResponseModel), + jsonSerializerContext) as global::ElevenLabs.GetLibraryVoicesResponseModel; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.GetLibraryVoicesResponseModel? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.GetLibraryVoicesResponseModel), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.GetLibraryVoicesResponseModel; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetLibraryVoicesResponseModel.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetLibraryVoicesResponseModel.g.cs index 0925d18..9152a23 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetLibraryVoicesResponseModel.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetLibraryVoicesResponseModel.g.cs @@ -34,91 +34,28 @@ public sealed partial class GetLibraryVoicesResponseModel [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static global::ElevenLabs.GetLibraryVoicesResponseModel? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// + /// + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public GetLibraryVoicesResponseModel( + global::System.Collections.Generic.IList voices, + bool hasMore, + string? lastSortId) { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.GetLibraryVoicesResponseModel), - jsonSerializerContext) as global::ElevenLabs.GetLibraryVoicesResponseModel; + this.Voices = voices ?? throw new global::System.ArgumentNullException(nameof(voices)); + this.HasMore = hasMore; + this.LastSortId = lastSortId; } /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.GetLibraryVoicesResponseModel? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public GetLibraryVoicesResponseModel() { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.GetLibraryVoicesResponseModel), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.GetLibraryVoicesResponseModel; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetProjectsResponseModel.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetProjectsResponseModel.Json.g.cs new file mode 100644 index 0000000..df64c4b --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetProjectsResponseModel.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class GetProjectsResponseModel + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.GetProjectsResponseModel? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.GetProjectsResponseModel), + jsonSerializerContext) as global::ElevenLabs.GetProjectsResponseModel; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.GetProjectsResponseModel? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.GetProjectsResponseModel), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.GetProjectsResponseModel; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetProjectsResponseModel.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetProjectsResponseModel.g.cs index f965414..52406e9 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetProjectsResponseModel.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetProjectsResponseModel.g.cs @@ -21,91 +21,22 @@ public sealed partial class GetProjectsResponseModel [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static global::ElevenLabs.GetProjectsResponseModel? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public GetProjectsResponseModel( + global::System.Collections.Generic.IList projects) { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.GetProjectsResponseModel), - jsonSerializerContext) as global::ElevenLabs.GetProjectsResponseModel; + this.Projects = projects ?? throw new global::System.ArgumentNullException(nameof(projects)); } /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.GetProjectsResponseModel? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public GetProjectsResponseModel() { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.GetProjectsResponseModel), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.GetProjectsResponseModel; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetPronunciationDictionariesMetadataResponseModel.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetPronunciationDictionariesMetadataResponseModel.Json.g.cs new file mode 100644 index 0000000..e303009 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetPronunciationDictionariesMetadataResponseModel.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class GetPronunciationDictionariesMetadataResponseModel + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.GetPronunciationDictionariesMetadataResponseModel? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.GetPronunciationDictionariesMetadataResponseModel), + jsonSerializerContext) as global::ElevenLabs.GetPronunciationDictionariesMetadataResponseModel; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.GetPronunciationDictionariesMetadataResponseModel? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.GetPronunciationDictionariesMetadataResponseModel), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.GetPronunciationDictionariesMetadataResponseModel; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetPronunciationDictionariesMetadataResponseModel.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetPronunciationDictionariesMetadataResponseModel.g.cs index 6a768f6..2d78895 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetPronunciationDictionariesMetadataResponseModel.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetPronunciationDictionariesMetadataResponseModel.g.cs @@ -35,91 +35,28 @@ public sealed partial class GetPronunciationDictionariesMetadataResponseModel [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static global::ElevenLabs.GetPronunciationDictionariesMetadataResponseModel? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// + /// + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public GetPronunciationDictionariesMetadataResponseModel( + global::System.Collections.Generic.IList pronunciationDictionaries, + string nextCursor, + bool hasMore) { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.GetPronunciationDictionariesMetadataResponseModel), - jsonSerializerContext) as global::ElevenLabs.GetPronunciationDictionariesMetadataResponseModel; + this.PronunciationDictionaries = pronunciationDictionaries ?? throw new global::System.ArgumentNullException(nameof(pronunciationDictionaries)); + this.NextCursor = nextCursor ?? throw new global::System.ArgumentNullException(nameof(nextCursor)); + this.HasMore = hasMore; } /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.GetPronunciationDictionariesMetadataResponseModel? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public GetPronunciationDictionariesMetadataResponseModel() { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.GetPronunciationDictionariesMetadataResponseModel), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.GetPronunciationDictionariesMetadataResponseModel; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetPronunciationDictionaryMetadataResponseModel.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetPronunciationDictionaryMetadataResponseModel.Json.g.cs new file mode 100644 index 0000000..fc1e552 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetPronunciationDictionaryMetadataResponseModel.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class GetPronunciationDictionaryMetadataResponseModel + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.GetPronunciationDictionaryMetadataResponseModel? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.GetPronunciationDictionaryMetadataResponseModel), + jsonSerializerContext) as global::ElevenLabs.GetPronunciationDictionaryMetadataResponseModel; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.GetPronunciationDictionaryMetadataResponseModel? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.GetPronunciationDictionaryMetadataResponseModel), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.GetPronunciationDictionaryMetadataResponseModel; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetPronunciationDictionaryMetadataResponseModel.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetPronunciationDictionaryMetadataResponseModel.g.cs index 0128078..2fab3f1 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetPronunciationDictionaryMetadataResponseModel.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetPronunciationDictionaryMetadataResponseModel.g.cs @@ -55,91 +55,37 @@ public sealed partial class GetPronunciationDictionaryMetadataResponseModel [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static global::ElevenLabs.GetPronunciationDictionaryMetadataResponseModel? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// + /// + /// + /// + /// + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public GetPronunciationDictionaryMetadataResponseModel( + string id, + string latestVersionId, + string name, + string createdBy, + int creationTimeUnix, + string? description) { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.GetPronunciationDictionaryMetadataResponseModel), - jsonSerializerContext) as global::ElevenLabs.GetPronunciationDictionaryMetadataResponseModel; + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + this.LatestVersionId = latestVersionId ?? throw new global::System.ArgumentNullException(nameof(latestVersionId)); + this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); + this.CreatedBy = createdBy ?? throw new global::System.ArgumentNullException(nameof(createdBy)); + this.CreationTimeUnix = creationTimeUnix; + this.Description = description; } /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.GetPronunciationDictionaryMetadataResponseModel? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public GetPronunciationDictionaryMetadataResponseModel() { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.GetPronunciationDictionaryMetadataResponseModel), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.GetPronunciationDictionaryMetadataResponseModel; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetSpeechHistoryResponseModel.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetSpeechHistoryResponseModel.Json.g.cs new file mode 100644 index 0000000..a09c744 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetSpeechHistoryResponseModel.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class GetSpeechHistoryResponseModel + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.GetSpeechHistoryResponseModel? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.GetSpeechHistoryResponseModel), + jsonSerializerContext) as global::ElevenLabs.GetSpeechHistoryResponseModel; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.GetSpeechHistoryResponseModel? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.GetSpeechHistoryResponseModel), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.GetSpeechHistoryResponseModel; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetSpeechHistoryResponseModel.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetSpeechHistoryResponseModel.g.cs index 145e8c6..5997a37 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetSpeechHistoryResponseModel.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetSpeechHistoryResponseModel.g.cs @@ -35,91 +35,28 @@ public sealed partial class GetSpeechHistoryResponseModel [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static global::ElevenLabs.GetSpeechHistoryResponseModel? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// + /// + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public GetSpeechHistoryResponseModel( + global::System.Collections.Generic.IList history, + string lastHistoryItemId, + bool hasMore) { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.GetSpeechHistoryResponseModel), - jsonSerializerContext) as global::ElevenLabs.GetSpeechHistoryResponseModel; + this.History = history ?? throw new global::System.ArgumentNullException(nameof(history)); + this.LastHistoryItemId = lastHistoryItemId ?? throw new global::System.ArgumentNullException(nameof(lastHistoryItemId)); + this.HasMore = hasMore; } /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.GetSpeechHistoryResponseModel? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public GetSpeechHistoryResponseModel() { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.GetSpeechHistoryResponseModel), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.GetSpeechHistoryResponseModel; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetTranscriptForDubV1DubbingDubbingIdTranscriptLanguageCodeGetResponse.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetTranscriptForDubV1DubbingDubbingIdTranscriptLanguageCodeGetResponse.Json.g.cs new file mode 100644 index 0000000..d81420b --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetTranscriptForDubV1DubbingDubbingIdTranscriptLanguageCodeGetResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class GetTranscriptForDubV1DubbingDubbingIdTranscriptLanguageCodeGetResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.GetTranscriptForDubV1DubbingDubbingIdTranscriptLanguageCodeGetResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.GetTranscriptForDubV1DubbingDubbingIdTranscriptLanguageCodeGetResponse), + jsonSerializerContext) as global::ElevenLabs.GetTranscriptForDubV1DubbingDubbingIdTranscriptLanguageCodeGetResponse; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.GetTranscriptForDubV1DubbingDubbingIdTranscriptLanguageCodeGetResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.GetTranscriptForDubV1DubbingDubbingIdTranscriptLanguageCodeGetResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.GetTranscriptForDubV1DubbingDubbingIdTranscriptLanguageCodeGetResponse; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetTranscriptForDubV1DubbingDubbingIdTranscriptLanguageCodeGetResponse.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetTranscriptForDubV1DubbingDubbingIdTranscriptLanguageCodeGetResponse.g.cs index 229f021..0ce5acf 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetTranscriptForDubV1DubbingDubbingIdTranscriptLanguageCodeGetResponse.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetTranscriptForDubV1DubbingDubbingIdTranscriptLanguageCodeGetResponse.g.cs @@ -15,91 +15,13 @@ public sealed partial class GetTranscriptForDubV1DubbingDubbingIdTranscriptLangu [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static global::ElevenLabs.GetTranscriptForDubV1DubbingDubbingIdTranscriptLanguageCodeGetResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public GetTranscriptForDubV1DubbingDubbingIdTranscriptLanguageCodeGetResponse( + ) { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.GetTranscriptForDubV1DubbingDubbingIdTranscriptLanguageCodeGetResponse), - jsonSerializerContext) as global::ElevenLabs.GetTranscriptForDubV1DubbingDubbingIdTranscriptLanguageCodeGetResponse; } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.GetTranscriptForDubV1DubbingDubbingIdTranscriptLanguageCodeGetResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.GetTranscriptForDubV1DubbingDubbingIdTranscriptLanguageCodeGetResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.GetTranscriptForDubV1DubbingDubbingIdTranscriptLanguageCodeGetResponse; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetVoicesResponseModel.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetVoicesResponseModel.Json.g.cs new file mode 100644 index 0000000..a9dde05 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetVoicesResponseModel.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class GetVoicesResponseModel + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.GetVoicesResponseModel? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.GetVoicesResponseModel), + jsonSerializerContext) as global::ElevenLabs.GetVoicesResponseModel; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.GetVoicesResponseModel? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.GetVoicesResponseModel), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.GetVoicesResponseModel; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetVoicesResponseModel.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetVoicesResponseModel.g.cs index 33678fb..44d1baf 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetVoicesResponseModel.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetVoicesResponseModel.g.cs @@ -21,91 +21,22 @@ public sealed partial class GetVoicesResponseModel [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static global::ElevenLabs.GetVoicesResponseModel? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public GetVoicesResponseModel( + global::System.Collections.Generic.IList voices) { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.GetVoicesResponseModel), - jsonSerializerContext) as global::ElevenLabs.GetVoicesResponseModel; + this.Voices = voices ?? throw new global::System.ArgumentNullException(nameof(voices)); } /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.GetVoicesResponseModel? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public GetVoicesResponseModel() { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.GetVoicesResponseModel), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.GetVoicesResponseModel; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.HTTPValidationError.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.HTTPValidationError.Json.g.cs new file mode 100644 index 0000000..a072baf --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.HTTPValidationError.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class HTTPValidationError + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.HTTPValidationError? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.HTTPValidationError), + jsonSerializerContext) as global::ElevenLabs.HTTPValidationError; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.HTTPValidationError? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.HTTPValidationError), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.HTTPValidationError; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.HTTPValidationError.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.HTTPValidationError.g.cs index b02fa1d..ef10a2b 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.HTTPValidationError.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.HTTPValidationError.g.cs @@ -20,91 +20,22 @@ public sealed partial class HTTPValidationError [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static global::ElevenLabs.HTTPValidationError? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public HTTPValidationError( + global::System.Collections.Generic.IList? detail) { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.HTTPValidationError), - jsonSerializerContext) as global::ElevenLabs.HTTPValidationError; + this.Detail = detail; } /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.HTTPValidationError? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public HTTPValidationError() { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.HTTPValidationError), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.HTTPValidationError; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.HistoryAlignmentResponseModel.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.HistoryAlignmentResponseModel.Json.g.cs new file mode 100644 index 0000000..b5df210 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.HistoryAlignmentResponseModel.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class HistoryAlignmentResponseModel + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.HistoryAlignmentResponseModel? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.HistoryAlignmentResponseModel), + jsonSerializerContext) as global::ElevenLabs.HistoryAlignmentResponseModel; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.HistoryAlignmentResponseModel? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.HistoryAlignmentResponseModel), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.HistoryAlignmentResponseModel; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.HistoryAlignmentResponseModel.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.HistoryAlignmentResponseModel.g.cs index a252780..27c92cb 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.HistoryAlignmentResponseModel.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.HistoryAlignmentResponseModel.g.cs @@ -35,91 +35,28 @@ public sealed partial class HistoryAlignmentResponseModel [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static global::ElevenLabs.HistoryAlignmentResponseModel? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// + /// + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public HistoryAlignmentResponseModel( + global::System.Collections.Generic.IList characters, + global::System.Collections.Generic.IList characterStartTimesSeconds, + global::System.Collections.Generic.IList characterEndTimesSeconds) { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.HistoryAlignmentResponseModel), - jsonSerializerContext) as global::ElevenLabs.HistoryAlignmentResponseModel; + this.Characters = characters ?? throw new global::System.ArgumentNullException(nameof(characters)); + this.CharacterStartTimesSeconds = characterStartTimesSeconds ?? throw new global::System.ArgumentNullException(nameof(characterStartTimesSeconds)); + this.CharacterEndTimesSeconds = characterEndTimesSeconds ?? throw new global::System.ArgumentNullException(nameof(characterEndTimesSeconds)); } /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.HistoryAlignmentResponseModel? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public HistoryAlignmentResponseModel() { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.HistoryAlignmentResponseModel), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.HistoryAlignmentResponseModel; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.HistoryAlignmentsResponseModel.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.HistoryAlignmentsResponseModel.Json.g.cs new file mode 100644 index 0000000..2fdb005 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.HistoryAlignmentsResponseModel.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class HistoryAlignmentsResponseModel + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.HistoryAlignmentsResponseModel? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.HistoryAlignmentsResponseModel), + jsonSerializerContext) as global::ElevenLabs.HistoryAlignmentsResponseModel; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.HistoryAlignmentsResponseModel? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.HistoryAlignmentsResponseModel), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.HistoryAlignmentsResponseModel; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.HistoryAlignmentsResponseModel.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.HistoryAlignmentsResponseModel.g.cs index a6c3668..5c17387 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.HistoryAlignmentsResponseModel.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.HistoryAlignmentsResponseModel.g.cs @@ -28,91 +28,25 @@ public sealed partial class HistoryAlignmentsResponseModel [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static global::ElevenLabs.HistoryAlignmentsResponseModel? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public HistoryAlignmentsResponseModel( + global::ElevenLabs.HistoryAlignmentResponseModel alignment, + global::ElevenLabs.HistoryAlignmentResponseModel normalizedAlignment) { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.HistoryAlignmentsResponseModel), - jsonSerializerContext) as global::ElevenLabs.HistoryAlignmentsResponseModel; + this.Alignment = alignment ?? throw new global::System.ArgumentNullException(nameof(alignment)); + this.NormalizedAlignment = normalizedAlignment ?? throw new global::System.ArgumentNullException(nameof(normalizedAlignment)); } /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.HistoryAlignmentsResponseModel? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public HistoryAlignmentsResponseModel() { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.HistoryAlignmentsResponseModel), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.HistoryAlignmentsResponseModel; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ImageAvatar.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ImageAvatar.Json.g.cs new file mode 100644 index 0000000..1a8dc71 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ImageAvatar.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class ImageAvatar + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.ImageAvatar? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.ImageAvatar), + jsonSerializerContext) as global::ElevenLabs.ImageAvatar; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.ImageAvatar? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.ImageAvatar), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.ImageAvatar; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ImageAvatar.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ImageAvatar.g.cs new file mode 100644 index 0000000..1c01ac6 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ImageAvatar.g.cs @@ -0,0 +1,53 @@ + +#nullable enable + +namespace ElevenLabs +{ + /// + /// + /// + public sealed partial class ImageAvatar + { + /// + /// Default Value: image + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::ElevenLabs.JsonConverters.ImageAvatarTypeJsonConverter))] + public global::ElevenLabs.ImageAvatarType? Type { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("url")] + public string? Url { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Default Value: image + /// + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public ImageAvatar( + global::ElevenLabs.ImageAvatarType? type, + string? url) + { + this.Type = type; + this.Url = url; + } + + /// + /// Initializes a new instance of the class. + /// + public ImageAvatar() + { + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ImageAvatarType.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ImageAvatarType.g.cs new file mode 100644 index 0000000..9275dae --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ImageAvatarType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace ElevenLabs +{ + /// + /// Default Value: image + /// + public enum ImageAvatarType + { + /// + /// + /// + Image, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ImageAvatarTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ImageAvatarType value) + { + return value switch + { + ImageAvatarType.Image => "image", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ImageAvatarType? ToEnum(string value) + { + return value switch + { + "image" => ImageAvatarType.Image, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.InviteUserV1WorkspaceInvitesAddPostResponse.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.InviteUserV1WorkspaceInvitesAddPostResponse.Json.g.cs new file mode 100644 index 0000000..aa2f7ba --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.InviteUserV1WorkspaceInvitesAddPostResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class InviteUserV1WorkspaceInvitesAddPostResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.InviteUserV1WorkspaceInvitesAddPostResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.InviteUserV1WorkspaceInvitesAddPostResponse), + jsonSerializerContext) as global::ElevenLabs.InviteUserV1WorkspaceInvitesAddPostResponse; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.InviteUserV1WorkspaceInvitesAddPostResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.InviteUserV1WorkspaceInvitesAddPostResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.InviteUserV1WorkspaceInvitesAddPostResponse; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.InviteUserV1WorkspaceInvitesAddPostResponse.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.InviteUserV1WorkspaceInvitesAddPostResponse.g.cs index 2f382aa..8e17f76 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.InviteUserV1WorkspaceInvitesAddPostResponse.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.InviteUserV1WorkspaceInvitesAddPostResponse.g.cs @@ -15,91 +15,13 @@ public sealed partial class InviteUserV1WorkspaceInvitesAddPostResponse [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static global::ElevenLabs.InviteUserV1WorkspaceInvitesAddPostResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public InviteUserV1WorkspaceInvitesAddPostResponse( + ) { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.InviteUserV1WorkspaceInvitesAddPostResponse), - jsonSerializerContext) as global::ElevenLabs.InviteUserV1WorkspaceInvitesAddPostResponse; } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.InviteUserV1WorkspaceInvitesAddPostResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.InviteUserV1WorkspaceInvitesAddPostResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.InviteUserV1WorkspaceInvitesAddPostResponse; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.InvoiceResponseModel.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.InvoiceResponseModel.Json.g.cs new file mode 100644 index 0000000..7e0b837 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.InvoiceResponseModel.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class InvoiceResponseModel + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.InvoiceResponseModel? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.InvoiceResponseModel), + jsonSerializerContext) as global::ElevenLabs.InvoiceResponseModel; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.InvoiceResponseModel? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.InvoiceResponseModel), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.InvoiceResponseModel; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.InvoiceResponseModel.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.InvoiceResponseModel.g.cs index cc71dff..497cfc5 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.InvoiceResponseModel.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.InvoiceResponseModel.g.cs @@ -28,91 +28,25 @@ public sealed partial class InvoiceResponseModel [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static global::ElevenLabs.InvoiceResponseModel? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public InvoiceResponseModel( + int amountDueCents, + int nextPaymentAttemptUnix) { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.InvoiceResponseModel), - jsonSerializerContext) as global::ElevenLabs.InvoiceResponseModel; + this.AmountDueCents = amountDueCents; + this.NextPaymentAttemptUnix = nextPaymentAttemptUnix; } /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.InvoiceResponseModel? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public InvoiceResponseModel() { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.InvoiceResponseModel), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.InvoiceResponseModel; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.JsonLiteralType.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.JsonLiteralType.g.cs new file mode 100644 index 0000000..fa0615a --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.JsonLiteralType.g.cs @@ -0,0 +1,63 @@ + +#nullable enable + +namespace ElevenLabs +{ + /// + /// JSON schema literal types. e.g. all Json types except nested objects and lists + /// + public enum JsonLiteralType + { + /// + /// + /// + Boolean, + /// + /// + /// + String, + /// + /// + /// + Integer, + /// + /// + /// + Number, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class JsonLiteralTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this JsonLiteralType value) + { + return value switch + { + JsonLiteralType.Boolean => "boolean", + JsonLiteralType.String => "string", + JsonLiteralType.Integer => "integer", + JsonLiteralType.Number => "number", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static JsonLiteralType? ToEnum(string value) + { + return value switch + { + "boolean" => JsonLiteralType.Boolean, + "string" => JsonLiteralType.String, + "integer" => JsonLiteralType.Integer, + "number" => JsonLiteralType.Number, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.JsonSchemaProperty.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.JsonSchemaProperty.Json.g.cs new file mode 100644 index 0000000..be1dfe3 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.JsonSchemaProperty.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class JsonSchemaProperty + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.JsonSchemaProperty? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.JsonSchemaProperty), + jsonSerializerContext) as global::ElevenLabs.JsonSchemaProperty; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.JsonSchemaProperty? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.JsonSchemaProperty), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.JsonSchemaProperty; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.JsonSchemaProperty.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.JsonSchemaProperty.g.cs new file mode 100644 index 0000000..98e2c43 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.JsonSchemaProperty.g.cs @@ -0,0 +1,45 @@ + +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace ElevenLabs +{ + /// + /// + /// + public sealed partial class JsonSchemaProperty + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::ElevenLabs.JsonConverters.AnyOfJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::ElevenLabs.AnyOf Type { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public JsonSchemaProperty( + global::ElevenLabs.AnyOf type) + { + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public JsonSchemaProperty() + { + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.JsonSchemaPropertyType.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.JsonSchemaPropertyType.g.cs new file mode 100644 index 0000000..ab8366f --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.JsonSchemaPropertyType.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace ElevenLabs +{ + /// + /// + /// + public enum JsonSchemaPropertyType + { + /// + /// + /// + Object, + /// + /// + /// + Array, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class JsonSchemaPropertyTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this JsonSchemaPropertyType value) + { + return value switch + { + JsonSchemaPropertyType.Object => "object", + JsonSchemaPropertyType.Array => "array", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static JsonSchemaPropertyType? ToEnum(string value) + { + return value switch + { + "object" => JsonSchemaPropertyType.Object, + "array" => JsonSchemaPropertyType.Array, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.KnowledgeBaseLocator.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.KnowledgeBaseLocator.Json.g.cs new file mode 100644 index 0000000..f6dfe8d --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.KnowledgeBaseLocator.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class KnowledgeBaseLocator + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.KnowledgeBaseLocator? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.KnowledgeBaseLocator), + jsonSerializerContext) as global::ElevenLabs.KnowledgeBaseLocator; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.KnowledgeBaseLocator? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.KnowledgeBaseLocator), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.KnowledgeBaseLocator; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.KnowledgeBaseLocator.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.KnowledgeBaseLocator.g.cs new file mode 100644 index 0000000..220592f --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.KnowledgeBaseLocator.g.cs @@ -0,0 +1,63 @@ + +#nullable enable + +namespace ElevenLabs +{ + /// + /// + /// + public sealed partial class KnowledgeBaseLocator + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::ElevenLabs.JsonConverters.KnowledgeBaseLocatorTypeJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::ElevenLabs.KnowledgeBaseLocatorType Type { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Name { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Id { 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. + /// + /// + /// + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public KnowledgeBaseLocator( + global::ElevenLabs.KnowledgeBaseLocatorType type, + string name, + string id) + { + this.Type = type; + this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + } + + /// + /// Initializes a new instance of the class. + /// + public KnowledgeBaseLocator() + { + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.KnowledgeBaseLocatorType.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.KnowledgeBaseLocatorType.g.cs new file mode 100644 index 0000000..2a31bd7 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.KnowledgeBaseLocatorType.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace ElevenLabs +{ + /// + /// + /// + public enum KnowledgeBaseLocatorType + { + /// + /// + /// + File, + /// + /// + /// + Url, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class KnowledgeBaseLocatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this KnowledgeBaseLocatorType value) + { + return value switch + { + KnowledgeBaseLocatorType.File => "file", + KnowledgeBaseLocatorType.Url => "url", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static KnowledgeBaseLocatorType? ToEnum(string value) + { + return value switch + { + "file" => KnowledgeBaseLocatorType.File, + "url" => KnowledgeBaseLocatorType.Url, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.LLM.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.LLM.g.cs new file mode 100644 index 0000000..e33f0c9 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.LLM.g.cs @@ -0,0 +1,99 @@ + +#nullable enable + +namespace ElevenLabs +{ + /// + /// An enumeration. + /// + public enum LLM + { + /// + /// + /// + Gpt4oMini, + /// + /// + /// + Gpt4o, + /// + /// + /// + Gpt4, + /// + /// + /// + Gpt4Turbo, + /// + /// + /// + Gpt35Turbo, + /// + /// + /// + Gemini15Pro, + /// + /// + /// + Gemini15Flash, + /// + /// + /// + Gemini10Pro, + /// + /// + /// + Claude35Sonnet, + /// + /// + /// + Claude3Haiku, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class LLMExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this LLM value) + { + return value switch + { + LLM.Gpt4oMini => "gpt-4o-mini", + LLM.Gpt4o => "gpt-4o", + LLM.Gpt4 => "gpt-4", + LLM.Gpt4Turbo => "gpt-4-turbo", + LLM.Gpt35Turbo => "gpt-3.5-turbo", + LLM.Gemini15Pro => "gemini-1.5-pro", + LLM.Gemini15Flash => "gemini-1.5-flash", + LLM.Gemini10Pro => "gemini-1.0-pro", + LLM.Claude35Sonnet => "claude-3-5-sonnet", + LLM.Claude3Haiku => "claude-3-haiku", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static LLM? ToEnum(string value) + { + return value switch + { + "gpt-4o-mini" => LLM.Gpt4oMini, + "gpt-4o" => LLM.Gpt4o, + "gpt-4" => LLM.Gpt4, + "gpt-4-turbo" => LLM.Gpt4Turbo, + "gpt-3.5-turbo" => LLM.Gpt35Turbo, + "gemini-1.5-pro" => LLM.Gemini15Pro, + "gemini-1.5-flash" => LLM.Gemini15Flash, + "gemini-1.0-pro" => LLM.Gemini10Pro, + "claude-3-5-sonnet" => LLM.Claude35Sonnet, + "claude-3-haiku" => LLM.Claude3Haiku, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.LanguageResponseModel.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.LanguageResponseModel.Json.g.cs new file mode 100644 index 0000000..8ae3f53 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.LanguageResponseModel.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class LanguageResponseModel + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.LanguageResponseModel? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.LanguageResponseModel), + jsonSerializerContext) as global::ElevenLabs.LanguageResponseModel; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.LanguageResponseModel? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.LanguageResponseModel), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.LanguageResponseModel; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.LanguageResponseModel.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.LanguageResponseModel.g.cs index d2f26a2..e27c4aa 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.LanguageResponseModel.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.LanguageResponseModel.g.cs @@ -28,91 +28,25 @@ public sealed partial class LanguageResponseModel [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static global::ElevenLabs.LanguageResponseModel? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public LanguageResponseModel( + string languageId, + string name) { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.LanguageResponseModel), - jsonSerializerContext) as global::ElevenLabs.LanguageResponseModel; + this.LanguageId = languageId ?? throw new global::System.ArgumentNullException(nameof(languageId)); + this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); } /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.LanguageResponseModel? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public LanguageResponseModel() { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.LanguageResponseModel), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.LanguageResponseModel; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.LibraryVoiceResponseModel.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.LibraryVoiceResponseModel.Json.g.cs new file mode 100644 index 0000000..587afdd --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.LibraryVoiceResponseModel.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class LibraryVoiceResponseModel + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.LibraryVoiceResponseModel? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.LibraryVoiceResponseModel), + jsonSerializerContext) as global::ElevenLabs.LibraryVoiceResponseModel; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.LibraryVoiceResponseModel? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.LibraryVoiceResponseModel), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.LibraryVoiceResponseModel; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.LibraryVoiceResponseModel.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.LibraryVoiceResponseModel.g.cs index 6718190..0b9702e 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.LibraryVoiceResponseModel.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.LibraryVoiceResponseModel.g.cs @@ -198,91 +198,100 @@ public sealed partial class LibraryVoiceResponseModel [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ElevenLabs.LibraryVoiceResponseModel? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// Initializes a new instance of the class. + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public LibraryVoiceResponseModel( + string publicOwnerId, + string voiceId, + int dateUnix, + string name, + string accent, + string gender, + string age, + string descriptive, + string useCase, + global::ElevenLabs.LibraryVoiceResponseModelCategory category, + string language, + string description, + string previewUrl, + int usageCharacterCount1y, + int usageCharacterCount7d, + int playApiUsageCharacterCount1y, + int clonedByCount, + double rate, + bool freeUsersAllowed, + bool liveModerationEnabled, + bool featured, + int? noticePeriod, + string? instagramUsername, + string? twitterUsername, + string? youtubeUsername, + string? tiktokUsername, + string? imageUrl) { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.LibraryVoiceResponseModel), - jsonSerializerContext) as global::ElevenLabs.LibraryVoiceResponseModel; + this.PublicOwnerId = publicOwnerId ?? throw new global::System.ArgumentNullException(nameof(publicOwnerId)); + this.VoiceId = voiceId ?? throw new global::System.ArgumentNullException(nameof(voiceId)); + this.DateUnix = dateUnix; + this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); + this.Accent = accent ?? throw new global::System.ArgumentNullException(nameof(accent)); + this.Gender = gender ?? throw new global::System.ArgumentNullException(nameof(gender)); + this.Age = age ?? throw new global::System.ArgumentNullException(nameof(age)); + this.Descriptive = descriptive ?? throw new global::System.ArgumentNullException(nameof(descriptive)); + this.UseCase = useCase ?? throw new global::System.ArgumentNullException(nameof(useCase)); + this.Category = category; + this.Language = language ?? throw new global::System.ArgumentNullException(nameof(language)); + this.Description = description ?? throw new global::System.ArgumentNullException(nameof(description)); + this.PreviewUrl = previewUrl ?? throw new global::System.ArgumentNullException(nameof(previewUrl)); + this.UsageCharacterCount1y = usageCharacterCount1y; + this.UsageCharacterCount7d = usageCharacterCount7d; + this.PlayApiUsageCharacterCount1y = playApiUsageCharacterCount1y; + this.ClonedByCount = clonedByCount; + this.Rate = rate; + this.FreeUsersAllowed = freeUsersAllowed; + this.LiveModerationEnabled = liveModerationEnabled; + this.Featured = featured; + this.NoticePeriod = noticePeriod; + this.InstagramUsername = instagramUsername; + this.TwitterUsername = twitterUsername; + this.YoutubeUsername = youtubeUsername; + this.TiktokUsername = tiktokUsername; + this.ImageUrl = imageUrl; } /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.LibraryVoiceResponseModel? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public LibraryVoiceResponseModel() { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.LibraryVoiceResponseModel), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.LibraryVoiceResponseModel; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.LiteralJsonSchemaProperty.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.LiteralJsonSchemaProperty.Json.g.cs new file mode 100644 index 0000000..8da5923 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.LiteralJsonSchemaProperty.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class LiteralJsonSchemaProperty + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.LiteralJsonSchemaProperty? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.LiteralJsonSchemaProperty), + jsonSerializerContext) as global::ElevenLabs.LiteralJsonSchemaProperty; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.LiteralJsonSchemaProperty? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.LiteralJsonSchemaProperty), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.LiteralJsonSchemaProperty; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.LiteralJsonSchemaProperty.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.LiteralJsonSchemaProperty.g.cs new file mode 100644 index 0000000..b3aed8e --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.LiteralJsonSchemaProperty.g.cs @@ -0,0 +1,55 @@ + +#nullable enable + +namespace ElevenLabs +{ + /// + /// + /// + public sealed partial class LiteralJsonSchemaProperty + { + /// + /// JSON schema literal types. e.g. all Json types except nested objects and lists + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::ElevenLabs.JsonConverters.JsonLiteralTypeJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::ElevenLabs.JsonLiteralType Type { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("description")] + [global::System.Text.Json.Serialization.JsonRequired] + public required 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. + /// + /// + /// JSON schema literal types. e.g. all Json types except nested objects and lists + /// + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public LiteralJsonSchemaProperty( + global::ElevenLabs.JsonLiteralType type, + string description) + { + this.Type = type; + this.Description = description ?? throw new global::System.ArgumentNullException(nameof(description)); + } + + /// + /// Initializes a new instance of the class. + /// + public LiteralJsonSchemaProperty() + { + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ManualVerificationFileResponseModel.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ManualVerificationFileResponseModel.Json.g.cs new file mode 100644 index 0000000..97db765 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ManualVerificationFileResponseModel.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class ManualVerificationFileResponseModel + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.ManualVerificationFileResponseModel? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.ManualVerificationFileResponseModel), + jsonSerializerContext) as global::ElevenLabs.ManualVerificationFileResponseModel; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.ManualVerificationFileResponseModel? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.ManualVerificationFileResponseModel), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.ManualVerificationFileResponseModel; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ManualVerificationFileResponseModel.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ManualVerificationFileResponseModel.g.cs index 17c18cc..ba7a714 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ManualVerificationFileResponseModel.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ManualVerificationFileResponseModel.g.cs @@ -49,91 +49,34 @@ public sealed partial class ManualVerificationFileResponseModel [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static global::ElevenLabs.ManualVerificationFileResponseModel? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// + /// + /// + /// + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public ManualVerificationFileResponseModel( + string fileId, + string fileName, + string mimeType, + int sizeBytes, + int uploadDateUnix) { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.ManualVerificationFileResponseModel), - jsonSerializerContext) as global::ElevenLabs.ManualVerificationFileResponseModel; + this.FileId = fileId ?? throw new global::System.ArgumentNullException(nameof(fileId)); + this.FileName = fileName ?? throw new global::System.ArgumentNullException(nameof(fileName)); + this.MimeType = mimeType ?? throw new global::System.ArgumentNullException(nameof(mimeType)); + this.SizeBytes = sizeBytes; + this.UploadDateUnix = uploadDateUnix; } /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.ManualVerificationFileResponseModel? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public ManualVerificationFileResponseModel() { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.ManualVerificationFileResponseModel), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.ManualVerificationFileResponseModel; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ManualVerificationResponseModel.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ManualVerificationResponseModel.Json.g.cs new file mode 100644 index 0000000..0ddd5c6 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ManualVerificationResponseModel.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class ManualVerificationResponseModel + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.ManualVerificationResponseModel? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.ManualVerificationResponseModel), + jsonSerializerContext) as global::ElevenLabs.ManualVerificationResponseModel; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.ManualVerificationResponseModel? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.ManualVerificationResponseModel), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.ManualVerificationResponseModel; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ManualVerificationResponseModel.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ManualVerificationResponseModel.g.cs index 781e2ca..ce70d17 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ManualVerificationResponseModel.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ManualVerificationResponseModel.g.cs @@ -35,91 +35,28 @@ public sealed partial class ManualVerificationResponseModel [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static global::ElevenLabs.ManualVerificationResponseModel? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// + /// + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public ManualVerificationResponseModel( + string extraText, + int requestTimeUnix, + global::System.Collections.Generic.IList files) { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.ManualVerificationResponseModel), - jsonSerializerContext) as global::ElevenLabs.ManualVerificationResponseModel; + this.ExtraText = extraText ?? throw new global::System.ArgumentNullException(nameof(extraText)); + this.RequestTimeUnix = requestTimeUnix; + this.Files = files ?? throw new global::System.ArgumentNullException(nameof(files)); } /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.ManualVerificationResponseModel? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public ManualVerificationResponseModel() { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.ManualVerificationResponseModel), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.ManualVerificationResponseModel; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ModelRatesResponseModel.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ModelRatesResponseModel.Json.g.cs new file mode 100644 index 0000000..a5233bd --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ModelRatesResponseModel.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class ModelRatesResponseModel + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.ModelRatesResponseModel? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.ModelRatesResponseModel), + jsonSerializerContext) as global::ElevenLabs.ModelRatesResponseModel; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.ModelRatesResponseModel? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.ModelRatesResponseModel), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.ModelRatesResponseModel; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ModelRatesResponseModel.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ModelRatesResponseModel.g.cs index 22f3ccf..0d7cdc4 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ModelRatesResponseModel.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ModelRatesResponseModel.g.cs @@ -21,91 +21,22 @@ public sealed partial class ModelRatesResponseModel [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static global::ElevenLabs.ModelRatesResponseModel? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public ModelRatesResponseModel( + double characterCostMultiplier) { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.ModelRatesResponseModel), - jsonSerializerContext) as global::ElevenLabs.ModelRatesResponseModel; + this.CharacterCostMultiplier = characterCostMultiplier; } /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.ModelRatesResponseModel? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public ModelRatesResponseModel() { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.ModelRatesResponseModel), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.ModelRatesResponseModel; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ModelResponseModel.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ModelResponseModel.Json.g.cs new file mode 100644 index 0000000..8d9bd5e --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ModelResponseModel.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class ModelResponseModel + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.ModelResponseModel? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.ModelResponseModel), + jsonSerializerContext) as global::ElevenLabs.ModelResponseModel; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.ModelResponseModel? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.ModelResponseModel), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.ModelResponseModel; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ModelResponseModel.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ModelResponseModel.g.cs index 6f853b8..e3d623c 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ModelResponseModel.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ModelResponseModel.g.cs @@ -134,91 +134,70 @@ public sealed partial class ModelResponseModel [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ElevenLabs.ModelResponseModel? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// Initializes a new instance of the class. + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public ModelResponseModel( + string modelId, + string name, + bool canBeFinetuned, + bool canDoTextToSpeech, + bool canDoVoiceConversion, + bool canUseStyle, + bool canUseSpeakerBoost, + bool servesProVoices, + double tokenCostFactor, + string description, + bool requiresAlphaAccess, + int maxCharactersRequestFreeUser, + int maxCharactersRequestSubscribedUser, + int maximumTextLengthPerRequest, + global::System.Collections.Generic.IList languages, + global::ElevenLabs.ModelRatesResponseModel modelRates, + global::ElevenLabs.ModelResponseModelConcurrencyGroup concurrencyGroup) { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.ModelResponseModel), - jsonSerializerContext) as global::ElevenLabs.ModelResponseModel; + this.ModelId = modelId ?? throw new global::System.ArgumentNullException(nameof(modelId)); + this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); + this.CanBeFinetuned = canBeFinetuned; + this.CanDoTextToSpeech = canDoTextToSpeech; + this.CanDoVoiceConversion = canDoVoiceConversion; + this.CanUseStyle = canUseStyle; + this.CanUseSpeakerBoost = canUseSpeakerBoost; + this.ServesProVoices = servesProVoices; + this.TokenCostFactor = tokenCostFactor; + this.Description = description ?? throw new global::System.ArgumentNullException(nameof(description)); + this.RequiresAlphaAccess = requiresAlphaAccess; + this.MaxCharactersRequestFreeUser = maxCharactersRequestFreeUser; + this.MaxCharactersRequestSubscribedUser = maxCharactersRequestSubscribedUser; + this.MaximumTextLengthPerRequest = maximumTextLengthPerRequest; + this.Languages = languages ?? throw new global::System.ArgumentNullException(nameof(languages)); + this.ModelRates = modelRates ?? throw new global::System.ArgumentNullException(nameof(modelRates)); + this.ConcurrencyGroup = concurrencyGroup; } /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.ModelResponseModel? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public ModelResponseModel() { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.ModelResponseModel), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.ModelResponseModel; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ObjectJsonSchemaProperty.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ObjectJsonSchemaProperty.Json.g.cs new file mode 100644 index 0000000..5fedf95 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ObjectJsonSchemaProperty.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class ObjectJsonSchemaProperty + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.ObjectJsonSchemaProperty? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.ObjectJsonSchemaProperty), + jsonSerializerContext) as global::ElevenLabs.ObjectJsonSchemaProperty; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.ObjectJsonSchemaProperty? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.ObjectJsonSchemaProperty), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.ObjectJsonSchemaProperty; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ObjectJsonSchemaProperty.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ObjectJsonSchemaProperty.g.cs new file mode 100644 index 0000000..a736e13 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ObjectJsonSchemaProperty.g.cs @@ -0,0 +1,71 @@ + +#nullable enable + +namespace ElevenLabs +{ + /// + /// + /// + public sealed partial class ObjectJsonSchemaProperty + { + /// + /// Default Value: object + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::ElevenLabs.JsonConverters.ObjectJsonSchemaPropertyTypeJsonConverter))] + public global::ElevenLabs.ObjectJsonSchemaPropertyType? Type { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("properties")] + public global::System.Collections.Generic.Dictionary? Properties { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("required")] + public global::System.Collections.Generic.IList? Required { get; set; } + + /// + /// + /// + [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. + /// + /// + /// Default Value: object + /// + /// + /// + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public ObjectJsonSchemaProperty( + global::ElevenLabs.ObjectJsonSchemaPropertyType? type, + global::System.Collections.Generic.Dictionary? properties, + global::System.Collections.Generic.IList? required, + string? description) + { + this.Type = type; + this.Properties = properties; + this.Required = required; + this.Description = description; + } + + /// + /// Initializes a new instance of the class. + /// + public ObjectJsonSchemaProperty() + { + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ObjectJsonSchemaPropertyProperties.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ObjectJsonSchemaPropertyProperties.Json.g.cs new file mode 100644 index 0000000..55ac450 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ObjectJsonSchemaPropertyProperties.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class ObjectJsonSchemaPropertyProperties + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.ObjectJsonSchemaPropertyProperties? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.ObjectJsonSchemaPropertyProperties), + jsonSerializerContext) as global::ElevenLabs.ObjectJsonSchemaPropertyProperties; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.ObjectJsonSchemaPropertyProperties? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.ObjectJsonSchemaPropertyProperties), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.ObjectJsonSchemaPropertyProperties; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ObjectJsonSchemaPropertyProperties.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ObjectJsonSchemaPropertyProperties.g.cs new file mode 100644 index 0000000..96d841f --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ObjectJsonSchemaPropertyProperties.g.cs @@ -0,0 +1,27 @@ + +#nullable enable + +namespace ElevenLabs +{ + /// + /// + /// + public sealed partial class ObjectJsonSchemaPropertyProperties + { + + /// + /// Additional properties that are not explicitly defined 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. + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public ObjectJsonSchemaPropertyProperties( + ) + { + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ObjectJsonSchemaPropertyType.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ObjectJsonSchemaPropertyType.g.cs new file mode 100644 index 0000000..5a83879 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ObjectJsonSchemaPropertyType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace ElevenLabs +{ + /// + /// Default Value: object + /// + public enum ObjectJsonSchemaPropertyType + { + /// + /// + /// + Object, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ObjectJsonSchemaPropertyTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ObjectJsonSchemaPropertyType value) + { + return value switch + { + ObjectJsonSchemaPropertyType.Object => "object", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ObjectJsonSchemaPropertyType? ToEnum(string value) + { + return value switch + { + "object" => ObjectJsonSchemaPropertyType.Object, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.OrbAvatar.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.OrbAvatar.Json.g.cs new file mode 100644 index 0000000..b6bd539 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.OrbAvatar.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class OrbAvatar + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.OrbAvatar? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.OrbAvatar), + jsonSerializerContext) as global::ElevenLabs.OrbAvatar; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.OrbAvatar? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.OrbAvatar), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.OrbAvatar; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.OrbAvatar.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.OrbAvatar.g.cs new file mode 100644 index 0000000..23eb718 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.OrbAvatar.g.cs @@ -0,0 +1,66 @@ + +#nullable enable + +namespace ElevenLabs +{ + /// + /// + /// + public sealed partial class OrbAvatar + { + /// + /// Default Value: orb + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::ElevenLabs.JsonConverters.OrbAvatarTypeJsonConverter))] + public global::ElevenLabs.OrbAvatarType? Type { get; set; } + + /// + /// Default Value: #2792dc + /// + [global::System.Text.Json.Serialization.JsonPropertyName("color_1")] + public string? Color1 { get; set; } + + /// + /// Default Value: #9ce6e6 + /// + [global::System.Text.Json.Serialization.JsonPropertyName("color_2")] + public string? Color2 { 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: orb + /// + /// + /// Default Value: #2792dc + /// + /// + /// Default Value: #9ce6e6 + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public OrbAvatar( + global::ElevenLabs.OrbAvatarType? type, + string? color1, + string? color2) + { + this.Type = type; + this.Color1 = color1; + this.Color2 = color2; + } + + /// + /// Initializes a new instance of the class. + /// + public OrbAvatar() + { + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.OrbAvatarType.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.OrbAvatarType.g.cs new file mode 100644 index 0000000..ca97495 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.OrbAvatarType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace ElevenLabs +{ + /// + /// Default Value: orb + /// + public enum OrbAvatarType + { + /// + /// + /// + Orb, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class OrbAvatarTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this OrbAvatarType value) + { + return value switch + { + OrbAvatarType.Orb => "orb", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static OrbAvatarType? ToEnum(string value) + { + return value switch + { + "orb" => OrbAvatarType.Orb, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.PostAgentAvatarResponseModel.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.PostAgentAvatarResponseModel.Json.g.cs new file mode 100644 index 0000000..660d0d4 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.PostAgentAvatarResponseModel.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class PostAgentAvatarResponseModel + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.PostAgentAvatarResponseModel? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.PostAgentAvatarResponseModel), + jsonSerializerContext) as global::ElevenLabs.PostAgentAvatarResponseModel; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.PostAgentAvatarResponseModel? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.PostAgentAvatarResponseModel), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.PostAgentAvatarResponseModel; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.PostAgentAvatarResponseModel.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.PostAgentAvatarResponseModel.g.cs new file mode 100644 index 0000000..47b5caf --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.PostAgentAvatarResponseModel.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace ElevenLabs +{ + /// + /// + /// + public sealed partial class PostAgentAvatarResponseModel + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("agent_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string AgentId { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("avatar_url")] + public string? AvatarUrl { 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. + /// + /// + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public PostAgentAvatarResponseModel( + string agentId, + string? avatarUrl) + { + this.AgentId = agentId ?? throw new global::System.ArgumentNullException(nameof(agentId)); + this.AvatarUrl = avatarUrl; + } + + /// + /// Initializes a new instance of the class. + /// + public PostAgentAvatarResponseModel() + { + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ProfilePageResponseModel.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ProfilePageResponseModel.Json.g.cs new file mode 100644 index 0000000..5255a4c --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ProfilePageResponseModel.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class ProfilePageResponseModel + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.ProfilePageResponseModel? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.ProfilePageResponseModel), + jsonSerializerContext) as global::ElevenLabs.ProfilePageResponseModel; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.ProfilePageResponseModel? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.ProfilePageResponseModel), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.ProfilePageResponseModel; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ProfilePageResponseModel.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ProfilePageResponseModel.g.cs index bf6f3e7..2aa25ff 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ProfilePageResponseModel.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ProfilePageResponseModel.g.cs @@ -49,91 +49,34 @@ public sealed partial class ProfilePageResponseModel [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static global::ElevenLabs.ProfilePageResponseModel? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// + /// + /// + /// + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public ProfilePageResponseModel( + string handle, + string publicUserId, + string name, + string bio, + string profilePicture) { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.ProfilePageResponseModel), - jsonSerializerContext) as global::ElevenLabs.ProfilePageResponseModel; + this.Handle = handle ?? throw new global::System.ArgumentNullException(nameof(handle)); + this.PublicUserId = publicUserId ?? throw new global::System.ArgumentNullException(nameof(publicUserId)); + this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); + this.Bio = bio ?? throw new global::System.ArgumentNullException(nameof(bio)); + this.ProfilePicture = profilePicture ?? throw new global::System.ArgumentNullException(nameof(profilePicture)); } /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.ProfilePageResponseModel? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public ProfilePageResponseModel() { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.ProfilePageResponseModel), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.ProfilePageResponseModel; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ProjectExtendedResponseModel.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ProjectExtendedResponseModel.Json.g.cs new file mode 100644 index 0000000..38cc40f --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ProjectExtendedResponseModel.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class ProjectExtendedResponseModel + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.ProjectExtendedResponseModel? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.ProjectExtendedResponseModel), + jsonSerializerContext) as global::ElevenLabs.ProjectExtendedResponseModel; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.ProjectExtendedResponseModel? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.ProjectExtendedResponseModel), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.ProjectExtendedResponseModel; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ProjectExtendedResponseModel.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ProjectExtendedResponseModel.g.cs index 6e7d3dd..810d845 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ProjectExtendedResponseModel.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ProjectExtendedResponseModel.g.cs @@ -188,91 +188,97 @@ public sealed partial class ProjectExtendedResponseModel [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ElevenLabs.ProjectExtendedResponseModel? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// Initializes a new instance of the class. + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public ProjectExtendedResponseModel( + string projectId, + string name, + int createDateUnix, + string defaultTitleVoiceId, + string defaultParagraphVoiceId, + string defaultModelId, + bool canBeDownloaded, + bool volumeNormalization, + global::ElevenLabs.ProjectExtendedResponseModelState state, + global::ElevenLabs.ProjectExtendedResponseModelAccessLevel accessLevel, + global::ElevenLabs.ProjectExtendedResponseModelQualityPreset qualityPreset, + global::System.Collections.Generic.IList chapters, + global::System.Collections.Generic.IList pronunciationDictionaryVersions, + object experimental, + int? lastConversionDateUnix, + string? title, + string? author, + string? description, + global::System.Collections.Generic.IList? genres, + string? coverImageUrl, + global::ElevenLabs.ProjectExtendedResponseModelTargetAudience? targetAudience, + string? language, + string? contentType, + string? originalPublicationDate, + bool? matureContent, + string? isbnNumber) { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.ProjectExtendedResponseModel), - jsonSerializerContext) as global::ElevenLabs.ProjectExtendedResponseModel; + this.ProjectId = projectId ?? throw new global::System.ArgumentNullException(nameof(projectId)); + this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); + this.CreateDateUnix = createDateUnix; + this.DefaultTitleVoiceId = defaultTitleVoiceId ?? throw new global::System.ArgumentNullException(nameof(defaultTitleVoiceId)); + this.DefaultParagraphVoiceId = defaultParagraphVoiceId ?? throw new global::System.ArgumentNullException(nameof(defaultParagraphVoiceId)); + this.DefaultModelId = defaultModelId ?? throw new global::System.ArgumentNullException(nameof(defaultModelId)); + this.CanBeDownloaded = canBeDownloaded; + this.VolumeNormalization = volumeNormalization; + this.State = state; + this.AccessLevel = accessLevel; + this.QualityPreset = qualityPreset; + this.Chapters = chapters ?? throw new global::System.ArgumentNullException(nameof(chapters)); + this.PronunciationDictionaryVersions = pronunciationDictionaryVersions ?? throw new global::System.ArgumentNullException(nameof(pronunciationDictionaryVersions)); + this.Experimental = experimental ?? throw new global::System.ArgumentNullException(nameof(experimental)); + this.LastConversionDateUnix = lastConversionDateUnix; + this.Title = title; + this.Author = author; + this.Description = description; + this.Genres = genres; + this.CoverImageUrl = coverImageUrl; + this.TargetAudience = targetAudience; + this.Language = language; + this.ContentType = contentType; + this.OriginalPublicationDate = originalPublicationDate; + this.MatureContent = matureContent; + this.IsbnNumber = isbnNumber; } /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.ProjectExtendedResponseModel? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public ProjectExtendedResponseModel() { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.ProjectExtendedResponseModel), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.ProjectExtendedResponseModel; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ProjectExtendedResponseModelExperimental.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ProjectExtendedResponseModelExperimental.Json.g.cs new file mode 100644 index 0000000..8f02c3a --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ProjectExtendedResponseModelExperimental.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class ProjectExtendedResponseModelExperimental + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.ProjectExtendedResponseModelExperimental? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.ProjectExtendedResponseModelExperimental), + jsonSerializerContext) as global::ElevenLabs.ProjectExtendedResponseModelExperimental; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.ProjectExtendedResponseModelExperimental? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.ProjectExtendedResponseModelExperimental), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.ProjectExtendedResponseModelExperimental; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ProjectExtendedResponseModelExperimental.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ProjectExtendedResponseModelExperimental.g.cs index daa0bba..b635d93 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ProjectExtendedResponseModelExperimental.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ProjectExtendedResponseModelExperimental.g.cs @@ -15,91 +15,13 @@ public sealed partial class ProjectExtendedResponseModelExperimental [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static global::ElevenLabs.ProjectExtendedResponseModelExperimental? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public ProjectExtendedResponseModelExperimental( + ) { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.ProjectExtendedResponseModelExperimental), - jsonSerializerContext) as global::ElevenLabs.ProjectExtendedResponseModelExperimental; } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.ProjectExtendedResponseModelExperimental? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.ProjectExtendedResponseModelExperimental), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.ProjectExtendedResponseModelExperimental; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ProjectResponseModel.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ProjectResponseModel.Json.g.cs new file mode 100644 index 0000000..ff3ca21 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ProjectResponseModel.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class ProjectResponseModel + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.ProjectResponseModel? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.ProjectResponseModel), + jsonSerializerContext) as global::ElevenLabs.ProjectResponseModel; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.ProjectResponseModel? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.ProjectResponseModel), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.ProjectResponseModel; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ProjectResponseModel.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ProjectResponseModel.g.cs index dcab82c..05041b4 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ProjectResponseModel.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ProjectResponseModel.g.cs @@ -159,91 +159,85 @@ public sealed partial class ProjectResponseModel [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ElevenLabs.ProjectResponseModel? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// Initializes a new instance of the class. + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public ProjectResponseModel( + string projectId, + string name, + int createDateUnix, + string defaultTitleVoiceId, + string defaultParagraphVoiceId, + string defaultModelId, + bool canBeDownloaded, + bool volumeNormalization, + global::ElevenLabs.ProjectResponseModelState state, + global::ElevenLabs.ProjectResponseModelAccessLevel accessLevel, + int? lastConversionDateUnix, + string? title, + string? author, + string? description, + global::System.Collections.Generic.IList? genres, + string? coverImageUrl, + global::ElevenLabs.ProjectResponseModelTargetAudience? targetAudience, + string? language, + string? contentType, + string? originalPublicationDate, + bool? matureContent, + string? isbnNumber) { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.ProjectResponseModel), - jsonSerializerContext) as global::ElevenLabs.ProjectResponseModel; + this.ProjectId = projectId ?? throw new global::System.ArgumentNullException(nameof(projectId)); + this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); + this.CreateDateUnix = createDateUnix; + this.DefaultTitleVoiceId = defaultTitleVoiceId ?? throw new global::System.ArgumentNullException(nameof(defaultTitleVoiceId)); + this.DefaultParagraphVoiceId = defaultParagraphVoiceId ?? throw new global::System.ArgumentNullException(nameof(defaultParagraphVoiceId)); + this.DefaultModelId = defaultModelId ?? throw new global::System.ArgumentNullException(nameof(defaultModelId)); + this.CanBeDownloaded = canBeDownloaded; + this.VolumeNormalization = volumeNormalization; + this.State = state; + this.AccessLevel = accessLevel; + this.LastConversionDateUnix = lastConversionDateUnix; + this.Title = title; + this.Author = author; + this.Description = description; + this.Genres = genres; + this.CoverImageUrl = coverImageUrl; + this.TargetAudience = targetAudience; + this.Language = language; + this.ContentType = contentType; + this.OriginalPublicationDate = originalPublicationDate; + this.MatureContent = matureContent; + this.IsbnNumber = isbnNumber; } /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.ProjectResponseModel? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public ProjectResponseModel() { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.ProjectResponseModel), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.ProjectResponseModel; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ProjectSnapshotResponseModel.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ProjectSnapshotResponseModel.Json.g.cs new file mode 100644 index 0000000..8b11942 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ProjectSnapshotResponseModel.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class ProjectSnapshotResponseModel + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.ProjectSnapshotResponseModel? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.ProjectSnapshotResponseModel), + jsonSerializerContext) as global::ElevenLabs.ProjectSnapshotResponseModel; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.ProjectSnapshotResponseModel? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.ProjectSnapshotResponseModel), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.ProjectSnapshotResponseModel; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ProjectSnapshotResponseModel.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ProjectSnapshotResponseModel.g.cs index 534165b..1bd09f2 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ProjectSnapshotResponseModel.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ProjectSnapshotResponseModel.g.cs @@ -54,91 +54,37 @@ public sealed partial class ProjectSnapshotResponseModel [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static global::ElevenLabs.ProjectSnapshotResponseModel? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// + /// + /// + /// + /// + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public ProjectSnapshotResponseModel( + string projectSnapshotId, + string projectId, + int createdAtUnix, + string name, + global::ElevenLabs.ProjectSnapshotUploadResponseModel? audioUpload, + global::ElevenLabs.ProjectSnapshotUploadResponseModel? zipUpload) { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.ProjectSnapshotResponseModel), - jsonSerializerContext) as global::ElevenLabs.ProjectSnapshotResponseModel; + this.ProjectSnapshotId = projectSnapshotId ?? throw new global::System.ArgumentNullException(nameof(projectSnapshotId)); + this.ProjectId = projectId ?? throw new global::System.ArgumentNullException(nameof(projectId)); + this.CreatedAtUnix = createdAtUnix; + this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); + this.AudioUpload = audioUpload; + this.ZipUpload = zipUpload; } /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.ProjectSnapshotResponseModel? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public ProjectSnapshotResponseModel() { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.ProjectSnapshotResponseModel), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.ProjectSnapshotResponseModel; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ProjectSnapshotUploadResponseModel.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ProjectSnapshotUploadResponseModel.Json.g.cs new file mode 100644 index 0000000..d8a0bca --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ProjectSnapshotUploadResponseModel.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class ProjectSnapshotUploadResponseModel + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.ProjectSnapshotUploadResponseModel? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.ProjectSnapshotUploadResponseModel), + jsonSerializerContext) as global::ElevenLabs.ProjectSnapshotUploadResponseModel; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.ProjectSnapshotUploadResponseModel? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.ProjectSnapshotUploadResponseModel), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.ProjectSnapshotUploadResponseModel; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ProjectSnapshotUploadResponseModel.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ProjectSnapshotUploadResponseModel.g.cs index 141748a..3914fb2 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ProjectSnapshotUploadResponseModel.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ProjectSnapshotUploadResponseModel.g.cs @@ -28,91 +28,25 @@ public sealed partial class ProjectSnapshotUploadResponseModel [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static global::ElevenLabs.ProjectSnapshotUploadResponseModel? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public ProjectSnapshotUploadResponseModel( + global::ElevenLabs.ProjectSnapshotUploadResponseModelStatus status, + bool? acxVolumeNormalization) { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.ProjectSnapshotUploadResponseModel), - jsonSerializerContext) as global::ElevenLabs.ProjectSnapshotUploadResponseModel; + this.Status = status; + this.AcxVolumeNormalization = acxVolumeNormalization; } /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.ProjectSnapshotUploadResponseModel? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public ProjectSnapshotUploadResponseModel() { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.ProjectSnapshotUploadResponseModel), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.ProjectSnapshotUploadResponseModel; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ProjectSnapshotsResponseModel.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ProjectSnapshotsResponseModel.Json.g.cs new file mode 100644 index 0000000..026418b --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ProjectSnapshotsResponseModel.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class ProjectSnapshotsResponseModel + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.ProjectSnapshotsResponseModel? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.ProjectSnapshotsResponseModel), + jsonSerializerContext) as global::ElevenLabs.ProjectSnapshotsResponseModel; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.ProjectSnapshotsResponseModel? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.ProjectSnapshotsResponseModel), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.ProjectSnapshotsResponseModel; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ProjectSnapshotsResponseModel.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ProjectSnapshotsResponseModel.g.cs index a975057..fd4c65d 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ProjectSnapshotsResponseModel.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ProjectSnapshotsResponseModel.g.cs @@ -21,91 +21,22 @@ public sealed partial class ProjectSnapshotsResponseModel [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static global::ElevenLabs.ProjectSnapshotsResponseModel? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public ProjectSnapshotsResponseModel( + global::System.Collections.Generic.IList snapshots) { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.ProjectSnapshotsResponseModel), - jsonSerializerContext) as global::ElevenLabs.ProjectSnapshotsResponseModel; + this.Snapshots = snapshots ?? throw new global::System.ArgumentNullException(nameof(snapshots)); } /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.ProjectSnapshotsResponseModel? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public ProjectSnapshotsResponseModel() { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.ProjectSnapshotsResponseModel), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.ProjectSnapshotsResponseModel; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.PromptAgent.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.PromptAgent.Json.g.cs new file mode 100644 index 0000000..1b6fcb2 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.PromptAgent.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class PromptAgent + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.PromptAgent? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.PromptAgent), + jsonSerializerContext) as global::ElevenLabs.PromptAgent; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.PromptAgent? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.PromptAgent), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.PromptAgent; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.PromptAgent.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.PromptAgent.g.cs new file mode 100644 index 0000000..c637801 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.PromptAgent.g.cs @@ -0,0 +1,94 @@ + +#nullable enable + +namespace ElevenLabs +{ + /// + /// + /// + public sealed partial class PromptAgent + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("prompt")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Prompt { get; set; } + + /// + /// Default Value: gemini-1.5-flash + /// + [global::System.Text.Json.Serialization.JsonPropertyName("llm")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::ElevenLabs.JsonConverters.LLMJsonConverter))] + public global::ElevenLabs.LLM? Llm { get; set; } + + /// + /// Default Value: 0 + /// + [global::System.Text.Json.Serialization.JsonPropertyName("temperature")] + public double? Temperature { get; set; } + + /// + /// Default Value: -1 + /// + [global::System.Text.Json.Serialization.JsonPropertyName("max_tokens")] + public int? MaxTokens { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("tools")] + public global::System.Collections.Generic.IList? Tools { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("knowledge_base")] + public global::System.Collections.Generic.IList? KnowledgeBase { 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: gemini-1.5-flash + /// + /// + /// Default Value: 0 + /// + /// + /// Default Value: -1 + /// + /// + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public PromptAgent( + string prompt, + global::ElevenLabs.LLM? llm, + double? temperature, + int? maxTokens, + global::System.Collections.Generic.IList? tools, + global::System.Collections.Generic.IList? knowledgeBase) + { + this.Prompt = prompt ?? throw new global::System.ArgumentNullException(nameof(prompt)); + this.Llm = llm; + this.Temperature = temperature; + this.MaxTokens = maxTokens; + this.Tools = tools; + this.KnowledgeBase = knowledgeBase; + } + + /// + /// Initializes a new instance of the class. + /// + public PromptAgent() + { + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.PromptAgentToolConfig.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.PromptAgentToolConfig.Json.g.cs new file mode 100644 index 0000000..1686390 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.PromptAgentToolConfig.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class PromptAgentToolConfig + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.PromptAgentToolConfig? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.PromptAgentToolConfig), + jsonSerializerContext) as global::ElevenLabs.PromptAgentToolConfig; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.PromptAgentToolConfig? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.PromptAgentToolConfig), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.PromptAgentToolConfig; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.PromptAgentToolConfig.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.PromptAgentToolConfig.g.cs new file mode 100644 index 0000000..8838fee --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.PromptAgentToolConfig.g.cs @@ -0,0 +1,86 @@ + +#nullable enable + +namespace ElevenLabs +{ + /// + /// A configuration for a tool/function that the agent can use over the course of the conversation.
+ /// Initially we only support webhooks, but it is likely we will want to support more types in the future.
+ /// TODO can we include more of these best practises
+ /// https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal/function-calling#best-practices + ///
+ public sealed partial class PromptAgentToolConfig + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::ElevenLabs.JsonConverters.PromptAgentToolConfigTypeJsonConverter))] + public global::ElevenLabs.PromptAgentToolConfigType Type { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Name { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("description")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Description { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("placeholder_statement")] + public string? PlaceholderStatement { get; set; } + + /// + /// Configuration for a webhook that will be called by an LLM tool. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("api_schema")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::ElevenLabs.ToolWebhookConfig ApiSchema { 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. + /// + /// + /// + /// + /// + /// + /// Configuration for a webhook that will be called by an LLM tool. + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public PromptAgentToolConfig( + string name, + string description, + global::ElevenLabs.ToolWebhookConfig apiSchema, + global::ElevenLabs.PromptAgentToolConfigType type, + string? placeholderStatement) + { + this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); + this.Description = description ?? throw new global::System.ArgumentNullException(nameof(description)); + this.ApiSchema = apiSchema ?? throw new global::System.ArgumentNullException(nameof(apiSchema)); + this.Type = type; + this.PlaceholderStatement = placeholderStatement; + } + + /// + /// Initializes a new instance of the class. + /// + public PromptAgentToolConfig() + { + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.PromptAgentToolConfigType.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.PromptAgentToolConfigType.g.cs new file mode 100644 index 0000000..d725fa2 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.PromptAgentToolConfigType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace ElevenLabs +{ + /// + /// + /// + public enum PromptAgentToolConfigType + { + /// + /// + /// + Webhook, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class PromptAgentToolConfigTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this PromptAgentToolConfigType value) + { + return value switch + { + PromptAgentToolConfigType.Webhook => "webhook", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static PromptAgentToolConfigType? ToEnum(string value) + { + return value switch + { + "webhook" => PromptAgentToolConfigType.Webhook, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.PromptEvaluationCriteria.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.PromptEvaluationCriteria.Json.g.cs new file mode 100644 index 0000000..d7cecb2 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.PromptEvaluationCriteria.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class PromptEvaluationCriteria + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.PromptEvaluationCriteria? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.PromptEvaluationCriteria), + jsonSerializerContext) as global::ElevenLabs.PromptEvaluationCriteria; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.PromptEvaluationCriteria? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.PromptEvaluationCriteria), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.PromptEvaluationCriteria; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.PromptEvaluationCriteria.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.PromptEvaluationCriteria.g.cs new file mode 100644 index 0000000..20a1e68 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.PromptEvaluationCriteria.g.cs @@ -0,0 +1,73 @@ + +#nullable enable + +namespace ElevenLabs +{ + /// + /// An evaluation using the transcript and a prompt for a yes/no achieved answer + /// + public sealed partial class PromptEvaluationCriteria + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Id { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// Default Value: prompt + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::ElevenLabs.JsonConverters.PromptEvaluationCriteriaTypeJsonConverter))] + public global::ElevenLabs.PromptEvaluationCriteriaType? Type { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("conversation_goal_prompt")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ConversationGoalPrompt { 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: prompt + /// + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public PromptEvaluationCriteria( + string id, + string conversationGoalPrompt, + string? name, + global::ElevenLabs.PromptEvaluationCriteriaType? type) + { + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + this.ConversationGoalPrompt = conversationGoalPrompt ?? throw new global::System.ArgumentNullException(nameof(conversationGoalPrompt)); + this.Name = name; + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public PromptEvaluationCriteria() + { + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.PromptEvaluationCriteriaType.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.PromptEvaluationCriteriaType.g.cs new file mode 100644 index 0000000..ed8e5ab --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.PromptEvaluationCriteriaType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace ElevenLabs +{ + /// + /// Default Value: prompt + /// + public enum PromptEvaluationCriteriaType + { + /// + /// + /// + Prompt, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class PromptEvaluationCriteriaTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this PromptEvaluationCriteriaType value) + { + return value switch + { + PromptEvaluationCriteriaType.Prompt => "prompt", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static PromptEvaluationCriteriaType? ToEnum(string value) + { + return value switch + { + "prompt" => PromptEvaluationCriteriaType.Prompt, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.PronunciationDictionaryAliasRuleRequestModel.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.PronunciationDictionaryAliasRuleRequestModel.Json.g.cs new file mode 100644 index 0000000..15c2d91 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.PronunciationDictionaryAliasRuleRequestModel.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class PronunciationDictionaryAliasRuleRequestModel + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.PronunciationDictionaryAliasRuleRequestModel? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.PronunciationDictionaryAliasRuleRequestModel), + jsonSerializerContext) as global::ElevenLabs.PronunciationDictionaryAliasRuleRequestModel; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.PronunciationDictionaryAliasRuleRequestModel? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.PronunciationDictionaryAliasRuleRequestModel), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.PronunciationDictionaryAliasRuleRequestModel; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.PronunciationDictionaryAliasRuleRequestModel.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.PronunciationDictionaryAliasRuleRequestModel.g.cs index 07c46ae..6774b75 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.PronunciationDictionaryAliasRuleRequestModel.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.PronunciationDictionaryAliasRuleRequestModel.g.cs @@ -35,91 +35,28 @@ public sealed partial class PronunciationDictionaryAliasRuleRequestModel [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static global::ElevenLabs.PronunciationDictionaryAliasRuleRequestModel? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// + /// + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public PronunciationDictionaryAliasRuleRequestModel( + string stringToReplace, + string alias, + global::ElevenLabs.PronunciationDictionaryAliasRuleRequestModelType type) { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.PronunciationDictionaryAliasRuleRequestModel), - jsonSerializerContext) as global::ElevenLabs.PronunciationDictionaryAliasRuleRequestModel; + this.StringToReplace = stringToReplace ?? throw new global::System.ArgumentNullException(nameof(stringToReplace)); + this.Alias = alias ?? throw new global::System.ArgumentNullException(nameof(alias)); + this.Type = type; } /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.PronunciationDictionaryAliasRuleRequestModel? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public PronunciationDictionaryAliasRuleRequestModel() { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.PronunciationDictionaryAliasRuleRequestModel), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.PronunciationDictionaryAliasRuleRequestModel; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.PronunciationDictionaryPhonemeRuleRequestModel.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.PronunciationDictionaryPhonemeRuleRequestModel.Json.g.cs new file mode 100644 index 0000000..1813d15 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.PronunciationDictionaryPhonemeRuleRequestModel.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class PronunciationDictionaryPhonemeRuleRequestModel + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.PronunciationDictionaryPhonemeRuleRequestModel? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.PronunciationDictionaryPhonemeRuleRequestModel), + jsonSerializerContext) as global::ElevenLabs.PronunciationDictionaryPhonemeRuleRequestModel; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.PronunciationDictionaryPhonemeRuleRequestModel? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.PronunciationDictionaryPhonemeRuleRequestModel), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.PronunciationDictionaryPhonemeRuleRequestModel; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.PronunciationDictionaryPhonemeRuleRequestModel.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.PronunciationDictionaryPhonemeRuleRequestModel.g.cs index 9d54442..b756f0a 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.PronunciationDictionaryPhonemeRuleRequestModel.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.PronunciationDictionaryPhonemeRuleRequestModel.g.cs @@ -42,91 +42,31 @@ public sealed partial class PronunciationDictionaryPhonemeRuleRequestModel [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static global::ElevenLabs.PronunciationDictionaryPhonemeRuleRequestModel? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// + /// + /// + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public PronunciationDictionaryPhonemeRuleRequestModel( + string stringToReplace, + string phoneme, + string alphabet, + global::ElevenLabs.PronunciationDictionaryPhonemeRuleRequestModelType type) { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.PronunciationDictionaryPhonemeRuleRequestModel), - jsonSerializerContext) as global::ElevenLabs.PronunciationDictionaryPhonemeRuleRequestModel; + this.StringToReplace = stringToReplace ?? throw new global::System.ArgumentNullException(nameof(stringToReplace)); + this.Phoneme = phoneme ?? throw new global::System.ArgumentNullException(nameof(phoneme)); + this.Alphabet = alphabet ?? throw new global::System.ArgumentNullException(nameof(alphabet)); + this.Type = type; } /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.PronunciationDictionaryPhonemeRuleRequestModel? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public PronunciationDictionaryPhonemeRuleRequestModel() { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.PronunciationDictionaryPhonemeRuleRequestModel), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.PronunciationDictionaryPhonemeRuleRequestModel; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.PronunciationDictionaryVersionLocatorDBModel.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.PronunciationDictionaryVersionLocatorDBModel.Json.g.cs new file mode 100644 index 0000000..76c39f4 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.PronunciationDictionaryVersionLocatorDBModel.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class PronunciationDictionaryVersionLocatorDBModel + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.PronunciationDictionaryVersionLocatorDBModel? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.PronunciationDictionaryVersionLocatorDBModel), + jsonSerializerContext) as global::ElevenLabs.PronunciationDictionaryVersionLocatorDBModel; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.PronunciationDictionaryVersionLocatorDBModel? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.PronunciationDictionaryVersionLocatorDBModel), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.PronunciationDictionaryVersionLocatorDBModel; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.PronunciationDictionaryVersionLocatorDBModel.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.PronunciationDictionaryVersionLocatorDBModel.g.cs index da0262c..d00da87 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.PronunciationDictionaryVersionLocatorDBModel.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.PronunciationDictionaryVersionLocatorDBModel.g.cs @@ -28,91 +28,25 @@ public sealed partial class PronunciationDictionaryVersionLocatorDBModel [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static global::ElevenLabs.PronunciationDictionaryVersionLocatorDBModel? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public PronunciationDictionaryVersionLocatorDBModel( + string pronunciationDictionaryId, + string versionId) { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.PronunciationDictionaryVersionLocatorDBModel), - jsonSerializerContext) as global::ElevenLabs.PronunciationDictionaryVersionLocatorDBModel; + this.PronunciationDictionaryId = pronunciationDictionaryId ?? throw new global::System.ArgumentNullException(nameof(pronunciationDictionaryId)); + this.VersionId = versionId ?? throw new global::System.ArgumentNullException(nameof(versionId)); } /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.PronunciationDictionaryVersionLocatorDBModel? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public PronunciationDictionaryVersionLocatorDBModel() { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.PronunciationDictionaryVersionLocatorDBModel), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.PronunciationDictionaryVersionLocatorDBModel; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.PronunciationDictionaryVersionResponseModel.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.PronunciationDictionaryVersionResponseModel.Json.g.cs new file mode 100644 index 0000000..968a985 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.PronunciationDictionaryVersionResponseModel.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class PronunciationDictionaryVersionResponseModel + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.PronunciationDictionaryVersionResponseModel? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.PronunciationDictionaryVersionResponseModel), + jsonSerializerContext) as global::ElevenLabs.PronunciationDictionaryVersionResponseModel; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.PronunciationDictionaryVersionResponseModel? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.PronunciationDictionaryVersionResponseModel), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.PronunciationDictionaryVersionResponseModel; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.PronunciationDictionaryVersionResponseModel.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.PronunciationDictionaryVersionResponseModel.g.cs index 60269bb..6f488e4 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.PronunciationDictionaryVersionResponseModel.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.PronunciationDictionaryVersionResponseModel.g.cs @@ -56,91 +56,37 @@ public sealed partial class PronunciationDictionaryVersionResponseModel [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static global::ElevenLabs.PronunciationDictionaryVersionResponseModel? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// + /// + /// + /// + /// + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public PronunciationDictionaryVersionResponseModel( + string versionId, + string pronunciationDictionaryId, + string dictionaryName, + string versionName, + string createdBy, + int creationTimeUnix) { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.PronunciationDictionaryVersionResponseModel), - jsonSerializerContext) as global::ElevenLabs.PronunciationDictionaryVersionResponseModel; + this.VersionId = versionId ?? throw new global::System.ArgumentNullException(nameof(versionId)); + this.PronunciationDictionaryId = pronunciationDictionaryId ?? throw new global::System.ArgumentNullException(nameof(pronunciationDictionaryId)); + this.DictionaryName = dictionaryName ?? throw new global::System.ArgumentNullException(nameof(dictionaryName)); + this.VersionName = versionName ?? throw new global::System.ArgumentNullException(nameof(versionName)); + this.CreatedBy = createdBy ?? throw new global::System.ArgumentNullException(nameof(createdBy)); + this.CreationTimeUnix = creationTimeUnix; } /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.PronunciationDictionaryVersionResponseModel? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public PronunciationDictionaryVersionResponseModel() { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.PronunciationDictionaryVersionResponseModel), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.PronunciationDictionaryVersionResponseModel; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.QueryParamsJsonSchema.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.QueryParamsJsonSchema.Json.g.cs new file mode 100644 index 0000000..7c4d62c --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.QueryParamsJsonSchema.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class QueryParamsJsonSchema + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.QueryParamsJsonSchema? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.QueryParamsJsonSchema), + jsonSerializerContext) as global::ElevenLabs.QueryParamsJsonSchema; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.QueryParamsJsonSchema? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.QueryParamsJsonSchema), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.QueryParamsJsonSchema; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.QueryParamsJsonSchema.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.QueryParamsJsonSchema.g.cs new file mode 100644 index 0000000..26b3840 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.QueryParamsJsonSchema.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace ElevenLabs +{ + /// + /// + /// + public sealed partial class QueryParamsJsonSchema + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("properties")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.Dictionary Properties { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("required")] + public global::System.Collections.Generic.IList? Required { 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. + /// + /// + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public QueryParamsJsonSchema( + global::System.Collections.Generic.Dictionary properties, + global::System.Collections.Generic.IList? required) + { + this.Properties = properties ?? throw new global::System.ArgumentNullException(nameof(properties)); + this.Required = required; + } + + /// + /// Initializes a new instance of the class. + /// + public QueryParamsJsonSchema() + { + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.QueryParamsJsonSchemaProperties.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.QueryParamsJsonSchemaProperties.Json.g.cs new file mode 100644 index 0000000..dca07a3 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.QueryParamsJsonSchemaProperties.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class QueryParamsJsonSchemaProperties + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.QueryParamsJsonSchemaProperties? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.QueryParamsJsonSchemaProperties), + jsonSerializerContext) as global::ElevenLabs.QueryParamsJsonSchemaProperties; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.QueryParamsJsonSchemaProperties? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.QueryParamsJsonSchemaProperties), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.QueryParamsJsonSchemaProperties; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.QueryParamsJsonSchemaProperties.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.QueryParamsJsonSchemaProperties.g.cs new file mode 100644 index 0000000..80913cd --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.QueryParamsJsonSchemaProperties.g.cs @@ -0,0 +1,27 @@ + +#nullable enable + +namespace ElevenLabs +{ + /// + /// + /// + public sealed partial class QueryParamsJsonSchemaProperties + { + + /// + /// Additional properties that are not explicitly defined 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. + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public QueryParamsJsonSchemaProperties( + ) + { + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.RecordingResponseModel.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.RecordingResponseModel.Json.g.cs new file mode 100644 index 0000000..9fa79b8 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.RecordingResponseModel.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class RecordingResponseModel + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.RecordingResponseModel? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.RecordingResponseModel), + jsonSerializerContext) as global::ElevenLabs.RecordingResponseModel; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.RecordingResponseModel? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.RecordingResponseModel), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.RecordingResponseModel; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.RecordingResponseModel.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.RecordingResponseModel.g.cs index 64f128e..90c7cb3 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.RecordingResponseModel.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.RecordingResponseModel.g.cs @@ -49,91 +49,34 @@ public sealed partial class RecordingResponseModel [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static global::ElevenLabs.RecordingResponseModel? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// + /// + /// + /// + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public RecordingResponseModel( + string recordingId, + string mimeType, + int sizeBytes, + int uploadDateUnix, + string transcription) { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.RecordingResponseModel), - jsonSerializerContext) as global::ElevenLabs.RecordingResponseModel; + this.RecordingId = recordingId ?? throw new global::System.ArgumentNullException(nameof(recordingId)); + this.MimeType = mimeType ?? throw new global::System.ArgumentNullException(nameof(mimeType)); + this.SizeBytes = sizeBytes; + this.UploadDateUnix = uploadDateUnix; + this.Transcription = transcription ?? throw new global::System.ArgumentNullException(nameof(transcription)); } /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.RecordingResponseModel? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public RecordingResponseModel() { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.RecordingResponseModel), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.RecordingResponseModel; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.RedirectToMintlifyDocsGetResponse.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.RedirectToMintlifyDocsGetResponse.Json.g.cs new file mode 100644 index 0000000..052bbd6 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.RedirectToMintlifyDocsGetResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class RedirectToMintlifyDocsGetResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.RedirectToMintlifyDocsGetResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.RedirectToMintlifyDocsGetResponse), + jsonSerializerContext) as global::ElevenLabs.RedirectToMintlifyDocsGetResponse; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.RedirectToMintlifyDocsGetResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.RedirectToMintlifyDocsGetResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.RedirectToMintlifyDocsGetResponse; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.RedirectToMintlifyDocsGetResponse.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.RedirectToMintlifyDocsGetResponse.g.cs index fb507de..5813a19 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.RedirectToMintlifyDocsGetResponse.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.RedirectToMintlifyDocsGetResponse.g.cs @@ -15,91 +15,13 @@ public sealed partial class RedirectToMintlifyDocsGetResponse [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static global::ElevenLabs.RedirectToMintlifyDocsGetResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public RedirectToMintlifyDocsGetResponse( + ) { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.RedirectToMintlifyDocsGetResponse), - jsonSerializerContext) as global::ElevenLabs.RedirectToMintlifyDocsGetResponse; } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.RedirectToMintlifyDocsGetResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.RedirectToMintlifyDocsGetResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.RedirectToMintlifyDocsGetResponse; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.RemovePronunciationDictionaryRulesResponseModel.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.RemovePronunciationDictionaryRulesResponseModel.Json.g.cs new file mode 100644 index 0000000..a9f4274 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.RemovePronunciationDictionaryRulesResponseModel.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class RemovePronunciationDictionaryRulesResponseModel + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.RemovePronunciationDictionaryRulesResponseModel? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.RemovePronunciationDictionaryRulesResponseModel), + jsonSerializerContext) as global::ElevenLabs.RemovePronunciationDictionaryRulesResponseModel; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.RemovePronunciationDictionaryRulesResponseModel? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.RemovePronunciationDictionaryRulesResponseModel), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.RemovePronunciationDictionaryRulesResponseModel; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.RemovePronunciationDictionaryRulesResponseModel.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.RemovePronunciationDictionaryRulesResponseModel.g.cs index b3f49bd..253d191 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.RemovePronunciationDictionaryRulesResponseModel.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.RemovePronunciationDictionaryRulesResponseModel.g.cs @@ -28,91 +28,25 @@ public sealed partial class RemovePronunciationDictionaryRulesResponseModel [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static global::ElevenLabs.RemovePronunciationDictionaryRulesResponseModel? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public RemovePronunciationDictionaryRulesResponseModel( + string id, + string versionId) { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.RemovePronunciationDictionaryRulesResponseModel), - jsonSerializerContext) as global::ElevenLabs.RemovePronunciationDictionaryRulesResponseModel; + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + this.VersionId = versionId ?? throw new global::System.ArgumentNullException(nameof(versionId)); } /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.RemovePronunciationDictionaryRulesResponseModel? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public RemovePronunciationDictionaryRulesResponseModel() { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.RemovePronunciationDictionaryRulesResponseModel), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.RemovePronunciationDictionaryRulesResponseModel; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.SampleResponseModel.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.SampleResponseModel.Json.g.cs new file mode 100644 index 0000000..f7b400d --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.SampleResponseModel.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class SampleResponseModel + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.SampleResponseModel? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.SampleResponseModel), + jsonSerializerContext) as global::ElevenLabs.SampleResponseModel; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.SampleResponseModel? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.SampleResponseModel), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.SampleResponseModel; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.SampleResponseModel.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.SampleResponseModel.g.cs index 6924062..b962a25 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.SampleResponseModel.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.SampleResponseModel.g.cs @@ -49,91 +49,34 @@ public sealed partial class SampleResponseModel [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static global::ElevenLabs.SampleResponseModel? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// + /// + /// + /// + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public SampleResponseModel( + string sampleId, + string fileName, + string mimeType, + int sizeBytes, + string hash) { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.SampleResponseModel), - jsonSerializerContext) as global::ElevenLabs.SampleResponseModel; + this.SampleId = sampleId ?? throw new global::System.ArgumentNullException(nameof(sampleId)); + this.FileName = fileName ?? throw new global::System.ArgumentNullException(nameof(fileName)); + this.MimeType = mimeType ?? throw new global::System.ArgumentNullException(nameof(mimeType)); + this.SizeBytes = sizeBytes; + this.Hash = hash ?? throw new global::System.ArgumentNullException(nameof(hash)); } /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.SampleResponseModel? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public SampleResponseModel() { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.SampleResponseModel), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.SampleResponseModel; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ServerAgent.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ServerAgent.Json.g.cs new file mode 100644 index 0000000..455d93d --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ServerAgent.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class ServerAgent + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.ServerAgent? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.ServerAgent), + jsonSerializerContext) as global::ElevenLabs.ServerAgent; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.ServerAgent? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.ServerAgent), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.ServerAgent; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ServerAgent.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ServerAgent.g.cs new file mode 100644 index 0000000..c737c23 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ServerAgent.g.cs @@ -0,0 +1,93 @@ + +#nullable enable + +namespace ElevenLabs +{ + /// + /// + /// + public sealed partial class ServerAgent + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("url")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Url { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("server_events")] + public global::System.Collections.Generic.IList? ServerEvents { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("secret")] + public string? Secret { get; set; } + + /// + /// Default Value: 5 + /// + [global::System.Text.Json.Serialization.JsonPropertyName("timeout")] + public double? Timeout { get; set; } + + /// + /// Default Value: 2 + /// + [global::System.Text.Json.Serialization.JsonPropertyName("num_retries")] + public int? NumRetries { get; set; } + + /// + /// Default Value: I encountered an internal error occurred while handling your request and I am not able to respond at the moment. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("error_message")] + public string? ErrorMessage { 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: 5 + /// + /// + /// Default Value: 2 + /// + /// + /// Default Value: I encountered an internal error occurred while handling your request and I am not able to respond at the moment. + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public ServerAgent( + string url, + global::System.Collections.Generic.IList? serverEvents, + string? secret, + double? timeout, + int? numRetries, + string? errorMessage) + { + this.Url = url ?? throw new global::System.ArgumentNullException(nameof(url)); + this.ServerEvents = serverEvents; + this.Secret = secret; + this.Timeout = timeout; + this.NumRetries = numRetries; + this.ErrorMessage = errorMessage; + } + + /// + /// Initializes a new instance of the class. + /// + public ServerAgent() + { + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ServerEvent.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ServerEvent.g.cs new file mode 100644 index 0000000..12f4d2a --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ServerEvent.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace ElevenLabs +{ + /// + /// An enumeration. + /// + public enum ServerEvent + { + /// + /// + /// + Turn, + /// + /// + /// + Interruption, + /// + /// + /// + TurnAbandoned, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ServerEventExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ServerEvent value) + { + return value switch + { + ServerEvent.Turn => "turn", + ServerEvent.Interruption => "interruption", + ServerEvent.TurnAbandoned => "turn_abandoned", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ServerEvent? ToEnum(string value) + { + return value switch + { + "turn" => ServerEvent.Turn, + "interruption" => ServerEvent.Interruption, + "turn_abandoned" => ServerEvent.TurnAbandoned, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.SpeechHistoryItemResponseModel.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.SpeechHistoryItemResponseModel.Json.g.cs new file mode 100644 index 0000000..9c358ea --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.SpeechHistoryItemResponseModel.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class SpeechHistoryItemResponseModel + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.SpeechHistoryItemResponseModel? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.SpeechHistoryItemResponseModel), + jsonSerializerContext) as global::ElevenLabs.SpeechHistoryItemResponseModel; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.SpeechHistoryItemResponseModel? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.SpeechHistoryItemResponseModel), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.SpeechHistoryItemResponseModel; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.SpeechHistoryItemResponseModel.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.SpeechHistoryItemResponseModel.g.cs index 3c98ccb..612315a 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.SpeechHistoryItemResponseModel.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.SpeechHistoryItemResponseModel.g.cs @@ -135,91 +135,70 @@ public sealed partial class SpeechHistoryItemResponseModel [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ElevenLabs.SpeechHistoryItemResponseModel? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// Initializes a new instance of the class. + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public SpeechHistoryItemResponseModel( + string historyItemId, + string requestId, + string voiceId, + string modelId, + string voiceName, + global::ElevenLabs.SpeechHistoryItemResponseModelVoiceCategory voiceCategory, + string text, + int dateUnix, + int characterCountChangeFrom, + int characterCountChangeTo, + string contentType, + global::ElevenLabs.SpeechHistoryItemResponseModelState state, + object settings, + global::ElevenLabs.FeedbackResponseModel feedback, + string shareLinkId, + global::ElevenLabs.SpeechHistoryItemResponseModelSource source, + global::ElevenLabs.HistoryAlignmentsResponseModel? alignments) { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.SpeechHistoryItemResponseModel), - jsonSerializerContext) as global::ElevenLabs.SpeechHistoryItemResponseModel; + this.HistoryItemId = historyItemId ?? throw new global::System.ArgumentNullException(nameof(historyItemId)); + this.RequestId = requestId ?? throw new global::System.ArgumentNullException(nameof(requestId)); + this.VoiceId = voiceId ?? throw new global::System.ArgumentNullException(nameof(voiceId)); + this.ModelId = modelId ?? throw new global::System.ArgumentNullException(nameof(modelId)); + this.VoiceName = voiceName ?? throw new global::System.ArgumentNullException(nameof(voiceName)); + this.VoiceCategory = voiceCategory; + this.Text = text ?? throw new global::System.ArgumentNullException(nameof(text)); + this.DateUnix = dateUnix; + this.CharacterCountChangeFrom = characterCountChangeFrom; + this.CharacterCountChangeTo = characterCountChangeTo; + this.ContentType = contentType ?? throw new global::System.ArgumentNullException(nameof(contentType)); + this.State = state; + this.Settings = settings ?? throw new global::System.ArgumentNullException(nameof(settings)); + this.Feedback = feedback ?? throw new global::System.ArgumentNullException(nameof(feedback)); + this.ShareLinkId = shareLinkId ?? throw new global::System.ArgumentNullException(nameof(shareLinkId)); + this.Source = source; + this.Alignments = alignments; } /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.SpeechHistoryItemResponseModel? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public SpeechHistoryItemResponseModel() { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.SpeechHistoryItemResponseModel), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.SpeechHistoryItemResponseModel; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.SpeechHistoryItemResponseModelSettings.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.SpeechHistoryItemResponseModelSettings.Json.g.cs new file mode 100644 index 0000000..0808e74 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.SpeechHistoryItemResponseModelSettings.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class SpeechHistoryItemResponseModelSettings + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.SpeechHistoryItemResponseModelSettings? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.SpeechHistoryItemResponseModelSettings), + jsonSerializerContext) as global::ElevenLabs.SpeechHistoryItemResponseModelSettings; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.SpeechHistoryItemResponseModelSettings? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.SpeechHistoryItemResponseModelSettings), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.SpeechHistoryItemResponseModelSettings; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.SpeechHistoryItemResponseModelSettings.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.SpeechHistoryItemResponseModelSettings.g.cs index 30bfd47..9d4b510 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.SpeechHistoryItemResponseModelSettings.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.SpeechHistoryItemResponseModelSettings.g.cs @@ -15,91 +15,13 @@ public sealed partial class SpeechHistoryItemResponseModelSettings [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static global::ElevenLabs.SpeechHistoryItemResponseModelSettings? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public SpeechHistoryItemResponseModelSettings( + ) { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.SpeechHistoryItemResponseModelSettings), - jsonSerializerContext) as global::ElevenLabs.SpeechHistoryItemResponseModelSettings; } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.SpeechHistoryItemResponseModelSettings? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.SpeechHistoryItemResponseModelSettings), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.SpeechHistoryItemResponseModelSettings; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.SsoProviderResponseModel.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.SsoProviderResponseModel.Json.g.cs new file mode 100644 index 0000000..2526f5e --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.SsoProviderResponseModel.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class SsoProviderResponseModel + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.SsoProviderResponseModel? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.SsoProviderResponseModel), + jsonSerializerContext) as global::ElevenLabs.SsoProviderResponseModel; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.SsoProviderResponseModel? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.SsoProviderResponseModel), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.SsoProviderResponseModel; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.SsoProviderResponseModel.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.SsoProviderResponseModel.g.cs index 5fd4dad..07150c2 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.SsoProviderResponseModel.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.SsoProviderResponseModel.g.cs @@ -36,91 +36,28 @@ public sealed partial class SsoProviderResponseModel [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static global::ElevenLabs.SsoProviderResponseModel? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// + /// + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public SsoProviderResponseModel( + global::ElevenLabs.SsoProviderResponseModelProviderType providerType, + string providerId, + global::System.Collections.Generic.IList domains) { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.SsoProviderResponseModel), - jsonSerializerContext) as global::ElevenLabs.SsoProviderResponseModel; + this.ProviderType = providerType; + this.ProviderId = providerId ?? throw new global::System.ArgumentNullException(nameof(providerId)); + this.Domains = domains ?? throw new global::System.ArgumentNullException(nameof(domains)); } /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.SsoProviderResponseModel? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public SsoProviderResponseModel() { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.SsoProviderResponseModel), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.SsoProviderResponseModel; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.SubscriptionResponseModel.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.SubscriptionResponseModel.Json.g.cs new file mode 100644 index 0000000..6bf0d1d --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.SubscriptionResponseModel.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class SubscriptionResponseModel + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.SubscriptionResponseModel? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.SubscriptionResponseModel), + jsonSerializerContext) as global::ElevenLabs.SubscriptionResponseModel; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.SubscriptionResponseModel? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.SubscriptionResponseModel), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.SubscriptionResponseModel; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.SubscriptionResponseModel.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.SubscriptionResponseModel.g.cs index 96c3aac..d55937c 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.SubscriptionResponseModel.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.SubscriptionResponseModel.g.cs @@ -137,91 +137,70 @@ public sealed partial class SubscriptionResponseModel [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ElevenLabs.SubscriptionResponseModel? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// Initializes a new instance of the class. + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public SubscriptionResponseModel( + string tier, + int characterCount, + int characterLimit, + bool canExtendCharacterLimit, + bool allowedToExtendCharacterLimit, + int nextCharacterCountResetUnix, + int voiceLimit, + int maxVoiceAddEdits, + int voiceAddEditCounter, + int professionalVoiceLimit, + bool canExtendVoiceLimit, + bool canUseInstantVoiceCloning, + bool canUseProfessionalVoiceCloning, + global::ElevenLabs.SubscriptionResponseModelCurrency currency, + global::ElevenLabs.SubscriptionResponseModelStatus status, + global::ElevenLabs.SubscriptionResponseModelBillingPeriod billingPeriod, + global::ElevenLabs.SubscriptionResponseModelCharacterRefreshPeriod characterRefreshPeriod) { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.SubscriptionResponseModel), - jsonSerializerContext) as global::ElevenLabs.SubscriptionResponseModel; + this.Tier = tier ?? throw new global::System.ArgumentNullException(nameof(tier)); + this.CharacterCount = characterCount; + this.CharacterLimit = characterLimit; + this.CanExtendCharacterLimit = canExtendCharacterLimit; + this.AllowedToExtendCharacterLimit = allowedToExtendCharacterLimit; + this.NextCharacterCountResetUnix = nextCharacterCountResetUnix; + this.VoiceLimit = voiceLimit; + this.MaxVoiceAddEdits = maxVoiceAddEdits; + this.VoiceAddEditCounter = voiceAddEditCounter; + this.ProfessionalVoiceLimit = professionalVoiceLimit; + this.CanExtendVoiceLimit = canExtendVoiceLimit; + this.CanUseInstantVoiceCloning = canUseInstantVoiceCloning; + this.CanUseProfessionalVoiceCloning = canUseProfessionalVoiceCloning; + this.Currency = currency; + this.Status = status; + this.BillingPeriod = billingPeriod; + this.CharacterRefreshPeriod = characterRefreshPeriod; } /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.SubscriptionResponseModel? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public SubscriptionResponseModel() { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.SubscriptionResponseModel), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.SubscriptionResponseModel; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.TTSConversationalConfig.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.TTSConversationalConfig.Json.g.cs new file mode 100644 index 0000000..57af6d6 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.TTSConversationalConfig.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class TTSConversationalConfig + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.TTSConversationalConfig? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.TTSConversationalConfig), + jsonSerializerContext) as global::ElevenLabs.TTSConversationalConfig; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.TTSConversationalConfig? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.TTSConversationalConfig), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.TTSConversationalConfig; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.TTSConversationalConfig.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.TTSConversationalConfig.g.cs new file mode 100644 index 0000000..f848e8d --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.TTSConversationalConfig.g.cs @@ -0,0 +1,100 @@ + +#nullable enable + +namespace ElevenLabs +{ + /// + /// + /// + public sealed partial class TTSConversationalConfig + { + /// + /// Default Value: eleven_turbo_v2 + /// + [global::System.Text.Json.Serialization.JsonPropertyName("model_id")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::ElevenLabs.JsonConverters.TTSConversationalModelJsonConverter))] + public global::ElevenLabs.TTSConversationalModel? ModelId { get; set; } + + /// + /// Default Value: bYTqZQo3Jz7LQtmGTgwi + /// + [global::System.Text.Json.Serialization.JsonPropertyName("voice_id")] + public string? VoiceId { get; set; } + + /// + /// Default Value: pcm_16000 + /// + [global::System.Text.Json.Serialization.JsonPropertyName("agent_output_audio_format")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::ElevenLabs.JsonConverters.TTSOutputFormatJsonConverter))] + public global::ElevenLabs.TTSOutputFormat? AgentOutputAudioFormat { get; set; } + + /// + /// Default Value: 3 + /// + [global::System.Text.Json.Serialization.JsonPropertyName("optimize_streaming_latency")] + public int? OptimizeStreamingLatency { get; set; } + + /// + /// Default Value: 0.5 + /// + [global::System.Text.Json.Serialization.JsonPropertyName("stability")] + public double? Stability { get; set; } + + /// + /// Default Value: 0.8 + /// + [global::System.Text.Json.Serialization.JsonPropertyName("similarity_boost")] + public double? SimilarityBoost { 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: eleven_turbo_v2 + /// + /// + /// Default Value: bYTqZQo3Jz7LQtmGTgwi + /// + /// + /// Default Value: pcm_16000 + /// + /// + /// Default Value: 3 + /// + /// + /// Default Value: 0.5 + /// + /// + /// Default Value: 0.8 + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public TTSConversationalConfig( + global::ElevenLabs.TTSConversationalModel? modelId, + string? voiceId, + global::ElevenLabs.TTSOutputFormat? agentOutputAudioFormat, + int? optimizeStreamingLatency, + double? stability, + double? similarityBoost) + { + this.ModelId = modelId; + this.VoiceId = voiceId; + this.AgentOutputAudioFormat = agentOutputAudioFormat; + this.OptimizeStreamingLatency = optimizeStreamingLatency; + this.Stability = stability; + this.SimilarityBoost = similarityBoost; + } + + /// + /// Initializes a new instance of the class. + /// + public TTSConversationalConfig() + { + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.TTSConversationalModel.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.TTSConversationalModel.g.cs new file mode 100644 index 0000000..00a6689 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.TTSConversationalModel.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace ElevenLabs +{ + /// + /// An enumeration. + /// + public enum TTSConversationalModel + { + /// + /// + /// + ElevenTurboV2, + /// + /// + /// + ElevenTurboV25, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class TTSConversationalModelExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this TTSConversationalModel value) + { + return value switch + { + TTSConversationalModel.ElevenTurboV2 => "eleven_turbo_v2", + TTSConversationalModel.ElevenTurboV25 => "eleven_turbo_v2_5", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static TTSConversationalModel? ToEnum(string value) + { + return value switch + { + "eleven_turbo_v2" => TTSConversationalModel.ElevenTurboV2, + "eleven_turbo_v2_5" => TTSConversationalModel.ElevenTurboV25, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.TTSOutputFormat.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.TTSOutputFormat.g.cs new file mode 100644 index 0000000..46d9633 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.TTSOutputFormat.g.cs @@ -0,0 +1,63 @@ + +#nullable enable + +namespace ElevenLabs +{ + /// + /// An enumeration. + /// + public enum TTSOutputFormat + { + /// + /// + /// + Pcm16000, + /// + /// + /// + Pcm22050, + /// + /// + /// + Pcm24000, + /// + /// + /// + Pcm44100, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class TTSOutputFormatExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this TTSOutputFormat value) + { + return value switch + { + TTSOutputFormat.Pcm16000 => "pcm_16000", + TTSOutputFormat.Pcm22050 => "pcm_22050", + TTSOutputFormat.Pcm24000 => "pcm_24000", + TTSOutputFormat.Pcm44100 => "pcm_44100", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static TTSOutputFormat? ToEnum(string value) + { + return value switch + { + "pcm_16000" => TTSOutputFormat.Pcm16000, + "pcm_22050" => TTSOutputFormat.Pcm22050, + "pcm_24000" => TTSOutputFormat.Pcm24000, + "pcm_44100" => TTSOutputFormat.Pcm44100, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ToolWebhookConfig.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ToolWebhookConfig.Json.g.cs new file mode 100644 index 0000000..4ec664c --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ToolWebhookConfig.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class ToolWebhookConfig + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.ToolWebhookConfig? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.ToolWebhookConfig), + jsonSerializerContext) as global::ElevenLabs.ToolWebhookConfig; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.ToolWebhookConfig? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.ToolWebhookConfig), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.ToolWebhookConfig; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ToolWebhookConfig.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ToolWebhookConfig.g.cs new file mode 100644 index 0000000..89172ab --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ToolWebhookConfig.g.cs @@ -0,0 +1,90 @@ + +#nullable enable + +namespace ElevenLabs +{ + /// + /// Configuration for a webhook that will be called by an LLM tool. + /// + public sealed partial class ToolWebhookConfig + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("url")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Url { get; set; } + + /// + /// Default Value: GET + /// + [global::System.Text.Json.Serialization.JsonPropertyName("method")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::ElevenLabs.JsonConverters.ToolWebhookConfigMethodJsonConverter))] + public global::ElevenLabs.ToolWebhookConfigMethod? Method { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("path_params_schema")] + public global::System.Collections.Generic.Dictionary? PathParamsSchema { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("query_params_schema")] + public global::ElevenLabs.QueryParamsJsonSchema? QueryParamsSchema { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("request_body_schema")] + public global::ElevenLabs.ObjectJsonSchemaProperty? RequestBodySchema { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("request_headers")] + public object? RequestHeaders { 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: GET + /// + /// + /// + /// + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public ToolWebhookConfig( + string url, + global::ElevenLabs.ToolWebhookConfigMethod? method, + global::System.Collections.Generic.Dictionary? pathParamsSchema, + global::ElevenLabs.QueryParamsJsonSchema? queryParamsSchema, + global::ElevenLabs.ObjectJsonSchemaProperty? requestBodySchema, + object? requestHeaders) + { + this.Url = url ?? throw new global::System.ArgumentNullException(nameof(url)); + this.Method = method; + this.PathParamsSchema = pathParamsSchema; + this.QueryParamsSchema = queryParamsSchema; + this.RequestBodySchema = requestBodySchema; + this.RequestHeaders = requestHeaders; + } + + /// + /// Initializes a new instance of the class. + /// + public ToolWebhookConfig() + { + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ToolWebhookConfigMethod.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ToolWebhookConfigMethod.g.cs new file mode 100644 index 0000000..3d9eed6 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ToolWebhookConfigMethod.g.cs @@ -0,0 +1,63 @@ + +#nullable enable + +namespace ElevenLabs +{ + /// + /// Default Value: GET + /// + public enum ToolWebhookConfigMethod + { + /// + /// + /// + GET, + /// + /// + /// + POST, + /// + /// + /// + PATCH, + /// + /// + /// + DELETE, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ToolWebhookConfigMethodExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ToolWebhookConfigMethod value) + { + return value switch + { + ToolWebhookConfigMethod.GET => "GET", + ToolWebhookConfigMethod.POST => "POST", + ToolWebhookConfigMethod.PATCH => "PATCH", + ToolWebhookConfigMethod.DELETE => "DELETE", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ToolWebhookConfigMethod? ToEnum(string value) + { + return value switch + { + "GET" => ToolWebhookConfigMethod.GET, + "POST" => ToolWebhookConfigMethod.POST, + "PATCH" => ToolWebhookConfigMethod.PATCH, + "DELETE" => ToolWebhookConfigMethod.DELETE, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ToolWebhookConfigPathParamsSchema.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ToolWebhookConfigPathParamsSchema.Json.g.cs new file mode 100644 index 0000000..cac9144 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ToolWebhookConfigPathParamsSchema.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class ToolWebhookConfigPathParamsSchema + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.ToolWebhookConfigPathParamsSchema? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.ToolWebhookConfigPathParamsSchema), + jsonSerializerContext) as global::ElevenLabs.ToolWebhookConfigPathParamsSchema; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.ToolWebhookConfigPathParamsSchema? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.ToolWebhookConfigPathParamsSchema), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.ToolWebhookConfigPathParamsSchema; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ToolWebhookConfigPathParamsSchema.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ToolWebhookConfigPathParamsSchema.g.cs new file mode 100644 index 0000000..fa97fd7 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ToolWebhookConfigPathParamsSchema.g.cs @@ -0,0 +1,27 @@ + +#nullable enable + +namespace ElevenLabs +{ + /// + /// + /// + public sealed partial class ToolWebhookConfigPathParamsSchema + { + + /// + /// Additional properties that are not explicitly defined 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. + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public ToolWebhookConfigPathParamsSchema( + ) + { + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ToolWebhookConfigRequestHeaders.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ToolWebhookConfigRequestHeaders.Json.g.cs new file mode 100644 index 0000000..26d9f5b --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ToolWebhookConfigRequestHeaders.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class ToolWebhookConfigRequestHeaders + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.ToolWebhookConfigRequestHeaders? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.ToolWebhookConfigRequestHeaders), + jsonSerializerContext) as global::ElevenLabs.ToolWebhookConfigRequestHeaders; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.ToolWebhookConfigRequestHeaders? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.ToolWebhookConfigRequestHeaders), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.ToolWebhookConfigRequestHeaders; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ToolWebhookConfigRequestHeaders.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ToolWebhookConfigRequestHeaders.g.cs new file mode 100644 index 0000000..ef132f0 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ToolWebhookConfigRequestHeaders.g.cs @@ -0,0 +1,27 @@ + +#nullable enable + +namespace ElevenLabs +{ + /// + /// + /// + public sealed partial class ToolWebhookConfigRequestHeaders + { + + /// + /// Additional properties that are not explicitly defined 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. + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public ToolWebhookConfigRequestHeaders( + ) + { + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.TurnConfig.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.TurnConfig.Json.g.cs new file mode 100644 index 0000000..70ad8ad --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.TurnConfig.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class TurnConfig + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.TurnConfig? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.TurnConfig), + jsonSerializerContext) as global::ElevenLabs.TurnConfig; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.TurnConfig? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.TurnConfig), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.TurnConfig; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.TurnConfig.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.TurnConfig.g.cs new file mode 100644 index 0000000..c25193c --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.TurnConfig.g.cs @@ -0,0 +1,43 @@ + +#nullable enable + +namespace ElevenLabs +{ + /// + /// + /// + public sealed partial class TurnConfig + { + /// + /// Default Value: 7 + /// + [global::System.Text.Json.Serialization.JsonPropertyName("turn_timeout")] + public double? TurnTimeout { 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 + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public TurnConfig( + double? turnTimeout) + { + this.TurnTimeout = turnTimeout; + } + + /// + /// Initializes a new instance of the class. + /// + public TurnConfig() + { + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.URLAvatar.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.URLAvatar.Json.g.cs new file mode 100644 index 0000000..bcbd29c --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.URLAvatar.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class URLAvatar + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.URLAvatar? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.URLAvatar), + jsonSerializerContext) as global::ElevenLabs.URLAvatar; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.URLAvatar? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.URLAvatar), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.URLAvatar; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.URLAvatar.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.URLAvatar.g.cs new file mode 100644 index 0000000..ba85888 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.URLAvatar.g.cs @@ -0,0 +1,53 @@ + +#nullable enable + +namespace ElevenLabs +{ + /// + /// + /// + public sealed partial class URLAvatar + { + /// + /// Default Value: url + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::ElevenLabs.JsonConverters.URLAvatarTypeJsonConverter))] + public global::ElevenLabs.URLAvatarType? Type { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("custom_url")] + public string? CustomUrl { 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: url + /// + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public URLAvatar( + global::ElevenLabs.URLAvatarType? type, + string? customUrl) + { + this.Type = type; + this.CustomUrl = customUrl; + } + + /// + /// Initializes a new instance of the class. + /// + public URLAvatar() + { + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.URLAvatarType.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.URLAvatarType.g.cs new file mode 100644 index 0000000..a2dba19 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.URLAvatarType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace ElevenLabs +{ + /// + /// Default Value: url + /// + public enum URLAvatarType + { + /// + /// + /// + Url, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class URLAvatarTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this URLAvatarType value) + { + return value switch + { + URLAvatarType.Url => "url", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static URLAvatarType? ToEnum(string value) + { + return value switch + { + "url" => URLAvatarType.Url, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.UpdateMemberV1WorkspaceMembersPostResponse.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.UpdateMemberV1WorkspaceMembersPostResponse.Json.g.cs new file mode 100644 index 0000000..43d8572 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.UpdateMemberV1WorkspaceMembersPostResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class UpdateMemberV1WorkspaceMembersPostResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.UpdateMemberV1WorkspaceMembersPostResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.UpdateMemberV1WorkspaceMembersPostResponse), + jsonSerializerContext) as global::ElevenLabs.UpdateMemberV1WorkspaceMembersPostResponse; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.UpdateMemberV1WorkspaceMembersPostResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.UpdateMemberV1WorkspaceMembersPostResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.UpdateMemberV1WorkspaceMembersPostResponse; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.UpdateMemberV1WorkspaceMembersPostResponse.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.UpdateMemberV1WorkspaceMembersPostResponse.g.cs index 5928f83..4d36afa 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.UpdateMemberV1WorkspaceMembersPostResponse.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.UpdateMemberV1WorkspaceMembersPostResponse.g.cs @@ -15,91 +15,13 @@ public sealed partial class UpdateMemberV1WorkspaceMembersPostResponse [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static global::ElevenLabs.UpdateMemberV1WorkspaceMembersPostResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public UpdateMemberV1WorkspaceMembersPostResponse( + ) { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.UpdateMemberV1WorkspaceMembersPostResponse), - jsonSerializerContext) as global::ElevenLabs.UpdateMemberV1WorkspaceMembersPostResponse; } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.UpdateMemberV1WorkspaceMembersPostResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.UpdateMemberV1WorkspaceMembersPostResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.UpdateMemberV1WorkspaceMembersPostResponse; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.UpdatePronunciationDictionariesV1ProjectsProjectIdUpdatePronunciationDictionariesPostResponse.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.UpdatePronunciationDictionariesV1ProjectsProjectIdUpdatePronunciationDictionariesPostResponse.Json.g.cs new file mode 100644 index 0000000..f58c755 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.UpdatePronunciationDictionariesV1ProjectsProjectIdUpdatePronunciationDictionariesPostResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class UpdatePronunciationDictionariesV1ProjectsProjectIdUpdatePronunciationDictionariesPostResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.UpdatePronunciationDictionariesV1ProjectsProjectIdUpdatePronunciationDictionariesPostResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.UpdatePronunciationDictionariesV1ProjectsProjectIdUpdatePronunciationDictionariesPostResponse), + jsonSerializerContext) as global::ElevenLabs.UpdatePronunciationDictionariesV1ProjectsProjectIdUpdatePronunciationDictionariesPostResponse; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.UpdatePronunciationDictionariesV1ProjectsProjectIdUpdatePronunciationDictionariesPostResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.UpdatePronunciationDictionariesV1ProjectsProjectIdUpdatePronunciationDictionariesPostResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.UpdatePronunciationDictionariesV1ProjectsProjectIdUpdatePronunciationDictionariesPostResponse; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.UpdatePronunciationDictionariesV1ProjectsProjectIdUpdatePronunciationDictionariesPostResponse.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.UpdatePronunciationDictionariesV1ProjectsProjectIdUpdatePronunciationDictionariesPostResponse.g.cs index 1426a18..e4f84f6 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.UpdatePronunciationDictionariesV1ProjectsProjectIdUpdatePronunciationDictionariesPostResponse.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.UpdatePronunciationDictionariesV1ProjectsProjectIdUpdatePronunciationDictionariesPostResponse.g.cs @@ -15,91 +15,13 @@ public sealed partial class UpdatePronunciationDictionariesV1ProjectsProjectIdUp [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static global::ElevenLabs.UpdatePronunciationDictionariesV1ProjectsProjectIdUpdatePronunciationDictionariesPostResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public UpdatePronunciationDictionariesV1ProjectsProjectIdUpdatePronunciationDictionariesPostResponse( + ) { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.UpdatePronunciationDictionariesV1ProjectsProjectIdUpdatePronunciationDictionariesPostResponse), - jsonSerializerContext) as global::ElevenLabs.UpdatePronunciationDictionariesV1ProjectsProjectIdUpdatePronunciationDictionariesPostResponse; } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.UpdatePronunciationDictionariesV1ProjectsProjectIdUpdatePronunciationDictionariesPostResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.UpdatePronunciationDictionariesV1ProjectsProjectIdUpdatePronunciationDictionariesPostResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.UpdatePronunciationDictionariesV1ProjectsProjectIdUpdatePronunciationDictionariesPostResponse; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.UsageCharactersResponseModel.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.UsageCharactersResponseModel.Json.g.cs new file mode 100644 index 0000000..3d98e74 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.UsageCharactersResponseModel.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class UsageCharactersResponseModel + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.UsageCharactersResponseModel? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.UsageCharactersResponseModel), + jsonSerializerContext) as global::ElevenLabs.UsageCharactersResponseModel; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.UsageCharactersResponseModel? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.UsageCharactersResponseModel), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.UsageCharactersResponseModel; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.UsageCharactersResponseModel.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.UsageCharactersResponseModel.g.cs index 614ce9c..a75eb6b 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.UsageCharactersResponseModel.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.UsageCharactersResponseModel.g.cs @@ -28,91 +28,25 @@ public sealed partial class UsageCharactersResponseModel [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static global::ElevenLabs.UsageCharactersResponseModel? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public UsageCharactersResponseModel( + global::System.Collections.Generic.IList time, + global::System.Collections.Generic.Dictionary> usage) { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.UsageCharactersResponseModel), - jsonSerializerContext) as global::ElevenLabs.UsageCharactersResponseModel; + this.Time = time ?? throw new global::System.ArgumentNullException(nameof(time)); + this.Usage = usage ?? throw new global::System.ArgumentNullException(nameof(usage)); } /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.UsageCharactersResponseModel? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public UsageCharactersResponseModel() { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.UsageCharactersResponseModel), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.UsageCharactersResponseModel; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.UsageCharactersResponseModelUsage.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.UsageCharactersResponseModelUsage.Json.g.cs new file mode 100644 index 0000000..ea628c0 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.UsageCharactersResponseModelUsage.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class UsageCharactersResponseModelUsage + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.UsageCharactersResponseModelUsage? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.UsageCharactersResponseModelUsage), + jsonSerializerContext) as global::ElevenLabs.UsageCharactersResponseModelUsage; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.UsageCharactersResponseModelUsage? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.UsageCharactersResponseModelUsage), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.UsageCharactersResponseModelUsage; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.UsageCharactersResponseModelUsage.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.UsageCharactersResponseModelUsage.g.cs index b011c21..560c03c 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.UsageCharactersResponseModelUsage.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.UsageCharactersResponseModelUsage.g.cs @@ -15,91 +15,13 @@ public sealed partial class UsageCharactersResponseModelUsage [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static global::ElevenLabs.UsageCharactersResponseModelUsage? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public UsageCharactersResponseModelUsage( + ) { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.UsageCharactersResponseModelUsage), - jsonSerializerContext) as global::ElevenLabs.UsageCharactersResponseModelUsage; } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.UsageCharactersResponseModelUsage? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.UsageCharactersResponseModelUsage), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.UsageCharactersResponseModelUsage; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.UserResponseModel.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.UserResponseModel.Json.g.cs new file mode 100644 index 0000000..047b9d5 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.UserResponseModel.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class UserResponseModel + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.UserResponseModel? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.UserResponseModel), + jsonSerializerContext) as global::ElevenLabs.UserResponseModel; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.UserResponseModel? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.UserResponseModel), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.UserResponseModel; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.UserResponseModel.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.UserResponseModel.g.cs index 7a7cb53..e823f54 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.UserResponseModel.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.UserResponseModel.g.cs @@ -74,91 +74,48 @@ public sealed partial class UserResponseModel [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ElevenLabs.UserResponseModel? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.UserResponseModel), - jsonSerializerContext) as global::ElevenLabs.UserResponseModel; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.UserResponseModel? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// + /// + /// + /// + /// + /// + /// + /// + /// Default Value: false + /// + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public UserResponseModel( + global::ElevenLabs.SubscriptionResponseModel subscription, + bool isNewUser, + string xiApiKey, + bool canUseDelayedPaymentMethods, + bool isOnboardingCompleted, + bool isOnboardingChecklistCompleted, + string? firstName, + bool? isApiKeyHashed, + string? xiApiKeyPreview) { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.UserResponseModel), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.UserResponseModel; + this.Subscription = subscription ?? throw new global::System.ArgumentNullException(nameof(subscription)); + this.IsNewUser = isNewUser; + this.XiApiKey = xiApiKey ?? throw new global::System.ArgumentNullException(nameof(xiApiKey)); + this.CanUseDelayedPaymentMethods = canUseDelayedPaymentMethods; + this.IsOnboardingCompleted = isOnboardingCompleted; + this.IsOnboardingChecklistCompleted = isOnboardingChecklistCompleted; + this.FirstName = firstName; + this.IsApiKeyHashed = isApiKeyHashed; + this.XiApiKeyPreview = xiApiKeyPreview; } /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public UserResponseModel() { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ValidationError.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ValidationError.Json.g.cs new file mode 100644 index 0000000..73c37c3 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ValidationError.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class ValidationError + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.ValidationError? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.ValidationError), + jsonSerializerContext) as global::ElevenLabs.ValidationError; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.ValidationError? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.ValidationError), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.ValidationError; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ValidationError.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ValidationError.g.cs index 0335537..fc37156 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ValidationError.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.ValidationError.g.cs @@ -37,91 +37,28 @@ public sealed partial class ValidationError [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static global::ElevenLabs.ValidationError? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// + /// + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public ValidationError( + global::System.Collections.Generic.IList> loc, + string msg, + string type) { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.ValidationError), - jsonSerializerContext) as global::ElevenLabs.ValidationError; + this.Loc = loc ?? throw new global::System.ArgumentNullException(nameof(loc)); + this.Msg = msg ?? throw new global::System.ArgumentNullException(nameof(msg)); + this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); } /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.ValidationError? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public ValidationError() { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.ValidationError), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.ValidationError; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.VerificationAttemptResponseModel.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.VerificationAttemptResponseModel.Json.g.cs new file mode 100644 index 0000000..3f0f9b3 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.VerificationAttemptResponseModel.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class VerificationAttemptResponseModel + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.VerificationAttemptResponseModel? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.VerificationAttemptResponseModel), + jsonSerializerContext) as global::ElevenLabs.VerificationAttemptResponseModel; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.VerificationAttemptResponseModel? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.VerificationAttemptResponseModel), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.VerificationAttemptResponseModel; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.VerificationAttemptResponseModel.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.VerificationAttemptResponseModel.g.cs index bd8d3bd..a606c4a 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.VerificationAttemptResponseModel.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.VerificationAttemptResponseModel.g.cs @@ -55,91 +55,37 @@ public sealed partial class VerificationAttemptResponseModel [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static global::ElevenLabs.VerificationAttemptResponseModel? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// + /// + /// + /// + /// + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public VerificationAttemptResponseModel( + string text, + int dateUnix, + bool accepted, + double similarity, + double levenshteinDistance, + global::ElevenLabs.RecordingResponseModel? recording) { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.VerificationAttemptResponseModel), - jsonSerializerContext) as global::ElevenLabs.VerificationAttemptResponseModel; + this.Text = text ?? throw new global::System.ArgumentNullException(nameof(text)); + this.DateUnix = dateUnix; + this.Accepted = accepted; + this.Similarity = similarity; + this.LevenshteinDistance = levenshteinDistance; + this.Recording = recording; } /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.VerificationAttemptResponseModel? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public VerificationAttemptResponseModel() { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.VerificationAttemptResponseModel), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.VerificationAttemptResponseModel; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.VoiceGenerationParameterOptionResponseModel.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.VoiceGenerationParameterOptionResponseModel.Json.g.cs new file mode 100644 index 0000000..8b4a4f6 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.VoiceGenerationParameterOptionResponseModel.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class VoiceGenerationParameterOptionResponseModel + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.VoiceGenerationParameterOptionResponseModel? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.VoiceGenerationParameterOptionResponseModel), + jsonSerializerContext) as global::ElevenLabs.VoiceGenerationParameterOptionResponseModel; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.VoiceGenerationParameterOptionResponseModel? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.VoiceGenerationParameterOptionResponseModel), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.VoiceGenerationParameterOptionResponseModel; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.VoiceGenerationParameterOptionResponseModel.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.VoiceGenerationParameterOptionResponseModel.g.cs index 253b91d..2147088 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.VoiceGenerationParameterOptionResponseModel.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.VoiceGenerationParameterOptionResponseModel.g.cs @@ -28,91 +28,25 @@ public sealed partial class VoiceGenerationParameterOptionResponseModel [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static global::ElevenLabs.VoiceGenerationParameterOptionResponseModel? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public VoiceGenerationParameterOptionResponseModel( + string name, + string code) { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.VoiceGenerationParameterOptionResponseModel), - jsonSerializerContext) as global::ElevenLabs.VoiceGenerationParameterOptionResponseModel; + this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); + this.Code = code ?? throw new global::System.ArgumentNullException(nameof(code)); } /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.VoiceGenerationParameterOptionResponseModel? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public VoiceGenerationParameterOptionResponseModel() { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.VoiceGenerationParameterOptionResponseModel), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.VoiceGenerationParameterOptionResponseModel; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.VoiceGenerationParameterResponseModel.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.VoiceGenerationParameterResponseModel.Json.g.cs new file mode 100644 index 0000000..11ead48 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.VoiceGenerationParameterResponseModel.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class VoiceGenerationParameterResponseModel + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.VoiceGenerationParameterResponseModel? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.VoiceGenerationParameterResponseModel), + jsonSerializerContext) as global::ElevenLabs.VoiceGenerationParameterResponseModel; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.VoiceGenerationParameterResponseModel? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.VoiceGenerationParameterResponseModel), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.VoiceGenerationParameterResponseModel; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.VoiceGenerationParameterResponseModel.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.VoiceGenerationParameterResponseModel.g.cs index bd03cd4..7ebf922 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.VoiceGenerationParameterResponseModel.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.VoiceGenerationParameterResponseModel.g.cs @@ -63,91 +63,40 @@ public sealed partial class VoiceGenerationParameterResponseModel [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static global::ElevenLabs.VoiceGenerationParameterResponseModel? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// + /// + /// + /// + /// + /// + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public VoiceGenerationParameterResponseModel( + global::System.Collections.Generic.IList genders, + global::System.Collections.Generic.IList accents, + global::System.Collections.Generic.IList ages, + int minimumCharacters, + int maximumCharacters, + double minimumAccentStrength, + double maximumAccentStrength) { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.VoiceGenerationParameterResponseModel), - jsonSerializerContext) as global::ElevenLabs.VoiceGenerationParameterResponseModel; + this.Genders = genders ?? throw new global::System.ArgumentNullException(nameof(genders)); + this.Accents = accents ?? throw new global::System.ArgumentNullException(nameof(accents)); + this.Ages = ages ?? throw new global::System.ArgumentNullException(nameof(ages)); + this.MinimumCharacters = minimumCharacters; + this.MaximumCharacters = maximumCharacters; + this.MinimumAccentStrength = minimumAccentStrength; + this.MaximumAccentStrength = maximumAccentStrength; } /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.VoiceGenerationParameterResponseModel? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public VoiceGenerationParameterResponseModel() { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.VoiceGenerationParameterResponseModel), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.VoiceGenerationParameterResponseModel; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.VoicePreviewResponseModel.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.VoicePreviewResponseModel.Json.g.cs new file mode 100644 index 0000000..8909f16 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.VoicePreviewResponseModel.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class VoicePreviewResponseModel + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.VoicePreviewResponseModel? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.VoicePreviewResponseModel), + jsonSerializerContext) as global::ElevenLabs.VoicePreviewResponseModel; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.VoicePreviewResponseModel? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.VoicePreviewResponseModel), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.VoicePreviewResponseModel; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.VoicePreviewResponseModel.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.VoicePreviewResponseModel.g.cs index 3a468bc..39b53c6 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.VoicePreviewResponseModel.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.VoicePreviewResponseModel.g.cs @@ -35,91 +35,30 @@ public sealed partial class VoicePreviewResponseModel [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ElevenLabs.VoicePreviewResponseModel? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.VoicePreviewResponseModel), - jsonSerializerContext) as global::ElevenLabs.VoicePreviewResponseModel; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.VoicePreviewResponseModel? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// + /// + /// + /// Default Value: audio/mpeg + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public VoicePreviewResponseModel( + string audioBase64, + string generatedVoiceId, + global::ElevenLabs.VoicePreviewResponseModelMediaType? mediaType) { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.VoicePreviewResponseModel), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.VoicePreviewResponseModel; + this.AudioBase64 = audioBase64 ?? throw new global::System.ArgumentNullException(nameof(audioBase64)); + this.GeneratedVoiceId = generatedVoiceId ?? throw new global::System.ArgumentNullException(nameof(generatedVoiceId)); + this.MediaType = mediaType; } /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public VoicePreviewResponseModel() { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.VoicePreviewsResponseModel.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.VoicePreviewsResponseModel.Json.g.cs new file mode 100644 index 0000000..f09146f --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.VoicePreviewsResponseModel.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class VoicePreviewsResponseModel + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.VoicePreviewsResponseModel? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.VoicePreviewsResponseModel), + jsonSerializerContext) as global::ElevenLabs.VoicePreviewsResponseModel; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.VoicePreviewsResponseModel? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.VoicePreviewsResponseModel), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.VoicePreviewsResponseModel; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.VoicePreviewsResponseModel.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.VoicePreviewsResponseModel.g.cs index 65dcfa1..edd3e05 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.VoicePreviewsResponseModel.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.VoicePreviewsResponseModel.g.cs @@ -21,91 +21,22 @@ public sealed partial class VoicePreviewsResponseModel [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static global::ElevenLabs.VoicePreviewsResponseModel? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public VoicePreviewsResponseModel( + global::System.Collections.Generic.IList previews) { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.VoicePreviewsResponseModel), - jsonSerializerContext) as global::ElevenLabs.VoicePreviewsResponseModel; + this.Previews = previews ?? throw new global::System.ArgumentNullException(nameof(previews)); } /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.VoicePreviewsResponseModel? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public VoicePreviewsResponseModel() { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.VoicePreviewsResponseModel), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.VoicePreviewsResponseModel; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.VoiceResponseModel.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.VoiceResponseModel.Json.g.cs new file mode 100644 index 0000000..4dc2b43 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.VoiceResponseModel.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class VoiceResponseModel + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.VoiceResponseModel? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.VoiceResponseModel), + jsonSerializerContext) as global::ElevenLabs.VoiceResponseModel; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.VoiceResponseModel? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.VoiceResponseModel), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.VoiceResponseModel; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.VoiceResponseModel.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.VoiceResponseModel.g.cs index ab02ed1..1af6266 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.VoiceResponseModel.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.VoiceResponseModel.g.cs @@ -136,91 +136,77 @@ public sealed partial class VoiceResponseModel [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ElevenLabs.VoiceResponseModel? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.VoiceResponseModel), - jsonSerializerContext) as global::ElevenLabs.VoiceResponseModel; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.VoiceResponseModel? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// Initializes a new instance of the class. + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// Default Value: false + /// + /// + /// Default Value: false + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public VoiceResponseModel( + string voiceId, + string name, + global::System.Collections.Generic.IList samples, + global::ElevenLabs.VoiceResponseModelCategory category, + global::ElevenLabs.FineTuningResponseModel fineTuning, + global::System.Collections.Generic.Dictionary labels, + string description, + string previewUrl, + global::System.Collections.Generic.IList availableForTiers, + global::ElevenLabs.VoiceSettingsResponseModel settings, + global::ElevenLabs.VoiceSharingResponseModel sharing, + global::System.Collections.Generic.IList highQualityBaseModelIds, + global::ElevenLabs.VoiceResponseModelSafetyControl? safetyControl, + global::ElevenLabs.VoiceVerificationResponseModel? voiceVerification, + string? permissionOnResource, + bool? isOwner, + bool? isLegacy, + bool? isMixed) { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.VoiceResponseModel), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.VoiceResponseModel; + this.VoiceId = voiceId ?? throw new global::System.ArgumentNullException(nameof(voiceId)); + this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); + this.Samples = samples ?? throw new global::System.ArgumentNullException(nameof(samples)); + this.Category = category; + this.FineTuning = fineTuning ?? throw new global::System.ArgumentNullException(nameof(fineTuning)); + this.Labels = labels ?? throw new global::System.ArgumentNullException(nameof(labels)); + this.Description = description ?? throw new global::System.ArgumentNullException(nameof(description)); + this.PreviewUrl = previewUrl ?? throw new global::System.ArgumentNullException(nameof(previewUrl)); + this.AvailableForTiers = availableForTiers ?? throw new global::System.ArgumentNullException(nameof(availableForTiers)); + this.Settings = settings ?? throw new global::System.ArgumentNullException(nameof(settings)); + this.Sharing = sharing ?? throw new global::System.ArgumentNullException(nameof(sharing)); + this.HighQualityBaseModelIds = highQualityBaseModelIds ?? throw new global::System.ArgumentNullException(nameof(highQualityBaseModelIds)); + this.SafetyControl = safetyControl; + this.VoiceVerification = voiceVerification; + this.PermissionOnResource = permissionOnResource; + this.IsOwner = isOwner; + this.IsLegacy = isLegacy; + this.IsMixed = isMixed; } /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public VoiceResponseModel() { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.VoiceResponseModelLabels.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.VoiceResponseModelLabels.Json.g.cs new file mode 100644 index 0000000..9dc64c5 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.VoiceResponseModelLabels.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class VoiceResponseModelLabels + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.VoiceResponseModelLabels? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.VoiceResponseModelLabels), + jsonSerializerContext) as global::ElevenLabs.VoiceResponseModelLabels; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.VoiceResponseModelLabels? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.VoiceResponseModelLabels), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.VoiceResponseModelLabels; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.VoiceResponseModelLabels.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.VoiceResponseModelLabels.g.cs index 9b4080f..87095f9 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.VoiceResponseModelLabels.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.VoiceResponseModelLabels.g.cs @@ -15,91 +15,13 @@ public sealed partial class VoiceResponseModelLabels [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static global::ElevenLabs.VoiceResponseModelLabels? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public VoiceResponseModelLabels( + ) { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.VoiceResponseModelLabels), - jsonSerializerContext) as global::ElevenLabs.VoiceResponseModelLabels; } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.VoiceResponseModelLabels? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.VoiceResponseModelLabels), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.VoiceResponseModelLabels; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.VoiceSettingsResponseModel.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.VoiceSettingsResponseModel.Json.g.cs new file mode 100644 index 0000000..5dd226a --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.VoiceSettingsResponseModel.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class VoiceSettingsResponseModel + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.VoiceSettingsResponseModel? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.VoiceSettingsResponseModel), + jsonSerializerContext) as global::ElevenLabs.VoiceSettingsResponseModel; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.VoiceSettingsResponseModel? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.VoiceSettingsResponseModel), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.VoiceSettingsResponseModel; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.VoiceSettingsResponseModel.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.VoiceSettingsResponseModel.g.cs index 9fbf02e..b549bed 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.VoiceSettingsResponseModel.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.VoiceSettingsResponseModel.g.cs @@ -40,91 +40,35 @@ public sealed partial class VoiceSettingsResponseModel [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ElevenLabs.VoiceSettingsResponseModel? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.VoiceSettingsResponseModel), - jsonSerializerContext) as global::ElevenLabs.VoiceSettingsResponseModel; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.VoiceSettingsResponseModel? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// + /// + /// + /// Default Value: 0 + /// + /// + /// Default Value: true + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public VoiceSettingsResponseModel( + double stability, + double similarityBoost, + double? style, + bool? useSpeakerBoost) { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.VoiceSettingsResponseModel), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.VoiceSettingsResponseModel; + this.Stability = stability; + this.SimilarityBoost = similarityBoost; + this.Style = style; + this.UseSpeakerBoost = useSpeakerBoost; } /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public VoiceSettingsResponseModel() { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.VoiceSharingModerationCheckResponseModel.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.VoiceSharingModerationCheckResponseModel.Json.g.cs new file mode 100644 index 0000000..4402606 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.VoiceSharingModerationCheckResponseModel.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class VoiceSharingModerationCheckResponseModel + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.VoiceSharingModerationCheckResponseModel? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.VoiceSharingModerationCheckResponseModel), + jsonSerializerContext) as global::ElevenLabs.VoiceSharingModerationCheckResponseModel; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.VoiceSharingModerationCheckResponseModel? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.VoiceSharingModerationCheckResponseModel), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.VoiceSharingModerationCheckResponseModel; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.VoiceSharingModerationCheckResponseModel.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.VoiceSharingModerationCheckResponseModel.g.cs index f5d72c2..bb58ce5 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.VoiceSharingModerationCheckResponseModel.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.VoiceSharingModerationCheckResponseModel.g.cs @@ -68,91 +68,46 @@ public sealed partial class VoiceSharingModerationCheckResponseModel [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ElevenLabs.VoiceSharingModerationCheckResponseModel? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// Initializes a new instance of the class. + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public VoiceSharingModerationCheckResponseModel( + int? dateCheckedUnix, + string? nameValue, + bool? nameCheck, + string? descriptionValue, + bool? descriptionCheck, + global::System.Collections.Generic.IList? sampleIds, + global::System.Collections.Generic.IList? sampleChecks, + global::System.Collections.Generic.IList? captchaIds, + global::System.Collections.Generic.IList? captchaChecks) { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.VoiceSharingModerationCheckResponseModel), - jsonSerializerContext) as global::ElevenLabs.VoiceSharingModerationCheckResponseModel; + this.DateCheckedUnix = dateCheckedUnix; + this.NameValue = nameValue; + this.NameCheck = nameCheck; + this.DescriptionValue = descriptionValue; + this.DescriptionCheck = descriptionCheck; + this.SampleIds = sampleIds; + this.SampleChecks = sampleChecks; + this.CaptchaIds = captchaIds; + this.CaptchaChecks = captchaChecks; } /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.VoiceSharingModerationCheckResponseModel? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public VoiceSharingModerationCheckResponseModel() { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.VoiceSharingModerationCheckResponseModel), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.VoiceSharingModerationCheckResponseModel; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.VoiceSharingResponseModel.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.VoiceSharingResponseModel.Json.g.cs new file mode 100644 index 0000000..256e254 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.VoiceSharingResponseModel.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class VoiceSharingResponseModel + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.VoiceSharingResponseModel? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.VoiceSharingResponseModel), + jsonSerializerContext) as global::ElevenLabs.VoiceSharingResponseModel; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.VoiceSharingResponseModel? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.VoiceSharingResponseModel), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.VoiceSharingResponseModel; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.VoiceSharingResponseModel.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.VoiceSharingResponseModel.g.cs index e5c1045..09d900a 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.VoiceSharingResponseModel.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.VoiceSharingResponseModel.g.cs @@ -229,91 +229,112 @@ public sealed partial class VoiceSharingResponseModel [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ElevenLabs.VoiceSharingResponseModel? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// Initializes a new instance of the class. + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public VoiceSharingResponseModel( + global::ElevenLabs.VoiceSharingResponseModelStatus status, + string historyItemSampleId, + int dateUnix, + global::System.Collections.Generic.IList whitelistedEmails, + string publicOwnerId, + string originalVoiceId, + bool financialRewardsEnabled, + bool freeUsersAllowed, + bool liveModerationEnabled, + double rate, + int noticePeriod, + int disableAtUnix, + bool voiceMixingAllowed, + bool featured, + global::ElevenLabs.VoiceSharingResponseModelCategory category, + bool readerAppEnabled, + string imageUrl, + string banReason, + int likedByCount, + int clonedByCount, + string name, + string description, + global::System.Collections.Generic.Dictionary labels, + global::ElevenLabs.VoiceSharingResponseModelReviewStatus reviewStatus, + string reviewMessage, + bool enabledInLibrary, + string? instagramUsername, + string? twitterUsername, + string? youtubeUsername, + string? tiktokUsername, + global::ElevenLabs.VoiceSharingModerationCheckResponseModel? moderationCheck) { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.VoiceSharingResponseModel), - jsonSerializerContext) as global::ElevenLabs.VoiceSharingResponseModel; + this.Status = status; + this.HistoryItemSampleId = historyItemSampleId ?? throw new global::System.ArgumentNullException(nameof(historyItemSampleId)); + this.DateUnix = dateUnix; + this.WhitelistedEmails = whitelistedEmails ?? throw new global::System.ArgumentNullException(nameof(whitelistedEmails)); + this.PublicOwnerId = publicOwnerId ?? throw new global::System.ArgumentNullException(nameof(publicOwnerId)); + this.OriginalVoiceId = originalVoiceId ?? throw new global::System.ArgumentNullException(nameof(originalVoiceId)); + this.FinancialRewardsEnabled = financialRewardsEnabled; + this.FreeUsersAllowed = freeUsersAllowed; + this.LiveModerationEnabled = liveModerationEnabled; + this.Rate = rate; + this.NoticePeriod = noticePeriod; + this.DisableAtUnix = disableAtUnix; + this.VoiceMixingAllowed = voiceMixingAllowed; + this.Featured = featured; + this.Category = category; + this.ReaderAppEnabled = readerAppEnabled; + this.ImageUrl = imageUrl ?? throw new global::System.ArgumentNullException(nameof(imageUrl)); + this.BanReason = banReason ?? throw new global::System.ArgumentNullException(nameof(banReason)); + this.LikedByCount = likedByCount; + this.ClonedByCount = clonedByCount; + this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); + this.Description = description ?? throw new global::System.ArgumentNullException(nameof(description)); + this.Labels = labels ?? throw new global::System.ArgumentNullException(nameof(labels)); + this.ReviewStatus = reviewStatus; + this.ReviewMessage = reviewMessage ?? throw new global::System.ArgumentNullException(nameof(reviewMessage)); + this.EnabledInLibrary = enabledInLibrary; + this.InstagramUsername = instagramUsername; + this.TwitterUsername = twitterUsername; + this.YoutubeUsername = youtubeUsername; + this.TiktokUsername = tiktokUsername; + this.ModerationCheck = moderationCheck; } /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.VoiceSharingResponseModel? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public VoiceSharingResponseModel() { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.VoiceSharingResponseModel), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.VoiceSharingResponseModel; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.VoiceSharingResponseModelLabels.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.VoiceSharingResponseModelLabels.Json.g.cs new file mode 100644 index 0000000..64b6215 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.VoiceSharingResponseModelLabels.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class VoiceSharingResponseModelLabels + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.VoiceSharingResponseModelLabels? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.VoiceSharingResponseModelLabels), + jsonSerializerContext) as global::ElevenLabs.VoiceSharingResponseModelLabels; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.VoiceSharingResponseModelLabels? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.VoiceSharingResponseModelLabels), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.VoiceSharingResponseModelLabels; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.VoiceSharingResponseModelLabels.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.VoiceSharingResponseModelLabels.g.cs index c9a8226..7093f8c 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.VoiceSharingResponseModelLabels.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.VoiceSharingResponseModelLabels.g.cs @@ -15,91 +15,13 @@ public sealed partial class VoiceSharingResponseModelLabels [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static global::ElevenLabs.VoiceSharingResponseModelLabels? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public VoiceSharingResponseModelLabels( + ) { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.VoiceSharingResponseModelLabels), - jsonSerializerContext) as global::ElevenLabs.VoiceSharingResponseModelLabels; } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.VoiceSharingResponseModelLabels? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.VoiceSharingResponseModelLabels), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.VoiceSharingResponseModelLabels; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.VoiceVerificationResponseModel.Json.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.VoiceVerificationResponseModel.Json.g.cs new file mode 100644 index 0000000..b4d74da --- /dev/null +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.VoiceVerificationResponseModel.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace ElevenLabs +{ + public sealed partial class VoiceVerificationResponseModel + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::ElevenLabs.VoiceVerificationResponseModel? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ElevenLabs.VoiceVerificationResponseModel), + jsonSerializerContext) as global::ElevenLabs.VoiceVerificationResponseModel; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::ElevenLabs.VoiceVerificationResponseModel? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::ElevenLabs.VoiceVerificationResponseModel), + jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.VoiceVerificationResponseModel; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.VoiceVerificationResponseModel.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.VoiceVerificationResponseModel.g.cs index 41b120b..46a9e3f 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Models.VoiceVerificationResponseModel.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Models.VoiceVerificationResponseModel.g.cs @@ -54,91 +54,37 @@ public sealed partial class VoiceVerificationResponseModel [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. + /// Initializes a new instance of the class. /// - public static global::ElevenLabs.VoiceVerificationResponseModel? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + /// + /// + /// + /// + /// + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public VoiceVerificationResponseModel( + bool requiresVerification, + bool isVerified, + global::System.Collections.Generic.IList verificationFailures, + int verificationAttemptsCount, + string? language, + global::System.Collections.Generic.IList? verificationAttempts) { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ElevenLabs.VoiceVerificationResponseModel), - jsonSerializerContext) as global::ElevenLabs.VoiceVerificationResponseModel; + this.RequiresVerification = requiresVerification; + this.IsVerified = isVerified; + this.VerificationFailures = verificationFailures ?? throw new global::System.ArgumentNullException(nameof(verificationFailures)); + this.VerificationAttemptsCount = verificationAttemptsCount; + this.Language = language; + this.VerificationAttempts = verificationAttempts; } /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// Initializes a new instance of the class. /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ElevenLabs.VoiceVerificationResponseModel? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + public VoiceVerificationResponseModel() { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ElevenLabs.VoiceVerificationResponseModel), - jsonSerializerContext).ConfigureAwait(false)) as global::ElevenLabs.VoiceVerificationResponseModel; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStream( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.ModelsClient.GetModels.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.ModelsClient.GetModels.g.cs index 4bd9aa6..88bd4c3 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.ModelsClient.GetModels.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.ModelsClient.GetModels.g.cs @@ -29,7 +29,7 @@ partial void ProcessGetModelsResponseContent( /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. /// /// The token to cancel the operation with - /// + /// public async global::System.Threading.Tasks.Task> GetModelsAsync( string? xiApiKey = default, global::System.Threading.CancellationToken cancellationToken = default) @@ -89,30 +89,97 @@ partial void ProcessGetModelsResponseContent( ProcessGetModelsResponse( httpClient: HttpClient, httpResponseMessage: __response); + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::ElevenLabs.HTTPValidationError? __value_422 = null; + if (ReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + __value_422 = global::ElevenLabs.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + __value_422 = await global::ElevenLabs.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + } - var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessGetModelsResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + statusCode: __response.StatusCode) + { + ResponseBody = __content_422, + ResponseObject = __value_422, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } - try + if (ReadResponseAsString) { - __response.EnsureSuccessStatusCode(); + var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessGetModelsResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + return + global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) as global::System.Collections.Generic.IList ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } - catch (global::System.Net.Http.HttpRequestException __ex) + else { - throw new global::System.InvalidOperationException(__content, __ex); - } + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - return - global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) as global::System.Collections.Generic.IList ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return + await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) as global::System.Collections.Generic.IList ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } } } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.ModelsClient.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.ModelsClient.g.cs index 22b7f2b..1ac5c85 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.ModelsClient.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.ModelsClient.g.cs @@ -26,6 +26,11 @@ public sealed partial class ModelsClient : global::ElevenLabs.IModelsClient, glo /// public global::System.Collections.Generic.List Authorizations { get; } + /// + public bool ReadResponseAsString { get; set; } +#if DEBUG + = true; +#endif /// /// /// diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.PathBuilder.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.PathBuilder.g.cs index 932e5e9..71221c1 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.PathBuilder.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.PathBuilder.g.cs @@ -1,5 +1,3 @@ -using System.Linq; - #nullable enable namespace ElevenLabs @@ -103,7 +101,11 @@ public PathBuilder AddRequiredParameter( string delimiter = ",", bool explode = false) { - AddRequiredParameter(name, value.Select(selector).ToArray(), delimiter, explode); + AddRequiredParameter( + name, + global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(value, selector)), + delimiter, + explode); return this; } @@ -167,7 +169,11 @@ public PathBuilder AddOptionalParameter( { if (value is not null) { - AddRequiredParameter(name, value.Select(selector).ToArray(), delimiter, explode); + AddRequiredParameter( + name, + global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(value, selector)), + delimiter, + explode); } return this; diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.Polyfills.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.Polyfills.g.cs index bce395e..ee05f55 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.Polyfills.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.Polyfills.g.cs @@ -7,7 +7,7 @@ namespace ElevenLabs /// /// /// - public static partial class AutoSDKPolyfills + public static partial class AutoSdkPolyfills { /// /// diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.ProjectsClient.CreateProjectsAdd.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.ProjectsClient.CreateProjectsAdd.g.cs index 2720aab..a4eab64 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.ProjectsClient.CreateProjectsAdd.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.ProjectsClient.CreateProjectsAdd.g.cs @@ -32,7 +32,7 @@ partial void ProcessCreateProjectsAddResponseContent( /// /// /// The token to cancel the operation with - /// + /// public async global::System.Threading.Tasks.Task CreateProjectsAddAsync( global::ElevenLabs.BodyAddProjectV1ProjectsAddPost request, string? xiApiKey = default, @@ -197,6 +197,12 @@ partial void ProcessCreateProjectsAddResponseContent( __httpRequestContent.Add( content: new global::System.Net.Http.StringContent($"{request.CallbackUrl}"), name: "callback_url"); + } + if (request.QualityCheckOn != default) + { + __httpRequestContent.Add( + content: new global::System.Net.Http.StringContent($"{request.QualityCheckOn}"), + name: "quality_check_on"); } __httpRequest.Content = __httpRequestContent; @@ -220,30 +226,97 @@ partial void ProcessCreateProjectsAddResponseContent( ProcessCreateProjectsAddResponse( httpClient: HttpClient, httpResponseMessage: __response); + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::ElevenLabs.HTTPValidationError? __value_422 = null; + if (ReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + __value_422 = global::ElevenLabs.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + __value_422 = await global::ElevenLabs.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + } - var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessCreateProjectsAddResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + statusCode: __response.StatusCode) + { + ResponseBody = __content_422, + ResponseObject = __value_422, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } - try + if (ReadResponseAsString) { - __response.EnsureSuccessStatusCode(); + var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessCreateProjectsAddResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + return + global::ElevenLabs.AddProjectResponseModel.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } - catch (global::System.Net.Http.HttpRequestException __ex) + else { - throw new global::System.InvalidOperationException(__content, __ex); - } + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } - return - global::ElevenLabs.AddProjectResponseModel.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + + return + await global::ElevenLabs.AddProjectResponseModel.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } } /// @@ -327,6 +400,9 @@ partial void ProcessCreateProjectsAddResponseContent( /// /// [Deprecated] A url that will be called by our service when the project is converted with a json containing the status of the conversion /// + /// + /// Whether to run quality check on the generated audio and regenerate if needed. + /// /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task CreateProjectsAddAsync( @@ -353,6 +429,7 @@ partial void ProcessCreateProjectsAddResponseContent( bool? volumeNormalization = default, global::System.Collections.Generic.IList? pronunciationDictionaryLocators = default, string? callbackUrl = default, + bool? qualityCheckOn = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::ElevenLabs.BodyAddProjectV1ProjectsAddPost @@ -379,6 +456,7 @@ partial void ProcessCreateProjectsAddResponseContent( VolumeNormalization = volumeNormalization, PronunciationDictionaryLocators = pronunciationDictionaryLocators, CallbackUrl = callbackUrl, + QualityCheckOn = qualityCheckOn, }; return await CreateProjectsAddAsync( diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.ProjectsClient.CreateProjectsByProjectId.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.ProjectsClient.CreateProjectsByProjectId.g.cs index 119ec3e..11500cb 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.ProjectsClient.CreateProjectsByProjectId.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.ProjectsClient.CreateProjectsByProjectId.g.cs @@ -37,7 +37,7 @@ partial void ProcessCreateProjectsByProjectIdResponseContent( /// /// /// The token to cancel the operation with - /// + /// public async global::System.Threading.Tasks.Task CreateProjectsByProjectIdAsync( string projectId, global::ElevenLabs.BodyEditBasicProjectInfoV1ProjectsProjectIdPost request, @@ -111,30 +111,97 @@ partial void ProcessCreateProjectsByProjectIdResponseContent( ProcessCreateProjectsByProjectIdResponse( httpClient: HttpClient, httpResponseMessage: __response); + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::ElevenLabs.HTTPValidationError? __value_422 = null; + if (ReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + __value_422 = global::ElevenLabs.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + __value_422 = await global::ElevenLabs.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + } - var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessCreateProjectsByProjectIdResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + statusCode: __response.StatusCode) + { + ResponseBody = __content_422, + ResponseObject = __value_422, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } - try + if (ReadResponseAsString) { - __response.EnsureSuccessStatusCode(); + var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessCreateProjectsByProjectIdResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + return + global::ElevenLabs.EditProjectResponseModel.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } - catch (global::System.Net.Http.HttpRequestException __ex) + else { - throw new global::System.InvalidOperationException(__content, __ex); - } + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } - return - global::ElevenLabs.EditProjectResponseModel.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + + return + await global::ElevenLabs.EditProjectResponseModel.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } } /// @@ -169,6 +236,9 @@ partial void ProcessCreateProjectsByProjectIdResponseContent( /// When the project is downloaded, should the returned audio have postprocessing in order to make it compliant with audiobook normalized volume requirements
/// Default Value: false /// + /// + /// Whether to run quality check on the generated audio and regenerate if needed. + /// /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task CreateProjectsByProjectIdAsync( @@ -181,6 +251,7 @@ partial void ProcessCreateProjectsByProjectIdResponseContent( string? author = default, string? isbnNumber = default, bool? volumeNormalization = default, + bool? qualityCheckOn = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::ElevenLabs.BodyEditBasicProjectInfoV1ProjectsProjectIdPost @@ -192,6 +263,7 @@ partial void ProcessCreateProjectsByProjectIdResponseContent( Author = author, IsbnNumber = isbnNumber, VolumeNormalization = volumeNormalization, + QualityCheckOn = qualityCheckOn, }; return await CreateProjectsByProjectIdAsync( diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.ProjectsClient.CreateProjectsByProjectIdChaptersAdd.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.ProjectsClient.CreateProjectsByProjectIdChaptersAdd.g.cs index 09264db..c772452 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.ProjectsClient.CreateProjectsByProjectIdChaptersAdd.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.ProjectsClient.CreateProjectsByProjectIdChaptersAdd.g.cs @@ -37,7 +37,7 @@ partial void ProcessCreateProjectsByProjectIdChaptersAddResponseContent( /// /// /// The token to cancel the operation with - /// + /// public async global::System.Threading.Tasks.Task CreateProjectsByProjectIdChaptersAddAsync( string projectId, global::ElevenLabs.BodyAddChapterToAProjectV1ProjectsProjectIdChaptersAddPost request, @@ -111,30 +111,97 @@ partial void ProcessCreateProjectsByProjectIdChaptersAddResponseContent( ProcessCreateProjectsByProjectIdChaptersAddResponse( httpClient: HttpClient, httpResponseMessage: __response); + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::ElevenLabs.HTTPValidationError? __value_422 = null; + if (ReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + __value_422 = global::ElevenLabs.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + __value_422 = await global::ElevenLabs.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + } - var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessCreateProjectsByProjectIdChaptersAddResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + statusCode: __response.StatusCode) + { + ResponseBody = __content_422, + ResponseObject = __value_422, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } - try + if (ReadResponseAsString) { - __response.EnsureSuccessStatusCode(); + var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessCreateProjectsByProjectIdChaptersAddResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + return + global::ElevenLabs.AddChapterResponseModel.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } - catch (global::System.Net.Http.HttpRequestException __ex) + else { - throw new global::System.InvalidOperationException(__content, __ex); - } + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } - return - global::ElevenLabs.AddChapterResponseModel.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + + return + await global::ElevenLabs.AddChapterResponseModel.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } } /// diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.ProjectsClient.CreateProjectsByProjectIdChaptersByChapterIdConvert.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.ProjectsClient.CreateProjectsByProjectIdChaptersByChapterIdConvert.g.cs index 3a01b4c..ee5a7d2 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.ProjectsClient.CreateProjectsByProjectIdChaptersByChapterIdConvert.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.ProjectsClient.CreateProjectsByProjectIdChaptersByChapterIdConvert.g.cs @@ -39,7 +39,7 @@ partial void ProcessCreateProjectsByProjectIdChaptersByChapterIdConvertResponseC /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. /// /// The token to cancel the operation with - /// + /// public async global::System.Threading.Tasks.Task CreateProjectsByProjectIdChaptersByChapterIdConvertAsync( string projectId, string chapterId, @@ -105,28 +105,93 @@ partial void ProcessCreateProjectsByProjectIdChaptersByChapterIdConvertResponseC ProcessCreateProjectsByProjectIdChaptersByChapterIdConvertResponse( httpClient: HttpClient, httpResponseMessage: __response); + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::ElevenLabs.HTTPValidationError? __value_422 = null; + if (ReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + __value_422 = global::ElevenLabs.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + __value_422 = await global::ElevenLabs.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + } - var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessCreateProjectsByProjectIdChaptersByChapterIdConvertResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + statusCode: __response.StatusCode) + { + ResponseBody = __content_422, + ResponseObject = __value_422, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } - try + if (ReadResponseAsString) { - __response.EnsureSuccessStatusCode(); + var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessCreateProjectsByProjectIdChaptersByChapterIdConvertResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + return __content; } - catch (global::System.Net.Http.HttpRequestException __ex) + else { - throw new global::System.InvalidOperationException(__content, __ex); - } + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - return __content; + return __content; + } } } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.ProjectsClient.CreateProjectsByProjectIdChaptersByChapterIdSnapshotsByChapterSnapshotIdStream.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.ProjectsClient.CreateProjectsByProjectIdChaptersByChapterIdSnapshotsByChapterSnapshotIdStream.g.cs index 171b86a..50c6bc8 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.ProjectsClient.CreateProjectsByProjectIdChaptersByChapterIdSnapshotsByChapterSnapshotIdStream.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.ProjectsClient.CreateProjectsByProjectIdChaptersByChapterIdSnapshotsByChapterSnapshotIdStream.g.cs @@ -24,11 +24,6 @@ partial void ProcessCreateProjectsByProjectIdChaptersByChapterIdSnapshotsByChapt global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessCreateProjectsByProjectIdChaptersByChapterIdSnapshotsByChapterSnapshotIdStreamResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - /// /// Stream Chapter Audio
/// Stream the audio from a chapter snapshot. Use `GET /v1/projects/{project_id}/chapters/{chapter_id}/snapshots` to return the chapter snapshots of a chapter. @@ -47,8 +42,8 @@ partial void ProcessCreateProjectsByProjectIdChaptersByChapterIdSnapshotsByChapt /// /// /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task CreateProjectsByProjectIdChaptersByChapterIdSnapshotsByChapterSnapshotIdStreamAsync( + /// + public async global::System.Threading.Tasks.Task CreateProjectsByProjectIdChaptersByChapterIdSnapshotsByChapterSnapshotIdStreamAsync( string projectId, string chapterId, string chapterSnapshotId, @@ -127,30 +122,23 @@ partial void ProcessCreateProjectsByProjectIdChaptersByChapterIdSnapshotsByChapt ProcessCreateProjectsByProjectIdChaptersByChapterIdSnapshotsByChapterSnapshotIdStreamResponse( httpClient: HttpClient, httpResponseMessage: __response); - - var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessCreateProjectsByProjectIdChaptersByChapterIdSnapshotsByChapterSnapshotIdStreamResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - try { __response.EnsureSuccessStatusCode(); } catch (global::System.Net.Http.HttpRequestException __ex) { - throw new global::System.InvalidOperationException(__content, __ex); + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; } - - return - global::ElevenLabs.HTTPValidationError.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } /// @@ -175,7 +163,7 @@ partial void ProcessCreateProjectsByProjectIdChaptersByChapterIdSnapshotsByChapt /// /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task CreateProjectsByProjectIdChaptersByChapterIdSnapshotsByChapterSnapshotIdStreamAsync( + public async global::System.Threading.Tasks.Task CreateProjectsByProjectIdChaptersByChapterIdSnapshotsByChapterSnapshotIdStreamAsync( string projectId, string chapterId, string chapterSnapshotId, @@ -188,7 +176,7 @@ partial void ProcessCreateProjectsByProjectIdChaptersByChapterIdSnapshotsByChapt ConvertToMpeg = convertToMpeg, }; - return await CreateProjectsByProjectIdChaptersByChapterIdSnapshotsByChapterSnapshotIdStreamAsync( + await CreateProjectsByProjectIdChaptersByChapterIdSnapshotsByChapterSnapshotIdStreamAsync( projectId: projectId, chapterId: chapterId, chapterSnapshotId: chapterSnapshotId, diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.ProjectsClient.CreateProjectsByProjectIdConvert.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.ProjectsClient.CreateProjectsByProjectIdConvert.g.cs index 5e46261..4860310 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.ProjectsClient.CreateProjectsByProjectIdConvert.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.ProjectsClient.CreateProjectsByProjectIdConvert.g.cs @@ -34,7 +34,7 @@ partial void ProcessCreateProjectsByProjectIdConvertResponseContent( /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. /// /// The token to cancel the operation with - /// + /// public async global::System.Threading.Tasks.Task CreateProjectsByProjectIdConvertAsync( string projectId, string? xiApiKey = default, @@ -97,28 +97,93 @@ partial void ProcessCreateProjectsByProjectIdConvertResponseContent( ProcessCreateProjectsByProjectIdConvertResponse( httpClient: HttpClient, httpResponseMessage: __response); + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::ElevenLabs.HTTPValidationError? __value_422 = null; + if (ReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + __value_422 = global::ElevenLabs.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + __value_422 = await global::ElevenLabs.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + } - var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessCreateProjectsByProjectIdConvertResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + statusCode: __response.StatusCode) + { + ResponseBody = __content_422, + ResponseObject = __value_422, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } - try + if (ReadResponseAsString) { - __response.EnsureSuccessStatusCode(); + var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessCreateProjectsByProjectIdConvertResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + return __content; } - catch (global::System.Net.Http.HttpRequestException __ex) + else { - throw new global::System.InvalidOperationException(__content, __ex); - } + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - return __content; + return __content; + } } } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.ProjectsClient.CreateProjectsByProjectIdSnapshotsByProjectSnapshotIdArchive.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.ProjectsClient.CreateProjectsByProjectIdSnapshotsByProjectSnapshotIdArchive.g.cs index b1c7fb3..f01e06f 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.ProjectsClient.CreateProjectsByProjectIdSnapshotsByProjectSnapshotIdArchive.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.ProjectsClient.CreateProjectsByProjectIdSnapshotsByProjectSnapshotIdArchive.g.cs @@ -20,11 +20,6 @@ partial void ProcessCreateProjectsByProjectIdSnapshotsByProjectSnapshotIdArchive global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessCreateProjectsByProjectIdSnapshotsByProjectSnapshotIdArchiveResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - /// /// Streams Archive With Project Audio
/// Streams archive with project audio. @@ -39,8 +34,8 @@ partial void ProcessCreateProjectsByProjectIdSnapshotsByProjectSnapshotIdArchive /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. /// /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task CreateProjectsByProjectIdSnapshotsByProjectSnapshotIdArchiveAsync( + /// + public async global::System.Threading.Tasks.Task CreateProjectsByProjectIdSnapshotsByProjectSnapshotIdArchiveAsync( string projectId, string projectSnapshotId, string? xiApiKey = default, @@ -105,30 +100,23 @@ partial void ProcessCreateProjectsByProjectIdSnapshotsByProjectSnapshotIdArchive ProcessCreateProjectsByProjectIdSnapshotsByProjectSnapshotIdArchiveResponse( httpClient: HttpClient, httpResponseMessage: __response); - - var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessCreateProjectsByProjectIdSnapshotsByProjectSnapshotIdArchiveResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - try { __response.EnsureSuccessStatusCode(); } catch (global::System.Net.Http.HttpRequestException __ex) { - throw new global::System.InvalidOperationException(__content, __ex); + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; } - - return - global::ElevenLabs.HTTPValidationError.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.ProjectsClient.CreateProjectsByProjectIdSnapshotsByProjectSnapshotIdStream.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.ProjectsClient.CreateProjectsByProjectIdSnapshotsByProjectSnapshotIdStream.g.cs index c583fbf..cada5e3 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.ProjectsClient.CreateProjectsByProjectIdSnapshotsByProjectSnapshotIdStream.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.ProjectsClient.CreateProjectsByProjectIdSnapshotsByProjectSnapshotIdStream.g.cs @@ -22,11 +22,6 @@ partial void ProcessCreateProjectsByProjectIdSnapshotsByProjectSnapshotIdStreamR global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessCreateProjectsByProjectIdSnapshotsByProjectSnapshotIdStreamResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - /// /// Stream Project Audio
/// Stream the audio from a project snapshot. @@ -42,8 +37,8 @@ partial void ProcessCreateProjectsByProjectIdSnapshotsByProjectSnapshotIdStreamR /// /// /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task CreateProjectsByProjectIdSnapshotsByProjectSnapshotIdStreamAsync( + /// + public async global::System.Threading.Tasks.Task CreateProjectsByProjectIdSnapshotsByProjectSnapshotIdStreamAsync( string projectId, string projectSnapshotId, global::ElevenLabs.BodyStreamProjectAudioV1ProjectsProjectIdSnapshotsProjectSnapshotIdStreamPost request, @@ -119,30 +114,23 @@ partial void ProcessCreateProjectsByProjectIdSnapshotsByProjectSnapshotIdStreamR ProcessCreateProjectsByProjectIdSnapshotsByProjectSnapshotIdStreamResponse( httpClient: HttpClient, httpResponseMessage: __response); - - var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessCreateProjectsByProjectIdSnapshotsByProjectSnapshotIdStreamResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - try { __response.EnsureSuccessStatusCode(); } catch (global::System.Net.Http.HttpRequestException __ex) { - throw new global::System.InvalidOperationException(__content, __ex); + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; } - - return - global::ElevenLabs.HTTPValidationError.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } /// @@ -164,7 +152,7 @@ partial void ProcessCreateProjectsByProjectIdSnapshotsByProjectSnapshotIdStreamR /// /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task CreateProjectsByProjectIdSnapshotsByProjectSnapshotIdStreamAsync( + public async global::System.Threading.Tasks.Task CreateProjectsByProjectIdSnapshotsByProjectSnapshotIdStreamAsync( string projectId, string projectSnapshotId, string? xiApiKey = default, @@ -176,7 +164,7 @@ partial void ProcessCreateProjectsByProjectIdSnapshotsByProjectSnapshotIdStreamR ConvertToMpeg = convertToMpeg, }; - return await CreateProjectsByProjectIdSnapshotsByProjectSnapshotIdStreamAsync( + await CreateProjectsByProjectIdSnapshotsByProjectSnapshotIdStreamAsync( projectId: projectId, projectSnapshotId: projectSnapshotId, xiApiKey: xiApiKey, diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.ProjectsClient.CreateProjectsByProjectIdUpdatePronunciationDictionaries.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.ProjectsClient.CreateProjectsByProjectIdUpdatePronunciationDictionaries.g.cs index 6cde687..b9349bf 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.ProjectsClient.CreateProjectsByProjectIdUpdatePronunciationDictionaries.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.ProjectsClient.CreateProjectsByProjectIdUpdatePronunciationDictionaries.g.cs @@ -37,7 +37,7 @@ partial void ProcessCreateProjectsByProjectIdUpdatePronunciationDictionariesResp /// /// /// The token to cancel the operation with - /// + /// public async global::System.Threading.Tasks.Task CreateProjectsByProjectIdUpdatePronunciationDictionariesAsync( string projectId, global::ElevenLabs.BodyUpdatePronunciationDictionariesV1ProjectsProjectIdUpdatePronunciationDictionariesPost request, @@ -111,28 +111,93 @@ partial void ProcessCreateProjectsByProjectIdUpdatePronunciationDictionariesResp ProcessCreateProjectsByProjectIdUpdatePronunciationDictionariesResponse( httpClient: HttpClient, httpResponseMessage: __response); + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::ElevenLabs.HTTPValidationError? __value_422 = null; + if (ReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + __value_422 = global::ElevenLabs.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + __value_422 = await global::ElevenLabs.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + } - var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessCreateProjectsByProjectIdUpdatePronunciationDictionariesResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + statusCode: __response.StatusCode) + { + ResponseBody = __content_422, + ResponseObject = __value_422, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } - try + if (ReadResponseAsString) { - __response.EnsureSuccessStatusCode(); + var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessCreateProjectsByProjectIdUpdatePronunciationDictionariesResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + return __content; } - catch (global::System.Net.Http.HttpRequestException __ex) + else { - throw new global::System.InvalidOperationException(__content, __ex); - } + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } - return __content; + var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + return __content; + } } /// diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.ProjectsClient.DeleteProjectsByProjectId.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.ProjectsClient.DeleteProjectsByProjectId.g.cs index 4a574c1..9d64d4f 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.ProjectsClient.DeleteProjectsByProjectId.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.ProjectsClient.DeleteProjectsByProjectId.g.cs @@ -34,7 +34,7 @@ partial void ProcessDeleteProjectsByProjectIdResponseContent( /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. /// /// The token to cancel the operation with - /// + /// public async global::System.Threading.Tasks.Task DeleteProjectsByProjectIdAsync( string projectId, string? xiApiKey = default, @@ -97,28 +97,93 @@ partial void ProcessDeleteProjectsByProjectIdResponseContent( ProcessDeleteProjectsByProjectIdResponse( httpClient: HttpClient, httpResponseMessage: __response); + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::ElevenLabs.HTTPValidationError? __value_422 = null; + if (ReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + __value_422 = global::ElevenLabs.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + __value_422 = await global::ElevenLabs.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + } - var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessDeleteProjectsByProjectIdResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + statusCode: __response.StatusCode) + { + ResponseBody = __content_422, + ResponseObject = __value_422, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } - try + if (ReadResponseAsString) { - __response.EnsureSuccessStatusCode(); + var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessDeleteProjectsByProjectIdResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + return __content; } - catch (global::System.Net.Http.HttpRequestException __ex) + else { - throw new global::System.InvalidOperationException(__content, __ex); - } + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - return __content; + return __content; + } } } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.ProjectsClient.DeleteProjectsByProjectIdChaptersByChapterId.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.ProjectsClient.DeleteProjectsByProjectIdChaptersByChapterId.g.cs index f385a8f..6386d41 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.ProjectsClient.DeleteProjectsByProjectIdChaptersByChapterId.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.ProjectsClient.DeleteProjectsByProjectIdChaptersByChapterId.g.cs @@ -39,7 +39,7 @@ partial void ProcessDeleteProjectsByProjectIdChaptersByChapterIdResponseContent( /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. /// /// The token to cancel the operation with - /// + /// public async global::System.Threading.Tasks.Task DeleteProjectsByProjectIdChaptersByChapterIdAsync( string projectId, string chapterId, @@ -105,28 +105,93 @@ partial void ProcessDeleteProjectsByProjectIdChaptersByChapterIdResponseContent( ProcessDeleteProjectsByProjectIdChaptersByChapterIdResponse( httpClient: HttpClient, httpResponseMessage: __response); + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::ElevenLabs.HTTPValidationError? __value_422 = null; + if (ReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + __value_422 = global::ElevenLabs.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + __value_422 = await global::ElevenLabs.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + } - var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessDeleteProjectsByProjectIdChaptersByChapterIdResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + statusCode: __response.StatusCode) + { + ResponseBody = __content_422, + ResponseObject = __value_422, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } - try + if (ReadResponseAsString) { - __response.EnsureSuccessStatusCode(); + var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessDeleteProjectsByProjectIdChaptersByChapterIdResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + return __content; } - catch (global::System.Net.Http.HttpRequestException __ex) + else { - throw new global::System.InvalidOperationException(__content, __ex); - } + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - return __content; + return __content; + } } } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.ProjectsClient.GetProjects.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.ProjectsClient.GetProjects.g.cs index 1328f87..2e84765 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.ProjectsClient.GetProjects.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.ProjectsClient.GetProjects.g.cs @@ -29,7 +29,7 @@ partial void ProcessGetProjectsResponseContent( /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. /// /// The token to cancel the operation with - /// + /// public async global::System.Threading.Tasks.Task GetProjectsAsync( string? xiApiKey = default, global::System.Threading.CancellationToken cancellationToken = default) @@ -89,30 +89,97 @@ partial void ProcessGetProjectsResponseContent( ProcessGetProjectsResponse( httpClient: HttpClient, httpResponseMessage: __response); + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::ElevenLabs.HTTPValidationError? __value_422 = null; + if (ReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + __value_422 = global::ElevenLabs.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + __value_422 = await global::ElevenLabs.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + } - var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessGetProjectsResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + statusCode: __response.StatusCode) + { + ResponseBody = __content_422, + ResponseObject = __value_422, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } - try + if (ReadResponseAsString) { - __response.EnsureSuccessStatusCode(); + var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessGetProjectsResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + return + global::ElevenLabs.GetProjectsResponseModel.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } - catch (global::System.Net.Http.HttpRequestException __ex) + else { - throw new global::System.InvalidOperationException(__content, __ex); - } + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - return - global::ElevenLabs.GetProjectsResponseModel.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return + await global::ElevenLabs.GetProjectsResponseModel.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } } } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.ProjectsClient.GetProjectsByProjectId.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.ProjectsClient.GetProjectsByProjectId.g.cs index 7f77ee2..921bc68 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.ProjectsClient.GetProjectsByProjectId.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.ProjectsClient.GetProjectsByProjectId.g.cs @@ -34,7 +34,7 @@ partial void ProcessGetProjectsByProjectIdResponseContent( /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. /// /// The token to cancel the operation with - /// + /// public async global::System.Threading.Tasks.Task GetProjectsByProjectIdAsync( string projectId, string? xiApiKey = default, @@ -97,30 +97,97 @@ partial void ProcessGetProjectsByProjectIdResponseContent( ProcessGetProjectsByProjectIdResponse( httpClient: HttpClient, httpResponseMessage: __response); + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::ElevenLabs.HTTPValidationError? __value_422 = null; + if (ReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + __value_422 = global::ElevenLabs.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + __value_422 = await global::ElevenLabs.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + } - var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessGetProjectsByProjectIdResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + statusCode: __response.StatusCode) + { + ResponseBody = __content_422, + ResponseObject = __value_422, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } - try + if (ReadResponseAsString) { - __response.EnsureSuccessStatusCode(); + var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessGetProjectsByProjectIdResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + return + global::ElevenLabs.ProjectExtendedResponseModel.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } - catch (global::System.Net.Http.HttpRequestException __ex) + else { - throw new global::System.InvalidOperationException(__content, __ex); - } + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - return - global::ElevenLabs.ProjectExtendedResponseModel.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return + await global::ElevenLabs.ProjectExtendedResponseModel.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } } } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.ProjectsClient.GetProjectsByProjectIdChapters.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.ProjectsClient.GetProjectsByProjectIdChapters.g.cs index 8ca1234..cfeed9e 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.ProjectsClient.GetProjectsByProjectIdChapters.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.ProjectsClient.GetProjectsByProjectIdChapters.g.cs @@ -34,7 +34,7 @@ partial void ProcessGetProjectsByProjectIdChaptersResponseContent( /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. /// /// The token to cancel the operation with - /// + /// public async global::System.Threading.Tasks.Task GetProjectsByProjectIdChaptersAsync( string projectId, string? xiApiKey = default, @@ -97,30 +97,97 @@ partial void ProcessGetProjectsByProjectIdChaptersResponseContent( ProcessGetProjectsByProjectIdChaptersResponse( httpClient: HttpClient, httpResponseMessage: __response); + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::ElevenLabs.HTTPValidationError? __value_422 = null; + if (ReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + __value_422 = global::ElevenLabs.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + __value_422 = await global::ElevenLabs.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + } - var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessGetProjectsByProjectIdChaptersResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + statusCode: __response.StatusCode) + { + ResponseBody = __content_422, + ResponseObject = __value_422, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } - try + if (ReadResponseAsString) { - __response.EnsureSuccessStatusCode(); + var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessGetProjectsByProjectIdChaptersResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + return + global::ElevenLabs.GetChaptersResponseModel.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } - catch (global::System.Net.Http.HttpRequestException __ex) + else { - throw new global::System.InvalidOperationException(__content, __ex); - } + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - return - global::ElevenLabs.GetChaptersResponseModel.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return + await global::ElevenLabs.GetChaptersResponseModel.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } } } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.ProjectsClient.GetProjectsByProjectIdChaptersByChapterId.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.ProjectsClient.GetProjectsByProjectIdChaptersByChapterId.g.cs index c3c457e..e507d62 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.ProjectsClient.GetProjectsByProjectIdChaptersByChapterId.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.ProjectsClient.GetProjectsByProjectIdChaptersByChapterId.g.cs @@ -39,7 +39,7 @@ partial void ProcessGetProjectsByProjectIdChaptersByChapterIdResponseContent( /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. /// /// The token to cancel the operation with - /// + /// public async global::System.Threading.Tasks.Task GetProjectsByProjectIdChaptersByChapterIdAsync( string projectId, string chapterId, @@ -105,30 +105,97 @@ partial void ProcessGetProjectsByProjectIdChaptersByChapterIdResponseContent( ProcessGetProjectsByProjectIdChaptersByChapterIdResponse( httpClient: HttpClient, httpResponseMessage: __response); + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::ElevenLabs.HTTPValidationError? __value_422 = null; + if (ReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + __value_422 = global::ElevenLabs.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + __value_422 = await global::ElevenLabs.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + } - var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessGetProjectsByProjectIdChaptersByChapterIdResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + statusCode: __response.StatusCode) + { + ResponseBody = __content_422, + ResponseObject = __value_422, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } - try + if (ReadResponseAsString) { - __response.EnsureSuccessStatusCode(); + var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessGetProjectsByProjectIdChaptersByChapterIdResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + return + global::ElevenLabs.ChapterResponseModel.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } - catch (global::System.Net.Http.HttpRequestException __ex) + else { - throw new global::System.InvalidOperationException(__content, __ex); - } + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - return - global::ElevenLabs.ChapterResponseModel.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return + await global::ElevenLabs.ChapterResponseModel.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } } } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.ProjectsClient.GetProjectsByProjectIdChaptersByChapterIdSnapshots.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.ProjectsClient.GetProjectsByProjectIdChaptersByChapterIdSnapshots.g.cs index 988d687..a1e5004 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.ProjectsClient.GetProjectsByProjectIdChaptersByChapterIdSnapshots.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.ProjectsClient.GetProjectsByProjectIdChaptersByChapterIdSnapshots.g.cs @@ -39,7 +39,7 @@ partial void ProcessGetProjectsByProjectIdChaptersByChapterIdSnapshotsResponseCo /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. /// /// The token to cancel the operation with - /// + /// public async global::System.Threading.Tasks.Task GetProjectsByProjectIdChaptersByChapterIdSnapshotsAsync( string projectId, string chapterId, @@ -105,30 +105,97 @@ partial void ProcessGetProjectsByProjectIdChaptersByChapterIdSnapshotsResponseCo ProcessGetProjectsByProjectIdChaptersByChapterIdSnapshotsResponse( httpClient: HttpClient, httpResponseMessage: __response); + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::ElevenLabs.HTTPValidationError? __value_422 = null; + if (ReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + __value_422 = global::ElevenLabs.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + __value_422 = await global::ElevenLabs.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + } - var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessGetProjectsByProjectIdChaptersByChapterIdSnapshotsResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + statusCode: __response.StatusCode) + { + ResponseBody = __content_422, + ResponseObject = __value_422, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } - try + if (ReadResponseAsString) { - __response.EnsureSuccessStatusCode(); + var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessGetProjectsByProjectIdChaptersByChapterIdSnapshotsResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + return + global::ElevenLabs.ChapterSnapshotsResponseModel.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } - catch (global::System.Net.Http.HttpRequestException __ex) + else { - throw new global::System.InvalidOperationException(__content, __ex); - } + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - return - global::ElevenLabs.ChapterSnapshotsResponseModel.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return + await global::ElevenLabs.ChapterSnapshotsResponseModel.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } } } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.ProjectsClient.GetProjectsByProjectIdSnapshots.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.ProjectsClient.GetProjectsByProjectIdSnapshots.g.cs index 05ebf4f..8aafe2e 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.ProjectsClient.GetProjectsByProjectIdSnapshots.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.ProjectsClient.GetProjectsByProjectIdSnapshots.g.cs @@ -34,7 +34,7 @@ partial void ProcessGetProjectsByProjectIdSnapshotsResponseContent( /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. /// /// The token to cancel the operation with - /// + /// public async global::System.Threading.Tasks.Task GetProjectsByProjectIdSnapshotsAsync( string projectId, string? xiApiKey = default, @@ -97,30 +97,97 @@ partial void ProcessGetProjectsByProjectIdSnapshotsResponseContent( ProcessGetProjectsByProjectIdSnapshotsResponse( httpClient: HttpClient, httpResponseMessage: __response); + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::ElevenLabs.HTTPValidationError? __value_422 = null; + if (ReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + __value_422 = global::ElevenLabs.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + __value_422 = await global::ElevenLabs.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + } - var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessGetProjectsByProjectIdSnapshotsResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + statusCode: __response.StatusCode) + { + ResponseBody = __content_422, + ResponseObject = __value_422, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } - try + if (ReadResponseAsString) { - __response.EnsureSuccessStatusCode(); + var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessGetProjectsByProjectIdSnapshotsResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + return + global::ElevenLabs.ProjectSnapshotsResponseModel.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } - catch (global::System.Net.Http.HttpRequestException __ex) + else { - throw new global::System.InvalidOperationException(__content, __ex); - } + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - return - global::ElevenLabs.ProjectSnapshotsResponseModel.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return + await global::ElevenLabs.ProjectSnapshotsResponseModel.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } } } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.ProjectsClient.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.ProjectsClient.g.cs index e072a41..63e397c 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.ProjectsClient.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.ProjectsClient.g.cs @@ -26,6 +26,11 @@ public sealed partial class ProjectsClient : global::ElevenLabs.IProjectsClient, /// public global::System.Collections.Generic.List Authorizations { get; } + /// + public bool ReadResponseAsString { get; set; } +#if DEBUG + = true; +#endif /// /// /// diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.PronunciationDictionaryClient.CreatePronunciationDictionariesAddFromFile.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.PronunciationDictionaryClient.CreatePronunciationDictionariesAddFromFile.g.cs index abd9fa2..096af5b 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.PronunciationDictionaryClient.CreatePronunciationDictionariesAddFromFile.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.PronunciationDictionaryClient.CreatePronunciationDictionariesAddFromFile.g.cs @@ -32,7 +32,7 @@ partial void ProcessCreatePronunciationDictionariesAddFromFileResponseContent( /// /// /// The token to cancel the operation with - /// + /// public async global::System.Threading.Tasks.Task CreatePronunciationDictionariesAddFromFileAsync( global::ElevenLabs.BodyAddAPronunciationDictionaryV1PronunciationDictionariesAddFromFilePost request, string? xiApiKey = default, @@ -127,30 +127,97 @@ partial void ProcessCreatePronunciationDictionariesAddFromFileResponseContent( ProcessCreatePronunciationDictionariesAddFromFileResponse( httpClient: HttpClient, httpResponseMessage: __response); + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::ElevenLabs.HTTPValidationError? __value_422 = null; + if (ReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + __value_422 = global::ElevenLabs.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + __value_422 = await global::ElevenLabs.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + } - var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessCreatePronunciationDictionariesAddFromFileResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + statusCode: __response.StatusCode) + { + ResponseBody = __content_422, + ResponseObject = __value_422, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } - try + if (ReadResponseAsString) { - __response.EnsureSuccessStatusCode(); + var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessCreatePronunciationDictionariesAddFromFileResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + return + global::ElevenLabs.AddPronunciationDictionaryResponseModel.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } - catch (global::System.Net.Http.HttpRequestException __ex) + else { - throw new global::System.InvalidOperationException(__content, __ex); - } + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - return - global::ElevenLabs.AddPronunciationDictionaryResponseModel.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return + await global::ElevenLabs.AddPronunciationDictionaryResponseModel.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } } /// diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.PronunciationDictionaryClient.CreatePronunciationDictionariesByPronunciationDictionaryIdAddRules.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.PronunciationDictionaryClient.CreatePronunciationDictionariesByPronunciationDictionaryIdAddRules.g.cs index 5fec9ac..4a2100c 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.PronunciationDictionaryClient.CreatePronunciationDictionariesByPronunciationDictionaryIdAddRules.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.PronunciationDictionaryClient.CreatePronunciationDictionariesByPronunciationDictionaryIdAddRules.g.cs @@ -37,7 +37,7 @@ partial void ProcessCreatePronunciationDictionariesByPronunciationDictionaryIdAd /// /// /// The token to cancel the operation with - /// + /// public async global::System.Threading.Tasks.Task CreatePronunciationDictionariesByPronunciationDictionaryIdAddRulesAsync( string pronunciationDictionaryId, global::ElevenLabs.BodyAddRulesToThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdAddRulesPost request, @@ -111,30 +111,97 @@ partial void ProcessCreatePronunciationDictionariesByPronunciationDictionaryIdAd ProcessCreatePronunciationDictionariesByPronunciationDictionaryIdAddRulesResponse( httpClient: HttpClient, httpResponseMessage: __response); + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::ElevenLabs.HTTPValidationError? __value_422 = null; + if (ReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + __value_422 = global::ElevenLabs.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + __value_422 = await global::ElevenLabs.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + } - var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessCreatePronunciationDictionariesByPronunciationDictionaryIdAddRulesResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + statusCode: __response.StatusCode) + { + ResponseBody = __content_422, + ResponseObject = __value_422, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } - try + if (ReadResponseAsString) { - __response.EnsureSuccessStatusCode(); + var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessCreatePronunciationDictionariesByPronunciationDictionaryIdAddRulesResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + return + global::ElevenLabs.AddPronunciationDictionaryRulesResponseModel.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } - catch (global::System.Net.Http.HttpRequestException __ex) + else { - throw new global::System.InvalidOperationException(__content, __ex); - } + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } - return - global::ElevenLabs.AddPronunciationDictionaryRulesResponseModel.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + + return + await global::ElevenLabs.AddPronunciationDictionaryRulesResponseModel.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } } /// diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.PronunciationDictionaryClient.CreatePronunciationDictionariesByPronunciationDictionaryIdRemoveRules.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.PronunciationDictionaryClient.CreatePronunciationDictionariesByPronunciationDictionaryIdRemoveRules.g.cs index cdfd5b7..e548f7b 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.PronunciationDictionaryClient.CreatePronunciationDictionariesByPronunciationDictionaryIdRemoveRules.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.PronunciationDictionaryClient.CreatePronunciationDictionariesByPronunciationDictionaryIdRemoveRules.g.cs @@ -37,7 +37,7 @@ partial void ProcessCreatePronunciationDictionariesByPronunciationDictionaryIdRe /// /// /// The token to cancel the operation with - /// + /// public async global::System.Threading.Tasks.Task CreatePronunciationDictionariesByPronunciationDictionaryIdRemoveRulesAsync( string pronunciationDictionaryId, global::ElevenLabs.BodyRemoveRulesFromThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdRemoveRulesPost request, @@ -111,30 +111,97 @@ partial void ProcessCreatePronunciationDictionariesByPronunciationDictionaryIdRe ProcessCreatePronunciationDictionariesByPronunciationDictionaryIdRemoveRulesResponse( httpClient: HttpClient, httpResponseMessage: __response); + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::ElevenLabs.HTTPValidationError? __value_422 = null; + if (ReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + __value_422 = global::ElevenLabs.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + __value_422 = await global::ElevenLabs.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + } - var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessCreatePronunciationDictionariesByPronunciationDictionaryIdRemoveRulesResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + statusCode: __response.StatusCode) + { + ResponseBody = __content_422, + ResponseObject = __value_422, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } - try + if (ReadResponseAsString) { - __response.EnsureSuccessStatusCode(); + var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessCreatePronunciationDictionariesByPronunciationDictionaryIdRemoveRulesResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + return + global::ElevenLabs.RemovePronunciationDictionaryRulesResponseModel.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } - catch (global::System.Net.Http.HttpRequestException __ex) + else { - throw new global::System.InvalidOperationException(__content, __ex); - } + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } - return - global::ElevenLabs.RemovePronunciationDictionaryRulesResponseModel.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + + return + await global::ElevenLabs.RemovePronunciationDictionaryRulesResponseModel.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } } /// diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.PronunciationDictionaryClient.GetPronunciationDictionaries.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.PronunciationDictionaryClient.GetPronunciationDictionaries.g.cs index d6d3411..77c71d9 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.PronunciationDictionaryClient.GetPronunciationDictionaries.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.PronunciationDictionaryClient.GetPronunciationDictionaries.g.cs @@ -40,7 +40,7 @@ partial void ProcessGetPronunciationDictionariesResponseContent( /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. /// /// The token to cancel the operation with - /// + /// public async global::System.Threading.Tasks.Task GetPronunciationDictionariesAsync( string? cursor = default, int? pageSize = default, @@ -110,30 +110,97 @@ partial void ProcessGetPronunciationDictionariesResponseContent( ProcessGetPronunciationDictionariesResponse( httpClient: HttpClient, httpResponseMessage: __response); + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::ElevenLabs.HTTPValidationError? __value_422 = null; + if (ReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + __value_422 = global::ElevenLabs.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + __value_422 = await global::ElevenLabs.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + } - var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessGetPronunciationDictionariesResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + statusCode: __response.StatusCode) + { + ResponseBody = __content_422, + ResponseObject = __value_422, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } - try + if (ReadResponseAsString) { - __response.EnsureSuccessStatusCode(); + var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessGetPronunciationDictionariesResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + return + global::ElevenLabs.GetPronunciationDictionariesMetadataResponseModel.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } - catch (global::System.Net.Http.HttpRequestException __ex) + else { - throw new global::System.InvalidOperationException(__content, __ex); - } + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - return - global::ElevenLabs.GetPronunciationDictionariesMetadataResponseModel.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return + await global::ElevenLabs.GetPronunciationDictionariesMetadataResponseModel.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } } } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.PronunciationDictionaryClient.GetPronunciationDictionariesByDictionaryIdByVersionIdDownload.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.PronunciationDictionaryClient.GetPronunciationDictionariesByDictionaryIdByVersionIdDownload.g.cs index 25c00dc..8ad594a 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.PronunciationDictionaryClient.GetPronunciationDictionariesByDictionaryIdByVersionIdDownload.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.PronunciationDictionaryClient.GetPronunciationDictionariesByDictionaryIdByVersionIdDownload.g.cs @@ -20,11 +20,6 @@ partial void ProcessGetPronunciationDictionariesByDictionaryIdByVersionIdDownloa global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessGetPronunciationDictionariesByDictionaryIdByVersionIdDownloadResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - /// /// Get Pls File With A Pronunciation Dictionary Version Rules
/// Get PLS file with a pronunciation dictionary version rules @@ -39,8 +34,8 @@ partial void ProcessGetPronunciationDictionariesByDictionaryIdByVersionIdDownloa /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. /// /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task GetPronunciationDictionariesByDictionaryIdByVersionIdDownloadAsync( + /// + public async global::System.Threading.Tasks.Task GetPronunciationDictionariesByDictionaryIdByVersionIdDownloadAsync( string dictionaryId, string versionId, string? xiApiKey = default, @@ -105,30 +100,23 @@ partial void ProcessGetPronunciationDictionariesByDictionaryIdByVersionIdDownloa ProcessGetPronunciationDictionariesByDictionaryIdByVersionIdDownloadResponse( httpClient: HttpClient, httpResponseMessage: __response); - - var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessGetPronunciationDictionariesByDictionaryIdByVersionIdDownloadResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - try { __response.EnsureSuccessStatusCode(); } catch (global::System.Net.Http.HttpRequestException __ex) { - throw new global::System.InvalidOperationException(__content, __ex); + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; } - - return - global::ElevenLabs.HTTPValidationError.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.PronunciationDictionaryClient.GetPronunciationDictionariesByPronunciationDictionaryId.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.PronunciationDictionaryClient.GetPronunciationDictionariesByPronunciationDictionaryId.g.cs index 15c7654..d8da75f 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.PronunciationDictionaryClient.GetPronunciationDictionariesByPronunciationDictionaryId.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.PronunciationDictionaryClient.GetPronunciationDictionariesByPronunciationDictionaryId.g.cs @@ -34,7 +34,7 @@ partial void ProcessGetPronunciationDictionariesByPronunciationDictionaryIdRespo /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. /// /// The token to cancel the operation with - /// + /// public async global::System.Threading.Tasks.Task GetPronunciationDictionariesByPronunciationDictionaryIdAsync( string pronunciationDictionaryId, string? xiApiKey = default, @@ -97,30 +97,97 @@ partial void ProcessGetPronunciationDictionariesByPronunciationDictionaryIdRespo ProcessGetPronunciationDictionariesByPronunciationDictionaryIdResponse( httpClient: HttpClient, httpResponseMessage: __response); + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::ElevenLabs.HTTPValidationError? __value_422 = null; + if (ReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + __value_422 = global::ElevenLabs.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + __value_422 = await global::ElevenLabs.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + } - var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessGetPronunciationDictionariesByPronunciationDictionaryIdResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + statusCode: __response.StatusCode) + { + ResponseBody = __content_422, + ResponseObject = __value_422, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } - try + if (ReadResponseAsString) { - __response.EnsureSuccessStatusCode(); + var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessGetPronunciationDictionariesByPronunciationDictionaryIdResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + return + global::ElevenLabs.GetPronunciationDictionaryMetadataResponseModel.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } - catch (global::System.Net.Http.HttpRequestException __ex) + else { - throw new global::System.InvalidOperationException(__content, __ex); - } + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - return - global::ElevenLabs.GetPronunciationDictionaryMetadataResponseModel.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return + await global::ElevenLabs.GetPronunciationDictionaryMetadataResponseModel.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } } } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.PronunciationDictionaryClient.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.PronunciationDictionaryClient.g.cs index 373bec4..70b37ae 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.PronunciationDictionaryClient.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.PronunciationDictionaryClient.g.cs @@ -25,6 +25,11 @@ public sealed partial class PronunciationDictionaryClient : global::ElevenLabs.I /// public global::System.Collections.Generic.List Authorizations { get; } + /// + public bool ReadResponseAsString { get; set; } +#if DEBUG + = true; +#endif /// /// /// diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.SamplesClient.DeleteVoicesByVoiceIdSamplesBySampleId.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.SamplesClient.DeleteVoicesByVoiceIdSamplesBySampleId.g.cs index 5edec0e..05c16d6 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.SamplesClient.DeleteVoicesByVoiceIdSamplesBySampleId.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.SamplesClient.DeleteVoicesByVoiceIdSamplesBySampleId.g.cs @@ -39,7 +39,7 @@ partial void ProcessDeleteVoicesByVoiceIdSamplesBySampleIdResponseContent( /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. /// /// The token to cancel the operation with - /// + /// public async global::System.Threading.Tasks.Task DeleteVoicesByVoiceIdSamplesBySampleIdAsync( string voiceId, string sampleId, @@ -105,28 +105,93 @@ partial void ProcessDeleteVoicesByVoiceIdSamplesBySampleIdResponseContent( ProcessDeleteVoicesByVoiceIdSamplesBySampleIdResponse( httpClient: HttpClient, httpResponseMessage: __response); + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::ElevenLabs.HTTPValidationError? __value_422 = null; + if (ReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + __value_422 = global::ElevenLabs.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + __value_422 = await global::ElevenLabs.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + } - var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessDeleteVoicesByVoiceIdSamplesBySampleIdResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + statusCode: __response.StatusCode) + { + ResponseBody = __content_422, + ResponseObject = __value_422, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } - try + if (ReadResponseAsString) { - __response.EnsureSuccessStatusCode(); + var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessDeleteVoicesByVoiceIdSamplesBySampleIdResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + return __content; } - catch (global::System.Net.Http.HttpRequestException __ex) + else { - throw new global::System.InvalidOperationException(__content, __ex); - } + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - return __content; + return __content; + } } } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.SamplesClient.GetVoicesByVoiceIdSamplesBySampleIdAudio.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.SamplesClient.GetVoicesByVoiceIdSamplesBySampleIdAudio.g.cs index d0df1ee..cb841ff 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.SamplesClient.GetVoicesByVoiceIdSamplesBySampleIdAudio.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.SamplesClient.GetVoicesByVoiceIdSamplesBySampleIdAudio.g.cs @@ -20,11 +20,6 @@ partial void ProcessGetVoicesByVoiceIdSamplesBySampleIdAudioResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessGetVoicesByVoiceIdSamplesBySampleIdAudioResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - /// /// Get Audio From Sample
/// Returns the audio corresponding to a sample attached to a voice. @@ -39,8 +34,8 @@ partial void ProcessGetVoicesByVoiceIdSamplesBySampleIdAudioResponseContent( /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. /// /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task GetVoicesByVoiceIdSamplesBySampleIdAudioAsync( + /// + public async global::System.Threading.Tasks.Task GetVoicesByVoiceIdSamplesBySampleIdAudioAsync( string voiceId, string sampleId, string? xiApiKey = default, @@ -105,30 +100,23 @@ partial void ProcessGetVoicesByVoiceIdSamplesBySampleIdAudioResponseContent( ProcessGetVoicesByVoiceIdSamplesBySampleIdAudioResponse( httpClient: HttpClient, httpResponseMessage: __response); - - var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessGetVoicesByVoiceIdSamplesBySampleIdAudioResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - try { __response.EnsureSuccessStatusCode(); } catch (global::System.Net.Http.HttpRequestException __ex) { - throw new global::System.InvalidOperationException(__content, __ex); + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; } - - return - global::ElevenLabs.HTTPValidationError.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.SamplesClient.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.SamplesClient.g.cs index 906b1f2..39cacb8 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.SamplesClient.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.SamplesClient.g.cs @@ -26,6 +26,11 @@ public sealed partial class SamplesClient : global::ElevenLabs.ISamplesClient, g /// public global::System.Collections.Generic.List Authorizations { get; } + /// + public bool ReadResponseAsString { get; set; } +#if DEBUG + = true; +#endif /// /// /// diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.SoundGenerationClient.CreateSoundGeneration.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.SoundGenerationClient.CreateSoundGeneration.g.cs index 367519c..8a379e7 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.SoundGenerationClient.CreateSoundGeneration.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.SoundGenerationClient.CreateSoundGeneration.g.cs @@ -18,11 +18,6 @@ partial void ProcessCreateSoundGenerationResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessCreateSoundGenerationResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - /// /// Sound Generation
/// Converts a text of your choice into sound @@ -32,8 +27,8 @@ partial void ProcessCreateSoundGenerationResponseContent( /// /// /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task CreateSoundGenerationAsync( + /// + public async global::System.Threading.Tasks.Task CreateSoundGenerationAsync( global::ElevenLabs.BodySoundGenerationV1SoundGenerationPost request, string? xiApiKey = default, global::System.Threading.CancellationToken cancellationToken = default) @@ -103,30 +98,23 @@ partial void ProcessCreateSoundGenerationResponseContent( ProcessCreateSoundGenerationResponse( httpClient: HttpClient, httpResponseMessage: __response); - - var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessCreateSoundGenerationResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - try { __response.EnsureSuccessStatusCode(); } catch (global::System.Net.Http.HttpRequestException __ex) { - throw new global::System.InvalidOperationException(__content, __ex); + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; } - - return - global::ElevenLabs.HTTPValidationError.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } /// @@ -148,7 +136,7 @@ partial void ProcessCreateSoundGenerationResponseContent( /// /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task CreateSoundGenerationAsync( + public async global::System.Threading.Tasks.Task CreateSoundGenerationAsync( string text, string? xiApiKey = default, double? durationSeconds = default, @@ -162,7 +150,7 @@ partial void ProcessCreateSoundGenerationResponseContent( PromptInfluence = promptInfluence, }; - return await CreateSoundGenerationAsync( + await CreateSoundGenerationAsync( xiApiKey: xiApiKey, request: __request, cancellationToken: cancellationToken).ConfigureAwait(false); diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.SoundGenerationClient.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.SoundGenerationClient.g.cs index cb4954b..80466a4 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.SoundGenerationClient.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.SoundGenerationClient.g.cs @@ -25,6 +25,11 @@ public sealed partial class SoundGenerationClient : global::ElevenLabs.ISoundGen /// public global::System.Collections.Generic.List Authorizations { get; } + /// + public bool ReadResponseAsString { get; set; } +#if DEBUG + = true; +#endif /// /// /// diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.SpeechHistoryClient.CreateHistoryDownload.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.SpeechHistoryClient.CreateHistoryDownload.g.cs index 9c6b285..2c93c0b 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.SpeechHistoryClient.CreateHistoryDownload.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.SpeechHistoryClient.CreateHistoryDownload.g.cs @@ -18,11 +18,6 @@ partial void ProcessCreateHistoryDownloadResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessCreateHistoryDownloadResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - /// /// Download History Items
/// Download one or more history items. If one history item ID is provided, we will return a single audio file. If more than one history item IDs are provided, we will provide the history items packed into a .zip file. @@ -32,8 +27,8 @@ partial void ProcessCreateHistoryDownloadResponseContent( /// /// /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task CreateHistoryDownloadAsync( + /// + public async global::System.Threading.Tasks.Task CreateHistoryDownloadAsync( global::ElevenLabs.BodyDownloadHistoryItemsV1HistoryDownloadPost request, string? xiApiKey = default, global::System.Threading.CancellationToken cancellationToken = default) @@ -103,30 +98,23 @@ partial void ProcessCreateHistoryDownloadResponseContent( ProcessCreateHistoryDownloadResponse( httpClient: HttpClient, httpResponseMessage: __response); - - var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessCreateHistoryDownloadResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - try { __response.EnsureSuccessStatusCode(); } catch (global::System.Net.Http.HttpRequestException __ex) { - throw new global::System.InvalidOperationException(__content, __ex); + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; } - - return - global::ElevenLabs.HTTPValidationError.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } /// @@ -144,7 +132,7 @@ partial void ProcessCreateHistoryDownloadResponseContent( /// /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task CreateHistoryDownloadAsync( + public async global::System.Threading.Tasks.Task CreateHistoryDownloadAsync( global::System.Collections.Generic.IList historyItemIds, string? xiApiKey = default, string? outputFormat = default, @@ -156,7 +144,7 @@ partial void ProcessCreateHistoryDownloadResponseContent( OutputFormat = outputFormat, }; - return await CreateHistoryDownloadAsync( + await CreateHistoryDownloadAsync( xiApiKey: xiApiKey, request: __request, cancellationToken: cancellationToken).ConfigureAwait(false); diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.SpeechHistoryClient.DeleteHistoryByHistoryItemId.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.SpeechHistoryClient.DeleteHistoryByHistoryItemId.g.cs index db20ffc..d8a4d9e 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.SpeechHistoryClient.DeleteHistoryByHistoryItemId.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.SpeechHistoryClient.DeleteHistoryByHistoryItemId.g.cs @@ -34,7 +34,7 @@ partial void ProcessDeleteHistoryByHistoryItemIdResponseContent( /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. /// /// The token to cancel the operation with - /// + /// public async global::System.Threading.Tasks.Task DeleteHistoryByHistoryItemIdAsync( string historyItemId, string? xiApiKey = default, @@ -97,28 +97,93 @@ partial void ProcessDeleteHistoryByHistoryItemIdResponseContent( ProcessDeleteHistoryByHistoryItemIdResponse( httpClient: HttpClient, httpResponseMessage: __response); + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::ElevenLabs.HTTPValidationError? __value_422 = null; + if (ReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + __value_422 = global::ElevenLabs.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + __value_422 = await global::ElevenLabs.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + } - var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessDeleteHistoryByHistoryItemIdResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + statusCode: __response.StatusCode) + { + ResponseBody = __content_422, + ResponseObject = __value_422, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } - try + if (ReadResponseAsString) { - __response.EnsureSuccessStatusCode(); + var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessDeleteHistoryByHistoryItemIdResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + return __content; } - catch (global::System.Net.Http.HttpRequestException __ex) + else { - throw new global::System.InvalidOperationException(__content, __ex); - } + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - return __content; + return __content; + } } } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.SpeechHistoryClient.GetHistory.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.SpeechHistoryClient.GetHistory.g.cs index b05c022..d0df69d 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.SpeechHistoryClient.GetHistory.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.SpeechHistoryClient.GetHistory.g.cs @@ -45,7 +45,7 @@ partial void ProcessGetHistoryResponseContent( /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. /// /// The token to cancel the operation with - /// + /// public async global::System.Threading.Tasks.Task GetHistoryAsync( int? pageSize = default, string? startAfterHistoryItemId = default, @@ -119,30 +119,97 @@ partial void ProcessGetHistoryResponseContent( ProcessGetHistoryResponse( httpClient: HttpClient, httpResponseMessage: __response); + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::ElevenLabs.HTTPValidationError? __value_422 = null; + if (ReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + __value_422 = global::ElevenLabs.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + __value_422 = await global::ElevenLabs.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + } - var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessGetHistoryResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + statusCode: __response.StatusCode) + { + ResponseBody = __content_422, + ResponseObject = __value_422, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } - try + if (ReadResponseAsString) { - __response.EnsureSuccessStatusCode(); + var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessGetHistoryResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + return + global::ElevenLabs.GetSpeechHistoryResponseModel.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } - catch (global::System.Net.Http.HttpRequestException __ex) + else { - throw new global::System.InvalidOperationException(__content, __ex); - } + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - return - global::ElevenLabs.GetSpeechHistoryResponseModel.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return + await global::ElevenLabs.GetSpeechHistoryResponseModel.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } } } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.SpeechHistoryClient.GetHistoryByHistoryItemId.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.SpeechHistoryClient.GetHistoryByHistoryItemId.g.cs index 3ec3014..722f72b 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.SpeechHistoryClient.GetHistoryByHistoryItemId.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.SpeechHistoryClient.GetHistoryByHistoryItemId.g.cs @@ -34,7 +34,7 @@ partial void ProcessGetHistoryByHistoryItemIdResponseContent( /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. /// /// The token to cancel the operation with - /// + /// public async global::System.Threading.Tasks.Task GetHistoryByHistoryItemIdAsync( string historyItemId, string? xiApiKey = default, @@ -97,30 +97,97 @@ partial void ProcessGetHistoryByHistoryItemIdResponseContent( ProcessGetHistoryByHistoryItemIdResponse( httpClient: HttpClient, httpResponseMessage: __response); + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::ElevenLabs.HTTPValidationError? __value_422 = null; + if (ReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + __value_422 = global::ElevenLabs.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + __value_422 = await global::ElevenLabs.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + } - var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessGetHistoryByHistoryItemIdResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + statusCode: __response.StatusCode) + { + ResponseBody = __content_422, + ResponseObject = __value_422, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } - try + if (ReadResponseAsString) { - __response.EnsureSuccessStatusCode(); + var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessGetHistoryByHistoryItemIdResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + return + global::ElevenLabs.SpeechHistoryItemResponseModel.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } - catch (global::System.Net.Http.HttpRequestException __ex) + else { - throw new global::System.InvalidOperationException(__content, __ex); - } + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - return - global::ElevenLabs.SpeechHistoryItemResponseModel.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return + await global::ElevenLabs.SpeechHistoryItemResponseModel.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } } } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.SpeechHistoryClient.GetHistoryByHistoryItemIdAudio.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.SpeechHistoryClient.GetHistoryByHistoryItemIdAudio.g.cs index 8e12c14..94f2662 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.SpeechHistoryClient.GetHistoryByHistoryItemIdAudio.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.SpeechHistoryClient.GetHistoryByHistoryItemIdAudio.g.cs @@ -18,11 +18,6 @@ partial void ProcessGetHistoryByHistoryItemIdAudioResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessGetHistoryByHistoryItemIdAudioResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - /// /// Get Audio From History Item
/// Returns the audio of an history item. @@ -34,8 +29,8 @@ partial void ProcessGetHistoryByHistoryItemIdAudioResponseContent( /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. /// /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task GetHistoryByHistoryItemIdAudioAsync( + /// + public async global::System.Threading.Tasks.Task GetHistoryByHistoryItemIdAudioAsync( string historyItemId, string? xiApiKey = default, global::System.Threading.CancellationToken cancellationToken = default) @@ -97,30 +92,23 @@ partial void ProcessGetHistoryByHistoryItemIdAudioResponseContent( ProcessGetHistoryByHistoryItemIdAudioResponse( httpClient: HttpClient, httpResponseMessage: __response); - - var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessGetHistoryByHistoryItemIdAudioResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - try { __response.EnsureSuccessStatusCode(); } catch (global::System.Net.Http.HttpRequestException __ex) { - throw new global::System.InvalidOperationException(__content, __ex); + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; } - - return - global::ElevenLabs.HTTPValidationError.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.SpeechHistoryClient.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.SpeechHistoryClient.g.cs index b943491..88be20b 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.SpeechHistoryClient.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.SpeechHistoryClient.g.cs @@ -26,6 +26,11 @@ public sealed partial class SpeechHistoryClient : global::ElevenLabs.ISpeechHist /// public global::System.Collections.Generic.List Authorizations { get; } + /// + public bool ReadResponseAsString { get; set; } +#if DEBUG + = true; +#endif /// /// /// diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.SpeechToSpeechClient.CreateSpeechToSpeechByVoiceId.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.SpeechToSpeechClient.CreateSpeechToSpeechByVoiceId.g.cs index 97b4966..79d2c8f 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.SpeechToSpeechClient.CreateSpeechToSpeechByVoiceId.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.SpeechToSpeechClient.CreateSpeechToSpeechByVoiceId.g.cs @@ -26,11 +26,6 @@ partial void ProcessCreateSpeechToSpeechByVoiceIdResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessCreateSpeechToSpeechByVoiceIdResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - /// /// Speech To Speech
/// Create speech by combining the content and emotion of the uploaded audio with a voice of your choice. @@ -71,8 +66,8 @@ partial void ProcessCreateSpeechToSpeechByVoiceIdResponseContent( /// /// /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task CreateSpeechToSpeechByVoiceIdAsync( + /// + public async global::System.Threading.Tasks.Task CreateSpeechToSpeechByVoiceIdAsync( string voiceId, global::ElevenLabs.BodySpeechToSpeechV1SpeechToSpeechVoiceIdPost request, bool? enableLogging = default, @@ -210,30 +205,23 @@ partial void ProcessCreateSpeechToSpeechByVoiceIdResponseContent( ProcessCreateSpeechToSpeechByVoiceIdResponse( httpClient: HttpClient, httpResponseMessage: __response); - - var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessCreateSpeechToSpeechByVoiceIdResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - try { __response.EnsureSuccessStatusCode(); } catch (global::System.Net.Http.HttpRequestException __ex) { - throw new global::System.InvalidOperationException(__content, __ex); + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; } - - return - global::ElevenLabs.HTTPValidationError.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } /// @@ -296,7 +284,7 @@ partial void ProcessCreateSpeechToSpeechByVoiceIdResponseContent( /// /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task CreateSpeechToSpeechByVoiceIdAsync( + public async global::System.Threading.Tasks.Task CreateSpeechToSpeechByVoiceIdAsync( string voiceId, byte[] audio, string audioname, @@ -320,7 +308,7 @@ partial void ProcessCreateSpeechToSpeechByVoiceIdResponseContent( RemoveBackgroundNoise = removeBackgroundNoise, }; - return await CreateSpeechToSpeechByVoiceIdAsync( + await CreateSpeechToSpeechByVoiceIdAsync( voiceId: voiceId, enableLogging: enableLogging, optimizeStreamingLatency: optimizeStreamingLatency, diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.SpeechToSpeechClient.CreateSpeechToSpeechByVoiceIdStream.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.SpeechToSpeechClient.CreateSpeechToSpeechByVoiceIdStream.g.cs index cc779cb..54317c4 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.SpeechToSpeechClient.CreateSpeechToSpeechByVoiceIdStream.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.SpeechToSpeechClient.CreateSpeechToSpeechByVoiceIdStream.g.cs @@ -26,11 +26,6 @@ partial void ProcessCreateSpeechToSpeechByVoiceIdStreamResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessCreateSpeechToSpeechByVoiceIdStreamResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - /// /// Speech To Speech Streaming
/// Create speech by combining the content and emotion of the uploaded audio with a voice of your choice and returns an audio stream. @@ -71,8 +66,8 @@ partial void ProcessCreateSpeechToSpeechByVoiceIdStreamResponseContent( /// /// /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task CreateSpeechToSpeechByVoiceIdStreamAsync( + /// + public async global::System.Threading.Tasks.Task CreateSpeechToSpeechByVoiceIdStreamAsync( string voiceId, global::ElevenLabs.BodySpeechToSpeechStreamingV1SpeechToSpeechVoiceIdStreamPost request, bool? enableLogging = default, @@ -210,30 +205,23 @@ partial void ProcessCreateSpeechToSpeechByVoiceIdStreamResponseContent( ProcessCreateSpeechToSpeechByVoiceIdStreamResponse( httpClient: HttpClient, httpResponseMessage: __response); - - var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessCreateSpeechToSpeechByVoiceIdStreamResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - try { __response.EnsureSuccessStatusCode(); } catch (global::System.Net.Http.HttpRequestException __ex) { - throw new global::System.InvalidOperationException(__content, __ex); + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; } - - return - global::ElevenLabs.HTTPValidationError.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } /// @@ -296,7 +284,7 @@ partial void ProcessCreateSpeechToSpeechByVoiceIdStreamResponseContent( /// /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task CreateSpeechToSpeechByVoiceIdStreamAsync( + public async global::System.Threading.Tasks.Task CreateSpeechToSpeechByVoiceIdStreamAsync( string voiceId, byte[] audio, string audioname, @@ -320,7 +308,7 @@ partial void ProcessCreateSpeechToSpeechByVoiceIdStreamResponseContent( RemoveBackgroundNoise = removeBackgroundNoise, }; - return await CreateSpeechToSpeechByVoiceIdStreamAsync( + await CreateSpeechToSpeechByVoiceIdStreamAsync( voiceId: voiceId, enableLogging: enableLogging, optimizeStreamingLatency: optimizeStreamingLatency, diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.SpeechToSpeechClient.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.SpeechToSpeechClient.g.cs index 838f6e3..dc82ea7 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.SpeechToSpeechClient.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.SpeechToSpeechClient.g.cs @@ -26,6 +26,11 @@ public sealed partial class SpeechToSpeechClient : global::ElevenLabs.ISpeechToS /// public global::System.Collections.Generic.List Authorizations { get; } + /// + public bool ReadResponseAsString { get; set; } +#if DEBUG + = true; +#endif /// /// /// diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.TextToSpeechClient.CreateTextToSpeechByVoiceId.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.TextToSpeechClient.CreateTextToSpeechByVoiceId.g.cs index ebbad8a..15bc269 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.TextToSpeechClient.CreateTextToSpeechByVoiceId.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.TextToSpeechClient.CreateTextToSpeechByVoiceId.g.cs @@ -26,11 +26,6 @@ partial void ProcessCreateTextToSpeechByVoiceIdResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessCreateTextToSpeechByVoiceIdResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - /// /// Text To Speech
/// Converts text into speech using a voice of your choice and returns audio. @@ -71,8 +66,8 @@ partial void ProcessCreateTextToSpeechByVoiceIdResponseContent( /// /// /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task CreateTextToSpeechByVoiceIdAsync( + /// + public async global::System.Threading.Tasks.Task CreateTextToSpeechByVoiceIdAsync( string voiceId, global::ElevenLabs.BodyTextToSpeechV1TextToSpeechVoiceIdPost request, bool? enableLogging = default, @@ -159,30 +154,23 @@ partial void ProcessCreateTextToSpeechByVoiceIdResponseContent( ProcessCreateTextToSpeechByVoiceIdResponse( httpClient: HttpClient, httpResponseMessage: __response); - - var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessCreateTextToSpeechByVoiceIdResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - try { __response.EnsureSuccessStatusCode(); } catch (global::System.Net.Http.HttpRequestException __ex) { - throw new global::System.InvalidOperationException(__content, __ex); + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; } - - return - global::ElevenLabs.HTTPValidationError.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } /// @@ -260,7 +248,7 @@ partial void ProcessCreateTextToSpeechByVoiceIdResponseContent( /// /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task CreateTextToSpeechByVoiceIdAsync( + public async global::System.Threading.Tasks.Task CreateTextToSpeechByVoiceIdAsync( string voiceId, string text, bool? enableLogging = default, @@ -294,7 +282,7 @@ partial void ProcessCreateTextToSpeechByVoiceIdResponseContent( ApplyTextNormalization = applyTextNormalization, }; - return await CreateTextToSpeechByVoiceIdAsync( + await CreateTextToSpeechByVoiceIdAsync( voiceId: voiceId, enableLogging: enableLogging, optimizeStreamingLatency: optimizeStreamingLatency, diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.TextToSpeechClient.CreateTextToSpeechByVoiceIdStream.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.TextToSpeechClient.CreateTextToSpeechByVoiceIdStream.g.cs index 8b7f01f..c1d25d4 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.TextToSpeechClient.CreateTextToSpeechByVoiceIdStream.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.TextToSpeechClient.CreateTextToSpeechByVoiceIdStream.g.cs @@ -26,11 +26,6 @@ partial void ProcessCreateTextToSpeechByVoiceIdStreamResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessCreateTextToSpeechByVoiceIdStreamResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - /// /// Text To Speech Streaming
/// Converts text into speech using a voice of your choice and returns audio as an audio stream. @@ -71,8 +66,8 @@ partial void ProcessCreateTextToSpeechByVoiceIdStreamResponseContent( /// /// /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task CreateTextToSpeechByVoiceIdStreamAsync( + /// + public async global::System.Threading.Tasks.Task CreateTextToSpeechByVoiceIdStreamAsync( string voiceId, global::ElevenLabs.BodyTextToSpeechStreamingV1TextToSpeechVoiceIdStreamPost request, bool? enableLogging = default, @@ -159,30 +154,23 @@ partial void ProcessCreateTextToSpeechByVoiceIdStreamResponseContent( ProcessCreateTextToSpeechByVoiceIdStreamResponse( httpClient: HttpClient, httpResponseMessage: __response); - - var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessCreateTextToSpeechByVoiceIdStreamResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - try { __response.EnsureSuccessStatusCode(); } catch (global::System.Net.Http.HttpRequestException __ex) { - throw new global::System.InvalidOperationException(__content, __ex); + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; } - - return - global::ElevenLabs.HTTPValidationError.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } /// @@ -260,7 +248,7 @@ partial void ProcessCreateTextToSpeechByVoiceIdStreamResponseContent( /// /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task CreateTextToSpeechByVoiceIdStreamAsync( + public async global::System.Threading.Tasks.Task CreateTextToSpeechByVoiceIdStreamAsync( string voiceId, string text, bool? enableLogging = default, @@ -294,7 +282,7 @@ partial void ProcessCreateTextToSpeechByVoiceIdStreamResponseContent( ApplyTextNormalization = applyTextNormalization, }; - return await CreateTextToSpeechByVoiceIdStreamAsync( + await CreateTextToSpeechByVoiceIdStreamAsync( voiceId: voiceId, enableLogging: enableLogging, optimizeStreamingLatency: optimizeStreamingLatency, diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.TextToSpeechClient.CreateTextToSpeechByVoiceIdStreamWithTimestamps.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.TextToSpeechClient.CreateTextToSpeechByVoiceIdStreamWithTimestamps.g.cs index ef50ee3..da0ba3e 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.TextToSpeechClient.CreateTextToSpeechByVoiceIdStreamWithTimestamps.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.TextToSpeechClient.CreateTextToSpeechByVoiceIdStreamWithTimestamps.g.cs @@ -26,11 +26,6 @@ partial void ProcessCreateTextToSpeechByVoiceIdStreamWithTimestampsResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessCreateTextToSpeechByVoiceIdStreamWithTimestampsResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - /// /// Text To Speech Streaming With Timestamps
/// Converts text into speech using a voice of your choice and returns a stream of JSONs containing audio as a base64 encoded string together with information on when which character was spoken. @@ -71,8 +66,8 @@ partial void ProcessCreateTextToSpeechByVoiceIdStreamWithTimestampsResponseConte /// /// /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task CreateTextToSpeechByVoiceIdStreamWithTimestampsAsync( + /// + public async global::System.Threading.Tasks.Task CreateTextToSpeechByVoiceIdStreamWithTimestampsAsync( string voiceId, global::ElevenLabs.BodyTextToSpeechStreamingWithTimestampsV1TextToSpeechVoiceIdStreamWithTimestampsPost request, bool? enableLogging = default, @@ -159,30 +154,23 @@ partial void ProcessCreateTextToSpeechByVoiceIdStreamWithTimestampsResponseConte ProcessCreateTextToSpeechByVoiceIdStreamWithTimestampsResponse( httpClient: HttpClient, httpResponseMessage: __response); - - var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessCreateTextToSpeechByVoiceIdStreamWithTimestampsResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - try { __response.EnsureSuccessStatusCode(); } catch (global::System.Net.Http.HttpRequestException __ex) { - throw new global::System.InvalidOperationException(__content, __ex); + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; } - - return - global::ElevenLabs.HTTPValidationError.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } /// @@ -260,7 +248,7 @@ partial void ProcessCreateTextToSpeechByVoiceIdStreamWithTimestampsResponseConte /// /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task CreateTextToSpeechByVoiceIdStreamWithTimestampsAsync( + public async global::System.Threading.Tasks.Task CreateTextToSpeechByVoiceIdStreamWithTimestampsAsync( string voiceId, string text, bool? enableLogging = default, @@ -294,7 +282,7 @@ partial void ProcessCreateTextToSpeechByVoiceIdStreamWithTimestampsResponseConte ApplyTextNormalization = applyTextNormalization, }; - return await CreateTextToSpeechByVoiceIdStreamWithTimestampsAsync( + await CreateTextToSpeechByVoiceIdStreamWithTimestampsAsync( voiceId: voiceId, enableLogging: enableLogging, optimizeStreamingLatency: optimizeStreamingLatency, diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.TextToSpeechClient.CreateTextToSpeechByVoiceIdWithTimestamps.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.TextToSpeechClient.CreateTextToSpeechByVoiceIdWithTimestamps.g.cs index aaa0633..00bcd31 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.TextToSpeechClient.CreateTextToSpeechByVoiceIdWithTimestamps.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.TextToSpeechClient.CreateTextToSpeechByVoiceIdWithTimestamps.g.cs @@ -26,11 +26,6 @@ partial void ProcessCreateTextToSpeechByVoiceIdWithTimestampsResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessCreateTextToSpeechByVoiceIdWithTimestampsResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - /// /// Text To Speech With Timestamps
/// Converts text into speech using a voice of your choice and returns JSON containing audio as a base64 encoded string together with information on when which character was spoken. @@ -71,8 +66,8 @@ partial void ProcessCreateTextToSpeechByVoiceIdWithTimestampsResponseContent( /// /// /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task CreateTextToSpeechByVoiceIdWithTimestampsAsync( + /// + public async global::System.Threading.Tasks.Task CreateTextToSpeechByVoiceIdWithTimestampsAsync( string voiceId, global::ElevenLabs.BodyTextToSpeechWithTimestampsV1TextToSpeechVoiceIdWithTimestampsPost request, bool? enableLogging = default, @@ -159,30 +154,23 @@ partial void ProcessCreateTextToSpeechByVoiceIdWithTimestampsResponseContent( ProcessCreateTextToSpeechByVoiceIdWithTimestampsResponse( httpClient: HttpClient, httpResponseMessage: __response); - - var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessCreateTextToSpeechByVoiceIdWithTimestampsResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - try { __response.EnsureSuccessStatusCode(); } catch (global::System.Net.Http.HttpRequestException __ex) { - throw new global::System.InvalidOperationException(__content, __ex); + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; } - - return - global::ElevenLabs.HTTPValidationError.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } /// @@ -260,7 +248,7 @@ partial void ProcessCreateTextToSpeechByVoiceIdWithTimestampsResponseContent( /// /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task CreateTextToSpeechByVoiceIdWithTimestampsAsync( + public async global::System.Threading.Tasks.Task CreateTextToSpeechByVoiceIdWithTimestampsAsync( string voiceId, string text, bool? enableLogging = default, @@ -294,7 +282,7 @@ partial void ProcessCreateTextToSpeechByVoiceIdWithTimestampsResponseContent( ApplyTextNormalization = applyTextNormalization, }; - return await CreateTextToSpeechByVoiceIdWithTimestampsAsync( + await CreateTextToSpeechByVoiceIdWithTimestampsAsync( voiceId: voiceId, enableLogging: enableLogging, optimizeStreamingLatency: optimizeStreamingLatency, diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.TextToSpeechClient.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.TextToSpeechClient.g.cs index 1d553e9..3777c88 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.TextToSpeechClient.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.TextToSpeechClient.g.cs @@ -26,6 +26,11 @@ public sealed partial class TextToSpeechClient : global::ElevenLabs.ITextToSpeec /// public global::System.Collections.Generic.List Authorizations { get; } + /// + public bool ReadResponseAsString { get; set; } +#if DEBUG + = true; +#endif /// /// /// diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.TextToVoiceClient.CreateTextToVoiceCreatePreviews.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.TextToVoiceClient.CreateTextToVoiceCreatePreviews.g.cs index a772693..03d71ee 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.TextToVoiceClient.CreateTextToVoiceCreatePreviews.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.TextToVoiceClient.CreateTextToVoiceCreatePreviews.g.cs @@ -32,7 +32,7 @@ partial void ProcessCreateTextToVoiceCreatePreviewsResponseContent( /// /// /// The token to cancel the operation with - /// + /// public async global::System.Threading.Tasks.Task CreateTextToVoiceCreatePreviewsAsync( global::ElevenLabs.BodyGenerateAVoicePreviewFromDescriptionV1TextToVoiceCreatePreviewsPost request, string? xiApiKey = default, @@ -103,30 +103,97 @@ partial void ProcessCreateTextToVoiceCreatePreviewsResponseContent( ProcessCreateTextToVoiceCreatePreviewsResponse( httpClient: HttpClient, httpResponseMessage: __response); + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::ElevenLabs.HTTPValidationError? __value_422 = null; + if (ReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + __value_422 = global::ElevenLabs.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + __value_422 = await global::ElevenLabs.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + } - var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessCreateTextToVoiceCreatePreviewsResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + statusCode: __response.StatusCode) + { + ResponseBody = __content_422, + ResponseObject = __value_422, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } - try + if (ReadResponseAsString) { - __response.EnsureSuccessStatusCode(); + var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessCreateTextToVoiceCreatePreviewsResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + return + global::ElevenLabs.VoicePreviewsResponseModel.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } - catch (global::System.Net.Http.HttpRequestException __ex) + else { - throw new global::System.InvalidOperationException(__content, __ex); - } + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } - return - global::ElevenLabs.VoicePreviewsResponseModel.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + + return + await global::ElevenLabs.VoicePreviewsResponseModel.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } } /// diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.TextToVoiceClient.CreateTextToVoiceCreateVoiceFromPreview.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.TextToVoiceClient.CreateTextToVoiceCreateVoiceFromPreview.g.cs index 161038c..53e8c5b 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.TextToVoiceClient.CreateTextToVoiceCreateVoiceFromPreview.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.TextToVoiceClient.CreateTextToVoiceCreateVoiceFromPreview.g.cs @@ -32,7 +32,7 @@ partial void ProcessCreateTextToVoiceCreateVoiceFromPreviewResponseContent( /// /// /// The token to cancel the operation with - /// + /// public async global::System.Threading.Tasks.Task CreateTextToVoiceCreateVoiceFromPreviewAsync( global::ElevenLabs.BodyCreateANewVoiceFromVoicePreviewV1TextToVoiceCreateVoiceFromPreviewPost request, string? xiApiKey = default, @@ -103,30 +103,97 @@ partial void ProcessCreateTextToVoiceCreateVoiceFromPreviewResponseContent( ProcessCreateTextToVoiceCreateVoiceFromPreviewResponse( httpClient: HttpClient, httpResponseMessage: __response); + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::ElevenLabs.HTTPValidationError? __value_422 = null; + if (ReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + __value_422 = global::ElevenLabs.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + __value_422 = await global::ElevenLabs.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + } - var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessCreateTextToVoiceCreateVoiceFromPreviewResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + statusCode: __response.StatusCode) + { + ResponseBody = __content_422, + ResponseObject = __value_422, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } - try + if (ReadResponseAsString) { - __response.EnsureSuccessStatusCode(); + var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessCreateTextToVoiceCreateVoiceFromPreviewResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + return + global::ElevenLabs.VoiceResponseModel.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } - catch (global::System.Net.Http.HttpRequestException __ex) + else { - throw new global::System.InvalidOperationException(__content, __ex); - } + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } - return - global::ElevenLabs.VoiceResponseModel.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + + return + await global::ElevenLabs.VoiceResponseModel.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } } /// diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.TextToVoiceClient.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.TextToVoiceClient.g.cs index 64bc28c..df4fc89 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.TextToVoiceClient.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.TextToVoiceClient.g.cs @@ -25,6 +25,11 @@ public sealed partial class TextToVoiceClient : global::ElevenLabs.ITextToVoiceC /// public global::System.Collections.Generic.List Authorizations { get; } + /// + public bool ReadResponseAsString { get; set; } +#if DEBUG + = true; +#endif /// /// /// diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.UsageClient.GetUsageCharacterStats.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.UsageClient.GetUsageCharacterStats.g.cs index c58bf53..dae5623 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.UsageClient.GetUsageCharacterStats.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.UsageClient.GetUsageCharacterStats.g.cs @@ -51,7 +51,7 @@ partial void ProcessGetUsageCharacterStatsResponseContent( /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. /// /// The token to cancel the operation with - /// + /// public async global::System.Threading.Tasks.Task GetUsageCharacterStatsAsync( global::System.DateTimeOffset startUnix, global::System.DateTimeOffset endUnix, @@ -129,30 +129,97 @@ partial void ProcessGetUsageCharacterStatsResponseContent( ProcessGetUsageCharacterStatsResponse( httpClient: HttpClient, httpResponseMessage: __response); + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::ElevenLabs.HTTPValidationError? __value_422 = null; + if (ReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + __value_422 = global::ElevenLabs.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + __value_422 = await global::ElevenLabs.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + } - var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessGetUsageCharacterStatsResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + statusCode: __response.StatusCode) + { + ResponseBody = __content_422, + ResponseObject = __value_422, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } - try + if (ReadResponseAsString) { - __response.EnsureSuccessStatusCode(); + var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessGetUsageCharacterStatsResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + return + global::ElevenLabs.UsageCharactersResponseModel.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } - catch (global::System.Net.Http.HttpRequestException __ex) + else { - throw new global::System.InvalidOperationException(__content, __ex); - } + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - return - global::ElevenLabs.UsageCharactersResponseModel.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return + await global::ElevenLabs.UsageCharactersResponseModel.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } } } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.UsageClient.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.UsageClient.g.cs index fa3d226..82efdb1 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.UsageClient.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.UsageClient.g.cs @@ -25,6 +25,11 @@ public sealed partial class UsageClient : global::ElevenLabs.IUsageClient, globa /// public global::System.Collections.Generic.List Authorizations { get; } + /// + public bool ReadResponseAsString { get; set; } +#if DEBUG + = true; +#endif /// /// /// diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.UserClient.GetUser.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.UserClient.GetUser.g.cs index 53d1324..7a885ee 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.UserClient.GetUser.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.UserClient.GetUser.g.cs @@ -29,7 +29,7 @@ partial void ProcessGetUserResponseContent( /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. /// /// The token to cancel the operation with - /// + /// public async global::System.Threading.Tasks.Task GetUserAsync( string? xiApiKey = default, global::System.Threading.CancellationToken cancellationToken = default) @@ -89,30 +89,97 @@ partial void ProcessGetUserResponseContent( ProcessGetUserResponse( httpClient: HttpClient, httpResponseMessage: __response); + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::ElevenLabs.HTTPValidationError? __value_422 = null; + if (ReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + __value_422 = global::ElevenLabs.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + __value_422 = await global::ElevenLabs.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + } - var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessGetUserResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + statusCode: __response.StatusCode) + { + ResponseBody = __content_422, + ResponseObject = __value_422, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } - try + if (ReadResponseAsString) { - __response.EnsureSuccessStatusCode(); + var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessGetUserResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + return + global::ElevenLabs.UserResponseModel.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } - catch (global::System.Net.Http.HttpRequestException __ex) + else { - throw new global::System.InvalidOperationException(__content, __ex); - } + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - return - global::ElevenLabs.UserResponseModel.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return + await global::ElevenLabs.UserResponseModel.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } } } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.UserClient.GetUserSubscription.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.UserClient.GetUserSubscription.g.cs index b3e2c75..1bdd398 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.UserClient.GetUserSubscription.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.UserClient.GetUserSubscription.g.cs @@ -29,7 +29,7 @@ partial void ProcessGetUserSubscriptionResponseContent( /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. /// /// The token to cancel the operation with - /// + /// public async global::System.Threading.Tasks.Task GetUserSubscriptionAsync( string? xiApiKey = default, global::System.Threading.CancellationToken cancellationToken = default) @@ -89,30 +89,97 @@ partial void ProcessGetUserSubscriptionResponseContent( ProcessGetUserSubscriptionResponse( httpClient: HttpClient, httpResponseMessage: __response); + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::ElevenLabs.HTTPValidationError? __value_422 = null; + if (ReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + __value_422 = global::ElevenLabs.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + __value_422 = await global::ElevenLabs.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + } - var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessGetUserSubscriptionResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + statusCode: __response.StatusCode) + { + ResponseBody = __content_422, + ResponseObject = __value_422, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } - try + if (ReadResponseAsString) { - __response.EnsureSuccessStatusCode(); + var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessGetUserSubscriptionResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + return + global::ElevenLabs.ExtendedSubscriptionResponseModel.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } - catch (global::System.Net.Http.HttpRequestException __ex) + else { - throw new global::System.InvalidOperationException(__content, __ex); - } + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - return - global::ElevenLabs.ExtendedSubscriptionResponseModel.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return + await global::ElevenLabs.ExtendedSubscriptionResponseModel.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } } } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.UserClient.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.UserClient.g.cs index df7ae48..92ea270 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.UserClient.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.UserClient.g.cs @@ -25,6 +25,11 @@ public sealed partial class UserClient : global::ElevenLabs.IUserClient, global: /// public global::System.Collections.Generic.List Authorizations { get; } + /// + public bool ReadResponseAsString { get; set; } +#if DEBUG + = true; +#endif /// /// /// diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.VoiceGenerationClient.CreateVoiceGenerationCreateVoice.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.VoiceGenerationClient.CreateVoiceGenerationCreateVoice.g.cs index aa90f72..e2a5da4 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.VoiceGenerationClient.CreateVoiceGenerationCreateVoice.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.VoiceGenerationClient.CreateVoiceGenerationCreateVoice.g.cs @@ -32,7 +32,7 @@ partial void ProcessCreateVoiceGenerationCreateVoiceResponseContent( /// /// /// The token to cancel the operation with - /// + /// public async global::System.Threading.Tasks.Task CreateVoiceGenerationCreateVoiceAsync( global::ElevenLabs.BodyCreateAPreviouslyGeneratedVoiceV1VoiceGenerationCreateVoicePost request, string? xiApiKey = default, @@ -103,30 +103,97 @@ partial void ProcessCreateVoiceGenerationCreateVoiceResponseContent( ProcessCreateVoiceGenerationCreateVoiceResponse( httpClient: HttpClient, httpResponseMessage: __response); + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::ElevenLabs.HTTPValidationError? __value_422 = null; + if (ReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + __value_422 = global::ElevenLabs.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + __value_422 = await global::ElevenLabs.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + } - var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessCreateVoiceGenerationCreateVoiceResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + statusCode: __response.StatusCode) + { + ResponseBody = __content_422, + ResponseObject = __value_422, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } - try + if (ReadResponseAsString) { - __response.EnsureSuccessStatusCode(); + var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessCreateVoiceGenerationCreateVoiceResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + return + global::ElevenLabs.VoiceResponseModel.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } - catch (global::System.Net.Http.HttpRequestException __ex) + else { - throw new global::System.InvalidOperationException(__content, __ex); - } + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } - return - global::ElevenLabs.VoiceResponseModel.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + + return + await global::ElevenLabs.VoiceResponseModel.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } } /// diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.VoiceGenerationClient.CreateVoiceGenerationGenerateVoice.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.VoiceGenerationClient.CreateVoiceGenerationGenerateVoice.g.cs index f8b9139..d4a6aa1 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.VoiceGenerationClient.CreateVoiceGenerationGenerateVoice.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.VoiceGenerationClient.CreateVoiceGenerationGenerateVoice.g.cs @@ -18,11 +18,6 @@ partial void ProcessCreateVoiceGenerationGenerateVoiceResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessCreateVoiceGenerationGenerateVoiceResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - /// /// Generate A Random Voice
/// Generate a random voice based on parameters. This method returns a generated_voice_id in the response header, and a sample of the voice in the body. If you like the generated voice call /v1/voice-generation/create-voice with the generated_voice_id to create the voice. @@ -32,8 +27,8 @@ partial void ProcessCreateVoiceGenerationGenerateVoiceResponseContent( /// /// /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task CreateVoiceGenerationGenerateVoiceAsync( + /// + public async global::System.Threading.Tasks.Task CreateVoiceGenerationGenerateVoiceAsync( global::ElevenLabs.BodyGenerateARandomVoiceV1VoiceGenerationGenerateVoicePost request, string? xiApiKey = default, global::System.Threading.CancellationToken cancellationToken = default) @@ -103,30 +98,23 @@ partial void ProcessCreateVoiceGenerationGenerateVoiceResponseContent( ProcessCreateVoiceGenerationGenerateVoiceResponse( httpClient: HttpClient, httpResponseMessage: __response); - - var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessCreateVoiceGenerationGenerateVoiceResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - try { __response.EnsureSuccessStatusCode(); } catch (global::System.Net.Http.HttpRequestException __ex) { - throw new global::System.InvalidOperationException(__content, __ex); + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; } - - return - global::ElevenLabs.HTTPValidationError.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } /// @@ -154,7 +142,7 @@ partial void ProcessCreateVoiceGenerationGenerateVoiceResponseContent( /// /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task CreateVoiceGenerationGenerateVoiceAsync( + public async global::System.Threading.Tasks.Task CreateVoiceGenerationGenerateVoiceAsync( global::ElevenLabs.BodyGenerateARandomVoiceV1VoiceGenerationGenerateVoicePostGender gender, string accent, global::ElevenLabs.BodyGenerateARandomVoiceV1VoiceGenerationGenerateVoicePostAge age, @@ -172,7 +160,7 @@ partial void ProcessCreateVoiceGenerationGenerateVoiceResponseContent( Text = text, }; - return await CreateVoiceGenerationGenerateVoiceAsync( + await CreateVoiceGenerationGenerateVoiceAsync( xiApiKey: xiApiKey, request: __request, cancellationToken: cancellationToken).ConfigureAwait(false); diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.VoiceGenerationClient.GetVoiceGenerationGenerateVoiceParameters.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.VoiceGenerationClient.GetVoiceGenerationGenerateVoiceParameters.g.cs index 5092389..d75eedd 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.VoiceGenerationClient.GetVoiceGenerationGenerateVoiceParameters.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.VoiceGenerationClient.GetVoiceGenerationGenerateVoiceParameters.g.cs @@ -24,7 +24,7 @@ partial void ProcessGetVoiceGenerationGenerateVoiceParametersResponseContent( /// Get possible parameters for the /v1/voice-generation/generate-voice endpoint. /// /// The token to cancel the operation with - /// + /// public async global::System.Threading.Tasks.Task GetVoiceGenerationGenerateVoiceParametersAsync( global::System.Threading.CancellationToken cancellationToken = default) { @@ -76,29 +76,68 @@ partial void ProcessGetVoiceGenerationGenerateVoiceParametersResponseContent( httpClient: HttpClient, httpResponseMessage: __response); - var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessGetVoiceGenerationGenerateVoiceParametersResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessGetVoiceGenerationGenerateVoiceParametersResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); - try - { - __response.EnsureSuccessStatusCode(); + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + return + global::ElevenLabs.VoiceGenerationParameterResponseModel.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } - catch (global::System.Net.Http.HttpRequestException __ex) + else { - throw new global::System.InvalidOperationException(__content, __ex); - } + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } - return - global::ElevenLabs.VoiceGenerationParameterResponseModel.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + + return + await global::ElevenLabs.VoiceGenerationParameterResponseModel.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } } } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.VoiceGenerationClient.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.VoiceGenerationClient.g.cs index e6d192f..6bd1eee 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.VoiceGenerationClient.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.VoiceGenerationClient.g.cs @@ -25,6 +25,11 @@ public sealed partial class VoiceGenerationClient : global::ElevenLabs.IVoiceGen /// public global::System.Collections.Generic.List Authorizations { get; } + /// + public bool ReadResponseAsString { get; set; } +#if DEBUG + = true; +#endif /// /// /// diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.VoicesClient.CreateSimilarVoices.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.VoicesClient.CreateSimilarVoices.g.cs index f0d4ebb..2b3090b 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.VoicesClient.CreateSimilarVoices.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.VoicesClient.CreateSimilarVoices.g.cs @@ -32,7 +32,7 @@ partial void ProcessCreateSimilarVoicesResponseContent( /// /// /// The token to cancel the operation with - /// + /// public async global::System.Threading.Tasks.Task CreateSimilarVoicesAsync( global::ElevenLabs.BodyGetSimilarLibraryVoicesV1SimilarVoicesPost request, string? xiApiKey = default, @@ -124,30 +124,97 @@ partial void ProcessCreateSimilarVoicesResponseContent( ProcessCreateSimilarVoicesResponse( httpClient: HttpClient, httpResponseMessage: __response); + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::ElevenLabs.HTTPValidationError? __value_422 = null; + if (ReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + __value_422 = global::ElevenLabs.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + __value_422 = await global::ElevenLabs.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + } - var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessCreateSimilarVoicesResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + statusCode: __response.StatusCode) + { + ResponseBody = __content_422, + ResponseObject = __value_422, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } - try + if (ReadResponseAsString) { - __response.EnsureSuccessStatusCode(); + var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessCreateSimilarVoicesResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + return + global::ElevenLabs.GetLibraryVoicesResponseModel.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } - catch (global::System.Net.Http.HttpRequestException __ex) + else { - throw new global::System.InvalidOperationException(__content, __ex); - } + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - return - global::ElevenLabs.GetLibraryVoicesResponseModel.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return + await global::ElevenLabs.GetLibraryVoicesResponseModel.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } } /// diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.VoicesClient.CreateVoicesAdd.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.VoicesClient.CreateVoicesAdd.g.cs index 52cda09..94ee19d 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.VoicesClient.CreateVoicesAdd.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.VoicesClient.CreateVoicesAdd.g.cs @@ -32,7 +32,7 @@ partial void ProcessCreateVoicesAddResponseContent( /// /// /// The token to cancel the operation with - /// + /// public async global::System.Threading.Tasks.Task CreateVoicesAddAsync( global::ElevenLabs.BodyAddVoiceV1VoicesAddPost request, string? xiApiKey = default, @@ -129,30 +129,97 @@ partial void ProcessCreateVoicesAddResponseContent( ProcessCreateVoicesAddResponse( httpClient: HttpClient, httpResponseMessage: __response); + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::ElevenLabs.HTTPValidationError? __value_422 = null; + if (ReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + __value_422 = global::ElevenLabs.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + __value_422 = await global::ElevenLabs.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + } - var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessCreateVoicesAddResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + statusCode: __response.StatusCode) + { + ResponseBody = __content_422, + ResponseObject = __value_422, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } - try + if (ReadResponseAsString) { - __response.EnsureSuccessStatusCode(); + var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessCreateVoicesAddResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + return + global::ElevenLabs.AddVoiceIVCResponseModel.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } - catch (global::System.Net.Http.HttpRequestException __ex) + else { - throw new global::System.InvalidOperationException(__content, __ex); - } + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - return - global::ElevenLabs.AddVoiceIVCResponseModel.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return + await global::ElevenLabs.AddVoiceIVCResponseModel.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } } /// diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.VoicesClient.CreateVoicesAddByPublicUserIdByVoiceId.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.VoicesClient.CreateVoicesAddByPublicUserIdByVoiceId.g.cs index 458c5d6..6ad885a 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.VoicesClient.CreateVoicesAddByPublicUserIdByVoiceId.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.VoicesClient.CreateVoicesAddByPublicUserIdByVoiceId.g.cs @@ -42,7 +42,7 @@ partial void ProcessCreateVoicesAddByPublicUserIdByVoiceIdResponseContent( /// /// /// The token to cancel the operation with - /// + /// public async global::System.Threading.Tasks.Task CreateVoicesAddByPublicUserIdByVoiceIdAsync( string publicUserId, string voiceId, @@ -119,30 +119,97 @@ partial void ProcessCreateVoicesAddByPublicUserIdByVoiceIdResponseContent( ProcessCreateVoicesAddByPublicUserIdByVoiceIdResponse( httpClient: HttpClient, httpResponseMessage: __response); + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::ElevenLabs.HTTPValidationError? __value_422 = null; + if (ReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + __value_422 = global::ElevenLabs.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + __value_422 = await global::ElevenLabs.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + } - var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessCreateVoicesAddByPublicUserIdByVoiceIdResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + statusCode: __response.StatusCode) + { + ResponseBody = __content_422, + ResponseObject = __value_422, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } - try + if (ReadResponseAsString) { - __response.EnsureSuccessStatusCode(); + var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessCreateVoicesAddByPublicUserIdByVoiceIdResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + return + global::ElevenLabs.AddVoiceResponseModel.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } - catch (global::System.Net.Http.HttpRequestException __ex) + else { - throw new global::System.InvalidOperationException(__content, __ex); - } + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } - return - global::ElevenLabs.AddVoiceResponseModel.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + + return + await global::ElevenLabs.AddVoiceResponseModel.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } } /// diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.VoicesClient.CreateVoicesByVoiceIdEdit.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.VoicesClient.CreateVoicesByVoiceIdEdit.g.cs index 43c5370..ba70435 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.VoicesClient.CreateVoicesByVoiceIdEdit.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.VoicesClient.CreateVoicesByVoiceIdEdit.g.cs @@ -37,7 +37,7 @@ partial void ProcessCreateVoicesByVoiceIdEditResponseContent( /// /// /// The token to cancel the operation with - /// + /// public async global::System.Threading.Tasks.Task CreateVoicesByVoiceIdEditAsync( string voiceId, global::ElevenLabs.BodyEditVoiceV1VoicesVoiceIdEditPost request, @@ -143,28 +143,93 @@ partial void ProcessCreateVoicesByVoiceIdEditResponseContent( ProcessCreateVoicesByVoiceIdEditResponse( httpClient: HttpClient, httpResponseMessage: __response); + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::ElevenLabs.HTTPValidationError? __value_422 = null; + if (ReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + __value_422 = global::ElevenLabs.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + __value_422 = await global::ElevenLabs.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + } - var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessCreateVoicesByVoiceIdEditResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + statusCode: __response.StatusCode) + { + ResponseBody = __content_422, + ResponseObject = __value_422, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } - try + if (ReadResponseAsString) { - __response.EnsureSuccessStatusCode(); + var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessCreateVoicesByVoiceIdEditResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + return __content; } - catch (global::System.Net.Http.HttpRequestException __ex) + else { - throw new global::System.InvalidOperationException(__content, __ex); - } + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - return __content; + return __content; + } } /// diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.VoicesClient.CreateVoicesByVoiceIdSettingsEdit.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.VoicesClient.CreateVoicesByVoiceIdSettingsEdit.g.cs index d8c630c..91a59fb 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.VoicesClient.CreateVoicesByVoiceIdSettingsEdit.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.VoicesClient.CreateVoicesByVoiceIdSettingsEdit.g.cs @@ -37,7 +37,7 @@ partial void ProcessCreateVoicesByVoiceIdSettingsEditResponseContent( /// /// /// The token to cancel the operation with - /// + /// public async global::System.Threading.Tasks.Task CreateVoicesByVoiceIdSettingsEditAsync( string voiceId, global::ElevenLabs.AllOf request, @@ -109,28 +109,93 @@ partial void ProcessCreateVoicesByVoiceIdSettingsEditResponseContent( ProcessCreateVoicesByVoiceIdSettingsEditResponse( httpClient: HttpClient, httpResponseMessage: __response); + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::ElevenLabs.HTTPValidationError? __value_422 = null; + if (ReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + __value_422 = global::ElevenLabs.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + __value_422 = await global::ElevenLabs.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + } - var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessCreateVoicesByVoiceIdSettingsEditResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + statusCode: __response.StatusCode) + { + ResponseBody = __content_422, + ResponseObject = __value_422, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } - try + if (ReadResponseAsString) { - __response.EnsureSuccessStatusCode(); + var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessCreateVoicesByVoiceIdSettingsEditResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + return __content; } - catch (global::System.Net.Http.HttpRequestException __ex) + else { - throw new global::System.InvalidOperationException(__content, __ex); - } + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } - return __content; + var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + return __content; + } } /// diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.VoicesClient.DeleteVoicesByVoiceId.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.VoicesClient.DeleteVoicesByVoiceId.g.cs index 8bf22ef..db862f1 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.VoicesClient.DeleteVoicesByVoiceId.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.VoicesClient.DeleteVoicesByVoiceId.g.cs @@ -34,7 +34,7 @@ partial void ProcessDeleteVoicesByVoiceIdResponseContent( /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. /// /// The token to cancel the operation with - /// + /// public async global::System.Threading.Tasks.Task DeleteVoicesByVoiceIdAsync( string voiceId, string? xiApiKey = default, @@ -97,28 +97,93 @@ partial void ProcessDeleteVoicesByVoiceIdResponseContent( ProcessDeleteVoicesByVoiceIdResponse( httpClient: HttpClient, httpResponseMessage: __response); + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::ElevenLabs.HTTPValidationError? __value_422 = null; + if (ReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + __value_422 = global::ElevenLabs.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + __value_422 = await global::ElevenLabs.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + } - var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessDeleteVoicesByVoiceIdResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + statusCode: __response.StatusCode) + { + ResponseBody = __content_422, + ResponseObject = __value_422, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } - try + if (ReadResponseAsString) { - __response.EnsureSuccessStatusCode(); + var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessDeleteVoicesByVoiceIdResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + return __content; } - catch (global::System.Net.Http.HttpRequestException __ex) + else { - throw new global::System.InvalidOperationException(__content, __ex); - } + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - return __content; + return __content; + } } } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.VoicesClient.GetProfileByHandle.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.VoicesClient.GetProfileByHandle.g.cs index 81db43f..6a98625 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.VoicesClient.GetProfileByHandle.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.VoicesClient.GetProfileByHandle.g.cs @@ -29,7 +29,7 @@ partial void ProcessGetProfileByHandleResponseContent( /// Handle for a VA's profile page /// /// The token to cancel the operation with - /// + /// public async global::System.Threading.Tasks.Task GetProfileByHandleAsync( string handle, global::System.Threading.CancellationToken cancellationToken = default) @@ -83,30 +83,97 @@ partial void ProcessGetProfileByHandleResponseContent( ProcessGetProfileByHandleResponse( httpClient: HttpClient, httpResponseMessage: __response); + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::ElevenLabs.HTTPValidationError? __value_422 = null; + if (ReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + __value_422 = global::ElevenLabs.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + __value_422 = await global::ElevenLabs.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + } - var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessGetProfileByHandleResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + statusCode: __response.StatusCode) + { + ResponseBody = __content_422, + ResponseObject = __value_422, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } - try + if (ReadResponseAsString) { - __response.EnsureSuccessStatusCode(); + var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessGetProfileByHandleResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + return + global::ElevenLabs.ProfilePageResponseModel.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } - catch (global::System.Net.Http.HttpRequestException __ex) + else { - throw new global::System.InvalidOperationException(__content, __ex); - } + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - return - global::ElevenLabs.ProfilePageResponseModel.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return + await global::ElevenLabs.ProfilePageResponseModel.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } } } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.VoicesClient.GetSharedVoices.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.VoicesClient.GetSharedVoices.g.cs index 4bf8934..423e86f 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.VoicesClient.GetSharedVoices.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.VoicesClient.GetSharedVoices.g.cs @@ -102,7 +102,7 @@ partial void ProcessGetSharedVoicesResponseContent( /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. /// /// The token to cancel the operation with - /// + /// public async global::System.Threading.Tasks.Task GetSharedVoicesAsync( int? pageSize = default, string? category = default, @@ -220,30 +220,97 @@ partial void ProcessGetSharedVoicesResponseContent( ProcessGetSharedVoicesResponse( httpClient: HttpClient, httpResponseMessage: __response); + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::ElevenLabs.HTTPValidationError? __value_422 = null; + if (ReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + __value_422 = global::ElevenLabs.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + __value_422 = await global::ElevenLabs.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + } - var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessGetSharedVoicesResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + statusCode: __response.StatusCode) + { + ResponseBody = __content_422, + ResponseObject = __value_422, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } - try + if (ReadResponseAsString) { - __response.EnsureSuccessStatusCode(); + var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessGetSharedVoicesResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + return + global::ElevenLabs.GetLibraryVoicesResponseModel.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } - catch (global::System.Net.Http.HttpRequestException __ex) + else { - throw new global::System.InvalidOperationException(__content, __ex); - } + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - return - global::ElevenLabs.GetLibraryVoicesResponseModel.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return + await global::ElevenLabs.GetLibraryVoicesResponseModel.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } } } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.VoicesClient.GetVoices.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.VoicesClient.GetVoices.g.cs index 47b85fb..16c69c7 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.VoicesClient.GetVoices.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.VoicesClient.GetVoices.g.cs @@ -35,7 +35,7 @@ partial void ProcessGetVoicesResponseContent( /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. /// /// The token to cancel the operation with - /// + /// public async global::System.Threading.Tasks.Task GetVoicesAsync( bool? showLegacy = default, string? xiApiKey = default, @@ -101,30 +101,97 @@ partial void ProcessGetVoicesResponseContent( ProcessGetVoicesResponse( httpClient: HttpClient, httpResponseMessage: __response); + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::ElevenLabs.HTTPValidationError? __value_422 = null; + if (ReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + __value_422 = global::ElevenLabs.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + __value_422 = await global::ElevenLabs.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + } - var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessGetVoicesResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + statusCode: __response.StatusCode) + { + ResponseBody = __content_422, + ResponseObject = __value_422, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } - try + if (ReadResponseAsString) { - __response.EnsureSuccessStatusCode(); + var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessGetVoicesResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + return + global::ElevenLabs.GetVoicesResponseModel.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } - catch (global::System.Net.Http.HttpRequestException __ex) + else { - throw new global::System.InvalidOperationException(__content, __ex); - } + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - return - global::ElevenLabs.GetVoicesResponseModel.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return + await global::ElevenLabs.GetVoicesResponseModel.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } } } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.VoicesClient.GetVoicesByVoiceId.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.VoicesClient.GetVoicesByVoiceId.g.cs index 77a5bc9..0a3859c 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.VoicesClient.GetVoicesByVoiceId.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.VoicesClient.GetVoicesByVoiceId.g.cs @@ -40,7 +40,7 @@ partial void ProcessGetVoicesByVoiceIdResponseContent( /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. /// /// The token to cancel the operation with - /// + /// public async global::System.Threading.Tasks.Task GetVoicesByVoiceIdAsync( string voiceId, bool? withSettings = default, @@ -109,30 +109,97 @@ partial void ProcessGetVoicesByVoiceIdResponseContent( ProcessGetVoicesByVoiceIdResponse( httpClient: HttpClient, httpResponseMessage: __response); + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::ElevenLabs.HTTPValidationError? __value_422 = null; + if (ReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + __value_422 = global::ElevenLabs.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + __value_422 = await global::ElevenLabs.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + } - var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessGetVoicesByVoiceIdResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + statusCode: __response.StatusCode) + { + ResponseBody = __content_422, + ResponseObject = __value_422, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } - try + if (ReadResponseAsString) { - __response.EnsureSuccessStatusCode(); + var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessGetVoicesByVoiceIdResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + return + global::ElevenLabs.VoiceResponseModel.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } - catch (global::System.Net.Http.HttpRequestException __ex) + else { - throw new global::System.InvalidOperationException(__content, __ex); - } + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - return - global::ElevenLabs.VoiceResponseModel.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return + await global::ElevenLabs.VoiceResponseModel.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } } } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.VoicesClient.GetVoicesByVoiceIdSettings.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.VoicesClient.GetVoicesByVoiceIdSettings.g.cs index 83e0212..8011d31 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.VoicesClient.GetVoicesByVoiceIdSettings.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.VoicesClient.GetVoicesByVoiceIdSettings.g.cs @@ -34,7 +34,7 @@ partial void ProcessGetVoicesByVoiceIdSettingsResponseContent( /// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. /// /// The token to cancel the operation with - /// + /// public async global::System.Threading.Tasks.Task GetVoicesByVoiceIdSettingsAsync( string voiceId, string? xiApiKey = default, @@ -97,30 +97,97 @@ partial void ProcessGetVoicesByVoiceIdSettingsResponseContent( ProcessGetVoicesByVoiceIdSettingsResponse( httpClient: HttpClient, httpResponseMessage: __response); + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::ElevenLabs.HTTPValidationError? __value_422 = null; + if (ReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + __value_422 = global::ElevenLabs.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + __value_422 = await global::ElevenLabs.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + } - var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessGetVoicesByVoiceIdSettingsResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + statusCode: __response.StatusCode) + { + ResponseBody = __content_422, + ResponseObject = __value_422, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } - try + if (ReadResponseAsString) { - __response.EnsureSuccessStatusCode(); + var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessGetVoicesByVoiceIdSettingsResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + return + global::ElevenLabs.VoiceSettingsResponseModel.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } - catch (global::System.Net.Http.HttpRequestException __ex) + else { - throw new global::System.InvalidOperationException(__content, __ex); - } + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - return - global::ElevenLabs.VoiceSettingsResponseModel.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return + await global::ElevenLabs.VoiceSettingsResponseModel.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } } } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.VoicesClient.GetVoicesSettingsDefault.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.VoicesClient.GetVoicesSettingsDefault.g.cs index 5bc25f3..eeedadd 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.VoicesClient.GetVoicesSettingsDefault.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.VoicesClient.GetVoicesSettingsDefault.g.cs @@ -24,7 +24,7 @@ partial void ProcessGetVoicesSettingsDefaultResponseContent( /// Gets the default settings for voices. "similarity_boost" corresponds to"Clarity + Similarity Enhancement" in the web app and "stability" corresponds to "Stability" slider in the web app. /// /// The token to cancel the operation with - /// + /// public async global::System.Threading.Tasks.Task GetVoicesSettingsDefaultAsync( global::System.Threading.CancellationToken cancellationToken = default) { @@ -76,29 +76,68 @@ partial void ProcessGetVoicesSettingsDefaultResponseContent( httpClient: HttpClient, httpResponseMessage: __response); - var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + if (ReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessGetVoicesSettingsDefaultResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessGetVoicesSettingsDefaultResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); - try - { - __response.EnsureSuccessStatusCode(); + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + return + global::ElevenLabs.VoiceSettingsResponseModel.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } - catch (global::System.Net.Http.HttpRequestException __ex) + else { - throw new global::System.InvalidOperationException(__content, __ex); - } + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } - return - global::ElevenLabs.VoiceSettingsResponseModel.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + + return + await global::ElevenLabs.VoiceSettingsResponseModel.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } } } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.VoicesClient.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.VoicesClient.g.cs index 1962381..a9b8582 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.VoicesClient.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.VoicesClient.g.cs @@ -26,6 +26,11 @@ public sealed partial class VoicesClient : global::ElevenLabs.IVoicesClient, glo /// public global::System.Collections.Generic.List Authorizations { get; } + /// + public bool ReadResponseAsString { get; set; } +#if DEBUG + = true; +#endif /// /// /// diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.WorkspaceClient.CreateWorkspaceInvitesAdd.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.WorkspaceClient.CreateWorkspaceInvitesAdd.g.cs index e3d708a..c6d02fa 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.WorkspaceClient.CreateWorkspaceInvitesAdd.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.WorkspaceClient.CreateWorkspaceInvitesAdd.g.cs @@ -32,7 +32,7 @@ partial void ProcessCreateWorkspaceInvitesAddResponseContent( /// /// /// The token to cancel the operation with - /// + /// public async global::System.Threading.Tasks.Task CreateWorkspaceInvitesAddAsync( global::ElevenLabs.BodyInviteUserV1WorkspaceInvitesAddPost request, string? xiApiKey = default, @@ -103,28 +103,93 @@ partial void ProcessCreateWorkspaceInvitesAddResponseContent( ProcessCreateWorkspaceInvitesAddResponse( httpClient: HttpClient, httpResponseMessage: __response); + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::ElevenLabs.HTTPValidationError? __value_422 = null; + if (ReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + __value_422 = global::ElevenLabs.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + __value_422 = await global::ElevenLabs.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + } - var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessCreateWorkspaceInvitesAddResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + statusCode: __response.StatusCode) + { + ResponseBody = __content_422, + ResponseObject = __value_422, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } - try + if (ReadResponseAsString) { - __response.EnsureSuccessStatusCode(); + var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessCreateWorkspaceInvitesAddResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + return __content; } - catch (global::System.Net.Http.HttpRequestException __ex) + else { - throw new global::System.InvalidOperationException(__content, __ex); - } + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } - return __content; + var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + return __content; + } } /// diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.WorkspaceClient.CreateWorkspaceMembers.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.WorkspaceClient.CreateWorkspaceMembers.g.cs index a8e239e..fcc76ca 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.WorkspaceClient.CreateWorkspaceMembers.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.WorkspaceClient.CreateWorkspaceMembers.g.cs @@ -32,7 +32,7 @@ partial void ProcessCreateWorkspaceMembersResponseContent( /// /// /// The token to cancel the operation with - /// + /// public async global::System.Threading.Tasks.Task CreateWorkspaceMembersAsync( global::ElevenLabs.BodyUpdateMemberV1WorkspaceMembersPost request, string? xiApiKey = default, @@ -103,28 +103,93 @@ partial void ProcessCreateWorkspaceMembersResponseContent( ProcessCreateWorkspaceMembersResponse( httpClient: HttpClient, httpResponseMessage: __response); + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::ElevenLabs.HTTPValidationError? __value_422 = null; + if (ReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + __value_422 = global::ElevenLabs.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + __value_422 = await global::ElevenLabs.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + } - var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessCreateWorkspaceMembersResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + statusCode: __response.StatusCode) + { + ResponseBody = __content_422, + ResponseObject = __value_422, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } - try + if (ReadResponseAsString) { - __response.EnsureSuccessStatusCode(); + var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessCreateWorkspaceMembersResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + return __content; } - catch (global::System.Net.Http.HttpRequestException __ex) + else { - throw new global::System.InvalidOperationException(__content, __ex); - } + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } - return __content; + var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + return __content; + } } /// diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.WorkspaceClient.DeleteWorkspaceInvites.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.WorkspaceClient.DeleteWorkspaceInvites.g.cs index a1c1299..78726e0 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.WorkspaceClient.DeleteWorkspaceInvites.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.WorkspaceClient.DeleteWorkspaceInvites.g.cs @@ -32,7 +32,7 @@ partial void ProcessDeleteWorkspaceInvitesResponseContent( /// /// /// The token to cancel the operation with - /// + /// public async global::System.Threading.Tasks.Task DeleteWorkspaceInvitesAsync( global::ElevenLabs.BodyDeleteExistingInvitationV1WorkspaceInvitesDelete request, string? xiApiKey = default, @@ -103,28 +103,93 @@ partial void ProcessDeleteWorkspaceInvitesResponseContent( ProcessDeleteWorkspaceInvitesResponse( httpClient: HttpClient, httpResponseMessage: __response); + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::ElevenLabs.HTTPValidationError? __value_422 = null; + if (ReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + __value_422 = global::ElevenLabs.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + __value_422 = await global::ElevenLabs.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + } - var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessDeleteWorkspaceInvitesResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + statusCode: __response.StatusCode) + { + ResponseBody = __content_422, + ResponseObject = __value_422, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } - try + if (ReadResponseAsString) { - __response.EnsureSuccessStatusCode(); + var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessDeleteWorkspaceInvitesResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + return __content; } - catch (global::System.Net.Http.HttpRequestException __ex) + else { - throw new global::System.InvalidOperationException(__content, __ex); - } + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } - return __content; + var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + return __content; + } } /// diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.WorkspaceClient.GetAdminN8enylacgdSsoProvider.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.WorkspaceClient.GetAdminN8enylacgdSsoProvider.g.cs index 15f8ea0..8811a9f 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.WorkspaceClient.GetAdminN8enylacgdSsoProvider.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.WorkspaceClient.GetAdminN8enylacgdSsoProvider.g.cs @@ -26,7 +26,7 @@ partial void ProcessGetAdminN8enylacgdSsoProviderResponseContent( /// /// /// The token to cancel the operation with - /// + /// public async global::System.Threading.Tasks.Task GetAdminN8enylacgdSsoProviderAsync( string workspaceId, global::System.Threading.CancellationToken cancellationToken = default) @@ -83,30 +83,97 @@ partial void ProcessGetAdminN8enylacgdSsoProviderResponseContent( ProcessGetAdminN8enylacgdSsoProviderResponse( httpClient: HttpClient, httpResponseMessage: __response); + // Validation Error + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::ElevenLabs.HTTPValidationError? __value_422 = null; + if (ReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + __value_422 = global::ElevenLabs.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + } + else + { + var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); + __value_422 = await global::ElevenLabs.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false); + } - var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessGetAdminN8enylacgdSsoProviderResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + statusCode: __response.StatusCode) + { + ResponseBody = __content_422, + ResponseObject = __value_422, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } - try + if (ReadResponseAsString) { - __response.EnsureSuccessStatusCode(); + var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessGetAdminN8enylacgdSsoProviderResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + return + global::ElevenLabs.SsoProviderResponseModel.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } - catch (global::System.Net.Http.HttpRequestException __ex) + else { - throw new global::System.InvalidOperationException(__content, __ex); - } + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + throw new global::ElevenLabs.ApiException( + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - return - global::ElevenLabs.SsoProviderResponseModel.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return + await global::ElevenLabs.SsoProviderResponseModel.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } } } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/ElevenLabs.WorkspaceClient.g.cs b/src/libs/ElevenLabs/Generated/ElevenLabs.WorkspaceClient.g.cs index 9a86428..f7d23f3 100644 --- a/src/libs/ElevenLabs/Generated/ElevenLabs.WorkspaceClient.g.cs +++ b/src/libs/ElevenLabs/Generated/ElevenLabs.WorkspaceClient.g.cs @@ -25,6 +25,11 @@ public sealed partial class WorkspaceClient : global::ElevenLabs.IWorkspaceClien /// public global::System.Collections.Generic.List Authorizations { get; } + /// + public bool ReadResponseAsString { get; set; } +#if DEBUG + = true; +#endif /// /// /// diff --git a/src/libs/ElevenLabs/Generated/JsonConverters.ASRInputFormat.g.cs b/src/libs/ElevenLabs/Generated/JsonConverters.ASRInputFormat.g.cs new file mode 100644 index 0000000..7353435 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/JsonConverters.ASRInputFormat.g.cs @@ -0,0 +1,49 @@ +#nullable enable + +namespace ElevenLabs.JsonConverters +{ + /// + public sealed class ASRInputFormatJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ElevenLabs.ASRInputFormat 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::ElevenLabs.ASRInputFormatExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ElevenLabs.ASRInputFormat)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ElevenLabs.ASRInputFormat value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::ElevenLabs.ASRInputFormatExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/JsonConverters.ASRInputFormatNullable.g.cs b/src/libs/ElevenLabs/Generated/JsonConverters.ASRInputFormatNullable.g.cs new file mode 100644 index 0000000..d84c7ae --- /dev/null +++ b/src/libs/ElevenLabs/Generated/JsonConverters.ASRInputFormatNullable.g.cs @@ -0,0 +1,56 @@ +#nullable enable + +namespace ElevenLabs.JsonConverters +{ + /// + public sealed class ASRInputFormatNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ElevenLabs.ASRInputFormat? 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::ElevenLabs.ASRInputFormatExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ElevenLabs.ASRInputFormat)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ElevenLabs.ASRInputFormat? 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::ElevenLabs.ASRInputFormatExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/ElevenLabs/Generated/JsonConverters.ASRProvider.g.cs b/src/libs/ElevenLabs/Generated/JsonConverters.ASRProvider.g.cs new file mode 100644 index 0000000..32e7411 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/JsonConverters.ASRProvider.g.cs @@ -0,0 +1,49 @@ +#nullable enable + +namespace ElevenLabs.JsonConverters +{ + /// + public sealed class ASRProviderJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ElevenLabs.ASRProvider 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::ElevenLabs.ASRProviderExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ElevenLabs.ASRProvider)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ElevenLabs.ASRProvider value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::ElevenLabs.ASRProviderExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/JsonConverters.ASRProviderNullable.g.cs b/src/libs/ElevenLabs/Generated/JsonConverters.ASRProviderNullable.g.cs new file mode 100644 index 0000000..d8e1958 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/JsonConverters.ASRProviderNullable.g.cs @@ -0,0 +1,56 @@ +#nullable enable + +namespace ElevenLabs.JsonConverters +{ + /// + public sealed class ASRProviderNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ElevenLabs.ASRProvider? 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::ElevenLabs.ASRProviderExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ElevenLabs.ASRProvider)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ElevenLabs.ASRProvider? 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::ElevenLabs.ASRProviderExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/ElevenLabs/Generated/JsonConverters.ASRQuality.g.cs b/src/libs/ElevenLabs/Generated/JsonConverters.ASRQuality.g.cs new file mode 100644 index 0000000..e258b69 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/JsonConverters.ASRQuality.g.cs @@ -0,0 +1,49 @@ +#nullable enable + +namespace ElevenLabs.JsonConverters +{ + /// + public sealed class ASRQualityJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ElevenLabs.ASRQuality 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::ElevenLabs.ASRQualityExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ElevenLabs.ASRQuality)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ElevenLabs.ASRQuality value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::ElevenLabs.ASRQualityExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/JsonConverters.ASRQualityNullable.g.cs b/src/libs/ElevenLabs/Generated/JsonConverters.ASRQualityNullable.g.cs new file mode 100644 index 0000000..9c16d3a --- /dev/null +++ b/src/libs/ElevenLabs/Generated/JsonConverters.ASRQualityNullable.g.cs @@ -0,0 +1,56 @@ +#nullable enable + +namespace ElevenLabs.JsonConverters +{ + /// + public sealed class ASRQualityNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ElevenLabs.ASRQuality? 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::ElevenLabs.ASRQualityExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ElevenLabs.ASRQuality)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ElevenLabs.ASRQuality? 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::ElevenLabs.ASRQualityExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/ElevenLabs/Generated/JsonConverters.AllOfFactory1.g.cs b/src/libs/ElevenLabs/Generated/JsonConverters.AllOfFactory1.g.cs deleted file mode 100644 index ecd5a53..0000000 --- a/src/libs/ElevenLabs/Generated/JsonConverters.AllOfFactory1.g.cs +++ /dev/null @@ -1,25 +0,0 @@ -#nullable enable - -namespace ElevenLabs.JsonConverters -{ - /// - public sealed class AllOfJsonConverterFactory1 : global::System.Text.Json.Serialization.JsonConverterFactory - { - /// - public override bool CanConvert(global::System.Type? typeToConvert) - { - return typeToConvert is { IsGenericType: true } && typeToConvert.GetGenericTypeDefinition() == typeof(global::ElevenLabs.AllOf<>); - } - - /// - public override global::System.Text.Json.Serialization.JsonConverter CreateConverter( - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - typeToConvert = typeToConvert ?? throw new global::System.ArgumentNullException(nameof(typeToConvert)); - - return (global::System.Text.Json.Serialization.JsonConverter)global::System.Activator.CreateInstance( - typeof(AllOfJsonConverter<>).MakeGenericType(typeToConvert.GenericTypeArguments))!; - } - } -} diff --git a/src/libs/ElevenLabs/Generated/JsonConverters.AnyOf3.g.cs b/src/libs/ElevenLabs/Generated/JsonConverters.AnyOf3.g.cs new file mode 100644 index 0000000..098304f --- /dev/null +++ b/src/libs/ElevenLabs/Generated/JsonConverters.AnyOf3.g.cs @@ -0,0 +1,111 @@ +#nullable enable + +namespace ElevenLabs.JsonConverters +{ + /// + public class AnyOfJsonConverter : global::System.Text.Json.Serialization.JsonConverter> + { + /// + public override global::ElevenLabs.AnyOf Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + var + readerCopy = reader; + T1? value1 = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); + value1 = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + readerCopy = reader; + T2? value2 = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); + value2 = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + readerCopy = reader; + T3? value3 = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}"); + value3 = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + var result = new global::ElevenLabs.AnyOf( + value1, + value2, + value3 + ); + + if (value1 != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + else if (value2 != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + else if (value3 != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + + return result; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ElevenLabs.AnyOf value, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + if (value.IsValue1) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1, typeInfo); + } + else if (value.IsValue2) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2, typeInfo); + } + else if (value.IsValue3) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value3, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/ElevenLabs/Generated/JsonConverters.AnyOfFactory2.g.cs b/src/libs/ElevenLabs/Generated/JsonConverters.AnyOfFactory2.g.cs deleted file mode 100644 index 5fadc8f..0000000 --- a/src/libs/ElevenLabs/Generated/JsonConverters.AnyOfFactory2.g.cs +++ /dev/null @@ -1,25 +0,0 @@ -#nullable enable - -namespace ElevenLabs.JsonConverters -{ - /// - public sealed class AnyOfJsonConverterFactory2 : global::System.Text.Json.Serialization.JsonConverterFactory - { - /// - public override bool CanConvert(global::System.Type? typeToConvert) - { - return typeToConvert is { IsGenericType: true } && typeToConvert.GetGenericTypeDefinition() == typeof(global::ElevenLabs.AnyOf<,>); - } - - /// - public override global::System.Text.Json.Serialization.JsonConverter CreateConverter( - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - typeToConvert = typeToConvert ?? throw new global::System.ArgumentNullException(nameof(typeToConvert)); - - return (global::System.Text.Json.Serialization.JsonConverter)global::System.Activator.CreateInstance( - typeof(AnyOfJsonConverter<,>).MakeGenericType(typeToConvert.GenericTypeArguments))!; - } - } -} diff --git a/src/libs/ElevenLabs/Generated/JsonConverters.ClientEvent.g.cs b/src/libs/ElevenLabs/Generated/JsonConverters.ClientEvent.g.cs new file mode 100644 index 0000000..a581d12 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/JsonConverters.ClientEvent.g.cs @@ -0,0 +1,49 @@ +#nullable enable + +namespace ElevenLabs.JsonConverters +{ + /// + public sealed class ClientEventJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ElevenLabs.ClientEvent 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::ElevenLabs.ClientEventExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ElevenLabs.ClientEvent)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ElevenLabs.ClientEvent value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::ElevenLabs.ClientEventExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/JsonConverters.ClientEventNullable.g.cs b/src/libs/ElevenLabs/Generated/JsonConverters.ClientEventNullable.g.cs new file mode 100644 index 0000000..144a50a --- /dev/null +++ b/src/libs/ElevenLabs/Generated/JsonConverters.ClientEventNullable.g.cs @@ -0,0 +1,56 @@ +#nullable enable + +namespace ElevenLabs.JsonConverters +{ + /// + public sealed class ClientEventNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ElevenLabs.ClientEvent? 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::ElevenLabs.ClientEventExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ElevenLabs.ClientEvent)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ElevenLabs.ClientEvent? 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::ElevenLabs.ClientEventExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/ElevenLabs/Generated/JsonConverters.ConversationHistoryTranscriptCommonModelRole.g.cs b/src/libs/ElevenLabs/Generated/JsonConverters.ConversationHistoryTranscriptCommonModelRole.g.cs new file mode 100644 index 0000000..e344965 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/JsonConverters.ConversationHistoryTranscriptCommonModelRole.g.cs @@ -0,0 +1,49 @@ +#nullable enable + +namespace ElevenLabs.JsonConverters +{ + /// + public sealed class ConversationHistoryTranscriptCommonModelRoleJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ElevenLabs.ConversationHistoryTranscriptCommonModelRole 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::ElevenLabs.ConversationHistoryTranscriptCommonModelRoleExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ElevenLabs.ConversationHistoryTranscriptCommonModelRole)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ElevenLabs.ConversationHistoryTranscriptCommonModelRole value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::ElevenLabs.ConversationHistoryTranscriptCommonModelRoleExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/JsonConverters.ConversationHistoryTranscriptCommonModelRoleNullable.g.cs b/src/libs/ElevenLabs/Generated/JsonConverters.ConversationHistoryTranscriptCommonModelRoleNullable.g.cs new file mode 100644 index 0000000..8bde6b8 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/JsonConverters.ConversationHistoryTranscriptCommonModelRoleNullable.g.cs @@ -0,0 +1,56 @@ +#nullable enable + +namespace ElevenLabs.JsonConverters +{ + /// + public sealed class ConversationHistoryTranscriptCommonModelRoleNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ElevenLabs.ConversationHistoryTranscriptCommonModelRole? 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::ElevenLabs.ConversationHistoryTranscriptCommonModelRoleExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ElevenLabs.ConversationHistoryTranscriptCommonModelRole)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ElevenLabs.ConversationHistoryTranscriptCommonModelRole? 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::ElevenLabs.ConversationHistoryTranscriptCommonModelRoleExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/ElevenLabs/Generated/JsonConverters.ConversationSummaryResponseModelStatus.g.cs b/src/libs/ElevenLabs/Generated/JsonConverters.ConversationSummaryResponseModelStatus.g.cs new file mode 100644 index 0000000..7df0be8 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/JsonConverters.ConversationSummaryResponseModelStatus.g.cs @@ -0,0 +1,49 @@ +#nullable enable + +namespace ElevenLabs.JsonConverters +{ + /// + public sealed class ConversationSummaryResponseModelStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ElevenLabs.ConversationSummaryResponseModelStatus 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::ElevenLabs.ConversationSummaryResponseModelStatusExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ElevenLabs.ConversationSummaryResponseModelStatus)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ElevenLabs.ConversationSummaryResponseModelStatus value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::ElevenLabs.ConversationSummaryResponseModelStatusExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/JsonConverters.ConversationSummaryResponseModelStatusNullable.g.cs b/src/libs/ElevenLabs/Generated/JsonConverters.ConversationSummaryResponseModelStatusNullable.g.cs new file mode 100644 index 0000000..d3cc37f --- /dev/null +++ b/src/libs/ElevenLabs/Generated/JsonConverters.ConversationSummaryResponseModelStatusNullable.g.cs @@ -0,0 +1,56 @@ +#nullable enable + +namespace ElevenLabs.JsonConverters +{ + /// + public sealed class ConversationSummaryResponseModelStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ElevenLabs.ConversationSummaryResponseModelStatus? 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::ElevenLabs.ConversationSummaryResponseModelStatusExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ElevenLabs.ConversationSummaryResponseModelStatus)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ElevenLabs.ConversationSummaryResponseModelStatus? 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::ElevenLabs.ConversationSummaryResponseModelStatusExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/ElevenLabs/Generated/JsonConverters.EmbedVariant.g.cs b/src/libs/ElevenLabs/Generated/JsonConverters.EmbedVariant.g.cs new file mode 100644 index 0000000..ca85f38 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/JsonConverters.EmbedVariant.g.cs @@ -0,0 +1,49 @@ +#nullable enable + +namespace ElevenLabs.JsonConverters +{ + /// + public sealed class EmbedVariantJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ElevenLabs.EmbedVariant 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::ElevenLabs.EmbedVariantExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ElevenLabs.EmbedVariant)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ElevenLabs.EmbedVariant value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::ElevenLabs.EmbedVariantExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/JsonConverters.EmbedVariantNullable.g.cs b/src/libs/ElevenLabs/Generated/JsonConverters.EmbedVariantNullable.g.cs new file mode 100644 index 0000000..9b499ef --- /dev/null +++ b/src/libs/ElevenLabs/Generated/JsonConverters.EmbedVariantNullable.g.cs @@ -0,0 +1,56 @@ +#nullable enable + +namespace ElevenLabs.JsonConverters +{ + /// + public sealed class EmbedVariantNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ElevenLabs.EmbedVariant? 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::ElevenLabs.EmbedVariantExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ElevenLabs.EmbedVariant)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ElevenLabs.EmbedVariant? 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::ElevenLabs.EmbedVariantExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/ElevenLabs/Generated/JsonConverters.EvaluationSuccessResult.g.cs b/src/libs/ElevenLabs/Generated/JsonConverters.EvaluationSuccessResult.g.cs new file mode 100644 index 0000000..a541251 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/JsonConverters.EvaluationSuccessResult.g.cs @@ -0,0 +1,49 @@ +#nullable enable + +namespace ElevenLabs.JsonConverters +{ + /// + public sealed class EvaluationSuccessResultJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ElevenLabs.EvaluationSuccessResult 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::ElevenLabs.EvaluationSuccessResultExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ElevenLabs.EvaluationSuccessResult)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ElevenLabs.EvaluationSuccessResult value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::ElevenLabs.EvaluationSuccessResultExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/JsonConverters.EvaluationSuccessResultNullable.g.cs b/src/libs/ElevenLabs/Generated/JsonConverters.EvaluationSuccessResultNullable.g.cs new file mode 100644 index 0000000..b7112ae --- /dev/null +++ b/src/libs/ElevenLabs/Generated/JsonConverters.EvaluationSuccessResultNullable.g.cs @@ -0,0 +1,56 @@ +#nullable enable + +namespace ElevenLabs.JsonConverters +{ + /// + public sealed class EvaluationSuccessResultNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ElevenLabs.EvaluationSuccessResult? 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::ElevenLabs.EvaluationSuccessResultExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ElevenLabs.EvaluationSuccessResult)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ElevenLabs.EvaluationSuccessResult? 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::ElevenLabs.EvaluationSuccessResultExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/ElevenLabs/Generated/JsonConverters.GetConversationResponseModelStatus.g.cs b/src/libs/ElevenLabs/Generated/JsonConverters.GetConversationResponseModelStatus.g.cs new file mode 100644 index 0000000..6909c5a --- /dev/null +++ b/src/libs/ElevenLabs/Generated/JsonConverters.GetConversationResponseModelStatus.g.cs @@ -0,0 +1,49 @@ +#nullable enable + +namespace ElevenLabs.JsonConverters +{ + /// + public sealed class GetConversationResponseModelStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ElevenLabs.GetConversationResponseModelStatus 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::ElevenLabs.GetConversationResponseModelStatusExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ElevenLabs.GetConversationResponseModelStatus)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ElevenLabs.GetConversationResponseModelStatus value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::ElevenLabs.GetConversationResponseModelStatusExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/JsonConverters.GetConversationResponseModelStatusNullable.g.cs b/src/libs/ElevenLabs/Generated/JsonConverters.GetConversationResponseModelStatusNullable.g.cs new file mode 100644 index 0000000..4077ff4 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/JsonConverters.GetConversationResponseModelStatusNullable.g.cs @@ -0,0 +1,56 @@ +#nullable enable + +namespace ElevenLabs.JsonConverters +{ + /// + public sealed class GetConversationResponseModelStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ElevenLabs.GetConversationResponseModelStatus? 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::ElevenLabs.GetConversationResponseModelStatusExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ElevenLabs.GetConversationResponseModelStatus)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ElevenLabs.GetConversationResponseModelStatus? 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::ElevenLabs.GetConversationResponseModelStatusExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/ElevenLabs/Generated/JsonConverters.GetKnowledgeBaseReponseModelType.g.cs b/src/libs/ElevenLabs/Generated/JsonConverters.GetKnowledgeBaseReponseModelType.g.cs new file mode 100644 index 0000000..db4c4fc --- /dev/null +++ b/src/libs/ElevenLabs/Generated/JsonConverters.GetKnowledgeBaseReponseModelType.g.cs @@ -0,0 +1,49 @@ +#nullable enable + +namespace ElevenLabs.JsonConverters +{ + /// + public sealed class GetKnowledgeBaseReponseModelTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ElevenLabs.GetKnowledgeBaseReponseModelType 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::ElevenLabs.GetKnowledgeBaseReponseModelTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ElevenLabs.GetKnowledgeBaseReponseModelType)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ElevenLabs.GetKnowledgeBaseReponseModelType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::ElevenLabs.GetKnowledgeBaseReponseModelTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/JsonConverters.GetKnowledgeBaseReponseModelTypeNullable.g.cs b/src/libs/ElevenLabs/Generated/JsonConverters.GetKnowledgeBaseReponseModelTypeNullable.g.cs new file mode 100644 index 0000000..46c9e2b --- /dev/null +++ b/src/libs/ElevenLabs/Generated/JsonConverters.GetKnowledgeBaseReponseModelTypeNullable.g.cs @@ -0,0 +1,56 @@ +#nullable enable + +namespace ElevenLabs.JsonConverters +{ + /// + public sealed class GetKnowledgeBaseReponseModelTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ElevenLabs.GetKnowledgeBaseReponseModelType? 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::ElevenLabs.GetKnowledgeBaseReponseModelTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ElevenLabs.GetKnowledgeBaseReponseModelType)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ElevenLabs.GetKnowledgeBaseReponseModelType? 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::ElevenLabs.GetKnowledgeBaseReponseModelTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/ElevenLabs/Generated/JsonConverters.ImageAvatarType.g.cs b/src/libs/ElevenLabs/Generated/JsonConverters.ImageAvatarType.g.cs new file mode 100644 index 0000000..ba1ebfd --- /dev/null +++ b/src/libs/ElevenLabs/Generated/JsonConverters.ImageAvatarType.g.cs @@ -0,0 +1,49 @@ +#nullable enable + +namespace ElevenLabs.JsonConverters +{ + /// + public sealed class ImageAvatarTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ElevenLabs.ImageAvatarType 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::ElevenLabs.ImageAvatarTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ElevenLabs.ImageAvatarType)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ElevenLabs.ImageAvatarType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::ElevenLabs.ImageAvatarTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/JsonConverters.ImageAvatarTypeNullable.g.cs b/src/libs/ElevenLabs/Generated/JsonConverters.ImageAvatarTypeNullable.g.cs new file mode 100644 index 0000000..e50b597 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/JsonConverters.ImageAvatarTypeNullable.g.cs @@ -0,0 +1,56 @@ +#nullable enable + +namespace ElevenLabs.JsonConverters +{ + /// + public sealed class ImageAvatarTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ElevenLabs.ImageAvatarType? 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::ElevenLabs.ImageAvatarTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ElevenLabs.ImageAvatarType)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ElevenLabs.ImageAvatarType? 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::ElevenLabs.ImageAvatarTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/ElevenLabs/Generated/JsonConverters.JsonLiteralType.g.cs b/src/libs/ElevenLabs/Generated/JsonConverters.JsonLiteralType.g.cs new file mode 100644 index 0000000..5568d6c --- /dev/null +++ b/src/libs/ElevenLabs/Generated/JsonConverters.JsonLiteralType.g.cs @@ -0,0 +1,49 @@ +#nullable enable + +namespace ElevenLabs.JsonConverters +{ + /// + public sealed class JsonLiteralTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ElevenLabs.JsonLiteralType 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::ElevenLabs.JsonLiteralTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ElevenLabs.JsonLiteralType)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ElevenLabs.JsonLiteralType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::ElevenLabs.JsonLiteralTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/JsonConverters.JsonLiteralTypeNullable.g.cs b/src/libs/ElevenLabs/Generated/JsonConverters.JsonLiteralTypeNullable.g.cs new file mode 100644 index 0000000..98547c7 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/JsonConverters.JsonLiteralTypeNullable.g.cs @@ -0,0 +1,56 @@ +#nullable enable + +namespace ElevenLabs.JsonConverters +{ + /// + public sealed class JsonLiteralTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ElevenLabs.JsonLiteralType? 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::ElevenLabs.JsonLiteralTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ElevenLabs.JsonLiteralType)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ElevenLabs.JsonLiteralType? 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::ElevenLabs.JsonLiteralTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/ElevenLabs/Generated/JsonConverters.JsonSchemaPropertyType.g.cs b/src/libs/ElevenLabs/Generated/JsonConverters.JsonSchemaPropertyType.g.cs new file mode 100644 index 0000000..262a2bf --- /dev/null +++ b/src/libs/ElevenLabs/Generated/JsonConverters.JsonSchemaPropertyType.g.cs @@ -0,0 +1,49 @@ +#nullable enable + +namespace ElevenLabs.JsonConverters +{ + /// + public sealed class JsonSchemaPropertyTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ElevenLabs.JsonSchemaPropertyType 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::ElevenLabs.JsonSchemaPropertyTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ElevenLabs.JsonSchemaPropertyType)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ElevenLabs.JsonSchemaPropertyType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::ElevenLabs.JsonSchemaPropertyTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/JsonConverters.JsonSchemaPropertyTypeNullable.g.cs b/src/libs/ElevenLabs/Generated/JsonConverters.JsonSchemaPropertyTypeNullable.g.cs new file mode 100644 index 0000000..42de6bf --- /dev/null +++ b/src/libs/ElevenLabs/Generated/JsonConverters.JsonSchemaPropertyTypeNullable.g.cs @@ -0,0 +1,56 @@ +#nullable enable + +namespace ElevenLabs.JsonConverters +{ + /// + public sealed class JsonSchemaPropertyTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ElevenLabs.JsonSchemaPropertyType? 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::ElevenLabs.JsonSchemaPropertyTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ElevenLabs.JsonSchemaPropertyType)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ElevenLabs.JsonSchemaPropertyType? 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::ElevenLabs.JsonSchemaPropertyTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/ElevenLabs/Generated/JsonConverters.KnowledgeBaseLocatorType.g.cs b/src/libs/ElevenLabs/Generated/JsonConverters.KnowledgeBaseLocatorType.g.cs new file mode 100644 index 0000000..493b838 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/JsonConverters.KnowledgeBaseLocatorType.g.cs @@ -0,0 +1,49 @@ +#nullable enable + +namespace ElevenLabs.JsonConverters +{ + /// + public sealed class KnowledgeBaseLocatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ElevenLabs.KnowledgeBaseLocatorType 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::ElevenLabs.KnowledgeBaseLocatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ElevenLabs.KnowledgeBaseLocatorType)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ElevenLabs.KnowledgeBaseLocatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::ElevenLabs.KnowledgeBaseLocatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/JsonConverters.KnowledgeBaseLocatorTypeNullable.g.cs b/src/libs/ElevenLabs/Generated/JsonConverters.KnowledgeBaseLocatorTypeNullable.g.cs new file mode 100644 index 0000000..ac2318a --- /dev/null +++ b/src/libs/ElevenLabs/Generated/JsonConverters.KnowledgeBaseLocatorTypeNullable.g.cs @@ -0,0 +1,56 @@ +#nullable enable + +namespace ElevenLabs.JsonConverters +{ + /// + public sealed class KnowledgeBaseLocatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ElevenLabs.KnowledgeBaseLocatorType? 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::ElevenLabs.KnowledgeBaseLocatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ElevenLabs.KnowledgeBaseLocatorType)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ElevenLabs.KnowledgeBaseLocatorType? 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::ElevenLabs.KnowledgeBaseLocatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/ElevenLabs/Generated/JsonConverters.LLM.g.cs b/src/libs/ElevenLabs/Generated/JsonConverters.LLM.g.cs new file mode 100644 index 0000000..20b8436 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/JsonConverters.LLM.g.cs @@ -0,0 +1,49 @@ +#nullable enable + +namespace ElevenLabs.JsonConverters +{ + /// + public sealed class LLMJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ElevenLabs.LLM 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::ElevenLabs.LLMExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ElevenLabs.LLM)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ElevenLabs.LLM value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::ElevenLabs.LLMExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/JsonConverters.LLMNullable.g.cs b/src/libs/ElevenLabs/Generated/JsonConverters.LLMNullable.g.cs new file mode 100644 index 0000000..02e934b --- /dev/null +++ b/src/libs/ElevenLabs/Generated/JsonConverters.LLMNullable.g.cs @@ -0,0 +1,56 @@ +#nullable enable + +namespace ElevenLabs.JsonConverters +{ + /// + public sealed class LLMNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ElevenLabs.LLM? 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::ElevenLabs.LLMExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ElevenLabs.LLM)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ElevenLabs.LLM? 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::ElevenLabs.LLMExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/ElevenLabs/Generated/JsonConverters.ObjectJsonSchemaPropertyType.g.cs b/src/libs/ElevenLabs/Generated/JsonConverters.ObjectJsonSchemaPropertyType.g.cs new file mode 100644 index 0000000..4db5dd9 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/JsonConverters.ObjectJsonSchemaPropertyType.g.cs @@ -0,0 +1,49 @@ +#nullable enable + +namespace ElevenLabs.JsonConverters +{ + /// + public sealed class ObjectJsonSchemaPropertyTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ElevenLabs.ObjectJsonSchemaPropertyType 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::ElevenLabs.ObjectJsonSchemaPropertyTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ElevenLabs.ObjectJsonSchemaPropertyType)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ElevenLabs.ObjectJsonSchemaPropertyType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::ElevenLabs.ObjectJsonSchemaPropertyTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/JsonConverters.ObjectJsonSchemaPropertyTypeNullable.g.cs b/src/libs/ElevenLabs/Generated/JsonConverters.ObjectJsonSchemaPropertyTypeNullable.g.cs new file mode 100644 index 0000000..65cde16 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/JsonConverters.ObjectJsonSchemaPropertyTypeNullable.g.cs @@ -0,0 +1,56 @@ +#nullable enable + +namespace ElevenLabs.JsonConverters +{ + /// + public sealed class ObjectJsonSchemaPropertyTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ElevenLabs.ObjectJsonSchemaPropertyType? 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::ElevenLabs.ObjectJsonSchemaPropertyTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ElevenLabs.ObjectJsonSchemaPropertyType)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ElevenLabs.ObjectJsonSchemaPropertyType? 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::ElevenLabs.ObjectJsonSchemaPropertyTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/ElevenLabs/Generated/JsonConverters.OrbAvatarType.g.cs b/src/libs/ElevenLabs/Generated/JsonConverters.OrbAvatarType.g.cs new file mode 100644 index 0000000..fea197e --- /dev/null +++ b/src/libs/ElevenLabs/Generated/JsonConverters.OrbAvatarType.g.cs @@ -0,0 +1,49 @@ +#nullable enable + +namespace ElevenLabs.JsonConverters +{ + /// + public sealed class OrbAvatarTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ElevenLabs.OrbAvatarType 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::ElevenLabs.OrbAvatarTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ElevenLabs.OrbAvatarType)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ElevenLabs.OrbAvatarType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::ElevenLabs.OrbAvatarTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/JsonConverters.OrbAvatarTypeNullable.g.cs b/src/libs/ElevenLabs/Generated/JsonConverters.OrbAvatarTypeNullable.g.cs new file mode 100644 index 0000000..67792ef --- /dev/null +++ b/src/libs/ElevenLabs/Generated/JsonConverters.OrbAvatarTypeNullable.g.cs @@ -0,0 +1,56 @@ +#nullable enable + +namespace ElevenLabs.JsonConverters +{ + /// + public sealed class OrbAvatarTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ElevenLabs.OrbAvatarType? 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::ElevenLabs.OrbAvatarTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ElevenLabs.OrbAvatarType)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ElevenLabs.OrbAvatarType? 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::ElevenLabs.OrbAvatarTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/ElevenLabs/Generated/JsonConverters.PromptAgentToolConfigType.g.cs b/src/libs/ElevenLabs/Generated/JsonConverters.PromptAgentToolConfigType.g.cs new file mode 100644 index 0000000..0906455 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/JsonConverters.PromptAgentToolConfigType.g.cs @@ -0,0 +1,49 @@ +#nullable enable + +namespace ElevenLabs.JsonConverters +{ + /// + public sealed class PromptAgentToolConfigTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ElevenLabs.PromptAgentToolConfigType 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::ElevenLabs.PromptAgentToolConfigTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ElevenLabs.PromptAgentToolConfigType)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ElevenLabs.PromptAgentToolConfigType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::ElevenLabs.PromptAgentToolConfigTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/JsonConverters.PromptAgentToolConfigTypeNullable.g.cs b/src/libs/ElevenLabs/Generated/JsonConverters.PromptAgentToolConfigTypeNullable.g.cs new file mode 100644 index 0000000..a55445b --- /dev/null +++ b/src/libs/ElevenLabs/Generated/JsonConverters.PromptAgentToolConfigTypeNullable.g.cs @@ -0,0 +1,56 @@ +#nullable enable + +namespace ElevenLabs.JsonConverters +{ + /// + public sealed class PromptAgentToolConfigTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ElevenLabs.PromptAgentToolConfigType? 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::ElevenLabs.PromptAgentToolConfigTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ElevenLabs.PromptAgentToolConfigType)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ElevenLabs.PromptAgentToolConfigType? 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::ElevenLabs.PromptAgentToolConfigTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/ElevenLabs/Generated/JsonConverters.PromptEvaluationCriteriaType.g.cs b/src/libs/ElevenLabs/Generated/JsonConverters.PromptEvaluationCriteriaType.g.cs new file mode 100644 index 0000000..d9f9668 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/JsonConverters.PromptEvaluationCriteriaType.g.cs @@ -0,0 +1,49 @@ +#nullable enable + +namespace ElevenLabs.JsonConverters +{ + /// + public sealed class PromptEvaluationCriteriaTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ElevenLabs.PromptEvaluationCriteriaType 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::ElevenLabs.PromptEvaluationCriteriaTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ElevenLabs.PromptEvaluationCriteriaType)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ElevenLabs.PromptEvaluationCriteriaType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::ElevenLabs.PromptEvaluationCriteriaTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/JsonConverters.PromptEvaluationCriteriaTypeNullable.g.cs b/src/libs/ElevenLabs/Generated/JsonConverters.PromptEvaluationCriteriaTypeNullable.g.cs new file mode 100644 index 0000000..17c2595 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/JsonConverters.PromptEvaluationCriteriaTypeNullable.g.cs @@ -0,0 +1,56 @@ +#nullable enable + +namespace ElevenLabs.JsonConverters +{ + /// + public sealed class PromptEvaluationCriteriaTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ElevenLabs.PromptEvaluationCriteriaType? 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::ElevenLabs.PromptEvaluationCriteriaTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ElevenLabs.PromptEvaluationCriteriaType)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ElevenLabs.PromptEvaluationCriteriaType? 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::ElevenLabs.PromptEvaluationCriteriaTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/ElevenLabs/Generated/JsonConverters.ServerEvent.g.cs b/src/libs/ElevenLabs/Generated/JsonConverters.ServerEvent.g.cs new file mode 100644 index 0000000..55a2974 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/JsonConverters.ServerEvent.g.cs @@ -0,0 +1,49 @@ +#nullable enable + +namespace ElevenLabs.JsonConverters +{ + /// + public sealed class ServerEventJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ElevenLabs.ServerEvent 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::ElevenLabs.ServerEventExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ElevenLabs.ServerEvent)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ElevenLabs.ServerEvent value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::ElevenLabs.ServerEventExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/JsonConverters.ServerEventNullable.g.cs b/src/libs/ElevenLabs/Generated/JsonConverters.ServerEventNullable.g.cs new file mode 100644 index 0000000..255ed24 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/JsonConverters.ServerEventNullable.g.cs @@ -0,0 +1,56 @@ +#nullable enable + +namespace ElevenLabs.JsonConverters +{ + /// + public sealed class ServerEventNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ElevenLabs.ServerEvent? 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::ElevenLabs.ServerEventExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ElevenLabs.ServerEvent)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ElevenLabs.ServerEvent? 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::ElevenLabs.ServerEventExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/ElevenLabs/Generated/JsonConverters.TTSConversationalModel.g.cs b/src/libs/ElevenLabs/Generated/JsonConverters.TTSConversationalModel.g.cs new file mode 100644 index 0000000..2381d9d --- /dev/null +++ b/src/libs/ElevenLabs/Generated/JsonConverters.TTSConversationalModel.g.cs @@ -0,0 +1,49 @@ +#nullable enable + +namespace ElevenLabs.JsonConverters +{ + /// + public sealed class TTSConversationalModelJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ElevenLabs.TTSConversationalModel 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::ElevenLabs.TTSConversationalModelExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ElevenLabs.TTSConversationalModel)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ElevenLabs.TTSConversationalModel value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::ElevenLabs.TTSConversationalModelExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/JsonConverters.TTSConversationalModelNullable.g.cs b/src/libs/ElevenLabs/Generated/JsonConverters.TTSConversationalModelNullable.g.cs new file mode 100644 index 0000000..1abe884 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/JsonConverters.TTSConversationalModelNullable.g.cs @@ -0,0 +1,56 @@ +#nullable enable + +namespace ElevenLabs.JsonConverters +{ + /// + public sealed class TTSConversationalModelNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ElevenLabs.TTSConversationalModel? 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::ElevenLabs.TTSConversationalModelExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ElevenLabs.TTSConversationalModel)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ElevenLabs.TTSConversationalModel? 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::ElevenLabs.TTSConversationalModelExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/ElevenLabs/Generated/JsonConverters.TTSOutputFormat.g.cs b/src/libs/ElevenLabs/Generated/JsonConverters.TTSOutputFormat.g.cs new file mode 100644 index 0000000..cd2c7f8 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/JsonConverters.TTSOutputFormat.g.cs @@ -0,0 +1,49 @@ +#nullable enable + +namespace ElevenLabs.JsonConverters +{ + /// + public sealed class TTSOutputFormatJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ElevenLabs.TTSOutputFormat 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::ElevenLabs.TTSOutputFormatExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ElevenLabs.TTSOutputFormat)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ElevenLabs.TTSOutputFormat value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::ElevenLabs.TTSOutputFormatExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/JsonConverters.TTSOutputFormatNullable.g.cs b/src/libs/ElevenLabs/Generated/JsonConverters.TTSOutputFormatNullable.g.cs new file mode 100644 index 0000000..dc84dc0 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/JsonConverters.TTSOutputFormatNullable.g.cs @@ -0,0 +1,56 @@ +#nullable enable + +namespace ElevenLabs.JsonConverters +{ + /// + public sealed class TTSOutputFormatNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ElevenLabs.TTSOutputFormat? 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::ElevenLabs.TTSOutputFormatExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ElevenLabs.TTSOutputFormat)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ElevenLabs.TTSOutputFormat? 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::ElevenLabs.TTSOutputFormatExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/ElevenLabs/Generated/JsonConverters.ToolWebhookConfigMethod.g.cs b/src/libs/ElevenLabs/Generated/JsonConverters.ToolWebhookConfigMethod.g.cs new file mode 100644 index 0000000..c72196e --- /dev/null +++ b/src/libs/ElevenLabs/Generated/JsonConverters.ToolWebhookConfigMethod.g.cs @@ -0,0 +1,49 @@ +#nullable enable + +namespace ElevenLabs.JsonConverters +{ + /// + public sealed class ToolWebhookConfigMethodJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ElevenLabs.ToolWebhookConfigMethod 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::ElevenLabs.ToolWebhookConfigMethodExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ElevenLabs.ToolWebhookConfigMethod)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ElevenLabs.ToolWebhookConfigMethod value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::ElevenLabs.ToolWebhookConfigMethodExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/JsonConverters.ToolWebhookConfigMethodNullable.g.cs b/src/libs/ElevenLabs/Generated/JsonConverters.ToolWebhookConfigMethodNullable.g.cs new file mode 100644 index 0000000..750bfb6 --- /dev/null +++ b/src/libs/ElevenLabs/Generated/JsonConverters.ToolWebhookConfigMethodNullable.g.cs @@ -0,0 +1,56 @@ +#nullable enable + +namespace ElevenLabs.JsonConverters +{ + /// + public sealed class ToolWebhookConfigMethodNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ElevenLabs.ToolWebhookConfigMethod? 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::ElevenLabs.ToolWebhookConfigMethodExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ElevenLabs.ToolWebhookConfigMethod)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ElevenLabs.ToolWebhookConfigMethod? 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::ElevenLabs.ToolWebhookConfigMethodExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/ElevenLabs/Generated/JsonConverters.URLAvatarType.g.cs b/src/libs/ElevenLabs/Generated/JsonConverters.URLAvatarType.g.cs new file mode 100644 index 0000000..ce5c89b --- /dev/null +++ b/src/libs/ElevenLabs/Generated/JsonConverters.URLAvatarType.g.cs @@ -0,0 +1,49 @@ +#nullable enable + +namespace ElevenLabs.JsonConverters +{ + /// + public sealed class URLAvatarTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ElevenLabs.URLAvatarType 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::ElevenLabs.URLAvatarTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ElevenLabs.URLAvatarType)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ElevenLabs.URLAvatarType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::ElevenLabs.URLAvatarTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/ElevenLabs/Generated/JsonConverters.URLAvatarTypeNullable.g.cs b/src/libs/ElevenLabs/Generated/JsonConverters.URLAvatarTypeNullable.g.cs new file mode 100644 index 0000000..2ea344f --- /dev/null +++ b/src/libs/ElevenLabs/Generated/JsonConverters.URLAvatarTypeNullable.g.cs @@ -0,0 +1,56 @@ +#nullable enable + +namespace ElevenLabs.JsonConverters +{ + /// + public sealed class URLAvatarTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ElevenLabs.URLAvatarType? 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::ElevenLabs.URLAvatarTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ElevenLabs.URLAvatarType)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ElevenLabs.URLAvatarType? 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::ElevenLabs.URLAvatarTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/ElevenLabs/Generated/JsonSerializerContext.g.cs b/src/libs/ElevenLabs/Generated/JsonSerializerContext.g.cs index 5c0c03d..7d3a59e 100644 --- a/src/libs/ElevenLabs/Generated/JsonSerializerContext.g.cs +++ b/src/libs/ElevenLabs/Generated/JsonSerializerContext.g.cs @@ -13,6 +13,54 @@ namespace ElevenLabs DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, Converters = new global::System.Type[] { + typeof(global::ElevenLabs.JsonConverters.GetKnowledgeBaseReponseModelTypeJsonConverter), + typeof(global::ElevenLabs.JsonConverters.GetKnowledgeBaseReponseModelTypeNullableJsonConverter), + typeof(global::ElevenLabs.JsonConverters.GetConversationResponseModelStatusJsonConverter), + typeof(global::ElevenLabs.JsonConverters.GetConversationResponseModelStatusNullableJsonConverter), + typeof(global::ElevenLabs.JsonConverters.ConversationHistoryTranscriptCommonModelRoleJsonConverter), + typeof(global::ElevenLabs.JsonConverters.ConversationHistoryTranscriptCommonModelRoleNullableJsonConverter), + typeof(global::ElevenLabs.JsonConverters.EvaluationSuccessResultJsonConverter), + typeof(global::ElevenLabs.JsonConverters.EvaluationSuccessResultNullableJsonConverter), + typeof(global::ElevenLabs.JsonConverters.JsonLiteralTypeJsonConverter), + typeof(global::ElevenLabs.JsonConverters.JsonLiteralTypeNullableJsonConverter), + typeof(global::ElevenLabs.JsonConverters.ConversationSummaryResponseModelStatusJsonConverter), + typeof(global::ElevenLabs.JsonConverters.ConversationSummaryResponseModelStatusNullableJsonConverter), + typeof(global::ElevenLabs.JsonConverters.ServerEventJsonConverter), + typeof(global::ElevenLabs.JsonConverters.ServerEventNullableJsonConverter), + typeof(global::ElevenLabs.JsonConverters.ObjectJsonSchemaPropertyTypeJsonConverter), + typeof(global::ElevenLabs.JsonConverters.ObjectJsonSchemaPropertyTypeNullableJsonConverter), + typeof(global::ElevenLabs.JsonConverters.JsonSchemaPropertyTypeJsonConverter), + typeof(global::ElevenLabs.JsonConverters.JsonSchemaPropertyTypeNullableJsonConverter), + typeof(global::ElevenLabs.JsonConverters.EmbedVariantJsonConverter), + typeof(global::ElevenLabs.JsonConverters.EmbedVariantNullableJsonConverter), + typeof(global::ElevenLabs.JsonConverters.OrbAvatarTypeJsonConverter), + typeof(global::ElevenLabs.JsonConverters.OrbAvatarTypeNullableJsonConverter), + typeof(global::ElevenLabs.JsonConverters.URLAvatarTypeJsonConverter), + typeof(global::ElevenLabs.JsonConverters.URLAvatarTypeNullableJsonConverter), + typeof(global::ElevenLabs.JsonConverters.ImageAvatarTypeJsonConverter), + typeof(global::ElevenLabs.JsonConverters.ImageAvatarTypeNullableJsonConverter), + typeof(global::ElevenLabs.JsonConverters.LLMJsonConverter), + typeof(global::ElevenLabs.JsonConverters.LLMNullableJsonConverter), + typeof(global::ElevenLabs.JsonConverters.PromptAgentToolConfigTypeJsonConverter), + typeof(global::ElevenLabs.JsonConverters.PromptAgentToolConfigTypeNullableJsonConverter), + typeof(global::ElevenLabs.JsonConverters.ToolWebhookConfigMethodJsonConverter), + typeof(global::ElevenLabs.JsonConverters.ToolWebhookConfigMethodNullableJsonConverter), + typeof(global::ElevenLabs.JsonConverters.KnowledgeBaseLocatorTypeJsonConverter), + typeof(global::ElevenLabs.JsonConverters.KnowledgeBaseLocatorTypeNullableJsonConverter), + typeof(global::ElevenLabs.JsonConverters.ASRQualityJsonConverter), + typeof(global::ElevenLabs.JsonConverters.ASRQualityNullableJsonConverter), + typeof(global::ElevenLabs.JsonConverters.ASRProviderJsonConverter), + typeof(global::ElevenLabs.JsonConverters.ASRProviderNullableJsonConverter), + typeof(global::ElevenLabs.JsonConverters.ASRInputFormatJsonConverter), + typeof(global::ElevenLabs.JsonConverters.ASRInputFormatNullableJsonConverter), + typeof(global::ElevenLabs.JsonConverters.TTSConversationalModelJsonConverter), + typeof(global::ElevenLabs.JsonConverters.TTSConversationalModelNullableJsonConverter), + typeof(global::ElevenLabs.JsonConverters.TTSOutputFormatJsonConverter), + typeof(global::ElevenLabs.JsonConverters.TTSOutputFormatNullableJsonConverter), + typeof(global::ElevenLabs.JsonConverters.ClientEventJsonConverter), + typeof(global::ElevenLabs.JsonConverters.ClientEventNullableJsonConverter), + typeof(global::ElevenLabs.JsonConverters.PromptEvaluationCriteriaTypeJsonConverter), + typeof(global::ElevenLabs.JsonConverters.PromptEvaluationCriteriaTypeNullableJsonConverter), typeof(global::ElevenLabs.JsonConverters.ChapterResponseModelStateJsonConverter), typeof(global::ElevenLabs.JsonConverters.ChapterResponseModelStateNullableJsonConverter), typeof(global::ElevenLabs.JsonConverters.ProjectResponseModelTargetAudienceJsonConverter), @@ -99,8 +147,14 @@ namespace ElevenLabs typeof(global::ElevenLabs.JsonConverters.VoicePreviewResponseModelMediaTypeNullableJsonConverter), typeof(global::ElevenLabs.JsonConverters.GetTranscriptForDubV1DubbingDubbingIdTranscriptLanguageCodeGetFormatTypeJsonConverter), typeof(global::ElevenLabs.JsonConverters.GetTranscriptForDubV1DubbingDubbingIdTranscriptLanguageCodeGetFormatTypeNullableJsonConverter), - typeof(global::ElevenLabs.JsonConverters.AnyOfJsonConverterFactory2), - typeof(global::ElevenLabs.JsonConverters.AllOfJsonConverterFactory1), + typeof(global::ElevenLabs.JsonConverters.AnyOfJsonConverter), + typeof(global::ElevenLabs.JsonConverters.AnyOfJsonConverter), + typeof(global::ElevenLabs.JsonConverters.AnyOfJsonConverter), + typeof(global::ElevenLabs.JsonConverters.AnyOfJsonConverter), + typeof(global::ElevenLabs.JsonConverters.AnyOfJsonConverter), + typeof(global::ElevenLabs.JsonConverters.AllOfJsonConverter), + typeof(global::ElevenLabs.JsonConverters.AllOfJsonConverter), + typeof(global::ElevenLabs.JsonConverters.AllOfJsonConverter), })] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ElevenLabs.JsonSerializerContextTypes))] diff --git a/src/libs/ElevenLabs/Generated/JsonSerializerContextTypes.g.cs b/src/libs/ElevenLabs/Generated/JsonSerializerContextTypes.g.cs index 3d5066c..6a67760 100644 --- a/src/libs/ElevenLabs/Generated/JsonSerializerContextTypes.g.cs +++ b/src/libs/ElevenLabs/Generated/JsonSerializerContextTypes.g.cs @@ -18,722 +18,1062 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::ElevenLabs.GetAgentsPageResponseModel? Type0 { get; set; } + public global::ElevenLabs.AddKnowledgeBaseResponseModel? Type0 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1 { get; set; } + public string? Type1 { get; set; } /// /// /// - public global::ElevenLabs.AgentSummaryResponseModel? Type2 { get; set; } + public global::ElevenLabs.BodyAddToAgentSKnowledgeBaseV1ConvaiAgentsAgentIdAddToKnowledgeBasePost? Type2 { get; set; } /// /// /// - public string? Type3 { get; set; } + public byte[]? Type3 { get; set; } /// /// /// - public int? Type4 { get; set; } + public global::ElevenLabs.BodyAddASecretToTheAgentWhichCanBeReferencedInToolCallsV1ConvaiAgentsAgentIdAddSecretPost? Type4 { get; set; } /// /// /// - public bool? Type5 { get; set; } + public global::ElevenLabs.BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatch? Type5 { get; set; } /// /// /// - public global::ElevenLabs.AddChapterResponseModel? Type6 { get; set; } + public object? Type6 { get; set; } /// /// /// - public global::ElevenLabs.ChapterResponseModel? Type7 { get; set; } + public global::ElevenLabs.AddAgentSecretResponseModel? Type7 { get; set; } /// /// /// - public double? Type8 { get; set; } + public global::ElevenLabs.BodyPostAgentAvatarV1ConvaiAgentsAgentIdAvatarPost? Type8 { get; set; } /// /// /// - public global::ElevenLabs.ChapterResponseModelState? Type9 { get; set; } + public global::ElevenLabs.GetKnowledgeBaseReponseModel? Type9 { get; set; } /// /// /// - public global::ElevenLabs.ChapterStatisticsResponseModel? Type10 { get; set; } + public global::ElevenLabs.GetKnowledgeBaseReponseModelType? Type10 { get; set; } /// /// /// - public global::ElevenLabs.AddProjectResponseModel? Type11 { get; set; } + public global::ElevenLabs.GetConversationResponseModel? Type11 { get; set; } /// /// /// - public global::ElevenLabs.ProjectResponseModel? Type12 { get; set; } + public global::ElevenLabs.GetConversationResponseModelStatus? Type12 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type13 { get; set; } + public global::System.Collections.Generic.IList? Type13 { get; set; } /// /// /// - public global::ElevenLabs.ProjectResponseModelTargetAudience? Type14 { get; set; } + public global::ElevenLabs.ConversationHistoryTranscriptCommonModel? Type14 { get; set; } /// /// /// - public global::ElevenLabs.ProjectResponseModelState? Type15 { get; set; } + public global::ElevenLabs.ConversationHistoryTranscriptCommonModelRole? Type15 { get; set; } /// /// /// - public global::ElevenLabs.ProjectResponseModelAccessLevel? Type16 { get; set; } + public int? Type16 { get; set; } /// /// /// - public global::ElevenLabs.AddPronunciationDictionaryResponseModel? Type17 { get; set; } + public global::ElevenLabs.ConversationHistoryMetadataCommonModel? Type17 { get; set; } /// /// /// - public global::ElevenLabs.AddPronunciationDictionaryRulesResponseModel? Type18 { get; set; } + public global::ElevenLabs.ConversationHistoryAnalysisCommonModel? Type18 { get; set; } /// /// /// - public global::ElevenLabs.AddVoiceIVCResponseModel? Type19 { get; set; } + public global::System.Collections.Generic.Dictionary? Type19 { get; set; } /// /// /// - public global::ElevenLabs.AddVoiceResponseModel? Type20 { get; set; } + public global::ElevenLabs.ConversationHistoryEvaluationCriteriaResultCommonModel? Type20 { get; set; } /// /// /// - public global::ElevenLabs.AudioNativeCreateProjectResponseModel? Type21 { get; set; } + public global::ElevenLabs.EvaluationSuccessResult? Type21 { get; set; } /// /// /// - public global::ElevenLabs.BodyAddAPronunciationDictionaryV1PronunciationDictionariesAddFromFilePost? Type22 { get; set; } + public global::System.Collections.Generic.Dictionary? Type22 { get; set; } /// /// /// - public byte[]? Type23 { get; set; } + public global::ElevenLabs.DataCollectionResultCommonModel? Type23 { get; set; } /// /// /// - public global::ElevenLabs.BodyAddAPronunciationDictionaryV1PronunciationDictionariesAddFromFilePostWorkspaceAccess? Type24 { get; set; } + public global::ElevenLabs.LiteralJsonSchemaProperty? Type24 { get; set; } /// /// /// - public global::ElevenLabs.BodyAddChapterToAProjectV1ProjectsProjectIdChaptersAddPost? Type25 { get; set; } + public global::ElevenLabs.JsonLiteralType? Type25 { get; set; } /// /// /// - public global::ElevenLabs.BodyAddProjectV1ProjectsAddPost? Type26 { get; set; } + public global::ElevenLabs.GetConversationsPageResponseModel? Type26 { get; set; } /// /// /// - public global::ElevenLabs.BodyAddProjectV1ProjectsAddPostTargetAudience? Type27 { get; set; } + public global::System.Collections.Generic.IList? Type27 { get; set; } /// /// /// - public global::ElevenLabs.BodyAddRulesToThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdAddRulesPost? Type28 { get; set; } + public global::ElevenLabs.ConversationSummaryResponseModel? Type28 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type29 { get; set; } + public global::ElevenLabs.ConversationSummaryResponseModelStatus? Type29 { get; set; } /// /// /// - public global::ElevenLabs.AnyOf? Type30 { get; set; } + public bool? Type30 { get; set; } /// /// /// - public global::ElevenLabs.PronunciationDictionaryAliasRuleRequestModel? Type31 { get; set; } + public global::ElevenLabs.ServerAgent? Type31 { get; set; } /// /// /// - public global::ElevenLabs.PronunciationDictionaryAliasRuleRequestModelType? Type32 { get; set; } + public global::System.Collections.Generic.IList? Type32 { get; set; } /// /// /// - public global::ElevenLabs.PronunciationDictionaryPhonemeRuleRequestModel? Type33 { get; set; } + public global::ElevenLabs.ServerEvent? Type33 { get; set; } /// /// /// - public global::ElevenLabs.PronunciationDictionaryPhonemeRuleRequestModelType? Type34 { get; set; } + public double? Type34 { get; set; } /// /// /// - public global::ElevenLabs.BodyAddSharingVoiceV1VoicesAddPublicUserIdVoiceIdPost? Type35 { get; set; } + public global::ElevenLabs.ObjectJsonSchemaProperty? Type35 { get; set; } /// /// /// - public global::ElevenLabs.BodyAddVoiceV1VoicesAddPost? Type36 { get; set; } + public global::ElevenLabs.ObjectJsonSchemaPropertyType? Type36 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type37 { get; set; } + public global::System.Collections.Generic.Dictionary? Type37 { get; set; } /// /// /// - public global::ElevenLabs.BodyAudioIsolationStreamV1AudioIsolationStreamPost? Type38 { get; set; } + public global::ElevenLabs.JsonSchemaProperty? Type38 { get; set; } /// /// /// - public global::ElevenLabs.BodyAudioIsolationV1AudioIsolationPost? Type39 { get; set; } + public global::ElevenLabs.AnyOf? Type39 { get; set; } /// /// /// - public global::ElevenLabs.BodyCreateANewVoiceFromVoicePreviewV1TextToVoiceCreateVoiceFromPreviewPost? Type40 { get; set; } + public global::ElevenLabs.JsonSchemaPropertyType? Type40 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type41 { get; set; } + public global::System.Collections.Generic.IList? Type41 { get; set; } /// /// /// - public global::ElevenLabs.BodyCreateAPreviouslyGeneratedVoiceV1VoiceGenerationCreateVoicePost? Type42 { get; set; } + public global::ElevenLabs.QueryParamsJsonSchema? Type42 { get; set; } /// /// /// - public global::ElevenLabs.BodyCreatesAudioNativeEnabledProjectV1AudioNativePost? Type43 { get; set; } + public global::System.Collections.Generic.Dictionary? Type43 { get; set; } /// /// /// - public global::ElevenLabs.BodyDeleteExistingInvitationV1WorkspaceInvitesDelete? Type44 { get; set; } + public global::ElevenLabs.AgentMetadataResponseModel? Type44 { get; set; } /// /// /// - public global::ElevenLabs.BodyDownloadHistoryItemsV1HistoryDownloadPost? Type45 { get; set; } + public global::ElevenLabs.CreateAgentResponseModel? Type45 { get; set; } /// /// /// - public global::ElevenLabs.BodyDubAVideoOrAnAudioFileV1DubbingPost? Type46 { get; set; } + public global::ElevenLabs.GetAgentEmbedResponseModel? Type46 { get; set; } /// /// /// - public global::ElevenLabs.BodyEditBasicProjectInfoV1ProjectsProjectIdPost? Type47 { get; set; } + public global::ElevenLabs.EmbedConfig? Type47 { get; set; } /// /// /// - public global::ElevenLabs.BodyEditVoiceV1VoicesVoiceIdEditPost? Type48 { get; set; } + public global::ElevenLabs.EmbedVariant? Type48 { get; set; } /// /// /// - public global::ElevenLabs.BodyGenerateARandomVoiceV1VoiceGenerationGenerateVoicePost? Type49 { get; set; } + public global::ElevenLabs.AnyOf? Type49 { get; set; } /// /// /// - public global::ElevenLabs.BodyGenerateARandomVoiceV1VoiceGenerationGenerateVoicePostGender? Type50 { get; set; } + public global::ElevenLabs.OrbAvatar? Type50 { get; set; } /// /// /// - public global::ElevenLabs.BodyGenerateARandomVoiceV1VoiceGenerationGenerateVoicePostAge? Type51 { get; set; } + public global::ElevenLabs.OrbAvatarType? Type51 { get; set; } /// /// /// - public global::ElevenLabs.BodyGenerateAVoicePreviewFromDescriptionV1TextToVoiceCreatePreviewsPost? Type52 { get; set; } + public global::ElevenLabs.URLAvatar? Type52 { get; set; } /// /// /// - public global::ElevenLabs.BodyGetSimilarLibraryVoicesV1SimilarVoicesPost? Type53 { get; set; } + public global::ElevenLabs.URLAvatarType? Type53 { get; set; } /// /// /// - public global::ElevenLabs.BodyInviteUserV1WorkspaceInvitesAddPost? Type54 { get; set; } + public global::ElevenLabs.ImageAvatar? Type54 { get; set; } /// /// /// - public global::ElevenLabs.BodyRemoveRulesFromThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdRemoveRulesPost? Type55 { get; set; } + public global::ElevenLabs.ImageAvatarType? Type55 { get; set; } /// /// /// - public global::ElevenLabs.BodySoundGenerationV1SoundGenerationPost? Type56 { get; set; } + public global::ElevenLabs.BodyCreateAgentV1ConvaiAgentsCreatePost? Type56 { get; set; } /// /// /// - public global::ElevenLabs.BodySpeechToSpeechStreamingV1SpeechToSpeechVoiceIdStreamPost? Type57 { get; set; } + public global::ElevenLabs.ConversationalConfig? Type57 { get; set; } /// /// /// - public global::ElevenLabs.BodySpeechToSpeechV1SpeechToSpeechVoiceIdPost? Type58 { get; set; } + public global::ElevenLabs.AgentConfig? Type58 { get; set; } /// /// /// - public global::ElevenLabs.BodyStreamChapterAudioV1ProjectsProjectIdChaptersChapterIdSnapshotsChapterSnapshotIdStreamPost? Type59 { get; set; } + public global::ElevenLabs.PromptAgent? Type59 { get; set; } /// /// /// - public global::ElevenLabs.BodyStreamProjectAudioV1ProjectsProjectIdSnapshotsProjectSnapshotIdStreamPost? Type60 { get; set; } + public global::ElevenLabs.LLM? Type60 { get; set; } /// /// /// - public global::ElevenLabs.BodyTextToSpeechStreamingV1TextToSpeechVoiceIdStreamPost? Type61 { get; set; } + public global::System.Collections.Generic.IList? Type61 { get; set; } /// /// /// - public global::ElevenLabs.VoiceSettingsResponseModel? Type62 { get; set; } + public global::ElevenLabs.PromptAgentToolConfig? Type62 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type63 { get; set; } + public global::ElevenLabs.PromptAgentToolConfigType? Type63 { get; set; } /// /// /// - public global::ElevenLabs.PronunciationDictionaryVersionLocatorDBModel? Type64 { get; set; } + public global::ElevenLabs.ToolWebhookConfig? Type64 { get; set; } /// /// /// - public global::ElevenLabs.BodyTextToSpeechStreamingV1TextToSpeechVoiceIdStreamPostApplyTextNormalization? Type65 { get; set; } + public global::ElevenLabs.ToolWebhookConfigMethod? Type65 { get; set; } /// /// /// - public global::ElevenLabs.BodyTextToSpeechStreamingWithTimestampsV1TextToSpeechVoiceIdStreamWithTimestampsPost? Type66 { get; set; } + public global::ElevenLabs.AnyOf? Type66 { get; set; } /// /// /// - public global::ElevenLabs.BodyTextToSpeechStreamingWithTimestampsV1TextToSpeechVoiceIdStreamWithTimestampsPostApplyTextNormalization? Type67 { get; set; } + public global::ElevenLabs.ConvAISecretLocator? Type67 { get; set; } /// /// /// - public global::ElevenLabs.BodyTextToSpeechV1TextToSpeechVoiceIdPost? Type68 { get; set; } + public global::System.Collections.Generic.IList? Type68 { get; set; } /// /// /// - public global::ElevenLabs.BodyTextToSpeechV1TextToSpeechVoiceIdPostApplyTextNormalization? Type69 { get; set; } + public global::ElevenLabs.KnowledgeBaseLocator? Type69 { get; set; } /// /// /// - public global::ElevenLabs.BodyTextToSpeechWithTimestampsV1TextToSpeechVoiceIdWithTimestampsPost? Type70 { get; set; } + public global::ElevenLabs.KnowledgeBaseLocatorType? Type70 { get; set; } /// /// /// - public global::ElevenLabs.BodyTextToSpeechWithTimestampsV1TextToSpeechVoiceIdWithTimestampsPostApplyTextNormalization? Type71 { get; set; } + public global::ElevenLabs.ASRConversationalConfig? Type71 { get; set; } /// /// /// - public global::ElevenLabs.BodyUpdatePronunciationDictionariesV1ProjectsProjectIdUpdatePronunciationDictionariesPost? Type72 { get; set; } + public global::ElevenLabs.ASRQuality? Type72 { get; set; } /// /// /// - public global::ElevenLabs.BodyUpdateMemberV1WorkspaceMembersPost? Type73 { get; set; } + public global::ElevenLabs.ASRProvider? Type73 { get; set; } /// /// /// - public global::ElevenLabs.BodyUpdateMemberV1WorkspaceMembersPostWorkspaceRole? Type74 { get; set; } + public global::ElevenLabs.ASRInputFormat? Type74 { get; set; } /// /// /// - public global::ElevenLabs.BreakdownTypes? Type75 { get; set; } + public global::ElevenLabs.TurnConfig? Type75 { get; set; } /// /// /// - public global::ElevenLabs.ChapterSnapshotResponseModel? Type76 { get; set; } + public global::ElevenLabs.TTSConversationalConfig? Type76 { get; set; } /// /// /// - public global::ElevenLabs.ChapterSnapshotsResponseModel? Type77 { get; set; } + public global::ElevenLabs.TTSConversationalModel? Type77 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type78 { get; set; } + public global::ElevenLabs.TTSOutputFormat? Type78 { get; set; } /// /// /// - public global::ElevenLabs.DoDubbingResponseModel? Type79 { get; set; } + public global::ElevenLabs.ConversationConfig? Type79 { get; set; } /// /// /// - public global::ElevenLabs.DubbingMetadataResponse? Type80 { get; set; } + public global::System.Collections.Generic.IList? Type80 { get; set; } /// /// /// - public global::ElevenLabs.EditProjectResponseModel? Type81 { get; set; } + public global::ElevenLabs.ClientEvent? Type81 { get; set; } /// /// /// - public global::ElevenLabs.ExtendedSubscriptionResponseModel? Type82 { get; set; } + public global::ElevenLabs.AgentPlatformSettings? Type82 { get; set; } /// /// /// - public global::ElevenLabs.ExtendedSubscriptionResponseModelCurrency? Type83 { get; set; } + public global::ElevenLabs.AuthSettings? Type83 { get; set; } /// /// /// - public global::ElevenLabs.ExtendedSubscriptionResponseModelStatus? Type84 { get; set; } + public global::ElevenLabs.EvaluationSettings? Type84 { get; set; } /// /// /// - public global::ElevenLabs.ExtendedSubscriptionResponseModelBillingPeriod? Type85 { get; set; } + public global::System.Collections.Generic.IList? Type85 { get; set; } /// /// /// - public global::ElevenLabs.ExtendedSubscriptionResponseModelCharacterRefreshPeriod? Type86 { get; set; } + public global::ElevenLabs.PromptEvaluationCriteria? Type86 { get; set; } /// /// /// - public global::ElevenLabs.InvoiceResponseModel? Type87 { get; set; } + public global::ElevenLabs.PromptEvaluationCriteriaType? Type87 { get; set; } /// /// /// - public global::ElevenLabs.FeedbackResponseModel? Type88 { get; set; } + public global::ElevenLabs.GetAgentResponseModel? Type88 { get; set; } /// /// /// - public global::ElevenLabs.FineTuningResponseModel? Type89 { get; set; } + public global::ElevenLabs.PostAgentAvatarResponseModel? Type89 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type90 { get; set; } + public global::ElevenLabs.ConversationSignedUrlResponseModel? Type90 { get; set; } /// /// /// - public global::ElevenLabs.FineTuningResponseModelState2? Type91 { get; set; } + public global::ElevenLabs.GetAgentsPageResponseModel? Type91 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type92 { get; set; } + public global::System.Collections.Generic.IList? Type92 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type93 { get; set; } + public global::ElevenLabs.AgentSummaryResponseModel? Type93 { get; set; } /// /// /// - public global::ElevenLabs.VerificationAttemptResponseModel? Type94 { get; set; } + public global::ElevenLabs.AddChapterResponseModel? Type94 { get; set; } /// /// /// - public global::ElevenLabs.RecordingResponseModel? Type95 { get; set; } + public global::ElevenLabs.ChapterResponseModel? Type95 { get; set; } /// /// /// - public global::ElevenLabs.ManualVerificationResponseModel? Type96 { get; set; } + public global::ElevenLabs.ChapterResponseModelState? Type96 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type97 { get; set; } + public global::ElevenLabs.ChapterStatisticsResponseModel? Type97 { get; set; } /// /// /// - public global::ElevenLabs.ManualVerificationFileResponseModel? Type98 { get; set; } + public global::ElevenLabs.AddProjectResponseModel? Type98 { get; set; } /// /// /// - public global::ElevenLabs.GetChaptersResponseModel? Type99 { get; set; } + public global::ElevenLabs.ProjectResponseModel? Type99 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type100 { get; set; } + public global::ElevenLabs.ProjectResponseModelTargetAudience? Type100 { get; set; } /// /// /// - public global::ElevenLabs.GetLibraryVoicesResponseModel? Type101 { get; set; } + public global::ElevenLabs.ProjectResponseModelState? Type101 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type102 { get; set; } + public global::ElevenLabs.ProjectResponseModelAccessLevel? Type102 { get; set; } /// /// /// - public global::ElevenLabs.LibraryVoiceResponseModel? Type103 { get; set; } + public global::ElevenLabs.AddPronunciationDictionaryResponseModel? Type103 { get; set; } /// /// /// - public global::ElevenLabs.LibraryVoiceResponseModelCategory? Type104 { get; set; } + public global::ElevenLabs.AddPronunciationDictionaryRulesResponseModel? Type104 { get; set; } /// /// /// - public global::ElevenLabs.GetProjectsResponseModel? Type105 { get; set; } + public global::ElevenLabs.AddVoiceIVCResponseModel? Type105 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type106 { get; set; } + public global::ElevenLabs.AddVoiceResponseModel? Type106 { get; set; } /// /// /// - public global::ElevenLabs.GetPronunciationDictionariesMetadataResponseModel? Type107 { get; set; } + public global::ElevenLabs.AudioNativeCreateProjectResponseModel? Type107 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type108 { get; set; } + public global::ElevenLabs.BodyAddAPronunciationDictionaryV1PronunciationDictionariesAddFromFilePost? Type108 { get; set; } /// /// /// - public global::ElevenLabs.GetPronunciationDictionaryMetadataResponseModel? Type109 { get; set; } + public global::ElevenLabs.BodyAddAPronunciationDictionaryV1PronunciationDictionariesAddFromFilePostWorkspaceAccess? Type109 { get; set; } /// /// /// - public global::ElevenLabs.GetSpeechHistoryResponseModel? Type110 { get; set; } + public global::ElevenLabs.BodyAddChapterToAProjectV1ProjectsProjectIdChaptersAddPost? Type110 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type111 { get; set; } + public global::ElevenLabs.BodyAddProjectV1ProjectsAddPost? Type111 { get; set; } /// /// /// - public global::ElevenLabs.SpeechHistoryItemResponseModel? Type112 { get; set; } + public global::ElevenLabs.BodyAddProjectV1ProjectsAddPostTargetAudience? Type112 { get; set; } /// /// /// - public global::ElevenLabs.SpeechHistoryItemResponseModelVoiceCategory? Type113 { get; set; } + public global::ElevenLabs.BodyAddRulesToThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdAddRulesPost? Type113 { get; set; } /// /// /// - public global::ElevenLabs.SpeechHistoryItemResponseModelState? Type114 { get; set; } + public global::System.Collections.Generic.IList>? Type114 { get; set; } /// /// /// - public object? Type115 { get; set; } + public global::ElevenLabs.AnyOf? Type115 { get; set; } /// /// /// - public global::ElevenLabs.SpeechHistoryItemResponseModelSource? Type116 { get; set; } + public global::ElevenLabs.PronunciationDictionaryAliasRuleRequestModel? Type116 { get; set; } /// /// /// - public global::ElevenLabs.HistoryAlignmentsResponseModel? Type117 { get; set; } + public global::ElevenLabs.PronunciationDictionaryAliasRuleRequestModelType? Type117 { get; set; } /// /// /// - public global::ElevenLabs.HistoryAlignmentResponseModel? Type118 { get; set; } + public global::ElevenLabs.PronunciationDictionaryPhonemeRuleRequestModel? Type118 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type119 { get; set; } + public global::ElevenLabs.PronunciationDictionaryPhonemeRuleRequestModelType? Type119 { get; set; } /// /// /// - public global::ElevenLabs.GetVoicesResponseModel? Type120 { get; set; } + public global::ElevenLabs.BodyAddSharingVoiceV1VoicesAddPublicUserIdVoiceIdPost? Type120 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type121 { get; set; } + public global::ElevenLabs.BodyAddVoiceV1VoicesAddPost? Type121 { get; set; } /// /// /// - public global::ElevenLabs.VoiceResponseModel? Type122 { get; set; } + public global::System.Collections.Generic.IList? Type122 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type123 { get; set; } + public global::ElevenLabs.BodyAudioIsolationStreamV1AudioIsolationStreamPost? Type123 { get; set; } /// /// /// - public global::ElevenLabs.SampleResponseModel? Type124 { get; set; } + public global::ElevenLabs.BodyAudioIsolationV1AudioIsolationPost? Type124 { get; set; } /// /// /// - public global::ElevenLabs.VoiceResponseModelCategory? Type125 { get; set; } + public global::ElevenLabs.BodyCreateANewVoiceFromVoicePreviewV1TextToVoiceCreateVoiceFromPreviewPost? Type125 { get; set; } /// /// /// - public global::ElevenLabs.VoiceSharingResponseModel? Type126 { get; set; } + public global::System.Collections.Generic.Dictionary? Type126 { get; set; } /// /// /// - public global::ElevenLabs.VoiceSharingResponseModelStatus? Type127 { get; set; } + public global::ElevenLabs.BodyCreateAPreviouslyGeneratedVoiceV1VoiceGenerationCreateVoicePost? Type127 { get; set; } /// /// /// - public global::ElevenLabs.VoiceSharingResponseModelCategory? Type128 { get; set; } + public global::ElevenLabs.BodyCreatesAudioNativeEnabledProjectV1AudioNativePost? Type128 { get; set; } /// /// /// - public global::ElevenLabs.VoiceSharingResponseModelReviewStatus? Type129 { get; set; } + public global::ElevenLabs.BodyDeleteExistingInvitationV1WorkspaceInvitesDelete? Type129 { get; set; } /// /// /// - public global::ElevenLabs.VoiceSharingModerationCheckResponseModel? Type130 { get; set; } + public global::ElevenLabs.BodyDownloadHistoryItemsV1HistoryDownloadPost? Type130 { get; set; } /// /// /// - public global::ElevenLabs.VoiceResponseModelSafetyControl? Type131 { get; set; } + public global::ElevenLabs.BodyDubAVideoOrAnAudioFileV1DubbingPost? Type131 { get; set; } /// /// /// - public global::ElevenLabs.VoiceVerificationResponseModel? Type132 { get; set; } + public global::ElevenLabs.BodyEditBasicProjectInfoV1ProjectsProjectIdPost? Type132 { get; set; } /// /// /// - public global::ElevenLabs.HTTPValidationError? Type133 { get; set; } + public global::ElevenLabs.BodyEditVoiceV1VoicesVoiceIdEditPost? Type133 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type134 { get; set; } + public global::ElevenLabs.BodyGenerateARandomVoiceV1VoiceGenerationGenerateVoicePost? Type134 { get; set; } /// /// /// - public global::ElevenLabs.ValidationError? Type135 { get; set; } + public global::ElevenLabs.BodyGenerateARandomVoiceV1VoiceGenerationGenerateVoicePostGender? Type135 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type136 { get; set; } + public global::ElevenLabs.BodyGenerateARandomVoiceV1VoiceGenerationGenerateVoicePostAge? Type136 { get; set; } /// /// /// - public global::ElevenLabs.AnyOf? Type137 { get; set; } + public global::ElevenLabs.BodyGenerateAVoicePreviewFromDescriptionV1TextToVoiceCreatePreviewsPost? Type137 { get; set; } /// /// /// - public global::ElevenLabs.LanguageResponseModel? Type138 { get; set; } + public global::ElevenLabs.BodyGetSimilarLibraryVoicesV1SimilarVoicesPost? Type138 { get; set; } /// /// /// - public global::ElevenLabs.ModelRatesResponseModel? Type139 { get; set; } + public global::ElevenLabs.BodyInviteUserV1WorkspaceInvitesAddPost? Type139 { get; set; } /// /// /// - public global::ElevenLabs.ModelResponseModel? Type140 { get; set; } + public global::ElevenLabs.BodyRemoveRulesFromThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdRemoveRulesPost? Type140 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type141 { get; set; } + public global::ElevenLabs.BodySoundGenerationV1SoundGenerationPost? Type141 { get; set; } /// /// /// - public global::ElevenLabs.ModelResponseModelConcurrencyGroup? Type142 { get; set; } + public global::ElevenLabs.BodySpeechToSpeechStreamingV1SpeechToSpeechVoiceIdStreamPost? Type142 { get; set; } /// /// /// - public global::ElevenLabs.ProfilePageResponseModel? Type143 { get; set; } + public global::ElevenLabs.BodySpeechToSpeechV1SpeechToSpeechVoiceIdPost? Type143 { get; set; } /// /// /// - public global::ElevenLabs.ProjectExtendedResponseModel? Type144 { get; set; } + public global::ElevenLabs.BodyStreamChapterAudioV1ProjectsProjectIdChaptersChapterIdSnapshotsChapterSnapshotIdStreamPost? Type144 { get; set; } /// /// /// - public global::ElevenLabs.ProjectExtendedResponseModelTargetAudience? Type145 { get; set; } + public global::ElevenLabs.BodyStreamProjectAudioV1ProjectsProjectIdSnapshotsProjectSnapshotIdStreamPost? Type145 { get; set; } /// /// /// - public global::ElevenLabs.ProjectExtendedResponseModelState? Type146 { get; set; } + public global::ElevenLabs.BodyTextToSpeechStreamingV1TextToSpeechVoiceIdStreamPost? Type146 { get; set; } /// /// /// - public global::ElevenLabs.ProjectExtendedResponseModelAccessLevel? Type147 { get; set; } + public global::ElevenLabs.VoiceSettingsResponseModel? Type147 { get; set; } /// /// /// - public global::ElevenLabs.ProjectExtendedResponseModelQualityPreset? Type148 { get; set; } + public global::System.Collections.Generic.IList? Type148 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type149 { get; set; } + public global::ElevenLabs.PronunciationDictionaryVersionLocatorDBModel? Type149 { get; set; } /// /// /// - public global::ElevenLabs.PronunciationDictionaryVersionResponseModel? Type150 { get; set; } + public global::ElevenLabs.BodyTextToSpeechStreamingV1TextToSpeechVoiceIdStreamPostApplyTextNormalization? Type150 { get; set; } /// /// /// - public global::ElevenLabs.ProjectSnapshotResponseModel? Type151 { get; set; } + public global::ElevenLabs.BodyTextToSpeechStreamingWithTimestampsV1TextToSpeechVoiceIdStreamWithTimestampsPost? Type151 { get; set; } /// /// /// - public global::ElevenLabs.ProjectSnapshotUploadResponseModel? Type152 { get; set; } + public global::ElevenLabs.BodyTextToSpeechStreamingWithTimestampsV1TextToSpeechVoiceIdStreamWithTimestampsPostApplyTextNormalization? Type152 { get; set; } /// /// /// - public global::ElevenLabs.ProjectSnapshotUploadResponseModelStatus? Type153 { get; set; } + public global::ElevenLabs.BodyTextToSpeechV1TextToSpeechVoiceIdPost? Type153 { get; set; } /// /// /// - public global::ElevenLabs.ProjectSnapshotsResponseModel? Type154 { get; set; } + public global::ElevenLabs.BodyTextToSpeechV1TextToSpeechVoiceIdPostApplyTextNormalization? Type154 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type155 { get; set; } + public global::ElevenLabs.BodyTextToSpeechWithTimestampsV1TextToSpeechVoiceIdWithTimestampsPost? Type155 { get; set; } /// /// /// - public global::ElevenLabs.RemovePronunciationDictionaryRulesResponseModel? Type156 { get; set; } + public global::ElevenLabs.BodyTextToSpeechWithTimestampsV1TextToSpeechVoiceIdWithTimestampsPostApplyTextNormalization? Type156 { get; set; } /// /// /// - public global::ElevenLabs.SsoProviderResponseModel? Type157 { get; set; } + public global::ElevenLabs.BodyUpdatePronunciationDictionariesV1ProjectsProjectIdUpdatePronunciationDictionariesPost? Type157 { get; set; } /// /// /// - public global::ElevenLabs.SsoProviderResponseModelProviderType? Type158 { get; set; } + public global::ElevenLabs.BodyUpdateMemberV1WorkspaceMembersPost? Type158 { get; set; } /// /// /// - public global::ElevenLabs.SubscriptionResponseModel? Type159 { get; set; } + public global::ElevenLabs.BodyUpdateMemberV1WorkspaceMembersPostWorkspaceRole? Type159 { get; set; } /// /// /// - public global::ElevenLabs.SubscriptionResponseModelCurrency? Type160 { get; set; } + public global::ElevenLabs.BreakdownTypes? Type160 { get; set; } /// /// /// - public global::ElevenLabs.SubscriptionResponseModelStatus? Type161 { get; set; } + public global::ElevenLabs.ChapterSnapshotResponseModel? Type161 { get; set; } /// /// /// - public global::ElevenLabs.SubscriptionResponseModelBillingPeriod? Type162 { get; set; } + public global::ElevenLabs.ChapterSnapshotsResponseModel? Type162 { get; set; } /// /// /// - public global::ElevenLabs.SubscriptionResponseModelCharacterRefreshPeriod? Type163 { get; set; } + public global::System.Collections.Generic.IList? Type163 { get; set; } /// /// /// - public global::ElevenLabs.UsageCharactersResponseModel? Type164 { get; set; } + public global::ElevenLabs.DoDubbingResponseModel? Type164 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type165 { get; set; } + public global::ElevenLabs.DubbingMetadataResponse? Type165 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary>? Type166 { get; set; } + public global::ElevenLabs.EditProjectResponseModel? Type166 { get; set; } /// /// /// - public global::ElevenLabs.UserResponseModel? Type167 { get; set; } + public global::ElevenLabs.ExtendedSubscriptionResponseModel? Type167 { get; set; } /// /// /// - public global::ElevenLabs.VoiceGenerationParameterOptionResponseModel? Type168 { get; set; } + public global::ElevenLabs.ExtendedSubscriptionResponseModelCurrency? Type168 { get; set; } /// /// /// - public global::ElevenLabs.VoiceGenerationParameterResponseModel? Type169 { get; set; } + public global::ElevenLabs.ExtendedSubscriptionResponseModelStatus? Type169 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type170 { get; set; } + public global::ElevenLabs.ExtendedSubscriptionResponseModelBillingPeriod? Type170 { get; set; } /// /// /// - public global::ElevenLabs.VoicePreviewResponseModel? Type171 { get; set; } + public global::ElevenLabs.ExtendedSubscriptionResponseModelCharacterRefreshPeriod? Type171 { get; set; } /// /// /// - public global::ElevenLabs.VoicePreviewResponseModelMediaType? Type172 { get; set; } + public global::ElevenLabs.InvoiceResponseModel? Type172 { get; set; } /// /// /// - public global::ElevenLabs.VoicePreviewsResponseModel? Type173 { get; set; } + public global::ElevenLabs.FeedbackResponseModel? Type173 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type174 { get; set; } + public global::ElevenLabs.FineTuningResponseModel? Type174 { get; set; } /// /// /// - public global::ElevenLabs.AllOf? Type175 { get; set; } + public global::System.Collections.Generic.Dictionary? Type175 { get; set; } /// /// /// - public global::ElevenLabs.GetTranscriptForDubV1DubbingDubbingIdTranscriptLanguageCodeGetFormatType? Type176 { get; set; } + public global::ElevenLabs.FineTuningResponseModelState2? Type176 { get; set; } /// /// /// - public global::System.DateTimeOffset? Type177 { get; set; } + public global::System.Collections.Generic.Dictionary? Type177 { get; set; } /// /// /// - public global::ElevenLabs.AllOf? Type178 { get; set; } + public global::System.Collections.Generic.IList? Type178 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type179 { get; set; } + public global::ElevenLabs.VerificationAttemptResponseModel? Type179 { get; set; } + /// + /// + /// + public global::ElevenLabs.RecordingResponseModel? Type180 { get; set; } + /// + /// + /// + public global::ElevenLabs.ManualVerificationResponseModel? Type181 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type182 { get; set; } + /// + /// + /// + public global::ElevenLabs.ManualVerificationFileResponseModel? Type183 { get; set; } + /// + /// + /// + public global::ElevenLabs.GetChaptersResponseModel? Type184 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type185 { get; set; } + /// + /// + /// + public global::ElevenLabs.GetLibraryVoicesResponseModel? Type186 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type187 { get; set; } + /// + /// + /// + public global::ElevenLabs.LibraryVoiceResponseModel? Type188 { get; set; } + /// + /// + /// + public global::ElevenLabs.LibraryVoiceResponseModelCategory? Type189 { get; set; } + /// + /// + /// + public global::ElevenLabs.GetProjectsResponseModel? Type190 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type191 { get; set; } + /// + /// + /// + public global::ElevenLabs.GetPronunciationDictionariesMetadataResponseModel? Type192 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type193 { get; set; } + /// + /// + /// + public global::ElevenLabs.GetPronunciationDictionaryMetadataResponseModel? Type194 { get; set; } + /// + /// + /// + public global::ElevenLabs.GetSpeechHistoryResponseModel? Type195 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type196 { get; set; } + /// + /// + /// + public global::ElevenLabs.SpeechHistoryItemResponseModel? Type197 { get; set; } + /// + /// + /// + public global::ElevenLabs.SpeechHistoryItemResponseModelVoiceCategory? Type198 { get; set; } + /// + /// + /// + public global::ElevenLabs.SpeechHistoryItemResponseModelState? Type199 { get; set; } + /// + /// + /// + public global::ElevenLabs.SpeechHistoryItemResponseModelSource? Type200 { get; set; } + /// + /// + /// + public global::ElevenLabs.HistoryAlignmentsResponseModel? Type201 { get; set; } + /// + /// + /// + public global::ElevenLabs.HistoryAlignmentResponseModel? Type202 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type203 { get; set; } + /// + /// + /// + public global::ElevenLabs.GetVoicesResponseModel? Type204 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type205 { get; set; } + /// + /// + /// + public global::ElevenLabs.VoiceResponseModel? Type206 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type207 { get; set; } + /// + /// + /// + public global::ElevenLabs.SampleResponseModel? Type208 { get; set; } + /// + /// + /// + public global::ElevenLabs.VoiceResponseModelCategory? Type209 { get; set; } + /// + /// + /// + public global::ElevenLabs.VoiceSharingResponseModel? Type210 { get; set; } + /// + /// + /// + public global::ElevenLabs.VoiceSharingResponseModelStatus? Type211 { get; set; } + /// + /// + /// + public global::ElevenLabs.VoiceSharingResponseModelCategory? Type212 { get; set; } + /// + /// + /// + public global::ElevenLabs.VoiceSharingResponseModelReviewStatus? Type213 { get; set; } + /// + /// + /// + public global::ElevenLabs.VoiceSharingModerationCheckResponseModel? Type214 { get; set; } + /// + /// + /// + public global::ElevenLabs.VoiceResponseModelSafetyControl? Type215 { get; set; } + /// + /// + /// + public global::ElevenLabs.VoiceVerificationResponseModel? Type216 { get; set; } + /// + /// + /// + public global::ElevenLabs.HTTPValidationError? Type217 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type218 { get; set; } + /// + /// + /// + public global::ElevenLabs.ValidationError? Type219 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList>? Type220 { get; set; } + /// + /// + /// + public global::ElevenLabs.AnyOf? Type221 { get; set; } + /// + /// + /// + public global::ElevenLabs.LanguageResponseModel? Type222 { get; set; } + /// + /// + /// + public global::ElevenLabs.ModelRatesResponseModel? Type223 { get; set; } + /// + /// + /// + public global::ElevenLabs.ModelResponseModel? Type224 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type225 { get; set; } + /// + /// + /// + public global::ElevenLabs.ModelResponseModelConcurrencyGroup? Type226 { get; set; } + /// + /// + /// + public global::ElevenLabs.ProfilePageResponseModel? Type227 { get; set; } + /// + /// + /// + public global::ElevenLabs.ProjectExtendedResponseModel? Type228 { get; set; } + /// + /// + /// + public global::ElevenLabs.ProjectExtendedResponseModelTargetAudience? Type229 { get; set; } + /// + /// + /// + public global::ElevenLabs.ProjectExtendedResponseModelState? Type230 { get; set; } + /// + /// + /// + public global::ElevenLabs.ProjectExtendedResponseModelAccessLevel? Type231 { get; set; } + /// + /// + /// + public global::ElevenLabs.ProjectExtendedResponseModelQualityPreset? Type232 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type233 { get; set; } + /// + /// + /// + public global::ElevenLabs.PronunciationDictionaryVersionResponseModel? Type234 { get; set; } + /// + /// + /// + public global::ElevenLabs.ProjectSnapshotResponseModel? Type235 { get; set; } + /// + /// + /// + public global::ElevenLabs.ProjectSnapshotUploadResponseModel? Type236 { get; set; } + /// + /// + /// + public global::ElevenLabs.ProjectSnapshotUploadResponseModelStatus? Type237 { get; set; } + /// + /// + /// + public global::ElevenLabs.ProjectSnapshotsResponseModel? Type238 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type239 { get; set; } + /// + /// + /// + public global::ElevenLabs.RemovePronunciationDictionaryRulesResponseModel? Type240 { get; set; } + /// + /// + /// + public global::ElevenLabs.SsoProviderResponseModel? Type241 { get; set; } + /// + /// + /// + public global::ElevenLabs.SsoProviderResponseModelProviderType? Type242 { get; set; } + /// + /// + /// + public global::ElevenLabs.SubscriptionResponseModel? Type243 { get; set; } + /// + /// + /// + public global::ElevenLabs.SubscriptionResponseModelCurrency? Type244 { get; set; } + /// + /// + /// + public global::ElevenLabs.SubscriptionResponseModelStatus? Type245 { get; set; } + /// + /// + /// + public global::ElevenLabs.SubscriptionResponseModelBillingPeriod? Type246 { get; set; } + /// + /// + /// + public global::ElevenLabs.SubscriptionResponseModelCharacterRefreshPeriod? Type247 { get; set; } + /// + /// + /// + public global::ElevenLabs.UsageCharactersResponseModel? Type248 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type249 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.Dictionary>? Type250 { get; set; } + /// + /// + /// + public global::ElevenLabs.UserResponseModel? Type251 { get; set; } + /// + /// + /// + public global::ElevenLabs.VoiceGenerationParameterOptionResponseModel? Type252 { get; set; } + /// + /// + /// + public global::ElevenLabs.VoiceGenerationParameterResponseModel? Type253 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type254 { get; set; } + /// + /// + /// + public global::ElevenLabs.VoicePreviewResponseModel? Type255 { get; set; } + /// + /// + /// + public global::ElevenLabs.VoicePreviewResponseModelMediaType? Type256 { get; set; } + /// + /// + /// + public global::ElevenLabs.VoicePreviewsResponseModel? Type257 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type258 { get; set; } + /// + /// + /// + public global::ElevenLabs.AllOf? Type259 { get; set; } + /// + /// + /// + public global::ElevenLabs.AllOf? Type260 { get; set; } + /// + /// + /// + public global::ElevenLabs.GetTranscriptForDubV1DubbingDubbingIdTranscriptLanguageCodeGetFormatType? Type261 { get; set; } + /// + /// + /// + public global::System.DateTimeOffset? Type262 { get; set; } + /// + /// + /// + public global::ElevenLabs.AllOf? Type263 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type264 { get; set; } } } \ No newline at end of file diff --git a/src/libs/ElevenLabs/openapi.yaml b/src/libs/ElevenLabs/openapi.yaml index 355357a..ecab2c6 100644 --- a/src/libs/ElevenLabs/openapi.yaml +++ b/src/libs/ElevenLabs/openapi.yaml @@ -6,38 +6,572 @@ info: servers: - url: https://api.elevenlabs.io paths: + /v1/convai/conversation/get_signed_url: + get: + tags: + - Conversational AI + summary: Get Signed Url + description: Get a signed url to start a conversation with an agent with an agent that requires authorization + operationId: Get_Signed_Url_v1_convai_conversation_get_signed_url_get + parameters: + - name: agent_id + in: query + description: The id of the agent you're taking the action on. + required: true + schema: + title: Agent Id + type: string + description: The id of the agent you're taking the action on. + example: 21m00Tcm4TlvDq8ikWAM + - name: xi-api-key + in: header + description: Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. + schema: + title: Xi-Api-Key + type: string + description: Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. + responses: + '200': + description: Successful Response + content: + application/json: + schema: + $ref: '#/components/schemas/ConversationSignedUrlResponseModel' + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + /v1/convai/agents/create: + post: + tags: + - Conversational AI + summary: Create Agent + description: Create an agent from a config object + operationId: Create_Agent_v1_convai_agents_create_post + parameters: + - name: xi-api-key + in: header + description: Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. + schema: + title: Xi-Api-Key + type: string + description: Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Body_Create_Agent_v1_convai_agents_create_post' + required: true + responses: + '200': + description: Successful Response + content: + application/json: + schema: + $ref: '#/components/schemas/CreateAgentResponseModel' + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + '/v1/convai/agents/{agent_id}': + get: + tags: + - Conversational AI + summary: Get Agent + description: Retrieve config for an agent + operationId: Get_Agent_v1_convai_agents__agent_id__get + parameters: + - name: agent_id + in: path + description: The id of an agent. This is returned on agent creation. + required: true + schema: + title: Agent Id + type: string + description: The id of an agent. This is returned on agent creation. + example: 21m00Tcm4TlvDq8ikWAM + - name: xi-api-key + in: header + description: Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. + schema: + title: Xi-Api-Key + type: string + description: Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. + responses: + '200': + description: Successful Response + content: + application/json: + schema: + $ref: '#/components/schemas/GetAgentResponseModel' + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + delete: + tags: + - Conversational AI + summary: Delete Agent + description: Delete an agent + operationId: Delete_Agent_v1_convai_agents__agent_id__delete + parameters: + - name: agent_id + in: path + description: The id of an agent. This is returned on agent creation. + required: true + schema: + title: Agent Id + type: string + description: The id of an agent. This is returned on agent creation. + example: 21m00Tcm4TlvDq8ikWAM + - name: xi-api-key + in: header + description: Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. + schema: + title: Xi-Api-Key + type: string + description: Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. + responses: + '200': + description: Successful Response + content: + application/json: + schema: + title: Response Delete Agent V1 Convai Agents Agent Id Delete + type: object + additionalProperties: + type: string + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + patch: + tags: + - Conversational AI + summary: Patches An Agent Settings + description: Patches an Agent settings + operationId: Patches_an_Agent_settings_v1_convai_agents__agent_id__patch + parameters: + - name: agent_id + in: path + description: The id of an agent. This is returned on agent creation. + required: true + schema: + title: Agent Id + type: string + description: The id of an agent. This is returned on agent creation. + example: 21m00Tcm4TlvDq8ikWAM + - name: xi-api-key + in: header + description: Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. + schema: + title: Xi-Api-Key + type: string + description: Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Body_Patches_an_Agent_settings_v1_convai_agents__agent_id__patch' + responses: + '200': + description: Successful Response + content: + application/json: + schema: + $ref: '#/components/schemas/GetAgentResponseModel' + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + '/v1/convai/agents/{agent_id}/widget': + get: + tags: + - Conversational AI + summary: Get Agent Widget Config + description: Retrieve the widget configuration for an agent + operationId: Get_Agent_widget_config_v1_convai_agents__agent_id__widget_get + parameters: + - name: agent_id + in: path + description: The id of an agent. This is returned on agent creation. + required: true + schema: + title: Agent Id + type: string + description: The id of an agent. This is returned on agent creation. + example: 21m00Tcm4TlvDq8ikWAM + - name: xi-api-key + in: header + description: Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. + schema: + title: Xi-Api-Key + type: string + description: Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. + responses: + '200': + description: Successful Response + content: + application/json: + schema: + $ref: '#/components/schemas/GetAgentEmbedResponseModel' + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + '/v1/convai/agents/{agent_id}/avatar': + post: + tags: + - Conversational AI + summary: Post Agent Avatar + description: Sets the avatar for an agent displayed in the widget + operationId: Post_Agent_avatar_v1_convai_agents__agent_id__avatar_post + parameters: + - name: agent_id + in: path + description: The id of an agent. This is returned on agent creation. + required: true + schema: + title: Agent Id + type: string + description: The id of an agent. This is returned on agent creation. + example: 21m00Tcm4TlvDq8ikWAM + - name: xi-api-key + in: header + description: Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. + schema: + title: Xi-Api-Key + type: string + description: Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. + requestBody: + content: + multipart/form-data: + schema: + $ref: '#/components/schemas/Body_Post_Agent_avatar_v1_convai_agents__agent_id__avatar_post' + required: true + responses: + '200': + description: Successful Response + content: + application/json: + schema: + $ref: '#/components/schemas/PostAgentAvatarResponseModel' + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + '/v1/convai/agents/{agent_id}/knowledge-base/{documentation_id}': + get: + tags: + - Conversational AI + summary: Get Documentation From Agent'S Knowledge Base + description: Get details about a specific documentation making up the agent's knowledge base + operationId: Get_documentation_from_Agent_s_knowledge_base_v1_convai_agents__agent_id__knowledge_base__documentation_id__get + parameters: + - name: agent_id + in: path + description: The id of an agent. This is returned on agent creation. + required: true + schema: + title: Agent Id + type: string + description: The id of an agent. This is returned on agent creation. + example: 21m00Tcm4TlvDq8ikWAM + - name: documentation_id + in: path + description: The id of a document from the agent's knowledge base. This is returned on document addition. + required: true + schema: + title: Documentation Id + type: string + description: The id of a document from the agent's knowledge base. This is returned on document addition. + example: 21m00Tcm4TlvDq8ikWAM + - name: xi-api-key + in: header + description: Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. + schema: + title: Xi-Api-Key + type: string + description: Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. + responses: + '200': + description: Successful Response + content: + application/json: + schema: + $ref: '#/components/schemas/GetKnowledgeBaseReponseModel' + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + '/v1/convai/agents/{agent_id}/add-secret': + post: + tags: + - Conversational AI + summary: Add A Secret To The Agent Which Can Be Referenced In Tool Calls + description: Uploads a file or reference a webpage for the agent to use as part of it's knowledge base + operationId: Add_a_secret_to_the_Agent_which_can_be_referenced_in_tool_calls_v1_convai_agents__agent_id__add_secret_post + parameters: + - name: agent_id + in: path + description: The id of an agent. This is returned on agent creation. + required: true + schema: + title: Agent Id + type: string + description: The id of an agent. This is returned on agent creation. + example: 21m00Tcm4TlvDq8ikWAM + - name: xi-api-key + in: header + description: Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. + schema: + title: Xi-Api-Key + type: string + description: Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Body_Add_a_secret_to_the_Agent_which_can_be_referenced_in_tool_calls_v1_convai_agents__agent_id__add_secret_post' + required: true + responses: + '200': + description: Successful Response + content: + application/json: + schema: + $ref: '#/components/schemas/AddAgentSecretResponseModel' + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + '/v1/convai/agents/{agent_id}/add-to-knowledge-base': + post: + tags: + - Conversational AI + summary: Add To Agent'S Knowledge Base + description: Uploads a file or reference a webpage for the agent to use as part of it's knowledge base + operationId: Add_to_Agent_s_knowledge_base_v1_convai_agents__agent_id__add_to_knowledge_base_post + parameters: + - name: agent_id + in: path + description: The id of an agent. This is returned on agent creation. + required: true + schema: + title: Agent Id + type: string + description: The id of an agent. This is returned on agent creation. + example: 21m00Tcm4TlvDq8ikWAM + - name: xi-api-key + in: header + description: Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. + schema: + title: Xi-Api-Key + type: string + description: Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. + requestBody: + content: + multipart/form-data: + schema: + $ref: '#/components/schemas/Body_Add_to_Agent_s_knowledge_base_v1_convai_agents__agent_id__add_to_knowledge_base_post' + responses: + '200': + description: Successful Response + content: + application/json: + schema: + $ref: '#/components/schemas/AddKnowledgeBaseResponseModel' + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' /v1/convai/agents: get: tags: - Conversational AI - summary: Get Agents Page - description: Returns a page of your agents and their metadata. - operationId: Get_agents_page_v1_convai_agents_get + summary: Get Agents Page + description: Returns a page of your agents and their metadata. + operationId: Get_agents_page_v1_convai_agents_get + parameters: + - name: cursor + in: query + description: Used for fetching next page. Cursor is returned in the response. + schema: + title: Cursor + type: string + description: Used for fetching next page. Cursor is returned in the response. + - name: page_size + in: query + description: 'How many Agents to return at maximum. Can not exceed 100, defaults to 30.' + schema: + title: Page Size + maximum: 100.0 + minimum: 1.0 + type: integer + description: 'How many Agents to return at maximum. Can not exceed 100, defaults to 30.' + default: 30 + - name: search + in: query + description: Search by agents name. + schema: + title: Search + type: string + description: Search by agents name. + - name: xi-api-key + in: header + description: Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. + schema: + title: Xi-Api-Key + type: string + description: Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. + responses: + '200': + description: Successful Response + content: + application/json: + schema: + $ref: '#/components/schemas/GetAgentsPageResponseModel' + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + /v1/convai/conversations: + get: + tags: + - Conversational AI + summary: Get Conversations + description: Get all conversations of agents that user owns. With option to restrict to a specific agent. + operationId: Get_Conversations_v1_convai_conversations_get + parameters: + - name: cursor + in: query + description: Used for fetching next page. Cursor is returned in the response. + schema: + title: Cursor + type: string + description: Used for fetching next page. Cursor is returned in the response. + - name: agent_id + in: query + description: The id of the agent you're taking the action on. + schema: + title: Agent Id + type: string + description: The id of the agent you're taking the action on. + example: 21m00Tcm4TlvDq8ikWAM + - name: call_successful + in: query + description: The result of the success evaluation + schema: + allOf: + - $ref: '#/components/schemas/EvaluationSuccessResult' + description: The result of the success evaluation + example: success + - name: page_size + in: query + description: 'How many conversations to return at maximum. Can not exceed 100, defaults to 30.' + schema: + title: Page Size + maximum: 100.0 + minimum: 1.0 + type: integer + description: 'How many conversations to return at maximum. Can not exceed 100, defaults to 30.' + default: 30 + - name: xi-api-key + in: header + description: Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. + schema: + title: Xi-Api-Key + type: string + description: Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. + responses: + '200': + description: Successful Response + content: + application/json: + schema: + $ref: '#/components/schemas/GetConversationsPageResponseModel' + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + '/v1/convai/conversations/{conversation_id}': + get: + tags: + - Conversational AI + summary: Get Conversation Details + description: Get the details of a particular conversation + operationId: Get_Conversation_Details_v1_convai_conversations__conversation_id__get + parameters: + - name: conversation_id + in: path + description: The id of the conversation you're taking the action on. + required: true + schema: + title: Conversation Id + type: string + description: The id of the conversation you're taking the action on. + example: 21m00Tcm4TlvDq8ikWAM + - name: xi-api-key + in: header + description: Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. + schema: + title: Xi-Api-Key + type: string + description: Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. + responses: + '200': + description: Successful Response + content: + application/json: + schema: + $ref: '#/components/schemas/GetConversationResponseModel' + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + '/v1/convai/conversations/{conversation_id}/audio': + get: + tags: + - Conversational AI + summary: Get Conversation Audio + description: Get the audio recording of a particular conversation + operationId: Get_Conversation_Audio_v1_convai_conversations__conversation_id__audio_get parameters: - - name: cursor - in: query - description: Used for fetching next page. Cursor is returned in the response. - schema: - title: Cursor - type: string - description: Used for fetching next page. Cursor is returned in the response. - - name: page_size - in: query - description: 'How many Agents to return at maximum. Can not exceed 100, defaults to 30.' - schema: - title: Page Size - maximum: 100.0 - minimum: 1.0 - type: integer - description: 'How many Agents to return at maximum. Can not exceed 100, defaults to 30.' - default: 30 - - name: search - in: query - description: Search by agents name. + - name: conversation_id + in: path + description: The id of the conversation you're taking the action on. + required: true schema: - title: Search + title: Conversation Id type: string - description: Search by agents name. + description: The id of the conversation you're taking the action on. + example: 21m00Tcm4TlvDq8ikWAM - name: xi-api-key in: header description: Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website. @@ -48,10 +582,6 @@ paths: responses: '200': description: Successful Response - content: - application/json: - schema: - $ref: '#/components/schemas/GetAgentsPageResponseModel' '422': description: Validation Error content: @@ -3195,38 +3725,1000 @@ paths: schema: title: Handle type: string - description: Handle for a VA's profile page - example: talexgeorge - responses: - '200': - description: Successful Response - content: - application/json: - schema: - $ref: '#/components/schemas/ProfilePageResponseModel' - '422': - description: Validation Error - content: - application/json: - schema: - $ref: '#/components/schemas/HTTPValidationError' - x-codeSamples: - - lang: Python - source: "from elevenlabs import ElevenLabs\n\nclient = ElevenLabs(\n api_key=\"YOUR_API_KEY\",\n)\nclient.voices.get_a_profile_page(\n handle=\"talexgeorge\",\n)\n" - - lang: JavaScript - source: "import { ElevenLabsClient } from \"elevenlabs\";\n\nconst client = new ElevenLabsClient({ apiKey: \"YOUR_API_KEY\" });\nawait client.voices.getAProfilePage(\"talexgeorge\");\n" - /docs: - get: - summary: Redirect To Mintlify - operationId: redirect_to_mintlify_docs_get - responses: - '200': - description: Successful Response - content: - application/json: - schema: { } -components: - schemas: + description: Handle for a VA's profile page + example: talexgeorge + responses: + '200': + description: Successful Response + content: + application/json: + schema: + $ref: '#/components/schemas/ProfilePageResponseModel' + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + x-codeSamples: + - lang: Python + source: "from elevenlabs import ElevenLabs\n\nclient = ElevenLabs(\n api_key=\"YOUR_API_KEY\",\n)\nclient.voices.get_a_profile_page(\n handle=\"talexgeorge\",\n)\n" + - lang: JavaScript + source: "import { ElevenLabsClient } from \"elevenlabs\";\n\nconst client = new ElevenLabsClient({ apiKey: \"YOUR_API_KEY\" });\nawait client.voices.getAProfilePage(\"talexgeorge\");\n" + /docs: + get: + summary: Redirect To Mintlify + operationId: redirect_to_mintlify_docs_get + responses: + '200': + description: Successful Response + content: + application/json: + schema: { } +components: + schemas: + AddKnowledgeBaseResponseModel: + title: AddKnowledgeBaseResponseModel + required: + - id + type: object + properties: + id: + title: Id + type: string + Body_Add_to_Agent_s_knowledge_base_v1_convai_agents__agent_id__add_to_knowledge_base_post: + title: Body_Add_to_Agent_s_knowledge_base_v1_convai_agents__agent_id__add_to_knowledge_base_post + type: object + properties: + url: + title: Url + type: string + description: URL to a page of documentation that the agent will have access to in order to interact with users. + file: + title: File + type: string + description: Documentation that the agent will have access to in order to interact with users. + format: binary + Body_Add_a_secret_to_the_Agent_which_can_be_referenced_in_tool_calls_v1_convai_agents__agent_id__add_secret_post: + title: Body_Add_a_secret_to_the_Agent_which_can_be_referenced_in_tool_calls_v1_convai_agents__agent_id__add_secret_post + required: + - name + - secret_value + type: object + properties: + name: + title: Name + type: string + description: A name to help identify a particular agent secret + secret_value: + title: Secret Value + type: string + description: A value to be encrypted and used by the agent + Body_Patches_an_Agent_settings_v1_convai_agents__agent_id__patch: + title: Body_Patches_an_Agent_settings_v1_convai_agents__agent_id__patch + type: object + properties: + conversation_config: + title: Conversation Config + type: object + description: Conversation configuration for an agent + platform_settings: + title: Platform Settings + type: object + description: Platform settings for the agent are all settings that aren't related to the conversation orchestration and content. + name: + title: Name + type: string + description: A name to make the agent easier to find + AddAgentSecretResponseModel: + title: AddAgentSecretResponseModel + required: + - id + - name + type: object + properties: + id: + title: Id + type: string + name: + title: Name + type: string + Body_Post_Agent_avatar_v1_convai_agents__agent_id__avatar_post: + title: Body_Post_Agent_avatar_v1_convai_agents__agent_id__avatar_post + required: + - avatar_file + type: object + properties: + avatar_file: + title: Avatar File + type: string + description: An image file to be used as the agent's avatar. + format: binary + GetKnowledgeBaseReponseModel: + title: GetKnowledgeBaseReponseModel + required: + - id + - type + - extracted_inner_html + type: object + properties: + id: + title: Id + type: string + type: + title: Type + enum: + - file + - url + type: string + extracted_inner_html: + title: Extracted Inner Html + type: string + GetConversationResponseModel: + title: GetConversationResponseModel + required: + - agent_id + - conversation_id + - status + - transcript + - metadata + type: object + properties: + agent_id: + title: Agent Id + type: string + conversation_id: + title: Conversation Id + type: string + status: + title: Status + enum: + - processing + - done + type: string + transcript: + title: Transcript + type: array + items: + $ref: '#/components/schemas/ConversationHistoryTranscriptCommonModel' + metadata: + $ref: '#/components/schemas/ConversationHistoryMetadataCommonModel' + analysis: + $ref: '#/components/schemas/ConversationHistoryAnalysisCommonModel' + ConversationHistoryAnalysisCommonModel: + title: ConversationHistoryAnalysisCommonModel + required: + - call_successful + - transcript_summary + type: object + properties: + evaluation_criteria_results: + title: Evaluation Criteria Results + type: object + additionalProperties: + $ref: '#/components/schemas/ConversationHistoryEvaluationCriteriaResultCommonModel' + data_collection_results: + title: Data Collection Results + type: object + additionalProperties: + $ref: '#/components/schemas/DataCollectionResultCommonModel' + call_successful: + $ref: '#/components/schemas/EvaluationSuccessResult' + transcript_summary: + title: Transcript Summary + type: string + ConversationHistoryEvaluationCriteriaResultCommonModel: + title: ConversationHistoryEvaluationCriteriaResultCommonModel + required: + - criteria_id + - result + - rationale + type: object + properties: + criteria_id: + title: Criteria Id + type: string + result: + $ref: '#/components/schemas/EvaluationSuccessResult' + rationale: + title: Rationale + type: string + DataCollectionResultCommonModel: + title: DataCollectionResultCommonModel + required: + - data_collection_id + - rationale + type: object + properties: + data_collection_id: + title: Data Collection Id + type: string + value: + title: Value + json_schema: + $ref: '#/components/schemas/LiteralJsonSchemaProperty' + rationale: + title: Rationale + type: string + ConversationHistoryMetadataCommonModel: + title: ConversationHistoryMetadataCommonModel + required: + - start_time_unix_secs + - call_duration_secs + type: object + properties: + start_time_unix_secs: + title: Start Time Unix Secs + type: integer + call_duration_secs: + title: Call Duration Secs + type: integer + cost: + title: Cost + type: integer + ConversationHistoryTranscriptCommonModel: + title: ConversationHistoryTranscriptCommonModel + required: + - role + - message + - time_in_call_secs + type: object + properties: + role: + title: Role + enum: + - user + - agent + type: string + message: + title: Message + type: string + time_in_call_secs: + title: Time In Call Secs + type: integer + GetConversationsPageResponseModel: + title: GetConversationsPageResponseModel + required: + - conversations + - has_more + type: object + properties: + conversations: + title: Conversations + type: array + items: + $ref: '#/components/schemas/ConversationSummaryResponseModel' + next_cursor: + title: Next Cursor + type: string + has_more: + title: Has More + type: boolean + ServerAgent: + title: ServerAgent + required: + - url + type: object + properties: + url: + title: Url + type: string + server_events: + type: array + items: + $ref: '#/components/schemas/ServerEvent' + secret: + title: Secret + type: string + timeout: + title: Timeout + type: number + default: 5 + num_retries: + title: Num Retries + type: integer + default: 2 + error_message: + title: Error Message + type: string + default: I encountered an internal error occurred while handling your request and I am not able to respond at the moment. + ServerEvent: + title: ServerEvent + enum: + - turn + - interruption + - turn_abandoned + type: string + description: An enumeration. + ObjectJsonSchemaProperty: + title: ObjectJsonSchemaProperty + type: object + properties: + type: + title: Type + enum: + - object + type: string + default: object + properties: + title: Properties + type: object + additionalProperties: + $ref: '#/components/schemas/JsonSchemaProperty' + required: + title: Required + type: array + items: + type: string + description: + title: Description + type: string + default: '' + additionalProperties: false + JsonSchemaProperty: + title: JsonSchemaProperty + required: + - type + type: object + properties: + type: + title: Type + anyOf: + - $ref: '#/components/schemas/JsonLiteralType' + - enum: + - object + - array + type: string + QueryParamsJsonSchema: + title: QueryParamsJsonSchema + required: + - properties + type: object + properties: + properties: + title: Properties + type: object + additionalProperties: + $ref: '#/components/schemas/LiteralJsonSchemaProperty' + required: + title: Required + type: array + items: + type: string + additionalProperties: false + ConversationSummaryResponseModel: + title: ConversationSummaryResponseModel + required: + - agent_id + - conversation_id + - start_time_unix_secs + - call_duration_secs + - message_count + - status + - call_successful + type: object + properties: + agent_id: + title: Agent Id + type: string + agent_name: + title: Agent Name + type: string + conversation_id: + title: Conversation Id + type: string + start_time_unix_secs: + title: Start Time Unix Secs + type: integer + call_duration_secs: + title: Call Duration Secs + type: integer + message_count: + title: Message Count + type: integer + status: + title: Status + enum: + - processing + - done + type: string + call_successful: + $ref: '#/components/schemas/EvaluationSuccessResult' + EvaluationSuccessResult: + title: EvaluationSuccessResult + enum: + - success + - failure + - unknown + type: string + description: An enumeration. + AgentMetadataResponseModel: + title: AgentMetadataResponseModel + required: + - created_at_unix_secs + type: object + properties: + created_at_unix_secs: + title: Created At Unix Secs + type: integer + CreateAgentResponseModel: + title: CreateAgentResponseModel + required: + - agent_id + type: object + properties: + agent_id: + title: Agent Id + type: string + GetAgentEmbedResponseModel: + title: GetAgentEmbedResponseModel + required: + - agent_id + - widget_config + type: object + properties: + agent_id: + title: Agent Id + type: string + widget_config: + $ref: '#/components/schemas/EmbedConfig' + Body_Create_Agent_v1_convai_agents_create_post: + title: Body_Create_Agent_v1_convai_agents_create_post + required: + - conversation_config + type: object + properties: + conversation_config: + title: Conversation Config + allOf: + - $ref: '#/components/schemas/ConversationalConfig' + description: Conversation configuration for an agent + platform_settings: + title: Platform Settings + allOf: + - $ref: '#/components/schemas/AgentPlatformSettings' + description: Platform settings for the agent are all settings that aren't related to the conversation orchestration and content. + name: + title: Name + type: string + description: A name to make the agent easier to find + JsonLiteralType: + title: JsonLiteralType + enum: + - boolean + - string + - integer + - number + type: string + description: JSON schema literal types. e.g. all Json types except nested objects and lists + GetAgentResponseModel: + title: GetAgentResponseModel + required: + - agent_id + - name + - conversation_config + - metadata + type: object + properties: + agent_id: + title: Agent Id + type: string + name: + title: Name + type: string + conversation_config: + $ref: '#/components/schemas/ConversationalConfig' + metadata: + $ref: '#/components/schemas/AgentMetadataResponseModel' + platform_settings: + $ref: '#/components/schemas/AgentPlatformSettings' + LiteralJsonSchemaProperty: + title: LiteralJsonSchemaProperty + required: + - type + - description + type: object + properties: + type: + $ref: '#/components/schemas/JsonLiteralType' + description: + title: Description + type: string + PromptAgent: + title: PromptAgent + required: + - prompt + type: object + properties: + prompt: + title: Prompt + type: string + llm: + allOf: + - $ref: '#/components/schemas/LLM' + default: gemini-1.5-flash + temperature: + title: Temperature + type: number + default: 0 + max_tokens: + title: Max Tokens + type: integer + default: -1 + tools: + title: Tools + type: array + items: + $ref: '#/components/schemas/PromptAgentToolConfig' + knowledge_base: + title: Knowledge Base + type: array + items: + $ref: '#/components/schemas/KnowledgeBaseLocator' + ASRQuality: + title: ASRQuality + enum: + - high + type: string + description: An enumeration. + ASRProvider: + title: ASRProvider + enum: + - elevenlabs + type: string + description: An enumeration. + KnowledgeBaseLocator: + title: KnowledgeBaseLocator + required: + - type + - name + - id + type: object + properties: + type: + title: Type + enum: + - file + - url + type: string + name: + title: Name + type: string + id: + title: Id + type: string + PromptAgentToolConfig: + title: PromptAgentToolConfig + required: + - type + - name + - description + - api_schema + type: object + properties: + type: + title: Type + enum: + - webhook + type: string + name: + title: Name + type: string + description: + title: Description + type: string + placeholder_statement: + title: Placeholder Statement + type: string + api_schema: + $ref: '#/components/schemas/ToolWebhookConfig' + description: "A configuration for a tool/function that the agent can use over the course of the conversation.\nInitially we only support webhooks, but it is likely we will want to support more types in the future.\n\nTODO can we include more of these best practises\n https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal/function-calling#best-practices" + ToolWebhookConfig: + title: ToolWebhookConfig + required: + - url + type: object + properties: + url: + title: Url + type: string + method: + title: Method + enum: + - GET + - POST + - PATCH + - DELETE + type: string + default: GET + path_params_schema: + title: Path Params Schema + type: object + additionalProperties: + $ref: '#/components/schemas/LiteralJsonSchemaProperty' + query_params_schema: + $ref: '#/components/schemas/QueryParamsJsonSchema' + request_body_schema: + $ref: '#/components/schemas/ObjectJsonSchemaProperty' + request_headers: + title: Request Headers + type: object + additionalProperties: + anyOf: + - type: string + - $ref: '#/components/schemas/ConvAISecretLocator' + description: Configuration for a webhook that will be called by an LLM tool. + ConvAISecretLocator: + title: ConvAISecretLocator + required: + - secret_id + type: object + properties: + secret_id: + title: Secret Id + type: string + description: Used to reference a secret from the agent's secret store. + LLM: + title: LLM + enum: + - gpt-4o-mini + - gpt-4o + - gpt-4 + - gpt-4-turbo + - gpt-3.5-turbo + - gemini-1.5-pro + - gemini-1.5-flash + - gemini-1.0-pro + - claude-3-5-sonnet + - claude-3-haiku + type: string + description: An enumeration. + AgentPlatformSettings: + title: AgentPlatformSettings + type: object + properties: + auth: + $ref: '#/components/schemas/AuthSettings' + evaluation: + $ref: '#/components/schemas/EvaluationSettings' + widget: + $ref: '#/components/schemas/EmbedConfig' + data_collection: + title: Data Collection + type: object + additionalProperties: + $ref: '#/components/schemas/LiteralJsonSchemaProperty' + EmbedVariant: + title: EmbedVariant + enum: + - compact + - full + - expandable + type: string + description: An enumeration. + OrbAvatar: + title: OrbAvatar + type: object + properties: + type: + title: Type + enum: + - orb + type: string + default: orb + color_1: + title: Color 1 + type: string + default: '#2792dc' + color_2: + title: Color 2 + type: string + default: '#9ce6e6' + URLAvatar: + title: URLAvatar + type: object + properties: + type: + title: Type + enum: + - url + type: string + default: url + custom_url: + title: Custom Url + type: string + default: '' + ImageAvatar: + title: ImageAvatar + type: object + properties: + type: + title: Type + enum: + - image + type: string + default: image + url: + title: Url + type: string + default: '' + EmbedConfig: + title: EmbedConfig + type: object + properties: + variant: + allOf: + - $ref: '#/components/schemas/EmbedVariant' + default: full + avatar: + title: Avatar + anyOf: + - $ref: '#/components/schemas/OrbAvatar' + - $ref: '#/components/schemas/URLAvatar' + - $ref: '#/components/schemas/ImageAvatar' + custom_avatar_path: + title: Custom Avatar Path + type: string + bg_color: + title: Bg Color + type: string + default: '#ffffff' + text_color: + title: Text Color + type: string + default: '#000000' + btn_color: + title: Btn Color + type: string + default: '#000000' + btn_text_color: + title: Btn Text Color + type: string + default: '#ffffff' + border_color: + title: Border Color + type: string + default: '#e1e1e1' + focus_color: + title: Focus Color + type: string + default: '#000000' + border_radius: + title: Border Radius + type: integer + btn_radius: + title: Btn Radius + type: integer + action_text: + title: Action Text + type: string + start_call_text: + title: Start Call Text + type: string + end_call_text: + title: End Call Text + type: string + expand_text: + title: Expand Text + type: string + listening_text: + title: Listening Text + type: string + speaking_text: + title: Speaking Text + type: string + PostAgentAvatarResponseModel: + title: PostAgentAvatarResponseModel + required: + - agent_id + type: object + properties: + agent_id: + title: Agent Id + type: string + avatar_url: + title: Avatar Url + type: string + AuthSettings: + title: AuthSettings + type: object + properties: + enable_auth: + title: Enable Auth + type: boolean + default: false + PromptEvaluationCriteria: + title: PromptEvaluationCriteria + required: + - id + - conversation_goal_prompt + type: object + properties: + id: + title: Id + type: string + name: + title: Name + type: string + type: + title: Type + enum: + - prompt + type: string + default: prompt + conversation_goal_prompt: + title: Conversation Goal Prompt + maxLength: 800 + type: string + description: An evaluation using the transcript and a prompt for a yes/no achieved answer + EvaluationSettings: + title: EvaluationSettings + type: object + properties: + criteria: + title: Criteria + type: array + items: + $ref: '#/components/schemas/PromptEvaluationCriteria' + description: "Settings to evaluate an agent's performance.\nAgents are evaluated against a set of criteria, with success being defined as meeting some combination of those criteria." + AgentConfig: + title: AgentConfig + type: object + properties: + server: + $ref: '#/components/schemas/ServerAgent' + prompt: + $ref: '#/components/schemas/PromptAgent' + first_message: + title: First Message + type: string + default: '' + language: + title: Language + type: string + default: en + ASRConversationalConfig: + title: ASRConversationalConfig + type: object + properties: + quality: + allOf: + - $ref: '#/components/schemas/ASRQuality' + default: high + provider: + allOf: + - $ref: '#/components/schemas/ASRProvider' + default: elevenlabs + user_input_audio_format: + allOf: + - $ref: '#/components/schemas/ASRInputFormat' + default: pcm_16000 + keywords: + title: Keywords + type: array + items: + type: string + ASRInputFormat: + title: ASRInputFormat + enum: + - pcm_16000 + - pcm_22050 + - pcm_24000 + - pcm_44100 + type: string + description: An enumeration. + TurnConfig: + title: TurnConfig + type: object + properties: + turn_timeout: + title: Turn Timeout + type: number + default: 7 + TTSConversationalModel: + title: TTSConversationalModel + enum: + - eleven_turbo_v2 + - eleven_turbo_v2_5 + type: string + description: An enumeration. + TTSOutputFormat: + title: TTSOutputFormat + enum: + - pcm_16000 + - pcm_22050 + - pcm_24000 + - pcm_44100 + type: string + description: An enumeration. + TTSOptimizeStreamingLatency: + title: TTSOptimizeStreamingLatency + enum: + - 0 + - 1 + - 2 + - 3 + - 4 + type: integer + description: An enumeration. + TTSConversationalConfig: + title: TTSConversationalConfig + type: object + properties: + model_id: + allOf: + - $ref: '#/components/schemas/TTSConversationalModel' + default: eleven_turbo_v2 + voice_id: + title: Voice Id + type: string + default: bYTqZQo3Jz7LQtmGTgwi + agent_output_audio_format: + allOf: + - $ref: '#/components/schemas/TTSOutputFormat' + default: pcm_16000 + optimize_streaming_latency: + allOf: + - $ref: '#/components/schemas/TTSOptimizeStreamingLatency' + default: 3 + stability: + title: Stability + type: number + default: 0.5 + similarity_boost: + title: Similarity Boost + type: number + default: 0.8 + ConversationalConfig: + title: ConversationalConfig + type: object + properties: + agent: + $ref: '#/components/schemas/AgentConfig' + asr: + $ref: '#/components/schemas/ASRConversationalConfig' + turn: + $ref: '#/components/schemas/TurnConfig' + tts: + $ref: '#/components/schemas/TTSConversationalConfig' + conversation: + $ref: '#/components/schemas/ConversationConfig' + ConversationConfig: + title: ConversationConfig + type: object + properties: + max_duration_seconds: + title: Max Duration Seconds + type: integer + default: 600 + client_events: + type: array + items: + $ref: '#/components/schemas/ClientEvent' + ClientEvent: + title: ClientEvent + enum: + - conversation_initiation_metadata + - ping + - audio + - interruption + - user_transcript + - agent_response + - agent_response_correction + - internal_vad_score + - internal_turn_probability + - internal_tentative_agent_response + type: string + description: An enumeration. + ConversationSignedUrlResponseModel: + title: ConversationSignedUrlResponseModel + required: + - signed_url + type: object + properties: + signed_url: + title: Signed Url + type: string GetAgentsPageResponseModel: title: GetAgentsPageResponseModel required: @@ -3509,6 +5001,10 @@ components: title: Callback Url type: string description: '[Deprecated] A url that will be called by our service when the project is converted with a json containing the status of the conversion' + quality_check_on: + title: Quality Check On + type: boolean + description: Whether to run quality check on the generated audio and regenerate if needed. Body_Add_rules_to_the_pronunciation_dictionary_v1_pronunciation_dictionaries__pronunciation_dictionary_id__add_rules_post: title: Body_Add_rules_to_the_pronunciation_dictionary_v1_pronunciation_dictionaries__pronunciation_dictionary_id__add_rules_post required: @@ -3839,6 +5335,10 @@ components: type: boolean description: 'When the project is downloaded, should the returned audio have postprocessing in order to make it compliant with audiobook normalized volume requirements' default: false + quality_check_on: + title: Quality Check On + type: boolean + description: Whether to run quality check on the generated audio and regenerate if needed. Body_Edit_voice_v1_voices__voice_id__edit_post: title: Body_Edit_voice_v1_voices__voice_id__edit_post required: