@elevenlabs/elevenlabs-js 2.33.0 → 2.34.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/BaseClient.js +2 -2
- package/Client.d.ts +8 -0
- package/Client.js +37 -0
- package/api/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.d.ts +2 -0
- package/api/resources/conversationalAi/resources/agents/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/agents/index.js +1 -0
- package/api/resources/conversationalAi/resources/agents/resources/branches/client/requests/BodyUpdateAgentBranchV1ConvaiAgentsAgentIdBranchesBranchIdPatch.d.ts +2 -0
- package/api/resources/conversationalAi/resources/agents/types/BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchProcedureRefsItem.d.ts +2 -0
- package/api/resources/conversationalAi/resources/agents/types/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/agents/types/index.js +17 -0
- package/api/resources/conversationalAi/resources/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/index.js +1 -0
- package/api/resources/conversationalAi/resources/secrets/client/Client.d.ts +6 -2
- package/api/resources/conversationalAi/resources/secrets/client/Client.js +18 -6
- package/api/resources/conversationalAi/resources/secrets/client/requests/SecretsListRequest.d.ts +13 -0
- package/api/resources/conversationalAi/resources/secrets/client/requests/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/tests/client/requests/CreateUnitTestRequest.d.ts +2 -0
- package/api/resources/conversationalAi/resources/tests/client/requests/UpdateUnitTestRequest.d.ts +2 -0
- package/api/resources/conversationalAi/resources/whatsappAccounts/client/Client.d.ts +12 -29
- package/api/resources/conversationalAi/resources/whatsappAccounts/client/Client.js +49 -118
- package/api/resources/conversationalAi/resources/whatsappAccounts/client/requests/index.d.ts +0 -1
- package/api/resources/textToDialogue/client/Client.d.ts +1 -1
- package/api/resources/textToDialogue/client/Client.js +3 -7
- package/api/resources/textToDialogue/client/requests/BodyTextToDialogueFullWithTimestamps.d.ts +4 -4
- package/api/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceStreamingV1TextToDialogueStreamPost.d.ts +1 -1
- package/api/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceV1TextToDialoguePost.d.ts +3 -3
- package/api/resources/textToDialogue/client/requests/BodyTextToDialogueStreamWithTimestamps.d.ts +1 -1
- package/api/resources/textToDialogue/types/TextToDialogueConvertRequestOutputFormat.d.ts +32 -0
- package/api/resources/textToDialogue/types/TextToDialogueConvertRequestOutputFormat.js +35 -0
- package/api/resources/textToDialogue/types/TextToDialogueConvertWithTimestampsRequestOutputFormat.d.ts +32 -0
- package/api/resources/textToDialogue/types/TextToDialogueConvertWithTimestampsRequestOutputFormat.js +35 -0
- package/api/resources/textToDialogue/types/index.d.ts +2 -0
- package/api/resources/textToDialogue/types/index.js +2 -0
- package/api/resources/workspace/resources/groups/resources/members/client/Client.d.ts +2 -2
- package/api/resources/workspace/resources/groups/resources/members/client/Client.js +2 -2
- package/api/resources/workspace/resources/invites/client/Client.d.ts +3 -3
- package/api/resources/workspace/resources/invites/client/Client.js +3 -3
- package/api/types/AlignmentGuardrail.d.ts +3 -0
- package/api/types/ApiIntegrationWebhookOverridesInput.d.ts +2 -0
- package/api/types/ApiIntegrationWebhookOverridesOutput.d.ts +2 -0
- package/api/types/ConversationHistoryTranscriptApiIntegrationWebhookToolsResultCommonModel.d.ts +1 -0
- package/api/types/ConversationHistoryTranscriptOtherToolsResultCommonModel.d.ts +1 -0
- package/api/types/ConversationHistoryTranscriptSystemToolResultCommonModel.d.ts +1 -0
- package/api/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelInput.d.ts +1 -0
- package/api/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelOutput.d.ts +1 -0
- package/api/types/ConversationTurnMetrics.d.ts +1 -0
- package/api/types/DirectPublishingReadResponseModel.d.ts +1 -0
- package/api/types/GetUnitTestResponseModel.d.ts +2 -0
- package/api/types/GetWorkspaceSecretsResponseModel.d.ts +4 -0
- package/api/types/GuardrailsV1Input.d.ts +1 -0
- package/api/types/GuardrailsV1Output.d.ts +1 -0
- package/api/types/InvoiceResponse.d.ts +1 -1
- package/api/types/NonStreamingOutputFormats.d.ts +10 -0
- package/api/types/NonStreamingOutputFormats.js +13 -0
- package/api/types/PermissionType.d.ts +6 -0
- package/api/types/PermissionType.js +6 -0
- package/api/types/ProcedureDraftRef.d.ts +4 -0
- package/api/types/ProcedureVersionRef.d.ts +6 -0
- package/api/types/ProcedureVersionRef.js +3 -0
- package/api/types/ResponseFilterMode.d.ts +6 -0
- package/api/types/ResponseFilterMode.js +9 -0
- package/api/types/SongMetadata.d.ts +0 -4
- package/api/types/TurnConfig.d.ts +2 -0
- package/api/types/TurnConfigWorkflowOverride.d.ts +2 -0
- package/api/types/UnitTestCommonModel.d.ts +2 -0
- package/api/types/User.d.ts +2 -0
- package/api/types/index.d.ts +5 -1
- package/api/types/index.js +5 -1
- package/dist/BaseClient.js +2 -2
- package/dist/Client.d.ts +8 -0
- package/dist/Client.js +37 -0
- package/dist/api/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.d.ts +2 -0
- package/dist/api/resources/conversationalAi/resources/agents/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/agents/index.js +1 -0
- package/dist/api/resources/conversationalAi/resources/agents/resources/branches/client/requests/BodyUpdateAgentBranchV1ConvaiAgentsAgentIdBranchesBranchIdPatch.d.ts +2 -0
- package/dist/api/resources/conversationalAi/resources/agents/types/BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchProcedureRefsItem.d.ts +2 -0
- package/dist/api/resources/conversationalAi/resources/agents/types/BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchProcedureRefsItem.js +3 -0
- package/dist/api/resources/conversationalAi/resources/agents/types/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/agents/types/index.js +17 -0
- package/dist/api/resources/conversationalAi/resources/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/index.js +1 -0
- package/dist/api/resources/conversationalAi/resources/secrets/client/Client.d.ts +6 -2
- package/dist/api/resources/conversationalAi/resources/secrets/client/Client.js +18 -6
- package/dist/api/resources/conversationalAi/resources/secrets/client/requests/SecretsListRequest.d.ts +13 -0
- package/dist/api/resources/conversationalAi/resources/secrets/client/requests/SecretsListRequest.js +3 -0
- package/dist/api/resources/conversationalAi/resources/secrets/client/requests/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/tests/client/requests/CreateUnitTestRequest.d.ts +2 -0
- package/dist/api/resources/conversationalAi/resources/tests/client/requests/UpdateUnitTestRequest.d.ts +2 -0
- package/dist/api/resources/conversationalAi/resources/whatsappAccounts/client/Client.d.ts +12 -29
- package/dist/api/resources/conversationalAi/resources/whatsappAccounts/client/Client.js +49 -118
- package/dist/api/resources/conversationalAi/resources/whatsappAccounts/client/requests/index.d.ts +0 -1
- package/dist/api/resources/textToDialogue/client/Client.d.ts +1 -1
- package/dist/api/resources/textToDialogue/client/Client.js +3 -7
- package/dist/api/resources/textToDialogue/client/requests/BodyTextToDialogueFullWithTimestamps.d.ts +4 -4
- package/dist/api/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceStreamingV1TextToDialogueStreamPost.d.ts +1 -1
- package/dist/api/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceV1TextToDialoguePost.d.ts +3 -3
- package/dist/api/resources/textToDialogue/client/requests/BodyTextToDialogueStreamWithTimestamps.d.ts +1 -1
- package/dist/api/resources/textToDialogue/types/TextToDialogueConvertRequestOutputFormat.d.ts +32 -0
- package/dist/api/resources/textToDialogue/types/TextToDialogueConvertRequestOutputFormat.js +35 -0
- package/dist/api/resources/textToDialogue/types/TextToDialogueConvertWithTimestampsRequestOutputFormat.d.ts +32 -0
- package/dist/api/resources/textToDialogue/types/TextToDialogueConvertWithTimestampsRequestOutputFormat.js +35 -0
- package/dist/api/resources/textToDialogue/types/index.d.ts +2 -0
- package/dist/api/resources/textToDialogue/types/index.js +2 -0
- package/dist/api/resources/workspace/resources/groups/resources/members/client/Client.d.ts +2 -2
- package/dist/api/resources/workspace/resources/groups/resources/members/client/Client.js +2 -2
- package/dist/api/resources/workspace/resources/invites/client/Client.d.ts +3 -3
- package/dist/api/resources/workspace/resources/invites/client/Client.js +3 -3
- package/dist/api/types/AlignmentGuardrail.d.ts +3 -0
- package/dist/api/types/AlignmentGuardrail.js +3 -0
- package/dist/api/types/ApiIntegrationWebhookOverridesInput.d.ts +2 -0
- package/dist/api/types/ApiIntegrationWebhookOverridesOutput.d.ts +2 -0
- package/dist/api/types/ConversationHistoryTranscriptApiIntegrationWebhookToolsResultCommonModel.d.ts +1 -0
- package/dist/api/types/ConversationHistoryTranscriptOtherToolsResultCommonModel.d.ts +1 -0
- package/dist/api/types/ConversationHistoryTranscriptSystemToolResultCommonModel.d.ts +1 -0
- package/dist/api/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelInput.d.ts +1 -0
- package/dist/api/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelOutput.d.ts +1 -0
- package/dist/api/types/ConversationTurnMetrics.d.ts +1 -0
- package/dist/api/types/DirectPublishingReadResponseModel.d.ts +1 -0
- package/dist/api/types/GetUnitTestResponseModel.d.ts +2 -0
- package/dist/api/types/GetWorkspaceSecretsResponseModel.d.ts +4 -0
- package/dist/api/types/GuardrailsV1Input.d.ts +1 -0
- package/dist/api/types/GuardrailsV1Output.d.ts +1 -0
- package/dist/api/types/InvoiceResponse.d.ts +1 -1
- package/dist/api/types/NonStreamingOutputFormats.d.ts +10 -0
- package/dist/api/types/NonStreamingOutputFormats.js +13 -0
- package/dist/api/types/PermissionType.d.ts +6 -0
- package/dist/api/types/PermissionType.js +6 -0
- package/dist/api/types/ProcedureDraftRef.d.ts +4 -0
- package/dist/api/types/ProcedureDraftRef.js +3 -0
- package/dist/api/types/ProcedureVersionRef.d.ts +6 -0
- package/dist/api/types/ProcedureVersionRef.js +3 -0
- package/dist/api/types/ResponseFilterMode.d.ts +6 -0
- package/dist/api/types/ResponseFilterMode.js +9 -0
- package/dist/api/types/SongMetadata.d.ts +0 -4
- package/dist/api/types/TurnConfig.d.ts +2 -0
- package/dist/api/types/TurnConfigWorkflowOverride.d.ts +2 -0
- package/dist/api/types/UnitTestCommonModel.d.ts +2 -0
- package/dist/api/types/User.d.ts +2 -0
- package/dist/api/types/index.d.ts +5 -1
- package/dist/api/types/index.js +5 -1
- package/dist/serialization/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.d.ts +2 -0
- package/dist/serialization/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.js +2 -0
- package/dist/serialization/resources/conversationalAi/resources/agents/index.d.ts +1 -0
- package/dist/serialization/resources/conversationalAi/resources/agents/index.js +1 -0
- package/dist/serialization/resources/conversationalAi/resources/agents/resources/branches/client/requests/BodyUpdateAgentBranchV1ConvaiAgentsAgentIdBranchesBranchIdPatch.d.ts +1 -0
- package/dist/serialization/resources/conversationalAi/resources/agents/resources/branches/client/requests/BodyUpdateAgentBranchV1ConvaiAgentsAgentIdBranchesBranchIdPatch.js +1 -0
- package/dist/serialization/resources/conversationalAi/resources/agents/types/BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchProcedureRefsItem.d.ts +9 -0
- package/dist/serialization/resources/conversationalAi/resources/agents/types/BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchProcedureRefsItem.js +41 -0
- package/dist/serialization/resources/conversationalAi/resources/agents/types/index.d.ts +1 -0
- package/dist/serialization/resources/conversationalAi/resources/agents/types/index.js +17 -0
- package/dist/serialization/resources/conversationalAi/resources/index.d.ts +1 -0
- package/dist/serialization/resources/conversationalAi/resources/index.js +1 -0
- package/dist/serialization/resources/conversationalAi/resources/tests/client/requests/CreateUnitTestRequest.d.ts +1 -0
- package/dist/serialization/resources/conversationalAi/resources/tests/client/requests/CreateUnitTestRequest.js +1 -0
- package/dist/serialization/resources/conversationalAi/resources/tests/client/requests/UpdateUnitTestRequest.d.ts +1 -0
- package/dist/serialization/resources/conversationalAi/resources/tests/client/requests/UpdateUnitTestRequest.js +1 -0
- package/dist/serialization/resources/conversationalAi/resources/whatsappAccounts/client/requests/index.d.ts +0 -1
- package/dist/serialization/resources/conversationalAi/resources/whatsappAccounts/client/requests/index.js +1 -3
- package/dist/serialization/resources/textToDialogue/types/TextToDialogueConvertRequestOutputFormat.d.ts +7 -0
- package/dist/serialization/resources/textToDialogue/types/TextToDialogueConvertRequestOutputFormat.js +68 -0
- package/dist/serialization/resources/textToDialogue/types/TextToDialogueConvertWithTimestampsRequestOutputFormat.d.ts +7 -0
- package/dist/serialization/resources/textToDialogue/types/TextToDialogueConvertWithTimestampsRequestOutputFormat.js +68 -0
- package/dist/serialization/resources/textToDialogue/types/index.d.ts +2 -0
- package/dist/serialization/resources/textToDialogue/types/index.js +2 -0
- package/dist/serialization/types/AlignmentGuardrail.d.ts +9 -0
- package/dist/serialization/types/{ImportWhatsAppAccountResponse.js → AlignmentGuardrail.js} +3 -3
- package/dist/serialization/types/ApiIntegrationWebhookOverridesInput.d.ts +3 -0
- package/dist/serialization/types/ApiIntegrationWebhookOverridesInput.js +3 -0
- package/dist/serialization/types/ApiIntegrationWebhookOverridesOutput.d.ts +3 -0
- package/dist/serialization/types/ApiIntegrationWebhookOverridesOutput.js +3 -0
- package/dist/serialization/types/ConversationHistoryTranscriptApiIntegrationWebhookToolsResultCommonModel.d.ts +1 -0
- package/dist/serialization/types/ConversationHistoryTranscriptApiIntegrationWebhookToolsResultCommonModel.js +1 -0
- package/dist/serialization/types/ConversationHistoryTranscriptOtherToolsResultCommonModel.d.ts +1 -0
- package/dist/serialization/types/ConversationHistoryTranscriptOtherToolsResultCommonModel.js +1 -0
- package/dist/serialization/types/ConversationHistoryTranscriptSystemToolResultCommonModel.d.ts +1 -0
- package/dist/serialization/types/ConversationHistoryTranscriptSystemToolResultCommonModel.js +1 -0
- package/dist/serialization/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelInput.d.ts +1 -0
- package/dist/serialization/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelInput.js +1 -0
- package/dist/serialization/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelOutput.d.ts +1 -0
- package/dist/serialization/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelOutput.js +1 -0
- package/dist/serialization/types/ConversationTurnMetrics.d.ts +1 -0
- package/dist/serialization/types/ConversationTurnMetrics.js +1 -0
- package/dist/serialization/types/DirectPublishingReadResponseModel.d.ts +1 -0
- package/dist/serialization/types/DirectPublishingReadResponseModel.js +1 -0
- package/dist/serialization/types/GetUnitTestResponseModel.d.ts +1 -0
- package/dist/serialization/types/GetUnitTestResponseModel.js +1 -0
- package/dist/serialization/types/GetWorkspaceSecretsResponseModel.d.ts +2 -0
- package/dist/serialization/types/GetWorkspaceSecretsResponseModel.js +2 -0
- package/dist/serialization/types/GuardrailsV1Input.d.ts +2 -0
- package/dist/serialization/types/GuardrailsV1Input.js +2 -0
- package/dist/serialization/types/GuardrailsV1Output.d.ts +2 -0
- package/dist/serialization/types/GuardrailsV1Output.js +2 -0
- package/dist/serialization/types/NonStreamingOutputFormats.d.ts +7 -0
- package/dist/serialization/types/NonStreamingOutputFormats.js +47 -0
- package/dist/serialization/types/PermissionType.d.ts +1 -1
- package/dist/serialization/types/PermissionType.js +6 -0
- package/dist/serialization/types/ProcedureDraftRef.d.ts +9 -0
- package/{serialization/types/ImportWhatsAppAccountResponse.js → dist/serialization/types/ProcedureDraftRef.js} +3 -3
- package/dist/serialization/types/ProcedureVersionRef.d.ts +10 -0
- package/dist/serialization/{resources/conversationalAi/resources/whatsappAccounts/client/requests/ImportWhatsAppAccountRequest.js → types/ProcedureVersionRef.js} +5 -6
- package/dist/serialization/types/ResponseFilterMode.d.ts +7 -0
- package/dist/serialization/types/ResponseFilterMode.js +39 -0
- package/dist/serialization/types/SongMetadata.d.ts +0 -2
- package/dist/serialization/types/SongMetadata.js +0 -2
- package/dist/serialization/types/TurnConfig.d.ts +1 -0
- package/dist/serialization/types/TurnConfig.js +1 -0
- package/dist/serialization/types/TurnConfigWorkflowOverride.d.ts +1 -0
- package/dist/serialization/types/TurnConfigWorkflowOverride.js +1 -0
- package/dist/serialization/types/UnitTestCommonModel.d.ts +1 -0
- package/dist/serialization/types/UnitTestCommonModel.js +1 -0
- package/dist/serialization/types/User.d.ts +1 -0
- package/dist/serialization/types/User.js +1 -0
- package/dist/serialization/types/index.d.ts +5 -1
- package/dist/serialization/types/index.js +5 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +40 -96
- package/serialization/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.d.ts +2 -0
- package/serialization/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.js +2 -0
- package/serialization/resources/conversationalAi/resources/agents/index.d.ts +1 -0
- package/serialization/resources/conversationalAi/resources/agents/index.js +1 -0
- package/serialization/resources/conversationalAi/resources/agents/resources/branches/client/requests/BodyUpdateAgentBranchV1ConvaiAgentsAgentIdBranchesBranchIdPatch.d.ts +1 -0
- package/serialization/resources/conversationalAi/resources/agents/resources/branches/client/requests/BodyUpdateAgentBranchV1ConvaiAgentsAgentIdBranchesBranchIdPatch.js +1 -0
- package/serialization/resources/conversationalAi/resources/agents/types/BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchProcedureRefsItem.d.ts +9 -0
- package/serialization/resources/conversationalAi/resources/agents/types/BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchProcedureRefsItem.js +41 -0
- package/serialization/resources/conversationalAi/resources/agents/types/index.d.ts +1 -0
- package/serialization/resources/conversationalAi/resources/agents/types/index.js +17 -0
- package/serialization/resources/conversationalAi/resources/index.d.ts +1 -0
- package/serialization/resources/conversationalAi/resources/index.js +1 -0
- package/serialization/resources/conversationalAi/resources/tests/client/requests/CreateUnitTestRequest.d.ts +1 -0
- package/serialization/resources/conversationalAi/resources/tests/client/requests/CreateUnitTestRequest.js +1 -0
- package/serialization/resources/conversationalAi/resources/tests/client/requests/UpdateUnitTestRequest.d.ts +1 -0
- package/serialization/resources/conversationalAi/resources/tests/client/requests/UpdateUnitTestRequest.js +1 -0
- package/serialization/resources/conversationalAi/resources/whatsappAccounts/client/requests/index.d.ts +0 -1
- package/serialization/resources/conversationalAi/resources/whatsappAccounts/client/requests/index.js +1 -3
- package/serialization/resources/textToDialogue/types/TextToDialogueConvertRequestOutputFormat.d.ts +7 -0
- package/serialization/resources/textToDialogue/types/TextToDialogueConvertRequestOutputFormat.js +68 -0
- package/serialization/resources/textToDialogue/types/TextToDialogueConvertWithTimestampsRequestOutputFormat.d.ts +7 -0
- package/serialization/resources/textToDialogue/types/TextToDialogueConvertWithTimestampsRequestOutputFormat.js +68 -0
- package/serialization/resources/textToDialogue/types/index.d.ts +2 -0
- package/serialization/resources/textToDialogue/types/index.js +2 -0
- package/serialization/types/AlignmentGuardrail.d.ts +9 -0
- package/serialization/types/AlignmentGuardrail.js +41 -0
- package/serialization/types/ApiIntegrationWebhookOverridesInput.d.ts +3 -0
- package/serialization/types/ApiIntegrationWebhookOverridesInput.js +3 -0
- package/serialization/types/ApiIntegrationWebhookOverridesOutput.d.ts +3 -0
- package/serialization/types/ApiIntegrationWebhookOverridesOutput.js +3 -0
- package/serialization/types/ConversationHistoryTranscriptApiIntegrationWebhookToolsResultCommonModel.d.ts +1 -0
- package/serialization/types/ConversationHistoryTranscriptApiIntegrationWebhookToolsResultCommonModel.js +1 -0
- package/serialization/types/ConversationHistoryTranscriptOtherToolsResultCommonModel.d.ts +1 -0
- package/serialization/types/ConversationHistoryTranscriptOtherToolsResultCommonModel.js +1 -0
- package/serialization/types/ConversationHistoryTranscriptSystemToolResultCommonModel.d.ts +1 -0
- package/serialization/types/ConversationHistoryTranscriptSystemToolResultCommonModel.js +1 -0
- package/serialization/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelInput.d.ts +1 -0
- package/serialization/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelInput.js +1 -0
- package/serialization/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelOutput.d.ts +1 -0
- package/serialization/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelOutput.js +1 -0
- package/serialization/types/ConversationTurnMetrics.d.ts +1 -0
- package/serialization/types/ConversationTurnMetrics.js +1 -0
- package/serialization/types/DirectPublishingReadResponseModel.d.ts +1 -0
- package/serialization/types/DirectPublishingReadResponseModel.js +1 -0
- package/serialization/types/GetUnitTestResponseModel.d.ts +1 -0
- package/serialization/types/GetUnitTestResponseModel.js +1 -0
- package/serialization/types/GetWorkspaceSecretsResponseModel.d.ts +2 -0
- package/serialization/types/GetWorkspaceSecretsResponseModel.js +2 -0
- package/serialization/types/GuardrailsV1Input.d.ts +2 -0
- package/serialization/types/GuardrailsV1Input.js +2 -0
- package/serialization/types/GuardrailsV1Output.d.ts +2 -0
- package/serialization/types/GuardrailsV1Output.js +2 -0
- package/serialization/types/NonStreamingOutputFormats.d.ts +7 -0
- package/serialization/types/NonStreamingOutputFormats.js +47 -0
- package/serialization/types/PermissionType.d.ts +1 -1
- package/serialization/types/PermissionType.js +6 -0
- package/serialization/types/ProcedureDraftRef.d.ts +9 -0
- package/serialization/types/ProcedureDraftRef.js +41 -0
- package/serialization/types/ProcedureVersionRef.d.ts +10 -0
- package/serialization/{resources/conversationalAi/resources/whatsappAccounts/client/requests/ImportWhatsAppAccountRequest.js → types/ProcedureVersionRef.js} +5 -6
- package/serialization/types/ResponseFilterMode.d.ts +7 -0
- package/serialization/types/ResponseFilterMode.js +39 -0
- package/serialization/types/SongMetadata.d.ts +0 -2
- package/serialization/types/SongMetadata.js +0 -2
- package/serialization/types/TurnConfig.d.ts +1 -0
- package/serialization/types/TurnConfig.js +1 -0
- package/serialization/types/TurnConfigWorkflowOverride.d.ts +1 -0
- package/serialization/types/TurnConfigWorkflowOverride.js +1 -0
- package/serialization/types/UnitTestCommonModel.d.ts +1 -0
- package/serialization/types/UnitTestCommonModel.js +1 -0
- package/serialization/types/User.d.ts +1 -0
- package/serialization/types/User.js +1 -0
- package/serialization/types/index.d.ts +5 -1
- package/serialization/types/index.js +5 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/resources/conversationalAi/resources/whatsappAccounts/client/requests/ImportWhatsAppAccountRequest.d.ts +0 -13
- package/api/types/ImportWhatsAppAccountResponse.d.ts +0 -3
- package/dist/api/resources/conversationalAi/resources/whatsappAccounts/client/requests/ImportWhatsAppAccountRequest.d.ts +0 -13
- package/dist/api/types/ImportWhatsAppAccountResponse.d.ts +0 -3
- package/dist/serialization/resources/conversationalAi/resources/whatsappAccounts/client/requests/ImportWhatsAppAccountRequest.d.ts +0 -11
- package/dist/serialization/types/ImportWhatsAppAccountResponse.d.ts +0 -9
- package/serialization/resources/conversationalAi/resources/whatsappAccounts/client/requests/ImportWhatsAppAccountRequest.d.ts +0 -11
- package/serialization/types/ImportWhatsAppAccountResponse.d.ts +0 -9
- /package/api/resources/conversationalAi/resources/{whatsappAccounts/client/requests/ImportWhatsAppAccountRequest.js → agents/types/BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchProcedureRefsItem.js} +0 -0
- /package/api/{types/ImportWhatsAppAccountResponse.js → resources/conversationalAi/resources/secrets/client/requests/SecretsListRequest.js} +0 -0
- /package/{dist/api/resources/conversationalAi/resources/whatsappAccounts/client/requests/ImportWhatsAppAccountRequest.js → api/types/AlignmentGuardrail.js} +0 -0
- /package/{dist/api/types/ImportWhatsAppAccountResponse.js → api/types/ProcedureDraftRef.js} +0 -0
package/api/types/index.d.ts
CHANGED
|
@@ -48,6 +48,7 @@ export * from "./AgentWorkflowResponseModel";
|
|
|
48
48
|
export * from "./AgentWorkflowResponseModelNodesValue";
|
|
49
49
|
export * from "./AgentWorkspaceOverridesInput";
|
|
50
50
|
export * from "./AgentWorkspaceOverridesOutput";
|
|
51
|
+
export * from "./AlignmentGuardrail";
|
|
51
52
|
export * from "./AllowedOutputFormats";
|
|
52
53
|
export * from "./AllowlistItem";
|
|
53
54
|
export * from "./ApiIntegrationWebhookOverridesInput";
|
|
@@ -446,7 +447,6 @@ export * from "./HistoryItemResponse";
|
|
|
446
447
|
export * from "./HtmlExportOptions";
|
|
447
448
|
export * from "./HttpValidationError";
|
|
448
449
|
export * from "./ImageAvatar";
|
|
449
|
-
export * from "./ImportWhatsAppAccountResponse";
|
|
450
450
|
export * from "./InboundSipTrunkConfigRequestModel";
|
|
451
451
|
export * from "./IntegrationType";
|
|
452
452
|
export * from "./InvoiceResponse";
|
|
@@ -523,6 +523,7 @@ export * from "./ModerationGuardrailOutput";
|
|
|
523
523
|
export * from "./MultichannelSpeechToTextResponseModel";
|
|
524
524
|
export * from "./MultipartMusicResponse";
|
|
525
525
|
export * from "./MusicPrompt";
|
|
526
|
+
export * from "./NonStreamingOutputFormats";
|
|
526
527
|
export * from "./ObjectJsonSchemaPropertyInput";
|
|
527
528
|
export * from "./ObjectJsonSchemaPropertyInputPropertiesValue";
|
|
528
529
|
export * from "./ObjectJsonSchemaPropertyOutput";
|
|
@@ -564,6 +565,8 @@ export * from "./PostAgentAvatarResponseModel";
|
|
|
564
565
|
export * from "./PostWorkspaceSecretResponseModel";
|
|
565
566
|
export * from "./PreviewAudioDbModel";
|
|
566
567
|
export * from "./PrivacyConfig";
|
|
568
|
+
export * from "./ProcedureDraftRef";
|
|
569
|
+
export * from "./ProcedureVersionRef";
|
|
567
570
|
export * from "./ProjectCreationMetaResponseModel";
|
|
568
571
|
export * from "./ProjectCreationMetaResponseModelStatus";
|
|
569
572
|
export * from "./ProjectCreationMetaResponseModelType";
|
|
@@ -647,6 +650,7 @@ export * from "./ResourceAccessInfo";
|
|
|
647
650
|
export * from "./ResourceAccessInfoRole";
|
|
648
651
|
export * from "./ResourceMetadataResponseModel";
|
|
649
652
|
export * from "./ResourceMetadataResponseModelAnonymousAccessLevelOverride";
|
|
653
|
+
export * from "./ResponseFilterMode";
|
|
650
654
|
export * from "./ReviewResponseModel";
|
|
651
655
|
export * from "./ReviewResponseModelRejectReasonsItem";
|
|
652
656
|
export * from "./ReviewResponseModelReviewStatus";
|
package/api/types/index.js
CHANGED
|
@@ -64,6 +64,7 @@ __exportStar(require("./AgentWorkflowResponseModel"), exports);
|
|
|
64
64
|
__exportStar(require("./AgentWorkflowResponseModelNodesValue"), exports);
|
|
65
65
|
__exportStar(require("./AgentWorkspaceOverridesInput"), exports);
|
|
66
66
|
__exportStar(require("./AgentWorkspaceOverridesOutput"), exports);
|
|
67
|
+
__exportStar(require("./AlignmentGuardrail"), exports);
|
|
67
68
|
__exportStar(require("./AllowedOutputFormats"), exports);
|
|
68
69
|
__exportStar(require("./AllowlistItem"), exports);
|
|
69
70
|
__exportStar(require("./ApiIntegrationWebhookOverridesInput"), exports);
|
|
@@ -462,7 +463,6 @@ __exportStar(require("./HistoryItemResponse"), exports);
|
|
|
462
463
|
__exportStar(require("./HtmlExportOptions"), exports);
|
|
463
464
|
__exportStar(require("./HttpValidationError"), exports);
|
|
464
465
|
__exportStar(require("./ImageAvatar"), exports);
|
|
465
|
-
__exportStar(require("./ImportWhatsAppAccountResponse"), exports);
|
|
466
466
|
__exportStar(require("./InboundSipTrunkConfigRequestModel"), exports);
|
|
467
467
|
__exportStar(require("./IntegrationType"), exports);
|
|
468
468
|
__exportStar(require("./InvoiceResponse"), exports);
|
|
@@ -539,6 +539,7 @@ __exportStar(require("./ModerationGuardrailOutput"), exports);
|
|
|
539
539
|
__exportStar(require("./MultichannelSpeechToTextResponseModel"), exports);
|
|
540
540
|
__exportStar(require("./MultipartMusicResponse"), exports);
|
|
541
541
|
__exportStar(require("./MusicPrompt"), exports);
|
|
542
|
+
__exportStar(require("./NonStreamingOutputFormats"), exports);
|
|
542
543
|
__exportStar(require("./ObjectJsonSchemaPropertyInput"), exports);
|
|
543
544
|
__exportStar(require("./ObjectJsonSchemaPropertyInputPropertiesValue"), exports);
|
|
544
545
|
__exportStar(require("./ObjectJsonSchemaPropertyOutput"), exports);
|
|
@@ -580,6 +581,8 @@ __exportStar(require("./PostAgentAvatarResponseModel"), exports);
|
|
|
580
581
|
__exportStar(require("./PostWorkspaceSecretResponseModel"), exports);
|
|
581
582
|
__exportStar(require("./PreviewAudioDbModel"), exports);
|
|
582
583
|
__exportStar(require("./PrivacyConfig"), exports);
|
|
584
|
+
__exportStar(require("./ProcedureDraftRef"), exports);
|
|
585
|
+
__exportStar(require("./ProcedureVersionRef"), exports);
|
|
583
586
|
__exportStar(require("./ProjectCreationMetaResponseModel"), exports);
|
|
584
587
|
__exportStar(require("./ProjectCreationMetaResponseModelStatus"), exports);
|
|
585
588
|
__exportStar(require("./ProjectCreationMetaResponseModelType"), exports);
|
|
@@ -663,6 +666,7 @@ __exportStar(require("./ResourceAccessInfo"), exports);
|
|
|
663
666
|
__exportStar(require("./ResourceAccessInfoRole"), exports);
|
|
664
667
|
__exportStar(require("./ResourceMetadataResponseModel"), exports);
|
|
665
668
|
__exportStar(require("./ResourceMetadataResponseModelAnonymousAccessLevelOverride"), exports);
|
|
669
|
+
__exportStar(require("./ResponseFilterMode"), exports);
|
|
666
670
|
__exportStar(require("./ReviewResponseModel"), exports);
|
|
667
671
|
__exportStar(require("./ReviewResponseModelRejectReasonsItem"), exports);
|
|
668
672
|
__exportStar(require("./ReviewResponseModelReviewStatus"), exports);
|
package/dist/BaseClient.js
CHANGED
|
@@ -41,8 +41,8 @@ function normalizeClientOptions(options) {
|
|
|
41
41
|
const headers = (0, headers_1.mergeHeaders)({
|
|
42
42
|
"X-Fern-Language": "JavaScript",
|
|
43
43
|
"X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js",
|
|
44
|
-
"X-Fern-SDK-Version": "v2.
|
|
45
|
-
"User-Agent": "@elevenlabs/elevenlabs-js/v2.
|
|
44
|
+
"X-Fern-SDK-Version": "v2.34.0",
|
|
45
|
+
"User-Agent": "@elevenlabs/elevenlabs-js/v2.34.0",
|
|
46
46
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
47
47
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
48
48
|
"xi-api-key": options === null || options === void 0 ? void 0 : options.apiKey,
|
package/dist/Client.d.ts
CHANGED
|
@@ -81,6 +81,14 @@ export declare class ElevenLabsClient {
|
|
|
81
81
|
get music(): MusicClient;
|
|
82
82
|
get tokens(): TokensClient;
|
|
83
83
|
get workspace(): WorkspaceClient;
|
|
84
|
+
/**
|
|
85
|
+
* @param {ElevenLabsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
86
|
+
*
|
|
87
|
+
* @example
|
|
88
|
+
* await client.postV1ConvaiWhatsappAccounts()
|
|
89
|
+
*/
|
|
90
|
+
postV1ConvaiWhatsappAccounts(requestOptions?: ElevenLabsClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
91
|
+
private __postV1ConvaiWhatsappAccounts;
|
|
84
92
|
/**
|
|
85
93
|
* @param {string} agent_id
|
|
86
94
|
* @param {string} branch_id
|
package/dist/Client.js
CHANGED
|
@@ -174,6 +174,43 @@ class ElevenLabsClient {
|
|
|
174
174
|
var _a;
|
|
175
175
|
return ((_a = this._workspace) !== null && _a !== void 0 ? _a : (this._workspace = new Client_24.WorkspaceClient(this._options)));
|
|
176
176
|
}
|
|
177
|
+
/**
|
|
178
|
+
* @param {ElevenLabsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
179
|
+
*
|
|
180
|
+
* @example
|
|
181
|
+
* await client.postV1ConvaiWhatsappAccounts()
|
|
182
|
+
*/
|
|
183
|
+
postV1ConvaiWhatsappAccounts(requestOptions) {
|
|
184
|
+
return core.HttpResponsePromise.fromPromise(this.__postV1ConvaiWhatsappAccounts(requestOptions));
|
|
185
|
+
}
|
|
186
|
+
__postV1ConvaiWhatsappAccounts(requestOptions) {
|
|
187
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
188
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
189
|
+
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);
|
|
190
|
+
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
191
|
+
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/whatsapp-accounts"),
|
|
192
|
+
method: "POST",
|
|
193
|
+
headers: _headers,
|
|
194
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
195
|
+
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,
|
|
196
|
+
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,
|
|
197
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
198
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
199
|
+
logging: this._options.logging,
|
|
200
|
+
});
|
|
201
|
+
if (_response.ok) {
|
|
202
|
+
return { data: undefined, rawResponse: _response.rawResponse };
|
|
203
|
+
}
|
|
204
|
+
if (_response.error.reason === "status-code") {
|
|
205
|
+
throw new errors.ElevenLabsError({
|
|
206
|
+
statusCode: _response.error.statusCode,
|
|
207
|
+
body: _response.error.body,
|
|
208
|
+
rawResponse: _response.rawResponse,
|
|
209
|
+
});
|
|
210
|
+
}
|
|
211
|
+
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/convai/whatsapp-accounts");
|
|
212
|
+
});
|
|
213
|
+
}
|
|
177
214
|
/**
|
|
178
215
|
* @param {string} agent_id
|
|
179
216
|
* @param {string} branch_id
|
package/dist/api/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.d.ts
CHANGED
|
@@ -16,4 +16,6 @@ export interface UpdateAgentRequest {
|
|
|
16
16
|
tags?: string[];
|
|
17
17
|
/** Description for this version when publishing changes (only applicable for versioned agents) */
|
|
18
18
|
versionDescription?: string;
|
|
19
|
+
/** List of procedure refs used for this agent version. */
|
|
20
|
+
procedureRefs?: ElevenLabs.conversationalAi.BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchProcedureRefsItem[];
|
|
19
21
|
}
|
|
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./client"), exports);
|
|
18
18
|
__exportStar(require("./resources"), exports);
|
|
19
|
+
__exportStar(require("./types"), exports);
|
|
@@ -4,6 +4,8 @@ import type * as ElevenLabs from "../../../../../../../../index";
|
|
|
4
4
|
* {}
|
|
5
5
|
*/
|
|
6
6
|
export interface BodyUpdateAgentBranchV1ConvaiAgentsAgentIdBranchesBranchIdPatch {
|
|
7
|
+
/** New name for the branch. Must be unique within the agent. */
|
|
8
|
+
name?: string;
|
|
7
9
|
/** Whether the branch should be archived */
|
|
8
10
|
isArchived?: boolean;
|
|
9
11
|
/** The protection level for the branch */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchProcedureRefsItem";
|
|
@@ -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("./BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchProcedureRefsItem"), exports);
|
|
@@ -39,6 +39,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
39
39
|
exports.whatsappAccounts = exports.whatsapp = 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
|
+
__exportStar(require("./agents/types"), exports);
|
|
42
43
|
exports.analytics = __importStar(require("./analytics"));
|
|
43
44
|
exports.batchCalls = __importStar(require("./batchCalls"));
|
|
44
45
|
__exportStar(require("./batchCalls/client/requests"), exports);
|
|
@@ -13,14 +13,18 @@ export declare class SecretsClient {
|
|
|
13
13
|
/**
|
|
14
14
|
* Get all workspace secrets for the user
|
|
15
15
|
*
|
|
16
|
+
* @param {ElevenLabs.conversationalAi.SecretsListRequest} request
|
|
16
17
|
* @param {SecretsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
17
18
|
*
|
|
18
19
|
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
19
20
|
*
|
|
20
21
|
* @example
|
|
21
|
-
* await client.conversationalAi.secrets.list(
|
|
22
|
+
* await client.conversationalAi.secrets.list({
|
|
23
|
+
* pageSize: 1,
|
|
24
|
+
* cursor: "cursor"
|
|
25
|
+
* })
|
|
22
26
|
*/
|
|
23
|
-
list(requestOptions?: SecretsClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.GetWorkspaceSecretsResponseModel>;
|
|
27
|
+
list(request?: ElevenLabs.conversationalAi.SecretsListRequest, requestOptions?: SecretsClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.GetWorkspaceSecretsResponseModel>;
|
|
24
28
|
private __list;
|
|
25
29
|
/**
|
|
26
30
|
* Create a new secret for the workspace
|
|
@@ -59,25 +59,37 @@ class SecretsClient {
|
|
|
59
59
|
/**
|
|
60
60
|
* Get all workspace secrets for the user
|
|
61
61
|
*
|
|
62
|
+
* @param {ElevenLabs.conversationalAi.SecretsListRequest} request
|
|
62
63
|
* @param {SecretsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
63
64
|
*
|
|
64
65
|
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
65
66
|
*
|
|
66
67
|
* @example
|
|
67
|
-
* await client.conversationalAi.secrets.list(
|
|
68
|
+
* await client.conversationalAi.secrets.list({
|
|
69
|
+
* pageSize: 1,
|
|
70
|
+
* cursor: "cursor"
|
|
71
|
+
* })
|
|
68
72
|
*/
|
|
69
|
-
list(requestOptions) {
|
|
70
|
-
return core.HttpResponsePromise.fromPromise(this.__list(requestOptions));
|
|
73
|
+
list(request = {}, requestOptions) {
|
|
74
|
+
return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions));
|
|
71
75
|
}
|
|
72
|
-
__list(
|
|
73
|
-
return __awaiter(this,
|
|
76
|
+
__list() {
|
|
77
|
+
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
74
78
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
79
|
+
const { pageSize, cursor } = request;
|
|
80
|
+
const _queryParams = {};
|
|
81
|
+
if (pageSize != null) {
|
|
82
|
+
_queryParams.page_size = pageSize.toString();
|
|
83
|
+
}
|
|
84
|
+
if (cursor != null) {
|
|
85
|
+
_queryParams.cursor = cursor;
|
|
86
|
+
}
|
|
75
87
|
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);
|
|
76
88
|
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
77
89
|
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/secrets"),
|
|
78
90
|
method: "GET",
|
|
79
91
|
headers: _headers,
|
|
80
|
-
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
92
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
81
93
|
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,
|
|
82
94
|
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,
|
|
83
95
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {
|
|
4
|
+
* pageSize: 1,
|
|
5
|
+
* cursor: "cursor"
|
|
6
|
+
* }
|
|
7
|
+
*/
|
|
8
|
+
export interface SecretsListRequest {
|
|
9
|
+
/** How many documents to return at maximum. Can not exceed 100. If not provided, returns all secrets. */
|
|
10
|
+
pageSize?: number;
|
|
11
|
+
/** Used for fetching next page. Cursor is returned in the response. */
|
|
12
|
+
cursor?: string;
|
|
13
|
+
}
|
|
@@ -28,6 +28,8 @@ export interface CreateUnitTestRequest {
|
|
|
28
28
|
failureExamples: ElevenLabs.AgentFailureResponseExample[];
|
|
29
29
|
/** How to evaluate the agent's tool call (if any). If empty, the tool call is not evaluated. */
|
|
30
30
|
toolCallParameters?: ElevenLabs.UnitTestToolCallEvaluationModelInput;
|
|
31
|
+
/** If set to True this test will pass if any tool call returned by the LLM matches the criteria. Otherwise it will fail if more than one tool is returned by the agent. */
|
|
32
|
+
checkAnyToolMatches?: boolean;
|
|
31
33
|
/** Dynamic variables to replace in the agent config during testing */
|
|
32
34
|
dynamicVariables?: Record<string, ElevenLabs.conversationalAi.CreateUnitTestRequestDynamicVariablesValue | undefined>;
|
|
33
35
|
type?: ElevenLabs.UnitTestCommonModelType;
|
|
@@ -28,6 +28,8 @@ export interface UpdateUnitTestRequest {
|
|
|
28
28
|
failureExamples: ElevenLabs.AgentFailureResponseExample[];
|
|
29
29
|
/** How to evaluate the agent's tool call (if any). If empty, the tool call is not evaluated. */
|
|
30
30
|
toolCallParameters?: ElevenLabs.UnitTestToolCallEvaluationModelInput;
|
|
31
|
+
/** If set to True this test will pass if any tool call returned by the LLM matches the criteria. Otherwise it will fail if more than one tool is returned by the agent. */
|
|
32
|
+
checkAnyToolMatches?: boolean;
|
|
31
33
|
/** Dynamic variables to replace in the agent config during testing */
|
|
32
34
|
dynamicVariables?: Record<string, ElevenLabs.conversationalAi.UpdateUnitTestRequestDynamicVariablesValue | undefined>;
|
|
33
35
|
type?: ElevenLabs.UnitTestCommonModelType;
|
|
@@ -10,35 +10,6 @@ export declare namespace WhatsappAccountsClient {
|
|
|
10
10
|
export declare class WhatsappAccountsClient {
|
|
11
11
|
protected readonly _options: NormalizedClientOptions<WhatsappAccountsClient.Options>;
|
|
12
12
|
constructor(options?: WhatsappAccountsClient.Options);
|
|
13
|
-
/**
|
|
14
|
-
* List all WhatsApp accounts
|
|
15
|
-
*
|
|
16
|
-
* @param {WhatsappAccountsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
17
|
-
*
|
|
18
|
-
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
19
|
-
*
|
|
20
|
-
* @example
|
|
21
|
-
* await client.conversationalAi.whatsappAccounts.list()
|
|
22
|
-
*/
|
|
23
|
-
list(requestOptions?: WhatsappAccountsClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.ListWhatsAppAccountsResponse>;
|
|
24
|
-
private __list;
|
|
25
|
-
/**
|
|
26
|
-
* Import a WhatsApp account
|
|
27
|
-
*
|
|
28
|
-
* @param {ElevenLabs.conversationalAi.ImportWhatsAppAccountRequest} request
|
|
29
|
-
* @param {WhatsappAccountsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
30
|
-
*
|
|
31
|
-
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
32
|
-
*
|
|
33
|
-
* @example
|
|
34
|
-
* await client.conversationalAi.whatsappAccounts.import({
|
|
35
|
-
* businessAccountId: "business_account_id",
|
|
36
|
-
* phoneNumberId: "phone_number_id",
|
|
37
|
-
* tokenCode: "token_code"
|
|
38
|
-
* })
|
|
39
|
-
*/
|
|
40
|
-
import(request: ElevenLabs.conversationalAi.ImportWhatsAppAccountRequest, requestOptions?: WhatsappAccountsClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.ImportWhatsAppAccountResponse>;
|
|
41
|
-
private __import;
|
|
42
13
|
/**
|
|
43
14
|
* Get a WhatsApp account
|
|
44
15
|
*
|
|
@@ -79,4 +50,16 @@ export declare class WhatsappAccountsClient {
|
|
|
79
50
|
*/
|
|
80
51
|
update(phone_number_id: string, request?: ElevenLabs.conversationalAi.UpdateWhatsAppAccountRequest, requestOptions?: WhatsappAccountsClient.RequestOptions): core.HttpResponsePromise<unknown>;
|
|
81
52
|
private __update;
|
|
53
|
+
/**
|
|
54
|
+
* List all WhatsApp accounts
|
|
55
|
+
*
|
|
56
|
+
* @param {WhatsappAccountsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
57
|
+
*
|
|
58
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* await client.conversationalAi.whatsappAccounts.list()
|
|
62
|
+
*/
|
|
63
|
+
list(requestOptions?: WhatsappAccountsClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.ListWhatsAppAccountsResponse>;
|
|
64
|
+
private __list;
|
|
82
65
|
}
|