@elevenlabs/elevenlabs-js 2.37.0 → 2.38.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/BaseClient.js +2 -2
- package/api/resources/conversationalAi/resources/agents/client/Client.d.ts +2 -0
- package/api/resources/conversationalAi/resources/agents/client/Client.js +13 -3
- package/api/resources/conversationalAi/resources/agents/client/requests/BodyCreateAgentV1ConvaiAgentsCreatePost.d.ts +3 -0
- package/api/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.d.ts +3 -0
- package/api/resources/conversationalAi/resources/batchCalls/client/requests/BodySubmitABatchCallRequestV1ConvaiBatchCallingSubmitPost.d.ts +1 -0
- package/api/resources/conversationalAi/resources/sipTrunk/client/requests/BodyHandleAnOutboundCallViaSipTrunkV1ConvaiSipTrunkOutboundCallPost.d.ts +1 -0
- package/api/resources/conversationalAi/resources/tests/client/Client.js +9 -1
- package/api/resources/conversationalAi/resources/tests/client/requests/TestsListRequest.d.ts +3 -1
- package/api/resources/conversationalAi/resources/twilio/client/requests/BodyHandleAnOutboundCallViaTwilioV1ConvaiTwilioOutboundCallPost.d.ts +1 -0
- package/api/resources/conversationalAi/resources/whatsappAccounts/client/requests/UpdateWhatsAppAccountRequest.d.ts +1 -0
- package/api/resources/music/client/Client.d.ts +16 -0
- package/api/resources/music/client/Client.js +72 -0
- package/api/resources/music/client/requests/BodyComposeMusicV1MusicPost.d.ts +1 -1
- package/api/resources/music/client/requests/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.d.ts +1 -1
- package/api/resources/music/client/requests/BodyStreamComposedMusicV1MusicStreamPost.d.ts +1 -1
- package/api/resources/music/client/requests/BodyUploadMusicV1MusicUploadPost.d.ts +13 -0
- package/api/resources/music/client/requests/index.d.ts +1 -0
- package/api/resources/pronunciationDictionaries/resources/rules/client/Client.d.ts +22 -0
- package/api/resources/pronunciationDictionaries/resources/rules/client/Client.js +72 -0
- package/api/resources/pronunciationDictionaries/resources/rules/client/requests/BodySetRulesOnThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdSetRulesPost.d.ts +21 -0
- package/api/resources/pronunciationDictionaries/resources/rules/client/requests/index.d.ts +1 -0
- package/api/resources/pronunciationDictionaries/resources/rules/types/BodySetRulesOnThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdSetRulesPostRulesItem.d.ts +10 -0
- package/api/resources/pronunciationDictionaries/resources/rules/types/BodySetRulesOnThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdSetRulesPostRulesItem.js +3 -0
- package/api/resources/pronunciationDictionaries/resources/rules/types/index.d.ts +1 -0
- package/api/resources/pronunciationDictionaries/resources/rules/types/index.js +1 -0
- package/api/resources/speechToText/client/Client.d.ts +1 -1
- package/api/resources/speechToText/client/Client.js +1 -1
- package/api/resources/speechToText/client/requests/BodySpeechToTextV1SpeechToTextPost.d.ts +2 -2
- package/api/resources/speechToText/types/SpeechToTextConvertRequestModelId.d.ts +1 -1
- package/api/resources/speechToText/types/SpeechToTextConvertRequestModelId.js +1 -1
- package/api/types/AgentMetadata.d.ts +1 -0
- package/api/types/AsrProvider.d.ts +1 -0
- package/api/types/AsrProvider.js +1 -0
- package/api/types/BatchCallDetailedResponse.d.ts +1 -0
- package/api/types/BatchCallResponse.d.ts +1 -0
- package/api/types/CanvasPlacement.d.ts +4 -0
- package/api/types/ChapterStatisticsResponse.d.ts +3 -0
- package/api/types/CheckServiceAvailabilityParams.d.ts +3 -0
- package/api/types/CheckServiceAvailabilityParams.js +3 -0
- package/api/types/ClientEvent.d.ts +1 -0
- package/api/types/ClientEvent.js +1 -0
- package/api/types/ContentGuardrailInput.d.ts +1 -0
- package/api/types/ContentGuardrailOutput.d.ts +1 -0
- package/api/types/ConversationUserResponseModel.d.ts +2 -2
- package/api/types/CreateAssetParams.d.ts +3 -0
- package/api/types/CreateAssetParams.js +3 -0
- package/api/types/CreateClientAppointmentParams.d.ts +3 -0
- package/api/types/CreateClientAppointmentParams.js +3 -0
- package/api/types/CustomGuardrailConfig.d.ts +1 -2
- package/api/types/CustomGuardrailInput.d.ts +1 -1
- package/api/types/CustomGuardrailOutput.d.ts +1 -1
- package/{dist/api/types/CustomGuardrailsConfig.d.ts → api/types/CustomGuardrailsConfigInput.d.ts} +1 -1
- package/api/types/CustomGuardrailsConfigInput.js +3 -0
- package/api/types/CustomGuardrailsConfigOutput.d.ts +7 -0
- package/api/types/CustomGuardrailsConfigOutput.js +3 -0
- package/api/types/CustomLlm.d.ts +1 -1
- package/api/types/DeleteAssetParams.d.ts +3 -0
- package/api/types/DeleteAssetParams.js +3 -0
- package/api/types/DeleteCalendarEventParams.d.ts +3 -0
- package/api/types/DeleteCalendarEventParams.js +3 -0
- package/api/types/GetClientAppointmentsParams.d.ts +3 -0
- package/api/types/GetClientAppointmentsParams.js +3 -0
- package/api/types/GetWhatsAppAccountResponse.d.ts +1 -0
- package/api/types/GuardrailExecutionMode.d.ts +5 -0
- package/api/types/GuardrailExecutionMode.js +8 -0
- package/api/types/ListAssetsParams.d.ts +1 -0
- package/api/types/ListCalendarEventsParams.d.ts +3 -0
- package/api/types/ListCalendarEventsParams.js +3 -0
- package/api/types/ListProductsParams.d.ts +1 -0
- package/api/types/ListServicesParams.d.ts +1 -0
- package/api/types/ListStaffParams.d.ts +1 -0
- package/api/types/Llm.d.ts +1 -0
- package/api/types/Llm.js +1 -0
- package/api/types/ModerationGuardrailInput.d.ts +1 -0
- package/api/types/ModerationGuardrailOutput.d.ts +1 -0
- package/api/types/MusicUploadResponse.d.ts +10 -0
- package/api/types/MusicUploadResponse.js +3 -0
- package/api/types/ObjectJsonSchemaPropertyInput.d.ts +1 -0
- package/api/types/ObjectJsonSchemaPropertyOutput.d.ts +1 -0
- package/api/types/ProjectExtendedResponse.d.ts +2 -0
- package/api/types/ProjectResponse.d.ts +2 -0
- package/api/types/RequiredConstraint.d.ts +6 -0
- package/api/types/RequiredConstraint.js +3 -0
- package/api/types/RequiredConstraints.d.ts +8 -0
- package/api/types/RequiredConstraints.js +3 -0
- package/api/types/SongSection.d.ts +1 -1
- package/api/types/StudioAgentSettingsModel.d.ts +4 -0
- package/api/types/StudioAgentSettingsModel.js +3 -0
- package/api/types/StudioAgentToolSettingsModel.d.ts +3 -0
- package/api/types/StudioAgentToolSettingsModel.js +3 -0
- package/api/types/TelephonyCallConfig.d.ts +4 -0
- package/api/types/TelephonyCallConfig.js +3 -0
- package/api/types/UpdateAssetParams.d.ts +3 -0
- package/api/types/UpdateAssetParams.js +3 -0
- package/api/types/UpdateCalendarEventParams.d.ts +3 -0
- package/api/types/UpdateCalendarEventParams.js +3 -0
- package/api/types/VoiceStatisticsResponseModel.d.ts +8 -0
- package/api/types/VoiceStatisticsResponseModel.js +3 -0
- package/api/types/index.d.ts +19 -2
- package/api/types/index.js +19 -2
- package/dist/BaseClient.js +2 -2
- package/dist/api/resources/conversationalAi/resources/agents/client/Client.d.ts +2 -0
- package/dist/api/resources/conversationalAi/resources/agents/client/Client.js +13 -3
- package/dist/api/resources/conversationalAi/resources/agents/client/requests/BodyCreateAgentV1ConvaiAgentsCreatePost.d.ts +3 -0
- package/dist/api/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.d.ts +3 -0
- package/dist/api/resources/conversationalAi/resources/batchCalls/client/requests/BodySubmitABatchCallRequestV1ConvaiBatchCallingSubmitPost.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/sipTrunk/client/requests/BodyHandleAnOutboundCallViaSipTrunkV1ConvaiSipTrunkOutboundCallPost.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/tests/client/Client.js +9 -1
- package/dist/api/resources/conversationalAi/resources/tests/client/requests/TestsListRequest.d.ts +3 -1
- package/dist/api/resources/conversationalAi/resources/twilio/client/requests/BodyHandleAnOutboundCallViaTwilioV1ConvaiTwilioOutboundCallPost.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/whatsappAccounts/client/requests/UpdateWhatsAppAccountRequest.d.ts +1 -0
- package/dist/api/resources/music/client/Client.d.ts +16 -0
- package/dist/api/resources/music/client/Client.js +72 -0
- package/dist/api/resources/music/client/requests/BodyComposeMusicV1MusicPost.d.ts +1 -1
- package/dist/api/resources/music/client/requests/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.d.ts +1 -1
- package/dist/api/resources/music/client/requests/BodyStreamComposedMusicV1MusicStreamPost.d.ts +1 -1
- package/dist/api/resources/music/client/requests/BodyUploadMusicV1MusicUploadPost.d.ts +13 -0
- package/dist/api/resources/music/client/requests/BodyUploadMusicV1MusicUploadPost.js +3 -0
- package/dist/api/resources/music/client/requests/index.d.ts +1 -0
- package/dist/api/resources/pronunciationDictionaries/resources/rules/client/Client.d.ts +22 -0
- package/dist/api/resources/pronunciationDictionaries/resources/rules/client/Client.js +72 -0
- package/dist/api/resources/pronunciationDictionaries/resources/rules/client/requests/BodySetRulesOnThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdSetRulesPost.d.ts +21 -0
- package/dist/api/resources/pronunciationDictionaries/resources/rules/client/requests/BodySetRulesOnThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdSetRulesPost.js +3 -0
- package/dist/api/resources/pronunciationDictionaries/resources/rules/client/requests/index.d.ts +1 -0
- package/dist/api/resources/pronunciationDictionaries/resources/rules/types/BodySetRulesOnThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdSetRulesPostRulesItem.d.ts +10 -0
- package/dist/api/resources/pronunciationDictionaries/resources/rules/types/BodySetRulesOnThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdSetRulesPostRulesItem.js +3 -0
- package/dist/api/resources/pronunciationDictionaries/resources/rules/types/index.d.ts +1 -0
- package/dist/api/resources/pronunciationDictionaries/resources/rules/types/index.js +1 -0
- package/dist/api/resources/speechToText/client/Client.d.ts +1 -1
- package/dist/api/resources/speechToText/client/Client.js +1 -1
- package/dist/api/resources/speechToText/client/requests/BodySpeechToTextV1SpeechToTextPost.d.ts +2 -2
- package/dist/api/resources/speechToText/types/SpeechToTextConvertRequestModelId.d.ts +1 -1
- package/dist/api/resources/speechToText/types/SpeechToTextConvertRequestModelId.js +1 -1
- package/dist/api/types/AgentMetadata.d.ts +1 -0
- package/dist/api/types/AsrProvider.d.ts +1 -0
- package/dist/api/types/AsrProvider.js +1 -0
- package/dist/api/types/BatchCallDetailedResponse.d.ts +1 -0
- package/dist/api/types/BatchCallResponse.d.ts +1 -0
- package/dist/api/types/CanvasPlacement.d.ts +4 -0
- package/dist/api/types/ChapterStatisticsResponse.d.ts +3 -0
- package/dist/api/types/CheckServiceAvailabilityParams.d.ts +3 -0
- package/dist/api/types/CheckServiceAvailabilityParams.js +3 -0
- package/dist/api/types/ClientEvent.d.ts +1 -0
- package/dist/api/types/ClientEvent.js +1 -0
- package/dist/api/types/ContentGuardrailInput.d.ts +1 -0
- package/dist/api/types/ContentGuardrailOutput.d.ts +1 -0
- package/dist/api/types/ConversationUserResponseModel.d.ts +2 -2
- package/dist/api/types/CreateAssetParams.d.ts +3 -0
- package/dist/api/types/CreateAssetParams.js +3 -0
- package/dist/api/types/CreateClientAppointmentParams.d.ts +3 -0
- package/dist/api/types/CreateClientAppointmentParams.js +3 -0
- package/dist/api/types/CustomGuardrailConfig.d.ts +1 -2
- package/dist/api/types/CustomGuardrailInput.d.ts +1 -1
- package/dist/api/types/CustomGuardrailOutput.d.ts +1 -1
- package/{api/types/CustomGuardrailsConfig.d.ts → dist/api/types/CustomGuardrailsConfigInput.d.ts} +1 -1
- package/dist/api/types/CustomGuardrailsConfigInput.js +3 -0
- package/dist/api/types/CustomGuardrailsConfigOutput.d.ts +7 -0
- package/dist/api/types/CustomGuardrailsConfigOutput.js +3 -0
- package/dist/api/types/CustomLlm.d.ts +1 -1
- package/dist/api/types/DeleteAssetParams.d.ts +3 -0
- package/dist/api/types/DeleteAssetParams.js +3 -0
- package/dist/api/types/DeleteCalendarEventParams.d.ts +3 -0
- package/dist/api/types/DeleteCalendarEventParams.js +3 -0
- package/dist/api/types/GetClientAppointmentsParams.d.ts +3 -0
- package/dist/api/types/GetClientAppointmentsParams.js +3 -0
- package/dist/api/types/GetWhatsAppAccountResponse.d.ts +1 -0
- package/dist/api/types/GuardrailExecutionMode.d.ts +5 -0
- package/dist/api/types/GuardrailExecutionMode.js +8 -0
- package/dist/api/types/ListAssetsParams.d.ts +1 -0
- package/dist/api/types/ListCalendarEventsParams.d.ts +3 -0
- package/dist/api/types/ListCalendarEventsParams.js +3 -0
- package/dist/api/types/ListProductsParams.d.ts +1 -0
- package/dist/api/types/ListServicesParams.d.ts +1 -0
- package/dist/api/types/ListStaffParams.d.ts +1 -0
- package/dist/api/types/Llm.d.ts +1 -0
- package/dist/api/types/Llm.js +1 -0
- package/dist/api/types/ModerationGuardrailInput.d.ts +1 -0
- package/dist/api/types/ModerationGuardrailOutput.d.ts +1 -0
- package/dist/api/types/MusicUploadResponse.d.ts +10 -0
- package/dist/api/types/MusicUploadResponse.js +3 -0
- package/dist/api/types/ObjectJsonSchemaPropertyInput.d.ts +1 -0
- package/dist/api/types/ObjectJsonSchemaPropertyOutput.d.ts +1 -0
- package/dist/api/types/ProjectExtendedResponse.d.ts +2 -0
- package/dist/api/types/ProjectResponse.d.ts +2 -0
- package/dist/api/types/RequiredConstraint.d.ts +6 -0
- package/dist/api/types/RequiredConstraint.js +3 -0
- package/dist/api/types/RequiredConstraints.d.ts +8 -0
- package/dist/api/types/RequiredConstraints.js +3 -0
- package/dist/api/types/SongSection.d.ts +1 -1
- package/dist/api/types/StudioAgentSettingsModel.d.ts +4 -0
- package/dist/api/types/StudioAgentSettingsModel.js +3 -0
- package/dist/api/types/StudioAgentToolSettingsModel.d.ts +3 -0
- package/dist/api/types/StudioAgentToolSettingsModel.js +3 -0
- package/dist/api/types/TelephonyCallConfig.d.ts +4 -0
- package/dist/api/types/TelephonyCallConfig.js +3 -0
- package/dist/api/types/UpdateAssetParams.d.ts +3 -0
- package/dist/api/types/UpdateAssetParams.js +3 -0
- package/dist/api/types/UpdateCalendarEventParams.d.ts +3 -0
- package/dist/api/types/UpdateCalendarEventParams.js +3 -0
- package/dist/api/types/VoiceStatisticsResponseModel.d.ts +8 -0
- package/dist/api/types/VoiceStatisticsResponseModel.js +3 -0
- package/dist/api/types/index.d.ts +19 -2
- package/dist/api/types/index.js +19 -2
- package/dist/serialization/resources/conversationalAi/resources/agents/client/requests/BodyCreateAgentV1ConvaiAgentsCreatePost.d.ts +1 -1
- package/dist/serialization/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.d.ts +1 -1
- package/dist/serialization/resources/conversationalAi/resources/batchCalls/client/requests/BodySubmitABatchCallRequestV1ConvaiBatchCallingSubmitPost.d.ts +2 -0
- package/dist/serialization/resources/conversationalAi/resources/batchCalls/client/requests/BodySubmitABatchCallRequestV1ConvaiBatchCallingSubmitPost.js +2 -0
- package/dist/serialization/resources/conversationalAi/resources/sipTrunk/client/requests/BodyHandleAnOutboundCallViaSipTrunkV1ConvaiSipTrunkOutboundCallPost.d.ts +2 -0
- package/dist/serialization/resources/conversationalAi/resources/sipTrunk/client/requests/BodyHandleAnOutboundCallViaSipTrunkV1ConvaiSipTrunkOutboundCallPost.js +2 -0
- package/dist/serialization/resources/conversationalAi/resources/twilio/client/requests/BodyHandleAnOutboundCallViaTwilioV1ConvaiTwilioOutboundCallPost.d.ts +2 -0
- package/dist/serialization/resources/conversationalAi/resources/twilio/client/requests/BodyHandleAnOutboundCallViaTwilioV1ConvaiTwilioOutboundCallPost.js +2 -0
- package/dist/serialization/resources/conversationalAi/resources/whatsappAccounts/client/requests/UpdateWhatsAppAccountRequest.d.ts +1 -0
- package/dist/serialization/resources/conversationalAi/resources/whatsappAccounts/client/requests/UpdateWhatsAppAccountRequest.js +1 -0
- package/dist/serialization/resources/pronunciationDictionaries/resources/rules/client/requests/BodySetRulesOnThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdSetRulesPost.d.ts +10 -0
- package/dist/serialization/resources/pronunciationDictionaries/resources/rules/client/requests/BodySetRulesOnThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdSetRulesPost.js +42 -0
- package/dist/serialization/resources/pronunciationDictionaries/resources/rules/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/pronunciationDictionaries/resources/rules/client/requests/index.js +3 -1
- package/dist/serialization/resources/pronunciationDictionaries/resources/rules/types/BodySetRulesOnThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdSetRulesPostRulesItem.d.ts +15 -0
- package/dist/serialization/resources/pronunciationDictionaries/resources/rules/types/BodySetRulesOnThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdSetRulesPostRulesItem.js +49 -0
- package/dist/serialization/resources/pronunciationDictionaries/resources/rules/types/index.d.ts +1 -0
- package/dist/serialization/resources/pronunciationDictionaries/resources/rules/types/index.js +1 -0
- package/dist/serialization/resources/speechToText/types/SpeechToTextConvertRequestModelId.d.ts +1 -1
- package/dist/serialization/resources/speechToText/types/SpeechToTextConvertRequestModelId.js +1 -1
- package/dist/serialization/types/AgentMetadata.d.ts +1 -0
- package/dist/serialization/types/AgentMetadata.js +1 -0
- package/dist/serialization/types/AsrProvider.d.ts +1 -1
- package/dist/serialization/types/AsrProvider.js +1 -1
- package/dist/serialization/types/BatchCallDetailedResponse.d.ts +2 -0
- package/dist/serialization/types/BatchCallDetailedResponse.js +2 -0
- package/dist/serialization/types/BatchCallResponse.d.ts +2 -0
- package/dist/serialization/types/BatchCallResponse.js +2 -0
- package/dist/serialization/types/CanvasPlacement.d.ts +4 -0
- package/dist/serialization/types/CanvasPlacement.js +4 -0
- package/dist/serialization/types/ChapterStatisticsResponse.d.ts +2 -0
- package/dist/serialization/types/ChapterStatisticsResponse.js +2 -0
- package/dist/serialization/types/CheckServiceAvailabilityParams.d.ts +9 -0
- package/dist/serialization/types/CheckServiceAvailabilityParams.js +41 -0
- package/dist/serialization/types/ClientEvent.d.ts +1 -1
- package/dist/serialization/types/ClientEvent.js +1 -0
- package/dist/serialization/types/ContentGuardrailInput.d.ts +2 -0
- package/dist/serialization/types/ContentGuardrailInput.js +2 -0
- package/dist/serialization/types/ContentGuardrailOutput.d.ts +2 -0
- package/dist/serialization/types/ContentGuardrailOutput.js +2 -0
- package/dist/serialization/types/ConversationUserResponseModel.d.ts +2 -2
- package/dist/serialization/types/ConversationUserResponseModel.js +2 -2
- package/dist/serialization/types/CreateAssetParams.d.ts +9 -0
- package/dist/serialization/types/CreateAssetParams.js +41 -0
- package/dist/serialization/types/CreateClientAppointmentParams.d.ts +9 -0
- package/dist/serialization/types/CreateClientAppointmentParams.js +41 -0
- package/dist/serialization/types/CustomGuardrailConfig.d.ts +2 -2
- package/dist/serialization/types/CustomGuardrailConfig.js +2 -2
- package/dist/serialization/types/CustomGuardrailInput.d.ts +2 -2
- package/dist/serialization/types/CustomGuardrailInput.js +2 -2
- package/dist/serialization/types/CustomGuardrailOutput.d.ts +2 -2
- package/dist/serialization/types/CustomGuardrailOutput.js +2 -2
- package/{serialization/types/CustomGuardrailsConfig.d.ts → dist/serialization/types/CustomGuardrailsConfigInput.d.ts} +2 -2
- package/dist/serialization/types/{CustomGuardrailsConfig.js → CustomGuardrailsConfigInput.js} +2 -2
- package/dist/serialization/types/CustomGuardrailsConfigOutput.d.ts +10 -0
- package/dist/serialization/types/CustomGuardrailsConfigOutput.js +42 -0
- package/dist/serialization/types/DeleteAssetParams.d.ts +9 -0
- package/dist/serialization/types/DeleteAssetParams.js +41 -0
- package/dist/serialization/types/DeleteCalendarEventParams.d.ts +9 -0
- package/dist/serialization/types/DeleteCalendarEventParams.js +41 -0
- package/dist/serialization/types/GetClientAppointmentsParams.d.ts +9 -0
- package/dist/serialization/types/GetClientAppointmentsParams.js +41 -0
- package/dist/serialization/types/GetWhatsAppAccountResponse.d.ts +1 -0
- package/dist/serialization/types/GetWhatsAppAccountResponse.js +1 -0
- package/dist/serialization/types/GuardrailExecutionMode.d.ts +7 -0
- package/dist/serialization/types/{CustomGuardrailConfigModel.js → GuardrailExecutionMode.js} +2 -2
- package/dist/serialization/types/ListAssetsParams.d.ts +1 -0
- package/dist/serialization/types/ListAssetsParams.js +1 -0
- package/dist/serialization/types/ListCalendarEventsParams.d.ts +9 -0
- package/dist/serialization/types/ListCalendarEventsParams.js +41 -0
- package/dist/serialization/types/ListProductsParams.d.ts +1 -0
- package/dist/serialization/types/ListProductsParams.js +1 -0
- package/dist/serialization/types/ListServicesParams.d.ts +1 -0
- package/dist/serialization/types/ListServicesParams.js +1 -0
- package/dist/serialization/types/ListStaffParams.d.ts +1 -0
- package/dist/serialization/types/ListStaffParams.js +1 -0
- package/dist/serialization/types/Llm.d.ts +1 -1
- package/dist/serialization/types/Llm.js +1 -0
- package/dist/serialization/types/ModerationGuardrailInput.d.ts +2 -0
- package/dist/serialization/types/ModerationGuardrailInput.js +2 -0
- package/dist/serialization/types/ModerationGuardrailOutput.d.ts +2 -0
- package/dist/serialization/types/ModerationGuardrailOutput.js +2 -0
- package/dist/serialization/types/MusicUploadResponse.d.ts +11 -0
- package/dist/serialization/types/MusicUploadResponse.js +43 -0
- package/dist/serialization/types/ObjectJsonSchemaPropertyInput.d.ts +2 -0
- package/dist/serialization/types/ObjectJsonSchemaPropertyInput.js +2 -0
- package/dist/serialization/types/ObjectJsonSchemaPropertyOutput.d.ts +2 -0
- package/dist/serialization/types/ObjectJsonSchemaPropertyOutput.js +2 -0
- package/dist/serialization/types/ProjectExtendedResponse.d.ts +2 -0
- package/dist/serialization/types/ProjectExtendedResponse.js +2 -0
- package/dist/serialization/types/ProjectResponse.d.ts +2 -0
- package/dist/serialization/types/ProjectResponse.js +2 -0
- package/dist/serialization/types/RequiredConstraint.d.ts +9 -0
- package/dist/serialization/types/RequiredConstraint.js +41 -0
- package/dist/serialization/types/RequiredConstraints.d.ts +11 -0
- package/dist/serialization/types/RequiredConstraints.js +43 -0
- package/dist/serialization/types/StudioAgentSettingsModel.d.ts +10 -0
- package/dist/serialization/types/StudioAgentSettingsModel.js +42 -0
- package/dist/serialization/types/StudioAgentToolSettingsModel.d.ts +9 -0
- package/dist/serialization/types/StudioAgentToolSettingsModel.js +41 -0
- package/dist/serialization/types/TelephonyCallConfig.d.ts +9 -0
- package/dist/serialization/types/TelephonyCallConfig.js +41 -0
- package/dist/serialization/types/UpdateAssetParams.d.ts +9 -0
- package/dist/serialization/types/UpdateAssetParams.js +41 -0
- package/dist/serialization/types/UpdateCalendarEventParams.d.ts +9 -0
- package/dist/serialization/types/UpdateCalendarEventParams.js +41 -0
- package/dist/serialization/types/VoiceStatisticsResponseModel.d.ts +11 -0
- package/dist/serialization/types/VoiceStatisticsResponseModel.js +43 -0
- package/dist/serialization/types/index.d.ts +19 -2
- package/dist/serialization/types/index.js +19 -2
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +147 -1
- package/serialization/resources/conversationalAi/resources/agents/client/requests/BodyCreateAgentV1ConvaiAgentsCreatePost.d.ts +1 -1
- package/serialization/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.d.ts +1 -1
- package/serialization/resources/conversationalAi/resources/batchCalls/client/requests/BodySubmitABatchCallRequestV1ConvaiBatchCallingSubmitPost.d.ts +2 -0
- package/serialization/resources/conversationalAi/resources/batchCalls/client/requests/BodySubmitABatchCallRequestV1ConvaiBatchCallingSubmitPost.js +2 -0
- package/serialization/resources/conversationalAi/resources/sipTrunk/client/requests/BodyHandleAnOutboundCallViaSipTrunkV1ConvaiSipTrunkOutboundCallPost.d.ts +2 -0
- package/serialization/resources/conversationalAi/resources/sipTrunk/client/requests/BodyHandleAnOutboundCallViaSipTrunkV1ConvaiSipTrunkOutboundCallPost.js +2 -0
- package/serialization/resources/conversationalAi/resources/twilio/client/requests/BodyHandleAnOutboundCallViaTwilioV1ConvaiTwilioOutboundCallPost.d.ts +2 -0
- package/serialization/resources/conversationalAi/resources/twilio/client/requests/BodyHandleAnOutboundCallViaTwilioV1ConvaiTwilioOutboundCallPost.js +2 -0
- package/serialization/resources/conversationalAi/resources/whatsappAccounts/client/requests/UpdateWhatsAppAccountRequest.d.ts +1 -0
- package/serialization/resources/conversationalAi/resources/whatsappAccounts/client/requests/UpdateWhatsAppAccountRequest.js +1 -0
- package/serialization/resources/pronunciationDictionaries/resources/rules/client/requests/BodySetRulesOnThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdSetRulesPost.d.ts +10 -0
- package/serialization/resources/pronunciationDictionaries/resources/rules/client/requests/BodySetRulesOnThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdSetRulesPost.js +42 -0
- package/serialization/resources/pronunciationDictionaries/resources/rules/client/requests/index.d.ts +1 -0
- package/serialization/resources/pronunciationDictionaries/resources/rules/client/requests/index.js +3 -1
- package/serialization/resources/pronunciationDictionaries/resources/rules/types/BodySetRulesOnThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdSetRulesPostRulesItem.d.ts +15 -0
- package/serialization/resources/pronunciationDictionaries/resources/rules/types/BodySetRulesOnThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdSetRulesPostRulesItem.js +49 -0
- package/serialization/resources/pronunciationDictionaries/resources/rules/types/index.d.ts +1 -0
- package/serialization/resources/pronunciationDictionaries/resources/rules/types/index.js +1 -0
- package/serialization/resources/speechToText/types/SpeechToTextConvertRequestModelId.d.ts +1 -1
- package/serialization/resources/speechToText/types/SpeechToTextConvertRequestModelId.js +1 -1
- package/serialization/types/AgentMetadata.d.ts +1 -0
- package/serialization/types/AgentMetadata.js +1 -0
- package/serialization/types/AsrProvider.d.ts +1 -1
- package/serialization/types/AsrProvider.js +1 -1
- package/serialization/types/BatchCallDetailedResponse.d.ts +2 -0
- package/serialization/types/BatchCallDetailedResponse.js +2 -0
- package/serialization/types/BatchCallResponse.d.ts +2 -0
- package/serialization/types/BatchCallResponse.js +2 -0
- package/serialization/types/CanvasPlacement.d.ts +4 -0
- package/serialization/types/CanvasPlacement.js +4 -0
- package/serialization/types/ChapterStatisticsResponse.d.ts +2 -0
- package/serialization/types/ChapterStatisticsResponse.js +2 -0
- package/serialization/types/CheckServiceAvailabilityParams.d.ts +9 -0
- package/serialization/types/CheckServiceAvailabilityParams.js +41 -0
- package/serialization/types/ClientEvent.d.ts +1 -1
- package/serialization/types/ClientEvent.js +1 -0
- package/serialization/types/ContentGuardrailInput.d.ts +2 -0
- package/serialization/types/ContentGuardrailInput.js +2 -0
- package/serialization/types/ContentGuardrailOutput.d.ts +2 -0
- package/serialization/types/ContentGuardrailOutput.js +2 -0
- package/serialization/types/ConversationUserResponseModel.d.ts +2 -2
- package/serialization/types/ConversationUserResponseModel.js +2 -2
- package/serialization/types/CreateAssetParams.d.ts +9 -0
- package/serialization/types/CreateAssetParams.js +41 -0
- package/serialization/types/CreateClientAppointmentParams.d.ts +9 -0
- package/serialization/types/CreateClientAppointmentParams.js +41 -0
- package/serialization/types/CustomGuardrailConfig.d.ts +2 -2
- package/serialization/types/CustomGuardrailConfig.js +2 -2
- package/serialization/types/CustomGuardrailInput.d.ts +2 -2
- package/serialization/types/CustomGuardrailInput.js +2 -2
- package/serialization/types/CustomGuardrailOutput.d.ts +2 -2
- package/serialization/types/CustomGuardrailOutput.js +2 -2
- package/{dist/serialization/types/CustomGuardrailsConfig.d.ts → serialization/types/CustomGuardrailsConfigInput.d.ts} +2 -2
- package/serialization/types/{CustomGuardrailsConfig.js → CustomGuardrailsConfigInput.js} +2 -2
- package/serialization/types/CustomGuardrailsConfigOutput.d.ts +10 -0
- package/serialization/types/CustomGuardrailsConfigOutput.js +42 -0
- package/serialization/types/DeleteAssetParams.d.ts +9 -0
- package/serialization/types/DeleteAssetParams.js +41 -0
- package/serialization/types/DeleteCalendarEventParams.d.ts +9 -0
- package/serialization/types/DeleteCalendarEventParams.js +41 -0
- package/serialization/types/GetClientAppointmentsParams.d.ts +9 -0
- package/serialization/types/GetClientAppointmentsParams.js +41 -0
- package/serialization/types/GetWhatsAppAccountResponse.d.ts +1 -0
- package/serialization/types/GetWhatsAppAccountResponse.js +1 -0
- package/serialization/types/GuardrailExecutionMode.d.ts +7 -0
- package/serialization/types/{CustomGuardrailConfigModel.js → GuardrailExecutionMode.js} +2 -2
- package/serialization/types/ListAssetsParams.d.ts +1 -0
- package/serialization/types/ListAssetsParams.js +1 -0
- package/serialization/types/ListCalendarEventsParams.d.ts +9 -0
- package/serialization/types/ListCalendarEventsParams.js +41 -0
- package/serialization/types/ListProductsParams.d.ts +1 -0
- package/serialization/types/ListProductsParams.js +1 -0
- package/serialization/types/ListServicesParams.d.ts +1 -0
- package/serialization/types/ListServicesParams.js +1 -0
- package/serialization/types/ListStaffParams.d.ts +1 -0
- package/serialization/types/ListStaffParams.js +1 -0
- package/serialization/types/Llm.d.ts +1 -1
- package/serialization/types/Llm.js +1 -0
- package/serialization/types/ModerationGuardrailInput.d.ts +2 -0
- package/serialization/types/ModerationGuardrailInput.js +2 -0
- package/serialization/types/ModerationGuardrailOutput.d.ts +2 -0
- package/serialization/types/ModerationGuardrailOutput.js +2 -0
- package/serialization/types/MusicUploadResponse.d.ts +11 -0
- package/serialization/types/MusicUploadResponse.js +43 -0
- package/serialization/types/ObjectJsonSchemaPropertyInput.d.ts +2 -0
- package/serialization/types/ObjectJsonSchemaPropertyInput.js +2 -0
- package/serialization/types/ObjectJsonSchemaPropertyOutput.d.ts +2 -0
- package/serialization/types/ObjectJsonSchemaPropertyOutput.js +2 -0
- package/serialization/types/ProjectExtendedResponse.d.ts +2 -0
- package/serialization/types/ProjectExtendedResponse.js +2 -0
- package/serialization/types/ProjectResponse.d.ts +2 -0
- package/serialization/types/ProjectResponse.js +2 -0
- package/serialization/types/RequiredConstraint.d.ts +9 -0
- package/serialization/types/RequiredConstraint.js +41 -0
- package/serialization/types/RequiredConstraints.d.ts +11 -0
- package/serialization/types/RequiredConstraints.js +43 -0
- package/serialization/types/StudioAgentSettingsModel.d.ts +10 -0
- package/serialization/types/StudioAgentSettingsModel.js +42 -0
- package/serialization/types/StudioAgentToolSettingsModel.d.ts +9 -0
- package/serialization/types/StudioAgentToolSettingsModel.js +41 -0
- package/serialization/types/TelephonyCallConfig.d.ts +9 -0
- package/serialization/types/TelephonyCallConfig.js +41 -0
- package/serialization/types/UpdateAssetParams.d.ts +9 -0
- package/serialization/types/UpdateAssetParams.js +41 -0
- package/serialization/types/UpdateCalendarEventParams.d.ts +9 -0
- package/serialization/types/UpdateCalendarEventParams.js +41 -0
- package/serialization/types/VoiceStatisticsResponseModel.d.ts +11 -0
- package/serialization/types/VoiceStatisticsResponseModel.js +43 -0
- package/serialization/types/index.d.ts +19 -2
- package/serialization/types/index.js +19 -2
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/types/CustomGuardrailConfigModel.d.ts +0 -6
- package/api/types/CustomGuardrailConfigModel.js +0 -9
- package/dist/api/types/CustomGuardrailConfigModel.d.ts +0 -6
- package/dist/api/types/CustomGuardrailConfigModel.js +0 -9
- package/dist/serialization/types/CustomGuardrailConfigModel.d.ts +0 -7
- package/serialization/types/CustomGuardrailConfigModel.d.ts +0 -7
- /package/api/{types/CustomGuardrailsConfig.js → resources/music/client/requests/BodyUploadMusicV1MusicUploadPost.js} +0 -0
- /package/{dist/api/types/CustomGuardrailsConfig.js → api/resources/pronunciationDictionaries/resources/rules/client/requests/BodySetRulesOnThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdSetRulesPost.js} +0 -0
package/api/types/index.js
CHANGED
|
@@ -213,6 +213,7 @@ __exportStar(require("./CharacterAlignmentResponseModel"), exports);
|
|
|
213
213
|
__exportStar(require("./CharacterRefreshPeriod"), exports);
|
|
214
214
|
__exportStar(require("./CharacterUsageResponse"), exports);
|
|
215
215
|
__exportStar(require("./ChatSourceMedium"), exports);
|
|
216
|
+
__exportStar(require("./CheckServiceAvailabilityParams"), exports);
|
|
216
217
|
__exportStar(require("./ClientEvent"), exports);
|
|
217
218
|
__exportStar(require("./ClientToolConfigInput"), exports);
|
|
218
219
|
__exportStar(require("./ClientToolConfigOutput"), exports);
|
|
@@ -326,7 +327,9 @@ __exportStar(require("./ConvertProjectResponseModel"), exports);
|
|
|
326
327
|
__exportStar(require("./CreateAgentBranchResponseModel"), exports);
|
|
327
328
|
__exportStar(require("./CreateAgentResponseModel"), exports);
|
|
328
329
|
__exportStar(require("./CreateAgentTestResponseModel"), exports);
|
|
330
|
+
__exportStar(require("./CreateAssetParams"), exports);
|
|
329
331
|
__exportStar(require("./CreateAudioNativeProjectRequest"), exports);
|
|
332
|
+
__exportStar(require("./CreateClientAppointmentParams"), exports);
|
|
330
333
|
__exportStar(require("./CreateClientParams"), exports);
|
|
331
334
|
__exportStar(require("./CreatePhoneNumberResponseModel"), exports);
|
|
332
335
|
__exportStar(require("./CreatePreviouslyGeneratedVoiceRequest"), exports);
|
|
@@ -344,10 +347,10 @@ __exportStar(require("./CreateToolCallUnitTestRequestDynamicVariablesValue"), ex
|
|
|
344
347
|
__exportStar(require("./CreateTranscriptRequest"), exports);
|
|
345
348
|
__exportStar(require("./CreateTwilioPhoneNumberRequest"), exports);
|
|
346
349
|
__exportStar(require("./CustomGuardrailConfig"), exports);
|
|
347
|
-
__exportStar(require("./CustomGuardrailConfigModel"), exports);
|
|
348
350
|
__exportStar(require("./CustomGuardrailInput"), exports);
|
|
349
351
|
__exportStar(require("./CustomGuardrailOutput"), exports);
|
|
350
|
-
__exportStar(require("./
|
|
352
|
+
__exportStar(require("./CustomGuardrailsConfigInput"), exports);
|
|
353
|
+
__exportStar(require("./CustomGuardrailsConfigOutput"), exports);
|
|
351
354
|
__exportStar(require("./CustomLlm"), exports);
|
|
352
355
|
__exportStar(require("./CustomLlmapiType"), exports);
|
|
353
356
|
__exportStar(require("./CustomLlmRequestHeadersValue"), exports);
|
|
@@ -359,6 +362,8 @@ __exportStar(require("./DashboardDataCollectionChartModel"), exports);
|
|
|
359
362
|
__exportStar(require("./DataCollectionResultCommonModel"), exports);
|
|
360
363
|
__exportStar(require("./DefaultSharingGroupResponseModel"), exports);
|
|
361
364
|
__exportStar(require("./DefaultSharingGroupResponseModelPermissionLevel"), exports);
|
|
365
|
+
__exportStar(require("./DeleteAssetParams"), exports);
|
|
366
|
+
__exportStar(require("./DeleteCalendarEventParams"), exports);
|
|
362
367
|
__exportStar(require("./DeleteChapterRequest"), exports);
|
|
363
368
|
__exportStar(require("./DeleteChapterResponseModel"), exports);
|
|
364
369
|
__exportStar(require("./DeleteClientParams"), exports);
|
|
@@ -461,6 +466,7 @@ __exportStar(require("./GetChapterRequest"), exports);
|
|
|
461
466
|
__exportStar(require("./GetChapterSnapshotsRequest"), exports);
|
|
462
467
|
__exportStar(require("./GetChaptersRequest"), exports);
|
|
463
468
|
__exportStar(require("./GetChaptersResponse"), exports);
|
|
469
|
+
__exportStar(require("./GetClientAppointmentsParams"), exports);
|
|
464
470
|
__exportStar(require("./GetClientByPhoneParams"), exports);
|
|
465
471
|
__exportStar(require("./GetConvAiDashboardSettingsResponseModel"), exports);
|
|
466
472
|
__exportStar(require("./GetConvAiDashboardSettingsResponseModelChartsItem"), exports);
|
|
@@ -521,6 +527,7 @@ __exportStar(require("./GetVoicesResponse"), exports);
|
|
|
521
527
|
__exportStar(require("./GetVoicesV2Response"), exports);
|
|
522
528
|
__exportStar(require("./GetWhatsAppAccountResponse"), exports);
|
|
523
529
|
__exportStar(require("./GetWorkspaceSecretsResponseModel"), exports);
|
|
530
|
+
__exportStar(require("./GuardrailExecutionMode"), exports);
|
|
524
531
|
__exportStar(require("./GuardrailsV1Input"), exports);
|
|
525
532
|
__exportStar(require("./GuardrailsV1Output"), exports);
|
|
526
533
|
__exportStar(require("./HistoryAlignmentResponseModel"), exports);
|
|
@@ -560,6 +567,7 @@ __exportStar(require("./LanguageResponse"), exports);
|
|
|
560
567
|
__exportStar(require("./LibraryVoiceResponse"), exports);
|
|
561
568
|
__exportStar(require("./LibraryVoiceResponseModelCategory"), exports);
|
|
562
569
|
__exportStar(require("./ListAssetsParams"), exports);
|
|
570
|
+
__exportStar(require("./ListCalendarEventsParams"), exports);
|
|
563
571
|
__exportStar(require("./ListClientsParams"), exports);
|
|
564
572
|
__exportStar(require("./ListMcpToolsResponseModel"), exports);
|
|
565
573
|
__exportStar(require("./ListProductsParams"), exports);
|
|
@@ -628,6 +636,7 @@ __exportStar(require("./MultipartMusicResponse"), exports);
|
|
|
628
636
|
__exportStar(require("./MultiSourceConfigJson"), exports);
|
|
629
637
|
__exportStar(require("./MusicExploreSongSourceContext"), exports);
|
|
630
638
|
__exportStar(require("./MusicPrompt"), exports);
|
|
639
|
+
__exportStar(require("./MusicUploadResponse"), exports);
|
|
631
640
|
__exportStar(require("./NoCoachingSettings"), exports);
|
|
632
641
|
__exportStar(require("./NonStreamingOutputFormats"), exports);
|
|
633
642
|
__exportStar(require("./NormalizedAlignment"), exports);
|
|
@@ -767,6 +776,8 @@ __exportStar(require("./Render"), exports);
|
|
|
767
776
|
__exportStar(require("./RenderStatus"), exports);
|
|
768
777
|
__exportStar(require("./RenderType"), exports);
|
|
769
778
|
__exportStar(require("./RequestPvcManualVerificationResponseModel"), exports);
|
|
779
|
+
__exportStar(require("./RequiredConstraint"), exports);
|
|
780
|
+
__exportStar(require("./RequiredConstraints"), exports);
|
|
770
781
|
__exportStar(require("./ResourceAccessInfo"), exports);
|
|
771
782
|
__exportStar(require("./ResourceAccessInfoRole"), exports);
|
|
772
783
|
__exportStar(require("./ResourceMetadataResponseModel"), exports);
|
|
@@ -873,6 +884,8 @@ __exportStar(require("./StartPvcVoiceTrainingResponseModel"), exports);
|
|
|
873
884
|
__exportStar(require("./StartSpeakerSeparationResponseModel"), exports);
|
|
874
885
|
__exportStar(require("./StreamingAudioChunkWithTimestampsAndVoiceSegmentsResponseModel"), exports);
|
|
875
886
|
__exportStar(require("./StreamingAudioChunkWithTimestampsResponse"), exports);
|
|
887
|
+
__exportStar(require("./StudioAgentSettingsModel"), exports);
|
|
888
|
+
__exportStar(require("./StudioAgentToolSettingsModel"), exports);
|
|
876
889
|
__exportStar(require("./StudioClipReference"), exports);
|
|
877
890
|
__exportStar(require("./StudioClipReferenceClipType"), exports);
|
|
878
891
|
__exportStar(require("./Subscription"), exports);
|
|
@@ -885,6 +898,7 @@ __exportStar(require("./SystemToolConfigInput"), exports);
|
|
|
885
898
|
__exportStar(require("./SystemToolConfigInputParams"), exports);
|
|
886
899
|
__exportStar(require("./SystemToolConfigOutput"), exports);
|
|
887
900
|
__exportStar(require("./SystemToolConfigOutputParams"), exports);
|
|
901
|
+
__exportStar(require("./TelephonyCallConfig"), exports);
|
|
888
902
|
__exportStar(require("./TelephonyProvider"), exports);
|
|
889
903
|
__exportStar(require("./TestConditionRationaleCommonModel"), exports);
|
|
890
904
|
__exportStar(require("./TestConditionResultCommonModel"), exports);
|
|
@@ -968,7 +982,9 @@ __exportStar(require("./UnitTestToolCallEvaluationModelOutput"), exports);
|
|
|
968
982
|
__exportStar(require("./UnitTestToolCallParameter"), exports);
|
|
969
983
|
__exportStar(require("./UnitTestToolCallParameterEval"), exports);
|
|
970
984
|
__exportStar(require("./UnitTestWorkflowNodeTransitionEvaluationNodeId"), exports);
|
|
985
|
+
__exportStar(require("./UpdateAssetParams"), exports);
|
|
971
986
|
__exportStar(require("./UpdateAudioNativeProjectRequest"), exports);
|
|
987
|
+
__exportStar(require("./UpdateCalendarEventParams"), exports);
|
|
972
988
|
__exportStar(require("./UpdateChapterRequest"), exports);
|
|
973
989
|
__exportStar(require("./UpdateClientParams"), exports);
|
|
974
990
|
__exportStar(require("./UpdateProductParams"), exports);
|
|
@@ -1016,6 +1032,7 @@ __exportStar(require("./VoiceSharingModerationCheckResponseModel"), exports);
|
|
|
1016
1032
|
__exportStar(require("./VoiceSharingResponse"), exports);
|
|
1017
1033
|
__exportStar(require("./VoiceSharingResponseModelCategory"), exports);
|
|
1018
1034
|
__exportStar(require("./VoiceSharingState"), exports);
|
|
1035
|
+
__exportStar(require("./VoiceStatisticsResponseModel"), exports);
|
|
1019
1036
|
__exportStar(require("./VoiceVerificationResponse"), exports);
|
|
1020
1037
|
__exportStar(require("./WebhookAuthMethodType"), exports);
|
|
1021
1038
|
__exportStar(require("./WebhookEventType"), exports);
|
package/dist/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": "v2.
|
|
45
|
-
"User-Agent": "@elevenlabs/elevenlabs-js/v2.
|
|
44
|
+
"X-Fern-SDK-Version": "v2.38.0",
|
|
45
|
+
"User-Agent": "@elevenlabs/elevenlabs-js/v2.38.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,
|
|
@@ -44,6 +44,7 @@ export declare class AgentsClient {
|
|
|
44
44
|
*
|
|
45
45
|
* @example
|
|
46
46
|
* await client.conversationalAi.agents.create({
|
|
47
|
+
* enableVersioning: true,
|
|
47
48
|
* conversationConfig: {}
|
|
48
49
|
* })
|
|
49
50
|
*/
|
|
@@ -90,6 +91,7 @@ export declare class AgentsClient {
|
|
|
90
91
|
*
|
|
91
92
|
* @example
|
|
92
93
|
* await client.conversationalAi.agents.update("agent_3701k3ttaq12ewp8b7qv5rfyszkz", {
|
|
94
|
+
* enableVersioningIfNotEnabled: true,
|
|
93
95
|
* branchId: "branch_id"
|
|
94
96
|
* })
|
|
95
97
|
*/
|
|
@@ -117,6 +117,7 @@ class AgentsClient {
|
|
|
117
117
|
*
|
|
118
118
|
* @example
|
|
119
119
|
* await client.conversationalAi.agents.create({
|
|
120
|
+
* enableVersioning: true,
|
|
120
121
|
* conversationConfig: {}
|
|
121
122
|
* })
|
|
122
123
|
*/
|
|
@@ -126,15 +127,20 @@ class AgentsClient {
|
|
|
126
127
|
__create(request, requestOptions) {
|
|
127
128
|
return __awaiter(this, void 0, void 0, function* () {
|
|
128
129
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
130
|
+
const { enableVersioning } = request, _body = __rest(request, ["enableVersioning"]);
|
|
131
|
+
const _queryParams = {};
|
|
132
|
+
if (enableVersioning != null) {
|
|
133
|
+
_queryParams.enable_versioning = enableVersioning.toString();
|
|
134
|
+
}
|
|
129
135
|
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);
|
|
130
136
|
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
131
137
|
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/create"),
|
|
132
138
|
method: "POST",
|
|
133
139
|
headers: _headers,
|
|
134
140
|
contentType: "application/json",
|
|
135
|
-
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
141
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
136
142
|
requestType: "json",
|
|
137
|
-
body: serializers.conversationalAi.BodyCreateAgentV1ConvaiAgentsCreatePost.jsonOrThrow(
|
|
143
|
+
body: serializers.conversationalAi.BodyCreateAgentV1ConvaiAgentsCreatePost.jsonOrThrow(_body, {
|
|
138
144
|
unrecognizedObjectKeys: "strip",
|
|
139
145
|
}),
|
|
140
146
|
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,
|
|
@@ -309,6 +315,7 @@ class AgentsClient {
|
|
|
309
315
|
*
|
|
310
316
|
* @example
|
|
311
317
|
* await client.conversationalAi.agents.update("agent_3701k3ttaq12ewp8b7qv5rfyszkz", {
|
|
318
|
+
* enableVersioningIfNotEnabled: true,
|
|
312
319
|
* branchId: "branch_id"
|
|
313
320
|
* })
|
|
314
321
|
*/
|
|
@@ -318,8 +325,11 @@ class AgentsClient {
|
|
|
318
325
|
__update(agent_id_1) {
|
|
319
326
|
return __awaiter(this, arguments, void 0, function* (agent_id, request = {}, requestOptions) {
|
|
320
327
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
321
|
-
const { branchId } = request, _body = __rest(request, ["branchId"]);
|
|
328
|
+
const { enableVersioningIfNotEnabled, branchId } = request, _body = __rest(request, ["enableVersioningIfNotEnabled", "branchId"]);
|
|
322
329
|
const _queryParams = {};
|
|
330
|
+
if (enableVersioningIfNotEnabled != null) {
|
|
331
|
+
_queryParams.enable_versioning_if_not_enabled = enableVersioningIfNotEnabled.toString();
|
|
332
|
+
}
|
|
323
333
|
if (branchId != null) {
|
|
324
334
|
_queryParams.branch_id = branchId;
|
|
325
335
|
}
|
|
@@ -2,10 +2,13 @@ import type * as ElevenLabs from "../../../../../../index";
|
|
|
2
2
|
/**
|
|
3
3
|
* @example
|
|
4
4
|
* {
|
|
5
|
+
* enableVersioning: true,
|
|
5
6
|
* conversationConfig: {}
|
|
6
7
|
* }
|
|
7
8
|
*/
|
|
8
9
|
export interface BodyCreateAgentV1ConvaiAgentsCreatePost {
|
|
10
|
+
/** Enable versioning for the agent */
|
|
11
|
+
enableVersioning?: boolean;
|
|
9
12
|
/** Conversation configuration for an agent */
|
|
10
13
|
conversationConfig: ElevenLabs.ConversationalConfig;
|
|
11
14
|
/** Platform settings for the agent are all settings that aren't related to the conversation orchestration and content. */
|
package/dist/api/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.d.ts
CHANGED
|
@@ -2,10 +2,13 @@ import type * as ElevenLabs from "../../../../../../index";
|
|
|
2
2
|
/**
|
|
3
3
|
* @example
|
|
4
4
|
* {
|
|
5
|
+
* enableVersioningIfNotEnabled: true,
|
|
5
6
|
* branchId: "branch_id"
|
|
6
7
|
* }
|
|
7
8
|
*/
|
|
8
9
|
export interface UpdateAgentRequest {
|
|
10
|
+
/** Enable versioning for the agent, if not already enabled */
|
|
11
|
+
enableVersioningIfNotEnabled?: boolean;
|
|
9
12
|
/** The ID of the branch to use */
|
|
10
13
|
branchId?: string;
|
|
11
14
|
/** Conversation configuration for an agent */
|
|
@@ -12,4 +12,5 @@ export interface BodyHandleAnOutboundCallViaSipTrunkV1ConvaiSipTrunkOutboundCall
|
|
|
12
12
|
agentPhoneNumberId: string;
|
|
13
13
|
toNumber: string;
|
|
14
14
|
conversationInitiationClientData?: ElevenLabs.ConversationInitiationClientDataRequestInput;
|
|
15
|
+
telephonyCallConfig?: ElevenLabs.TelephonyCallConfig;
|
|
15
16
|
}
|
|
@@ -401,7 +401,7 @@ class TestsClient {
|
|
|
401
401
|
__list() {
|
|
402
402
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
403
403
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
404
|
-
const { cursor, pageSize, search, parentFolderId, includeFolders, sortMode } = request;
|
|
404
|
+
const { cursor, pageSize, search, parentFolderId, types, includeFolders, sortMode } = request;
|
|
405
405
|
const _queryParams = {};
|
|
406
406
|
if (cursor != null) {
|
|
407
407
|
_queryParams.cursor = cursor;
|
|
@@ -415,6 +415,14 @@ class TestsClient {
|
|
|
415
415
|
if (parentFolderId != null) {
|
|
416
416
|
_queryParams.parent_folder_id = parentFolderId;
|
|
417
417
|
}
|
|
418
|
+
if (types != null) {
|
|
419
|
+
if (Array.isArray(types)) {
|
|
420
|
+
_queryParams.types = types.map((item) => serializers.TestType.jsonOrThrow(item, { unrecognizedObjectKeys: "strip" }));
|
|
421
|
+
}
|
|
422
|
+
else {
|
|
423
|
+
_queryParams.types = serializers.TestType.jsonOrThrow(types, { unrecognizedObjectKeys: "strip" });
|
|
424
|
+
}
|
|
425
|
+
}
|
|
418
426
|
if (includeFolders != null) {
|
|
419
427
|
_queryParams.include_folders = includeFolders.toString();
|
|
420
428
|
}
|
package/dist/api/resources/conversationalAi/resources/tests/client/requests/TestsListRequest.d.ts
CHANGED
|
@@ -19,7 +19,9 @@ export interface TestsListRequest {
|
|
|
19
19
|
search?: string;
|
|
20
20
|
/** Filter by parent folder ID. Use 'root' to get items in the root folder. */
|
|
21
21
|
parentFolderId?: string;
|
|
22
|
-
/**
|
|
22
|
+
/** If present, the endpoint will return only tests/folders of the given types. */
|
|
23
|
+
types?: ElevenLabs.TestType | ElevenLabs.TestType[];
|
|
24
|
+
/** Deprecated. Use the `types` query param and include `folder` instead. */
|
|
23
25
|
includeFolders?: boolean;
|
|
24
26
|
/** Sort mode for listing tests. Use 'folders_first' to place folders before tests. */
|
|
25
27
|
sortMode?: ElevenLabs.conversationalAi.TestsListRequestSortMode;
|
|
@@ -14,4 +14,5 @@ export interface BodyHandleAnOutboundCallViaTwilioV1ConvaiTwilioOutboundCallPost
|
|
|
14
14
|
conversationInitiationClientData?: ElevenLabs.ConversationInitiationClientDataRequestInput;
|
|
15
15
|
/** Whether let Twilio record the call. */
|
|
16
16
|
callRecordingEnabled?: boolean;
|
|
17
|
+
telephonyCallConfig?: ElevenLabs.TelephonyCallConfig;
|
|
17
18
|
}
|
|
@@ -31,6 +31,22 @@ export declare class MusicClient {
|
|
|
31
31
|
*/
|
|
32
32
|
stream(request?: ElevenLabs.BodyStreamComposedMusicV1MusicStreamPost, requestOptions?: MusicClient.RequestOptions): core.HttpResponsePromise<ReadableStream<Uint8Array>>;
|
|
33
33
|
private __stream;
|
|
34
|
+
/**
|
|
35
|
+
* Upload a music file to be later used for inpainting. Only available to enterprise clients with access to the inpainting feature.
|
|
36
|
+
*
|
|
37
|
+
* @param {ElevenLabs.BodyUploadMusicV1MusicUploadPost} request
|
|
38
|
+
* @param {MusicClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
39
|
+
*
|
|
40
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* import { createReadStream } from "fs";
|
|
44
|
+
* await client.music.upload({
|
|
45
|
+
* file: fs.createReadStream("/path/to/your/file")
|
|
46
|
+
* })
|
|
47
|
+
*/
|
|
48
|
+
upload(request: ElevenLabs.BodyUploadMusicV1MusicUploadPost, requestOptions?: MusicClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.MusicUploadResponse>;
|
|
49
|
+
private __upload;
|
|
34
50
|
/**
|
|
35
51
|
* Separate an audio file into individual stems. This endpoint might have high latency, depending on the length of the audio file.
|
|
36
52
|
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
@@ -244,6 +244,78 @@ class MusicClient {
|
|
|
244
244
|
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/music/stream");
|
|
245
245
|
});
|
|
246
246
|
}
|
|
247
|
+
/**
|
|
248
|
+
* Upload a music file to be later used for inpainting. Only available to enterprise clients with access to the inpainting feature.
|
|
249
|
+
*
|
|
250
|
+
* @param {ElevenLabs.BodyUploadMusicV1MusicUploadPost} request
|
|
251
|
+
* @param {MusicClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
252
|
+
*
|
|
253
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
254
|
+
*
|
|
255
|
+
* @example
|
|
256
|
+
* import { createReadStream } from "fs";
|
|
257
|
+
* await client.music.upload({
|
|
258
|
+
* file: fs.createReadStream("/path/to/your/file")
|
|
259
|
+
* })
|
|
260
|
+
*/
|
|
261
|
+
upload(request, requestOptions) {
|
|
262
|
+
return core.HttpResponsePromise.fromPromise(this.__upload(request, requestOptions));
|
|
263
|
+
}
|
|
264
|
+
__upload(request, requestOptions) {
|
|
265
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
266
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
267
|
+
const _request = yield core.newFormData();
|
|
268
|
+
yield _request.appendFile("file", request.file);
|
|
269
|
+
if (request.extractCompositionPlan != null) {
|
|
270
|
+
_request.append("extract_composition_plan", request.extractCompositionPlan.toString());
|
|
271
|
+
}
|
|
272
|
+
const _maybeEncodedRequest = yield _request.getRequest();
|
|
273
|
+
const _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)(Object.assign({ "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 }, _maybeEncodedRequest.headers)), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
274
|
+
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
275
|
+
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/music/upload"),
|
|
276
|
+
method: "POST",
|
|
277
|
+
headers: _headers,
|
|
278
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
279
|
+
requestType: "file",
|
|
280
|
+
duplex: _maybeEncodedRequest.duplex,
|
|
281
|
+
body: _maybeEncodedRequest.body,
|
|
282
|
+
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,
|
|
283
|
+
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,
|
|
284
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
285
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
286
|
+
logging: this._options.logging,
|
|
287
|
+
});
|
|
288
|
+
if (_response.ok) {
|
|
289
|
+
return {
|
|
290
|
+
data: serializers.MusicUploadResponse.parseOrThrow(_response.body, {
|
|
291
|
+
unrecognizedObjectKeys: "passthrough",
|
|
292
|
+
allowUnrecognizedUnionMembers: true,
|
|
293
|
+
allowUnrecognizedEnumValues: true,
|
|
294
|
+
breadcrumbsPrefix: ["response"],
|
|
295
|
+
}),
|
|
296
|
+
rawResponse: _response.rawResponse,
|
|
297
|
+
};
|
|
298
|
+
}
|
|
299
|
+
if (_response.error.reason === "status-code") {
|
|
300
|
+
switch (_response.error.statusCode) {
|
|
301
|
+
case 422:
|
|
302
|
+
throw new ElevenLabs.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
303
|
+
unrecognizedObjectKeys: "passthrough",
|
|
304
|
+
allowUnrecognizedUnionMembers: true,
|
|
305
|
+
allowUnrecognizedEnumValues: true,
|
|
306
|
+
breadcrumbsPrefix: ["response"],
|
|
307
|
+
}), _response.rawResponse);
|
|
308
|
+
default:
|
|
309
|
+
throw new errors.ElevenLabsError({
|
|
310
|
+
statusCode: _response.error.statusCode,
|
|
311
|
+
body: _response.error.body,
|
|
312
|
+
rawResponse: _response.rawResponse,
|
|
313
|
+
});
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/music/upload");
|
|
317
|
+
});
|
|
318
|
+
}
|
|
247
319
|
/**
|
|
248
320
|
* Separate an audio file into individual stems. This endpoint might have high latency, depending on the length of the audio file.
|
|
249
321
|
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
@@ -20,7 +20,7 @@ export interface BodyComposeMusicV1MusicPost {
|
|
|
20
20
|
forceInstrumental?: boolean;
|
|
21
21
|
/** Controls how strictly section durations in the `composition_plan` are enforced. Only used with `composition_plan`. When set to true, the model will precisely respect each section's `duration_ms` from the plan. When set to false, the model may adjust individual section durations which will generally lead to better generation quality and improved latency, while always preserving the total song duration from the plan. */
|
|
22
22
|
respectSectionsDurations?: boolean;
|
|
23
|
-
/** Whether to store the generated song for inpainting. Only available to enterprise clients with access to the inpainting
|
|
23
|
+
/** Whether to store the generated song for inpainting. Only available to enterprise clients with access to the inpainting feature. */
|
|
24
24
|
storeForInpainting?: boolean;
|
|
25
25
|
/** Whether to sign the generated song with C2PA. Applicable only for mp3 files. */
|
|
26
26
|
signWithC2Pa?: boolean;
|
|
@@ -18,7 +18,7 @@ export interface BodyComposeMusicWithADetailedResponseV1MusicDetailedPost {
|
|
|
18
18
|
seed?: number;
|
|
19
19
|
/** If true, guarantees that the generated song will be instrumental. If false, the song may or may not be instrumental depending on the `prompt`. Can only be used with `prompt`. */
|
|
20
20
|
forceInstrumental?: boolean;
|
|
21
|
-
/** Whether to store the generated song for inpainting. Only available to enterprise clients with access to the inpainting
|
|
21
|
+
/** Whether to store the generated song for inpainting. Only available to enterprise clients with access to the inpainting feature. */
|
|
22
22
|
storeForInpainting?: boolean;
|
|
23
23
|
/** Whether to return the timestamps of the words in the generated song. */
|
|
24
24
|
withTimestamps?: boolean;
|
package/dist/api/resources/music/client/requests/BodyStreamComposedMusicV1MusicStreamPost.d.ts
CHANGED
|
@@ -18,6 +18,6 @@ export interface BodyStreamComposedMusicV1MusicStreamPost {
|
|
|
18
18
|
seed?: number;
|
|
19
19
|
/** If true, guarantees that the generated song will be instrumental. If false, the song may or may not be instrumental depending on the `prompt`. Can only be used with `prompt`. */
|
|
20
20
|
forceInstrumental?: boolean;
|
|
21
|
-
/** Whether to store the generated song for inpainting. Only available to enterprise clients with access to the inpainting
|
|
21
|
+
/** Whether to store the generated song for inpainting. Only available to enterprise clients with access to the inpainting feature. */
|
|
22
22
|
storeForInpainting?: boolean;
|
|
23
23
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type * as core from "../../../../../core";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* file: fs.createReadStream("/path/to/your/file")
|
|
6
|
+
* }
|
|
7
|
+
*/
|
|
8
|
+
export interface BodyUploadMusicV1MusicUploadPost {
|
|
9
|
+
/** The audio file to upload. */
|
|
10
|
+
file: core.file.Uploadable;
|
|
11
|
+
/** Whether to generate and return the composition plan for the uploaded song. If True, the response will include the composition_plan but will increase the latency. */
|
|
12
|
+
extractCompositionPlan?: boolean;
|
|
13
|
+
}
|
|
@@ -2,3 +2,4 @@ export type { BodyComposeMusicV1MusicPost } from "./BodyComposeMusicV1MusicPost"
|
|
|
2
2
|
export type { BodyComposeMusicWithADetailedResponseV1MusicDetailedPost } from "./BodyComposeMusicWithADetailedResponseV1MusicDetailedPost";
|
|
3
3
|
export type { BodyStemSeparationV1MusicStemSeparationPost } from "./BodyStemSeparationV1MusicStemSeparationPost";
|
|
4
4
|
export type { BodyStreamComposedMusicV1MusicStreamPost } from "./BodyStreamComposedMusicV1MusicStreamPost";
|
|
5
|
+
export type { BodyUploadMusicV1MusicUploadPost } from "./BodyUploadMusicV1MusicUploadPost";
|
|
@@ -10,6 +10,28 @@ export declare namespace RulesClient {
|
|
|
10
10
|
export declare class RulesClient {
|
|
11
11
|
protected readonly _options: NormalizedClientOptions<RulesClient.Options>;
|
|
12
12
|
constructor(options?: RulesClient.Options);
|
|
13
|
+
/**
|
|
14
|
+
* Replaces all existing rules on the pronunciation dictionary with the provided ones.
|
|
15
|
+
*
|
|
16
|
+
* @param {string} pronunciation_dictionary_id - The id of the pronunciation dictionary
|
|
17
|
+
* @param {ElevenLabs.pronunciationDictionaries.BodySetRulesOnThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdSetRulesPost} request
|
|
18
|
+
* @param {RulesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
19
|
+
*
|
|
20
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* await client.pronunciationDictionaries.rules.set("21m00Tcm4TlvDq8ikWAM", {
|
|
24
|
+
* rules: [{
|
|
25
|
+
* type: "alias",
|
|
26
|
+
* stringToReplace: "Thailand",
|
|
27
|
+
* caseSensitive: true,
|
|
28
|
+
* wordBoundaries: true,
|
|
29
|
+
* alias: "tie-land"
|
|
30
|
+
* }]
|
|
31
|
+
* })
|
|
32
|
+
*/
|
|
33
|
+
set(pronunciation_dictionary_id: string, request: ElevenLabs.pronunciationDictionaries.BodySetRulesOnThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdSetRulesPost, requestOptions?: RulesClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.PronunciationDictionaryRulesResponseModel>;
|
|
34
|
+
private __set;
|
|
13
35
|
/**
|
|
14
36
|
* Add rules to the pronunciation dictionary. If a rule with the same string_to_replace already exists, it will be replaced.
|
|
15
37
|
*
|
|
@@ -56,6 +56,78 @@ class RulesClient {
|
|
|
56
56
|
constructor(options = {}) {
|
|
57
57
|
this._options = (0, BaseClient_1.normalizeClientOptions)(options);
|
|
58
58
|
}
|
|
59
|
+
/**
|
|
60
|
+
* Replaces all existing rules on the pronunciation dictionary with the provided ones.
|
|
61
|
+
*
|
|
62
|
+
* @param {string} pronunciation_dictionary_id - The id of the pronunciation dictionary
|
|
63
|
+
* @param {ElevenLabs.pronunciationDictionaries.BodySetRulesOnThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdSetRulesPost} request
|
|
64
|
+
* @param {RulesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
65
|
+
*
|
|
66
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
67
|
+
*
|
|
68
|
+
* @example
|
|
69
|
+
* await client.pronunciationDictionaries.rules.set("21m00Tcm4TlvDq8ikWAM", {
|
|
70
|
+
* rules: [{
|
|
71
|
+
* type: "alias",
|
|
72
|
+
* stringToReplace: "Thailand",
|
|
73
|
+
* caseSensitive: true,
|
|
74
|
+
* wordBoundaries: true,
|
|
75
|
+
* alias: "tie-land"
|
|
76
|
+
* }]
|
|
77
|
+
* })
|
|
78
|
+
*/
|
|
79
|
+
set(pronunciation_dictionary_id, request, requestOptions) {
|
|
80
|
+
return core.HttpResponsePromise.fromPromise(this.__set(pronunciation_dictionary_id, request, requestOptions));
|
|
81
|
+
}
|
|
82
|
+
__set(pronunciation_dictionary_id, request, requestOptions) {
|
|
83
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
84
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
85
|
+
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);
|
|
86
|
+
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
87
|
+
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/pronunciation-dictionaries/${core.url.encodePathParam(pronunciation_dictionary_id)}/set-rules`),
|
|
88
|
+
method: "POST",
|
|
89
|
+
headers: _headers,
|
|
90
|
+
contentType: "application/json",
|
|
91
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
92
|
+
requestType: "json",
|
|
93
|
+
body: serializers.pronunciationDictionaries.BodySetRulesOnThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdSetRulesPost.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
94
|
+
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,
|
|
95
|
+
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,
|
|
96
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
97
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
98
|
+
logging: this._options.logging,
|
|
99
|
+
});
|
|
100
|
+
if (_response.ok) {
|
|
101
|
+
return {
|
|
102
|
+
data: serializers.PronunciationDictionaryRulesResponseModel.parseOrThrow(_response.body, {
|
|
103
|
+
unrecognizedObjectKeys: "passthrough",
|
|
104
|
+
allowUnrecognizedUnionMembers: true,
|
|
105
|
+
allowUnrecognizedEnumValues: true,
|
|
106
|
+
breadcrumbsPrefix: ["response"],
|
|
107
|
+
}),
|
|
108
|
+
rawResponse: _response.rawResponse,
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
if (_response.error.reason === "status-code") {
|
|
112
|
+
switch (_response.error.statusCode) {
|
|
113
|
+
case 422:
|
|
114
|
+
throw new ElevenLabs.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
115
|
+
unrecognizedObjectKeys: "passthrough",
|
|
116
|
+
allowUnrecognizedUnionMembers: true,
|
|
117
|
+
allowUnrecognizedEnumValues: true,
|
|
118
|
+
breadcrumbsPrefix: ["response"],
|
|
119
|
+
}), _response.rawResponse);
|
|
120
|
+
default:
|
|
121
|
+
throw new errors.ElevenLabsError({
|
|
122
|
+
statusCode: _response.error.statusCode,
|
|
123
|
+
body: _response.error.body,
|
|
124
|
+
rawResponse: _response.rawResponse,
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/pronunciation-dictionaries/{pronunciation_dictionary_id}/set-rules");
|
|
129
|
+
});
|
|
130
|
+
}
|
|
59
131
|
/**
|
|
60
132
|
* Add rules to the pronunciation dictionary. If a rule with the same string_to_replace already exists, it will be replaced.
|
|
61
133
|
*
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type * as ElevenLabs from "../../../../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* rules: [{
|
|
6
|
+
* type: "alias",
|
|
7
|
+
* stringToReplace: "Thailand",
|
|
8
|
+
* caseSensitive: true,
|
|
9
|
+
* wordBoundaries: true,
|
|
10
|
+
* alias: "tie-land"
|
|
11
|
+
* }]
|
|
12
|
+
* }
|
|
13
|
+
*/
|
|
14
|
+
export interface BodySetRulesOnThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdSetRulesPost {
|
|
15
|
+
/**
|
|
16
|
+
* List of pronunciation rules. Rule can be either:
|
|
17
|
+
* an alias rule: {'string_to_replace': 'a', 'type': 'alias', 'alias': 'b', }
|
|
18
|
+
* or a phoneme rule: {'string_to_replace': 'a', 'type': 'phoneme', 'phoneme': 'b', 'alphabet': 'ipa' }
|
|
19
|
+
*/
|
|
20
|
+
rules: ElevenLabs.pronunciationDictionaries.BodySetRulesOnThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdSetRulesPostRulesItem[];
|
|
21
|
+
}
|
package/dist/api/resources/pronunciationDictionaries/resources/rules/client/requests/index.d.ts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
export type { BodySetRulesOnThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdSetRulesPost } from "./BodySetRulesOnThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdSetRulesPost";
|
|
1
2
|
export type { PronunciationDictionary } from "./PronunciationDictionary";
|
|
2
3
|
export type { RemovePronunciationDictionaryRulesRequest } from "./RemovePronunciationDictionaryRulesRequest";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type * as ElevenLabs from "../../../../../index";
|
|
2
|
+
export type BodySetRulesOnThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdSetRulesPostRulesItem = ElevenLabs.pronunciationDictionaries.BodySetRulesOnThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdSetRulesPostRulesItem.Alias | ElevenLabs.pronunciationDictionaries.BodySetRulesOnThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdSetRulesPostRulesItem.Phoneme;
|
|
3
|
+
export declare namespace BodySetRulesOnThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdSetRulesPostRulesItem {
|
|
4
|
+
interface Alias extends ElevenLabs.PronunciationDictionaryAliasRuleRequestModel {
|
|
5
|
+
type: "alias";
|
|
6
|
+
}
|
|
7
|
+
interface Phoneme extends ElevenLabs.PronunciationDictionaryPhonemeRuleRequestModel {
|
|
8
|
+
type: "phoneme";
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -14,4 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./BodySetRulesOnThePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdSetRulesPostRulesItem"), exports);
|
|
17
18
|
__exportStar(require("./PronunciationDictionaryRule"), exports);
|