@elevenlabs/elevenlabs-js 2.54.0 → 2.55.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.fern/metadata.json +2 -2
- package/.fern/replay.lock +8 -2
- package/BaseClient.js +2 -2
- package/Client.d.ts +2 -2
- package/Client.js +4 -4
- package/api/resources/conversationalAi/resources/agents/client/Client.d.ts +6 -2
- package/api/resources/conversationalAi/resources/agents/client/Client.js +6 -2
- package/api/resources/conversationalAi/resources/agents/resources/branches/client/Client.d.ts +32 -0
- package/api/resources/conversationalAi/resources/agents/resources/branches/client/Client.js +121 -0
- package/api/resources/conversationalAi/resources/agents/resources/branches/client/requests/BranchesPreviewMergeRequest.d.ts +13 -0
- package/api/resources/conversationalAi/resources/agents/resources/branches/client/requests/BranchesPreviewMergeRequest.js +3 -0
- package/api/resources/conversationalAi/resources/agents/resources/branches/client/requests/index.d.ts +1 -0
- package/api/resources/index.d.ts +1 -0
- package/api/resources/index.js +1 -0
- package/api/resources/textToDialogue/client/requests/BodyTextToDialogueFullWithTimestamps.d.ts +1 -1
- package/api/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceStreamingV1TextToDialogueStreamPost.d.ts +1 -1
- package/api/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceV1TextToDialoguePost.d.ts +1 -1
- package/api/resources/textToDialogue/client/requests/BodyTextToDialogueStreamWithTimestamps.d.ts +1 -1
- package/api/resources/textToSpeech/client/requests/BodyTextToSpeechFull.d.ts +1 -1
- package/api/resources/textToSpeech/client/requests/BodyTextToSpeechFullWithTimestamps.d.ts +1 -1
- package/api/resources/textToSpeech/client/requests/StreamTextToSpeechRequest.d.ts +1 -1
- package/api/resources/textToSpeech/client/requests/StreamTextToSpeechWithTimestampsRequest.d.ts +1 -1
- package/api/resources/workspace/client/Client.d.ts +18 -1
- package/api/resources/workspace/client/Client.js +99 -0
- package/api/resources/workspace/client/index.d.ts +1 -1
- package/api/resources/workspace/client/index.js +15 -0
- package/api/resources/workspace/client/requests/BodySetWorkspaceThirdPartyDisablingPolicyV1WorkspacesApiKeysThirdPartyDisablingPost.d.ts +8 -0
- package/api/resources/workspace/client/requests/BodySetWorkspaceThirdPartyDisablingPolicyV1WorkspacesApiKeysThirdPartyDisablingPost.js +3 -0
- package/api/resources/workspace/client/requests/index.d.ts +1 -0
- package/api/resources/workspace/client/requests/index.js +2 -0
- package/api/resources/workspace/resources/authConnections/types/AuthConnectionsUpdateRequestBody.d.ts +4 -1
- package/api/types/AgentBranchSummary.d.ts +2 -0
- package/api/types/ApiIntegrationOAuth2AuthCodeResponse.d.ts +3 -6
- package/api/types/ApiIntegrationOAuth2CustomAppResponse.d.ts +3 -6
- package/api/types/AudioFilterId.d.ts +7 -0
- package/api/types/AudioFilterId.js +10 -0
- package/api/types/AuthConnectionStatus.d.ts +15 -0
- package/api/types/AuthConnectionStatus.js +18 -0
- package/api/types/BaseTurnConfig.d.ts +2 -0
- package/api/types/BasicAuthResponse.d.ts +3 -0
- package/api/types/BearerAuthResponse.d.ts +3 -0
- package/api/types/CaptionStyleModel.d.ts +4 -0
- package/api/types/CaptionStyleSectionAnimationModelEnterType.d.ts +3 -0
- package/api/types/CaptionStyleSectionAnimationModelEnterType.js +3 -0
- package/api/types/CaptionStyleSectionAnimationModelExitType.d.ts +3 -0
- package/api/types/CaptionStyleSectionAnimationModelExitType.js +3 -0
- package/api/types/CaptionStyleWordAnimationModelEnterType.d.ts +3 -0
- package/api/types/CaptionStyleWordAnimationModelEnterType.js +3 -0
- package/api/types/CaptionStyleWordAnimationModelExitType.d.ts +3 -0
- package/api/types/CaptionStyleWordAnimationModelExitType.js +3 -0
- package/api/types/CharacterAge.d.ts +6 -0
- package/api/types/CharacterAge.js +9 -0
- package/api/types/CharacterGender.d.ts +6 -0
- package/api/types/CharacterGender.js +9 -0
- package/api/types/CharacterMetadataResponseModel.d.ts +8 -0
- package/api/types/CharacterMetadataResponseModel.js +3 -0
- package/api/types/CharacterResponseModel.d.ts +6 -0
- package/api/types/CharacterResponseModel.js +3 -0
- package/api/types/ConvAiWebhooks.d.ts +1 -1
- package/api/types/ConversationHistoryAnalysisCommonModel.d.ts +1 -0
- package/api/types/ConversationHistoryEvaluationCriteriaResultCommonModel.d.ts +3 -0
- package/api/types/ConversationHistoryTranscriptCommonModelInput.d.ts +1 -0
- package/api/types/ConversationHistoryTranscriptCommonModelOutput.d.ts +1 -0
- package/api/types/ConversationHistoryTranscriptResponseModel.d.ts +2 -0
- package/api/types/ConversationReasoningModel.d.ts +4 -0
- package/api/types/ConversationReasoningModel.js +3 -0
- package/api/types/ConversationSummaryResponseModel.d.ts +2 -0
- package/api/types/ConversationUserResponseModel.d.ts +3 -0
- package/api/types/CreateAgentProcedureParams.d.ts +3 -0
- package/api/types/CreateAgentProcedureParams.js +3 -0
- package/api/types/CreateExotelPhoneNumberRequest.d.ts +2 -0
- package/api/types/CreateSipTrunkPhoneNumberRequest.d.ts +2 -0
- package/api/types/CreateTwilioPhoneNumberRequest.d.ts +2 -0
- package/api/types/CriteriaScoringMode.d.ts +5 -0
- package/api/types/CriteriaScoringMode.js +8 -0
- package/api/types/CustomGuardrailConfig.d.ts +1 -1
- package/api/types/CustomHeaderAuthResponse.d.ts +3 -0
- package/api/types/DeleteAgentProcedureParams.d.ts +3 -0
- package/api/types/DeleteAgentProcedureParams.js +3 -0
- package/api/types/FrustratedConversationRef.d.ts +9 -0
- package/api/types/FrustratedConversationRef.js +3 -0
- package/api/types/FrustratedConversationRefOverallLabel.d.ts +6 -0
- package/api/types/FrustratedConversationRefOverallLabel.js +9 -0
- package/api/types/ListAgentProceduresParams.d.ts +3 -0
- package/api/types/ListAgentProceduresParams.js +3 -0
- package/api/types/ListAgentReferencesParams.d.ts +3 -0
- package/api/types/ListAgentReferencesParams.js +3 -0
- package/api/types/LiteralJsonSchemaPropertyType.d.ts +1 -7
- package/api/types/LiteralJsonSchemaPropertyType.js +0 -7
- package/api/types/LlmLiteralJsonSchemaPropertyType.d.ts +1 -7
- package/api/types/LlmLiteralJsonSchemaPropertyType.js +0 -7
- package/api/types/MergePreviewResponseModel.d.ts +33 -0
- package/api/types/MergePreviewResponseModel.js +3 -0
- package/api/types/MergePreviewResponseModelPhoneNumbersItem.d.ts +13 -0
- package/api/types/MergePreviewResponseModelPhoneNumbersItem.js +3 -0
- package/api/types/MtlsAuthResponse.d.ts +3 -0
- package/api/types/OAuth2ClientCredsResponse.d.ts +3 -0
- package/api/types/OAuth2JwtResponse.d.ts +3 -0
- package/api/types/PermissionType.d.ts +2 -0
- package/api/types/PermissionType.js +2 -0
- package/api/types/PhoneNumberTransfer.d.ts +2 -0
- package/api/types/PrivateKeyJwtResponse.d.ts +3 -0
- package/api/types/ProcedureAtVersionInput.d.ts +1 -1
- package/api/types/ProcedureAtVersionOutput.d.ts +1 -1
- package/api/types/PromptAgentApiModelInput.d.ts +2 -0
- package/api/types/PromptAgentApiModelOutput.d.ts +2 -0
- package/api/types/PromptAgentApiModelWorkflowOverrideInput.d.ts +2 -0
- package/api/types/PromptAgentApiModelWorkflowOverrideOutput.d.ts +2 -0
- package/api/types/PromptEvaluationCriteria.d.ts +6 -0
- package/api/types/ScimGroupResponseModel.d.ts +8 -0
- package/api/types/ScimGroupResponseModel.js +3 -0
- package/api/types/ScopedAnalysisResult.d.ts +1 -0
- package/api/types/SentimentAggregate.d.ts +8 -0
- package/api/types/SentimentAggregate.js +3 -0
- package/api/types/SlackBotAuthResponse.d.ts +3 -0
- package/api/types/TurnConfig.d.ts +2 -0
- package/api/types/TurnConfigWorkflowOverride.d.ts +2 -0
- package/api/types/UpdateAgentProcedureParams.d.ts +3 -0
- package/api/types/UpdateAgentProcedureParams.js +3 -0
- package/api/types/UpdateBearerAuthRequest.d.ts +4 -0
- package/api/types/UpdateBearerAuthRequest.js +3 -0
- package/api/types/UrlSecretAuthResponse.d.ts +3 -0
- package/api/types/UuiTransferConfig.d.ts +18 -0
- package/api/types/UuiTransferConfig.js +3 -0
- package/api/types/UuiTransferConfigProtocolDiscriminatorMode.d.ts +6 -0
- package/api/types/UuiTransferConfigProtocolDiscriminatorMode.js +9 -0
- package/api/types/WebhookEventType.d.ts +2 -0
- package/api/types/WebhookEventType.js +2 -0
- package/api/types/WebhookToolApiSchemaConfigInput.d.ts +2 -0
- package/api/types/WebhookToolApiSchemaConfigOutput.d.ts +2 -0
- package/api/types/WhatsAppAuthResponse.d.ts +3 -0
- package/api/types/WorkflowOverrideAgentNodeModelInput.d.ts +4 -4
- package/api/types/WorkflowOverrideAgentNodeModelOutput.d.ts +4 -4
- package/api/types/WorkflowPhoneNumberNodeModelInput.d.ts +2 -0
- package/api/types/WorkflowPhoneNumberNodeModelOutput.d.ts +2 -0
- package/api/types/WorkspaceGroupPermission.d.ts +2 -0
- package/api/types/WorkspaceGroupPermission.js +2 -0
- package/api/types/WorkspaceGroupResponseModel.d.ts +1 -0
- package/api/types/index.d.ts +22 -1
- package/api/types/index.js +22 -1
- package/dist/BaseClient.js +2 -2
- package/dist/Client.d.ts +2 -2
- package/dist/Client.js +4 -4
- package/dist/api/resources/conversationalAi/resources/agents/client/Client.d.ts +6 -2
- package/dist/api/resources/conversationalAi/resources/agents/client/Client.js +6 -2
- package/dist/api/resources/conversationalAi/resources/agents/resources/branches/client/Client.d.ts +32 -0
- package/dist/api/resources/conversationalAi/resources/agents/resources/branches/client/Client.js +121 -0
- package/dist/api/resources/conversationalAi/resources/agents/resources/branches/client/requests/BranchesPreviewMergeRequest.d.ts +13 -0
- package/dist/api/resources/conversationalAi/resources/agents/resources/branches/client/requests/BranchesPreviewMergeRequest.js +3 -0
- package/dist/api/resources/conversationalAi/resources/agents/resources/branches/client/requests/index.d.ts +1 -0
- package/dist/api/resources/index.d.ts +1 -0
- package/dist/api/resources/index.js +1 -0
- package/dist/api/resources/textToDialogue/client/requests/BodyTextToDialogueFullWithTimestamps.d.ts +1 -1
- package/dist/api/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceStreamingV1TextToDialogueStreamPost.d.ts +1 -1
- package/dist/api/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceV1TextToDialoguePost.d.ts +1 -1
- package/dist/api/resources/textToDialogue/client/requests/BodyTextToDialogueStreamWithTimestamps.d.ts +1 -1
- package/dist/api/resources/textToSpeech/client/requests/BodyTextToSpeechFull.d.ts +1 -1
- package/dist/api/resources/textToSpeech/client/requests/BodyTextToSpeechFullWithTimestamps.d.ts +1 -1
- package/dist/api/resources/textToSpeech/client/requests/StreamTextToSpeechRequest.d.ts +1 -1
- package/dist/api/resources/textToSpeech/client/requests/StreamTextToSpeechWithTimestampsRequest.d.ts +1 -1
- package/dist/api/resources/workspace/client/Client.d.ts +18 -1
- package/dist/api/resources/workspace/client/Client.js +99 -0
- package/dist/api/resources/workspace/client/index.d.ts +1 -1
- package/dist/api/resources/workspace/client/index.js +15 -0
- package/dist/api/resources/workspace/client/requests/BodySetWorkspaceThirdPartyDisablingPolicyV1WorkspacesApiKeysThirdPartyDisablingPost.d.ts +8 -0
- package/dist/api/resources/workspace/client/requests/BodySetWorkspaceThirdPartyDisablingPolicyV1WorkspacesApiKeysThirdPartyDisablingPost.js +3 -0
- package/dist/api/resources/workspace/client/requests/index.d.ts +1 -0
- package/dist/api/resources/workspace/client/requests/index.js +2 -0
- package/dist/api/resources/workspace/resources/authConnections/types/AuthConnectionsUpdateRequestBody.d.ts +4 -1
- package/dist/api/types/AgentBranchSummary.d.ts +2 -0
- package/dist/api/types/ApiIntegrationOAuth2AuthCodeResponse.d.ts +3 -6
- package/dist/api/types/ApiIntegrationOAuth2CustomAppResponse.d.ts +3 -6
- package/dist/api/types/AudioFilterId.d.ts +7 -0
- package/dist/api/types/AudioFilterId.js +10 -0
- package/dist/api/types/AuthConnectionStatus.d.ts +15 -0
- package/dist/api/types/AuthConnectionStatus.js +18 -0
- package/dist/api/types/BaseTurnConfig.d.ts +2 -0
- package/dist/api/types/BasicAuthResponse.d.ts +3 -0
- package/dist/api/types/BearerAuthResponse.d.ts +3 -0
- package/dist/api/types/CaptionStyleModel.d.ts +4 -0
- package/dist/api/types/CaptionStyleSectionAnimationModelEnterType.d.ts +3 -0
- package/dist/api/types/CaptionStyleSectionAnimationModelEnterType.js +3 -0
- package/dist/api/types/CaptionStyleSectionAnimationModelExitType.d.ts +3 -0
- package/dist/api/types/CaptionStyleSectionAnimationModelExitType.js +3 -0
- package/dist/api/types/CaptionStyleWordAnimationModelEnterType.d.ts +3 -0
- package/dist/api/types/CaptionStyleWordAnimationModelEnterType.js +3 -0
- package/dist/api/types/CaptionStyleWordAnimationModelExitType.d.ts +3 -0
- package/dist/api/types/CaptionStyleWordAnimationModelExitType.js +3 -0
- package/dist/api/types/CharacterAge.d.ts +6 -0
- package/dist/api/types/CharacterAge.js +9 -0
- package/dist/api/types/CharacterGender.d.ts +6 -0
- package/dist/api/types/CharacterGender.js +9 -0
- package/dist/api/types/CharacterMetadataResponseModel.d.ts +8 -0
- package/dist/api/types/CharacterMetadataResponseModel.js +3 -0
- package/dist/api/types/CharacterResponseModel.d.ts +6 -0
- package/dist/api/types/CharacterResponseModel.js +3 -0
- package/dist/api/types/ConvAiWebhooks.d.ts +1 -1
- package/dist/api/types/ConversationHistoryAnalysisCommonModel.d.ts +1 -0
- package/dist/api/types/ConversationHistoryEvaluationCriteriaResultCommonModel.d.ts +3 -0
- package/dist/api/types/ConversationHistoryTranscriptCommonModelInput.d.ts +1 -0
- package/dist/api/types/ConversationHistoryTranscriptCommonModelOutput.d.ts +1 -0
- package/dist/api/types/ConversationHistoryTranscriptResponseModel.d.ts +2 -0
- package/dist/api/types/ConversationReasoningModel.d.ts +4 -0
- package/dist/api/types/ConversationReasoningModel.js +3 -0
- package/dist/api/types/ConversationSummaryResponseModel.d.ts +2 -0
- package/dist/api/types/ConversationUserResponseModel.d.ts +3 -0
- package/dist/api/types/CreateAgentProcedureParams.d.ts +3 -0
- package/dist/api/types/CreateAgentProcedureParams.js +3 -0
- package/dist/api/types/CreateExotelPhoneNumberRequest.d.ts +2 -0
- package/dist/api/types/CreateSipTrunkPhoneNumberRequest.d.ts +2 -0
- package/dist/api/types/CreateTwilioPhoneNumberRequest.d.ts +2 -0
- package/dist/api/types/CriteriaScoringMode.d.ts +5 -0
- package/dist/api/types/CriteriaScoringMode.js +8 -0
- package/dist/api/types/CustomGuardrailConfig.d.ts +1 -1
- package/dist/api/types/CustomHeaderAuthResponse.d.ts +3 -0
- package/dist/api/types/DeleteAgentProcedureParams.d.ts +3 -0
- package/dist/api/types/DeleteAgentProcedureParams.js +3 -0
- package/dist/api/types/FrustratedConversationRef.d.ts +9 -0
- package/dist/api/types/FrustratedConversationRef.js +3 -0
- package/dist/api/types/FrustratedConversationRefOverallLabel.d.ts +6 -0
- package/dist/api/types/FrustratedConversationRefOverallLabel.js +9 -0
- package/dist/api/types/ListAgentProceduresParams.d.ts +3 -0
- package/dist/api/types/ListAgentProceduresParams.js +3 -0
- package/dist/api/types/ListAgentReferencesParams.d.ts +3 -0
- package/dist/api/types/ListAgentReferencesParams.js +3 -0
- package/dist/api/types/LiteralJsonSchemaPropertyType.d.ts +1 -7
- package/dist/api/types/LiteralJsonSchemaPropertyType.js +0 -7
- package/dist/api/types/LlmLiteralJsonSchemaPropertyType.d.ts +1 -7
- package/dist/api/types/LlmLiteralJsonSchemaPropertyType.js +0 -7
- package/dist/api/types/MergePreviewResponseModel.d.ts +33 -0
- package/dist/api/types/MergePreviewResponseModel.js +3 -0
- package/dist/api/types/MergePreviewResponseModelPhoneNumbersItem.d.ts +13 -0
- package/dist/api/types/MergePreviewResponseModelPhoneNumbersItem.js +3 -0
- package/dist/api/types/MtlsAuthResponse.d.ts +3 -0
- package/dist/api/types/OAuth2ClientCredsResponse.d.ts +3 -0
- package/dist/api/types/OAuth2JwtResponse.d.ts +3 -0
- package/dist/api/types/PermissionType.d.ts +2 -0
- package/dist/api/types/PermissionType.js +2 -0
- package/dist/api/types/PhoneNumberTransfer.d.ts +2 -0
- package/dist/api/types/PrivateKeyJwtResponse.d.ts +3 -0
- package/dist/api/types/ProcedureAtVersionInput.d.ts +1 -1
- package/dist/api/types/ProcedureAtVersionOutput.d.ts +1 -1
- package/dist/api/types/PromptAgentApiModelInput.d.ts +2 -0
- package/dist/api/types/PromptAgentApiModelOutput.d.ts +2 -0
- package/dist/api/types/PromptAgentApiModelWorkflowOverrideInput.d.ts +2 -0
- package/dist/api/types/PromptAgentApiModelWorkflowOverrideOutput.d.ts +2 -0
- package/dist/api/types/PromptEvaluationCriteria.d.ts +6 -0
- package/dist/api/types/ScimGroupResponseModel.d.ts +8 -0
- package/dist/api/types/ScimGroupResponseModel.js +3 -0
- package/dist/api/types/ScopedAnalysisResult.d.ts +1 -0
- package/dist/api/types/SentimentAggregate.d.ts +8 -0
- package/dist/api/types/SentimentAggregate.js +3 -0
- package/dist/api/types/SlackBotAuthResponse.d.ts +3 -0
- package/dist/api/types/TurnConfig.d.ts +2 -0
- package/dist/api/types/TurnConfigWorkflowOverride.d.ts +2 -0
- package/dist/api/types/UpdateAgentProcedureParams.d.ts +3 -0
- package/dist/api/types/UpdateAgentProcedureParams.js +3 -0
- package/dist/api/types/UpdateBearerAuthRequest.d.ts +4 -0
- package/dist/api/types/UpdateBearerAuthRequest.js +3 -0
- package/dist/api/types/UrlSecretAuthResponse.d.ts +3 -0
- package/dist/api/types/UuiTransferConfig.d.ts +18 -0
- package/dist/api/types/UuiTransferConfig.js +3 -0
- package/dist/api/types/UuiTransferConfigProtocolDiscriminatorMode.d.ts +6 -0
- package/dist/api/types/UuiTransferConfigProtocolDiscriminatorMode.js +9 -0
- package/dist/api/types/WebhookEventType.d.ts +2 -0
- package/dist/api/types/WebhookEventType.js +2 -0
- package/dist/api/types/WebhookToolApiSchemaConfigInput.d.ts +2 -0
- package/dist/api/types/WebhookToolApiSchemaConfigOutput.d.ts +2 -0
- package/dist/api/types/WhatsAppAuthResponse.d.ts +3 -0
- package/dist/api/types/WorkflowOverrideAgentNodeModelInput.d.ts +4 -4
- package/dist/api/types/WorkflowOverrideAgentNodeModelOutput.d.ts +4 -4
- package/dist/api/types/WorkflowPhoneNumberNodeModelInput.d.ts +2 -0
- package/dist/api/types/WorkflowPhoneNumberNodeModelOutput.d.ts +2 -0
- package/dist/api/types/WorkspaceGroupPermission.d.ts +2 -0
- package/dist/api/types/WorkspaceGroupPermission.js +2 -0
- package/dist/api/types/WorkspaceGroupResponseModel.d.ts +1 -0
- package/dist/api/types/index.d.ts +22 -1
- package/dist/api/types/index.js +22 -1
- package/dist/serialization/resources/index.d.ts +1 -0
- package/dist/serialization/resources/index.js +1 -0
- package/dist/serialization/resources/workspace/client/index.d.ts +1 -0
- package/dist/serialization/resources/workspace/client/index.js +17 -0
- package/dist/serialization/resources/workspace/client/requests/BodySetWorkspaceThirdPartyDisablingPolicyV1WorkspacesApiKeysThirdPartyDisablingPost.d.ts +9 -0
- package/dist/serialization/resources/workspace/client/requests/BodySetWorkspaceThirdPartyDisablingPolicyV1WorkspacesApiKeysThirdPartyDisablingPost.js +41 -0
- package/dist/serialization/resources/workspace/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/workspace/client/requests/index.js +5 -0
- package/dist/serialization/resources/workspace/index.d.ts +1 -0
- package/dist/serialization/resources/workspace/index.js +1 -0
- package/dist/serialization/resources/workspace/resources/authConnections/types/AuthConnectionsUpdateRequestBody.d.ts +5 -1
- package/dist/serialization/resources/workspace/resources/authConnections/types/AuthConnectionsUpdateRequestBody.js +2 -0
- package/dist/serialization/types/AgentBranchSummary.d.ts +1 -0
- package/dist/serialization/types/AgentBranchSummary.js +1 -0
- package/dist/serialization/types/ApiIntegrationOAuth2AuthCodeResponse.d.ts +4 -4
- package/dist/serialization/types/ApiIntegrationOAuth2AuthCodeResponse.js +4 -4
- package/dist/serialization/types/ApiIntegrationOAuth2CustomAppResponse.d.ts +4 -4
- package/dist/serialization/types/ApiIntegrationOAuth2CustomAppResponse.js +4 -4
- package/dist/serialization/types/AudioFilterId.d.ts +7 -0
- package/dist/serialization/types/{OAuthConnectionStatus.js → AudioFilterId.js} +2 -2
- package/dist/serialization/types/AuthConnectionStatus.d.ts +7 -0
- package/dist/serialization/types/AuthConnectionStatus.js +39 -0
- package/dist/serialization/types/BaseTurnConfig.d.ts +1 -0
- package/dist/serialization/types/BaseTurnConfig.js +1 -0
- package/dist/serialization/types/BasicAuthResponse.d.ts +4 -0
- package/dist/serialization/types/BasicAuthResponse.js +4 -0
- package/dist/serialization/types/BearerAuthResponse.d.ts +4 -0
- package/dist/serialization/types/BearerAuthResponse.js +4 -0
- package/dist/serialization/types/CaptionStyleModel.d.ts +4 -0
- package/dist/serialization/types/CaptionStyleModel.js +4 -0
- package/dist/serialization/types/CaptionStyleSectionAnimationModelEnterType.d.ts +1 -1
- package/dist/serialization/types/CaptionStyleSectionAnimationModelEnterType.js +11 -1
- package/dist/serialization/types/CaptionStyleSectionAnimationModelExitType.d.ts +1 -1
- package/dist/serialization/types/CaptionStyleSectionAnimationModelExitType.js +11 -1
- package/dist/serialization/types/CaptionStyleWordAnimationModelEnterType.d.ts +1 -1
- package/dist/serialization/types/CaptionStyleWordAnimationModelEnterType.js +11 -1
- package/dist/serialization/types/CaptionStyleWordAnimationModelExitType.d.ts +1 -1
- package/dist/serialization/types/CaptionStyleWordAnimationModelExitType.js +11 -1
- package/dist/serialization/types/CharacterAge.d.ts +7 -0
- package/{serialization/types/OAuthConnectionStatus.js → dist/serialization/types/CharacterAge.js} +2 -2
- package/dist/serialization/types/CharacterGender.d.ts +7 -0
- package/dist/serialization/types/CharacterGender.js +39 -0
- package/dist/serialization/types/CharacterMetadataResponseModel.d.ts +15 -0
- package/dist/serialization/types/CharacterMetadataResponseModel.js +47 -0
- package/dist/serialization/types/CharacterResponseModel.d.ts +12 -0
- package/dist/serialization/types/CharacterResponseModel.js +44 -0
- package/dist/serialization/types/ConversationHistoryAnalysisCommonModel.d.ts +1 -0
- package/dist/serialization/types/ConversationHistoryAnalysisCommonModel.js +1 -0
- package/dist/serialization/types/ConversationHistoryEvaluationCriteriaResultCommonModel.d.ts +4 -0
- package/dist/serialization/types/ConversationHistoryEvaluationCriteriaResultCommonModel.js +4 -0
- package/dist/serialization/types/ConversationHistoryTranscriptCommonModelInput.d.ts +2 -0
- package/dist/serialization/types/ConversationHistoryTranscriptCommonModelInput.js +2 -0
- package/dist/serialization/types/ConversationHistoryTranscriptCommonModelOutput.d.ts +2 -0
- package/dist/serialization/types/ConversationHistoryTranscriptCommonModelOutput.js +2 -0
- package/dist/serialization/types/ConversationHistoryTranscriptResponseModel.d.ts +3 -0
- package/dist/serialization/types/ConversationHistoryTranscriptResponseModel.js +3 -0
- package/dist/serialization/types/ConversationReasoningModel.d.ts +10 -0
- package/dist/serialization/types/ConversationReasoningModel.js +42 -0
- package/dist/serialization/types/ConversationSummaryResponseModel.d.ts +3 -0
- package/dist/serialization/types/ConversationSummaryResponseModel.js +3 -0
- package/dist/serialization/types/ConversationUserResponseModel.d.ts +4 -0
- package/dist/serialization/types/ConversationUserResponseModel.js +4 -0
- package/dist/serialization/types/CreateAgentProcedureParams.d.ts +9 -0
- package/dist/serialization/types/CreateAgentProcedureParams.js +41 -0
- package/dist/serialization/types/CreateExotelPhoneNumberRequest.d.ts +1 -0
- package/dist/serialization/types/CreateExotelPhoneNumberRequest.js +1 -0
- package/dist/serialization/types/CreateSipTrunkPhoneNumberRequest.d.ts +1 -0
- package/dist/serialization/types/CreateSipTrunkPhoneNumberRequest.js +1 -0
- package/dist/serialization/types/CreateTwilioPhoneNumberRequest.d.ts +1 -0
- package/dist/serialization/types/CreateTwilioPhoneNumberRequest.js +1 -0
- package/dist/serialization/types/CriteriaScoringMode.d.ts +7 -0
- package/dist/serialization/types/CriteriaScoringMode.js +39 -0
- package/dist/serialization/types/CustomHeaderAuthResponse.d.ts +4 -0
- package/dist/serialization/types/CustomHeaderAuthResponse.js +4 -0
- package/dist/serialization/types/DeleteAgentProcedureParams.d.ts +9 -0
- package/dist/serialization/types/DeleteAgentProcedureParams.js +41 -0
- package/dist/serialization/types/FrustratedConversationRef.d.ts +15 -0
- package/dist/serialization/types/FrustratedConversationRef.js +47 -0
- package/dist/serialization/types/FrustratedConversationRefOverallLabel.d.ts +7 -0
- package/dist/serialization/types/FrustratedConversationRefOverallLabel.js +39 -0
- package/dist/serialization/types/ListAgentProceduresParams.d.ts +9 -0
- package/dist/serialization/types/ListAgentProceduresParams.js +41 -0
- package/dist/serialization/types/ListAgentReferencesParams.d.ts +9 -0
- package/dist/serialization/types/ListAgentReferencesParams.js +41 -0
- package/dist/serialization/types/LiteralJsonSchemaPropertyType.d.ts +1 -1
- package/dist/serialization/types/LiteralJsonSchemaPropertyType.js +7 -1
- package/dist/serialization/types/LlmLiteralJsonSchemaPropertyType.d.ts +1 -1
- package/dist/serialization/types/LlmLiteralJsonSchemaPropertyType.js +7 -1
- package/dist/serialization/types/MergePreviewResponseModel.d.ts +30 -0
- package/dist/serialization/types/MergePreviewResponseModel.js +62 -0
- package/dist/serialization/types/MergePreviewResponseModelPhoneNumbersItem.d.ts +19 -0
- package/dist/serialization/types/MergePreviewResponseModelPhoneNumbersItem.js +51 -0
- package/dist/serialization/types/MtlsAuthResponse.d.ts +4 -0
- package/dist/serialization/types/MtlsAuthResponse.js +4 -0
- package/dist/serialization/types/OAuth2ClientCredsResponse.d.ts +4 -0
- package/dist/serialization/types/OAuth2ClientCredsResponse.js +4 -0
- package/dist/serialization/types/OAuth2JwtResponse.d.ts +4 -0
- package/dist/serialization/types/OAuth2JwtResponse.js +4 -0
- package/dist/serialization/types/PermissionType.d.ts +1 -1
- package/dist/serialization/types/PermissionType.js +2 -0
- package/dist/serialization/types/PhoneNumberTransfer.d.ts +2 -0
- package/dist/serialization/types/PhoneNumberTransfer.js +2 -0
- package/dist/serialization/types/PrivateKeyJwtResponse.d.ts +4 -0
- package/dist/serialization/types/PrivateKeyJwtResponse.js +4 -0
- package/dist/serialization/types/ProcedureAtVersionInput.d.ts +1 -1
- package/dist/serialization/types/ProcedureAtVersionInput.js +1 -1
- package/dist/serialization/types/ProcedureAtVersionOutput.d.ts +1 -1
- package/dist/serialization/types/ProcedureAtVersionOutput.js +1 -1
- package/dist/serialization/types/PromptAgentApiModelInput.d.ts +1 -0
- package/dist/serialization/types/PromptAgentApiModelInput.js +1 -0
- package/dist/serialization/types/PromptAgentApiModelOutput.d.ts +1 -0
- package/dist/serialization/types/PromptAgentApiModelOutput.js +1 -0
- package/dist/serialization/types/PromptAgentApiModelWorkflowOverrideInput.d.ts +1 -0
- package/dist/serialization/types/PromptAgentApiModelWorkflowOverrideInput.js +1 -0
- package/dist/serialization/types/PromptAgentApiModelWorkflowOverrideOutput.d.ts +1 -0
- package/dist/serialization/types/PromptAgentApiModelWorkflowOverrideOutput.js +1 -0
- package/dist/serialization/types/PromptEvaluationCriteria.d.ts +4 -0
- package/dist/serialization/types/PromptEvaluationCriteria.js +4 -0
- package/dist/serialization/types/ScimGroupResponseModel.d.ts +14 -0
- package/dist/serialization/types/ScimGroupResponseModel.js +46 -0
- package/dist/serialization/types/ScopedAnalysisResult.d.ts +1 -0
- package/dist/serialization/types/ScopedAnalysisResult.js +1 -0
- package/dist/serialization/types/SentimentAggregate.d.ts +14 -0
- package/dist/serialization/types/SentimentAggregate.js +46 -0
- package/dist/serialization/types/SlackBotAuthResponse.d.ts +4 -0
- package/dist/serialization/types/SlackBotAuthResponse.js +4 -0
- package/dist/serialization/types/TurnConfig.d.ts +1 -0
- package/dist/serialization/types/TurnConfig.js +1 -0
- package/dist/serialization/types/TurnConfigWorkflowOverride.d.ts +1 -0
- package/dist/serialization/types/TurnConfigWorkflowOverride.js +1 -0
- package/dist/serialization/types/UpdateAgentProcedureParams.d.ts +9 -0
- package/dist/serialization/types/UpdateAgentProcedureParams.js +41 -0
- package/dist/serialization/types/UpdateBearerAuthRequest.d.ts +10 -0
- package/dist/serialization/types/UpdateBearerAuthRequest.js +42 -0
- package/dist/serialization/types/UrlSecretAuthResponse.d.ts +4 -0
- package/dist/serialization/types/UrlSecretAuthResponse.js +4 -0
- package/dist/serialization/types/UuiTransferConfig.d.ts +12 -0
- package/dist/serialization/types/UuiTransferConfig.js +44 -0
- package/dist/serialization/types/UuiTransferConfigProtocolDiscriminatorMode.d.ts +7 -0
- package/dist/serialization/types/UuiTransferConfigProtocolDiscriminatorMode.js +39 -0
- package/dist/serialization/types/WebhookEventType.d.ts +1 -1
- package/dist/serialization/types/WebhookEventType.js +7 -1
- package/dist/serialization/types/WebhookToolApiSchemaConfigInput.d.ts +2 -0
- package/dist/serialization/types/WebhookToolApiSchemaConfigInput.js +2 -0
- package/dist/serialization/types/WebhookToolApiSchemaConfigOutput.d.ts +2 -0
- package/dist/serialization/types/WebhookToolApiSchemaConfigOutput.js +2 -0
- package/dist/serialization/types/WhatsAppAuthResponse.d.ts +4 -0
- package/dist/serialization/types/WhatsAppAuthResponse.js +4 -0
- package/dist/serialization/types/WorkflowOverrideAgentNodeModelInput.d.ts +2 -2
- package/dist/serialization/types/WorkflowOverrideAgentNodeModelInput.js +2 -2
- package/dist/serialization/types/WorkflowOverrideAgentNodeModelOutput.d.ts +2 -2
- package/dist/serialization/types/WorkflowOverrideAgentNodeModelOutput.js +2 -2
- package/dist/serialization/types/WorkflowPhoneNumberNodeModelInput.d.ts +2 -0
- package/dist/serialization/types/WorkflowPhoneNumberNodeModelInput.js +2 -0
- package/dist/serialization/types/WorkflowPhoneNumberNodeModelOutput.d.ts +2 -0
- package/dist/serialization/types/WorkflowPhoneNumberNodeModelOutput.js +2 -0
- package/dist/serialization/types/WorkspaceGroupPermission.d.ts +1 -1
- package/dist/serialization/types/WorkspaceGroupPermission.js +2 -0
- package/dist/serialization/types/WorkspaceGroupResponseModel.d.ts +2 -0
- package/dist/serialization/types/WorkspaceGroupResponseModel.js +2 -0
- package/dist/serialization/types/index.d.ts +22 -1
- package/dist/serialization/types/index.js +22 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +219 -2
- package/serialization/resources/index.d.ts +1 -0
- package/serialization/resources/index.js +1 -0
- package/serialization/resources/workspace/client/index.d.ts +1 -0
- package/serialization/resources/workspace/client/index.js +17 -0
- package/serialization/resources/workspace/client/requests/BodySetWorkspaceThirdPartyDisablingPolicyV1WorkspacesApiKeysThirdPartyDisablingPost.d.ts +9 -0
- package/serialization/resources/workspace/client/requests/BodySetWorkspaceThirdPartyDisablingPolicyV1WorkspacesApiKeysThirdPartyDisablingPost.js +41 -0
- package/serialization/resources/workspace/client/requests/index.d.ts +1 -0
- package/serialization/resources/workspace/client/requests/index.js +5 -0
- package/serialization/resources/workspace/index.d.ts +1 -0
- package/serialization/resources/workspace/index.js +1 -0
- package/serialization/resources/workspace/resources/authConnections/types/AuthConnectionsUpdateRequestBody.d.ts +5 -1
- package/serialization/resources/workspace/resources/authConnections/types/AuthConnectionsUpdateRequestBody.js +2 -0
- package/serialization/types/AgentBranchSummary.d.ts +1 -0
- package/serialization/types/AgentBranchSummary.js +1 -0
- package/serialization/types/ApiIntegrationOAuth2AuthCodeResponse.d.ts +4 -4
- package/serialization/types/ApiIntegrationOAuth2AuthCodeResponse.js +4 -4
- package/serialization/types/ApiIntegrationOAuth2CustomAppResponse.d.ts +4 -4
- package/serialization/types/ApiIntegrationOAuth2CustomAppResponse.js +4 -4
- package/serialization/types/AudioFilterId.d.ts +7 -0
- package/serialization/types/AudioFilterId.js +39 -0
- package/serialization/types/AuthConnectionStatus.d.ts +7 -0
- package/serialization/types/AuthConnectionStatus.js +39 -0
- package/serialization/types/BaseTurnConfig.d.ts +1 -0
- package/serialization/types/BaseTurnConfig.js +1 -0
- package/serialization/types/BasicAuthResponse.d.ts +4 -0
- package/serialization/types/BasicAuthResponse.js +4 -0
- package/serialization/types/BearerAuthResponse.d.ts +4 -0
- package/serialization/types/BearerAuthResponse.js +4 -0
- package/serialization/types/CaptionStyleModel.d.ts +4 -0
- package/serialization/types/CaptionStyleModel.js +4 -0
- package/serialization/types/CaptionStyleSectionAnimationModelEnterType.d.ts +1 -1
- package/serialization/types/CaptionStyleSectionAnimationModelEnterType.js +11 -1
- package/serialization/types/CaptionStyleSectionAnimationModelExitType.d.ts +1 -1
- package/serialization/types/CaptionStyleSectionAnimationModelExitType.js +11 -1
- package/serialization/types/CaptionStyleWordAnimationModelEnterType.d.ts +1 -1
- package/serialization/types/CaptionStyleWordAnimationModelEnterType.js +11 -1
- package/serialization/types/CaptionStyleWordAnimationModelExitType.d.ts +1 -1
- package/serialization/types/CaptionStyleWordAnimationModelExitType.js +11 -1
- package/serialization/types/CharacterAge.d.ts +7 -0
- package/serialization/types/CharacterAge.js +39 -0
- package/serialization/types/CharacterGender.d.ts +7 -0
- package/serialization/types/CharacterGender.js +39 -0
- package/serialization/types/CharacterMetadataResponseModel.d.ts +15 -0
- package/serialization/types/CharacterMetadataResponseModel.js +47 -0
- package/serialization/types/CharacterResponseModel.d.ts +12 -0
- package/serialization/types/CharacterResponseModel.js +44 -0
- package/serialization/types/ConversationHistoryAnalysisCommonModel.d.ts +1 -0
- package/serialization/types/ConversationHistoryAnalysisCommonModel.js +1 -0
- package/serialization/types/ConversationHistoryEvaluationCriteriaResultCommonModel.d.ts +4 -0
- package/serialization/types/ConversationHistoryEvaluationCriteriaResultCommonModel.js +4 -0
- package/serialization/types/ConversationHistoryTranscriptCommonModelInput.d.ts +2 -0
- package/serialization/types/ConversationHistoryTranscriptCommonModelInput.js +2 -0
- package/serialization/types/ConversationHistoryTranscriptCommonModelOutput.d.ts +2 -0
- package/serialization/types/ConversationHistoryTranscriptCommonModelOutput.js +2 -0
- package/serialization/types/ConversationHistoryTranscriptResponseModel.d.ts +3 -0
- package/serialization/types/ConversationHistoryTranscriptResponseModel.js +3 -0
- package/serialization/types/ConversationReasoningModel.d.ts +10 -0
- package/serialization/types/ConversationReasoningModel.js +42 -0
- package/serialization/types/ConversationSummaryResponseModel.d.ts +3 -0
- package/serialization/types/ConversationSummaryResponseModel.js +3 -0
- package/serialization/types/ConversationUserResponseModel.d.ts +4 -0
- package/serialization/types/ConversationUserResponseModel.js +4 -0
- package/serialization/types/CreateAgentProcedureParams.d.ts +9 -0
- package/serialization/types/CreateAgentProcedureParams.js +41 -0
- package/serialization/types/CreateExotelPhoneNumberRequest.d.ts +1 -0
- package/serialization/types/CreateExotelPhoneNumberRequest.js +1 -0
- package/serialization/types/CreateSipTrunkPhoneNumberRequest.d.ts +1 -0
- package/serialization/types/CreateSipTrunkPhoneNumberRequest.js +1 -0
- package/serialization/types/CreateTwilioPhoneNumberRequest.d.ts +1 -0
- package/serialization/types/CreateTwilioPhoneNumberRequest.js +1 -0
- package/serialization/types/CriteriaScoringMode.d.ts +7 -0
- package/serialization/types/CriteriaScoringMode.js +39 -0
- package/serialization/types/CustomHeaderAuthResponse.d.ts +4 -0
- package/serialization/types/CustomHeaderAuthResponse.js +4 -0
- package/serialization/types/DeleteAgentProcedureParams.d.ts +9 -0
- package/serialization/types/DeleteAgentProcedureParams.js +41 -0
- package/serialization/types/FrustratedConversationRef.d.ts +15 -0
- package/serialization/types/FrustratedConversationRef.js +47 -0
- package/serialization/types/FrustratedConversationRefOverallLabel.d.ts +7 -0
- package/serialization/types/FrustratedConversationRefOverallLabel.js +39 -0
- package/serialization/types/ListAgentProceduresParams.d.ts +9 -0
- package/serialization/types/ListAgentProceduresParams.js +41 -0
- package/serialization/types/ListAgentReferencesParams.d.ts +9 -0
- package/serialization/types/ListAgentReferencesParams.js +41 -0
- package/serialization/types/LiteralJsonSchemaPropertyType.d.ts +1 -1
- package/serialization/types/LiteralJsonSchemaPropertyType.js +7 -1
- package/serialization/types/LlmLiteralJsonSchemaPropertyType.d.ts +1 -1
- package/serialization/types/LlmLiteralJsonSchemaPropertyType.js +7 -1
- package/serialization/types/MergePreviewResponseModel.d.ts +30 -0
- package/serialization/types/MergePreviewResponseModel.js +62 -0
- package/serialization/types/MergePreviewResponseModelPhoneNumbersItem.d.ts +19 -0
- package/serialization/types/MergePreviewResponseModelPhoneNumbersItem.js +51 -0
- package/serialization/types/MtlsAuthResponse.d.ts +4 -0
- package/serialization/types/MtlsAuthResponse.js +4 -0
- package/serialization/types/OAuth2ClientCredsResponse.d.ts +4 -0
- package/serialization/types/OAuth2ClientCredsResponse.js +4 -0
- package/serialization/types/OAuth2JwtResponse.d.ts +4 -0
- package/serialization/types/OAuth2JwtResponse.js +4 -0
- package/serialization/types/PermissionType.d.ts +1 -1
- package/serialization/types/PermissionType.js +2 -0
- package/serialization/types/PhoneNumberTransfer.d.ts +2 -0
- package/serialization/types/PhoneNumberTransfer.js +2 -0
- package/serialization/types/PrivateKeyJwtResponse.d.ts +4 -0
- package/serialization/types/PrivateKeyJwtResponse.js +4 -0
- package/serialization/types/ProcedureAtVersionInput.d.ts +1 -1
- package/serialization/types/ProcedureAtVersionInput.js +1 -1
- package/serialization/types/ProcedureAtVersionOutput.d.ts +1 -1
- package/serialization/types/ProcedureAtVersionOutput.js +1 -1
- package/serialization/types/PromptAgentApiModelInput.d.ts +1 -0
- package/serialization/types/PromptAgentApiModelInput.js +1 -0
- package/serialization/types/PromptAgentApiModelOutput.d.ts +1 -0
- package/serialization/types/PromptAgentApiModelOutput.js +1 -0
- package/serialization/types/PromptAgentApiModelWorkflowOverrideInput.d.ts +1 -0
- package/serialization/types/PromptAgentApiModelWorkflowOverrideInput.js +1 -0
- package/serialization/types/PromptAgentApiModelWorkflowOverrideOutput.d.ts +1 -0
- package/serialization/types/PromptAgentApiModelWorkflowOverrideOutput.js +1 -0
- package/serialization/types/PromptEvaluationCriteria.d.ts +4 -0
- package/serialization/types/PromptEvaluationCriteria.js +4 -0
- package/serialization/types/ScimGroupResponseModel.d.ts +14 -0
- package/serialization/types/ScimGroupResponseModel.js +46 -0
- package/serialization/types/ScopedAnalysisResult.d.ts +1 -0
- package/serialization/types/ScopedAnalysisResult.js +1 -0
- package/serialization/types/SentimentAggregate.d.ts +14 -0
- package/serialization/types/SentimentAggregate.js +46 -0
- package/serialization/types/SlackBotAuthResponse.d.ts +4 -0
- package/serialization/types/SlackBotAuthResponse.js +4 -0
- package/serialization/types/TurnConfig.d.ts +1 -0
- package/serialization/types/TurnConfig.js +1 -0
- package/serialization/types/TurnConfigWorkflowOverride.d.ts +1 -0
- package/serialization/types/TurnConfigWorkflowOverride.js +1 -0
- package/serialization/types/UpdateAgentProcedureParams.d.ts +9 -0
- package/serialization/types/UpdateAgentProcedureParams.js +41 -0
- package/serialization/types/UpdateBearerAuthRequest.d.ts +10 -0
- package/serialization/types/UpdateBearerAuthRequest.js +42 -0
- package/serialization/types/UrlSecretAuthResponse.d.ts +4 -0
- package/serialization/types/UrlSecretAuthResponse.js +4 -0
- package/serialization/types/UuiTransferConfig.d.ts +12 -0
- package/serialization/types/UuiTransferConfig.js +44 -0
- package/serialization/types/UuiTransferConfigProtocolDiscriminatorMode.d.ts +7 -0
- package/serialization/types/UuiTransferConfigProtocolDiscriminatorMode.js +39 -0
- package/serialization/types/WebhookEventType.d.ts +1 -1
- package/serialization/types/WebhookEventType.js +7 -1
- package/serialization/types/WebhookToolApiSchemaConfigInput.d.ts +2 -0
- package/serialization/types/WebhookToolApiSchemaConfigInput.js +2 -0
- package/serialization/types/WebhookToolApiSchemaConfigOutput.d.ts +2 -0
- package/serialization/types/WebhookToolApiSchemaConfigOutput.js +2 -0
- package/serialization/types/WhatsAppAuthResponse.d.ts +4 -0
- package/serialization/types/WhatsAppAuthResponse.js +4 -0
- package/serialization/types/WorkflowOverrideAgentNodeModelInput.d.ts +2 -2
- package/serialization/types/WorkflowOverrideAgentNodeModelInput.js +2 -2
- package/serialization/types/WorkflowOverrideAgentNodeModelOutput.d.ts +2 -2
- package/serialization/types/WorkflowOverrideAgentNodeModelOutput.js +2 -2
- package/serialization/types/WorkflowPhoneNumberNodeModelInput.d.ts +2 -0
- package/serialization/types/WorkflowPhoneNumberNodeModelInput.js +2 -0
- package/serialization/types/WorkflowPhoneNumberNodeModelOutput.d.ts +2 -0
- package/serialization/types/WorkflowPhoneNumberNodeModelOutput.js +2 -0
- package/serialization/types/WorkspaceGroupPermission.d.ts +1 -1
- package/serialization/types/WorkspaceGroupPermission.js +2 -0
- package/serialization/types/WorkspaceGroupResponseModel.d.ts +2 -0
- package/serialization/types/WorkspaceGroupResponseModel.js +2 -0
- package/serialization/types/index.d.ts +22 -1
- package/serialization/types/index.js +22 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/types/OAuthConnectionStatus.d.ts +0 -6
- package/api/types/OAuthConnectionStatus.js +0 -9
- package/dist/api/types/OAuthConnectionStatus.d.ts +0 -6
- package/dist/api/types/OAuthConnectionStatus.js +0 -9
- package/dist/serialization/types/OAuthConnectionStatus.d.ts +0 -7
- package/serialization/types/OAuthConnectionStatus.d.ts +0 -7
package/.fern/metadata.json
CHANGED
package/.fern/replay.lock
CHANGED
|
@@ -36,14 +36,20 @@ generations:
|
|
|
36
36
|
cli_version: unknown
|
|
37
37
|
generator_versions:
|
|
38
38
|
fernapi/fern-typescript-sdk: 3.57.1
|
|
39
|
-
|
|
39
|
+
- commit_sha: db6cac60a3dbf75908dc7750a534b4562274be7b
|
|
40
|
+
tree_hash: f563e7cddb9a82a0b01fad1a6e123e23ec20f310
|
|
41
|
+
timestamp: 2026-06-30T07:44:36.446Z
|
|
42
|
+
cli_version: unknown
|
|
43
|
+
generator_versions:
|
|
44
|
+
fernapi/fern-typescript-sdk: 3.57.1
|
|
45
|
+
current_generation: db6cac60a3dbf75908dc7750a534b4562274be7b
|
|
40
46
|
patches:
|
|
41
47
|
- id: patch-f50f1558
|
|
42
48
|
content_hash: sha256:5a09c3db02b795ab544221e13bf2681e7f9bb43c07e8cd96ac063a405dc3a2c6
|
|
43
49
|
original_commit: f50f1558f741e331dd3949ded57771c012ef27ab
|
|
44
50
|
original_message: Add missing methods and test (#399)
|
|
45
51
|
original_author: Paul Asjes <paul.asjes@elevenlabs.io>
|
|
46
|
-
base_generation:
|
|
52
|
+
base_generation: db6cac60a3dbf75908dc7750a534b4562274be7b
|
|
47
53
|
files:
|
|
48
54
|
- tests/unit/wrapper/music.test.ts
|
|
49
55
|
patch_content: |
|
package/BaseClient.js
CHANGED
|
@@ -41,8 +41,8 @@ function normalizeClientOptions(options) {
|
|
|
41
41
|
const headers = (0, headers_1.mergeHeaders)({
|
|
42
42
|
"X-Fern-Language": "JavaScript",
|
|
43
43
|
"X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js",
|
|
44
|
-
"X-Fern-SDK-Version": "2.
|
|
45
|
-
"User-Agent": "@elevenlabs/elevenlabs-js/2.
|
|
44
|
+
"X-Fern-SDK-Version": "2.55.0",
|
|
45
|
+
"User-Agent": "@elevenlabs/elevenlabs-js/2.55.0",
|
|
46
46
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
47
47
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
48
48
|
"xi-api-key": options === null || options === void 0 ? void 0 : options.apiKey,
|
package/Client.d.ts
CHANGED
|
@@ -53,6 +53,7 @@ export declare class ElevenLabsClient {
|
|
|
53
53
|
protected _audioNative: AudioNativeClient | undefined;
|
|
54
54
|
protected _usage: UsageClient | undefined;
|
|
55
55
|
protected _pronunciationDictionaries: PronunciationDictionariesClient | undefined;
|
|
56
|
+
protected _workspace: WorkspaceClient | undefined;
|
|
56
57
|
protected _serviceAccounts: ServiceAccountsClient | undefined;
|
|
57
58
|
protected _webhooks: WebhooksClient | undefined;
|
|
58
59
|
protected _speechToText: SpeechToTextClient | undefined;
|
|
@@ -62,7 +63,6 @@ export declare class ElevenLabsClient {
|
|
|
62
63
|
protected _environmentVariables: EnvironmentVariablesClient | undefined;
|
|
63
64
|
protected _productions: ProductionsClient | undefined;
|
|
64
65
|
protected _tokens: TokensClient | undefined;
|
|
65
|
-
protected _workspace: WorkspaceClient | undefined;
|
|
66
66
|
protected _workspaces: WorkspacesClient | undefined;
|
|
67
67
|
constructor(options?: ElevenLabsClient.Options);
|
|
68
68
|
get history(): HistoryClient;
|
|
@@ -82,6 +82,7 @@ export declare class ElevenLabsClient {
|
|
|
82
82
|
get audioNative(): AudioNativeClient;
|
|
83
83
|
get usage(): UsageClient;
|
|
84
84
|
get pronunciationDictionaries(): PronunciationDictionariesClient;
|
|
85
|
+
get workspace(): WorkspaceClient;
|
|
85
86
|
get serviceAccounts(): ServiceAccountsClient;
|
|
86
87
|
get webhooks(): WebhooksClient;
|
|
87
88
|
get speechToText(): SpeechToTextClient;
|
|
@@ -91,7 +92,6 @@ export declare class ElevenLabsClient {
|
|
|
91
92
|
get environmentVariables(): EnvironmentVariablesClient;
|
|
92
93
|
get productions(): ProductionsClient;
|
|
93
94
|
get tokens(): TokensClient;
|
|
94
|
-
get workspace(): WorkspaceClient;
|
|
95
95
|
get workspaces(): WorkspacesClient;
|
|
96
96
|
/**
|
|
97
97
|
* Add a generated voice to the voice library.
|
package/Client.js
CHANGED
|
@@ -150,6 +150,10 @@ class ElevenLabsClient {
|
|
|
150
150
|
var _a;
|
|
151
151
|
return ((_a = this._pronunciationDictionaries) !== null && _a !== void 0 ? _a : (this._pronunciationDictionaries = new Client_11.PronunciationDictionariesClient(this._options)));
|
|
152
152
|
}
|
|
153
|
+
get workspace() {
|
|
154
|
+
var _a;
|
|
155
|
+
return ((_a = this._workspace) !== null && _a !== void 0 ? _a : (this._workspace = new Client_27.WorkspaceClient(this._options)));
|
|
156
|
+
}
|
|
153
157
|
get serviceAccounts() {
|
|
154
158
|
var _a;
|
|
155
159
|
return ((_a = this._serviceAccounts) !== null && _a !== void 0 ? _a : (this._serviceAccounts = new Client_13.ServiceAccountsClient(this._options)));
|
|
@@ -186,10 +190,6 @@ class ElevenLabsClient {
|
|
|
186
190
|
var _a;
|
|
187
191
|
return ((_a = this._tokens) !== null && _a !== void 0 ? _a : (this._tokens = new Client_22.TokensClient(this._options)));
|
|
188
192
|
}
|
|
189
|
-
get workspace() {
|
|
190
|
-
var _a;
|
|
191
|
-
return ((_a = this._workspace) !== null && _a !== void 0 ? _a : (this._workspace = new Client_27.WorkspaceClient(this._options)));
|
|
192
|
-
}
|
|
193
193
|
get workspaces() {
|
|
194
194
|
var _a;
|
|
195
195
|
return ((_a = this._workspaces) !== null && _a !== void 0 ? _a : (this._workspaces = new Client_28.WorkspacesClient(this._options)));
|
|
@@ -137,7 +137,9 @@ export declare class AgentsClient {
|
|
|
137
137
|
duplicate(agent_id: string, request?: ElevenLabs.conversationalAi.BodyDuplicateAgentV1ConvaiAgentsAgentIdDuplicatePost, requestOptions?: AgentsClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.CreateAgentResponseModel>;
|
|
138
138
|
private __duplicate;
|
|
139
139
|
/**
|
|
140
|
-
*
|
|
140
|
+
* @deprecated
|
|
141
|
+
*
|
|
142
|
+
* Deprecated. Use the `/v1/convai/agent-testing/create` and `/v1/convai/agents/:agent_id/run-tests` endpoints to create and run simulations. Run a conversation between the agent and a simulated user.
|
|
141
143
|
*
|
|
142
144
|
* @param {string} agent_id - The id of an agent. This is returned on agent creation.
|
|
143
145
|
* @param {ElevenLabs.conversationalAi.BodySimulatesAConversationV1ConvaiAgentsAgentIdSimulateConversationPost} request
|
|
@@ -159,7 +161,9 @@ export declare class AgentsClient {
|
|
|
159
161
|
simulateConversation(agent_id: string, request: ElevenLabs.conversationalAi.BodySimulatesAConversationV1ConvaiAgentsAgentIdSimulateConversationPost, requestOptions?: AgentsClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.AgentSimulatedChatTestResponseModel>;
|
|
160
162
|
private __simulateConversation;
|
|
161
163
|
/**
|
|
162
|
-
*
|
|
164
|
+
* @deprecated
|
|
165
|
+
*
|
|
166
|
+
* Deprecated. Use the `/v1/convai/agent-testing/create` and `/v1/convai/agents/:agent_id/run-tests` endpoints to create and run simulations. Run a conversation between the agent and a simulated user and stream back the response. Response is streamed back as partial lists of messages that should be concatenated and once the conversation has complete a single final message with the conversation analysis will be sent.
|
|
163
167
|
*
|
|
164
168
|
* @param {string} agent_id - The id of an agent. This is returned on agent creation.
|
|
165
169
|
* @param {ElevenLabs.conversationalAi.BodySimulatesAConversationStreamV1ConvaiAgentsAgentIdSimulateConversationStreamPost} request
|
|
@@ -498,7 +498,9 @@ class AgentsClient {
|
|
|
498
498
|
});
|
|
499
499
|
}
|
|
500
500
|
/**
|
|
501
|
-
*
|
|
501
|
+
* @deprecated
|
|
502
|
+
*
|
|
503
|
+
* Deprecated. Use the `/v1/convai/agent-testing/create` and `/v1/convai/agents/:agent_id/run-tests` endpoints to create and run simulations. Run a conversation between the agent and a simulated user.
|
|
502
504
|
*
|
|
503
505
|
* @param {string} agent_id - The id of an agent. This is returned on agent creation.
|
|
504
506
|
* @param {ElevenLabs.conversationalAi.BodySimulatesAConversationV1ConvaiAgentsAgentIdSimulateConversationPost} request
|
|
@@ -565,7 +567,9 @@ class AgentsClient {
|
|
|
565
567
|
});
|
|
566
568
|
}
|
|
567
569
|
/**
|
|
568
|
-
*
|
|
570
|
+
* @deprecated
|
|
571
|
+
*
|
|
572
|
+
* Deprecated. Use the `/v1/convai/agent-testing/create` and `/v1/convai/agents/:agent_id/run-tests` endpoints to create and run simulations. Run a conversation between the agent and a simulated user and stream back the response. Response is streamed back as partial lists of messages that should be concatenated and once the conversation has complete a single final message with the conversation analysis will be sent.
|
|
569
573
|
*
|
|
570
574
|
* @param {string} agent_id - The id of an agent. This is returned on agent creation.
|
|
571
575
|
* @param {ElevenLabs.conversationalAi.BodySimulatesAConversationStreamV1ConvaiAgentsAgentIdSimulateConversationStreamPost} request
|
package/api/resources/conversationalAi/resources/agents/resources/branches/client/Client.d.ts
CHANGED
|
@@ -74,6 +74,24 @@ export declare class BranchesClient {
|
|
|
74
74
|
*/
|
|
75
75
|
update(agent_id: string, branch_id: string, request?: ElevenLabs.conversationalAi.agents.BodyUpdateAgentBranchV1ConvaiAgentsAgentIdBranchesBranchIdPatch, requestOptions?: BranchesClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.AgentBranchResponse>;
|
|
76
76
|
private __update;
|
|
77
|
+
/**
|
|
78
|
+
* Returns the result of merging the source branch into the target branch without performing the merge. Useful for showing an accurate diff before confirming.
|
|
79
|
+
*
|
|
80
|
+
* @param {string} agent_id - The id of an agent. This is returned on agent creation.
|
|
81
|
+
* @param {string} source_branch_id - Unique identifier for the source branch to merge from.
|
|
82
|
+
* @param {ElevenLabs.conversationalAi.agents.BranchesPreviewMergeRequest} request
|
|
83
|
+
* @param {BranchesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
84
|
+
*
|
|
85
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
86
|
+
*
|
|
87
|
+
* @example
|
|
88
|
+
* await client.conversationalAi.agents.branches.previewMerge("agent_3701k3ttaq12ewp8b7qv5rfyszkz", "agtbrch_8901k4t9z5defmb8vh3e9361y7nj", {
|
|
89
|
+
* targetBranchId: "agtbrch_8901k4t9z5defmb8vh3e9361y7nj",
|
|
90
|
+
* force: true
|
|
91
|
+
* })
|
|
92
|
+
*/
|
|
93
|
+
previewMerge(agent_id: string, source_branch_id: string, request: ElevenLabs.conversationalAi.agents.BranchesPreviewMergeRequest, requestOptions?: BranchesClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.MergePreviewResponseModel>;
|
|
94
|
+
private __previewMerge;
|
|
77
95
|
/**
|
|
78
96
|
* Merge a branch into a target branch
|
|
79
97
|
*
|
|
@@ -91,6 +109,20 @@ export declare class BranchesClient {
|
|
|
91
109
|
*/
|
|
92
110
|
merge(agent_id: string, source_branch_id: string, request: ElevenLabs.conversationalAi.agents.BodyMergeABranchIntoATargetBranchV1ConvaiAgentsAgentIdBranchesSourceBranchIdMergePost, requestOptions?: BranchesClient.RequestOptions): core.HttpResponsePromise<unknown>;
|
|
93
111
|
private __merge;
|
|
112
|
+
/**
|
|
113
|
+
* Returns the result of rebasing the branch onto main without performing the rebase. Useful for showing an accurate diff before confirming.
|
|
114
|
+
*
|
|
115
|
+
* @param {string} agent_id - The id of an agent. This is returned on agent creation.
|
|
116
|
+
* @param {string} branch_id - Unique identifier for the source branch to merge from.
|
|
117
|
+
* @param {BranchesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
118
|
+
*
|
|
119
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
120
|
+
*
|
|
121
|
+
* @example
|
|
122
|
+
* await client.conversationalAi.agents.branches.previewRebase("agent_3701k3ttaq12ewp8b7qv5rfyszkz", "agtbrch_8901k4t9z5defmb8vh3e9361y7nj")
|
|
123
|
+
*/
|
|
124
|
+
previewRebase(agent_id: string, branch_id: string, requestOptions?: BranchesClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.MergePreviewResponseModel>;
|
|
125
|
+
private __previewRebase;
|
|
94
126
|
/**
|
|
95
127
|
* Rebase a branch onto the latest main branch, incorporating main's changes while preserving the branch's own changes.
|
|
96
128
|
*
|
|
@@ -310,6 +310,71 @@ class BranchesClient {
|
|
|
310
310
|
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "PATCH", "/v1/convai/agents/{agent_id}/branches/{branch_id}");
|
|
311
311
|
});
|
|
312
312
|
}
|
|
313
|
+
/**
|
|
314
|
+
* Returns the result of merging the source branch into the target branch without performing the merge. Useful for showing an accurate diff before confirming.
|
|
315
|
+
*
|
|
316
|
+
* @param {string} agent_id - The id of an agent. This is returned on agent creation.
|
|
317
|
+
* @param {string} source_branch_id - Unique identifier for the source branch to merge from.
|
|
318
|
+
* @param {ElevenLabs.conversationalAi.agents.BranchesPreviewMergeRequest} request
|
|
319
|
+
* @param {BranchesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
320
|
+
*
|
|
321
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
322
|
+
*
|
|
323
|
+
* @example
|
|
324
|
+
* await client.conversationalAi.agents.branches.previewMerge("agent_3701k3ttaq12ewp8b7qv5rfyszkz", "agtbrch_8901k4t9z5defmb8vh3e9361y7nj", {
|
|
325
|
+
* targetBranchId: "agtbrch_8901k4t9z5defmb8vh3e9361y7nj",
|
|
326
|
+
* force: true
|
|
327
|
+
* })
|
|
328
|
+
*/
|
|
329
|
+
previewMerge(agent_id, source_branch_id, request, requestOptions) {
|
|
330
|
+
return core.HttpResponsePromise.fromPromise(this.__previewMerge(agent_id, source_branch_id, request, requestOptions));
|
|
331
|
+
}
|
|
332
|
+
__previewMerge(agent_id, source_branch_id, request, requestOptions) {
|
|
333
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
334
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
335
|
+
const { targetBranchId, force } = request;
|
|
336
|
+
const _queryParams = {
|
|
337
|
+
target_branch_id: targetBranchId,
|
|
338
|
+
force,
|
|
339
|
+
};
|
|
340
|
+
const _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
341
|
+
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
342
|
+
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ElevenLabsEnvironment.Production, `v1/convai/agents/${core.url.encodePathParam(agent_id)}/branches/${core.url.encodePathParam(source_branch_id)}/merge-preview`),
|
|
343
|
+
method: "GET",
|
|
344
|
+
headers: _headers,
|
|
345
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
346
|
+
timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 240) * 1000,
|
|
347
|
+
maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
|
|
348
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
349
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
350
|
+
logging: this._options.logging,
|
|
351
|
+
});
|
|
352
|
+
if (_response.ok) {
|
|
353
|
+
return {
|
|
354
|
+
data: serializers.MergePreviewResponseModel.parseOrThrow(_response.body, {
|
|
355
|
+
unrecognizedObjectKeys: "passthrough",
|
|
356
|
+
allowUnrecognizedUnionMembers: true,
|
|
357
|
+
allowUnrecognizedEnumValues: true,
|
|
358
|
+
breadcrumbsPrefix: ["response"],
|
|
359
|
+
}),
|
|
360
|
+
rawResponse: _response.rawResponse,
|
|
361
|
+
};
|
|
362
|
+
}
|
|
363
|
+
if (_response.error.reason === "status-code") {
|
|
364
|
+
switch (_response.error.statusCode) {
|
|
365
|
+
case 422:
|
|
366
|
+
throw new ElevenLabs.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
367
|
+
default:
|
|
368
|
+
throw new errors.ElevenLabsError({
|
|
369
|
+
statusCode: _response.error.statusCode,
|
|
370
|
+
body: _response.error.body,
|
|
371
|
+
rawResponse: _response.rawResponse,
|
|
372
|
+
});
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v1/convai/agents/{agent_id}/branches/{source_branch_id}/merge-preview");
|
|
376
|
+
});
|
|
377
|
+
}
|
|
313
378
|
/**
|
|
314
379
|
* Merge a branch into a target branch
|
|
315
380
|
*
|
|
@@ -368,6 +433,62 @@ class BranchesClient {
|
|
|
368
433
|
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/convai/agents/{agent_id}/branches/{source_branch_id}/merge");
|
|
369
434
|
});
|
|
370
435
|
}
|
|
436
|
+
/**
|
|
437
|
+
* Returns the result of rebasing the branch onto main without performing the rebase. Useful for showing an accurate diff before confirming.
|
|
438
|
+
*
|
|
439
|
+
* @param {string} agent_id - The id of an agent. This is returned on agent creation.
|
|
440
|
+
* @param {string} branch_id - Unique identifier for the source branch to merge from.
|
|
441
|
+
* @param {BranchesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
442
|
+
*
|
|
443
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
444
|
+
*
|
|
445
|
+
* @example
|
|
446
|
+
* await client.conversationalAi.agents.branches.previewRebase("agent_3701k3ttaq12ewp8b7qv5rfyszkz", "agtbrch_8901k4t9z5defmb8vh3e9361y7nj")
|
|
447
|
+
*/
|
|
448
|
+
previewRebase(agent_id, branch_id, requestOptions) {
|
|
449
|
+
return core.HttpResponsePromise.fromPromise(this.__previewRebase(agent_id, branch_id, requestOptions));
|
|
450
|
+
}
|
|
451
|
+
__previewRebase(agent_id, branch_id, requestOptions) {
|
|
452
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
453
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
454
|
+
const _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
455
|
+
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
456
|
+
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ElevenLabsEnvironment.Production, `v1/convai/agents/${core.url.encodePathParam(agent_id)}/branches/${core.url.encodePathParam(branch_id)}/rebase-preview`),
|
|
457
|
+
method: "GET",
|
|
458
|
+
headers: _headers,
|
|
459
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
460
|
+
timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 240) * 1000,
|
|
461
|
+
maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
|
|
462
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
463
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
464
|
+
logging: this._options.logging,
|
|
465
|
+
});
|
|
466
|
+
if (_response.ok) {
|
|
467
|
+
return {
|
|
468
|
+
data: serializers.MergePreviewResponseModel.parseOrThrow(_response.body, {
|
|
469
|
+
unrecognizedObjectKeys: "passthrough",
|
|
470
|
+
allowUnrecognizedUnionMembers: true,
|
|
471
|
+
allowUnrecognizedEnumValues: true,
|
|
472
|
+
breadcrumbsPrefix: ["response"],
|
|
473
|
+
}),
|
|
474
|
+
rawResponse: _response.rawResponse,
|
|
475
|
+
};
|
|
476
|
+
}
|
|
477
|
+
if (_response.error.reason === "status-code") {
|
|
478
|
+
switch (_response.error.statusCode) {
|
|
479
|
+
case 422:
|
|
480
|
+
throw new ElevenLabs.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
481
|
+
default:
|
|
482
|
+
throw new errors.ElevenLabsError({
|
|
483
|
+
statusCode: _response.error.statusCode,
|
|
484
|
+
body: _response.error.body,
|
|
485
|
+
rawResponse: _response.rawResponse,
|
|
486
|
+
});
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v1/convai/agents/{agent_id}/branches/{branch_id}/rebase-preview");
|
|
490
|
+
});
|
|
491
|
+
}
|
|
371
492
|
/**
|
|
372
493
|
* Rebase a branch onto the latest main branch, incorporating main's changes while preserving the branch's own changes.
|
|
373
494
|
*
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {
|
|
4
|
+
* targetBranchId: "agtbrch_8901k4t9z5defmb8vh3e9361y7nj",
|
|
5
|
+
* force: true
|
|
6
|
+
* }
|
|
7
|
+
*/
|
|
8
|
+
export interface BranchesPreviewMergeRequest {
|
|
9
|
+
/** The ID of the target branch to merge into. */
|
|
10
|
+
targetBranchId: string;
|
|
11
|
+
/** When true, source branch changes always win conflicts regardless of timestamps */
|
|
12
|
+
force?: boolean;
|
|
13
|
+
}
|
|
@@ -2,3 +2,4 @@ export type { BodyCreateANewBranchV1ConvaiAgentsAgentIdBranchesPost } from "./Bo
|
|
|
2
2
|
export type { BodyMergeABranchIntoATargetBranchV1ConvaiAgentsAgentIdBranchesSourceBranchIdMergePost } from "./BodyMergeABranchIntoATargetBranchV1ConvaiAgentsAgentIdBranchesSourceBranchIdMergePost";
|
|
3
3
|
export type { BodyUpdateAgentBranchV1ConvaiAgentsAgentIdBranchesBranchIdPatch } from "./BodyUpdateAgentBranchV1ConvaiAgentsAgentIdBranchesBranchIdPatch";
|
|
4
4
|
export type { BranchesListRequest } from "./BranchesListRequest";
|
|
5
|
+
export type { BranchesPreviewMergeRequest } from "./BranchesPreviewMergeRequest";
|
package/api/resources/index.d.ts
CHANGED
package/api/resources/index.js
CHANGED
|
@@ -110,4 +110,5 @@ __exportStar(require("./voices/types"), exports);
|
|
|
110
110
|
exports.webhooks = __importStar(require("./webhooks"));
|
|
111
111
|
__exportStar(require("./webhooks/client/requests"), exports);
|
|
112
112
|
exports.workspace = __importStar(require("./workspace"));
|
|
113
|
+
__exportStar(require("./workspace/client/requests"), exports);
|
|
113
114
|
exports.workspaces = __importStar(require("./workspaces"));
|
package/api/resources/textToDialogue/client/requests/BodyTextToDialogueFullWithTimestamps.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ export interface BodyTextToDialogueFullWithTimestamps {
|
|
|
22
22
|
inputs: ElevenLabs.DialogueInput[];
|
|
23
23
|
/** 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. */
|
|
24
24
|
modelId?: string;
|
|
25
|
-
/** Language code (ISO 639-1) used to enforce a language for the model and text normalization. If the model does not support provided language code,
|
|
25
|
+
/** Language code (ISO 639-1) used to enforce a language for the model and text normalization. If the model does not support the provided language code, it will be ignored. This parameter is not supported for multilingual_v2 models. */
|
|
26
26
|
languageCode?: string;
|
|
27
27
|
/** Settings controlling the dialogue generation. */
|
|
28
28
|
settings?: ElevenLabs.ModelSettingsResponseModel;
|
|
@@ -20,7 +20,7 @@ export interface BodyTextToDialogueMultiVoiceStreamingV1TextToDialogueStreamPost
|
|
|
20
20
|
inputs: ElevenLabs.DialogueInput[];
|
|
21
21
|
/** 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. */
|
|
22
22
|
modelId?: string;
|
|
23
|
-
/** Language code (ISO 639-1) used to enforce a language for the model and text normalization. If the model does not support provided language code,
|
|
23
|
+
/** Language code (ISO 639-1) used to enforce a language for the model and text normalization. If the model does not support the provided language code, it will be ignored. This parameter is not supported for multilingual_v2 models. */
|
|
24
24
|
languageCode?: string;
|
|
25
25
|
/** Settings controlling the dialogue generation. */
|
|
26
26
|
settings?: ElevenLabs.ModelSettingsResponseModel;
|
|
@@ -20,7 +20,7 @@ export interface BodyTextToDialogueMultiVoiceV1TextToDialoguePost {
|
|
|
20
20
|
inputs: ElevenLabs.DialogueInput[];
|
|
21
21
|
/** 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. */
|
|
22
22
|
modelId?: string;
|
|
23
|
-
/** Language code (ISO 639-1) used to enforce a language for the model and text normalization. If the model does not support provided language code,
|
|
23
|
+
/** Language code (ISO 639-1) used to enforce a language for the model and text normalization. If the model does not support the provided language code, it will be ignored. This parameter is not supported for multilingual_v2 models. */
|
|
24
24
|
languageCode?: string;
|
|
25
25
|
/** Settings controlling the dialogue generation. */
|
|
26
26
|
settings?: ElevenLabs.ModelSettingsResponseModel;
|
package/api/resources/textToDialogue/client/requests/BodyTextToDialogueStreamWithTimestamps.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ export interface BodyTextToDialogueStreamWithTimestamps {
|
|
|
22
22
|
inputs: ElevenLabs.DialogueInput[];
|
|
23
23
|
/** 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. */
|
|
24
24
|
modelId?: string;
|
|
25
|
-
/** Language code (ISO 639-1) used to enforce a language for the model and text normalization. If the model does not support provided language code,
|
|
25
|
+
/** Language code (ISO 639-1) used to enforce a language for the model and text normalization. If the model does not support the provided language code, it will be ignored. This parameter is not supported for multilingual_v2 models. */
|
|
26
26
|
languageCode?: string;
|
|
27
27
|
/** Settings controlling the dialogue generation. */
|
|
28
28
|
settings?: ElevenLabs.ModelSettingsResponseModel;
|
|
@@ -27,7 +27,7 @@ export interface BodyTextToSpeechFull {
|
|
|
27
27
|
text: string;
|
|
28
28
|
/** 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. */
|
|
29
29
|
modelId?: string;
|
|
30
|
-
/** Language code (ISO 639-1) used to enforce a language for the model and text normalization. If the model does not support provided language code,
|
|
30
|
+
/** Language code (ISO 639-1) used to enforce a language for the model and text normalization. If the model does not support the provided language code, it will be ignored. This parameter is not supported for multilingual_v2 models. */
|
|
31
31
|
languageCode?: string;
|
|
32
32
|
/** Voice settings overriding stored settings for the given voice. They are applied only on the given request. */
|
|
33
33
|
voiceSettings?: ElevenLabs.VoiceSettings;
|
|
@@ -28,7 +28,7 @@ export interface BodyTextToSpeechFullWithTimestamps {
|
|
|
28
28
|
text: string;
|
|
29
29
|
/** 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. */
|
|
30
30
|
modelId?: string;
|
|
31
|
-
/** Language code (ISO 639-1) used to enforce a language for the model and text normalization. If the model does not support provided language code,
|
|
31
|
+
/** Language code (ISO 639-1) used to enforce a language for the model and text normalization. If the model does not support the provided language code, it will be ignored. This parameter is not supported for multilingual_v2 models. */
|
|
32
32
|
languageCode?: string;
|
|
33
33
|
/** Voice settings overriding stored settings for the given voice. They are applied only on the given request. */
|
|
34
34
|
voiceSettings?: ElevenLabs.VoiceSettings;
|
|
@@ -27,7 +27,7 @@ export interface StreamTextToSpeechRequest {
|
|
|
27
27
|
text: string;
|
|
28
28
|
/** 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. */
|
|
29
29
|
modelId?: string;
|
|
30
|
-
/** Language code (ISO 639-1) used to enforce a language for the model and text normalization. If the model does not support provided language code,
|
|
30
|
+
/** Language code (ISO 639-1) used to enforce a language for the model and text normalization. If the model does not support the provided language code, it will be ignored. This parameter is not supported for multilingual_v2 models. */
|
|
31
31
|
languageCode?: string;
|
|
32
32
|
/** Voice settings overriding stored settings for the given voice. They are applied only on the given request. */
|
|
33
33
|
voiceSettings?: ElevenLabs.VoiceSettings;
|
package/api/resources/textToSpeech/client/requests/StreamTextToSpeechWithTimestampsRequest.d.ts
CHANGED
|
@@ -27,7 +27,7 @@ export interface StreamTextToSpeechWithTimestampsRequest {
|
|
|
27
27
|
text: string;
|
|
28
28
|
/** 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. */
|
|
29
29
|
modelId?: string;
|
|
30
|
-
/** Language code (ISO 639-1) used to enforce a language for the model and text normalization. If the model does not support provided language code,
|
|
30
|
+
/** Language code (ISO 639-1) used to enforce a language for the model and text normalization. If the model does not support the provided language code, it will be ignored. This parameter is not supported for multilingual_v2 models. */
|
|
31
31
|
languageCode?: string;
|
|
32
32
|
/** Voice settings overriding stored settings for the given voice. They are applied only on the given request. */
|
|
33
33
|
voiceSettings?: ElevenLabs.VoiceSettings;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import type { BaseClientOptions } from "../../../../BaseClient";
|
|
1
|
+
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient";
|
|
2
2
|
import { type NormalizedClientOptions } from "../../../../BaseClient";
|
|
3
|
+
import * as core from "../../../../core";
|
|
4
|
+
import * as ElevenLabs from "../../../index";
|
|
3
5
|
import { AnalyticsClient } from "../resources/analytics/client/Client";
|
|
4
6
|
import { AuditLogsClient } from "../resources/auditLogs/client/Client";
|
|
5
7
|
import { AuthConnectionsClient } from "../resources/authConnections/client/Client";
|
|
@@ -10,6 +12,8 @@ import { ResourcesClient } from "../resources/resources/client/Client";
|
|
|
10
12
|
import { UsageClient } from "../resources/usage/client/Client";
|
|
11
13
|
export declare namespace WorkspaceClient {
|
|
12
14
|
type Options = BaseClientOptions;
|
|
15
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
16
|
+
}
|
|
13
17
|
}
|
|
14
18
|
export declare class WorkspaceClient {
|
|
15
19
|
protected readonly _options: NormalizedClientOptions<WorkspaceClient.Options>;
|
|
@@ -30,4 +34,17 @@ export declare class WorkspaceClient {
|
|
|
30
34
|
get resources(): ResourcesClient;
|
|
31
35
|
get usage(): UsageClient;
|
|
32
36
|
get analytics(): AnalyticsClient;
|
|
37
|
+
/**
|
|
38
|
+
* Set the workspace-wide Third-Party Disabling policy. When set, it forces, for every API key in the workspace, whether the holder of a key (potentially a third party who found it) may disable it via the self-disable endpoint or when it leaks publicly — overriding each key's own setting. Pass `true` to allow it for all keys, `false` to forbid it for all keys, or `null` to clear the override so per-key values and the plan default apply again. Workspace admins only; requires self-disable access.
|
|
39
|
+
*
|
|
40
|
+
* @param {ElevenLabs.BodySetWorkspaceThirdPartyDisablingPolicyV1WorkspacesApiKeysThirdPartyDisablingPost} request
|
|
41
|
+
* @param {WorkspaceClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
42
|
+
*
|
|
43
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* await client.workspace.setThirdPartyDisablingPolicy()
|
|
47
|
+
*/
|
|
48
|
+
setThirdPartyDisablingPolicy(request?: ElevenLabs.BodySetWorkspaceThirdPartyDisablingPolicyV1WorkspacesApiKeysThirdPartyDisablingPost, requestOptions?: WorkspaceClient.RequestOptions): core.HttpResponsePromise<unknown>;
|
|
49
|
+
private __setThirdPartyDisablingPolicy;
|
|
33
50
|
}
|
|
@@ -1,8 +1,57 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
37
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
38
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
39
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
40
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
41
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
42
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
43
|
+
});
|
|
44
|
+
};
|
|
3
45
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
46
|
exports.WorkspaceClient = void 0;
|
|
5
47
|
const BaseClient_1 = require("../../../../BaseClient");
|
|
48
|
+
const core = __importStar(require("../../../../core"));
|
|
49
|
+
const headers_1 = require("../../../../core/headers");
|
|
50
|
+
const environments = __importStar(require("../../../../environments"));
|
|
51
|
+
const handleNonStatusCodeError_1 = require("../../../../errors/handleNonStatusCodeError");
|
|
52
|
+
const errors = __importStar(require("../../../../errors/index"));
|
|
53
|
+
const serializers = __importStar(require("../../../../serialization/index"));
|
|
54
|
+
const ElevenLabs = __importStar(require("../../../index"));
|
|
6
55
|
const Client_1 = require("../resources/analytics/client/Client");
|
|
7
56
|
const Client_2 = require("../resources/auditLogs/client/Client");
|
|
8
57
|
const Client_3 = require("../resources/authConnections/client/Client");
|
|
@@ -47,5 +96,55 @@ class WorkspaceClient {
|
|
|
47
96
|
var _a;
|
|
48
97
|
return ((_a = this._analytics) !== null && _a !== void 0 ? _a : (this._analytics = new Client_1.AnalyticsClient(this._options)));
|
|
49
98
|
}
|
|
99
|
+
/**
|
|
100
|
+
* Set the workspace-wide Third-Party Disabling policy. When set, it forces, for every API key in the workspace, whether the holder of a key (potentially a third party who found it) may disable it via the self-disable endpoint or when it leaks publicly — overriding each key's own setting. Pass `true` to allow it for all keys, `false` to forbid it for all keys, or `null` to clear the override so per-key values and the plan default apply again. Workspace admins only; requires self-disable access.
|
|
101
|
+
*
|
|
102
|
+
* @param {ElevenLabs.BodySetWorkspaceThirdPartyDisablingPolicyV1WorkspacesApiKeysThirdPartyDisablingPost} request
|
|
103
|
+
* @param {WorkspaceClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
104
|
+
*
|
|
105
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
106
|
+
*
|
|
107
|
+
* @example
|
|
108
|
+
* await client.workspace.setThirdPartyDisablingPolicy()
|
|
109
|
+
*/
|
|
110
|
+
setThirdPartyDisablingPolicy(request = {}, requestOptions) {
|
|
111
|
+
return core.HttpResponsePromise.fromPromise(this.__setThirdPartyDisablingPolicy(request, requestOptions));
|
|
112
|
+
}
|
|
113
|
+
__setThirdPartyDisablingPolicy() {
|
|
114
|
+
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
115
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
116
|
+
const _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
117
|
+
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
118
|
+
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ElevenLabsEnvironment.Production, "v1/workspaces/api-keys/third-party-disabling"),
|
|
119
|
+
method: "POST",
|
|
120
|
+
headers: _headers,
|
|
121
|
+
contentType: "application/json",
|
|
122
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
123
|
+
requestType: "json",
|
|
124
|
+
body: serializers.BodySetWorkspaceThirdPartyDisablingPolicyV1WorkspacesApiKeysThirdPartyDisablingPost.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
125
|
+
timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 240) * 1000,
|
|
126
|
+
maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
|
|
127
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
128
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
129
|
+
logging: this._options.logging,
|
|
130
|
+
});
|
|
131
|
+
if (_response.ok) {
|
|
132
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
133
|
+
}
|
|
134
|
+
if (_response.error.reason === "status-code") {
|
|
135
|
+
switch (_response.error.statusCode) {
|
|
136
|
+
case 422:
|
|
137
|
+
throw new ElevenLabs.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
138
|
+
default:
|
|
139
|
+
throw new errors.ElevenLabsError({
|
|
140
|
+
statusCode: _response.error.statusCode,
|
|
141
|
+
body: _response.error.body,
|
|
142
|
+
rawResponse: _response.rawResponse,
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/workspaces/api-keys/third-party-disabling");
|
|
147
|
+
});
|
|
148
|
+
}
|
|
50
149
|
}
|
|
51
150
|
exports.WorkspaceClient = WorkspaceClient;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from "./requests";
|