@elevenlabs/elevenlabs-js 2.25.0 → 2.26.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/Client.js +2 -2
- package/api/resources/conversationalAi/client/Client.d.ts +3 -0
- package/api/resources/conversationalAi/client/Client.js +31 -26
- package/api/resources/conversationalAi/resources/analytics/client/Client.d.ts +12 -0
- package/api/resources/conversationalAi/resources/analytics/client/Client.js +15 -0
- package/api/resources/conversationalAi/resources/analytics/client/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/analytics/client/index.js +2 -0
- package/api/resources/conversationalAi/resources/analytics/index.d.ts +2 -0
- package/api/resources/conversationalAi/resources/analytics/index.js +18 -0
- package/api/resources/conversationalAi/resources/analytics/resources/index.d.ts +2 -0
- package/api/resources/conversationalAi/resources/analytics/resources/index.js +41 -0
- package/api/resources/conversationalAi/resources/analytics/resources/liveCount/client/Client.d.ts +28 -0
- package/api/resources/conversationalAi/resources/analytics/resources/liveCount/client/Client.js +139 -0
- package/api/resources/conversationalAi/resources/analytics/resources/liveCount/client/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/analytics/resources/liveCount/client/index.js +17 -0
- package/api/resources/conversationalAi/resources/analytics/resources/liveCount/client/requests/LiveCountGetRequest.d.ts +10 -0
- package/api/resources/conversationalAi/resources/analytics/resources/liveCount/client/requests/LiveCountGetRequest.js +3 -0
- package/api/resources/conversationalAi/resources/analytics/resources/liveCount/client/requests/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/analytics/resources/liveCount/client/requests/index.js +2 -0
- package/api/resources/conversationalAi/resources/analytics/resources/liveCount/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/analytics/resources/liveCount/index.js +17 -0
- package/api/resources/conversationalAi/resources/conversations/client/Client.d.ts +3 -0
- package/api/resources/conversationalAi/resources/conversations/client/Client.js +13 -1
- package/api/resources/conversationalAi/resources/conversations/client/requests/ConversationsListRequest.d.ts +9 -0
- package/api/resources/conversationalAi/resources/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/index.js +2 -1
- package/api/resources/dubbing/client/requests/BodyDubAVideoOrAnAudioFileV1DubbingPost.d.ts +2 -2
- package/api/resources/dubbing/resources/resource/client/Client.d.ts +17 -0
- package/api/resources/dubbing/resources/resource/client/Client.js +81 -0
- package/api/resources/dubbing/resources/resource/client/requests/BodyMoveSegmentsBetweenSpeakersV1DubbingResourceDubbingIdMigrateSegmentsPost.d.ts +11 -0
- package/api/resources/dubbing/resources/resource/client/requests/BodyMoveSegmentsBetweenSpeakersV1DubbingResourceDubbingIdMigrateSegmentsPost.js +3 -0
- package/api/resources/dubbing/resources/resource/client/requests/index.d.ts +1 -0
- package/api/resources/dubbing/resources/resource/resources/speaker/client/Client.d.ts +12 -0
- package/api/resources/dubbing/resources/resource/resources/speaker/client/Client.js +76 -0
- package/api/resources/dubbing/resources/resource/resources/speaker/client/requests/BodyCreateANewSpeakerV1DubbingResourceDubbingIdSpeakerPost.d.ts +10 -0
- package/api/resources/dubbing/resources/resource/resources/speaker/client/requests/BodyCreateANewSpeakerV1DubbingResourceDubbingIdSpeakerPost.js +3 -0
- package/api/resources/dubbing/resources/resource/resources/speaker/client/requests/BodyUpdateMetadataForASpeakerV1DubbingResourceDubbingIdSpeakerSpeakerIdPatch.d.ts +2 -0
- package/api/resources/dubbing/resources/resource/resources/speaker/client/requests/index.d.ts +1 -0
- package/api/resources/studio/resources/projects/client/Client.js +5 -0
- package/api/resources/studio/resources/projects/client/requests/BodyCreateStudioProjectV1StudioProjectsPost.d.ts +2 -0
- package/api/resources/studio/resources/projects/types/ProjectsCreateRequestSourceType.d.ts +1 -0
- package/api/resources/studio/resources/projects/types/ProjectsCreateRequestSourceType.js +1 -0
- package/api/resources/webhooks/client/Client.d.ts +49 -0
- package/api/resources/webhooks/client/Client.js +242 -0
- package/api/resources/webhooks/client/requests/BodyCreateWorkspaceWebhookV1WorkspaceWebhooksPost.d.ts +15 -0
- package/api/resources/webhooks/client/requests/BodyCreateWorkspaceWebhookV1WorkspaceWebhooksPost.js +3 -0
- package/api/resources/webhooks/client/requests/BodyUpdateWorkspaceWebhookV1WorkspaceWebhooksWebhookIdPatch.d.ts +13 -0
- package/api/resources/webhooks/client/requests/BodyUpdateWorkspaceWebhookV1WorkspaceWebhooksWebhookIdPatch.js +3 -0
- package/api/resources/webhooks/client/requests/index.d.ts +2 -0
- package/api/types/AgentDefinitionSource.d.ts +1 -0
- package/api/types/AgentDefinitionSource.js +1 -0
- package/api/types/AgentWorkflowRequestModel.d.ts +2 -0
- package/api/types/AgentWorkflowResponseModel.d.ts +2 -0
- package/api/types/ClientEvent.d.ts +1 -0
- package/api/types/ClientEvent.js +1 -0
- package/api/types/ConversationHistoryMetadataCommonModel.d.ts +1 -0
- package/api/types/CustomLlm.d.ts +2 -0
- package/api/types/CustomLlmapiType.d.ts +5 -0
- package/api/types/CustomLlmapiType.js +8 -0
- package/api/types/DeleteWorkspaceWebhookResponseModel.d.ts +4 -0
- package/api/types/DeleteWorkspaceWebhookResponseModel.js +3 -0
- package/api/types/DubbingTranscriptUtterance.d.ts +2 -1
- package/api/types/DubbingTranscriptWord.d.ts +2 -2
- package/api/types/ExtendedSubscriptionResponseModelBillingPeriod.d.ts +2 -0
- package/api/types/ExtendedSubscriptionResponseModelBillingPeriod.js +2 -0
- package/api/types/ExtendedSubscriptionResponseModelCharacterRefreshPeriod.d.ts +2 -0
- package/api/types/ExtendedSubscriptionResponseModelCharacterRefreshPeriod.js +2 -0
- package/api/types/GetLiveCountResponse.d.ts +4 -0
- package/api/types/GetLiveCountResponse.js +3 -0
- package/api/types/MusicPrompt.d.ts +2 -2
- package/api/types/PatchWorkspaceWebhookResponseModel.d.ts +4 -0
- package/api/types/PatchWorkspaceWebhookResponseModel.js +3 -0
- package/api/types/PendingSubscriptionSwitchResponseModelNextBillingPeriod.d.ts +2 -0
- package/api/types/PendingSubscriptionSwitchResponseModelNextBillingPeriod.js +2 -0
- package/api/types/ProjectExtendedResponseModelSourceType.d.ts +1 -0
- package/api/types/ProjectExtendedResponseModelSourceType.js +1 -0
- package/api/types/ProjectResponseModelSourceType.d.ts +1 -0
- package/api/types/ProjectResponseModelSourceType.js +1 -0
- package/api/types/SegmentMigrationResponse.d.ts +3 -0
- package/api/types/SegmentMigrationResponse.js +3 -0
- package/api/types/SongSection.d.ts +2 -2
- package/api/types/SpeakerCreatedResponse.d.ts +4 -0
- package/api/types/SpeakerCreatedResponse.js +3 -0
- package/api/types/SubscriptionResponseModelBillingPeriod.d.ts +2 -0
- package/api/types/SubscriptionResponseModelBillingPeriod.js +2 -0
- package/api/types/SubscriptionResponseModelCharacterRefreshPeriod.d.ts +2 -0
- package/api/types/SubscriptionResponseModelCharacterRefreshPeriod.js +2 -0
- package/api/types/TtsConversationalConfigInput.d.ts +0 -2
- package/api/types/TtsConversationalConfigOutput.d.ts +0 -2
- package/api/types/TtsConversationalConfigWorkflowOverrideInput.d.ts +0 -2
- package/api/types/TtsConversationalConfigWorkflowOverrideOutput.d.ts +0 -2
- package/api/types/WebhookHmacSettings.d.ts +11 -0
- package/api/types/WebhookHmacSettings.js +3 -0
- package/api/types/WebhookToolApiSchemaConfigInput.d.ts +2 -5
- package/api/types/WebhookToolApiSchemaConfigOutput.d.ts +2 -5
- package/api/types/WidgetTextContents.d.ts +14 -0
- package/api/types/WorkspaceCreateWebhookResponseModel.d.ts +4 -0
- package/api/types/WorkspaceCreateWebhookResponseModel.js +3 -0
- package/api/types/index.d.ts +8 -0
- package/api/types/index.js +8 -0
- package/dist/Client.js +2 -2
- package/dist/api/resources/conversationalAi/client/Client.d.ts +3 -0
- package/dist/api/resources/conversationalAi/client/Client.js +31 -26
- package/dist/api/resources/conversationalAi/resources/analytics/client/Client.d.ts +12 -0
- package/dist/api/resources/conversationalAi/resources/analytics/client/Client.js +15 -0
- package/dist/api/resources/conversationalAi/resources/analytics/client/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/analytics/client/index.js +2 -0
- package/dist/api/resources/conversationalAi/resources/analytics/index.d.ts +2 -0
- package/dist/api/resources/conversationalAi/resources/analytics/index.js +18 -0
- package/dist/api/resources/conversationalAi/resources/analytics/resources/index.d.ts +2 -0
- package/dist/api/resources/conversationalAi/resources/analytics/resources/index.js +41 -0
- package/dist/api/resources/conversationalAi/resources/analytics/resources/liveCount/client/Client.d.ts +28 -0
- package/dist/api/resources/conversationalAi/resources/analytics/resources/liveCount/client/Client.js +139 -0
- package/dist/api/resources/conversationalAi/resources/analytics/resources/liveCount/client/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/analytics/resources/liveCount/client/index.js +17 -0
- package/dist/api/resources/conversationalAi/resources/analytics/resources/liveCount/client/requests/LiveCountGetRequest.d.ts +10 -0
- package/dist/api/resources/conversationalAi/resources/analytics/resources/liveCount/client/requests/LiveCountGetRequest.js +3 -0
- package/dist/api/resources/conversationalAi/resources/analytics/resources/liveCount/client/requests/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/analytics/resources/liveCount/client/requests/index.js +2 -0
- package/dist/api/resources/conversationalAi/resources/analytics/resources/liveCount/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/analytics/resources/liveCount/index.js +17 -0
- package/dist/api/resources/conversationalAi/resources/conversations/client/Client.d.ts +3 -0
- package/dist/api/resources/conversationalAi/resources/conversations/client/Client.js +13 -1
- package/dist/api/resources/conversationalAi/resources/conversations/client/requests/ConversationsListRequest.d.ts +9 -0
- package/dist/api/resources/conversationalAi/resources/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/index.js +2 -1
- package/dist/api/resources/dubbing/client/requests/BodyDubAVideoOrAnAudioFileV1DubbingPost.d.ts +2 -2
- package/dist/api/resources/dubbing/resources/resource/client/Client.d.ts +17 -0
- package/dist/api/resources/dubbing/resources/resource/client/Client.js +81 -0
- package/dist/api/resources/dubbing/resources/resource/client/requests/BodyMoveSegmentsBetweenSpeakersV1DubbingResourceDubbingIdMigrateSegmentsPost.d.ts +11 -0
- package/dist/api/resources/dubbing/resources/resource/client/requests/BodyMoveSegmentsBetweenSpeakersV1DubbingResourceDubbingIdMigrateSegmentsPost.js +3 -0
- package/dist/api/resources/dubbing/resources/resource/client/requests/index.d.ts +1 -0
- package/dist/api/resources/dubbing/resources/resource/resources/speaker/client/Client.d.ts +12 -0
- package/dist/api/resources/dubbing/resources/resource/resources/speaker/client/Client.js +76 -0
- package/dist/api/resources/dubbing/resources/resource/resources/speaker/client/requests/BodyCreateANewSpeakerV1DubbingResourceDubbingIdSpeakerPost.d.ts +10 -0
- package/dist/api/resources/dubbing/resources/resource/resources/speaker/client/requests/BodyCreateANewSpeakerV1DubbingResourceDubbingIdSpeakerPost.js +3 -0
- package/dist/api/resources/dubbing/resources/resource/resources/speaker/client/requests/BodyUpdateMetadataForASpeakerV1DubbingResourceDubbingIdSpeakerSpeakerIdPatch.d.ts +2 -0
- package/dist/api/resources/dubbing/resources/resource/resources/speaker/client/requests/index.d.ts +1 -0
- package/dist/api/resources/studio/resources/projects/client/Client.js +5 -0
- package/dist/api/resources/studio/resources/projects/client/requests/BodyCreateStudioProjectV1StudioProjectsPost.d.ts +2 -0
- package/dist/api/resources/studio/resources/projects/types/ProjectsCreateRequestSourceType.d.ts +1 -0
- package/dist/api/resources/studio/resources/projects/types/ProjectsCreateRequestSourceType.js +1 -0
- package/dist/api/resources/webhooks/client/Client.d.ts +49 -0
- package/dist/api/resources/webhooks/client/Client.js +242 -0
- package/dist/api/resources/webhooks/client/requests/BodyCreateWorkspaceWebhookV1WorkspaceWebhooksPost.d.ts +15 -0
- package/dist/api/resources/webhooks/client/requests/BodyCreateWorkspaceWebhookV1WorkspaceWebhooksPost.js +3 -0
- package/dist/api/resources/webhooks/client/requests/BodyUpdateWorkspaceWebhookV1WorkspaceWebhooksWebhookIdPatch.d.ts +13 -0
- package/dist/api/resources/webhooks/client/requests/BodyUpdateWorkspaceWebhookV1WorkspaceWebhooksWebhookIdPatch.js +3 -0
- package/dist/api/resources/webhooks/client/requests/index.d.ts +2 -0
- package/dist/api/types/AgentDefinitionSource.d.ts +1 -0
- package/dist/api/types/AgentDefinitionSource.js +1 -0
- package/dist/api/types/AgentWorkflowRequestModel.d.ts +2 -0
- package/dist/api/types/AgentWorkflowResponseModel.d.ts +2 -0
- package/dist/api/types/ClientEvent.d.ts +1 -0
- package/dist/api/types/ClientEvent.js +1 -0
- package/dist/api/types/ConversationHistoryMetadataCommonModel.d.ts +1 -0
- package/dist/api/types/CustomLlm.d.ts +2 -0
- package/dist/api/types/CustomLlmapiType.d.ts +5 -0
- package/dist/api/types/CustomLlmapiType.js +8 -0
- package/dist/api/types/DeleteWorkspaceWebhookResponseModel.d.ts +4 -0
- package/dist/api/types/DeleteWorkspaceWebhookResponseModel.js +3 -0
- package/dist/api/types/DubbingTranscriptUtterance.d.ts +2 -1
- package/dist/api/types/DubbingTranscriptWord.d.ts +2 -2
- package/dist/api/types/ExtendedSubscriptionResponseModelBillingPeriod.d.ts +2 -0
- package/dist/api/types/ExtendedSubscriptionResponseModelBillingPeriod.js +2 -0
- package/dist/api/types/ExtendedSubscriptionResponseModelCharacterRefreshPeriod.d.ts +2 -0
- package/dist/api/types/ExtendedSubscriptionResponseModelCharacterRefreshPeriod.js +2 -0
- package/dist/api/types/GetLiveCountResponse.d.ts +4 -0
- package/dist/api/types/GetLiveCountResponse.js +3 -0
- package/dist/api/types/MusicPrompt.d.ts +2 -2
- package/dist/api/types/PatchWorkspaceWebhookResponseModel.d.ts +4 -0
- package/dist/api/types/PatchWorkspaceWebhookResponseModel.js +3 -0
- package/dist/api/types/PendingSubscriptionSwitchResponseModelNextBillingPeriod.d.ts +2 -0
- package/dist/api/types/PendingSubscriptionSwitchResponseModelNextBillingPeriod.js +2 -0
- package/dist/api/types/ProjectExtendedResponseModelSourceType.d.ts +1 -0
- package/dist/api/types/ProjectExtendedResponseModelSourceType.js +1 -0
- package/dist/api/types/ProjectResponseModelSourceType.d.ts +1 -0
- package/dist/api/types/ProjectResponseModelSourceType.js +1 -0
- package/dist/api/types/SegmentMigrationResponse.d.ts +3 -0
- package/dist/api/types/SegmentMigrationResponse.js +3 -0
- package/dist/api/types/SongSection.d.ts +2 -2
- package/dist/api/types/SpeakerCreatedResponse.d.ts +4 -0
- package/dist/api/types/SpeakerCreatedResponse.js +3 -0
- package/dist/api/types/SubscriptionResponseModelBillingPeriod.d.ts +2 -0
- package/dist/api/types/SubscriptionResponseModelBillingPeriod.js +2 -0
- package/dist/api/types/SubscriptionResponseModelCharacterRefreshPeriod.d.ts +2 -0
- package/dist/api/types/SubscriptionResponseModelCharacterRefreshPeriod.js +2 -0
- package/dist/api/types/TtsConversationalConfigInput.d.ts +0 -2
- package/dist/api/types/TtsConversationalConfigOutput.d.ts +0 -2
- package/dist/api/types/TtsConversationalConfigWorkflowOverrideInput.d.ts +0 -2
- package/dist/api/types/TtsConversationalConfigWorkflowOverrideOutput.d.ts +0 -2
- package/dist/api/types/WebhookHmacSettings.d.ts +11 -0
- package/dist/api/types/WebhookHmacSettings.js +3 -0
- package/dist/api/types/WebhookToolApiSchemaConfigInput.d.ts +2 -5
- package/dist/api/types/WebhookToolApiSchemaConfigOutput.d.ts +2 -5
- package/dist/api/types/WidgetTextContents.d.ts +14 -0
- package/dist/api/types/WorkspaceCreateWebhookResponseModel.d.ts +4 -0
- package/dist/api/types/WorkspaceCreateWebhookResponseModel.js +3 -0
- package/dist/api/types/index.d.ts +8 -0
- package/dist/api/types/index.js +8 -0
- package/dist/serialization/resources/dubbing/resources/resource/client/requests/BodyMoveSegmentsBetweenSpeakersV1DubbingResourceDubbingIdMigrateSegmentsPost.d.ts +10 -0
- package/dist/serialization/resources/dubbing/resources/resource/client/requests/BodyMoveSegmentsBetweenSpeakersV1DubbingResourceDubbingIdMigrateSegmentsPost.js +42 -0
- package/dist/serialization/resources/dubbing/resources/resource/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/dubbing/resources/resource/client/requests/index.js +3 -1
- package/dist/serialization/resources/dubbing/resources/resource/resources/speaker/client/requests/BodyCreateANewSpeakerV1DubbingResourceDubbingIdSpeakerPost.d.ts +10 -0
- package/dist/serialization/resources/dubbing/resources/resource/resources/speaker/client/requests/BodyCreateANewSpeakerV1DubbingResourceDubbingIdSpeakerPost.js +42 -0
- package/dist/serialization/resources/dubbing/resources/resource/resources/speaker/client/requests/BodyUpdateMetadataForASpeakerV1DubbingResourceDubbingIdSpeakerSpeakerIdPatch.d.ts +1 -0
- package/dist/serialization/resources/dubbing/resources/resource/resources/speaker/client/requests/BodyUpdateMetadataForASpeakerV1DubbingResourceDubbingIdSpeakerSpeakerIdPatch.js +1 -0
- package/dist/serialization/resources/dubbing/resources/resource/resources/speaker/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/dubbing/resources/resource/resources/speaker/client/requests/index.js +3 -1
- package/dist/serialization/resources/index.d.ts +2 -0
- package/dist/serialization/resources/index.js +3 -1
- package/dist/serialization/resources/studio/resources/projects/types/ProjectsCreateRequestSourceType.d.ts +1 -1
- package/dist/serialization/resources/studio/resources/projects/types/ProjectsCreateRequestSourceType.js +1 -1
- package/dist/serialization/resources/webhooks/client/index.d.ts +1 -0
- package/dist/serialization/resources/webhooks/client/index.js +17 -0
- package/dist/serialization/resources/webhooks/client/requests/BodyCreateWorkspaceWebhookV1WorkspaceWebhooksPost.d.ts +10 -0
- package/dist/serialization/resources/webhooks/client/requests/BodyCreateWorkspaceWebhookV1WorkspaceWebhooksPost.js +42 -0
- package/dist/serialization/resources/webhooks/client/requests/BodyUpdateWorkspaceWebhookV1WorkspaceWebhooksWebhookIdPatch.d.ts +10 -0
- package/dist/serialization/resources/webhooks/client/requests/BodyUpdateWorkspaceWebhookV1WorkspaceWebhooksWebhookIdPatch.js +42 -0
- package/dist/serialization/resources/webhooks/client/requests/index.d.ts +2 -0
- package/dist/serialization/resources/webhooks/client/requests/index.js +7 -0
- package/dist/serialization/resources/webhooks/index.d.ts +1 -0
- package/dist/serialization/resources/webhooks/index.js +17 -0
- package/dist/serialization/types/AgentDefinitionSource.d.ts +1 -1
- package/dist/serialization/types/AgentDefinitionSource.js +1 -1
- package/dist/serialization/types/AgentWorkflowRequestModel.d.ts +1 -0
- package/dist/serialization/types/AgentWorkflowRequestModel.js +1 -0
- package/dist/serialization/types/AgentWorkflowResponseModel.d.ts +1 -0
- package/dist/serialization/types/AgentWorkflowResponseModel.js +1 -0
- package/dist/serialization/types/ClientEvent.d.ts +1 -1
- package/dist/serialization/types/ClientEvent.js +1 -0
- package/dist/serialization/types/ConversationHistoryMetadataCommonModel.d.ts +1 -0
- package/dist/serialization/types/ConversationHistoryMetadataCommonModel.js +1 -0
- package/dist/serialization/types/CustomLlm.d.ts +2 -0
- package/dist/serialization/types/CustomLlm.js +2 -0
- package/dist/serialization/types/CustomLlmapiType.d.ts +7 -0
- package/dist/serialization/types/CustomLlmapiType.js +39 -0
- package/dist/serialization/types/DeleteWorkspaceWebhookResponseModel.d.ts +9 -0
- package/dist/serialization/types/DeleteWorkspaceWebhookResponseModel.js +41 -0
- package/dist/serialization/types/DubbingTranscriptUtterance.d.ts +2 -1
- package/dist/serialization/types/DubbingTranscriptUtterance.js +2 -1
- package/dist/serialization/types/DubbingTranscriptWord.d.ts +2 -2
- package/dist/serialization/types/DubbingTranscriptWord.js +2 -2
- package/dist/serialization/types/ExtendedSubscriptionResponseModelBillingPeriod.d.ts +1 -1
- package/dist/serialization/types/ExtendedSubscriptionResponseModelBillingPeriod.js +1 -1
- package/dist/serialization/types/ExtendedSubscriptionResponseModelCharacterRefreshPeriod.d.ts +1 -1
- package/dist/serialization/types/ExtendedSubscriptionResponseModelCharacterRefreshPeriod.js +1 -1
- package/dist/serialization/types/GetLiveCountResponse.d.ts +9 -0
- package/dist/serialization/types/GetLiveCountResponse.js +41 -0
- package/dist/serialization/types/PatchWorkspaceWebhookResponseModel.d.ts +9 -0
- package/dist/serialization/types/PatchWorkspaceWebhookResponseModel.js +41 -0
- package/dist/serialization/types/PendingSubscriptionSwitchResponseModelNextBillingPeriod.d.ts +1 -1
- package/dist/serialization/types/PendingSubscriptionSwitchResponseModelNextBillingPeriod.js +1 -1
- package/dist/serialization/types/ProjectExtendedResponseModelSourceType.d.ts +1 -1
- package/dist/serialization/types/ProjectExtendedResponseModelSourceType.js +1 -1
- package/dist/serialization/types/ProjectResponseModelSourceType.d.ts +1 -1
- package/dist/serialization/types/ProjectResponseModelSourceType.js +1 -1
- package/dist/serialization/types/SegmentMigrationResponse.d.ts +9 -0
- package/dist/serialization/types/SegmentMigrationResponse.js +41 -0
- package/dist/serialization/types/SpeakerCreatedResponse.d.ts +10 -0
- package/dist/serialization/types/SpeakerCreatedResponse.js +42 -0
- package/dist/serialization/types/SubscriptionResponseModelBillingPeriod.d.ts +1 -1
- package/dist/serialization/types/SubscriptionResponseModelBillingPeriod.js +1 -1
- package/dist/serialization/types/SubscriptionResponseModelCharacterRefreshPeriod.d.ts +1 -1
- package/dist/serialization/types/SubscriptionResponseModelCharacterRefreshPeriod.js +1 -1
- package/dist/serialization/types/TtsConversationalConfigInput.d.ts +0 -2
- package/dist/serialization/types/TtsConversationalConfigInput.js +0 -2
- package/dist/serialization/types/TtsConversationalConfigOutput.d.ts +0 -2
- package/dist/serialization/types/TtsConversationalConfigOutput.js +0 -2
- package/dist/serialization/types/TtsConversationalConfigWorkflowOverrideInput.d.ts +0 -2
- package/dist/serialization/types/TtsConversationalConfigWorkflowOverrideInput.js +0 -2
- package/dist/serialization/types/TtsConversationalConfigWorkflowOverrideOutput.d.ts +0 -2
- package/dist/serialization/types/TtsConversationalConfigWorkflowOverrideOutput.js +0 -2
- package/dist/serialization/types/WebhookHmacSettings.d.ts +11 -0
- package/dist/serialization/types/WebhookHmacSettings.js +43 -0
- package/dist/serialization/types/WebhookToolApiSchemaConfigInput.d.ts +1 -1
- package/dist/serialization/types/WebhookToolApiSchemaConfigInput.js +3 -3
- package/dist/serialization/types/WebhookToolApiSchemaConfigOutput.d.ts +1 -1
- package/dist/serialization/types/WebhookToolApiSchemaConfigOutput.js +3 -3
- package/dist/serialization/types/WidgetTextContents.d.ts +7 -0
- package/dist/serialization/types/WidgetTextContents.js +7 -0
- package/dist/serialization/types/WorkspaceCreateWebhookResponseModel.d.ts +10 -0
- package/dist/serialization/types/WorkspaceCreateWebhookResponseModel.js +42 -0
- package/dist/serialization/types/index.d.ts +8 -0
- package/dist/serialization/types/index.js +8 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/wrapper/music.js +34 -3
- package/dist/wrapper/realtime/connection.d.ts +110 -6
- package/dist/wrapper/realtime/connection.js +74 -2
- package/dist/wrapper/realtime/index.d.ts +1 -1
- package/package.json +1 -1
- package/reference.md +406 -0
- package/serialization/resources/dubbing/resources/resource/client/requests/BodyMoveSegmentsBetweenSpeakersV1DubbingResourceDubbingIdMigrateSegmentsPost.d.ts +10 -0
- package/serialization/resources/dubbing/resources/resource/client/requests/BodyMoveSegmentsBetweenSpeakersV1DubbingResourceDubbingIdMigrateSegmentsPost.js +42 -0
- package/serialization/resources/dubbing/resources/resource/client/requests/index.d.ts +1 -0
- package/serialization/resources/dubbing/resources/resource/client/requests/index.js +3 -1
- package/serialization/resources/dubbing/resources/resource/resources/speaker/client/requests/BodyCreateANewSpeakerV1DubbingResourceDubbingIdSpeakerPost.d.ts +10 -0
- package/serialization/resources/dubbing/resources/resource/resources/speaker/client/requests/BodyCreateANewSpeakerV1DubbingResourceDubbingIdSpeakerPost.js +42 -0
- package/serialization/resources/dubbing/resources/resource/resources/speaker/client/requests/BodyUpdateMetadataForASpeakerV1DubbingResourceDubbingIdSpeakerSpeakerIdPatch.d.ts +1 -0
- package/serialization/resources/dubbing/resources/resource/resources/speaker/client/requests/BodyUpdateMetadataForASpeakerV1DubbingResourceDubbingIdSpeakerSpeakerIdPatch.js +1 -0
- package/serialization/resources/dubbing/resources/resource/resources/speaker/client/requests/index.d.ts +1 -0
- package/serialization/resources/dubbing/resources/resource/resources/speaker/client/requests/index.js +3 -1
- package/serialization/resources/index.d.ts +2 -0
- package/serialization/resources/index.js +3 -1
- package/serialization/resources/studio/resources/projects/types/ProjectsCreateRequestSourceType.d.ts +1 -1
- package/serialization/resources/studio/resources/projects/types/ProjectsCreateRequestSourceType.js +1 -1
- package/serialization/resources/webhooks/client/index.d.ts +1 -0
- package/serialization/resources/webhooks/client/index.js +17 -0
- package/serialization/resources/webhooks/client/requests/BodyCreateWorkspaceWebhookV1WorkspaceWebhooksPost.d.ts +10 -0
- package/serialization/resources/webhooks/client/requests/BodyCreateWorkspaceWebhookV1WorkspaceWebhooksPost.js +42 -0
- package/serialization/resources/webhooks/client/requests/BodyUpdateWorkspaceWebhookV1WorkspaceWebhooksWebhookIdPatch.d.ts +10 -0
- package/serialization/resources/webhooks/client/requests/BodyUpdateWorkspaceWebhookV1WorkspaceWebhooksWebhookIdPatch.js +42 -0
- package/serialization/resources/webhooks/client/requests/index.d.ts +2 -0
- package/serialization/resources/webhooks/client/requests/index.js +7 -0
- package/serialization/resources/webhooks/index.d.ts +1 -0
- package/serialization/resources/webhooks/index.js +17 -0
- package/serialization/types/AgentDefinitionSource.d.ts +1 -1
- package/serialization/types/AgentDefinitionSource.js +1 -1
- package/serialization/types/AgentWorkflowRequestModel.d.ts +1 -0
- package/serialization/types/AgentWorkflowRequestModel.js +1 -0
- package/serialization/types/AgentWorkflowResponseModel.d.ts +1 -0
- package/serialization/types/AgentWorkflowResponseModel.js +1 -0
- package/serialization/types/ClientEvent.d.ts +1 -1
- package/serialization/types/ClientEvent.js +1 -0
- package/serialization/types/ConversationHistoryMetadataCommonModel.d.ts +1 -0
- package/serialization/types/ConversationHistoryMetadataCommonModel.js +1 -0
- package/serialization/types/CustomLlm.d.ts +2 -0
- package/serialization/types/CustomLlm.js +2 -0
- package/serialization/types/CustomLlmapiType.d.ts +7 -0
- package/serialization/types/CustomLlmapiType.js +39 -0
- package/serialization/types/DeleteWorkspaceWebhookResponseModel.d.ts +9 -0
- package/serialization/types/DeleteWorkspaceWebhookResponseModel.js +41 -0
- package/serialization/types/DubbingTranscriptUtterance.d.ts +2 -1
- package/serialization/types/DubbingTranscriptUtterance.js +2 -1
- package/serialization/types/DubbingTranscriptWord.d.ts +2 -2
- package/serialization/types/DubbingTranscriptWord.js +2 -2
- package/serialization/types/ExtendedSubscriptionResponseModelBillingPeriod.d.ts +1 -1
- package/serialization/types/ExtendedSubscriptionResponseModelBillingPeriod.js +1 -1
- package/serialization/types/ExtendedSubscriptionResponseModelCharacterRefreshPeriod.d.ts +1 -1
- package/serialization/types/ExtendedSubscriptionResponseModelCharacterRefreshPeriod.js +1 -1
- package/serialization/types/GetLiveCountResponse.d.ts +9 -0
- package/serialization/types/GetLiveCountResponse.js +41 -0
- package/serialization/types/PatchWorkspaceWebhookResponseModel.d.ts +9 -0
- package/serialization/types/PatchWorkspaceWebhookResponseModel.js +41 -0
- package/serialization/types/PendingSubscriptionSwitchResponseModelNextBillingPeriod.d.ts +1 -1
- package/serialization/types/PendingSubscriptionSwitchResponseModelNextBillingPeriod.js +1 -1
- package/serialization/types/ProjectExtendedResponseModelSourceType.d.ts +1 -1
- package/serialization/types/ProjectExtendedResponseModelSourceType.js +1 -1
- package/serialization/types/ProjectResponseModelSourceType.d.ts +1 -1
- package/serialization/types/ProjectResponseModelSourceType.js +1 -1
- package/serialization/types/SegmentMigrationResponse.d.ts +9 -0
- package/serialization/types/SegmentMigrationResponse.js +41 -0
- package/serialization/types/SpeakerCreatedResponse.d.ts +10 -0
- package/serialization/types/SpeakerCreatedResponse.js +42 -0
- package/serialization/types/SubscriptionResponseModelBillingPeriod.d.ts +1 -1
- package/serialization/types/SubscriptionResponseModelBillingPeriod.js +1 -1
- package/serialization/types/SubscriptionResponseModelCharacterRefreshPeriod.d.ts +1 -1
- package/serialization/types/SubscriptionResponseModelCharacterRefreshPeriod.js +1 -1
- package/serialization/types/TtsConversationalConfigInput.d.ts +0 -2
- package/serialization/types/TtsConversationalConfigInput.js +0 -2
- package/serialization/types/TtsConversationalConfigOutput.d.ts +0 -2
- package/serialization/types/TtsConversationalConfigOutput.js +0 -2
- package/serialization/types/TtsConversationalConfigWorkflowOverrideInput.d.ts +0 -2
- package/serialization/types/TtsConversationalConfigWorkflowOverrideInput.js +0 -2
- package/serialization/types/TtsConversationalConfigWorkflowOverrideOutput.d.ts +0 -2
- package/serialization/types/TtsConversationalConfigWorkflowOverrideOutput.js +0 -2
- package/serialization/types/WebhookHmacSettings.d.ts +11 -0
- package/serialization/types/WebhookHmacSettings.js +43 -0
- package/serialization/types/WebhookToolApiSchemaConfigInput.d.ts +1 -1
- package/serialization/types/WebhookToolApiSchemaConfigInput.js +3 -3
- package/serialization/types/WebhookToolApiSchemaConfigOutput.d.ts +1 -1
- package/serialization/types/WebhookToolApiSchemaConfigOutput.js +3 -3
- package/serialization/types/WidgetTextContents.d.ts +7 -0
- package/serialization/types/WidgetTextContents.js +7 -0
- package/serialization/types/WorkspaceCreateWebhookResponseModel.d.ts +10 -0
- package/serialization/types/WorkspaceCreateWebhookResponseModel.js +42 -0
- package/serialization/types/index.d.ts +8 -0
- package/serialization/types/index.js +8 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/wrapper/music.js +34 -3
- package/wrapper/realtime/connection.d.ts +110 -6
- package/wrapper/realtime/connection.js +74 -2
- package/wrapper/realtime/index.d.ts +1 -1
package/Client.js
CHANGED
|
@@ -78,8 +78,8 @@ class ElevenLabsClient {
|
|
|
78
78
|
"xi-api-key": _options === null || _options === void 0 ? void 0 : _options.apiKey,
|
|
79
79
|
"X-Fern-Language": "JavaScript",
|
|
80
80
|
"X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js",
|
|
81
|
-
"X-Fern-SDK-Version": "v2.
|
|
82
|
-
"User-Agent": "@elevenlabs/elevenlabs-js/v2.
|
|
81
|
+
"X-Fern-SDK-Version": "v2.26.0",
|
|
82
|
+
"User-Agent": "@elevenlabs/elevenlabs-js/v2.26.0",
|
|
83
83
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
84
84
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
85
85
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -2,6 +2,7 @@ import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClie
|
|
|
2
2
|
import * as core from "../../../../core";
|
|
3
3
|
import * as ElevenLabs from "../../../index";
|
|
4
4
|
import { Agents } from "../resources/agents/client/Client";
|
|
5
|
+
import { Analytics } from "../resources/analytics/client/Client";
|
|
5
6
|
import { BatchCalls } from "../resources/batchCalls/client/Client";
|
|
6
7
|
import { Conversations } from "../resources/conversations/client/Client";
|
|
7
8
|
import { Dashboard } from "../resources/dashboard/client/Client";
|
|
@@ -36,6 +37,7 @@ export declare class ConversationalAi {
|
|
|
36
37
|
protected _batchCalls: BatchCalls | undefined;
|
|
37
38
|
protected _sipTrunk: SipTrunk | undefined;
|
|
38
39
|
protected _mcpServers: McpServers | undefined;
|
|
40
|
+
protected _analytics: Analytics | undefined;
|
|
39
41
|
protected _dashboard: Dashboard | undefined;
|
|
40
42
|
constructor(_options?: ConversationalAi.Options);
|
|
41
43
|
get conversations(): Conversations;
|
|
@@ -51,6 +53,7 @@ export declare class ConversationalAi {
|
|
|
51
53
|
get batchCalls(): BatchCalls;
|
|
52
54
|
get sipTrunk(): SipTrunk;
|
|
53
55
|
get mcpServers(): McpServers;
|
|
56
|
+
get analytics(): Analytics;
|
|
54
57
|
get dashboard(): Dashboard;
|
|
55
58
|
/**
|
|
56
59
|
* Upload a file or webpage URL to create a knowledge base document. <br> <Note> After creating the document, update the agent's knowledge base by calling [Update agent](/docs/api-reference/agents/update). </Note>
|
|
@@ -51,30 +51,31 @@ const errors = __importStar(require("../../../../errors/index"));
|
|
|
51
51
|
const serializers = __importStar(require("../../../../serialization/index"));
|
|
52
52
|
const ElevenLabs = __importStar(require("../../../index"));
|
|
53
53
|
const Client_1 = require("../resources/agents/client/Client");
|
|
54
|
-
const Client_2 = require("../resources/
|
|
55
|
-
const Client_3 = require("../resources/
|
|
56
|
-
const Client_4 = require("../resources/
|
|
57
|
-
const Client_5 = require("../resources/
|
|
58
|
-
const Client_6 = require("../resources/
|
|
59
|
-
const Client_7 = require("../resources/
|
|
60
|
-
const Client_8 = require("../resources/
|
|
61
|
-
const Client_9 = require("../resources/
|
|
62
|
-
const Client_10 = require("../resources/
|
|
63
|
-
const Client_11 = require("../resources/
|
|
64
|
-
const Client_12 = require("../resources/
|
|
65
|
-
const Client_13 = require("../resources/
|
|
66
|
-
const Client_14 = require("../resources/
|
|
54
|
+
const Client_2 = require("../resources/analytics/client/Client");
|
|
55
|
+
const Client_3 = require("../resources/batchCalls/client/Client");
|
|
56
|
+
const Client_4 = require("../resources/conversations/client/Client");
|
|
57
|
+
const Client_5 = require("../resources/dashboard/client/Client");
|
|
58
|
+
const Client_6 = require("../resources/knowledgeBase/client/Client");
|
|
59
|
+
const Client_7 = require("../resources/llmUsage/client/Client");
|
|
60
|
+
const Client_8 = require("../resources/mcpServers/client/Client");
|
|
61
|
+
const Client_9 = require("../resources/phoneNumbers/client/Client");
|
|
62
|
+
const Client_10 = require("../resources/secrets/client/Client");
|
|
63
|
+
const Client_11 = require("../resources/settings/client/Client");
|
|
64
|
+
const Client_12 = require("../resources/sipTrunk/client/Client");
|
|
65
|
+
const Client_13 = require("../resources/tests/client/Client");
|
|
66
|
+
const Client_14 = require("../resources/tools/client/Client");
|
|
67
|
+
const Client_15 = require("../resources/twilio/client/Client");
|
|
67
68
|
class ConversationalAi {
|
|
68
69
|
constructor(_options = {}) {
|
|
69
70
|
this._options = _options;
|
|
70
71
|
}
|
|
71
72
|
get conversations() {
|
|
72
73
|
var _a;
|
|
73
|
-
return ((_a = this._conversations) !== null && _a !== void 0 ? _a : (this._conversations = new
|
|
74
|
+
return ((_a = this._conversations) !== null && _a !== void 0 ? _a : (this._conversations = new Client_4.Conversations(this._options)));
|
|
74
75
|
}
|
|
75
76
|
get twilio() {
|
|
76
77
|
var _a;
|
|
77
|
-
return ((_a = this._twilio) !== null && _a !== void 0 ? _a : (this._twilio = new
|
|
78
|
+
return ((_a = this._twilio) !== null && _a !== void 0 ? _a : (this._twilio = new Client_15.Twilio(this._options)));
|
|
78
79
|
}
|
|
79
80
|
get agents() {
|
|
80
81
|
var _a;
|
|
@@ -82,47 +83,51 @@ class ConversationalAi {
|
|
|
82
83
|
}
|
|
83
84
|
get tests() {
|
|
84
85
|
var _a;
|
|
85
|
-
return ((_a = this._tests) !== null && _a !== void 0 ? _a : (this._tests = new
|
|
86
|
+
return ((_a = this._tests) !== null && _a !== void 0 ? _a : (this._tests = new Client_13.Tests(this._options)));
|
|
86
87
|
}
|
|
87
88
|
get phoneNumbers() {
|
|
88
89
|
var _a;
|
|
89
|
-
return ((_a = this._phoneNumbers) !== null && _a !== void 0 ? _a : (this._phoneNumbers = new
|
|
90
|
+
return ((_a = this._phoneNumbers) !== null && _a !== void 0 ? _a : (this._phoneNumbers = new Client_9.PhoneNumbers(this._options)));
|
|
90
91
|
}
|
|
91
92
|
get llmUsage() {
|
|
92
93
|
var _a;
|
|
93
|
-
return ((_a = this._llmUsage) !== null && _a !== void 0 ? _a : (this._llmUsage = new
|
|
94
|
+
return ((_a = this._llmUsage) !== null && _a !== void 0 ? _a : (this._llmUsage = new Client_7.LlmUsage(this._options)));
|
|
94
95
|
}
|
|
95
96
|
get knowledgeBase() {
|
|
96
97
|
var _a;
|
|
97
|
-
return ((_a = this._knowledgeBase) !== null && _a !== void 0 ? _a : (this._knowledgeBase = new
|
|
98
|
+
return ((_a = this._knowledgeBase) !== null && _a !== void 0 ? _a : (this._knowledgeBase = new Client_6.KnowledgeBase(this._options)));
|
|
98
99
|
}
|
|
99
100
|
get tools() {
|
|
100
101
|
var _a;
|
|
101
|
-
return ((_a = this._tools) !== null && _a !== void 0 ? _a : (this._tools = new
|
|
102
|
+
return ((_a = this._tools) !== null && _a !== void 0 ? _a : (this._tools = new Client_14.Tools(this._options)));
|
|
102
103
|
}
|
|
103
104
|
get settings() {
|
|
104
105
|
var _a;
|
|
105
|
-
return ((_a = this._settings) !== null && _a !== void 0 ? _a : (this._settings = new
|
|
106
|
+
return ((_a = this._settings) !== null && _a !== void 0 ? _a : (this._settings = new Client_11.Settings(this._options)));
|
|
106
107
|
}
|
|
107
108
|
get secrets() {
|
|
108
109
|
var _a;
|
|
109
|
-
return ((_a = this._secrets) !== null && _a !== void 0 ? _a : (this._secrets = new
|
|
110
|
+
return ((_a = this._secrets) !== null && _a !== void 0 ? _a : (this._secrets = new Client_10.Secrets(this._options)));
|
|
110
111
|
}
|
|
111
112
|
get batchCalls() {
|
|
112
113
|
var _a;
|
|
113
|
-
return ((_a = this._batchCalls) !== null && _a !== void 0 ? _a : (this._batchCalls = new
|
|
114
|
+
return ((_a = this._batchCalls) !== null && _a !== void 0 ? _a : (this._batchCalls = new Client_3.BatchCalls(this._options)));
|
|
114
115
|
}
|
|
115
116
|
get sipTrunk() {
|
|
116
117
|
var _a;
|
|
117
|
-
return ((_a = this._sipTrunk) !== null && _a !== void 0 ? _a : (this._sipTrunk = new
|
|
118
|
+
return ((_a = this._sipTrunk) !== null && _a !== void 0 ? _a : (this._sipTrunk = new Client_12.SipTrunk(this._options)));
|
|
118
119
|
}
|
|
119
120
|
get mcpServers() {
|
|
120
121
|
var _a;
|
|
121
|
-
return ((_a = this._mcpServers) !== null && _a !== void 0 ? _a : (this._mcpServers = new
|
|
122
|
+
return ((_a = this._mcpServers) !== null && _a !== void 0 ? _a : (this._mcpServers = new Client_8.McpServers(this._options)));
|
|
123
|
+
}
|
|
124
|
+
get analytics() {
|
|
125
|
+
var _a;
|
|
126
|
+
return ((_a = this._analytics) !== null && _a !== void 0 ? _a : (this._analytics = new Client_2.Analytics(this._options)));
|
|
122
127
|
}
|
|
123
128
|
get dashboard() {
|
|
124
129
|
var _a;
|
|
125
|
-
return ((_a = this._dashboard) !== null && _a !== void 0 ? _a : (this._dashboard = new
|
|
130
|
+
return ((_a = this._dashboard) !== null && _a !== void 0 ? _a : (this._dashboard = new Client_5.Dashboard(this._options)));
|
|
126
131
|
}
|
|
127
132
|
/**
|
|
128
133
|
* Upload a file or webpage URL to create a knowledge base document. <br> <Note> After creating the document, update the agent's knowledge base by calling [Update agent](/docs/api-reference/agents/update). </Note>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { BaseClientOptions } from "../../../../../../BaseClient";
|
|
2
|
+
import { LiveCount } from "../resources/liveCount/client/Client";
|
|
3
|
+
export declare namespace Analytics {
|
|
4
|
+
interface Options extends BaseClientOptions {
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
export declare class Analytics {
|
|
8
|
+
protected readonly _options: Analytics.Options;
|
|
9
|
+
protected _liveCount: LiveCount | undefined;
|
|
10
|
+
constructor(_options?: Analytics.Options);
|
|
11
|
+
get liveCount(): LiveCount;
|
|
12
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Analytics = void 0;
|
|
5
|
+
const Client_1 = require("../resources/liveCount/client/Client");
|
|
6
|
+
class Analytics {
|
|
7
|
+
constructor(_options = {}) {
|
|
8
|
+
this._options = _options;
|
|
9
|
+
}
|
|
10
|
+
get liveCount() {
|
|
11
|
+
var _a;
|
|
12
|
+
return ((_a = this._liveCount) !== null && _a !== void 0 ? _a : (this._liveCount = new Client_1.LiveCount(this._options)));
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.Analytics = Analytics;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./client"), exports);
|
|
18
|
+
__exportStar(require("./resources"), exports);
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
36
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.liveCount = void 0;
|
|
40
|
+
exports.liveCount = __importStar(require("./liveCount"));
|
|
41
|
+
__exportStar(require("./liveCount/client/requests"), exports);
|
package/api/resources/conversationalAi/resources/analytics/resources/liveCount/client/Client.d.ts
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../../../BaseClient";
|
|
2
|
+
import * as core from "../../../../../../../../core";
|
|
3
|
+
import * as ElevenLabs from "../../../../../../../index";
|
|
4
|
+
export declare namespace LiveCount {
|
|
5
|
+
interface Options extends BaseClientOptions {
|
|
6
|
+
}
|
|
7
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export declare class LiveCount {
|
|
11
|
+
protected readonly _options: LiveCount.Options;
|
|
12
|
+
constructor(_options?: LiveCount.Options);
|
|
13
|
+
/**
|
|
14
|
+
* Get the live count of the ongoing conversations.
|
|
15
|
+
*
|
|
16
|
+
* @param {ElevenLabs.conversationalAi.analytics.LiveCountGetRequest} request
|
|
17
|
+
* @param {LiveCount.RequestOptions} requestOptions - Request-specific configuration.
|
|
18
|
+
*
|
|
19
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* await client.conversationalAi.analytics.liveCount.get({
|
|
23
|
+
* agentId: "agent_id"
|
|
24
|
+
* })
|
|
25
|
+
*/
|
|
26
|
+
get(request?: ElevenLabs.conversationalAi.analytics.LiveCountGetRequest, requestOptions?: LiveCount.RequestOptions): core.HttpResponsePromise<ElevenLabs.GetLiveCountResponse>;
|
|
27
|
+
private __get;
|
|
28
|
+
}
|
package/api/resources/conversationalAi/resources/analytics/resources/liveCount/client/Client.js
ADDED
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
"use strict";
|
|
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
|
+
};
|
|
45
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46
|
+
exports.LiveCount = void 0;
|
|
47
|
+
const core = __importStar(require("../../../../../../../../core"));
|
|
48
|
+
const headers_1 = require("../../../../../../../../core/headers");
|
|
49
|
+
const environments = __importStar(require("../../../../../../../../environments"));
|
|
50
|
+
const errors = __importStar(require("../../../../../../../../errors/index"));
|
|
51
|
+
const serializers = __importStar(require("../../../../../../../../serialization/index"));
|
|
52
|
+
const ElevenLabs = __importStar(require("../../../../../../../index"));
|
|
53
|
+
class LiveCount {
|
|
54
|
+
constructor(_options = {}) {
|
|
55
|
+
this._options = _options;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Get the live count of the ongoing conversations.
|
|
59
|
+
*
|
|
60
|
+
* @param {ElevenLabs.conversationalAi.analytics.LiveCountGetRequest} request
|
|
61
|
+
* @param {LiveCount.RequestOptions} requestOptions - Request-specific configuration.
|
|
62
|
+
*
|
|
63
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
64
|
+
*
|
|
65
|
+
* @example
|
|
66
|
+
* await client.conversationalAi.analytics.liveCount.get({
|
|
67
|
+
* agentId: "agent_id"
|
|
68
|
+
* })
|
|
69
|
+
*/
|
|
70
|
+
get(request = {}, requestOptions) {
|
|
71
|
+
return core.HttpResponsePromise.fromPromise(this.__get(request, requestOptions));
|
|
72
|
+
}
|
|
73
|
+
__get() {
|
|
74
|
+
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
75
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
76
|
+
const { agentId } = request;
|
|
77
|
+
const _queryParams = {};
|
|
78
|
+
if (agentId != null) {
|
|
79
|
+
_queryParams.agent_id = agentId;
|
|
80
|
+
}
|
|
81
|
+
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);
|
|
82
|
+
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
83
|
+
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/analytics/live-count"),
|
|
84
|
+
method: "GET",
|
|
85
|
+
headers: _headers,
|
|
86
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
87
|
+
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,
|
|
88
|
+
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,
|
|
89
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
90
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
91
|
+
logging: this._options.logging,
|
|
92
|
+
});
|
|
93
|
+
if (_response.ok) {
|
|
94
|
+
return {
|
|
95
|
+
data: serializers.GetLiveCountResponse.parseOrThrow(_response.body, {
|
|
96
|
+
unrecognizedObjectKeys: "passthrough",
|
|
97
|
+
allowUnrecognizedUnionMembers: true,
|
|
98
|
+
allowUnrecognizedEnumValues: true,
|
|
99
|
+
breadcrumbsPrefix: ["response"],
|
|
100
|
+
}),
|
|
101
|
+
rawResponse: _response.rawResponse,
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
if (_response.error.reason === "status-code") {
|
|
105
|
+
switch (_response.error.statusCode) {
|
|
106
|
+
case 422:
|
|
107
|
+
throw new ElevenLabs.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
108
|
+
unrecognizedObjectKeys: "passthrough",
|
|
109
|
+
allowUnrecognizedUnionMembers: true,
|
|
110
|
+
allowUnrecognizedEnumValues: true,
|
|
111
|
+
breadcrumbsPrefix: ["response"],
|
|
112
|
+
}), _response.rawResponse);
|
|
113
|
+
default:
|
|
114
|
+
throw new errors.ElevenLabsError({
|
|
115
|
+
statusCode: _response.error.statusCode,
|
|
116
|
+
body: _response.error.body,
|
|
117
|
+
rawResponse: _response.rawResponse,
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
switch (_response.error.reason) {
|
|
122
|
+
case "non-json":
|
|
123
|
+
throw new errors.ElevenLabsError({
|
|
124
|
+
statusCode: _response.error.statusCode,
|
|
125
|
+
body: _response.error.rawBody,
|
|
126
|
+
rawResponse: _response.rawResponse,
|
|
127
|
+
});
|
|
128
|
+
case "timeout":
|
|
129
|
+
throw new errors.ElevenLabsTimeoutError("Timeout exceeded when calling GET /v1/convai/analytics/live-count.");
|
|
130
|
+
case "unknown":
|
|
131
|
+
throw new errors.ElevenLabsError({
|
|
132
|
+
message: _response.error.errorMessage,
|
|
133
|
+
rawResponse: _response.rawResponse,
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
exports.LiveCount = LiveCount;
|
package/api/resources/conversationalAi/resources/analytics/resources/liveCount/client/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests";
|
package/api/resources/conversationalAi/resources/analytics/resources/liveCount/client/index.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./requests"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { LiveCountGetRequest } from "./LiveCountGetRequest";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./client"), exports);
|
|
@@ -65,6 +65,9 @@ export declare class Conversations {
|
|
|
65
65
|
* callStartAfterUnix: 1,
|
|
66
66
|
* callDurationMinSecs: 1,
|
|
67
67
|
* callDurationMaxSecs: 1,
|
|
68
|
+
* ratingMax: 1,
|
|
69
|
+
* ratingMin: 1,
|
|
70
|
+
* hasFeedbackComment: true,
|
|
68
71
|
* userId: "user_id",
|
|
69
72
|
* pageSize: 1,
|
|
70
73
|
* summaryMode: "exclude",
|
|
@@ -247,6 +247,9 @@ class Conversations {
|
|
|
247
247
|
* callStartAfterUnix: 1,
|
|
248
248
|
* callDurationMinSecs: 1,
|
|
249
249
|
* callDurationMaxSecs: 1,
|
|
250
|
+
* ratingMax: 1,
|
|
251
|
+
* ratingMin: 1,
|
|
252
|
+
* hasFeedbackComment: true,
|
|
250
253
|
* userId: "user_id",
|
|
251
254
|
* pageSize: 1,
|
|
252
255
|
* summaryMode: "exclude",
|
|
@@ -259,7 +262,7 @@ class Conversations {
|
|
|
259
262
|
__list() {
|
|
260
263
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
261
264
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
262
|
-
const { cursor, agentId, callSuccessful, callStartBeforeUnix, callStartAfterUnix, callDurationMinSecs, callDurationMaxSecs, userId, evaluationParams, dataCollectionParams, toolNames, pageSize, summaryMode, search, } = request;
|
|
265
|
+
const { cursor, agentId, callSuccessful, callStartBeforeUnix, callStartAfterUnix, callDurationMinSecs, callDurationMaxSecs, ratingMax, ratingMin, hasFeedbackComment, userId, evaluationParams, dataCollectionParams, toolNames, pageSize, summaryMode, search, } = request;
|
|
263
266
|
const _queryParams = {};
|
|
264
267
|
if (cursor != null) {
|
|
265
268
|
_queryParams.cursor = cursor;
|
|
@@ -284,6 +287,15 @@ class Conversations {
|
|
|
284
287
|
if (callDurationMaxSecs != null) {
|
|
285
288
|
_queryParams.call_duration_max_secs = callDurationMaxSecs.toString();
|
|
286
289
|
}
|
|
290
|
+
if (ratingMax != null) {
|
|
291
|
+
_queryParams.rating_max = ratingMax.toString();
|
|
292
|
+
}
|
|
293
|
+
if (ratingMin != null) {
|
|
294
|
+
_queryParams.rating_min = ratingMin.toString();
|
|
295
|
+
}
|
|
296
|
+
if (hasFeedbackComment != null) {
|
|
297
|
+
_queryParams.has_feedback_comment = hasFeedbackComment.toString();
|
|
298
|
+
}
|
|
287
299
|
if (userId != null) {
|
|
288
300
|
_queryParams.user_id = userId;
|
|
289
301
|
}
|
|
@@ -9,6 +9,9 @@ import type * as ElevenLabs from "../../../../../../index";
|
|
|
9
9
|
* callStartAfterUnix: 1,
|
|
10
10
|
* callDurationMinSecs: 1,
|
|
11
11
|
* callDurationMaxSecs: 1,
|
|
12
|
+
* ratingMax: 1,
|
|
13
|
+
* ratingMin: 1,
|
|
14
|
+
* hasFeedbackComment: true,
|
|
12
15
|
* userId: "user_id",
|
|
13
16
|
* pageSize: 1,
|
|
14
17
|
* summaryMode: "exclude",
|
|
@@ -30,6 +33,12 @@ export interface ConversationsListRequest {
|
|
|
30
33
|
callDurationMinSecs?: number;
|
|
31
34
|
/** Maximum call duration in seconds. */
|
|
32
35
|
callDurationMaxSecs?: number;
|
|
36
|
+
/** Maximum overall rating (1-5). */
|
|
37
|
+
ratingMax?: number;
|
|
38
|
+
/** Minimum overall rating (1-5). */
|
|
39
|
+
ratingMin?: number;
|
|
40
|
+
/** Filter conversations with user feedback comments. */
|
|
41
|
+
hasFeedbackComment?: boolean;
|
|
33
42
|
/** Filter conversations by the user ID who initiated them. */
|
|
34
43
|
userId?: string;
|
|
35
44
|
/** Evaluation filters. Repeat param. Format: criteria_id:result. Example: eval=value_framing:success */
|
|
@@ -36,9 +36,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.twilio = exports.tools = exports.tests = exports.sipTrunk = exports.settings = exports.secrets = exports.phoneNumbers = exports.mcpServers = exports.llmUsage = exports.knowledgeBase = exports.dashboard = exports.conversations = exports.batchCalls = exports.agents = void 0;
|
|
39
|
+
exports.twilio = exports.tools = exports.tests = exports.sipTrunk = exports.settings = exports.secrets = exports.phoneNumbers = exports.mcpServers = exports.llmUsage = exports.knowledgeBase = exports.dashboard = exports.conversations = exports.batchCalls = exports.analytics = exports.agents = void 0;
|
|
40
40
|
exports.agents = __importStar(require("./agents"));
|
|
41
41
|
__exportStar(require("./agents/client/requests"), exports);
|
|
42
|
+
exports.analytics = __importStar(require("./analytics"));
|
|
42
43
|
exports.batchCalls = __importStar(require("./batchCalls"));
|
|
43
44
|
__exportStar(require("./batchCalls/client/requests"), exports);
|
|
44
45
|
exports.conversations = __importStar(require("./conversations"));
|
|
@@ -17,9 +17,9 @@ export interface BodyDubAVideoOrAnAudioFileV1DubbingPost {
|
|
|
17
17
|
name?: string;
|
|
18
18
|
/** URL of the source video/audio file. */
|
|
19
19
|
sourceUrl?: string;
|
|
20
|
-
/** Source language. */
|
|
20
|
+
/** Source language. Expects a valid iso639-1 or iso639-3 language code. */
|
|
21
21
|
sourceLang?: string;
|
|
22
|
-
/** The Target language to dub the content into. */
|
|
22
|
+
/** The Target language to dub the content into. Expects a valid iso639-1 or iso639-3 language code. */
|
|
23
23
|
targetLang?: string;
|
|
24
24
|
/** [Experimental] An accent to apply when selecting voices from the library and to use to inform translation of the dialect to prefer. */
|
|
25
25
|
targetAccent?: string;
|
|
@@ -32,6 +32,23 @@ export declare class Resource {
|
|
|
32
32
|
*/
|
|
33
33
|
get(dubbing_id: string, requestOptions?: Resource.RequestOptions): core.HttpResponsePromise<ElevenLabs.DubbingResource>;
|
|
34
34
|
private __get;
|
|
35
|
+
/**
|
|
36
|
+
* Change the attribution of one or more segments to a different speaker.
|
|
37
|
+
*
|
|
38
|
+
* @param {string} dubbing_id - ID of the dubbing project.
|
|
39
|
+
* @param {ElevenLabs.dubbing.BodyMoveSegmentsBetweenSpeakersV1DubbingResourceDubbingIdMigrateSegmentsPost} request
|
|
40
|
+
* @param {Resource.RequestOptions} requestOptions - Request-specific configuration.
|
|
41
|
+
*
|
|
42
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
43
|
+
*
|
|
44
|
+
* @example
|
|
45
|
+
* await client.dubbing.resource.migrateSegments("dubbing_id", {
|
|
46
|
+
* segmentIds: ["segment_ids"],
|
|
47
|
+
* speakerId: "speaker_id"
|
|
48
|
+
* })
|
|
49
|
+
*/
|
|
50
|
+
migrateSegments(dubbing_id: string, request: ElevenLabs.dubbing.BodyMoveSegmentsBetweenSpeakersV1DubbingResourceDubbingIdMigrateSegmentsPost, requestOptions?: Resource.RequestOptions): core.HttpResponsePromise<ElevenLabs.SegmentMigrationResponse>;
|
|
51
|
+
private __migrateSegments;
|
|
35
52
|
/**
|
|
36
53
|
* Regenerate the transcriptions for the specified segments. Does not automatically regenerate translations or dubs.
|
|
37
54
|
*
|