@elevenlabs/elevenlabs-js 2.0.1 → 2.1.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/.mock/asyncapi.yml +6 -6
- package/.mock/definition/__package__.yml +109 -5
- package/.mock/definition/conversationalAi/agents/knowledgeBase.yml +32 -0
- package/.mock/definition/conversationalAi/agents/link.yml +2 -1
- package/.mock/definition/conversationalAi/agents/llmUsage.yml +51 -0
- package/.mock/definition/conversationalAi/llmUsage.yml +52 -0
- package/.mock/definition/v1TextToSpeechVoiceIdMultiStreamInput.yml +5 -3
- package/.mock/openapi.json +501 -1
- package/README.md +2 -2
- package/api/resources/audioIsolation/client/Client.js +4 -4
- package/api/resources/audioNative/client/Client.js +6 -6
- package/api/resources/conversationalAi/client/Client.d.ts +3 -0
- package/api/resources/conversationalAi/client/Client.js +21 -16
- package/api/resources/conversationalAi/resources/agents/client/Client.d.ts +6 -0
- package/api/resources/conversationalAi/resources/agents/client/Client.js +24 -14
- package/api/resources/conversationalAi/resources/agents/resources/index.d.ts +3 -0
- package/api/resources/conversationalAi/resources/agents/resources/index.js +4 -1
- package/api/resources/conversationalAi/resources/agents/resources/knowledgeBase/client/Client.d.ts +44 -0
- package/api/resources/conversationalAi/resources/agents/resources/knowledgeBase/client/Client.js +137 -0
- package/api/resources/conversationalAi/resources/agents/resources/knowledgeBase/client/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/agents/resources/knowledgeBase/client/index.js +2 -0
- package/api/resources/conversationalAi/resources/agents/resources/knowledgeBase/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/agents/resources/knowledgeBase/index.js +17 -0
- package/api/resources/conversationalAi/resources/agents/resources/link/client/Client.js +2 -2
- package/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/Client.d.ts +45 -0
- package/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/Client.js +141 -0
- package/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/index.js +17 -0
- package/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/requests/LlmUsageCalculatorRequestModel.d.ts +15 -0
- package/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/requests/LlmUsageCalculatorRequestModel.js +5 -0
- package/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/requests/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/requests/index.js +2 -0
- package/api/resources/conversationalAi/resources/agents/resources/llmUsage/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/agents/resources/llmUsage/index.js +17 -0
- package/api/resources/conversationalAi/resources/agents/resources/widget/client/Client.js +2 -2
- package/api/resources/conversationalAi/resources/agents/resources/widget/resources/avatar/client/Client.js +2 -2
- package/api/resources/conversationalAi/resources/batchCalls/client/Client.js +6 -6
- package/api/resources/conversationalAi/resources/conversations/client/Client.js +8 -8
- package/api/resources/conversationalAi/resources/conversations/resources/audio/client/Client.js +2 -2
- package/api/resources/conversationalAi/resources/conversations/resources/feedback/client/Client.js +2 -2
- package/api/resources/conversationalAi/resources/dashboard/resources/settings/client/Client.js +4 -4
- package/api/resources/conversationalAi/resources/index.d.ts +2 -0
- package/api/resources/conversationalAi/resources/index.js +3 -1
- package/api/resources/conversationalAi/resources/knowledgeBase/client/Client.js +2 -2
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/document/client/Client.js +2 -2
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.js +16 -16
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/chunk/client/Client.js +2 -2
- package/api/resources/conversationalAi/resources/llmUsage/client/Client.d.ts +48 -0
- package/api/resources/conversationalAi/resources/llmUsage/client/Client.js +144 -0
- package/api/resources/conversationalAi/resources/llmUsage/client/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/llmUsage/client/index.js +17 -0
- package/api/resources/conversationalAi/resources/llmUsage/client/requests/LlmUsageCalculatorPublicRequestModel.d.ts +19 -0
- package/api/resources/conversationalAi/resources/llmUsage/client/requests/LlmUsageCalculatorPublicRequestModel.js +5 -0
- package/api/resources/conversationalAi/resources/llmUsage/client/requests/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/llmUsage/client/requests/index.js +2 -0
- package/api/resources/conversationalAi/resources/llmUsage/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/llmUsage/index.js +17 -0
- package/api/resources/conversationalAi/resources/phoneNumbers/client/Client.js +10 -10
- package/api/resources/conversationalAi/resources/secrets/client/Client.js +6 -6
- package/api/resources/conversationalAi/resources/settings/client/Client.js +4 -4
- package/api/resources/conversationalAi/resources/sipTrunk/client/Client.js +2 -2
- package/api/resources/conversationalAi/resources/twilio/client/Client.js +2 -2
- package/api/resources/dubbing/client/Client.js +6 -6
- package/api/resources/dubbing/resources/audio/client/Client.js +2 -2
- package/api/resources/dubbing/resources/resource/client/Client.js +10 -10
- package/api/resources/dubbing/resources/resource/resources/language/client/Client.js +2 -2
- package/api/resources/dubbing/resources/resource/resources/segment/client/Client.js +4 -4
- package/api/resources/dubbing/resources/resource/resources/speaker/client/Client.js +4 -4
- package/api/resources/dubbing/resources/resource/resources/speaker/resources/segment/client/Client.js +2 -2
- package/api/resources/dubbing/resources/transcript/client/Client.js +2 -2
- package/api/resources/forcedAlignment/client/Client.js +2 -2
- package/api/resources/history/client/Client.js +10 -10
- package/api/resources/models/client/Client.js +2 -2
- package/api/resources/pronunciationDictionaries/client/Client.js +10 -10
- package/api/resources/pronunciationDictionaries/resources/rules/client/Client.js +4 -4
- package/api/resources/samples/client/Client.js +2 -2
- package/api/resources/speechToSpeech/client/Client.js +4 -4
- package/api/resources/studio/client/Client.js +2 -2
- package/api/resources/studio/resources/projects/client/Client.js +12 -12
- package/api/resources/studio/resources/projects/resources/chapters/client/Client.js +12 -12
- package/api/resources/studio/resources/projects/resources/chapters/resources/snapshots/client/Client.js +6 -6
- package/api/resources/studio/resources/projects/resources/content/client/Client.js +2 -2
- package/api/resources/studio/resources/projects/resources/pronunciationDictionaries/client/Client.js +2 -2
- package/api/resources/studio/resources/projects/resources/snapshots/client/Client.js +8 -8
- package/api/resources/textToSoundEffects/client/Client.js +2 -2
- package/api/resources/textToSpeech/client/Client.js +8 -8
- package/api/resources/textToVoice/client/Client.js +4 -4
- package/api/resources/usage/client/Client.js +2 -2
- package/api/resources/user/client/Client.js +2 -2
- package/api/resources/user/resources/subscription/client/Client.js +2 -2
- package/api/resources/voices/client/Client.js +16 -16
- package/api/resources/voices/resources/ivc/client/Client.js +2 -2
- package/api/resources/voices/resources/pvc/client/Client.js +6 -6
- package/api/resources/voices/resources/pvc/resources/samples/client/Client.js +6 -6
- package/api/resources/voices/resources/pvc/resources/samples/resources/audio/client/Client.js +2 -2
- package/api/resources/voices/resources/pvc/resources/samples/resources/speakers/client/Client.js +4 -4
- package/api/resources/voices/resources/pvc/resources/samples/resources/speakers/resources/audio/client/Client.js +2 -2
- package/api/resources/voices/resources/pvc/resources/samples/resources/waveform/client/Client.js +2 -2
- package/api/resources/voices/resources/pvc/resources/verification/client/Client.js +2 -2
- package/api/resources/voices/resources/pvc/resources/verification/resources/captcha/client/Client.js +4 -4
- package/api/resources/voices/resources/samples/resources/audio/client/Client.js +2 -2
- package/api/resources/voices/resources/settings/client/Client.js +6 -6
- package/api/resources/workspace/resources/groups/client/Client.js +2 -2
- package/api/resources/workspace/resources/groups/resources/members/client/Client.js +4 -4
- package/api/resources/workspace/resources/invites/client/Client.js +6 -6
- package/api/resources/workspace/resources/members/client/Client.js +4 -4
- package/api/resources/workspace/resources/resources/client/Client.js +6 -6
- package/api/types/AudioOutputMulti.d.ts +1 -1
- package/api/types/ChapterContentBlockInputModel.d.ts +1 -0
- package/api/types/ChapterContentBlockInputModelSubType.d.ts +10 -0
- package/api/types/ChapterContentBlockInputModelSubType.js +12 -0
- package/api/types/ConversationTokenDbModel.d.ts +2 -0
- package/api/types/GetAgentKnowledgebaseSizeResponseModel.d.ts +6 -0
- package/api/types/GetAgentKnowledgebaseSizeResponseModel.js +5 -0
- package/api/types/LlmUsageCalculatorLlmResponseModel.d.ts +8 -0
- package/api/types/LlmUsageCalculatorLlmResponseModel.js +5 -0
- package/api/types/LlmUsageCalculatorResponseModel.d.ts +7 -0
- package/api/types/LlmUsageCalculatorResponseModel.js +5 -0
- package/api/types/NativeMcpToolConfigInput.d.ts +20 -0
- package/api/types/NativeMcpToolConfigInput.js +5 -0
- package/api/types/NativeMcpToolConfigOutput.d.ts +20 -0
- package/api/types/NativeMcpToolConfigOutput.js +5 -0
- package/api/types/PromptAgent.d.ts +2 -0
- package/api/types/PromptAgentDbModel.d.ts +2 -0
- package/api/types/PromptAgentDbModelToolsItem.d.ts +4 -1
- package/api/types/PromptAgentInputToolsItem.d.ts +4 -1
- package/api/types/PromptAgentOutputToolsItem.d.ts +4 -1
- package/api/types/WebsocketTtsClientMessageMulti.d.ts +2 -2
- package/api/types/index.d.ts +6 -0
- package/api/types/index.js +6 -0
- package/dist/api/resources/audioIsolation/client/Client.js +4 -4
- package/dist/api/resources/audioNative/client/Client.js +6 -6
- package/dist/api/resources/conversationalAi/client/Client.d.ts +3 -0
- package/dist/api/resources/conversationalAi/client/Client.js +21 -16
- package/dist/api/resources/conversationalAi/resources/agents/client/Client.d.ts +6 -0
- package/dist/api/resources/conversationalAi/resources/agents/client/Client.js +24 -14
- package/dist/api/resources/conversationalAi/resources/agents/resources/index.d.ts +3 -0
- package/dist/api/resources/conversationalAi/resources/agents/resources/index.js +4 -1
- package/dist/api/resources/conversationalAi/resources/agents/resources/knowledgeBase/client/Client.d.ts +44 -0
- package/dist/api/resources/conversationalAi/resources/agents/resources/knowledgeBase/client/Client.js +137 -0
- package/dist/api/resources/conversationalAi/resources/agents/resources/knowledgeBase/client/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/agents/resources/knowledgeBase/client/index.js +2 -0
- package/dist/api/resources/conversationalAi/resources/agents/resources/knowledgeBase/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/agents/resources/knowledgeBase/index.js +17 -0
- package/dist/api/resources/conversationalAi/resources/agents/resources/link/client/Client.js +2 -2
- package/dist/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/Client.d.ts +45 -0
- package/dist/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/Client.js +141 -0
- package/dist/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/index.js +17 -0
- package/dist/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/requests/LlmUsageCalculatorRequestModel.d.ts +15 -0
- package/dist/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/requests/LlmUsageCalculatorRequestModel.js +5 -0
- package/dist/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/requests/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/requests/index.js +2 -0
- package/dist/api/resources/conversationalAi/resources/agents/resources/llmUsage/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/agents/resources/llmUsage/index.js +17 -0
- package/dist/api/resources/conversationalAi/resources/agents/resources/widget/client/Client.js +2 -2
- package/dist/api/resources/conversationalAi/resources/agents/resources/widget/resources/avatar/client/Client.js +2 -2
- package/dist/api/resources/conversationalAi/resources/batchCalls/client/Client.js +6 -6
- package/dist/api/resources/conversationalAi/resources/conversations/client/Client.js +8 -8
- package/dist/api/resources/conversationalAi/resources/conversations/resources/audio/client/Client.js +2 -2
- package/dist/api/resources/conversationalAi/resources/conversations/resources/feedback/client/Client.js +2 -2
- package/dist/api/resources/conversationalAi/resources/dashboard/resources/settings/client/Client.js +4 -4
- package/dist/api/resources/conversationalAi/resources/index.d.ts +2 -0
- package/dist/api/resources/conversationalAi/resources/index.js +3 -1
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/client/Client.js +2 -2
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/document/client/Client.js +2 -2
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.js +16 -16
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/chunk/client/Client.js +2 -2
- package/dist/api/resources/conversationalAi/resources/llmUsage/client/Client.d.ts +48 -0
- package/dist/api/resources/conversationalAi/resources/llmUsage/client/Client.js +144 -0
- package/dist/api/resources/conversationalAi/resources/llmUsage/client/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/llmUsage/client/index.js +17 -0
- package/dist/api/resources/conversationalAi/resources/llmUsage/client/requests/LlmUsageCalculatorPublicRequestModel.d.ts +19 -0
- package/dist/api/resources/conversationalAi/resources/llmUsage/client/requests/LlmUsageCalculatorPublicRequestModel.js +5 -0
- package/dist/api/resources/conversationalAi/resources/llmUsage/client/requests/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/llmUsage/client/requests/index.js +2 -0
- package/dist/api/resources/conversationalAi/resources/llmUsage/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/llmUsage/index.js +17 -0
- package/dist/api/resources/conversationalAi/resources/phoneNumbers/client/Client.js +10 -10
- package/dist/api/resources/conversationalAi/resources/secrets/client/Client.js +6 -6
- package/dist/api/resources/conversationalAi/resources/settings/client/Client.js +4 -4
- package/dist/api/resources/conversationalAi/resources/sipTrunk/client/Client.js +2 -2
- package/dist/api/resources/conversationalAi/resources/twilio/client/Client.js +2 -2
- package/dist/api/resources/dubbing/client/Client.js +6 -6
- package/dist/api/resources/dubbing/resources/audio/client/Client.js +2 -2
- package/dist/api/resources/dubbing/resources/resource/client/Client.js +10 -10
- package/dist/api/resources/dubbing/resources/resource/resources/language/client/Client.js +2 -2
- package/dist/api/resources/dubbing/resources/resource/resources/segment/client/Client.js +4 -4
- package/dist/api/resources/dubbing/resources/resource/resources/speaker/client/Client.js +4 -4
- package/dist/api/resources/dubbing/resources/resource/resources/speaker/resources/segment/client/Client.js +2 -2
- package/dist/api/resources/dubbing/resources/transcript/client/Client.js +2 -2
- package/dist/api/resources/forcedAlignment/client/Client.js +2 -2
- package/dist/api/resources/history/client/Client.js +10 -10
- package/dist/api/resources/models/client/Client.js +2 -2
- package/dist/api/resources/pronunciationDictionaries/client/Client.js +10 -10
- package/dist/api/resources/pronunciationDictionaries/resources/rules/client/Client.js +4 -4
- package/dist/api/resources/samples/client/Client.js +2 -2
- package/dist/api/resources/speechToSpeech/client/Client.js +4 -4
- package/dist/api/resources/studio/client/Client.js +2 -2
- package/dist/api/resources/studio/resources/projects/client/Client.js +12 -12
- package/dist/api/resources/studio/resources/projects/resources/chapters/client/Client.js +12 -12
- package/dist/api/resources/studio/resources/projects/resources/chapters/resources/snapshots/client/Client.js +6 -6
- package/dist/api/resources/studio/resources/projects/resources/content/client/Client.js +2 -2
- package/dist/api/resources/studio/resources/projects/resources/pronunciationDictionaries/client/Client.js +2 -2
- package/dist/api/resources/studio/resources/projects/resources/snapshots/client/Client.js +8 -8
- package/dist/api/resources/textToSoundEffects/client/Client.js +2 -2
- package/dist/api/resources/textToSpeech/client/Client.js +8 -8
- package/dist/api/resources/textToVoice/client/Client.js +4 -4
- package/dist/api/resources/usage/client/Client.js +2 -2
- package/dist/api/resources/user/client/Client.js +2 -2
- package/dist/api/resources/user/resources/subscription/client/Client.js +2 -2
- package/dist/api/resources/voices/client/Client.js +16 -16
- package/dist/api/resources/voices/resources/ivc/client/Client.js +2 -2
- package/dist/api/resources/voices/resources/pvc/client/Client.js +6 -6
- package/dist/api/resources/voices/resources/pvc/resources/samples/client/Client.js +6 -6
- package/dist/api/resources/voices/resources/pvc/resources/samples/resources/audio/client/Client.js +2 -2
- package/dist/api/resources/voices/resources/pvc/resources/samples/resources/speakers/client/Client.js +4 -4
- package/dist/api/resources/voices/resources/pvc/resources/samples/resources/speakers/resources/audio/client/Client.js +2 -2
- package/dist/api/resources/voices/resources/pvc/resources/samples/resources/waveform/client/Client.js +2 -2
- package/dist/api/resources/voices/resources/pvc/resources/verification/client/Client.js +2 -2
- package/dist/api/resources/voices/resources/pvc/resources/verification/resources/captcha/client/Client.js +4 -4
- package/dist/api/resources/voices/resources/samples/resources/audio/client/Client.js +2 -2
- package/dist/api/resources/voices/resources/settings/client/Client.js +6 -6
- package/dist/api/resources/workspace/resources/groups/client/Client.js +2 -2
- package/dist/api/resources/workspace/resources/groups/resources/members/client/Client.js +4 -4
- package/dist/api/resources/workspace/resources/invites/client/Client.js +6 -6
- package/dist/api/resources/workspace/resources/members/client/Client.js +4 -4
- package/dist/api/resources/workspace/resources/resources/client/Client.js +6 -6
- package/dist/api/types/AudioOutputMulti.d.ts +1 -1
- package/dist/api/types/ChapterContentBlockInputModel.d.ts +1 -0
- package/dist/api/types/ChapterContentBlockInputModelSubType.d.ts +10 -0
- package/dist/api/types/ChapterContentBlockInputModelSubType.js +12 -0
- package/dist/api/types/ConversationTokenDbModel.d.ts +2 -0
- package/dist/api/types/GetAgentKnowledgebaseSizeResponseModel.d.ts +6 -0
- package/dist/api/types/GetAgentKnowledgebaseSizeResponseModel.js +5 -0
- package/dist/api/types/LlmUsageCalculatorLlmResponseModel.d.ts +8 -0
- package/dist/api/types/LlmUsageCalculatorLlmResponseModel.js +5 -0
- package/dist/api/types/LlmUsageCalculatorResponseModel.d.ts +7 -0
- package/dist/api/types/LlmUsageCalculatorResponseModel.js +5 -0
- package/dist/api/types/NativeMcpToolConfigInput.d.ts +20 -0
- package/dist/api/types/NativeMcpToolConfigInput.js +5 -0
- package/dist/api/types/NativeMcpToolConfigOutput.d.ts +20 -0
- package/dist/api/types/NativeMcpToolConfigOutput.js +5 -0
- package/dist/api/types/PromptAgent.d.ts +2 -0
- package/dist/api/types/PromptAgentDbModel.d.ts +2 -0
- package/dist/api/types/PromptAgentDbModelToolsItem.d.ts +4 -1
- package/dist/api/types/PromptAgentInputToolsItem.d.ts +4 -1
- package/dist/api/types/PromptAgentOutputToolsItem.d.ts +4 -1
- package/dist/api/types/WebsocketTtsClientMessageMulti.d.ts +2 -2
- package/dist/api/types/index.d.ts +6 -0
- package/dist/api/types/index.js +6 -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/index.d.ts +2 -0
- package/dist/serialization/resources/conversationalAi/resources/agents/resources/index.js +41 -0
- package/dist/serialization/resources/conversationalAi/resources/agents/resources/llmUsage/client/index.d.ts +1 -0
- package/dist/serialization/resources/conversationalAi/resources/agents/resources/llmUsage/client/index.js +17 -0
- package/dist/serialization/resources/conversationalAi/resources/agents/resources/llmUsage/client/requests/LlmUsageCalculatorRequestModel.d.ts +14 -0
- package/dist/serialization/resources/conversationalAi/resources/agents/resources/llmUsage/client/requests/LlmUsageCalculatorRequestModel.js +45 -0
- package/dist/serialization/resources/conversationalAi/resources/agents/resources/llmUsage/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/conversationalAi/resources/agents/resources/llmUsage/client/requests/index.js +5 -0
- package/dist/serialization/resources/conversationalAi/resources/agents/resources/llmUsage/index.d.ts +1 -0
- package/dist/serialization/resources/conversationalAi/resources/agents/resources/llmUsage/index.js +17 -0
- package/dist/serialization/resources/conversationalAi/resources/index.d.ts +2 -0
- package/dist/serialization/resources/conversationalAi/resources/index.js +3 -1
- package/dist/serialization/resources/conversationalAi/resources/llmUsage/client/index.d.ts +1 -0
- package/dist/serialization/resources/conversationalAi/resources/llmUsage/client/index.js +17 -0
- package/dist/serialization/resources/conversationalAi/resources/llmUsage/client/requests/LlmUsageCalculatorPublicRequestModel.d.ts +14 -0
- package/dist/serialization/resources/conversationalAi/resources/llmUsage/client/requests/LlmUsageCalculatorPublicRequestModel.js +45 -0
- package/dist/serialization/resources/conversationalAi/resources/llmUsage/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/conversationalAi/resources/llmUsage/client/requests/index.js +5 -0
- package/dist/serialization/resources/conversationalAi/resources/llmUsage/index.d.ts +1 -0
- package/dist/serialization/resources/conversationalAi/resources/llmUsage/index.js +17 -0
- package/dist/serialization/types/AudioOutputMulti.d.ts +1 -1
- package/dist/serialization/types/AudioOutputMulti.js +1 -1
- package/dist/serialization/types/ChapterContentBlockInputModel.d.ts +2 -0
- package/dist/serialization/types/ChapterContentBlockInputModel.js +2 -0
- package/dist/serialization/types/ChapterContentBlockInputModelSubType.d.ts +10 -0
- package/dist/serialization/types/ChapterContentBlockInputModelSubType.js +41 -0
- package/dist/serialization/types/ConversationTokenDbModel.d.ts +1 -0
- package/dist/serialization/types/ConversationTokenDbModel.js +1 -0
- package/dist/serialization/types/GetAgentKnowledgebaseSizeResponseModel.d.ts +12 -0
- package/dist/serialization/types/GetAgentKnowledgebaseSizeResponseModel.js +43 -0
- package/dist/serialization/types/LlmUsageCalculatorLlmResponseModel.d.ts +14 -0
- package/dist/serialization/types/LlmUsageCalculatorLlmResponseModel.js +45 -0
- package/dist/serialization/types/LlmUsageCalculatorResponseModel.d.ts +13 -0
- package/dist/serialization/types/LlmUsageCalculatorResponseModel.js +44 -0
- package/dist/serialization/types/NativeMcpToolConfigInput.d.ts +18 -0
- package/dist/serialization/types/NativeMcpToolConfigInput.js +50 -0
- package/dist/serialization/types/NativeMcpToolConfigOutput.d.ts +18 -0
- package/dist/serialization/types/NativeMcpToolConfigOutput.js +50 -0
- package/dist/serialization/types/PromptAgent.d.ts +1 -0
- package/dist/serialization/types/PromptAgent.js +1 -0
- package/dist/serialization/types/PromptAgentDbModel.d.ts +1 -0
- package/dist/serialization/types/PromptAgentDbModel.js +1 -0
- package/dist/serialization/types/PromptAgentDbModelToolsItem.d.ts +5 -1
- package/dist/serialization/types/PromptAgentDbModelToolsItem.js +2 -0
- package/dist/serialization/types/PromptAgentInputToolsItem.d.ts +5 -1
- package/dist/serialization/types/PromptAgentInputToolsItem.js +2 -0
- package/dist/serialization/types/PromptAgentOutputToolsItem.d.ts +5 -1
- package/dist/serialization/types/PromptAgentOutputToolsItem.js +2 -0
- package/dist/serialization/types/WebsocketTtsClientMessageMulti.d.ts +1 -1
- package/dist/serialization/types/WebsocketTtsClientMessageMulti.js +1 -1
- package/dist/serialization/types/index.d.ts +6 -0
- package/dist/serialization/types/index.js +6 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +207 -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/index.d.ts +2 -0
- package/serialization/resources/conversationalAi/resources/agents/resources/index.js +41 -0
- package/serialization/resources/conversationalAi/resources/agents/resources/llmUsage/client/index.d.ts +1 -0
- package/serialization/resources/conversationalAi/resources/agents/resources/llmUsage/client/index.js +17 -0
- package/serialization/resources/conversationalAi/resources/agents/resources/llmUsage/client/requests/LlmUsageCalculatorRequestModel.d.ts +14 -0
- package/serialization/resources/conversationalAi/resources/agents/resources/llmUsage/client/requests/LlmUsageCalculatorRequestModel.js +45 -0
- package/serialization/resources/conversationalAi/resources/agents/resources/llmUsage/client/requests/index.d.ts +1 -0
- package/serialization/resources/conversationalAi/resources/agents/resources/llmUsage/client/requests/index.js +5 -0
- package/serialization/resources/conversationalAi/resources/agents/resources/llmUsage/index.d.ts +1 -0
- package/serialization/resources/conversationalAi/resources/agents/resources/llmUsage/index.js +17 -0
- package/serialization/resources/conversationalAi/resources/index.d.ts +2 -0
- package/serialization/resources/conversationalAi/resources/index.js +3 -1
- package/serialization/resources/conversationalAi/resources/llmUsage/client/index.d.ts +1 -0
- package/serialization/resources/conversationalAi/resources/llmUsage/client/index.js +17 -0
- package/serialization/resources/conversationalAi/resources/llmUsage/client/requests/LlmUsageCalculatorPublicRequestModel.d.ts +14 -0
- package/serialization/resources/conversationalAi/resources/llmUsage/client/requests/LlmUsageCalculatorPublicRequestModel.js +45 -0
- package/serialization/resources/conversationalAi/resources/llmUsage/client/requests/index.d.ts +1 -0
- package/serialization/resources/conversationalAi/resources/llmUsage/client/requests/index.js +5 -0
- package/serialization/resources/conversationalAi/resources/llmUsage/index.d.ts +1 -0
- package/serialization/resources/conversationalAi/resources/llmUsage/index.js +17 -0
- package/serialization/types/AudioOutputMulti.d.ts +1 -1
- package/serialization/types/AudioOutputMulti.js +1 -1
- package/serialization/types/ChapterContentBlockInputModel.d.ts +2 -0
- package/serialization/types/ChapterContentBlockInputModel.js +2 -0
- package/serialization/types/ChapterContentBlockInputModelSubType.d.ts +10 -0
- package/serialization/types/ChapterContentBlockInputModelSubType.js +41 -0
- package/serialization/types/ConversationTokenDbModel.d.ts +1 -0
- package/serialization/types/ConversationTokenDbModel.js +1 -0
- package/serialization/types/GetAgentKnowledgebaseSizeResponseModel.d.ts +12 -0
- package/serialization/types/GetAgentKnowledgebaseSizeResponseModel.js +43 -0
- package/serialization/types/LlmUsageCalculatorLlmResponseModel.d.ts +14 -0
- package/serialization/types/LlmUsageCalculatorLlmResponseModel.js +45 -0
- package/serialization/types/LlmUsageCalculatorResponseModel.d.ts +13 -0
- package/serialization/types/LlmUsageCalculatorResponseModel.js +44 -0
- package/serialization/types/NativeMcpToolConfigInput.d.ts +18 -0
- package/serialization/types/NativeMcpToolConfigInput.js +50 -0
- package/serialization/types/NativeMcpToolConfigOutput.d.ts +18 -0
- package/serialization/types/NativeMcpToolConfigOutput.js +50 -0
- package/serialization/types/PromptAgent.d.ts +1 -0
- package/serialization/types/PromptAgent.js +1 -0
- package/serialization/types/PromptAgentDbModel.d.ts +1 -0
- package/serialization/types/PromptAgentDbModel.js +1 -0
- package/serialization/types/PromptAgentDbModelToolsItem.d.ts +5 -1
- package/serialization/types/PromptAgentDbModelToolsItem.js +2 -0
- package/serialization/types/PromptAgentInputToolsItem.d.ts +5 -1
- package/serialization/types/PromptAgentInputToolsItem.js +2 -0
- package/serialization/types/PromptAgentOutputToolsItem.d.ts +5 -1
- package/serialization/types/PromptAgentOutputToolsItem.js +2 -0
- package/serialization/types/WebsocketTtsClientMessageMulti.d.ts +1 -1
- package/serialization/types/WebsocketTtsClientMessageMulti.js +1 -1
- package/serialization/types/index.d.ts +6 -0
- package/serialization/types/index.js +6 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
package/.mock/openapi.json
CHANGED
|
@@ -10790,6 +10790,150 @@
|
|
|
10790
10790
|
"x-fern-sdk-method-name": "list"
|
|
10791
10791
|
}
|
|
10792
10792
|
},
|
|
10793
|
+
"/v1/convai/agent/{agent_id}/knowledge-base/size": {
|
|
10794
|
+
"get": {
|
|
10795
|
+
"operationId": "Returns_the_size_of_the_agent_s_knowledge_base_v1_convai_agent__agent_id__knowledge_base_size_get",
|
|
10796
|
+
"summary": "Returns The Size Of The Agent'S Knowledge Base",
|
|
10797
|
+
"description": "Returns the number of pages in the agent's knowledge base.",
|
|
10798
|
+
"parameters": [
|
|
10799
|
+
{
|
|
10800
|
+
"name": "agent_id",
|
|
10801
|
+
"in": "path",
|
|
10802
|
+
"required": true,
|
|
10803
|
+
"schema": {
|
|
10804
|
+
"type": "string",
|
|
10805
|
+
"title": "Agent Id"
|
|
10806
|
+
}
|
|
10807
|
+
},
|
|
10808
|
+
{
|
|
10809
|
+
"name": "xi-api-key",
|
|
10810
|
+
"in": "header",
|
|
10811
|
+
"description": "Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website.",
|
|
10812
|
+
"required": false,
|
|
10813
|
+
"schema": {
|
|
10814
|
+
"description": "Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website.",
|
|
10815
|
+
"anyOf": [
|
|
10816
|
+
{
|
|
10817
|
+
"type": "string"
|
|
10818
|
+
},
|
|
10819
|
+
{
|
|
10820
|
+
"type": "null"
|
|
10821
|
+
}
|
|
10822
|
+
],
|
|
10823
|
+
"title": "Xi-Api-Key"
|
|
10824
|
+
}
|
|
10825
|
+
}
|
|
10826
|
+
],
|
|
10827
|
+
"responses": {
|
|
10828
|
+
"200": {
|
|
10829
|
+
"description": "Successful Response",
|
|
10830
|
+
"content": {
|
|
10831
|
+
"application/json": {
|
|
10832
|
+
"schema": {
|
|
10833
|
+
"$ref": "#/components/schemas/GetAgentKnowledgebaseSizeResponseModel"
|
|
10834
|
+
}
|
|
10835
|
+
}
|
|
10836
|
+
}
|
|
10837
|
+
},
|
|
10838
|
+
"422": {
|
|
10839
|
+
"description": "Validation Error",
|
|
10840
|
+
"content": {
|
|
10841
|
+
"application/json": {
|
|
10842
|
+
"schema": {
|
|
10843
|
+
"$ref": "#/components/schemas/HTTPValidationError"
|
|
10844
|
+
}
|
|
10845
|
+
}
|
|
10846
|
+
}
|
|
10847
|
+
}
|
|
10848
|
+
},
|
|
10849
|
+
"tags": [
|
|
10850
|
+
"Conversational AI"
|
|
10851
|
+
],
|
|
10852
|
+
"x-fern-sdk-group-name": [
|
|
10853
|
+
"conversational_ai",
|
|
10854
|
+
"agents",
|
|
10855
|
+
"knowledge_base"
|
|
10856
|
+
],
|
|
10857
|
+
"x-fern-sdk-method-name": "size"
|
|
10858
|
+
}
|
|
10859
|
+
},
|
|
10860
|
+
"/v1/convai/agent/{agent_id}/llm-usage/calculate": {
|
|
10861
|
+
"post": {
|
|
10862
|
+
"operationId": "Calculate_expected_LLM_usage_for_an_agent_v1_convai_agent__agent_id__llm_usage_calculate_post",
|
|
10863
|
+
"summary": "Calculate Expected Llm Usage For An Agent",
|
|
10864
|
+
"description": "Calculates expected number of LLM tokens needed for the specified agent.",
|
|
10865
|
+
"parameters": [
|
|
10866
|
+
{
|
|
10867
|
+
"name": "agent_id",
|
|
10868
|
+
"in": "path",
|
|
10869
|
+
"required": true,
|
|
10870
|
+
"schema": {
|
|
10871
|
+
"type": "string",
|
|
10872
|
+
"title": "Agent Id"
|
|
10873
|
+
}
|
|
10874
|
+
},
|
|
10875
|
+
{
|
|
10876
|
+
"name": "xi-api-key",
|
|
10877
|
+
"in": "header",
|
|
10878
|
+
"description": "Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website.",
|
|
10879
|
+
"required": false,
|
|
10880
|
+
"schema": {
|
|
10881
|
+
"description": "Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website.",
|
|
10882
|
+
"anyOf": [
|
|
10883
|
+
{
|
|
10884
|
+
"type": "string"
|
|
10885
|
+
},
|
|
10886
|
+
{
|
|
10887
|
+
"type": "null"
|
|
10888
|
+
}
|
|
10889
|
+
],
|
|
10890
|
+
"title": "Xi-Api-Key"
|
|
10891
|
+
}
|
|
10892
|
+
}
|
|
10893
|
+
],
|
|
10894
|
+
"requestBody": {
|
|
10895
|
+
"required": true,
|
|
10896
|
+
"content": {
|
|
10897
|
+
"application/json": {
|
|
10898
|
+
"schema": {
|
|
10899
|
+
"$ref": "#/components/schemas/LLMUsageCalculatorRequestModel"
|
|
10900
|
+
}
|
|
10901
|
+
}
|
|
10902
|
+
}
|
|
10903
|
+
},
|
|
10904
|
+
"responses": {
|
|
10905
|
+
"200": {
|
|
10906
|
+
"description": "Successful Response",
|
|
10907
|
+
"content": {
|
|
10908
|
+
"application/json": {
|
|
10909
|
+
"schema": {
|
|
10910
|
+
"$ref": "#/components/schemas/LLMUsageCalculatorResponseModel"
|
|
10911
|
+
}
|
|
10912
|
+
}
|
|
10913
|
+
}
|
|
10914
|
+
},
|
|
10915
|
+
"422": {
|
|
10916
|
+
"description": "Validation Error",
|
|
10917
|
+
"content": {
|
|
10918
|
+
"application/json": {
|
|
10919
|
+
"schema": {
|
|
10920
|
+
"$ref": "#/components/schemas/HTTPValidationError"
|
|
10921
|
+
}
|
|
10922
|
+
}
|
|
10923
|
+
}
|
|
10924
|
+
}
|
|
10925
|
+
},
|
|
10926
|
+
"tags": [
|
|
10927
|
+
"Conversational AI"
|
|
10928
|
+
],
|
|
10929
|
+
"x-fern-sdk-group-name": [
|
|
10930
|
+
"conversational_ai",
|
|
10931
|
+
"agents",
|
|
10932
|
+
"llm_usage"
|
|
10933
|
+
],
|
|
10934
|
+
"x-fern-sdk-method-name": "calculate"
|
|
10935
|
+
}
|
|
10936
|
+
},
|
|
10793
10937
|
"/v1/convai/agents/{agent_id}/simulate-conversation": {
|
|
10794
10938
|
"post": {
|
|
10795
10939
|
"operationId": "Simulates_a_conversation_v1_convai_agents__agent_id__simulate_conversation_post",
|
|
@@ -11789,6 +11933,53 @@
|
|
|
11789
11933
|
"x-fern-sdk-method-name": "list"
|
|
11790
11934
|
}
|
|
11791
11935
|
},
|
|
11936
|
+
"/v1/convai/llm-usage/calculate": {
|
|
11937
|
+
"post": {
|
|
11938
|
+
"operationId": "Calculate_expected_LLM_usage_v1_convai_llm_usage_calculate_post",
|
|
11939
|
+
"summary": "Calculate Expected Llm Usage",
|
|
11940
|
+
"description": "Returns a list of LLM models and the expected cost for using them based on the provided values.",
|
|
11941
|
+
"requestBody": {
|
|
11942
|
+
"required": true,
|
|
11943
|
+
"content": {
|
|
11944
|
+
"application/json": {
|
|
11945
|
+
"schema": {
|
|
11946
|
+
"$ref": "#/components/schemas/LLMUsageCalculatorPublicRequestModel"
|
|
11947
|
+
}
|
|
11948
|
+
}
|
|
11949
|
+
}
|
|
11950
|
+
},
|
|
11951
|
+
"responses": {
|
|
11952
|
+
"200": {
|
|
11953
|
+
"description": "Successful Response",
|
|
11954
|
+
"content": {
|
|
11955
|
+
"application/json": {
|
|
11956
|
+
"schema": {
|
|
11957
|
+
"$ref": "#/components/schemas/LLMUsageCalculatorResponseModel"
|
|
11958
|
+
}
|
|
11959
|
+
}
|
|
11960
|
+
}
|
|
11961
|
+
},
|
|
11962
|
+
"422": {
|
|
11963
|
+
"description": "Validation Error",
|
|
11964
|
+
"content": {
|
|
11965
|
+
"application/json": {
|
|
11966
|
+
"schema": {
|
|
11967
|
+
"$ref": "#/components/schemas/HTTPValidationError"
|
|
11968
|
+
}
|
|
11969
|
+
}
|
|
11970
|
+
}
|
|
11971
|
+
}
|
|
11972
|
+
},
|
|
11973
|
+
"tags": [
|
|
11974
|
+
"Conversational AI"
|
|
11975
|
+
],
|
|
11976
|
+
"x-fern-sdk-group-name": [
|
|
11977
|
+
"conversational_ai",
|
|
11978
|
+
"llm_usage"
|
|
11979
|
+
],
|
|
11980
|
+
"x-fern-sdk-method-name": "calculate"
|
|
11981
|
+
}
|
|
11982
|
+
},
|
|
11792
11983
|
"/v1/convai/knowledge-base": {
|
|
11793
11984
|
"post": {
|
|
11794
11985
|
"operationId": "Add_to_knowledge_base_v1_convai_knowledge_base_post",
|
|
@@ -21273,6 +21464,23 @@
|
|
|
21273
21464
|
"ChapterContentBlockInputModel": {
|
|
21274
21465
|
"type": "object",
|
|
21275
21466
|
"properties": {
|
|
21467
|
+
"sub_type": {
|
|
21468
|
+
"anyOf": [
|
|
21469
|
+
{
|
|
21470
|
+
"type": "string",
|
|
21471
|
+
"enum": [
|
|
21472
|
+
"p",
|
|
21473
|
+
"h1",
|
|
21474
|
+
"h2",
|
|
21475
|
+
"h3"
|
|
21476
|
+
]
|
|
21477
|
+
},
|
|
21478
|
+
{
|
|
21479
|
+
"type": "null"
|
|
21480
|
+
}
|
|
21481
|
+
],
|
|
21482
|
+
"title": "Sub Type"
|
|
21483
|
+
},
|
|
21276
21484
|
"block_id": {
|
|
21277
21485
|
"anyOf": [
|
|
21278
21486
|
{
|
|
@@ -23522,6 +23730,18 @@
|
|
|
23522
23730
|
],
|
|
23523
23731
|
"title": "Expiration Time Unix Secs"
|
|
23524
23732
|
},
|
|
23733
|
+
"conversation_id": {
|
|
23734
|
+
"description": "The ID of the conversation",
|
|
23735
|
+
"anyOf": [
|
|
23736
|
+
{
|
|
23737
|
+
"type": "string"
|
|
23738
|
+
},
|
|
23739
|
+
{
|
|
23740
|
+
"type": "null"
|
|
23741
|
+
}
|
|
23742
|
+
],
|
|
23743
|
+
"title": "Conversation Id"
|
|
23744
|
+
},
|
|
23525
23745
|
"purpose": {
|
|
23526
23746
|
"description": "The purpose of the token",
|
|
23527
23747
|
"default": "signed_url",
|
|
@@ -23529,7 +23749,8 @@
|
|
|
23529
23749
|
}
|
|
23530
23750
|
},
|
|
23531
23751
|
"example": {
|
|
23532
|
-
"agent_id": "
|
|
23752
|
+
"agent_id": "agent_J3Pbu5gP6NNKBscdCdwB",
|
|
23753
|
+
"conversation_id": "conv_J3Pbu5gP6NNKBscdCdwB",
|
|
23533
23754
|
"conversation_token": "1234567890",
|
|
23534
23755
|
"expiration_time_unix_secs": 1716153600,
|
|
23535
23756
|
"purpose": "signed_url"
|
|
@@ -25416,6 +25637,19 @@
|
|
|
25416
25637
|
],
|
|
25417
25638
|
"title": "GetAgentEmbedResponseModel"
|
|
25418
25639
|
},
|
|
25640
|
+
"GetAgentKnowledgebaseSizeResponseModel": {
|
|
25641
|
+
"type": "object",
|
|
25642
|
+
"properties": {
|
|
25643
|
+
"number_of_pages": {
|
|
25644
|
+
"type": "number",
|
|
25645
|
+
"title": "Number Of Pages"
|
|
25646
|
+
}
|
|
25647
|
+
},
|
|
25648
|
+
"required": [
|
|
25649
|
+
"number_of_pages"
|
|
25650
|
+
],
|
|
25651
|
+
"title": "GetAgentKnowledgebaseSizeResponseModel"
|
|
25652
|
+
},
|
|
25419
25653
|
"GetAgentLinkResponseModel": {
|
|
25420
25654
|
"type": "object",
|
|
25421
25655
|
"properties": {
|
|
@@ -27201,6 +27435,107 @@
|
|
|
27201
27435
|
},
|
|
27202
27436
|
"title": "LLMUsage"
|
|
27203
27437
|
},
|
|
27438
|
+
"LLMUsageCalculatorLLMResponseModel": {
|
|
27439
|
+
"type": "object",
|
|
27440
|
+
"properties": {
|
|
27441
|
+
"llm": {
|
|
27442
|
+
"$ref": "#/components/schemas/LLM"
|
|
27443
|
+
},
|
|
27444
|
+
"price_per_minute": {
|
|
27445
|
+
"type": "number",
|
|
27446
|
+
"title": "Price Per Minute"
|
|
27447
|
+
}
|
|
27448
|
+
},
|
|
27449
|
+
"required": [
|
|
27450
|
+
"llm",
|
|
27451
|
+
"price_per_minute"
|
|
27452
|
+
],
|
|
27453
|
+
"title": "LLMUsageCalculatorLLMResponseModel"
|
|
27454
|
+
},
|
|
27455
|
+
"LLMUsageCalculatorPublicRequestModel": {
|
|
27456
|
+
"type": "object",
|
|
27457
|
+
"properties": {
|
|
27458
|
+
"prompt_length": {
|
|
27459
|
+
"description": "Length of the prompt in characters.",
|
|
27460
|
+
"type": "integer",
|
|
27461
|
+
"title": "Prompt Length"
|
|
27462
|
+
},
|
|
27463
|
+
"number_of_pages": {
|
|
27464
|
+
"description": "Pages of content in PDF documents or URLs in the agent's knowledge base.",
|
|
27465
|
+
"type": "integer",
|
|
27466
|
+
"title": "Number Of Pages"
|
|
27467
|
+
},
|
|
27468
|
+
"rag_enabled": {
|
|
27469
|
+
"description": "Whether RAG is enabled.",
|
|
27470
|
+
"type": "boolean",
|
|
27471
|
+
"title": "Rag Enabled"
|
|
27472
|
+
}
|
|
27473
|
+
},
|
|
27474
|
+
"required": [
|
|
27475
|
+
"prompt_length",
|
|
27476
|
+
"number_of_pages",
|
|
27477
|
+
"rag_enabled"
|
|
27478
|
+
],
|
|
27479
|
+
"title": "LLMUsageCalculatorPublicRequestModel"
|
|
27480
|
+
},
|
|
27481
|
+
"LLMUsageCalculatorRequestModel": {
|
|
27482
|
+
"type": "object",
|
|
27483
|
+
"properties": {
|
|
27484
|
+
"prompt_length": {
|
|
27485
|
+
"description": "Length of the prompt in characters.",
|
|
27486
|
+
"anyOf": [
|
|
27487
|
+
{
|
|
27488
|
+
"type": "integer"
|
|
27489
|
+
},
|
|
27490
|
+
{
|
|
27491
|
+
"type": "null"
|
|
27492
|
+
}
|
|
27493
|
+
],
|
|
27494
|
+
"title": "Prompt Length"
|
|
27495
|
+
},
|
|
27496
|
+
"number_of_pages": {
|
|
27497
|
+
"description": "Pages of content in pdf documents OR urls in agent's Knowledge Base.",
|
|
27498
|
+
"anyOf": [
|
|
27499
|
+
{
|
|
27500
|
+
"type": "integer"
|
|
27501
|
+
},
|
|
27502
|
+
{
|
|
27503
|
+
"type": "null"
|
|
27504
|
+
}
|
|
27505
|
+
],
|
|
27506
|
+
"title": "Number Of Pages"
|
|
27507
|
+
},
|
|
27508
|
+
"rag_enabled": {
|
|
27509
|
+
"description": "Whether RAG is enabled.",
|
|
27510
|
+
"anyOf": [
|
|
27511
|
+
{
|
|
27512
|
+
"type": "boolean"
|
|
27513
|
+
},
|
|
27514
|
+
{
|
|
27515
|
+
"type": "null"
|
|
27516
|
+
}
|
|
27517
|
+
],
|
|
27518
|
+
"title": "Rag Enabled"
|
|
27519
|
+
}
|
|
27520
|
+
},
|
|
27521
|
+
"title": "LLMUsageCalculatorRequestModel"
|
|
27522
|
+
},
|
|
27523
|
+
"LLMUsageCalculatorResponseModel": {
|
|
27524
|
+
"type": "object",
|
|
27525
|
+
"properties": {
|
|
27526
|
+
"llm_prices": {
|
|
27527
|
+
"type": "array",
|
|
27528
|
+
"items": {
|
|
27529
|
+
"$ref": "#/components/schemas/LLMUsageCalculatorLLMResponseModel"
|
|
27530
|
+
},
|
|
27531
|
+
"title": "Llm Prices"
|
|
27532
|
+
}
|
|
27533
|
+
},
|
|
27534
|
+
"required": [
|
|
27535
|
+
"llm_prices"
|
|
27536
|
+
],
|
|
27537
|
+
"title": "LLMUsageCalculatorResponseModel"
|
|
27538
|
+
},
|
|
27204
27539
|
"LanguageAddedResponse": {
|
|
27205
27540
|
"type": "object",
|
|
27206
27541
|
"properties": {
|
|
@@ -28172,6 +28507,132 @@
|
|
|
28172
28507
|
],
|
|
28173
28508
|
"title": "ModerationStatusResponseModel"
|
|
28174
28509
|
},
|
|
28510
|
+
"NativeMCPToolConfig-Input": {
|
|
28511
|
+
"description": "A Native MCP tool is a tool that is used to call a Native MCP server",
|
|
28512
|
+
"type": "object",
|
|
28513
|
+
"properties": {
|
|
28514
|
+
"id": {
|
|
28515
|
+
"type": "string",
|
|
28516
|
+
"default": "",
|
|
28517
|
+
"title": "Id"
|
|
28518
|
+
},
|
|
28519
|
+
"name": {
|
|
28520
|
+
"type": "string",
|
|
28521
|
+
"minLength": 0,
|
|
28522
|
+
"pattern": "^[a-zA-Z0-9_-]{1,64}$",
|
|
28523
|
+
"title": "Name"
|
|
28524
|
+
},
|
|
28525
|
+
"description": {
|
|
28526
|
+
"type": "string",
|
|
28527
|
+
"minLength": 0,
|
|
28528
|
+
"title": "Description"
|
|
28529
|
+
},
|
|
28530
|
+
"response_timeout_secs": {
|
|
28531
|
+
"description": "The maximum time in seconds to wait for the tool call to complete.",
|
|
28532
|
+
"type": "integer",
|
|
28533
|
+
"default": 20,
|
|
28534
|
+
"title": "Response Timeout Secs"
|
|
28535
|
+
},
|
|
28536
|
+
"type": {
|
|
28537
|
+
"description": "The type of tool",
|
|
28538
|
+
"type": "string",
|
|
28539
|
+
"default": "native_mcp",
|
|
28540
|
+
"const": "native_mcp",
|
|
28541
|
+
"title": "Type"
|
|
28542
|
+
},
|
|
28543
|
+
"parameters": {
|
|
28544
|
+
"description": "Schema for any parameters the LLM needs to provide to the MCP tool.",
|
|
28545
|
+
"anyOf": [
|
|
28546
|
+
{
|
|
28547
|
+
"$ref": "#/components/schemas/ObjectJsonSchemaProperty-Input"
|
|
28548
|
+
},
|
|
28549
|
+
{
|
|
28550
|
+
"type": "null"
|
|
28551
|
+
}
|
|
28552
|
+
]
|
|
28553
|
+
},
|
|
28554
|
+
"mcp_tool_name": {
|
|
28555
|
+
"description": "The name of the MCP tool to call",
|
|
28556
|
+
"type": "string",
|
|
28557
|
+
"title": "Mcp Tool Name"
|
|
28558
|
+
},
|
|
28559
|
+
"mcp_server_id": {
|
|
28560
|
+
"description": "The id of the MCP server to call",
|
|
28561
|
+
"type": "string",
|
|
28562
|
+
"title": "Mcp Server Id"
|
|
28563
|
+
}
|
|
28564
|
+
},
|
|
28565
|
+
"required": [
|
|
28566
|
+
"name",
|
|
28567
|
+
"description",
|
|
28568
|
+
"mcp_tool_name",
|
|
28569
|
+
"mcp_server_id"
|
|
28570
|
+
],
|
|
28571
|
+
"title": "NativeMCPToolConfig"
|
|
28572
|
+
},
|
|
28573
|
+
"NativeMCPToolConfig-Output": {
|
|
28574
|
+
"description": "A Native MCP tool is a tool that is used to call a Native MCP server",
|
|
28575
|
+
"type": "object",
|
|
28576
|
+
"properties": {
|
|
28577
|
+
"id": {
|
|
28578
|
+
"type": "string",
|
|
28579
|
+
"default": "",
|
|
28580
|
+
"title": "Id"
|
|
28581
|
+
},
|
|
28582
|
+
"name": {
|
|
28583
|
+
"type": "string",
|
|
28584
|
+
"minLength": 0,
|
|
28585
|
+
"pattern": "^[a-zA-Z0-9_-]{1,64}$",
|
|
28586
|
+
"title": "Name"
|
|
28587
|
+
},
|
|
28588
|
+
"description": {
|
|
28589
|
+
"type": "string",
|
|
28590
|
+
"minLength": 0,
|
|
28591
|
+
"title": "Description"
|
|
28592
|
+
},
|
|
28593
|
+
"response_timeout_secs": {
|
|
28594
|
+
"description": "The maximum time in seconds to wait for the tool call to complete.",
|
|
28595
|
+
"type": "integer",
|
|
28596
|
+
"default": 20,
|
|
28597
|
+
"title": "Response Timeout Secs"
|
|
28598
|
+
},
|
|
28599
|
+
"type": {
|
|
28600
|
+
"description": "The type of tool",
|
|
28601
|
+
"type": "string",
|
|
28602
|
+
"default": "native_mcp",
|
|
28603
|
+
"const": "native_mcp",
|
|
28604
|
+
"title": "Type"
|
|
28605
|
+
},
|
|
28606
|
+
"parameters": {
|
|
28607
|
+
"description": "Schema for any parameters the LLM needs to provide to the MCP tool.",
|
|
28608
|
+
"anyOf": [
|
|
28609
|
+
{
|
|
28610
|
+
"$ref": "#/components/schemas/ObjectJsonSchemaProperty-Output"
|
|
28611
|
+
},
|
|
28612
|
+
{
|
|
28613
|
+
"type": "null"
|
|
28614
|
+
}
|
|
28615
|
+
]
|
|
28616
|
+
},
|
|
28617
|
+
"mcp_tool_name": {
|
|
28618
|
+
"description": "The name of the MCP tool to call",
|
|
28619
|
+
"type": "string",
|
|
28620
|
+
"title": "Mcp Tool Name"
|
|
28621
|
+
},
|
|
28622
|
+
"mcp_server_id": {
|
|
28623
|
+
"description": "The id of the MCP server to call",
|
|
28624
|
+
"type": "string",
|
|
28625
|
+
"title": "Mcp Server Id"
|
|
28626
|
+
}
|
|
28627
|
+
},
|
|
28628
|
+
"required": [
|
|
28629
|
+
"name",
|
|
28630
|
+
"description",
|
|
28631
|
+
"mcp_tool_name",
|
|
28632
|
+
"mcp_server_id"
|
|
28633
|
+
],
|
|
28634
|
+
"title": "NativeMCPToolConfig"
|
|
28635
|
+
},
|
|
28175
28636
|
"ObjectJsonSchemaProperty-Input": {
|
|
28176
28637
|
"type": "object",
|
|
28177
28638
|
"properties": {
|
|
@@ -29819,6 +30280,9 @@
|
|
|
29819
30280
|
},
|
|
29820
30281
|
{
|
|
29821
30282
|
"$ref": "#/components/schemas/MCPToolConfig-Input"
|
|
30283
|
+
},
|
|
30284
|
+
{
|
|
30285
|
+
"$ref": "#/components/schemas/NativeMCPToolConfig-Input"
|
|
29822
30286
|
}
|
|
29823
30287
|
],
|
|
29824
30288
|
"description": "The type of tool",
|
|
@@ -29827,6 +30291,7 @@
|
|
|
29827
30291
|
"mapping": {
|
|
29828
30292
|
"client": "#/components/schemas/ClientToolConfig-Input",
|
|
29829
30293
|
"mcp": "#/components/schemas/MCPToolConfig-Input",
|
|
30294
|
+
"native_mcp": "#/components/schemas/NativeMCPToolConfig-Input",
|
|
29830
30295
|
"system": "#/components/schemas/SystemToolConfig-Input",
|
|
29831
30296
|
"webhook": "#/components/schemas/WebhookToolConfig-Input"
|
|
29832
30297
|
}
|
|
@@ -29851,6 +30316,15 @@
|
|
|
29851
30316
|
"maxItems": 10,
|
|
29852
30317
|
"title": "Mcp Server Ids"
|
|
29853
30318
|
},
|
|
30319
|
+
"native_mcp_server_ids": {
|
|
30320
|
+
"description": "A list of Native MCP server ids to be used by the agent",
|
|
30321
|
+
"type": "array",
|
|
30322
|
+
"items": {
|
|
30323
|
+
"type": "string"
|
|
30324
|
+
},
|
|
30325
|
+
"maxItems": 10,
|
|
30326
|
+
"title": "Native Mcp Server Ids"
|
|
30327
|
+
},
|
|
29854
30328
|
"knowledge_base": {
|
|
29855
30329
|
"description": "A list of knowledge bases to be used by the agent",
|
|
29856
30330
|
"type": "array",
|
|
@@ -29941,6 +30415,9 @@
|
|
|
29941
30415
|
},
|
|
29942
30416
|
{
|
|
29943
30417
|
"$ref": "#/components/schemas/MCPToolConfig-Output"
|
|
30418
|
+
},
|
|
30419
|
+
{
|
|
30420
|
+
"$ref": "#/components/schemas/NativeMCPToolConfig-Output"
|
|
29944
30421
|
}
|
|
29945
30422
|
],
|
|
29946
30423
|
"description": "The type of tool",
|
|
@@ -29949,6 +30426,7 @@
|
|
|
29949
30426
|
"mapping": {
|
|
29950
30427
|
"client": "#/components/schemas/ClientToolConfig-Output",
|
|
29951
30428
|
"mcp": "#/components/schemas/MCPToolConfig-Output",
|
|
30429
|
+
"native_mcp": "#/components/schemas/NativeMCPToolConfig-Output",
|
|
29952
30430
|
"system": "#/components/schemas/SystemToolConfig-Output",
|
|
29953
30431
|
"webhook": "#/components/schemas/WebhookToolConfig-Output"
|
|
29954
30432
|
}
|
|
@@ -29973,6 +30451,15 @@
|
|
|
29973
30451
|
"maxItems": 10,
|
|
29974
30452
|
"title": "Mcp Server Ids"
|
|
29975
30453
|
},
|
|
30454
|
+
"native_mcp_server_ids": {
|
|
30455
|
+
"description": "A list of Native MCP server ids to be used by the agent",
|
|
30456
|
+
"type": "array",
|
|
30457
|
+
"items": {
|
|
30458
|
+
"type": "string"
|
|
30459
|
+
},
|
|
30460
|
+
"maxItems": 10,
|
|
30461
|
+
"title": "Native Mcp Server Ids"
|
|
30462
|
+
},
|
|
29976
30463
|
"knowledge_base": {
|
|
29977
30464
|
"description": "A list of knowledge bases to be used by the agent",
|
|
29978
30465
|
"type": "array",
|
|
@@ -30063,6 +30550,9 @@
|
|
|
30063
30550
|
},
|
|
30064
30551
|
{
|
|
30065
30552
|
"$ref": "#/components/schemas/MCPToolConfig-Input"
|
|
30553
|
+
},
|
|
30554
|
+
{
|
|
30555
|
+
"$ref": "#/components/schemas/NativeMCPToolConfig-Input"
|
|
30066
30556
|
}
|
|
30067
30557
|
],
|
|
30068
30558
|
"description": "The type of tool",
|
|
@@ -30071,6 +30561,7 @@
|
|
|
30071
30561
|
"mapping": {
|
|
30072
30562
|
"client": "#/components/schemas/ClientToolConfig-Input",
|
|
30073
30563
|
"mcp": "#/components/schemas/MCPToolConfig-Input",
|
|
30564
|
+
"native_mcp": "#/components/schemas/NativeMCPToolConfig-Input",
|
|
30074
30565
|
"system": "#/components/schemas/SystemToolConfig-Input",
|
|
30075
30566
|
"webhook": "#/components/schemas/WebhookToolConfig-Input"
|
|
30076
30567
|
}
|
|
@@ -30095,6 +30586,15 @@
|
|
|
30095
30586
|
"maxItems": 10,
|
|
30096
30587
|
"title": "Mcp Server Ids"
|
|
30097
30588
|
},
|
|
30589
|
+
"native_mcp_server_ids": {
|
|
30590
|
+
"description": "A list of Native MCP server ids to be used by the agent",
|
|
30591
|
+
"type": "array",
|
|
30592
|
+
"items": {
|
|
30593
|
+
"type": "string"
|
|
30594
|
+
},
|
|
30595
|
+
"maxItems": 10,
|
|
30596
|
+
"title": "Native Mcp Server Ids"
|
|
30597
|
+
},
|
|
30098
30598
|
"knowledge_base": {
|
|
30099
30599
|
"description": "A list of knowledge bases to be used by the agent",
|
|
30100
30600
|
"type": "array",
|
package/README.md
CHANGED
|
@@ -51,7 +51,7 @@ yarn add @elevenlabs/elevenlabs-js
|
|
|
51
51
|
For more detailed information about these models and others, visit the [ElevenLabs Models documentation](https://elevenlabs.io/docs/models).
|
|
52
52
|
|
|
53
53
|
```ts
|
|
54
|
-
import { ElevenLabsClient, play } from "elevenlabs";
|
|
54
|
+
import { ElevenLabsClient, play } from "@elevenlabs/elevenlabs-js";
|
|
55
55
|
|
|
56
56
|
const elevenlabs = new ElevenLabsClient({
|
|
57
57
|
apiKey: "YOUR_API_KEY", // Defaults to process.env.ELEVENLABS_API_KEY
|
|
@@ -80,7 +80,7 @@ await play(audio);
|
|
|
80
80
|
List all your available voices with `search()`.
|
|
81
81
|
|
|
82
82
|
```ts
|
|
83
|
-
import { ElevenLabsClient } from "elevenlabs";
|
|
83
|
+
import { ElevenLabsClient } from "@elevenlabs/elevenlabs-js";
|
|
84
84
|
|
|
85
85
|
const elevenlabs = new ElevenLabsClient({
|
|
86
86
|
apiKey: "YOUR_API_KEY", // Defaults to process.env.ELEVENLABS_API_KEY
|
|
@@ -82,12 +82,12 @@ class AudioIsolation {
|
|
|
82
82
|
method: "POST",
|
|
83
83
|
headers: Object.assign(Object.assign({ "xi-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
84
84
|
? yield core.Supplier.get(this._options.apiKey)
|
|
85
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js", "X-Fern-SDK-Version": "v2.0
|
|
85
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js", "X-Fern-SDK-Version": "v2.1.0", "User-Agent": "@elevenlabs/elevenlabs-js/v2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
86
86
|
requestType: "file",
|
|
87
87
|
duplex: _maybeEncodedRequest.duplex,
|
|
88
88
|
body: _maybeEncodedRequest.body,
|
|
89
89
|
responseType: "streaming",
|
|
90
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 :
|
|
90
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
|
|
91
91
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
92
92
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
93
93
|
});
|
|
@@ -151,12 +151,12 @@ class AudioIsolation {
|
|
|
151
151
|
method: "POST",
|
|
152
152
|
headers: Object.assign(Object.assign({ "xi-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
153
153
|
? yield core.Supplier.get(this._options.apiKey)
|
|
154
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js", "X-Fern-SDK-Version": "v2.0
|
|
154
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js", "X-Fern-SDK-Version": "v2.1.0", "User-Agent": "@elevenlabs/elevenlabs-js/v2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
155
155
|
requestType: "file",
|
|
156
156
|
duplex: _maybeEncodedRequest.duplex,
|
|
157
157
|
body: _maybeEncodedRequest.body,
|
|
158
158
|
responseType: "streaming",
|
|
159
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 :
|
|
159
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
|
|
160
160
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
161
161
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
162
162
|
});
|