@elevenlabs/elevenlabs-js 2.47.0 → 2.48.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.fern/metadata.json +1 -1
- package/BaseClient.js +2 -2
- package/api/resources/conversationalAi/conversation/Conversation.js +1 -0
- package/api/resources/conversationalAi/conversation/ConversationConfig.d.ts +2 -0
- package/api/resources/conversationalAi/conversation/events.d.ts +1 -0
- package/api/resources/conversationalAi/resources/agents/client/Client.d.ts +3 -0
- package/api/resources/conversationalAi/resources/agents/client/Client.js +7 -2
- package/api/resources/conversationalAi/resources/agents/resources/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/agents/resources/index.js +2 -1
- package/api/resources/conversationalAi/resources/agents/resources/versions/client/Client.d.ts +27 -0
- package/api/resources/conversationalAi/resources/agents/resources/versions/client/Client.js +116 -0
- package/api/resources/conversationalAi/resources/agents/resources/versions/client/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/agents/resources/versions/client/index.js +2 -0
- package/api/resources/conversationalAi/resources/agents/resources/versions/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/agents/resources/versions/index.js +17 -0
- package/api/resources/conversationalAi/resources/conversations/client/Client.d.ts +1 -0
- package/api/resources/conversationalAi/resources/conversations/client/Client.js +5 -1
- package/api/resources/conversationalAi/resources/conversations/client/requests/ConversationsListRequest.d.ts +2 -0
- package/api/resources/conversationalAi/resources/conversations/resources/messages/client/Client.d.ts +1 -0
- package/api/resources/conversationalAi/resources/conversations/resources/messages/client/Client.js +5 -1
- package/api/resources/conversationalAi/resources/conversations/resources/messages/client/requests/MessagesTextSearchRequest.d.ts +2 -0
- package/api/resources/workspace/resources/authConnections/client/Client.d.ts +16 -0
- package/api/resources/workspace/resources/authConnections/client/Client.js +63 -0
- package/api/resources/workspace/resources/authConnections/types/AuthConnectionsCreateRequestBody.d.ts +4 -1
- package/api/resources/workspace/resources/authConnections/types/AuthConnectionsCreateResponse.d.ts +4 -1
- package/api/resources/workspace/resources/authConnections/types/AuthConnectionsUpdateRequestBody.d.ts +16 -0
- package/api/resources/workspace/resources/authConnections/types/AuthConnectionsUpdateRequestBody.js +3 -0
- package/api/resources/workspace/resources/authConnections/types/AuthConnectionsUpdateResponse.d.ts +40 -0
- package/api/resources/workspace/resources/authConnections/types/AuthConnectionsUpdateResponse.js +3 -0
- package/api/resources/workspace/resources/authConnections/types/index.d.ts +2 -0
- package/api/resources/workspace/resources/authConnections/types/index.js +2 -0
- package/api/types/AgentAlertingMonitorConfig.d.ts +2 -0
- package/api/types/AgentAlertingSettings.d.ts +2 -0
- package/api/types/AudioIsolationHistoryItemResponseModel.d.ts +1 -0
- package/api/types/ConversationInitiationSource.d.ts +1 -0
- package/api/types/ConversationInitiationSource.js +1 -0
- package/api/types/CreateBearerAuthRequest.d.ts +8 -0
- package/api/types/CreateBearerAuthRequest.js +3 -0
- package/api/types/GetPhoneNumberInboundSipTrunkConfigResponseModel.d.ts +2 -0
- package/api/types/GetPhoneNumberOutboundSipTrunkConfigResponseModel.d.ts +2 -0
- package/api/types/InboundSipTrunkConfigRequestModel.d.ts +2 -0
- package/api/types/ListAuthConnectionsResponseAuthConnectionsItem.d.ts +4 -1
- package/api/types/ListCustomerFacingAgentsParams.d.ts +11 -0
- package/api/types/ListCustomerFacingAgentsParams.js +3 -0
- package/api/types/ListSpeechEnginesResponse.d.ts +1 -0
- package/api/types/Llm.d.ts +2 -0
- package/api/types/Llm.js +2 -0
- package/api/types/LoadProcedureToolConfig.d.ts +4 -0
- package/api/types/LoadProcedureToolConfig.js +3 -0
- package/api/types/LoadProcedureToolErrorStatus.d.ts +5 -0
- package/api/types/LoadProcedureToolErrorStatus.js +8 -0
- package/api/types/OAuth2ClientCredsResponse.d.ts +2 -0
- package/api/types/OutboundSipTrunkConfigRequestModel.d.ts +2 -0
- package/api/types/ProcedureAtVersion.d.ts +12 -0
- package/api/types/ProcedureAtVersion.js +3 -0
- package/api/types/ProcedureCompilerMode.d.ts +5 -1
- package/api/types/ProcedureCompilerMode.js +5 -0
- package/api/types/PromptAgentApiModelInput.d.ts +1 -1
- package/api/types/PromptAgentApiModelOutput.d.ts +1 -1
- package/api/types/PromptAgentApiModelWorkflowOverrideInput.d.ts +1 -1
- package/api/types/PromptAgentApiModelWorkflowOverrideOutput.d.ts +1 -1
- package/api/types/SlackBotAuthResponse.d.ts +10 -0
- package/api/types/SlackBotAuthResponse.js +3 -0
- package/api/types/SpeechEngineResponse.d.ts +11 -0
- package/api/types/SpeechEngineSummaryResponse.d.ts +3 -1
- package/api/types/SystemToolConfigInputParams.d.ts +4 -1
- package/api/types/SystemToolConfigOutputParams.d.ts +4 -1
- package/api/types/UpdateBasicAuthRequest.d.ts +5 -0
- package/api/types/UpdateBasicAuthRequest.js +3 -0
- package/api/types/UpdateOAuth2ClientCredsRequest.d.ts +9 -0
- package/api/types/UpdateOAuth2ClientCredsRequest.js +3 -0
- package/api/types/UpdateOAuth2JwtRequest.d.ts +14 -0
- package/api/types/UpdateOAuth2JwtRequest.js +3 -0
- package/api/types/UpdateOAuth2JwtRequestAlgorithm.d.ts +9 -0
- package/api/types/UpdateOAuth2JwtRequestAlgorithm.js +12 -0
- package/api/types/UpdateOAuth2JwtRequestTokenResponseField.d.ts +5 -0
- package/api/types/UpdateOAuth2JwtRequestTokenResponseField.js +8 -0
- package/api/types/WorkspaceResourceType.d.ts +2 -0
- package/api/types/WorkspaceResourceType.js +2 -0
- package/api/types/index.d.ts +11 -0
- package/api/types/index.js +11 -0
- package/dist/BaseClient.js +2 -2
- package/dist/api/resources/conversationalAi/conversation/Conversation.js +1 -0
- package/dist/api/resources/conversationalAi/conversation/ConversationConfig.d.ts +2 -0
- package/dist/api/resources/conversationalAi/conversation/events.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/agents/client/Client.d.ts +3 -0
- package/dist/api/resources/conversationalAi/resources/agents/client/Client.js +7 -2
- package/dist/api/resources/conversationalAi/resources/agents/resources/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/agents/resources/index.js +2 -1
- package/dist/api/resources/conversationalAi/resources/agents/resources/versions/client/Client.d.ts +27 -0
- package/dist/api/resources/conversationalAi/resources/agents/resources/versions/client/Client.js +116 -0
- package/dist/api/resources/conversationalAi/resources/agents/resources/versions/client/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/agents/resources/versions/client/index.js +2 -0
- package/dist/api/resources/conversationalAi/resources/agents/resources/versions/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/agents/resources/versions/index.js +17 -0
- package/dist/api/resources/conversationalAi/resources/conversations/client/Client.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/conversations/client/Client.js +5 -1
- package/dist/api/resources/conversationalAi/resources/conversations/client/requests/ConversationsListRequest.d.ts +2 -0
- package/dist/api/resources/conversationalAi/resources/conversations/resources/messages/client/Client.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/conversations/resources/messages/client/Client.js +5 -1
- package/dist/api/resources/conversationalAi/resources/conversations/resources/messages/client/requests/MessagesTextSearchRequest.d.ts +2 -0
- package/dist/api/resources/workspace/resources/authConnections/client/Client.d.ts +16 -0
- package/dist/api/resources/workspace/resources/authConnections/client/Client.js +63 -0
- package/dist/api/resources/workspace/resources/authConnections/types/AuthConnectionsCreateRequestBody.d.ts +4 -1
- package/dist/api/resources/workspace/resources/authConnections/types/AuthConnectionsCreateResponse.d.ts +4 -1
- package/dist/api/resources/workspace/resources/authConnections/types/AuthConnectionsUpdateRequestBody.d.ts +16 -0
- package/dist/api/resources/workspace/resources/authConnections/types/AuthConnectionsUpdateRequestBody.js +3 -0
- package/dist/api/resources/workspace/resources/authConnections/types/AuthConnectionsUpdateResponse.d.ts +40 -0
- package/dist/api/resources/workspace/resources/authConnections/types/AuthConnectionsUpdateResponse.js +3 -0
- package/dist/api/resources/workspace/resources/authConnections/types/index.d.ts +2 -0
- package/dist/api/resources/workspace/resources/authConnections/types/index.js +2 -0
- package/dist/api/types/AgentAlertingMonitorConfig.d.ts +2 -0
- package/dist/api/types/AgentAlertingSettings.d.ts +2 -0
- package/dist/api/types/AudioIsolationHistoryItemResponseModel.d.ts +1 -0
- package/dist/api/types/ConversationInitiationSource.d.ts +1 -0
- package/dist/api/types/ConversationInitiationSource.js +1 -0
- package/dist/api/types/CreateBearerAuthRequest.d.ts +8 -0
- package/dist/api/types/CreateBearerAuthRequest.js +3 -0
- package/dist/api/types/GetPhoneNumberInboundSipTrunkConfigResponseModel.d.ts +2 -0
- package/dist/api/types/GetPhoneNumberOutboundSipTrunkConfigResponseModel.d.ts +2 -0
- package/dist/api/types/InboundSipTrunkConfigRequestModel.d.ts +2 -0
- package/dist/api/types/ListAuthConnectionsResponseAuthConnectionsItem.d.ts +4 -1
- package/dist/api/types/ListCustomerFacingAgentsParams.d.ts +11 -0
- package/dist/api/types/ListCustomerFacingAgentsParams.js +3 -0
- package/dist/api/types/ListSpeechEnginesResponse.d.ts +1 -0
- package/dist/api/types/Llm.d.ts +2 -0
- package/dist/api/types/Llm.js +2 -0
- package/dist/api/types/LoadProcedureToolConfig.d.ts +4 -0
- package/dist/api/types/LoadProcedureToolConfig.js +3 -0
- package/dist/api/types/LoadProcedureToolErrorStatus.d.ts +5 -0
- package/dist/api/types/LoadProcedureToolErrorStatus.js +8 -0
- package/dist/api/types/OAuth2ClientCredsResponse.d.ts +2 -0
- package/dist/api/types/OutboundSipTrunkConfigRequestModel.d.ts +2 -0
- package/dist/api/types/ProcedureAtVersion.d.ts +12 -0
- package/dist/api/types/ProcedureAtVersion.js +3 -0
- package/dist/api/types/ProcedureCompilerMode.d.ts +5 -1
- package/dist/api/types/ProcedureCompilerMode.js +5 -0
- package/dist/api/types/PromptAgentApiModelInput.d.ts +1 -1
- package/dist/api/types/PromptAgentApiModelOutput.d.ts +1 -1
- package/dist/api/types/PromptAgentApiModelWorkflowOverrideInput.d.ts +1 -1
- package/dist/api/types/PromptAgentApiModelWorkflowOverrideOutput.d.ts +1 -1
- package/dist/api/types/SlackBotAuthResponse.d.ts +10 -0
- package/dist/api/types/SlackBotAuthResponse.js +3 -0
- package/dist/api/types/SpeechEngineResponse.d.ts +11 -0
- package/dist/api/types/SpeechEngineSummaryResponse.d.ts +3 -1
- package/dist/api/types/SystemToolConfigInputParams.d.ts +4 -1
- package/dist/api/types/SystemToolConfigOutputParams.d.ts +4 -1
- package/dist/api/types/UpdateBasicAuthRequest.d.ts +5 -0
- package/dist/api/types/UpdateBasicAuthRequest.js +3 -0
- package/dist/api/types/UpdateOAuth2ClientCredsRequest.d.ts +9 -0
- package/dist/api/types/UpdateOAuth2ClientCredsRequest.js +3 -0
- package/dist/api/types/UpdateOAuth2JwtRequest.d.ts +14 -0
- package/dist/api/types/UpdateOAuth2JwtRequest.js +3 -0
- package/dist/api/types/UpdateOAuth2JwtRequestAlgorithm.d.ts +9 -0
- package/dist/api/types/UpdateOAuth2JwtRequestAlgorithm.js +12 -0
- package/dist/api/types/UpdateOAuth2JwtRequestTokenResponseField.d.ts +5 -0
- package/dist/api/types/UpdateOAuth2JwtRequestTokenResponseField.js +8 -0
- package/dist/api/types/WorkspaceResourceType.d.ts +2 -0
- package/dist/api/types/WorkspaceResourceType.js +2 -0
- package/dist/api/types/index.d.ts +11 -0
- package/dist/api/types/index.js +11 -0
- package/dist/serialization/resources/workspace/resources/authConnections/types/AuthConnectionsCreateRequestBody.d.ts +5 -1
- package/dist/serialization/resources/workspace/resources/authConnections/types/AuthConnectionsCreateRequestBody.js +2 -0
- package/dist/serialization/resources/workspace/resources/authConnections/types/AuthConnectionsCreateResponse.d.ts +5 -1
- package/dist/serialization/resources/workspace/resources/authConnections/types/AuthConnectionsCreateResponse.js +2 -0
- package/dist/serialization/resources/workspace/resources/authConnections/types/AuthConnectionsUpdateRequestBody.d.ts +19 -0
- package/dist/serialization/resources/workspace/resources/authConnections/types/AuthConnectionsUpdateRequestBody.js +51 -0
- package/dist/serialization/resources/workspace/resources/authConnections/types/AuthConnectionsUpdateResponse.d.ts +51 -0
- package/dist/serialization/resources/workspace/resources/authConnections/types/AuthConnectionsUpdateResponse.js +67 -0
- package/dist/serialization/resources/workspace/resources/authConnections/types/index.d.ts +2 -0
- package/dist/serialization/resources/workspace/resources/authConnections/types/index.js +2 -0
- package/dist/serialization/types/AgentAlertingMonitorConfig.d.ts +1 -0
- package/dist/serialization/types/AgentAlertingMonitorConfig.js +1 -0
- package/dist/serialization/types/AgentAlertingSettings.d.ts +1 -0
- package/dist/serialization/types/AgentAlertingSettings.js +1 -0
- package/dist/serialization/types/AudioIsolationHistoryItemResponseModel.d.ts +1 -0
- package/dist/serialization/types/AudioIsolationHistoryItemResponseModel.js +1 -0
- package/dist/serialization/types/ConversationInitiationSource.d.ts +1 -1
- package/dist/serialization/types/ConversationInitiationSource.js +1 -0
- package/dist/serialization/types/CreateBearerAuthRequest.d.ts +11 -0
- package/dist/serialization/types/CreateBearerAuthRequest.js +43 -0
- package/dist/serialization/types/GetPhoneNumberInboundSipTrunkConfigResponseModel.d.ts +1 -0
- package/dist/serialization/types/GetPhoneNumberInboundSipTrunkConfigResponseModel.js +1 -0
- package/dist/serialization/types/GetPhoneNumberOutboundSipTrunkConfigResponseModel.d.ts +1 -0
- package/dist/serialization/types/GetPhoneNumberOutboundSipTrunkConfigResponseModel.js +1 -0
- package/dist/serialization/types/InboundSipTrunkConfigRequestModel.d.ts +1 -0
- package/dist/serialization/types/InboundSipTrunkConfigRequestModel.js +1 -0
- package/dist/serialization/types/ListAuthConnectionsResponseAuthConnectionsItem.d.ts +5 -1
- package/dist/serialization/types/ListAuthConnectionsResponseAuthConnectionsItem.js +2 -0
- package/dist/serialization/types/ListCustomerFacingAgentsParams.d.ts +9 -0
- package/dist/serialization/types/ListCustomerFacingAgentsParams.js +41 -0
- package/dist/serialization/types/Llm.d.ts +1 -1
- package/dist/serialization/types/Llm.js +2 -0
- package/dist/serialization/types/LoadProcedureToolConfig.d.ts +10 -0
- package/dist/serialization/types/LoadProcedureToolConfig.js +42 -0
- package/dist/serialization/types/LoadProcedureToolErrorStatus.d.ts +7 -0
- package/dist/serialization/types/LoadProcedureToolErrorStatus.js +39 -0
- package/dist/serialization/types/OAuth2ClientCredsResponse.d.ts +1 -0
- package/dist/serialization/types/OAuth2ClientCredsResponse.js +1 -0
- package/dist/serialization/types/OutboundSipTrunkConfigRequestModel.d.ts +1 -0
- package/dist/serialization/types/OutboundSipTrunkConfigRequestModel.js +1 -0
- package/dist/serialization/types/ProcedureAtVersion.d.ts +13 -0
- package/dist/serialization/types/ProcedureAtVersion.js +45 -0
- package/dist/serialization/types/ProcedureCompilerMode.d.ts +1 -1
- package/dist/serialization/types/ProcedureCompilerMode.js +1 -1
- package/dist/serialization/types/SlackBotAuthResponse.d.ts +13 -0
- package/dist/serialization/types/SlackBotAuthResponse.js +45 -0
- package/dist/serialization/types/SystemToolConfigInputParams.d.ts +5 -1
- package/dist/serialization/types/SystemToolConfigInputParams.js +2 -0
- package/dist/serialization/types/SystemToolConfigOutputParams.d.ts +5 -1
- package/dist/serialization/types/SystemToolConfigOutputParams.js +2 -0
- package/dist/serialization/types/UpdateBasicAuthRequest.d.ts +11 -0
- package/dist/serialization/types/UpdateBasicAuthRequest.js +43 -0
- package/dist/serialization/types/UpdateOAuth2ClientCredsRequest.d.ts +15 -0
- package/dist/serialization/types/UpdateOAuth2ClientCredsRequest.js +47 -0
- package/dist/serialization/types/UpdateOAuth2JwtRequest.d.ts +21 -0
- package/dist/serialization/types/UpdateOAuth2JwtRequest.js +53 -0
- package/dist/serialization/types/UpdateOAuth2JwtRequestAlgorithm.d.ts +7 -0
- package/dist/serialization/types/UpdateOAuth2JwtRequestAlgorithm.js +39 -0
- package/dist/serialization/types/UpdateOAuth2JwtRequestTokenResponseField.d.ts +7 -0
- package/dist/serialization/types/UpdateOAuth2JwtRequestTokenResponseField.js +39 -0
- package/dist/serialization/types/WorkspaceResourceType.d.ts +1 -1
- package/dist/serialization/types/WorkspaceResourceType.js +2 -0
- package/dist/serialization/types/index.d.ts +11 -0
- package/dist/serialization/types/index.js +11 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +147 -0
- package/serialization/resources/workspace/resources/authConnections/types/AuthConnectionsCreateRequestBody.d.ts +5 -1
- package/serialization/resources/workspace/resources/authConnections/types/AuthConnectionsCreateRequestBody.js +2 -0
- package/serialization/resources/workspace/resources/authConnections/types/AuthConnectionsCreateResponse.d.ts +5 -1
- package/serialization/resources/workspace/resources/authConnections/types/AuthConnectionsCreateResponse.js +2 -0
- package/serialization/resources/workspace/resources/authConnections/types/AuthConnectionsUpdateRequestBody.d.ts +19 -0
- package/serialization/resources/workspace/resources/authConnections/types/AuthConnectionsUpdateRequestBody.js +51 -0
- package/serialization/resources/workspace/resources/authConnections/types/AuthConnectionsUpdateResponse.d.ts +51 -0
- package/serialization/resources/workspace/resources/authConnections/types/AuthConnectionsUpdateResponse.js +67 -0
- package/serialization/resources/workspace/resources/authConnections/types/index.d.ts +2 -0
- package/serialization/resources/workspace/resources/authConnections/types/index.js +2 -0
- package/serialization/types/AgentAlertingMonitorConfig.d.ts +1 -0
- package/serialization/types/AgentAlertingMonitorConfig.js +1 -0
- package/serialization/types/AgentAlertingSettings.d.ts +1 -0
- package/serialization/types/AgentAlertingSettings.js +1 -0
- package/serialization/types/AudioIsolationHistoryItemResponseModel.d.ts +1 -0
- package/serialization/types/AudioIsolationHistoryItemResponseModel.js +1 -0
- package/serialization/types/ConversationInitiationSource.d.ts +1 -1
- package/serialization/types/ConversationInitiationSource.js +1 -0
- package/serialization/types/CreateBearerAuthRequest.d.ts +11 -0
- package/serialization/types/CreateBearerAuthRequest.js +43 -0
- package/serialization/types/GetPhoneNumberInboundSipTrunkConfigResponseModel.d.ts +1 -0
- package/serialization/types/GetPhoneNumberInboundSipTrunkConfigResponseModel.js +1 -0
- package/serialization/types/GetPhoneNumberOutboundSipTrunkConfigResponseModel.d.ts +1 -0
- package/serialization/types/GetPhoneNumberOutboundSipTrunkConfigResponseModel.js +1 -0
- package/serialization/types/InboundSipTrunkConfigRequestModel.d.ts +1 -0
- package/serialization/types/InboundSipTrunkConfigRequestModel.js +1 -0
- package/serialization/types/ListAuthConnectionsResponseAuthConnectionsItem.d.ts +5 -1
- package/serialization/types/ListAuthConnectionsResponseAuthConnectionsItem.js +2 -0
- package/serialization/types/ListCustomerFacingAgentsParams.d.ts +9 -0
- package/serialization/types/ListCustomerFacingAgentsParams.js +41 -0
- package/serialization/types/Llm.d.ts +1 -1
- package/serialization/types/Llm.js +2 -0
- package/serialization/types/LoadProcedureToolConfig.d.ts +10 -0
- package/serialization/types/LoadProcedureToolConfig.js +42 -0
- package/serialization/types/LoadProcedureToolErrorStatus.d.ts +7 -0
- package/serialization/types/LoadProcedureToolErrorStatus.js +39 -0
- package/serialization/types/OAuth2ClientCredsResponse.d.ts +1 -0
- package/serialization/types/OAuth2ClientCredsResponse.js +1 -0
- package/serialization/types/OutboundSipTrunkConfigRequestModel.d.ts +1 -0
- package/serialization/types/OutboundSipTrunkConfigRequestModel.js +1 -0
- package/serialization/types/ProcedureAtVersion.d.ts +13 -0
- package/serialization/types/ProcedureAtVersion.js +45 -0
- package/serialization/types/ProcedureCompilerMode.d.ts +1 -1
- package/serialization/types/ProcedureCompilerMode.js +1 -1
- package/serialization/types/SlackBotAuthResponse.d.ts +13 -0
- package/serialization/types/SlackBotAuthResponse.js +45 -0
- package/serialization/types/SystemToolConfigInputParams.d.ts +5 -1
- package/serialization/types/SystemToolConfigInputParams.js +2 -0
- package/serialization/types/SystemToolConfigOutputParams.d.ts +5 -1
- package/serialization/types/SystemToolConfigOutputParams.js +2 -0
- package/serialization/types/UpdateBasicAuthRequest.d.ts +11 -0
- package/serialization/types/UpdateBasicAuthRequest.js +43 -0
- package/serialization/types/UpdateOAuth2ClientCredsRequest.d.ts +15 -0
- package/serialization/types/UpdateOAuth2ClientCredsRequest.js +47 -0
- package/serialization/types/UpdateOAuth2JwtRequest.d.ts +21 -0
- package/serialization/types/UpdateOAuth2JwtRequest.js +53 -0
- package/serialization/types/UpdateOAuth2JwtRequestAlgorithm.d.ts +7 -0
- package/serialization/types/UpdateOAuth2JwtRequestAlgorithm.js +39 -0
- package/serialization/types/UpdateOAuth2JwtRequestTokenResponseField.d.ts +7 -0
- package/serialization/types/UpdateOAuth2JwtRequestTokenResponseField.js +39 -0
- package/serialization/types/WorkspaceResourceType.d.ts +1 -1
- package/serialization/types/WorkspaceResourceType.js +2 -0
- package/serialization/types/index.d.ts +11 -0
- package/serialization/types/index.js +11 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
package/.fern/metadata.json
CHANGED
package/BaseClient.js
CHANGED
|
@@ -41,8 +41,8 @@ function normalizeClientOptions(options) {
|
|
|
41
41
|
const headers = (0, headers_1.mergeHeaders)({
|
|
42
42
|
"X-Fern-Language": "JavaScript",
|
|
43
43
|
"X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js",
|
|
44
|
-
"X-Fern-SDK-Version": "2.
|
|
45
|
-
"User-Agent": "@elevenlabs/elevenlabs-js/2.
|
|
44
|
+
"X-Fern-SDK-Version": "2.48.0",
|
|
45
|
+
"User-Agent": "@elevenlabs/elevenlabs-js/2.48.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,
|
|
@@ -179,6 +179,7 @@ class Conversation extends events_1.EventEmitter {
|
|
|
179
179
|
custom_llm_extra_body: this.config.extraBody,
|
|
180
180
|
conversation_config_override: this.config.conversationConfigOverride,
|
|
181
181
|
dynamic_variables: this.config.dynamicVariables,
|
|
182
|
+
environment: this.config.environment,
|
|
182
183
|
};
|
|
183
184
|
this.ws.send(JSON.stringify(initEvent));
|
|
184
185
|
// Set up audio input callback
|
|
@@ -8,6 +8,8 @@ export interface ConversationInitiationData {
|
|
|
8
8
|
conversationConfigOverride?: Record<string, any>;
|
|
9
9
|
/** Dynamic variables to use in the conversation */
|
|
10
10
|
dynamicVariables?: Record<string, any>;
|
|
11
|
+
/** The environment to use for the conversation */
|
|
12
|
+
environment?: string;
|
|
11
13
|
}
|
|
12
14
|
/**
|
|
13
15
|
* Creates a default conversation initiation data object.
|
|
@@ -49,6 +49,7 @@ export interface ConversationInitiationClientDataEvent extends BaseClientToOrche
|
|
|
49
49
|
custom_llm_extra_body?: Record<string, any>;
|
|
50
50
|
conversation_config_override?: Record<string, any>;
|
|
51
51
|
dynamic_variables?: Record<string, any>;
|
|
52
|
+
environment?: string;
|
|
52
53
|
}
|
|
53
54
|
/**
|
|
54
55
|
* Event for client tool results.
|
|
@@ -9,6 +9,7 @@ import { KnowledgeBaseClient } from "../resources/knowledgeBase/client/Client";
|
|
|
9
9
|
import { LinkClient } from "../resources/link/client/Client";
|
|
10
10
|
import { LlmUsageClient } from "../resources/llmUsage/client/Client";
|
|
11
11
|
import { SummariesClient } from "../resources/summaries/client/Client";
|
|
12
|
+
import { VersionsClient } from "../resources/versions/client/Client";
|
|
12
13
|
import { WidgetClient } from "../resources/widget/client/Client";
|
|
13
14
|
export declare namespace AgentsClient {
|
|
14
15
|
type Options = BaseClientOptions;
|
|
@@ -23,6 +24,7 @@ export declare class AgentsClient {
|
|
|
23
24
|
protected _knowledgeBase: KnowledgeBaseClient | undefined;
|
|
24
25
|
protected _llmUsage: LlmUsageClient | undefined;
|
|
25
26
|
protected _branches: BranchesClient | undefined;
|
|
27
|
+
protected _versions: VersionsClient | undefined;
|
|
26
28
|
protected _deployments: DeploymentsClient | undefined;
|
|
27
29
|
protected _drafts: DraftsClient | undefined;
|
|
28
30
|
constructor(options?: AgentsClient.Options);
|
|
@@ -32,6 +34,7 @@ export declare class AgentsClient {
|
|
|
32
34
|
get knowledgeBase(): KnowledgeBaseClient;
|
|
33
35
|
get llmUsage(): LlmUsageClient;
|
|
34
36
|
get branches(): BranchesClient;
|
|
37
|
+
get versions(): VersionsClient;
|
|
35
38
|
get deployments(): DeploymentsClient;
|
|
36
39
|
get drafts(): DraftsClient;
|
|
37
40
|
/**
|
|
@@ -70,7 +70,8 @@ const Client_4 = require("../resources/knowledgeBase/client/Client");
|
|
|
70
70
|
const Client_5 = require("../resources/link/client/Client");
|
|
71
71
|
const Client_6 = require("../resources/llmUsage/client/Client");
|
|
72
72
|
const Client_7 = require("../resources/summaries/client/Client");
|
|
73
|
-
const Client_8 = require("../resources/
|
|
73
|
+
const Client_8 = require("../resources/versions/client/Client");
|
|
74
|
+
const Client_9 = require("../resources/widget/client/Client");
|
|
74
75
|
class AgentsClient {
|
|
75
76
|
constructor(options = {}) {
|
|
76
77
|
this._options = (0, BaseClient_1.normalizeClientOptions)(options);
|
|
@@ -81,7 +82,7 @@ class AgentsClient {
|
|
|
81
82
|
}
|
|
82
83
|
get widget() {
|
|
83
84
|
var _a;
|
|
84
|
-
return ((_a = this._widget) !== null && _a !== void 0 ? _a : (this._widget = new
|
|
85
|
+
return ((_a = this._widget) !== null && _a !== void 0 ? _a : (this._widget = new Client_9.WidgetClient(this._options)));
|
|
85
86
|
}
|
|
86
87
|
get link() {
|
|
87
88
|
var _a;
|
|
@@ -99,6 +100,10 @@ class AgentsClient {
|
|
|
99
100
|
var _a;
|
|
100
101
|
return ((_a = this._branches) !== null && _a !== void 0 ? _a : (this._branches = new Client_1.BranchesClient(this._options)));
|
|
101
102
|
}
|
|
103
|
+
get versions() {
|
|
104
|
+
var _a;
|
|
105
|
+
return ((_a = this._versions) !== null && _a !== void 0 ? _a : (this._versions = new Client_8.VersionsClient(this._options)));
|
|
106
|
+
}
|
|
102
107
|
get deployments() {
|
|
103
108
|
var _a;
|
|
104
109
|
return ((_a = this._deployments) !== null && _a !== void 0 ? _a : (this._deployments = new Client_2.DeploymentsClient(this._options)));
|
|
@@ -11,5 +11,6 @@ export * from "./llmUsage/client/requests";
|
|
|
11
11
|
export * as summaries from "./summaries";
|
|
12
12
|
export * from "./summaries/client/requests";
|
|
13
13
|
export * from "./summaries/types";
|
|
14
|
+
export * as versions from "./versions";
|
|
14
15
|
export * as widget from "./widget";
|
|
15
16
|
export * from "./widget/client/requests";
|
|
@@ -36,7 +36,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.widget = exports.summaries = exports.llmUsage = exports.link = exports.knowledgeBase = exports.drafts = exports.deployments = exports.branches = void 0;
|
|
39
|
+
exports.widget = exports.versions = exports.summaries = exports.llmUsage = exports.link = exports.knowledgeBase = exports.drafts = exports.deployments = exports.branches = void 0;
|
|
40
40
|
exports.branches = __importStar(require("./branches"));
|
|
41
41
|
__exportStar(require("./branches/client/requests"), exports);
|
|
42
42
|
exports.deployments = __importStar(require("./deployments"));
|
|
@@ -50,5 +50,6 @@ __exportStar(require("./llmUsage/client/requests"), exports);
|
|
|
50
50
|
exports.summaries = __importStar(require("./summaries"));
|
|
51
51
|
__exportStar(require("./summaries/client/requests"), exports);
|
|
52
52
|
__exportStar(require("./summaries/types"), exports);
|
|
53
|
+
exports.versions = __importStar(require("./versions"));
|
|
53
54
|
exports.widget = __importStar(require("./widget"));
|
|
54
55
|
__exportStar(require("./widget/client/requests"), exports);
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../../../BaseClient";
|
|
2
|
+
import { type NormalizedClientOptions } from "../../../../../../../../BaseClient";
|
|
3
|
+
import * as core from "../../../../../../../../core";
|
|
4
|
+
import * as ElevenLabs from "../../../../../../../index";
|
|
5
|
+
export declare namespace VersionsClient {
|
|
6
|
+
type Options = BaseClientOptions;
|
|
7
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export declare class VersionsClient {
|
|
11
|
+
protected readonly _options: NormalizedClientOptions<VersionsClient.Options>;
|
|
12
|
+
constructor(options?: VersionsClient.Options);
|
|
13
|
+
/**
|
|
14
|
+
* Get metadata for a specific agent version
|
|
15
|
+
*
|
|
16
|
+
* @param {string} agent_id - The id of an agent. This is returned on agent creation.
|
|
17
|
+
* @param {string} version_id - Unique identifier for the version.
|
|
18
|
+
* @param {VersionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
19
|
+
*
|
|
20
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* await client.conversationalAi.agents.versions.get("agent_3701k3ttaq12ewp8b7qv5rfyszkz", "agtvrsn_0901k4aafjxxfxt93gd841r7tv5t")
|
|
24
|
+
*/
|
|
25
|
+
get(agent_id: string, version_id: string, requestOptions?: VersionsClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.AgentVersionMetadata>;
|
|
26
|
+
private __get;
|
|
27
|
+
}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
37
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
38
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
39
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
40
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
41
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
42
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46
|
+
exports.VersionsClient = void 0;
|
|
47
|
+
const BaseClient_1 = require("../../../../../../../../BaseClient");
|
|
48
|
+
const core = __importStar(require("../../../../../../../../core"));
|
|
49
|
+
const headers_1 = require("../../../../../../../../core/headers");
|
|
50
|
+
const environments = __importStar(require("../../../../../../../../environments"));
|
|
51
|
+
const handleNonStatusCodeError_1 = require("../../../../../../../../errors/handleNonStatusCodeError");
|
|
52
|
+
const errors = __importStar(require("../../../../../../../../errors/index"));
|
|
53
|
+
const serializers = __importStar(require("../../../../../../../../serialization/index"));
|
|
54
|
+
const ElevenLabs = __importStar(require("../../../../../../../index"));
|
|
55
|
+
class VersionsClient {
|
|
56
|
+
constructor(options = {}) {
|
|
57
|
+
this._options = (0, BaseClient_1.normalizeClientOptions)(options);
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Get metadata for a specific agent version
|
|
61
|
+
*
|
|
62
|
+
* @param {string} agent_id - The id of an agent. This is returned on agent creation.
|
|
63
|
+
* @param {string} version_id - Unique identifier for the version.
|
|
64
|
+
* @param {VersionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
65
|
+
*
|
|
66
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
67
|
+
*
|
|
68
|
+
* @example
|
|
69
|
+
* await client.conversationalAi.agents.versions.get("agent_3701k3ttaq12ewp8b7qv5rfyszkz", "agtvrsn_0901k4aafjxxfxt93gd841r7tv5t")
|
|
70
|
+
*/
|
|
71
|
+
get(agent_id, version_id, requestOptions) {
|
|
72
|
+
return core.HttpResponsePromise.fromPromise(this.__get(agent_id, version_id, requestOptions));
|
|
73
|
+
}
|
|
74
|
+
__get(agent_id, version_id, requestOptions) {
|
|
75
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
76
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
77
|
+
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);
|
|
78
|
+
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
79
|
+
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ElevenLabsEnvironment.Production, `v1/convai/agents/${core.url.encodePathParam(agent_id)}/versions/${core.url.encodePathParam(version_id)}`),
|
|
80
|
+
method: "GET",
|
|
81
|
+
headers: _headers,
|
|
82
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
83
|
+
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,
|
|
84
|
+
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,
|
|
85
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
86
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
87
|
+
logging: this._options.logging,
|
|
88
|
+
});
|
|
89
|
+
if (_response.ok) {
|
|
90
|
+
return {
|
|
91
|
+
data: serializers.AgentVersionMetadata.parseOrThrow(_response.body, {
|
|
92
|
+
unrecognizedObjectKeys: "passthrough",
|
|
93
|
+
allowUnrecognizedUnionMembers: true,
|
|
94
|
+
allowUnrecognizedEnumValues: true,
|
|
95
|
+
breadcrumbsPrefix: ["response"],
|
|
96
|
+
}),
|
|
97
|
+
rawResponse: _response.rawResponse,
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
if (_response.error.reason === "status-code") {
|
|
101
|
+
switch (_response.error.statusCode) {
|
|
102
|
+
case 422:
|
|
103
|
+
throw new ElevenLabs.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
104
|
+
default:
|
|
105
|
+
throw new errors.ElevenLabsError({
|
|
106
|
+
statusCode: _response.error.statusCode,
|
|
107
|
+
body: _response.error.body,
|
|
108
|
+
rawResponse: _response.rawResponse,
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v1/convai/agents/{agent_id}/versions/{version_id}");
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
exports.VersionsClient = VersionsClient;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./client"), exports);
|
|
@@ -98,6 +98,7 @@ export declare class ConversationsClient {
|
|
|
98
98
|
* summaryMode: "exclude",
|
|
99
99
|
* search: "search",
|
|
100
100
|
* conversationInitiationSource: "unknown",
|
|
101
|
+
* textOnly: true,
|
|
101
102
|
* branchId: "branch_id",
|
|
102
103
|
* topicIds: ["topic_ids"],
|
|
103
104
|
* excludeStatuses: ["initiated"],
|
|
@@ -266,6 +266,7 @@ class ConversationsClient {
|
|
|
266
266
|
* summaryMode: "exclude",
|
|
267
267
|
* search: "search",
|
|
268
268
|
* conversationInitiationSource: "unknown",
|
|
269
|
+
* textOnly: true,
|
|
269
270
|
* branchId: "branch_id",
|
|
270
271
|
* topicIds: ["topic_ids"],
|
|
271
272
|
* excludeStatuses: ["initiated"],
|
|
@@ -278,7 +279,7 @@ class ConversationsClient {
|
|
|
278
279
|
__list() {
|
|
279
280
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
280
281
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
281
|
-
const { cursor, agentId, callSuccessful, callStartBeforeUnix, callStartAfterUnix, callDurationMinSecs, callDurationMaxSecs, ratingMax, ratingMin, hasFeedbackComment, userId, evaluationParams, dataCollectionParams, toolNames, toolNamesSuccessful, toolNamesErrored, mainLanguages, pageSize, summaryMode, search, conversationInitiationSource, branchId, topicIds, excludeStatuses, tagIds, } = request;
|
|
282
|
+
const { cursor, agentId, callSuccessful, callStartBeforeUnix, callStartAfterUnix, callDurationMinSecs, callDurationMaxSecs, ratingMax, ratingMin, hasFeedbackComment, userId, evaluationParams, dataCollectionParams, toolNames, toolNamesSuccessful, toolNamesErrored, mainLanguages, pageSize, summaryMode, search, conversationInitiationSource, textOnly, branchId, topicIds, excludeStatuses, tagIds, } = request;
|
|
282
283
|
const _queryParams = {};
|
|
283
284
|
if (cursor != null) {
|
|
284
285
|
_queryParams.cursor = cursor;
|
|
@@ -375,6 +376,9 @@ class ConversationsClient {
|
|
|
375
376
|
if (conversationInitiationSource != null) {
|
|
376
377
|
_queryParams.conversation_initiation_source = serializers.ConversationInitiationSource.jsonOrThrow(conversationInitiationSource, { unrecognizedObjectKeys: "strip" });
|
|
377
378
|
}
|
|
379
|
+
if (textOnly != null) {
|
|
380
|
+
_queryParams.text_only = textOnly.toString();
|
|
381
|
+
}
|
|
378
382
|
if (branchId != null) {
|
|
379
383
|
_queryParams.branch_id = branchId;
|
|
380
384
|
}
|
|
@@ -23,6 +23,7 @@ import type * as ElevenLabs from "../../../../../../index";
|
|
|
23
23
|
* summaryMode: "exclude",
|
|
24
24
|
* search: "search",
|
|
25
25
|
* conversationInitiationSource: "unknown",
|
|
26
|
+
* textOnly: true,
|
|
26
27
|
* branchId: "branch_id",
|
|
27
28
|
* topicIds: ["topic_ids"],
|
|
28
29
|
* excludeStatuses: ["initiated"],
|
|
@@ -71,6 +72,7 @@ export interface ConversationsListRequest {
|
|
|
71
72
|
/** Full-text or fuzzy search over transcript messages */
|
|
72
73
|
search?: string;
|
|
73
74
|
conversationInitiationSource?: ElevenLabs.ConversationInitiationSource;
|
|
75
|
+
textOnly?: boolean;
|
|
74
76
|
/** Filter conversations by branch ID. */
|
|
75
77
|
branchId?: string;
|
|
76
78
|
/** Filter conversations by topic IDs assigned during topic discovery. */
|
package/api/resources/conversationalAi/resources/conversations/resources/messages/client/Client.js
CHANGED
|
@@ -86,6 +86,7 @@ class MessagesClient {
|
|
|
86
86
|
* pageSize: 1,
|
|
87
87
|
* summaryMode: "exclude",
|
|
88
88
|
* conversationInitiationSource: "unknown",
|
|
89
|
+
* textOnly: true,
|
|
89
90
|
* branchId: "branch_id",
|
|
90
91
|
* sortBy: "search_score",
|
|
91
92
|
* cursor: "cursor"
|
|
@@ -97,7 +98,7 @@ class MessagesClient {
|
|
|
97
98
|
__textSearch(request, requestOptions) {
|
|
98
99
|
return __awaiter(this, void 0, void 0, function* () {
|
|
99
100
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
100
|
-
const { textQuery, agentId, callSuccessful, callStartBeforeUnix, callStartAfterUnix, callDurationMinSecs, callDurationMaxSecs, ratingMax, ratingMin, hasFeedbackComment, userId, evaluationParams, dataCollectionParams, toolNames, toolNamesSuccessful, toolNamesErrored, mainLanguages, pageSize, summaryMode, conversationInitiationSource, branchId, sortBy, cursor, } = request;
|
|
101
|
+
const { textQuery, agentId, callSuccessful, callStartBeforeUnix, callStartAfterUnix, callDurationMinSecs, callDurationMaxSecs, ratingMax, ratingMin, hasFeedbackComment, userId, evaluationParams, dataCollectionParams, toolNames, toolNamesSuccessful, toolNamesErrored, mainLanguages, pageSize, summaryMode, conversationInitiationSource, textOnly, branchId, sortBy, cursor, } = request;
|
|
101
102
|
const _queryParams = {};
|
|
102
103
|
_queryParams.text_query = textQuery;
|
|
103
104
|
if (agentId != null) {
|
|
@@ -190,6 +191,9 @@ class MessagesClient {
|
|
|
190
191
|
if (conversationInitiationSource != null) {
|
|
191
192
|
_queryParams.conversation_initiation_source = serializers.ConversationInitiationSource.jsonOrThrow(conversationInitiationSource, { unrecognizedObjectKeys: "strip" });
|
|
192
193
|
}
|
|
194
|
+
if (textOnly != null) {
|
|
195
|
+
_queryParams.text_only = textOnly.toString();
|
|
196
|
+
}
|
|
193
197
|
if (branchId != null) {
|
|
194
198
|
_queryParams.branch_id = branchId;
|
|
195
199
|
}
|
|
@@ -22,6 +22,7 @@ import type * as ElevenLabs from "../../../../../../../../index";
|
|
|
22
22
|
* pageSize: 1,
|
|
23
23
|
* summaryMode: "exclude",
|
|
24
24
|
* conversationInitiationSource: "unknown",
|
|
25
|
+
* textOnly: true,
|
|
25
26
|
* branchId: "branch_id",
|
|
26
27
|
* sortBy: "search_score",
|
|
27
28
|
* cursor: "cursor"
|
|
@@ -67,6 +68,7 @@ export interface MessagesTextSearchRequest {
|
|
|
67
68
|
/** Whether to include transcript summaries in the response. */
|
|
68
69
|
summaryMode?: ElevenLabs.conversationalAi.conversations.MessagesTextSearchRequestSummaryMode;
|
|
69
70
|
conversationInitiationSource?: ElevenLabs.ConversationInitiationSource;
|
|
71
|
+
textOnly?: boolean;
|
|
70
72
|
/** Filter conversations by branch ID. */
|
|
71
73
|
branchId?: string;
|
|
72
74
|
/** Sort order for search results. 'search_score' sorts by search score, 'created_at' sorts by conversation start time. */
|
|
@@ -55,4 +55,20 @@ export declare class AuthConnectionsClient {
|
|
|
55
55
|
*/
|
|
56
56
|
delete(auth_connection_id: string, requestOptions?: AuthConnectionsClient.RequestOptions): core.HttpResponsePromise<unknown>;
|
|
57
57
|
private __delete;
|
|
58
|
+
/**
|
|
59
|
+
* Update an auth connection
|
|
60
|
+
*
|
|
61
|
+
* @param {string} auth_connection_id
|
|
62
|
+
* @param {ElevenLabs.workspace.AuthConnectionsUpdateRequestBody} request
|
|
63
|
+
* @param {AuthConnectionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
66
|
+
*
|
|
67
|
+
* @example
|
|
68
|
+
* await client.workspace.authConnections.update("auth_connection_id", {
|
|
69
|
+
* authType: "oauth2_client_credentials"
|
|
70
|
+
* })
|
|
71
|
+
*/
|
|
72
|
+
update(auth_connection_id: string, request: ElevenLabs.workspace.AuthConnectionsUpdateRequestBody, requestOptions?: AuthConnectionsClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.workspace.AuthConnectionsUpdateResponse>;
|
|
73
|
+
private __update;
|
|
58
74
|
}
|
|
@@ -224,5 +224,68 @@ class AuthConnectionsClient {
|
|
|
224
224
|
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/v1/workspace/auth-connections/{auth_connection_id}");
|
|
225
225
|
});
|
|
226
226
|
}
|
|
227
|
+
/**
|
|
228
|
+
* Update an auth connection
|
|
229
|
+
*
|
|
230
|
+
* @param {string} auth_connection_id
|
|
231
|
+
* @param {ElevenLabs.workspace.AuthConnectionsUpdateRequestBody} request
|
|
232
|
+
* @param {AuthConnectionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
233
|
+
*
|
|
234
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
235
|
+
*
|
|
236
|
+
* @example
|
|
237
|
+
* await client.workspace.authConnections.update("auth_connection_id", {
|
|
238
|
+
* authType: "oauth2_client_credentials"
|
|
239
|
+
* })
|
|
240
|
+
*/
|
|
241
|
+
update(auth_connection_id, request, requestOptions) {
|
|
242
|
+
return core.HttpResponsePromise.fromPromise(this.__update(auth_connection_id, request, requestOptions));
|
|
243
|
+
}
|
|
244
|
+
__update(auth_connection_id, request, requestOptions) {
|
|
245
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
246
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
247
|
+
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);
|
|
248
|
+
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
249
|
+
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/workspace/auth-connections/${core.url.encodePathParam(auth_connection_id)}`),
|
|
250
|
+
method: "PATCH",
|
|
251
|
+
headers: _headers,
|
|
252
|
+
contentType: "application/json",
|
|
253
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
254
|
+
requestType: "json",
|
|
255
|
+
body: serializers.workspace.AuthConnectionsUpdateRequestBody.jsonOrThrow(request, {
|
|
256
|
+
unrecognizedObjectKeys: "strip",
|
|
257
|
+
}),
|
|
258
|
+
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,
|
|
259
|
+
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,
|
|
260
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
261
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
262
|
+
logging: this._options.logging,
|
|
263
|
+
});
|
|
264
|
+
if (_response.ok) {
|
|
265
|
+
return {
|
|
266
|
+
data: serializers.workspace.AuthConnectionsUpdateResponse.parseOrThrow(_response.body, {
|
|
267
|
+
unrecognizedObjectKeys: "passthrough",
|
|
268
|
+
allowUnrecognizedUnionMembers: true,
|
|
269
|
+
allowUnrecognizedEnumValues: true,
|
|
270
|
+
breadcrumbsPrefix: ["response"],
|
|
271
|
+
}),
|
|
272
|
+
rawResponse: _response.rawResponse,
|
|
273
|
+
};
|
|
274
|
+
}
|
|
275
|
+
if (_response.error.reason === "status-code") {
|
|
276
|
+
switch (_response.error.statusCode) {
|
|
277
|
+
case 422:
|
|
278
|
+
throw new ElevenLabs.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
279
|
+
default:
|
|
280
|
+
throw new errors.ElevenLabsError({
|
|
281
|
+
statusCode: _response.error.statusCode,
|
|
282
|
+
body: _response.error.body,
|
|
283
|
+
rawResponse: _response.rawResponse,
|
|
284
|
+
});
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "PATCH", "/v1/workspace/auth-connections/{auth_connection_id}");
|
|
288
|
+
});
|
|
289
|
+
}
|
|
227
290
|
}
|
|
228
291
|
exports.AuthConnectionsClient = AuthConnectionsClient;
|
|
@@ -2,7 +2,7 @@ import type * as ElevenLabs from "../../../../../index";
|
|
|
2
2
|
/**
|
|
3
3
|
* Auth connection to create
|
|
4
4
|
*/
|
|
5
|
-
export type AuthConnectionsCreateRequestBody = ElevenLabs.workspace.AuthConnectionsCreateRequestBody.Oauth2ClientCredentials | ElevenLabs.workspace.AuthConnectionsCreateRequestBody.CustomHeaderAuth | ElevenLabs.workspace.AuthConnectionsCreateRequestBody.BasicAuth | ElevenLabs.workspace.AuthConnectionsCreateRequestBody.Oauth2Jwt | ElevenLabs.workspace.AuthConnectionsCreateRequestBody.PrivateKeyJwt | ElevenLabs.workspace.AuthConnectionsCreateRequestBody.Mtls;
|
|
5
|
+
export type AuthConnectionsCreateRequestBody = ElevenLabs.workspace.AuthConnectionsCreateRequestBody.Oauth2ClientCredentials | ElevenLabs.workspace.AuthConnectionsCreateRequestBody.CustomHeaderAuth | ElevenLabs.workspace.AuthConnectionsCreateRequestBody.BasicAuth | ElevenLabs.workspace.AuthConnectionsCreateRequestBody.BearerAuth | ElevenLabs.workspace.AuthConnectionsCreateRequestBody.Oauth2Jwt | ElevenLabs.workspace.AuthConnectionsCreateRequestBody.PrivateKeyJwt | ElevenLabs.workspace.AuthConnectionsCreateRequestBody.Mtls;
|
|
6
6
|
export declare namespace AuthConnectionsCreateRequestBody {
|
|
7
7
|
interface Oauth2ClientCredentials extends ElevenLabs.CreateOAuth2ClientCredsRequest {
|
|
8
8
|
authType: "oauth2_client_credentials";
|
|
@@ -13,6 +13,9 @@ export declare namespace AuthConnectionsCreateRequestBody {
|
|
|
13
13
|
interface BasicAuth extends ElevenLabs.CreateBasicAuthRequest {
|
|
14
14
|
authType: "basic_auth";
|
|
15
15
|
}
|
|
16
|
+
interface BearerAuth extends ElevenLabs.CreateBearerAuthRequest {
|
|
17
|
+
authType: "bearer_auth";
|
|
18
|
+
}
|
|
16
19
|
interface Oauth2Jwt extends ElevenLabs.CreateOAuth2JwtRequest {
|
|
17
20
|
authType: "oauth2_jwt";
|
|
18
21
|
}
|
package/api/resources/workspace/resources/authConnections/types/AuthConnectionsCreateResponse.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import type * as ElevenLabs from "../../../../../index";
|
|
|
2
2
|
/**
|
|
3
3
|
* The type of auth connection config
|
|
4
4
|
*/
|
|
5
|
-
export type AuthConnectionsCreateResponse = ElevenLabs.workspace.AuthConnectionsCreateResponse.Oauth2ClientCredentials | ElevenLabs.workspace.AuthConnectionsCreateResponse.BasicAuth | ElevenLabs.workspace.AuthConnectionsCreateResponse.BearerAuth | ElevenLabs.workspace.AuthConnectionsCreateResponse.Oauth2Jwt | ElevenLabs.workspace.AuthConnectionsCreateResponse.PrivateKeyJwt | ElevenLabs.workspace.AuthConnectionsCreateResponse.Mtls | ElevenLabs.workspace.AuthConnectionsCreateResponse.CustomHeaderAuth | ElevenLabs.workspace.AuthConnectionsCreateResponse.ApiIntegrationOauth2AuthCode | ElevenLabs.workspace.AuthConnectionsCreateResponse.ApiIntegrationOauth2CustomApp | ElevenLabs.workspace.AuthConnectionsCreateResponse.WhatsappAuth;
|
|
5
|
+
export type AuthConnectionsCreateResponse = ElevenLabs.workspace.AuthConnectionsCreateResponse.Oauth2ClientCredentials | ElevenLabs.workspace.AuthConnectionsCreateResponse.BasicAuth | ElevenLabs.workspace.AuthConnectionsCreateResponse.BearerAuth | ElevenLabs.workspace.AuthConnectionsCreateResponse.Oauth2Jwt | ElevenLabs.workspace.AuthConnectionsCreateResponse.PrivateKeyJwt | ElevenLabs.workspace.AuthConnectionsCreateResponse.Mtls | ElevenLabs.workspace.AuthConnectionsCreateResponse.CustomHeaderAuth | ElevenLabs.workspace.AuthConnectionsCreateResponse.ApiIntegrationOauth2AuthCode | ElevenLabs.workspace.AuthConnectionsCreateResponse.ApiIntegrationOauth2CustomApp | ElevenLabs.workspace.AuthConnectionsCreateResponse.WhatsappAuth | ElevenLabs.workspace.AuthConnectionsCreateResponse.SlackBotAuth;
|
|
6
6
|
export declare namespace AuthConnectionsCreateResponse {
|
|
7
7
|
interface Oauth2ClientCredentials extends ElevenLabs.OAuth2ClientCredsResponse {
|
|
8
8
|
authType: "oauth2_client_credentials";
|
|
@@ -34,4 +34,7 @@ export declare namespace AuthConnectionsCreateResponse {
|
|
|
34
34
|
interface WhatsappAuth extends ElevenLabs.WhatsAppAuthResponse {
|
|
35
35
|
authType: "whatsapp_auth";
|
|
36
36
|
}
|
|
37
|
+
interface SlackBotAuth extends ElevenLabs.SlackBotAuthResponse {
|
|
38
|
+
authType: "slack_bot_auth";
|
|
39
|
+
}
|
|
37
40
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type * as ElevenLabs from "../../../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* Updated auth connection fields
|
|
4
|
+
*/
|
|
5
|
+
export type AuthConnectionsUpdateRequestBody = ElevenLabs.workspace.AuthConnectionsUpdateRequestBody.Oauth2ClientCredentials | ElevenLabs.workspace.AuthConnectionsUpdateRequestBody.BasicAuth | ElevenLabs.workspace.AuthConnectionsUpdateRequestBody.Oauth2Jwt;
|
|
6
|
+
export declare namespace AuthConnectionsUpdateRequestBody {
|
|
7
|
+
interface Oauth2ClientCredentials extends ElevenLabs.UpdateOAuth2ClientCredsRequest {
|
|
8
|
+
authType: "oauth2_client_credentials";
|
|
9
|
+
}
|
|
10
|
+
interface BasicAuth extends ElevenLabs.UpdateBasicAuthRequest {
|
|
11
|
+
authType: "basic_auth";
|
|
12
|
+
}
|
|
13
|
+
interface Oauth2Jwt extends ElevenLabs.UpdateOAuth2JwtRequest {
|
|
14
|
+
authType: "oauth2_jwt";
|
|
15
|
+
}
|
|
16
|
+
}
|
package/api/resources/workspace/resources/authConnections/types/AuthConnectionsUpdateResponse.d.ts
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type * as ElevenLabs from "../../../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* The type of auth connection config
|
|
4
|
+
*/
|
|
5
|
+
export type AuthConnectionsUpdateResponse = ElevenLabs.workspace.AuthConnectionsUpdateResponse.Oauth2ClientCredentials | ElevenLabs.workspace.AuthConnectionsUpdateResponse.BasicAuth | ElevenLabs.workspace.AuthConnectionsUpdateResponse.BearerAuth | ElevenLabs.workspace.AuthConnectionsUpdateResponse.Oauth2Jwt | ElevenLabs.workspace.AuthConnectionsUpdateResponse.PrivateKeyJwt | ElevenLabs.workspace.AuthConnectionsUpdateResponse.Mtls | ElevenLabs.workspace.AuthConnectionsUpdateResponse.CustomHeaderAuth | ElevenLabs.workspace.AuthConnectionsUpdateResponse.ApiIntegrationOauth2AuthCode | ElevenLabs.workspace.AuthConnectionsUpdateResponse.ApiIntegrationOauth2CustomApp | ElevenLabs.workspace.AuthConnectionsUpdateResponse.WhatsappAuth | ElevenLabs.workspace.AuthConnectionsUpdateResponse.SlackBotAuth;
|
|
6
|
+
export declare namespace AuthConnectionsUpdateResponse {
|
|
7
|
+
interface Oauth2ClientCredentials extends ElevenLabs.OAuth2ClientCredsResponse {
|
|
8
|
+
authType: "oauth2_client_credentials";
|
|
9
|
+
}
|
|
10
|
+
interface BasicAuth extends ElevenLabs.BasicAuthResponse {
|
|
11
|
+
authType: "basic_auth";
|
|
12
|
+
}
|
|
13
|
+
interface BearerAuth extends ElevenLabs.BearerAuthResponse {
|
|
14
|
+
authType: "bearer_auth";
|
|
15
|
+
}
|
|
16
|
+
interface Oauth2Jwt extends ElevenLabs.OAuth2JwtResponse {
|
|
17
|
+
authType: "oauth2_jwt";
|
|
18
|
+
}
|
|
19
|
+
interface PrivateKeyJwt extends ElevenLabs.PrivateKeyJwtResponse {
|
|
20
|
+
authType: "private_key_jwt";
|
|
21
|
+
}
|
|
22
|
+
interface Mtls extends ElevenLabs.MtlsAuthResponse {
|
|
23
|
+
authType: "mtls";
|
|
24
|
+
}
|
|
25
|
+
interface CustomHeaderAuth extends ElevenLabs.CustomHeaderAuthResponse {
|
|
26
|
+
authType: "custom_header_auth";
|
|
27
|
+
}
|
|
28
|
+
interface ApiIntegrationOauth2AuthCode extends ElevenLabs.ApiIntegrationOAuth2AuthCodeResponse {
|
|
29
|
+
authType: "api_integration_oauth2_auth_code";
|
|
30
|
+
}
|
|
31
|
+
interface ApiIntegrationOauth2CustomApp extends ElevenLabs.ApiIntegrationOAuth2CustomAppResponse {
|
|
32
|
+
authType: "api_integration_oauth2_custom_app";
|
|
33
|
+
}
|
|
34
|
+
interface WhatsappAuth extends ElevenLabs.WhatsAppAuthResponse {
|
|
35
|
+
authType: "whatsapp_auth";
|
|
36
|
+
}
|
|
37
|
+
interface SlackBotAuth extends ElevenLabs.SlackBotAuthResponse {
|
|
38
|
+
authType: "slack_bot_auth";
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -16,3 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./AuthConnectionsCreateRequestBody"), exports);
|
|
18
18
|
__exportStar(require("./AuthConnectionsCreateResponse"), exports);
|
|
19
|
+
__exportStar(require("./AuthConnectionsUpdateRequestBody"), exports);
|
|
20
|
+
__exportStar(require("./AuthConnectionsUpdateResponse"), exports);
|