@elevenlabs/elevenlabs-js 2.10.0 → 2.12.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.d.ts +160 -0
- package/Client.js +687 -2
- package/api/client/index.d.ts +1 -0
- package/api/client/index.js +17 -0
- package/api/client/requests/CreateUnitTestRequest.d.ts +37 -0
- package/api/client/requests/ListChatResponseTestsRouteRequest.d.ts +21 -0
- package/api/client/requests/ListTestsByIdsRequestModel.d.ts +13 -0
- package/api/client/requests/ListTestsByIdsRequestModel.js +5 -0
- package/api/client/requests/ResubmitTestsRequestModel.d.ts +19 -0
- package/api/client/requests/ResubmitTestsRequestModel.js +5 -0
- package/api/client/requests/RunAgentTestsRequestModel.d.ts +18 -0
- package/api/client/requests/RunAgentTestsRequestModel.js +5 -0
- package/api/client/requests/UpdateUnitTestRequest.d.ts +37 -0
- package/api/client/requests/UpdateUnitTestRequest.js +5 -0
- package/api/client/requests/index.d.ts +6 -0
- package/api/client/requests/index.js +2 -0
- package/api/index.d.ts +1 -0
- package/api/index.js +1 -0
- package/api/resources/conversationalAi/resources/tools/client/Client.d.ts +1 -1
- package/api/resources/conversationalAi/resources/tools/client/Client.js +1 -1
- package/api/resources/music/client/Client.d.ts +6 -0
- package/api/resources/music/client/Client.js +67 -0
- package/api/{types → resources/music/client/requests}/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.d.ts +5 -1
- package/api/resources/music/client/requests/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.js +5 -0
- package/api/resources/music/client/requests/index.d.ts +1 -0
- package/api/resources/music/types/MusicComposeDetailedRequestOutputFormat.d.ts +28 -0
- package/api/resources/music/types/MusicComposeDetailedRequestOutputFormat.js +27 -0
- package/api/resources/music/types/index.d.ts +1 -0
- package/api/resources/music/types/index.js +1 -0
- package/api/resources/pronunciationDictionaries/client/Client.d.ts +20 -6
- package/api/resources/pronunciationDictionaries/client/Client.js +90 -16
- package/api/resources/pronunciationDictionaries/client/requests/BodyUpdatePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdPatch.d.ts +13 -0
- package/api/resources/pronunciationDictionaries/client/requests/BodyUpdatePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdPatch.js +5 -0
- package/api/resources/pronunciationDictionaries/client/requests/index.d.ts +1 -0
- package/api/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsItem.d.ts +4 -1
- package/api/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsItem.js +3 -0
- package/api/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsItem.d.ts +4 -1
- package/api/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsItem.js +3 -0
- package/api/resources/speechToText/client/requests/BodySpeechToTextV1SpeechToTextPost.d.ts +1 -1
- package/api/resources/textToDialogue/client/Client.d.ts +2 -2
- package/api/resources/textToDialogue/client/Client.js +2 -2
- package/api/resources/textToSoundEffects/client/requests/CreateSoundEffectRequest.d.ts +1 -1
- package/api/types/AdhocAgentConfigOverrideForTestRequestModel.d.ts +8 -0
- package/api/types/AdhocAgentConfigOverrideForTestRequestModel.js +5 -0
- package/api/types/AgentFailureResponseExample.d.ts +7 -0
- package/api/types/AgentFailureResponseExample.js +5 -0
- package/api/types/AgentSuccessfulResponseExample.d.ts +7 -0
- package/api/types/AgentSuccessfulResponseExample.js +5 -0
- package/api/types/AgentTestingSettings.d.ts +2 -1
- package/api/types/AttachedTestModel.d.ts +6 -0
- package/api/types/AttachedTestModel.js +5 -0
- package/api/types/ConversationHistoryTranscriptSystemToolResultCommonModelResult.d.ts +4 -1
- package/api/types/CreateUnitTestRequestDynamicVariablesValue.d.ts +4 -0
- package/api/types/CreateUnitTestRequestDynamicVariablesValue.js +5 -0
- package/api/types/CreateUnitTestResponseModel.d.ts +6 -0
- package/api/types/CreateUnitTestResponseModel.js +5 -0
- package/api/types/DetailedMusicResponse.d.ts +13 -0
- package/api/types/DetailedMusicResponse.js +5 -0
- package/api/types/ExactParameterEvaluationStrategy.d.ts +7 -0
- package/api/types/ExactParameterEvaluationStrategy.js +5 -0
- package/api/types/ExtendedSubscriptionResponseModelPendingChange.d.ts +8 -0
- package/api/types/ExtendedSubscriptionResponseModelPendingChange.js +5 -0
- package/api/types/FeaturesUsageCommonModel.d.ts +1 -0
- package/api/types/GetTestSuiteInvocationResponseModel.d.ts +9 -0
- package/api/types/GetTestSuiteInvocationResponseModel.js +5 -0
- package/api/types/GetTestsPageResponseModel.d.ts +9 -0
- package/api/types/GetTestsPageResponseModel.js +5 -0
- package/api/types/GetTestsSummariesByIdsResponseModel.d.ts +8 -0
- package/api/types/GetTestsSummariesByIdsResponseModel.js +5 -0
- package/api/types/GetUnitTestResponseModel.d.ts +19 -0
- package/api/types/GetUnitTestResponseModel.js +5 -0
- package/api/types/GetUnitTestResponseModelDynamicVariablesValue.d.ts +4 -0
- package/api/types/GetUnitTestResponseModelDynamicVariablesValue.js +5 -0
- package/api/types/Llm.d.ts +3 -3
- package/api/types/Llm.js +2 -2
- package/api/types/LlmParameterEvaluationStrategy.d.ts +7 -0
- package/api/types/LlmParameterEvaluationStrategy.js +5 -0
- package/api/types/MultipartMusicResponse.d.ts +13 -0
- package/api/types/MultipartMusicResponse.js +5 -0
- package/api/types/PendingCancellationResponseModel.d.ts +8 -0
- package/api/types/PendingCancellationResponseModel.js +5 -0
- package/api/types/PendingSubscriptionSwitchResponseModel.d.ts +11 -0
- package/api/types/PendingSubscriptionSwitchResponseModel.js +5 -0
- package/api/types/PendingSubscriptionSwitchResponseModelNextTier.d.ts +19 -0
- package/api/types/PendingSubscriptionSwitchResponseModelNextTier.js +18 -0
- package/api/types/ReferencedToolCommonModel.d.ts +13 -0
- package/api/types/ReferencedToolCommonModel.js +5 -0
- package/api/types/RegexParameterEvaluationStrategy.d.ts +7 -0
- package/api/types/RegexParameterEvaluationStrategy.js +5 -0
- package/api/types/SingleTestRunRequestModel.d.ts +7 -0
- package/api/types/SingleTestRunRequestModel.js +5 -0
- package/api/types/SongMetadata.d.ts +15 -0
- package/api/types/SongMetadata.js +5 -0
- package/api/types/Subscription.d.ts +2 -0
- package/api/types/TestConditionRationaleCommonModel.d.ts +12 -0
- package/api/types/TestConditionRationaleCommonModel.js +5 -0
- package/api/types/TestConditionResultCommonModel.d.ts +8 -0
- package/api/types/TestConditionResultCommonModel.js +5 -0
- package/api/types/TestRunStatus.d.ts +9 -0
- package/api/types/TestRunStatus.js +11 -0
- package/api/types/TestToolResultModel.d.ts +7 -0
- package/api/types/TestToolResultModel.js +5 -0
- package/api/types/UnitTestRunResponseModel.d.ts +13 -0
- package/api/types/UnitTestRunResponseModel.js +5 -0
- package/api/types/UnitTestSummaryResponseModel.d.ts +16 -0
- package/api/types/UnitTestSummaryResponseModel.js +5 -0
- package/api/types/UnitTestToolCallEvaluationModelInput.d.ts +10 -0
- package/api/types/UnitTestToolCallEvaluationModelInput.js +5 -0
- package/api/types/UnitTestToolCallEvaluationModelOutput.d.ts +10 -0
- package/api/types/UnitTestToolCallEvaluationModelOutput.js +5 -0
- package/api/types/UnitTestToolCallParameter.d.ts +8 -0
- package/api/types/UnitTestToolCallParameter.js +5 -0
- package/api/types/UnitTestToolCallParameterEval.d.ts +16 -0
- package/api/types/UnitTestToolCallParameterEval.js +5 -0
- package/api/types/UpdateUnitTestRequestDynamicVariablesValue.d.ts +4 -0
- package/api/types/UpdateUnitTestRequestDynamicVariablesValue.js +5 -0
- package/api/types/User.d.ts +3 -1
- package/api/types/WebhookAuthMethodType.d.ts +2 -1
- package/api/types/WebhookAuthMethodType.js +1 -0
- package/api/types/WorkflowFeaturesUsageCommonModel.d.ts +8 -0
- package/api/types/WorkflowFeaturesUsageCommonModel.js +5 -0
- package/api/types/WorkspaceApiKeyResponseModelPermissionsItem.d.ts +4 -1
- package/api/types/WorkspaceApiKeyResponseModelPermissionsItem.js +3 -0
- package/api/types/WorkspaceResourceType.d.ts +1 -2
- package/api/types/WorkspaceResourceType.js +0 -1
- package/api/types/index.d.ts +35 -1
- package/api/types/index.js +35 -1
- package/dist/Client.d.ts +160 -0
- package/dist/Client.js +687 -2
- package/dist/api/client/index.d.ts +1 -0
- package/dist/api/client/index.js +17 -0
- package/dist/api/client/requests/CreateUnitTestRequest.d.ts +37 -0
- package/dist/api/client/requests/CreateUnitTestRequest.js +5 -0
- package/dist/api/client/requests/ListChatResponseTestsRouteRequest.d.ts +21 -0
- package/dist/api/client/requests/ListChatResponseTestsRouteRequest.js +5 -0
- package/dist/api/client/requests/ListTestsByIdsRequestModel.d.ts +13 -0
- package/dist/api/client/requests/ListTestsByIdsRequestModel.js +5 -0
- package/dist/api/client/requests/ResubmitTestsRequestModel.d.ts +19 -0
- package/dist/api/client/requests/ResubmitTestsRequestModel.js +5 -0
- package/dist/api/client/requests/RunAgentTestsRequestModel.d.ts +18 -0
- package/dist/api/client/requests/RunAgentTestsRequestModel.js +5 -0
- package/dist/api/client/requests/UpdateUnitTestRequest.d.ts +37 -0
- package/dist/api/client/requests/UpdateUnitTestRequest.js +5 -0
- package/dist/api/client/requests/index.d.ts +6 -0
- package/dist/api/client/requests/index.js +2 -0
- package/dist/api/index.d.ts +1 -0
- package/dist/api/index.js +1 -0
- package/dist/api/resources/conversationalAi/resources/tools/client/Client.d.ts +1 -1
- package/dist/api/resources/conversationalAi/resources/tools/client/Client.js +1 -1
- package/dist/api/resources/music/client/Client.d.ts +6 -0
- package/dist/api/resources/music/client/Client.js +67 -0
- package/dist/api/{types → resources/music/client/requests}/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.d.ts +5 -1
- package/dist/api/resources/music/client/requests/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.js +5 -0
- package/dist/api/resources/music/client/requests/index.d.ts +1 -0
- package/dist/api/resources/music/types/MusicComposeDetailedRequestOutputFormat.d.ts +28 -0
- package/dist/api/resources/music/types/MusicComposeDetailedRequestOutputFormat.js +27 -0
- package/dist/api/resources/music/types/index.d.ts +1 -0
- package/dist/api/resources/music/types/index.js +1 -0
- package/dist/api/resources/pronunciationDictionaries/client/Client.d.ts +20 -6
- package/dist/api/resources/pronunciationDictionaries/client/Client.js +90 -16
- package/dist/api/resources/pronunciationDictionaries/client/requests/BodyUpdatePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdPatch.d.ts +13 -0
- package/dist/api/resources/pronunciationDictionaries/client/requests/BodyUpdatePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdPatch.js +5 -0
- package/dist/api/resources/pronunciationDictionaries/client/requests/index.d.ts +1 -0
- package/dist/api/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsItem.d.ts +4 -1
- package/dist/api/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsItem.js +3 -0
- package/dist/api/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsItem.d.ts +4 -1
- package/dist/api/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsItem.js +3 -0
- package/dist/api/resources/speechToText/client/requests/BodySpeechToTextV1SpeechToTextPost.d.ts +1 -1
- package/dist/api/resources/textToDialogue/client/Client.d.ts +2 -2
- package/dist/api/resources/textToDialogue/client/Client.js +2 -2
- package/dist/api/resources/textToSoundEffects/client/requests/CreateSoundEffectRequest.d.ts +1 -1
- package/dist/api/types/AdhocAgentConfigOverrideForTestRequestModel.d.ts +8 -0
- package/dist/api/types/AdhocAgentConfigOverrideForTestRequestModel.js +5 -0
- package/dist/api/types/AgentFailureResponseExample.d.ts +7 -0
- package/dist/api/types/AgentFailureResponseExample.js +5 -0
- package/dist/api/types/AgentSuccessfulResponseExample.d.ts +7 -0
- package/dist/api/types/AgentSuccessfulResponseExample.js +5 -0
- package/dist/api/types/AgentTestingSettings.d.ts +2 -1
- package/dist/api/types/AttachedTestModel.d.ts +6 -0
- package/dist/api/types/AttachedTestModel.js +5 -0
- package/dist/api/types/ConversationHistoryTranscriptSystemToolResultCommonModelResult.d.ts +4 -1
- package/dist/api/types/CreateUnitTestRequestDynamicVariablesValue.d.ts +4 -0
- package/dist/api/types/CreateUnitTestRequestDynamicVariablesValue.js +5 -0
- package/dist/api/types/CreateUnitTestResponseModel.d.ts +6 -0
- package/dist/api/types/CreateUnitTestResponseModel.js +5 -0
- package/dist/api/types/DetailedMusicResponse.d.ts +13 -0
- package/dist/api/types/DetailedMusicResponse.js +5 -0
- package/dist/api/types/ExactParameterEvaluationStrategy.d.ts +7 -0
- package/dist/api/types/ExactParameterEvaluationStrategy.js +5 -0
- package/dist/api/types/ExtendedSubscriptionResponseModelPendingChange.d.ts +8 -0
- package/dist/api/types/ExtendedSubscriptionResponseModelPendingChange.js +5 -0
- package/dist/api/types/FeaturesUsageCommonModel.d.ts +1 -0
- package/dist/api/types/GetTestSuiteInvocationResponseModel.d.ts +9 -0
- package/dist/api/types/GetTestSuiteInvocationResponseModel.js +5 -0
- package/dist/api/types/GetTestsPageResponseModel.d.ts +9 -0
- package/dist/api/types/GetTestsPageResponseModel.js +5 -0
- package/dist/api/types/GetTestsSummariesByIdsResponseModel.d.ts +8 -0
- package/dist/api/types/GetTestsSummariesByIdsResponseModel.js +5 -0
- package/dist/api/types/GetUnitTestResponseModel.d.ts +19 -0
- package/dist/api/types/GetUnitTestResponseModel.js +5 -0
- package/dist/api/types/GetUnitTestResponseModelDynamicVariablesValue.d.ts +4 -0
- package/dist/api/types/GetUnitTestResponseModelDynamicVariablesValue.js +5 -0
- package/dist/api/types/Llm.d.ts +3 -3
- package/dist/api/types/Llm.js +2 -2
- package/dist/api/types/LlmParameterEvaluationStrategy.d.ts +7 -0
- package/dist/api/types/LlmParameterEvaluationStrategy.js +5 -0
- package/dist/api/types/MultipartMusicResponse.d.ts +13 -0
- package/dist/api/types/MultipartMusicResponse.js +5 -0
- package/dist/api/types/PendingCancellationResponseModel.d.ts +8 -0
- package/dist/api/types/PendingCancellationResponseModel.js +5 -0
- package/dist/api/types/PendingSubscriptionSwitchResponseModel.d.ts +11 -0
- package/dist/api/types/PendingSubscriptionSwitchResponseModel.js +5 -0
- package/dist/api/types/PendingSubscriptionSwitchResponseModelNextTier.d.ts +19 -0
- package/dist/api/types/PendingSubscriptionSwitchResponseModelNextTier.js +18 -0
- package/dist/api/types/ReferencedToolCommonModel.d.ts +13 -0
- package/dist/api/types/ReferencedToolCommonModel.js +5 -0
- package/dist/api/types/RegexParameterEvaluationStrategy.d.ts +7 -0
- package/dist/api/types/RegexParameterEvaluationStrategy.js +5 -0
- package/dist/api/types/SingleTestRunRequestModel.d.ts +7 -0
- package/dist/api/types/SingleTestRunRequestModel.js +5 -0
- package/dist/api/types/SongMetadata.d.ts +15 -0
- package/dist/api/types/SongMetadata.js +5 -0
- package/dist/api/types/Subscription.d.ts +2 -0
- package/dist/api/types/TestConditionRationaleCommonModel.d.ts +12 -0
- package/dist/api/types/TestConditionRationaleCommonModel.js +5 -0
- package/dist/api/types/TestConditionResultCommonModel.d.ts +8 -0
- package/dist/api/types/TestConditionResultCommonModel.js +5 -0
- package/dist/api/types/TestRunStatus.d.ts +9 -0
- package/dist/api/types/TestRunStatus.js +11 -0
- package/dist/api/types/TestToolResultModel.d.ts +7 -0
- package/dist/api/types/TestToolResultModel.js +5 -0
- package/dist/api/types/UnitTestRunResponseModel.d.ts +13 -0
- package/dist/api/types/UnitTestRunResponseModel.js +5 -0
- package/dist/api/types/UnitTestSummaryResponseModel.d.ts +16 -0
- package/dist/api/types/UnitTestSummaryResponseModel.js +5 -0
- package/dist/api/types/UnitTestToolCallEvaluationModelInput.d.ts +10 -0
- package/dist/api/types/UnitTestToolCallEvaluationModelInput.js +5 -0
- package/dist/api/types/UnitTestToolCallEvaluationModelOutput.d.ts +10 -0
- package/dist/api/types/UnitTestToolCallEvaluationModelOutput.js +5 -0
- package/dist/api/types/UnitTestToolCallParameter.d.ts +8 -0
- package/dist/api/types/UnitTestToolCallParameter.js +5 -0
- package/dist/api/types/UnitTestToolCallParameterEval.d.ts +16 -0
- package/dist/api/types/UnitTestToolCallParameterEval.js +5 -0
- package/dist/api/types/UpdateUnitTestRequestDynamicVariablesValue.d.ts +4 -0
- package/dist/api/types/UpdateUnitTestRequestDynamicVariablesValue.js +5 -0
- package/dist/api/types/User.d.ts +3 -1
- package/dist/api/types/WebhookAuthMethodType.d.ts +2 -1
- package/dist/api/types/WebhookAuthMethodType.js +1 -0
- package/dist/api/types/WorkflowFeaturesUsageCommonModel.d.ts +8 -0
- package/dist/api/types/WorkflowFeaturesUsageCommonModel.js +5 -0
- package/dist/api/types/WorkspaceApiKeyResponseModelPermissionsItem.d.ts +4 -1
- package/dist/api/types/WorkspaceApiKeyResponseModelPermissionsItem.js +3 -0
- package/dist/api/types/WorkspaceResourceType.d.ts +1 -2
- package/dist/api/types/WorkspaceResourceType.js +0 -1
- package/dist/api/types/index.d.ts +35 -1
- package/dist/api/types/index.js +35 -1
- package/dist/serialization/client/index.d.ts +1 -0
- package/dist/serialization/client/index.js +17 -0
- package/dist/serialization/client/requests/CreateUnitTestRequest.d.ts +23 -0
- package/dist/serialization/client/requests/CreateUnitTestRequest.js +56 -0
- package/dist/serialization/client/requests/ListTestsByIdsRequestModel.d.ts +12 -0
- package/dist/serialization/client/requests/ListTestsByIdsRequestModel.js +43 -0
- package/dist/serialization/client/requests/ResubmitTestsRequestModel.d.ts +15 -0
- package/dist/serialization/client/requests/ResubmitTestsRequestModel.js +46 -0
- package/dist/serialization/client/requests/RunAgentTestsRequestModel.d.ts +15 -0
- package/dist/serialization/client/requests/RunAgentTestsRequestModel.js +46 -0
- package/dist/serialization/client/requests/UpdateUnitTestRequest.d.ts +23 -0
- package/dist/serialization/client/requests/UpdateUnitTestRequest.js +56 -0
- package/dist/serialization/client/requests/index.d.ts +5 -0
- package/dist/serialization/client/requests/index.js +13 -0
- package/dist/serialization/index.d.ts +1 -0
- package/dist/serialization/index.js +1 -0
- package/dist/serialization/{types → resources/music/client/requests}/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.d.ts +5 -5
- package/dist/serialization/{types → resources/music/client/requests}/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.js +2 -2
- package/dist/serialization/resources/music/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/music/client/requests/index.js +3 -1
- package/dist/serialization/resources/music/types/MusicComposeDetailedRequestOutputFormat.d.ts +10 -0
- package/dist/serialization/resources/music/types/MusicComposeDetailedRequestOutputFormat.js +61 -0
- package/dist/serialization/resources/music/types/index.d.ts +1 -0
- package/dist/serialization/resources/music/types/index.js +1 -0
- package/dist/serialization/resources/pronunciationDictionaries/client/requests/BodyUpdatePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdPatch.d.ts +13 -0
- package/dist/serialization/resources/pronunciationDictionaries/client/requests/BodyUpdatePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdPatch.js +44 -0
- package/dist/serialization/resources/pronunciationDictionaries/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/pronunciationDictionaries/client/requests/index.js +3 -1
- package/dist/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsItem.d.ts +1 -1
- package/dist/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsItem.js +3 -0
- package/dist/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsItem.d.ts +1 -1
- package/dist/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsItem.js +3 -0
- package/dist/serialization/types/AdhocAgentConfigOverrideForTestRequestModel.d.ts +15 -0
- package/dist/serialization/types/AdhocAgentConfigOverrideForTestRequestModel.js +46 -0
- package/dist/serialization/types/AgentFailureResponseExample.d.ts +13 -0
- package/dist/serialization/types/AgentFailureResponseExample.js +44 -0
- package/dist/serialization/types/AgentSuccessfulResponseExample.d.ts +13 -0
- package/dist/serialization/types/AgentSuccessfulResponseExample.js +44 -0
- package/dist/serialization/types/AgentTestingSettings.d.ts +2 -1
- package/dist/serialization/types/AgentTestingSettings.js +2 -1
- package/dist/serialization/types/AttachedTestModel.d.ts +12 -0
- package/dist/serialization/types/AttachedTestModel.js +43 -0
- package/dist/serialization/types/ConversationHistoryTranscriptSystemToolResultCommonModelResult.d.ts +5 -1
- package/dist/serialization/types/ConversationHistoryTranscriptSystemToolResultCommonModelResult.js +2 -0
- package/dist/serialization/types/CreateUnitTestRequestDynamicVariablesValue.d.ts +10 -0
- package/dist/serialization/types/CreateUnitTestRequestDynamicVariablesValue.js +46 -0
- package/dist/serialization/types/CreateUnitTestResponseModel.d.ts +12 -0
- package/dist/serialization/types/CreateUnitTestResponseModel.js +43 -0
- package/dist/serialization/types/DetailedMusicResponse.d.ts +15 -0
- package/dist/serialization/types/DetailedMusicResponse.js +46 -0
- package/dist/serialization/types/ExactParameterEvaluationStrategy.d.ts +12 -0
- package/dist/serialization/types/ExactParameterEvaluationStrategy.js +43 -0
- package/dist/serialization/types/ExtendedSubscriptionResponseModelPendingChange.d.ts +12 -0
- package/dist/serialization/types/ExtendedSubscriptionResponseModelPendingChange.js +43 -0
- package/dist/serialization/types/FeaturesUsageCommonModel.d.ts +2 -0
- package/dist/serialization/types/FeaturesUsageCommonModel.js +2 -0
- package/dist/serialization/types/GetTestSuiteInvocationResponseModel.d.ts +15 -0
- package/dist/serialization/types/GetTestSuiteInvocationResponseModel.js +46 -0
- package/dist/serialization/types/GetTestsPageResponseModel.d.ts +15 -0
- package/dist/serialization/types/GetTestsPageResponseModel.js +46 -0
- package/dist/serialization/types/GetTestsSummariesByIdsResponseModel.d.ts +13 -0
- package/dist/serialization/types/GetTestsSummariesByIdsResponseModel.js +44 -0
- package/dist/serialization/types/GetUnitTestResponseModel.d.ts +24 -0
- package/dist/serialization/types/GetUnitTestResponseModel.js +57 -0
- package/dist/serialization/types/GetUnitTestResponseModelDynamicVariablesValue.d.ts +10 -0
- package/dist/serialization/types/GetUnitTestResponseModelDynamicVariablesValue.js +46 -0
- package/dist/serialization/types/Llm.d.ts +1 -1
- package/dist/serialization/types/Llm.js +2 -2
- package/dist/serialization/types/LlmParameterEvaluationStrategy.d.ts +12 -0
- package/dist/serialization/types/LlmParameterEvaluationStrategy.js +43 -0
- package/dist/serialization/types/MultipartMusicResponse.d.ts +14 -0
- package/dist/serialization/types/MultipartMusicResponse.js +45 -0
- package/dist/serialization/types/PendingCancellationResponseModel.d.ts +13 -0
- package/dist/serialization/types/PendingCancellationResponseModel.js +44 -0
- package/dist/serialization/types/PendingSubscriptionSwitchResponseModel.d.ts +15 -0
- package/dist/serialization/types/PendingSubscriptionSwitchResponseModel.js +46 -0
- package/dist/serialization/types/PendingSubscriptionSwitchResponseModelNextTier.d.ts +10 -0
- package/dist/serialization/types/PendingSubscriptionSwitchResponseModelNextTier.js +52 -0
- package/dist/serialization/types/ReferencedToolCommonModel.d.ts +14 -0
- package/dist/serialization/types/ReferencedToolCommonModel.js +45 -0
- package/dist/serialization/types/RegexParameterEvaluationStrategy.d.ts +12 -0
- package/dist/serialization/types/RegexParameterEvaluationStrategy.js +43 -0
- package/dist/serialization/types/SingleTestRunRequestModel.d.ts +12 -0
- package/dist/serialization/types/SingleTestRunRequestModel.js +43 -0
- package/dist/serialization/types/SongMetadata.d.ts +16 -0
- package/dist/serialization/types/SongMetadata.js +47 -0
- package/dist/serialization/types/Subscription.d.ts +2 -0
- package/dist/serialization/types/Subscription.js +2 -0
- package/dist/serialization/types/TestConditionRationaleCommonModel.d.ts +13 -0
- package/dist/serialization/types/TestConditionRationaleCommonModel.js +44 -0
- package/dist/serialization/types/TestConditionResultCommonModel.d.ts +15 -0
- package/dist/serialization/types/TestConditionResultCommonModel.js +46 -0
- package/dist/serialization/types/TestRunStatus.d.ts +10 -0
- package/dist/serialization/types/TestRunStatus.js +41 -0
- package/dist/serialization/types/TestToolResultModel.d.ts +13 -0
- package/dist/serialization/types/TestToolResultModel.js +44 -0
- package/dist/serialization/types/UnitTestRunResponseModel.d.ts +21 -0
- package/dist/serialization/types/UnitTestRunResponseModel.js +52 -0
- package/dist/serialization/types/UnitTestSummaryResponseModel.d.ts +17 -0
- package/dist/serialization/types/UnitTestSummaryResponseModel.js +48 -0
- package/dist/serialization/types/UnitTestToolCallEvaluationModelInput.d.ts +15 -0
- package/dist/serialization/types/UnitTestToolCallEvaluationModelInput.js +46 -0
- package/dist/serialization/types/UnitTestToolCallEvaluationModelOutput.d.ts +15 -0
- package/dist/serialization/types/UnitTestToolCallEvaluationModelOutput.js +46 -0
- package/dist/serialization/types/UnitTestToolCallParameter.d.ts +14 -0
- package/dist/serialization/types/UnitTestToolCallParameter.js +45 -0
- package/dist/serialization/types/UnitTestToolCallParameterEval.d.ts +22 -0
- package/dist/serialization/types/UnitTestToolCallParameterEval.js +53 -0
- package/dist/serialization/types/UpdateUnitTestRequestDynamicVariablesValue.d.ts +10 -0
- package/dist/serialization/types/UpdateUnitTestRequestDynamicVariablesValue.js +46 -0
- package/dist/serialization/types/User.d.ts +1 -0
- package/dist/serialization/types/User.js +1 -0
- package/dist/serialization/types/WebhookAuthMethodType.d.ts +1 -1
- package/dist/serialization/types/WebhookAuthMethodType.js +1 -1
- package/dist/serialization/types/WorkflowFeaturesUsageCommonModel.d.ts +14 -0
- package/dist/serialization/types/WorkflowFeaturesUsageCommonModel.js +45 -0
- package/dist/serialization/types/WorkspaceApiKeyResponseModelPermissionsItem.d.ts +1 -1
- package/dist/serialization/types/WorkspaceApiKeyResponseModelPermissionsItem.js +3 -0
- package/dist/serialization/types/WorkspaceResourceType.d.ts +1 -1
- package/dist/serialization/types/WorkspaceResourceType.js +0 -1
- package/dist/serialization/types/index.d.ts +35 -1
- package/dist/serialization/types/index.js +35 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/wrapper/ElevenLabsClient.d.ts +3 -0
- package/dist/wrapper/ElevenLabsClient.js +8 -0
- package/dist/wrapper/index.d.ts +1 -0
- package/dist/wrapper/index.js +3 -1
- package/dist/wrapper/music.d.ts +43 -0
- package/dist/wrapper/music.js +162 -0
- package/package.json +1 -1
- package/reference.md +74 -3
- package/serialization/client/index.d.ts +1 -0
- package/serialization/client/index.js +17 -0
- package/serialization/client/requests/CreateUnitTestRequest.d.ts +23 -0
- package/serialization/client/requests/CreateUnitTestRequest.js +56 -0
- package/serialization/client/requests/ListTestsByIdsRequestModel.d.ts +12 -0
- package/serialization/client/requests/ListTestsByIdsRequestModel.js +43 -0
- package/serialization/client/requests/ResubmitTestsRequestModel.d.ts +15 -0
- package/serialization/client/requests/ResubmitTestsRequestModel.js +46 -0
- package/serialization/client/requests/RunAgentTestsRequestModel.d.ts +15 -0
- package/serialization/client/requests/RunAgentTestsRequestModel.js +46 -0
- package/serialization/client/requests/UpdateUnitTestRequest.d.ts +23 -0
- package/serialization/client/requests/UpdateUnitTestRequest.js +56 -0
- package/serialization/client/requests/index.d.ts +5 -0
- package/serialization/client/requests/index.js +13 -0
- package/serialization/index.d.ts +1 -0
- package/serialization/index.js +1 -0
- package/serialization/{types → resources/music/client/requests}/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.d.ts +5 -5
- package/serialization/{types → resources/music/client/requests}/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.js +2 -2
- package/serialization/resources/music/client/requests/index.d.ts +1 -0
- package/serialization/resources/music/client/requests/index.js +3 -1
- package/serialization/resources/music/types/MusicComposeDetailedRequestOutputFormat.d.ts +10 -0
- package/serialization/resources/music/types/MusicComposeDetailedRequestOutputFormat.js +61 -0
- package/serialization/resources/music/types/index.d.ts +1 -0
- package/serialization/resources/music/types/index.js +1 -0
- package/serialization/resources/pronunciationDictionaries/client/requests/BodyUpdatePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdPatch.d.ts +13 -0
- package/serialization/resources/pronunciationDictionaries/client/requests/BodyUpdatePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdPatch.js +44 -0
- package/serialization/resources/pronunciationDictionaries/client/requests/index.d.ts +1 -0
- package/serialization/resources/pronunciationDictionaries/client/requests/index.js +3 -1
- package/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsItem.d.ts +1 -1
- package/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsItem.js +3 -0
- package/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsItem.d.ts +1 -1
- package/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsItem.js +3 -0
- package/serialization/types/AdhocAgentConfigOverrideForTestRequestModel.d.ts +15 -0
- package/serialization/types/AdhocAgentConfigOverrideForTestRequestModel.js +46 -0
- package/serialization/types/AgentFailureResponseExample.d.ts +13 -0
- package/serialization/types/AgentFailureResponseExample.js +44 -0
- package/serialization/types/AgentSuccessfulResponseExample.d.ts +13 -0
- package/serialization/types/AgentSuccessfulResponseExample.js +44 -0
- package/serialization/types/AgentTestingSettings.d.ts +2 -1
- package/serialization/types/AgentTestingSettings.js +2 -1
- package/serialization/types/AttachedTestModel.d.ts +12 -0
- package/serialization/types/AttachedTestModel.js +43 -0
- package/serialization/types/ConversationHistoryTranscriptSystemToolResultCommonModelResult.d.ts +5 -1
- package/serialization/types/ConversationHistoryTranscriptSystemToolResultCommonModelResult.js +2 -0
- package/serialization/types/CreateUnitTestRequestDynamicVariablesValue.d.ts +10 -0
- package/serialization/types/CreateUnitTestRequestDynamicVariablesValue.js +46 -0
- package/serialization/types/CreateUnitTestResponseModel.d.ts +12 -0
- package/serialization/types/CreateUnitTestResponseModel.js +43 -0
- package/serialization/types/DetailedMusicResponse.d.ts +15 -0
- package/serialization/types/DetailedMusicResponse.js +46 -0
- package/serialization/types/ExactParameterEvaluationStrategy.d.ts +12 -0
- package/serialization/types/ExactParameterEvaluationStrategy.js +43 -0
- package/serialization/types/ExtendedSubscriptionResponseModelPendingChange.d.ts +12 -0
- package/serialization/types/ExtendedSubscriptionResponseModelPendingChange.js +43 -0
- package/serialization/types/FeaturesUsageCommonModel.d.ts +2 -0
- package/serialization/types/FeaturesUsageCommonModel.js +2 -0
- package/serialization/types/GetTestSuiteInvocationResponseModel.d.ts +15 -0
- package/serialization/types/GetTestSuiteInvocationResponseModel.js +46 -0
- package/serialization/types/GetTestsPageResponseModel.d.ts +15 -0
- package/serialization/types/GetTestsPageResponseModel.js +46 -0
- package/serialization/types/GetTestsSummariesByIdsResponseModel.d.ts +13 -0
- package/serialization/types/GetTestsSummariesByIdsResponseModel.js +44 -0
- package/serialization/types/GetUnitTestResponseModel.d.ts +24 -0
- package/serialization/types/GetUnitTestResponseModel.js +57 -0
- package/serialization/types/GetUnitTestResponseModelDynamicVariablesValue.d.ts +10 -0
- package/serialization/types/GetUnitTestResponseModelDynamicVariablesValue.js +46 -0
- package/serialization/types/Llm.d.ts +1 -1
- package/serialization/types/Llm.js +2 -2
- package/serialization/types/LlmParameterEvaluationStrategy.d.ts +12 -0
- package/serialization/types/LlmParameterEvaluationStrategy.js +43 -0
- package/serialization/types/MultipartMusicResponse.d.ts +14 -0
- package/serialization/types/MultipartMusicResponse.js +45 -0
- package/serialization/types/PendingCancellationResponseModel.d.ts +13 -0
- package/serialization/types/PendingCancellationResponseModel.js +44 -0
- package/serialization/types/PendingSubscriptionSwitchResponseModel.d.ts +15 -0
- package/serialization/types/PendingSubscriptionSwitchResponseModel.js +46 -0
- package/serialization/types/PendingSubscriptionSwitchResponseModelNextTier.d.ts +10 -0
- package/serialization/types/PendingSubscriptionSwitchResponseModelNextTier.js +52 -0
- package/serialization/types/ReferencedToolCommonModel.d.ts +14 -0
- package/serialization/types/ReferencedToolCommonModel.js +45 -0
- package/serialization/types/RegexParameterEvaluationStrategy.d.ts +12 -0
- package/serialization/types/RegexParameterEvaluationStrategy.js +43 -0
- package/serialization/types/SingleTestRunRequestModel.d.ts +12 -0
- package/serialization/types/SingleTestRunRequestModel.js +43 -0
- package/serialization/types/SongMetadata.d.ts +16 -0
- package/serialization/types/SongMetadata.js +47 -0
- package/serialization/types/Subscription.d.ts +2 -0
- package/serialization/types/Subscription.js +2 -0
- package/serialization/types/TestConditionRationaleCommonModel.d.ts +13 -0
- package/serialization/types/TestConditionRationaleCommonModel.js +44 -0
- package/serialization/types/TestConditionResultCommonModel.d.ts +15 -0
- package/serialization/types/TestConditionResultCommonModel.js +46 -0
- package/serialization/types/TestRunStatus.d.ts +10 -0
- package/serialization/types/TestRunStatus.js +41 -0
- package/serialization/types/TestToolResultModel.d.ts +13 -0
- package/serialization/types/TestToolResultModel.js +44 -0
- package/serialization/types/UnitTestRunResponseModel.d.ts +21 -0
- package/serialization/types/UnitTestRunResponseModel.js +52 -0
- package/serialization/types/UnitTestSummaryResponseModel.d.ts +17 -0
- package/serialization/types/UnitTestSummaryResponseModel.js +48 -0
- package/serialization/types/UnitTestToolCallEvaluationModelInput.d.ts +15 -0
- package/serialization/types/UnitTestToolCallEvaluationModelInput.js +46 -0
- package/serialization/types/UnitTestToolCallEvaluationModelOutput.d.ts +15 -0
- package/serialization/types/UnitTestToolCallEvaluationModelOutput.js +46 -0
- package/serialization/types/UnitTestToolCallParameter.d.ts +14 -0
- package/serialization/types/UnitTestToolCallParameter.js +45 -0
- package/serialization/types/UnitTestToolCallParameterEval.d.ts +22 -0
- package/serialization/types/UnitTestToolCallParameterEval.js +53 -0
- package/serialization/types/UpdateUnitTestRequestDynamicVariablesValue.d.ts +10 -0
- package/serialization/types/UpdateUnitTestRequestDynamicVariablesValue.js +46 -0
- package/serialization/types/User.d.ts +1 -0
- package/serialization/types/User.js +1 -0
- package/serialization/types/WebhookAuthMethodType.d.ts +1 -1
- package/serialization/types/WebhookAuthMethodType.js +1 -1
- package/serialization/types/WorkflowFeaturesUsageCommonModel.d.ts +14 -0
- package/serialization/types/WorkflowFeaturesUsageCommonModel.js +45 -0
- package/serialization/types/WorkspaceApiKeyResponseModelPermissionsItem.d.ts +1 -1
- package/serialization/types/WorkspaceApiKeyResponseModelPermissionsItem.js +3 -0
- package/serialization/types/WorkspaceResourceType.d.ts +1 -1
- package/serialization/types/WorkspaceResourceType.js +0 -1
- package/serialization/types/index.d.ts +35 -1
- package/serialization/types/index.js +35 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/wrapper/ElevenLabsClient.d.ts +3 -0
- package/wrapper/ElevenLabsClient.js +8 -0
- package/wrapper/index.d.ts +1 -0
- package/wrapper/index.js +3 -1
- package/wrapper/music.d.ts +43 -0
- package/wrapper/music.js +162 -0
- /package/api/{types/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.js → client/requests/CreateUnitTestRequest.js} +0 -0
- /package/{dist/api/types/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.js → api/client/requests/ListChatResponseTestsRouteRequest.js} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests";
|
|
@@ -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,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as ElevenLabs from "../../index";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* chatHistory: [{
|
|
9
|
+
* role: "user",
|
|
10
|
+
* timeInCallSecs: 1
|
|
11
|
+
* }],
|
|
12
|
+
* successCondition: "success_condition",
|
|
13
|
+
* successExamples: [{
|
|
14
|
+
* response: "response",
|
|
15
|
+
* type: "success"
|
|
16
|
+
* }],
|
|
17
|
+
* failureExamples: [{
|
|
18
|
+
* response: "response",
|
|
19
|
+
* type: "failure"
|
|
20
|
+
* }],
|
|
21
|
+
* name: "name"
|
|
22
|
+
* }
|
|
23
|
+
*/
|
|
24
|
+
export interface CreateUnitTestRequest {
|
|
25
|
+
chatHistory: ElevenLabs.ConversationHistoryTranscriptCommonModelInput[];
|
|
26
|
+
/** A prompt that evaluates whether the agent's response is successful. Should return True or False. */
|
|
27
|
+
successCondition: string;
|
|
28
|
+
/** Non-empty list of example responses that should be considered successful */
|
|
29
|
+
successExamples: ElevenLabs.AgentSuccessfulResponseExample[];
|
|
30
|
+
/** Non-empty list of example responses that should be considered failures */
|
|
31
|
+
failureExamples: ElevenLabs.AgentFailureResponseExample[];
|
|
32
|
+
/** How to evaluate the agent's tool call (if any). If empty, the tool call is not evaluated. */
|
|
33
|
+
toolCallParameters?: ElevenLabs.UnitTestToolCallEvaluationModelInput;
|
|
34
|
+
/** Dynamic variables to replace in the agent config during testing */
|
|
35
|
+
dynamicVariables?: Record<string, ElevenLabs.CreateUnitTestRequestDynamicVariablesValue | undefined>;
|
|
36
|
+
name: string;
|
|
37
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {}
|
|
7
|
+
*/
|
|
8
|
+
export interface ListChatResponseTestsRouteRequest {
|
|
9
|
+
/**
|
|
10
|
+
* Used for fetching next page. Cursor is returned in the response.
|
|
11
|
+
*/
|
|
12
|
+
cursor?: string;
|
|
13
|
+
/**
|
|
14
|
+
* How many Tests to return at maximum. Can not exceed 100, defaults to 30.
|
|
15
|
+
*/
|
|
16
|
+
pageSize?: number;
|
|
17
|
+
/**
|
|
18
|
+
* Search query to filter tests by name.
|
|
19
|
+
*/
|
|
20
|
+
search?: string;
|
|
21
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* testIds: ["test_id_1", "test_id_2"]
|
|
8
|
+
* }
|
|
9
|
+
*/
|
|
10
|
+
export interface ListTestsByIdsRequestModel {
|
|
11
|
+
/** List of test IDs to fetch. No duplicates allowed. */
|
|
12
|
+
testIds: string[];
|
|
13
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as ElevenLabs from "../../index";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* testRunIds: ["test_run_ids"],
|
|
9
|
+
* agentId: "agent_id"
|
|
10
|
+
* }
|
|
11
|
+
*/
|
|
12
|
+
export interface ResubmitTestsRequestModel {
|
|
13
|
+
/** List of test run IDs to resubmit */
|
|
14
|
+
testRunIds: string[];
|
|
15
|
+
/** Configuration overrides to use for testing. If not provided, the agent's default configuration will be used. */
|
|
16
|
+
agentConfigOverride?: ElevenLabs.AdhocAgentConfigOverrideForTestRequestModel;
|
|
17
|
+
/** Agent ID to resubmit tests for */
|
|
18
|
+
agentId: string;
|
|
19
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as ElevenLabs from "../../index";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* tests: [{
|
|
9
|
+
* testId: "test_id"
|
|
10
|
+
* }]
|
|
11
|
+
* }
|
|
12
|
+
*/
|
|
13
|
+
export interface RunAgentTestsRequestModel {
|
|
14
|
+
/** List of tests to run on the agent */
|
|
15
|
+
tests: ElevenLabs.SingleTestRunRequestModel[];
|
|
16
|
+
/** Configuration overrides to use for testing. If not provided, the agent's default configuration will be used. */
|
|
17
|
+
agentConfigOverride?: ElevenLabs.AdhocAgentConfigOverrideForTestRequestModel;
|
|
18
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as ElevenLabs from "../../index";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* chatHistory: [{
|
|
9
|
+
* role: "user",
|
|
10
|
+
* timeInCallSecs: 1
|
|
11
|
+
* }],
|
|
12
|
+
* successCondition: "success_condition",
|
|
13
|
+
* successExamples: [{
|
|
14
|
+
* response: "response",
|
|
15
|
+
* type: "success"
|
|
16
|
+
* }],
|
|
17
|
+
* failureExamples: [{
|
|
18
|
+
* response: "response",
|
|
19
|
+
* type: "failure"
|
|
20
|
+
* }],
|
|
21
|
+
* name: "name"
|
|
22
|
+
* }
|
|
23
|
+
*/
|
|
24
|
+
export interface UpdateUnitTestRequest {
|
|
25
|
+
chatHistory: ElevenLabs.ConversationHistoryTranscriptCommonModelInput[];
|
|
26
|
+
/** A prompt that evaluates whether the agent's response is successful. Should return True or False. */
|
|
27
|
+
successCondition: string;
|
|
28
|
+
/** Non-empty list of example responses that should be considered successful */
|
|
29
|
+
successExamples: ElevenLabs.AgentSuccessfulResponseExample[];
|
|
30
|
+
/** Non-empty list of example responses that should be considered failures */
|
|
31
|
+
failureExamples: ElevenLabs.AgentFailureResponseExample[];
|
|
32
|
+
/** How to evaluate the agent's tool call (if any). If empty, the tool call is not evaluated. */
|
|
33
|
+
toolCallParameters?: ElevenLabs.UnitTestToolCallEvaluationModelInput;
|
|
34
|
+
/** Dynamic variables to replace in the agent config during testing */
|
|
35
|
+
dynamicVariables?: Record<string, ElevenLabs.UpdateUnitTestRequestDynamicVariablesValue | undefined>;
|
|
36
|
+
name: string;
|
|
37
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { type CreateUnitTestRequest } from "./CreateUnitTestRequest";
|
|
2
|
+
export { type UpdateUnitTestRequest } from "./UpdateUnitTestRequest";
|
|
3
|
+
export { type ListTestsByIdsRequestModel } from "./ListTestsByIdsRequestModel";
|
|
4
|
+
export { type ListChatResponseTestsRouteRequest } from "./ListChatResponseTestsRouteRequest";
|
|
5
|
+
export { type RunAgentTestsRequestModel } from "./RunAgentTestsRequestModel";
|
|
6
|
+
export { type ResubmitTestsRequestModel } from "./ResubmitTestsRequestModel";
|
package/dist/api/index.d.ts
CHANGED
package/dist/api/index.js
CHANGED
|
@@ -31,7 +31,7 @@ export declare class Tools {
|
|
|
31
31
|
protected readonly _options: Tools.Options;
|
|
32
32
|
constructor(_options?: Tools.Options);
|
|
33
33
|
/**
|
|
34
|
-
* Get all available tools
|
|
34
|
+
* Get all available tools in the workspace.
|
|
35
35
|
*
|
|
36
36
|
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
37
37
|
*
|
|
@@ -39,6 +39,12 @@ export declare class Music {
|
|
|
39
39
|
*/
|
|
40
40
|
compose(request?: ElevenLabs.BodyComposeMusicV1MusicPost, requestOptions?: Music.RequestOptions): core.HttpResponsePromise<ReadableStream<Uint8Array>>;
|
|
41
41
|
private __compose;
|
|
42
|
+
/**
|
|
43
|
+
* Compose a song from a prompt or a composition plan.
|
|
44
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
45
|
+
*/
|
|
46
|
+
composeDetailed(request?: ElevenLabs.BodyComposeMusicWithADetailedResponseV1MusicDetailedPost, requestOptions?: Music.RequestOptions): core.HttpResponsePromise<ReadableStream<Uint8Array>>;
|
|
47
|
+
private __composeDetailed;
|
|
42
48
|
/**
|
|
43
49
|
* Stream a composed song from a prompt or a composition plan.
|
|
44
50
|
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
@@ -139,6 +139,73 @@ class Music {
|
|
|
139
139
|
}
|
|
140
140
|
});
|
|
141
141
|
}
|
|
142
|
+
/**
|
|
143
|
+
* Compose a song from a prompt or a composition plan.
|
|
144
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
145
|
+
*/
|
|
146
|
+
composeDetailed(request = {}, requestOptions) {
|
|
147
|
+
return core.HttpResponsePromise.fromPromise(this.__composeDetailed(request, requestOptions));
|
|
148
|
+
}
|
|
149
|
+
__composeDetailed() {
|
|
150
|
+
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
151
|
+
var _a, _b, _c;
|
|
152
|
+
const { outputFormat } = request, _body = __rest(request, ["outputFormat"]);
|
|
153
|
+
const _queryParams = {};
|
|
154
|
+
if (outputFormat != null) {
|
|
155
|
+
_queryParams["output_format"] = serializers.MusicComposeDetailedRequestOutputFormat.jsonOrThrow(outputFormat, { unrecognizedObjectKeys: "strip" });
|
|
156
|
+
}
|
|
157
|
+
const _response = yield core.fetcher({
|
|
158
|
+
url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, "v1/music/detailed"),
|
|
159
|
+
method: "POST",
|
|
160
|
+
headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
161
|
+
contentType: "application/json",
|
|
162
|
+
queryParameters: _queryParams,
|
|
163
|
+
requestType: "json",
|
|
164
|
+
body: serializers.BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.jsonOrThrow(_body, {
|
|
165
|
+
unrecognizedObjectKeys: "strip",
|
|
166
|
+
}),
|
|
167
|
+
responseType: "streaming",
|
|
168
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
|
|
169
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
170
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
171
|
+
});
|
|
172
|
+
if (_response.ok) {
|
|
173
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
174
|
+
}
|
|
175
|
+
if (_response.error.reason === "status-code") {
|
|
176
|
+
switch (_response.error.statusCode) {
|
|
177
|
+
case 422:
|
|
178
|
+
throw new ElevenLabs.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
179
|
+
unrecognizedObjectKeys: "passthrough",
|
|
180
|
+
allowUnrecognizedUnionMembers: true,
|
|
181
|
+
allowUnrecognizedEnumValues: true,
|
|
182
|
+
breadcrumbsPrefix: ["response"],
|
|
183
|
+
}), _response.rawResponse);
|
|
184
|
+
default:
|
|
185
|
+
throw new errors.ElevenLabsError({
|
|
186
|
+
statusCode: _response.error.statusCode,
|
|
187
|
+
body: _response.error.body,
|
|
188
|
+
rawResponse: _response.rawResponse,
|
|
189
|
+
});
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
switch (_response.error.reason) {
|
|
193
|
+
case "non-json":
|
|
194
|
+
throw new errors.ElevenLabsError({
|
|
195
|
+
statusCode: _response.error.statusCode,
|
|
196
|
+
body: _response.error.rawBody,
|
|
197
|
+
rawResponse: _response.rawResponse,
|
|
198
|
+
});
|
|
199
|
+
case "timeout":
|
|
200
|
+
throw new errors.ElevenLabsTimeoutError("Timeout exceeded when calling POST /v1/music/detailed.");
|
|
201
|
+
case "unknown":
|
|
202
|
+
throw new errors.ElevenLabsError({
|
|
203
|
+
message: _response.error.errorMessage,
|
|
204
|
+
rawResponse: _response.rawResponse,
|
|
205
|
+
});
|
|
206
|
+
}
|
|
207
|
+
});
|
|
208
|
+
}
|
|
142
209
|
/**
|
|
143
210
|
* Stream a composed song from a prompt or a composition plan.
|
|
144
211
|
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as ElevenLabs from "
|
|
4
|
+
import * as ElevenLabs from "../../../../index";
|
|
5
5
|
export interface BodyComposeMusicWithADetailedResponseV1MusicDetailedPost {
|
|
6
|
+
/**
|
|
7
|
+
* Output format of the generated audio. Formatted as codec_sample_rate_bitrate. So an mp3 with 22.05kHz sample rate at 32kbs is represented as mp3_22050_32. MP3 with 192kbps bitrate requires you to be subscribed to Creator tier or above. PCM with 44.1kHz sample rate requires you to be subscribed to Pro tier or above. Note that the μ-law format (sometimes written mu-law, often approximated as u-law) is commonly used for Twilio audio inputs.
|
|
8
|
+
*/
|
|
9
|
+
outputFormat?: ElevenLabs.MusicComposeDetailedRequestOutputFormat;
|
|
6
10
|
/** A simple text prompt to generate a song from. Cannot be used in conjunction with `composition_plan`. */
|
|
7
11
|
prompt?: string;
|
|
8
12
|
/** A music prompt. Deprecated. Use `composition_plan` instead. */
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
export { type BodyComposeMusicV1MusicPost } from "./BodyComposeMusicV1MusicPost";
|
|
2
|
+
export { type BodyComposeMusicWithADetailedResponseV1MusicDetailedPost } from "./BodyComposeMusicWithADetailedResponseV1MusicDetailedPost";
|
|
2
3
|
export { type BodyStreamComposedMusicV1MusicStreamPost } from "./BodyStreamComposedMusicV1MusicStreamPost";
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Output format of the generated audio. Formatted as codec_sample_rate_bitrate. So an mp3 with 22.05kHz sample rate at 32kbs is represented as mp3_22050_32. MP3 with 192kbps bitrate requires you to be subscribed to Creator tier or above. PCM with 44.1kHz sample rate requires you to be subscribed to Pro tier or above. Note that the μ-law format (sometimes written mu-law, often approximated as u-law) is commonly used for Twilio audio inputs.
|
|
6
|
+
*/
|
|
7
|
+
export type MusicComposeDetailedRequestOutputFormat = "mp3_22050_32" | "mp3_44100_32" | "mp3_44100_64" | "mp3_44100_96" | "mp3_44100_128" | "mp3_44100_192" | "pcm_8000" | "pcm_16000" | "pcm_22050" | "pcm_24000" | "pcm_44100" | "pcm_48000" | "ulaw_8000" | "alaw_8000" | "opus_48000_32" | "opus_48000_64" | "opus_48000_96" | "opus_48000_128" | "opus_48000_192";
|
|
8
|
+
export declare const MusicComposeDetailedRequestOutputFormat: {
|
|
9
|
+
readonly Mp32205032: "mp3_22050_32";
|
|
10
|
+
readonly Mp34410032: "mp3_44100_32";
|
|
11
|
+
readonly Mp34410064: "mp3_44100_64";
|
|
12
|
+
readonly Mp34410096: "mp3_44100_96";
|
|
13
|
+
readonly Mp344100128: "mp3_44100_128";
|
|
14
|
+
readonly Mp344100192: "mp3_44100_192";
|
|
15
|
+
readonly Pcm8000: "pcm_8000";
|
|
16
|
+
readonly Pcm16000: "pcm_16000";
|
|
17
|
+
readonly Pcm22050: "pcm_22050";
|
|
18
|
+
readonly Pcm24000: "pcm_24000";
|
|
19
|
+
readonly Pcm44100: "pcm_44100";
|
|
20
|
+
readonly Pcm48000: "pcm_48000";
|
|
21
|
+
readonly Ulaw8000: "ulaw_8000";
|
|
22
|
+
readonly Alaw8000: "alaw_8000";
|
|
23
|
+
readonly Opus4800032: "opus_48000_32";
|
|
24
|
+
readonly Opus4800064: "opus_48000_64";
|
|
25
|
+
readonly Opus4800096: "opus_48000_96";
|
|
26
|
+
readonly Opus48000128: "opus_48000_128";
|
|
27
|
+
readonly Opus48000192: "opus_48000_192";
|
|
28
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.MusicComposeDetailedRequestOutputFormat = void 0;
|
|
7
|
+
exports.MusicComposeDetailedRequestOutputFormat = {
|
|
8
|
+
Mp32205032: "mp3_22050_32",
|
|
9
|
+
Mp34410032: "mp3_44100_32",
|
|
10
|
+
Mp34410064: "mp3_44100_64",
|
|
11
|
+
Mp34410096: "mp3_44100_96",
|
|
12
|
+
Mp344100128: "mp3_44100_128",
|
|
13
|
+
Mp344100192: "mp3_44100_192",
|
|
14
|
+
Pcm8000: "pcm_8000",
|
|
15
|
+
Pcm16000: "pcm_16000",
|
|
16
|
+
Pcm22050: "pcm_22050",
|
|
17
|
+
Pcm24000: "pcm_24000",
|
|
18
|
+
Pcm44100: "pcm_44100",
|
|
19
|
+
Pcm48000: "pcm_48000",
|
|
20
|
+
Ulaw8000: "ulaw_8000",
|
|
21
|
+
Alaw8000: "alaw_8000",
|
|
22
|
+
Opus4800032: "opus_48000_32",
|
|
23
|
+
Opus4800064: "opus_48000_64",
|
|
24
|
+
Opus4800096: "opus_48000_96",
|
|
25
|
+
Opus48000128: "opus_48000_128",
|
|
26
|
+
Opus48000192: "opus_48000_192",
|
|
27
|
+
};
|
|
@@ -15,4 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./MusicComposeRequestOutputFormat"), exports);
|
|
18
|
+
__exportStar(require("./MusicComposeDetailedRequestOutputFormat"), exports);
|
|
18
19
|
__exportStar(require("./MusicStreamRequestOutputFormat"), exports);
|
|
@@ -68,12 +68,6 @@ export declare class PronunciationDictionaries {
|
|
|
68
68
|
*/
|
|
69
69
|
createFromRules(request: ElevenLabs.BodyAddAPronunciationDictionaryV1PronunciationDictionariesAddFromRulesPost, requestOptions?: PronunciationDictionaries.RequestOptions): core.HttpResponsePromise<ElevenLabs.AddPronunciationDictionaryResponseModel>;
|
|
70
70
|
private __createFromRules;
|
|
71
|
-
/**
|
|
72
|
-
* Get a PLS file with a pronunciation dictionary version rules
|
|
73
|
-
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
74
|
-
*/
|
|
75
|
-
download(dictionaryId: string, versionId: string, requestOptions?: PronunciationDictionaries.RequestOptions): core.HttpResponsePromise<ReadableStream<Uint8Array>>;
|
|
76
|
-
private __download;
|
|
77
71
|
/**
|
|
78
72
|
* Get metadata for a pronunciation dictionary
|
|
79
73
|
*
|
|
@@ -87,6 +81,26 @@ export declare class PronunciationDictionaries {
|
|
|
87
81
|
*/
|
|
88
82
|
get(pronunciationDictionaryId: string, requestOptions?: PronunciationDictionaries.RequestOptions): core.HttpResponsePromise<ElevenLabs.GetPronunciationDictionaryMetadataResponse>;
|
|
89
83
|
private __get;
|
|
84
|
+
/**
|
|
85
|
+
* Partially update the pronunciation dictionary without changing the version
|
|
86
|
+
*
|
|
87
|
+
* @param {string} pronunciationDictionaryId - The id of the pronunciation dictionary
|
|
88
|
+
* @param {ElevenLabs.BodyUpdatePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdPatch} request
|
|
89
|
+
* @param {PronunciationDictionaries.RequestOptions} requestOptions - Request-specific configuration.
|
|
90
|
+
*
|
|
91
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
92
|
+
*
|
|
93
|
+
* @example
|
|
94
|
+
* await client.pronunciationDictionaries.update("21m00Tcm4TlvDq8ikWAM")
|
|
95
|
+
*/
|
|
96
|
+
update(pronunciationDictionaryId: string, request?: ElevenLabs.BodyUpdatePronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdPatch, requestOptions?: PronunciationDictionaries.RequestOptions): core.HttpResponsePromise<ElevenLabs.GetPronunciationDictionaryMetadataResponse>;
|
|
97
|
+
private __update;
|
|
98
|
+
/**
|
|
99
|
+
* Get a PLS file with a pronunciation dictionary version rules
|
|
100
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
101
|
+
*/
|
|
102
|
+
download(dictionaryId: string, versionId: string, requestOptions?: PronunciationDictionaries.RequestOptions): core.HttpResponsePromise<ReadableStream<Uint8Array>>;
|
|
103
|
+
private __download;
|
|
90
104
|
/**
|
|
91
105
|
* Get a list of the pronunciation dictionaries you have access to and their metadata
|
|
92
106
|
*
|