hume 0.9.10 → 0.9.12
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/definition/empathic-voice/__package__.yml +87 -26
- package/.mock/definition/empathic-voice/chat.yml +5 -1
- package/.mock/definition/empathic-voice/chatGroups.yml +6 -0
- package/.mock/definition/empathic-voice/chatWebhooks.yml +24 -13
- package/.mock/definition/empathic-voice/chats.yml +3 -0
- package/.mock/definition/empathic-voice/configs.yml +8 -1
- package/.mock/definition/empathic-voice/customVoices.yml +23 -12
- package/.mock/definition/empathic-voice/prompts.yml +29 -21
- package/.mock/definition/empathic-voice/tools.yml +34 -27
- package/.mock/definition/expression-measurement/batch/__package__.yml +23 -0
- package/.mock/definition/expression-measurement/stream/__package__.yml +0 -435
- package/.mock/definition/expression-measurement/v0StreamModels.yml +437 -0
- package/.mock/definition/tts/__package__.yml +394 -0
- package/.mock/definition/tts/voices.yml +47 -0
- package/.mock/fern.config.json +1 -1
- package/Client.d.ts +3 -0
- package/Client.js +5 -0
- package/api/resources/empathicVoice/resources/chatGroups/client/Client.js +4 -4
- package/api/resources/empathicVoice/resources/chats/client/Client.js +3 -3
- package/api/resources/empathicVoice/resources/configs/client/Client.js +9 -9
- package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +1 -1
- package/api/resources/empathicVoice/resources/customVoices/client/Client.d.ts +11 -6
- package/api/resources/empathicVoice/resources/customVoices/client/Client.js +17 -12
- package/api/resources/empathicVoice/resources/customVoices/client/requests/PostedCustomVoiceName.d.ts +6 -0
- package/api/resources/empathicVoice/resources/prompts/client/Client.d.ts +11 -11
- package/api/resources/empathicVoice/resources/prompts/client/Client.js +21 -21
- package/api/resources/empathicVoice/resources/prompts/client/requests/PostedPrompt.d.ts +1 -1
- package/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.d.ts +1 -1
- package/api/resources/empathicVoice/resources/tools/client/Client.d.ts +9 -9
- package/api/resources/empathicVoice/resources/tools/client/Client.js +18 -18
- package/api/resources/empathicVoice/types/Context.d.ts +2 -2
- package/api/resources/empathicVoice/types/PostedBuiltinTool.d.ts +1 -1
- package/api/resources/empathicVoice/types/PostedBuiltinToolName.d.ts +1 -1
- package/api/resources/empathicVoice/types/PostedCustomVoice.d.ts +1 -1
- package/api/resources/empathicVoice/types/PostedWebhookSpec.d.ts +6 -2
- package/api/resources/empathicVoice/types/ReturnConfig.d.ts +1 -1
- package/api/resources/empathicVoice/types/ReturnPrompt.d.ts +1 -1
- package/api/resources/empathicVoice/types/ReturnWebhookSpec.d.ts +6 -2
- package/api/resources/empathicVoice/types/SessionSettings.d.ts +7 -7
- package/api/resources/empathicVoice/types/WebhookEventChatEnded.d.ts +5 -0
- package/api/resources/empathicVoice/types/WebhookEventChatStarted.d.ts +2 -2
- package/api/resources/expressionMeasurement/resources/batch/client/Client.js +6 -6
- package/api/resources/index.d.ts +1 -0
- package/api/resources/index.js +2 -1
- package/api/resources/tts/client/Client.d.ts +69 -0
- package/api/resources/tts/client/Client.js +200 -0
- package/api/resources/tts/client/index.d.ts +1 -0
- package/api/resources/tts/client/index.js +2 -0
- package/api/resources/tts/errors/UnprocessableEntityError.d.ts +8 -0
- package/api/resources/tts/errors/UnprocessableEntityError.js +41 -0
- package/api/resources/tts/errors/index.d.ts +1 -0
- package/api/resources/tts/errors/index.js +17 -0
- package/api/resources/tts/index.d.ts +4 -0
- package/api/resources/tts/index.js +20 -0
- package/api/resources/tts/resources/index.d.ts +2 -0
- package/api/resources/tts/resources/index.js +31 -0
- package/api/resources/tts/resources/voices/client/Client.d.ts +43 -0
- package/api/resources/tts/resources/voices/client/Client.js +126 -0
- package/api/resources/tts/resources/voices/client/index.d.ts +1 -0
- package/api/resources/tts/resources/voices/client/index.js +17 -0
- package/api/resources/tts/resources/voices/client/requests/PostedVoice.d.ts +16 -0
- package/api/resources/tts/resources/voices/client/requests/PostedVoice.js +5 -0
- package/api/resources/tts/resources/voices/client/requests/index.d.ts +1 -0
- package/api/resources/tts/resources/voices/client/requests/index.js +2 -0
- package/api/resources/tts/resources/voices/index.d.ts +1 -0
- package/api/resources/tts/resources/voices/index.js +17 -0
- package/api/resources/tts/types/AudioEncoding.d.ts +10 -0
- package/api/resources/tts/types/AudioEncoding.js +5 -0
- package/api/resources/tts/types/AudioFormatType.d.ts +9 -0
- package/api/resources/tts/types/AudioFormatType.js +11 -0
- package/api/resources/tts/types/Format.d.ts +19 -0
- package/api/resources/tts/types/Format.js +5 -0
- package/api/resources/tts/types/FormatMp3.d.ts +5 -0
- package/api/resources/tts/types/FormatMp3.js +5 -0
- package/api/resources/tts/types/FormatPcm.d.ts +5 -0
- package/api/resources/tts/types/FormatPcm.js +5 -0
- package/api/resources/tts/types/FormatWav.d.ts +5 -0
- package/api/resources/tts/types/FormatWav.js +5 -0
- package/api/resources/tts/types/HttpValidationError.d.ts +7 -0
- package/api/resources/tts/types/HttpValidationError.js +5 -0
- package/api/resources/tts/types/PostedContext.d.ts +8 -0
- package/api/resources/tts/types/PostedContext.js +5 -0
- package/api/resources/tts/types/PostedContextWithGenerationId.d.ts +7 -0
- package/api/resources/tts/types/PostedContextWithGenerationId.js +5 -0
- package/api/resources/tts/types/PostedContextWithUtterances.d.ts +7 -0
- package/api/resources/tts/types/PostedContextWithUtterances.js +5 -0
- package/api/resources/tts/types/PostedTts.d.ts +14 -0
- package/api/resources/tts/types/PostedTts.js +5 -0
- package/api/resources/tts/types/PostedTtsRecord.d.ts +11 -0
- package/api/resources/tts/types/PostedTtsRecord.js +5 -0
- package/api/resources/tts/types/PostedUtterance.d.ts +22 -0
- package/api/resources/tts/types/PostedUtterance.js +5 -0
- package/api/resources/tts/types/PostedUtteranceVoice.d.ts +5 -0
- package/api/resources/tts/types/PostedUtteranceVoice.js +5 -0
- package/api/resources/tts/types/PostedUtteranceVoiceWithId.d.ts +20 -0
- package/api/resources/tts/types/PostedUtteranceVoiceWithId.js +5 -0
- package/api/resources/tts/types/PostedUtteranceVoiceWithName.d.ts +20 -0
- package/api/resources/tts/types/PostedUtteranceVoiceWithName.js +5 -0
- package/api/resources/tts/types/ReturnGeneration.d.ts +17 -0
- package/api/resources/tts/types/ReturnGeneration.js +5 -0
- package/api/resources/tts/types/ReturnTts.d.ts +9 -0
- package/api/resources/tts/types/ReturnTts.js +5 -0
- package/api/resources/tts/types/ReturnVoice.d.ts +9 -0
- package/api/resources/tts/types/ReturnVoice.js +5 -0
- package/api/resources/tts/types/Snippet.d.ts +11 -0
- package/api/resources/tts/types/Snippet.js +5 -0
- package/api/resources/tts/types/ValidationError.d.ts +9 -0
- package/api/resources/tts/types/ValidationError.js +5 -0
- package/api/resources/tts/types/ValidationErrorLocItem.d.ts +4 -0
- package/api/resources/tts/types/ValidationErrorLocItem.js +5 -0
- package/api/resources/tts/types/VoiceProvider.d.ts +8 -0
- package/api/resources/tts/types/VoiceProvider.js +10 -0
- package/api/resources/tts/types/index.d.ts +23 -0
- package/api/resources/tts/types/index.js +39 -0
- package/dist/Client.d.ts +3 -0
- package/dist/Client.js +5 -0
- package/dist/api/resources/empathicVoice/resources/chatGroups/client/Client.js +4 -4
- package/dist/api/resources/empathicVoice/resources/chats/client/Client.js +3 -3
- package/dist/api/resources/empathicVoice/resources/configs/client/Client.js +9 -9
- package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +1 -1
- package/dist/api/resources/empathicVoice/resources/customVoices/client/Client.d.ts +11 -6
- package/dist/api/resources/empathicVoice/resources/customVoices/client/Client.js +17 -12
- package/dist/api/resources/empathicVoice/resources/customVoices/client/requests/PostedCustomVoiceName.d.ts +6 -0
- package/dist/api/resources/empathicVoice/resources/prompts/client/Client.d.ts +11 -11
- package/dist/api/resources/empathicVoice/resources/prompts/client/Client.js +21 -21
- package/dist/api/resources/empathicVoice/resources/prompts/client/requests/PostedPrompt.d.ts +1 -1
- package/dist/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.d.ts +1 -1
- package/dist/api/resources/empathicVoice/resources/tools/client/Client.d.ts +9 -9
- package/dist/api/resources/empathicVoice/resources/tools/client/Client.js +18 -18
- package/dist/api/resources/empathicVoice/types/Context.d.ts +2 -2
- package/dist/api/resources/empathicVoice/types/PostedBuiltinTool.d.ts +1 -1
- package/dist/api/resources/empathicVoice/types/PostedBuiltinToolName.d.ts +1 -1
- package/dist/api/resources/empathicVoice/types/PostedCustomVoice.d.ts +1 -1
- package/dist/api/resources/empathicVoice/types/PostedWebhookSpec.d.ts +6 -2
- package/dist/api/resources/empathicVoice/types/ReturnConfig.d.ts +1 -1
- package/dist/api/resources/empathicVoice/types/ReturnPrompt.d.ts +1 -1
- package/dist/api/resources/empathicVoice/types/ReturnWebhookSpec.d.ts +6 -2
- package/dist/api/resources/empathicVoice/types/SessionSettings.d.ts +7 -7
- package/dist/api/resources/empathicVoice/types/WebhookEventChatEnded.d.ts +5 -0
- package/dist/api/resources/empathicVoice/types/WebhookEventChatStarted.d.ts +2 -2
- package/dist/api/resources/expressionMeasurement/resources/batch/client/Client.js +6 -6
- package/dist/api/resources/index.d.ts +1 -0
- package/dist/api/resources/index.js +2 -1
- package/dist/api/resources/tts/client/Client.d.ts +69 -0
- package/dist/api/resources/tts/client/Client.js +200 -0
- package/dist/api/resources/tts/client/index.d.ts +1 -0
- package/dist/api/resources/tts/client/index.js +2 -0
- package/dist/api/resources/tts/errors/UnprocessableEntityError.d.ts +8 -0
- package/dist/api/resources/tts/errors/UnprocessableEntityError.js +41 -0
- package/dist/api/resources/tts/errors/index.d.ts +1 -0
- package/dist/api/resources/tts/errors/index.js +17 -0
- package/dist/api/resources/tts/index.d.ts +4 -0
- package/dist/api/resources/tts/index.js +20 -0
- package/dist/api/resources/tts/resources/index.d.ts +2 -0
- package/dist/api/resources/tts/resources/index.js +31 -0
- package/dist/api/resources/tts/resources/voices/client/Client.d.ts +43 -0
- package/dist/api/resources/tts/resources/voices/client/Client.js +126 -0
- package/dist/api/resources/tts/resources/voices/client/index.d.ts +1 -0
- package/dist/api/resources/tts/resources/voices/client/index.js +17 -0
- package/dist/api/resources/tts/resources/voices/client/requests/PostedVoice.d.ts +16 -0
- package/dist/api/resources/tts/resources/voices/client/requests/PostedVoice.js +5 -0
- package/dist/api/resources/tts/resources/voices/client/requests/index.d.ts +1 -0
- package/dist/api/resources/tts/resources/voices/client/requests/index.js +2 -0
- package/dist/api/resources/tts/resources/voices/index.d.ts +1 -0
- package/dist/api/resources/tts/resources/voices/index.js +17 -0
- package/dist/api/resources/tts/types/AudioEncoding.d.ts +10 -0
- package/dist/api/resources/tts/types/AudioEncoding.js +5 -0
- package/dist/api/resources/tts/types/AudioFormatType.d.ts +9 -0
- package/dist/api/resources/tts/types/AudioFormatType.js +11 -0
- package/dist/api/resources/tts/types/Format.d.ts +19 -0
- package/dist/api/resources/tts/types/Format.js +5 -0
- package/dist/api/resources/tts/types/FormatMp3.d.ts +5 -0
- package/dist/api/resources/tts/types/FormatMp3.js +5 -0
- package/dist/api/resources/tts/types/FormatPcm.d.ts +5 -0
- package/dist/api/resources/tts/types/FormatPcm.js +5 -0
- package/dist/api/resources/tts/types/FormatWav.d.ts +5 -0
- package/dist/api/resources/tts/types/FormatWav.js +5 -0
- package/dist/api/resources/tts/types/HttpValidationError.d.ts +7 -0
- package/dist/api/resources/tts/types/HttpValidationError.js +5 -0
- package/dist/api/resources/tts/types/PostedContext.d.ts +8 -0
- package/dist/api/resources/tts/types/PostedContext.js +5 -0
- package/dist/api/resources/tts/types/PostedContextWithGenerationId.d.ts +7 -0
- package/dist/api/resources/tts/types/PostedContextWithGenerationId.js +5 -0
- package/dist/api/resources/tts/types/PostedContextWithUtterances.d.ts +7 -0
- package/dist/api/resources/tts/types/PostedContextWithUtterances.js +5 -0
- package/dist/api/resources/tts/types/PostedTts.d.ts +14 -0
- package/dist/api/resources/tts/types/PostedTts.js +5 -0
- package/dist/api/resources/tts/types/PostedTtsRecord.d.ts +11 -0
- package/dist/api/resources/tts/types/PostedTtsRecord.js +5 -0
- package/dist/api/resources/tts/types/PostedUtterance.d.ts +22 -0
- package/dist/api/resources/tts/types/PostedUtterance.js +5 -0
- package/dist/api/resources/tts/types/PostedUtteranceVoice.d.ts +5 -0
- package/dist/api/resources/tts/types/PostedUtteranceVoice.js +5 -0
- package/dist/api/resources/tts/types/PostedUtteranceVoiceWithId.d.ts +20 -0
- package/dist/api/resources/tts/types/PostedUtteranceVoiceWithId.js +5 -0
- package/dist/api/resources/tts/types/PostedUtteranceVoiceWithName.d.ts +20 -0
- package/dist/api/resources/tts/types/PostedUtteranceVoiceWithName.js +5 -0
- package/dist/api/resources/tts/types/ReturnGeneration.d.ts +17 -0
- package/dist/api/resources/tts/types/ReturnGeneration.js +5 -0
- package/dist/api/resources/tts/types/ReturnTts.d.ts +9 -0
- package/dist/api/resources/tts/types/ReturnTts.js +5 -0
- package/dist/api/resources/tts/types/ReturnVoice.d.ts +9 -0
- package/dist/api/resources/tts/types/ReturnVoice.js +5 -0
- package/dist/api/resources/tts/types/Snippet.d.ts +11 -0
- package/dist/api/resources/tts/types/Snippet.js +5 -0
- package/dist/api/resources/tts/types/ValidationError.d.ts +9 -0
- package/dist/api/resources/tts/types/ValidationError.js +5 -0
- package/dist/api/resources/tts/types/ValidationErrorLocItem.d.ts +4 -0
- package/dist/api/resources/tts/types/ValidationErrorLocItem.js +5 -0
- package/dist/api/resources/tts/types/VoiceProvider.d.ts +8 -0
- package/dist/api/resources/tts/types/VoiceProvider.js +10 -0
- package/dist/api/resources/tts/types/index.d.ts +23 -0
- package/dist/api/resources/tts/types/index.js +39 -0
- package/dist/serialization/resources/empathicVoice/resources/prompts/client/{createPromptVerison.d.ts → createPromptVersion.d.ts} +1 -1
- package/dist/serialization/resources/empathicVoice/resources/prompts/client/index.d.ts +1 -1
- package/dist/serialization/resources/empathicVoice/resources/prompts/client/index.js +2 -2
- package/dist/serialization/resources/index.d.ts +1 -0
- package/dist/serialization/resources/index.js +2 -1
- package/dist/serialization/resources/tts/index.d.ts +2 -0
- package/dist/serialization/resources/tts/index.js +18 -0
- package/dist/serialization/resources/tts/resources/index.d.ts +2 -0
- package/dist/serialization/resources/tts/resources/index.js +31 -0
- package/dist/serialization/resources/tts/resources/voices/client/index.d.ts +1 -0
- package/dist/serialization/resources/tts/resources/voices/client/index.js +17 -0
- package/dist/serialization/resources/tts/resources/voices/client/requests/PostedVoice.d.ts +13 -0
- package/dist/serialization/resources/tts/resources/voices/client/requests/PostedVoice.js +34 -0
- package/dist/serialization/resources/tts/resources/voices/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/tts/resources/voices/client/requests/index.js +5 -0
- package/dist/serialization/resources/tts/resources/voices/index.d.ts +1 -0
- package/dist/serialization/resources/tts/resources/voices/index.js +17 -0
- package/dist/serialization/resources/tts/types/AudioEncoding.d.ts +14 -0
- package/dist/serialization/resources/tts/types/AudioEncoding.js +35 -0
- package/dist/serialization/resources/tts/types/AudioFormatType.d.ts +10 -0
- package/dist/serialization/resources/tts/types/AudioFormatType.js +31 -0
- package/dist/serialization/resources/tts/types/Format.d.ts +22 -0
- package/dist/serialization/resources/tts/types/Format.js +43 -0
- package/dist/serialization/resources/tts/types/FormatMp3.d.ts +11 -0
- package/dist/serialization/resources/tts/types/FormatMp3.js +31 -0
- package/dist/serialization/resources/tts/types/FormatPcm.d.ts +11 -0
- package/dist/serialization/resources/tts/types/FormatPcm.js +31 -0
- package/dist/serialization/resources/tts/types/FormatWav.d.ts +11 -0
- package/dist/serialization/resources/tts/types/FormatWav.js +31 -0
- package/dist/serialization/resources/tts/types/HttpValidationError.d.ts +13 -0
- package/dist/serialization/resources/tts/types/HttpValidationError.js +34 -0
- package/dist/serialization/resources/tts/types/PostedContext.d.ts +12 -0
- package/dist/serialization/resources/tts/types/PostedContext.js +33 -0
- package/dist/serialization/resources/tts/types/PostedContextWithGenerationId.d.ts +12 -0
- package/dist/serialization/resources/tts/types/PostedContextWithGenerationId.js +33 -0
- package/dist/serialization/resources/tts/types/PostedContextWithUtterances.d.ts +13 -0
- package/dist/serialization/resources/tts/types/PostedContextWithUtterances.js +34 -0
- package/dist/serialization/resources/tts/types/PostedTts.d.ts +18 -0
- package/dist/serialization/resources/tts/types/PostedTts.js +39 -0
- package/dist/serialization/resources/tts/types/PostedTtsRecord.d.ts +17 -0
- package/dist/serialization/resources/tts/types/PostedTtsRecord.js +38 -0
- package/dist/serialization/resources/tts/types/PostedUtterance.d.ts +15 -0
- package/dist/serialization/resources/tts/types/PostedUtterance.js +36 -0
- package/dist/serialization/resources/tts/types/PostedUtteranceVoice.d.ts +12 -0
- package/dist/serialization/resources/tts/types/PostedUtteranceVoice.js +33 -0
- package/dist/serialization/resources/tts/types/PostedUtteranceVoiceWithId.d.ts +14 -0
- package/dist/serialization/resources/tts/types/PostedUtteranceVoiceWithId.js +35 -0
- package/dist/serialization/resources/tts/types/PostedUtteranceVoiceWithName.d.ts +14 -0
- package/dist/serialization/resources/tts/types/PostedUtteranceVoiceWithName.js +35 -0
- package/dist/serialization/resources/tts/types/ReturnGeneration.d.ts +19 -0
- package/dist/serialization/resources/tts/types/ReturnGeneration.js +40 -0
- package/dist/serialization/resources/tts/types/ReturnTts.d.ts +14 -0
- package/dist/serialization/resources/tts/types/ReturnTts.js +35 -0
- package/dist/serialization/resources/tts/types/ReturnVoice.d.ts +13 -0
- package/dist/serialization/resources/tts/types/ReturnVoice.js +34 -0
- package/dist/serialization/resources/tts/types/Snippet.d.ts +14 -0
- package/dist/serialization/resources/tts/types/Snippet.js +35 -0
- package/dist/serialization/resources/tts/types/ValidationError.d.ts +15 -0
- package/dist/serialization/resources/tts/types/ValidationError.js +36 -0
- package/dist/serialization/resources/tts/types/ValidationErrorLocItem.d.ts +10 -0
- package/dist/serialization/resources/tts/types/ValidationErrorLocItem.js +31 -0
- package/dist/serialization/resources/tts/types/VoiceProvider.d.ts +10 -0
- package/dist/serialization/resources/tts/types/VoiceProvider.js +31 -0
- package/dist/serialization/resources/tts/types/index.d.ts +23 -0
- package/dist/serialization/resources/tts/types/index.js +39 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +336 -25
- package/serialization/resources/empathicVoice/resources/prompts/client/{createPromptVerison.d.ts → createPromptVersion.d.ts} +1 -1
- package/serialization/resources/empathicVoice/resources/prompts/client/index.d.ts +1 -1
- package/serialization/resources/empathicVoice/resources/prompts/client/index.js +2 -2
- package/serialization/resources/index.d.ts +1 -0
- package/serialization/resources/index.js +2 -1
- package/serialization/resources/tts/index.d.ts +2 -0
- package/serialization/resources/tts/index.js +18 -0
- package/serialization/resources/tts/resources/index.d.ts +2 -0
- package/serialization/resources/tts/resources/index.js +31 -0
- package/serialization/resources/tts/resources/voices/client/index.d.ts +1 -0
- package/serialization/resources/tts/resources/voices/client/index.js +17 -0
- package/serialization/resources/tts/resources/voices/client/requests/PostedVoice.d.ts +13 -0
- package/serialization/resources/tts/resources/voices/client/requests/PostedVoice.js +34 -0
- package/serialization/resources/tts/resources/voices/client/requests/index.d.ts +1 -0
- package/serialization/resources/tts/resources/voices/client/requests/index.js +5 -0
- package/serialization/resources/tts/resources/voices/index.d.ts +1 -0
- package/serialization/resources/tts/resources/voices/index.js +17 -0
- package/serialization/resources/tts/types/AudioEncoding.d.ts +14 -0
- package/serialization/resources/tts/types/AudioEncoding.js +35 -0
- package/serialization/resources/tts/types/AudioFormatType.d.ts +10 -0
- package/serialization/resources/tts/types/AudioFormatType.js +31 -0
- package/serialization/resources/tts/types/Format.d.ts +22 -0
- package/serialization/resources/tts/types/Format.js +43 -0
- package/serialization/resources/tts/types/FormatMp3.d.ts +11 -0
- package/serialization/resources/tts/types/FormatMp3.js +31 -0
- package/serialization/resources/tts/types/FormatPcm.d.ts +11 -0
- package/serialization/resources/tts/types/FormatPcm.js +31 -0
- package/serialization/resources/tts/types/FormatWav.d.ts +11 -0
- package/serialization/resources/tts/types/FormatWav.js +31 -0
- package/serialization/resources/tts/types/HttpValidationError.d.ts +13 -0
- package/serialization/resources/tts/types/HttpValidationError.js +34 -0
- package/serialization/resources/tts/types/PostedContext.d.ts +12 -0
- package/serialization/resources/tts/types/PostedContext.js +33 -0
- package/serialization/resources/tts/types/PostedContextWithGenerationId.d.ts +12 -0
- package/serialization/resources/tts/types/PostedContextWithGenerationId.js +33 -0
- package/serialization/resources/tts/types/PostedContextWithUtterances.d.ts +13 -0
- package/serialization/resources/tts/types/PostedContextWithUtterances.js +34 -0
- package/serialization/resources/tts/types/PostedTts.d.ts +18 -0
- package/serialization/resources/tts/types/PostedTts.js +39 -0
- package/serialization/resources/tts/types/PostedTtsRecord.d.ts +17 -0
- package/serialization/resources/tts/types/PostedTtsRecord.js +38 -0
- package/serialization/resources/tts/types/PostedUtterance.d.ts +15 -0
- package/serialization/resources/tts/types/PostedUtterance.js +36 -0
- package/serialization/resources/tts/types/PostedUtteranceVoice.d.ts +12 -0
- package/serialization/resources/tts/types/PostedUtteranceVoice.js +33 -0
- package/serialization/resources/tts/types/PostedUtteranceVoiceWithId.d.ts +14 -0
- package/serialization/resources/tts/types/PostedUtteranceVoiceWithId.js +35 -0
- package/serialization/resources/tts/types/PostedUtteranceVoiceWithName.d.ts +14 -0
- package/serialization/resources/tts/types/PostedUtteranceVoiceWithName.js +35 -0
- package/serialization/resources/tts/types/ReturnGeneration.d.ts +19 -0
- package/serialization/resources/tts/types/ReturnGeneration.js +40 -0
- package/serialization/resources/tts/types/ReturnTts.d.ts +14 -0
- package/serialization/resources/tts/types/ReturnTts.js +35 -0
- package/serialization/resources/tts/types/ReturnVoice.d.ts +13 -0
- package/serialization/resources/tts/types/ReturnVoice.js +34 -0
- package/serialization/resources/tts/types/Snippet.d.ts +14 -0
- package/serialization/resources/tts/types/Snippet.js +35 -0
- package/serialization/resources/tts/types/ValidationError.d.ts +15 -0
- package/serialization/resources/tts/types/ValidationError.js +36 -0
- package/serialization/resources/tts/types/ValidationErrorLocItem.d.ts +10 -0
- package/serialization/resources/tts/types/ValidationErrorLocItem.js +31 -0
- package/serialization/resources/tts/types/VoiceProvider.d.ts +10 -0
- package/serialization/resources/tts/types/VoiceProvider.js +31 -0
- package/serialization/resources/tts/types/index.d.ts +23 -0
- package/serialization/resources/tts/types/index.js +39 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
- /package/dist/serialization/resources/empathicVoice/resources/prompts/client/{createPromptVerison.js → createPromptVersion.js} +0 -0
- /package/serialization/resources/empathicVoice/resources/prompts/client/{createPromptVerison.js → createPromptVersion.js} +0 -0
|
@@ -85,7 +85,7 @@ class Configs {
|
|
|
85
85
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
86
86
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "v0/evi/configs"),
|
|
87
87
|
method: "GET",
|
|
88
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.
|
|
88
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.12", "User-Agent": "hume/0.9.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
89
89
|
contentType: "application/json",
|
|
90
90
|
queryParameters: _queryParams,
|
|
91
91
|
requestType: "json",
|
|
@@ -181,7 +181,7 @@ class Configs {
|
|
|
181
181
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
182
182
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "v0/evi/configs"),
|
|
183
183
|
method: "POST",
|
|
184
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.
|
|
184
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.12", "User-Agent": "hume/0.9.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
185
185
|
contentType: "application/json",
|
|
186
186
|
requestType: "json",
|
|
187
187
|
body: serializers.empathicVoice.PostedConfig.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -259,7 +259,7 @@ class Configs {
|
|
|
259
259
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
260
260
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/configs/${encodeURIComponent(id)}`),
|
|
261
261
|
method: "GET",
|
|
262
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.
|
|
262
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.12", "User-Agent": "hume/0.9.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
263
263
|
contentType: "application/json",
|
|
264
264
|
queryParameters: _queryParams,
|
|
265
265
|
requestType: "json",
|
|
@@ -359,7 +359,7 @@ class Configs {
|
|
|
359
359
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
360
360
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/configs/${encodeURIComponent(id)}`),
|
|
361
361
|
method: "POST",
|
|
362
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.
|
|
362
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.12", "User-Agent": "hume/0.9.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
363
363
|
contentType: "application/json",
|
|
364
364
|
requestType: "json",
|
|
365
365
|
body: serializers.empathicVoice.PostedConfigVersion.jsonOrThrow(request, {
|
|
@@ -427,7 +427,7 @@ class Configs {
|
|
|
427
427
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
428
428
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/configs/${encodeURIComponent(id)}`),
|
|
429
429
|
method: "DELETE",
|
|
430
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.
|
|
430
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.12", "User-Agent": "hume/0.9.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
431
431
|
contentType: "application/json",
|
|
432
432
|
requestType: "json",
|
|
433
433
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -490,7 +490,7 @@ class Configs {
|
|
|
490
490
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
491
491
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/configs/${encodeURIComponent(id)}`),
|
|
492
492
|
method: "PATCH",
|
|
493
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.
|
|
493
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.12", "User-Agent": "hume/0.9.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
494
494
|
contentType: "application/json",
|
|
495
495
|
requestType: "json",
|
|
496
496
|
body: serializers.empathicVoice.PostedConfigName.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -557,7 +557,7 @@ class Configs {
|
|
|
557
557
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
558
558
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/configs/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
|
|
559
559
|
method: "GET",
|
|
560
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.
|
|
560
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.12", "User-Agent": "hume/0.9.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
561
561
|
contentType: "application/json",
|
|
562
562
|
requestType: "json",
|
|
563
563
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -627,7 +627,7 @@ class Configs {
|
|
|
627
627
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
628
628
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/configs/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
|
|
629
629
|
method: "DELETE",
|
|
630
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.
|
|
630
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.12", "User-Agent": "hume/0.9.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
631
631
|
contentType: "application/json",
|
|
632
632
|
requestType: "json",
|
|
633
633
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -695,7 +695,7 @@ class Configs {
|
|
|
695
695
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
696
696
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/configs/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
|
|
697
697
|
method: "PATCH",
|
|
698
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.
|
|
698
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.12", "User-Agent": "hume/0.9.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
699
699
|
contentType: "application/json",
|
|
700
700
|
requestType: "json",
|
|
701
701
|
body: serializers.empathicVoice.PostedConfigVersionDescription.jsonOrThrow(request, {
|
package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts
CHANGED
|
@@ -37,7 +37,7 @@ import * as Hume from "../../../../../../index";
|
|
|
37
37
|
* }
|
|
38
38
|
*/
|
|
39
39
|
export interface PostedConfig {
|
|
40
|
-
/** Specifies the EVI version to use. Use `"1"` for version 1, or `"2"` for the latest enhanced version. For a detailed comparison of the two versions, refer to our [guide](/docs/empathic-voice-interface-evi/evi-
|
|
40
|
+
/** Specifies the EVI version to use. Use `"1"` for version 1, or `"2"` for the latest enhanced version. For a detailed comparison of the two versions, refer to our [guide](/docs/empathic-voice-interface-evi/configuration/evi-version). */
|
|
41
41
|
eviVersion: string;
|
|
42
42
|
/** Name applied to all versions of a particular Config. */
|
|
43
43
|
name: string;
|
|
@@ -25,7 +25,7 @@ export declare class CustomVoices {
|
|
|
25
25
|
/**
|
|
26
26
|
* Fetches a paginated list of **Custom Voices**.
|
|
27
27
|
*
|
|
28
|
-
* Refer to our [voices guide](/docs/empathic-voice-interface-evi/voices) for details on creating a custom voice.
|
|
28
|
+
* Refer to our [voices guide](/docs/empathic-voice-interface-evi/configuration/voices) for details on creating a custom voice.
|
|
29
29
|
*
|
|
30
30
|
* @param {Hume.empathicVoice.CustomVoicesListCustomVoicesRequest} request
|
|
31
31
|
* @param {CustomVoices.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -39,7 +39,7 @@ export declare class CustomVoices {
|
|
|
39
39
|
/**
|
|
40
40
|
* Creates a **Custom Voice** that can be added to an [EVI configuration](/reference/empathic-voice-interface-evi/configs/create-config).
|
|
41
41
|
*
|
|
42
|
-
* Refer to our [voices guide](/docs/empathic-voice-interface-evi/voices) for details on creating a custom voice.
|
|
42
|
+
* Refer to our [voices guide](/docs/empathic-voice-interface-evi/configuration/voices) for details on creating a custom voice.
|
|
43
43
|
*
|
|
44
44
|
* @param {Hume.empathicVoice.PostedCustomVoice} request
|
|
45
45
|
* @param {CustomVoices.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -57,7 +57,7 @@ export declare class CustomVoices {
|
|
|
57
57
|
/**
|
|
58
58
|
* Fetches a specific **Custom Voice** by ID.
|
|
59
59
|
*
|
|
60
|
-
* Refer to our [voices guide](/docs/empathic-voice-interface-evi/voices) for details on creating a custom voice.
|
|
60
|
+
* Refer to our [voices guide](/docs/empathic-voice-interface-evi/configuration/voices) for details on creating a custom voice.
|
|
61
61
|
*
|
|
62
62
|
* @param {string} id - Identifier for a Custom Voice. Formatted as a UUID.
|
|
63
63
|
* @param {CustomVoices.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -71,7 +71,7 @@ export declare class CustomVoices {
|
|
|
71
71
|
/**
|
|
72
72
|
* Updates a **Custom Voice** by creating a new version of the **Custom Voice**.
|
|
73
73
|
*
|
|
74
|
-
* Refer to our [voices guide](/docs/empathic-voice-interface-evi/voices) for details on creating a custom voice.
|
|
74
|
+
* Refer to our [voices guide](/docs/empathic-voice-interface-evi/configuration/voices) for details on creating a custom voice.
|
|
75
75
|
*
|
|
76
76
|
* @param {string} id - Identifier for a Custom Voice. Formatted as a UUID.
|
|
77
77
|
* @param {Hume.empathicVoice.PostedCustomVoice} request
|
|
@@ -90,7 +90,7 @@ export declare class CustomVoices {
|
|
|
90
90
|
/**
|
|
91
91
|
* Deletes a **Custom Voice** and its versions.
|
|
92
92
|
*
|
|
93
|
-
* Refer to our [voices guide](/docs/empathic-voice-interface-evi/voices) for details on creating a custom voice.
|
|
93
|
+
* Refer to our [voices guide](/docs/empathic-voice-interface-evi/configuration/voices) for details on creating a custom voice.
|
|
94
94
|
*
|
|
95
95
|
* @param {string} id - Identifier for a Custom Voice. Formatted as a UUID.
|
|
96
96
|
* @param {CustomVoices.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -104,13 +104,18 @@ export declare class CustomVoices {
|
|
|
104
104
|
/**
|
|
105
105
|
* Updates the name of a **Custom Voice**.
|
|
106
106
|
*
|
|
107
|
-
* Refer to our [voices guide](/docs/empathic-voice-interface-evi/voices) for details on creating a custom voice.
|
|
107
|
+
* Refer to our [voices guide](/docs/empathic-voice-interface-evi/configuration/voices) for details on creating a custom voice.
|
|
108
108
|
*
|
|
109
109
|
* @param {string} id - Identifier for a Custom Voice. Formatted as a UUID.
|
|
110
110
|
* @param {Hume.empathicVoice.PostedCustomVoiceName} request
|
|
111
111
|
* @param {CustomVoices.RequestOptions} requestOptions - Request-specific configuration.
|
|
112
112
|
*
|
|
113
113
|
* @throws {@link Hume.empathicVoice.BadRequestError}
|
|
114
|
+
*
|
|
115
|
+
* @example
|
|
116
|
+
* await client.empathicVoice.customVoices.updateCustomVoiceName("id", {
|
|
117
|
+
* name: "name"
|
|
118
|
+
* })
|
|
114
119
|
*/
|
|
115
120
|
updateCustomVoiceName(id: string, request: Hume.empathicVoice.PostedCustomVoiceName, requestOptions?: CustomVoices.RequestOptions): Promise<string>;
|
|
116
121
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
@@ -52,7 +52,7 @@ class CustomVoices {
|
|
|
52
52
|
/**
|
|
53
53
|
* Fetches a paginated list of **Custom Voices**.
|
|
54
54
|
*
|
|
55
|
-
* Refer to our [voices guide](/docs/empathic-voice-interface-evi/voices) for details on creating a custom voice.
|
|
55
|
+
* Refer to our [voices guide](/docs/empathic-voice-interface-evi/configuration/voices) for details on creating a custom voice.
|
|
56
56
|
*
|
|
57
57
|
* @param {Hume.empathicVoice.CustomVoicesListCustomVoicesRequest} request
|
|
58
58
|
* @param {CustomVoices.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -79,7 +79,7 @@ class CustomVoices {
|
|
|
79
79
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
80
80
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "v0/evi/custom_voices"),
|
|
81
81
|
method: "GET",
|
|
82
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.
|
|
82
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.12", "User-Agent": "hume/0.9.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
83
83
|
contentType: "application/json",
|
|
84
84
|
queryParameters: _queryParams,
|
|
85
85
|
requestType: "json",
|
|
@@ -129,7 +129,7 @@ class CustomVoices {
|
|
|
129
129
|
/**
|
|
130
130
|
* Creates a **Custom Voice** that can be added to an [EVI configuration](/reference/empathic-voice-interface-evi/configs/create-config).
|
|
131
131
|
*
|
|
132
|
-
* Refer to our [voices guide](/docs/empathic-voice-interface-evi/voices) for details on creating a custom voice.
|
|
132
|
+
* Refer to our [voices guide](/docs/empathic-voice-interface-evi/configuration/voices) for details on creating a custom voice.
|
|
133
133
|
*
|
|
134
134
|
* @param {Hume.empathicVoice.PostedCustomVoice} request
|
|
135
135
|
* @param {CustomVoices.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -149,7 +149,7 @@ class CustomVoices {
|
|
|
149
149
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
150
150
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "v0/evi/custom_voices"),
|
|
151
151
|
method: "POST",
|
|
152
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.
|
|
152
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.12", "User-Agent": "hume/0.9.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
153
153
|
contentType: "application/json",
|
|
154
154
|
requestType: "json",
|
|
155
155
|
body: serializers.empathicVoice.PostedCustomVoice.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -199,7 +199,7 @@ class CustomVoices {
|
|
|
199
199
|
/**
|
|
200
200
|
* Fetches a specific **Custom Voice** by ID.
|
|
201
201
|
*
|
|
202
|
-
* Refer to our [voices guide](/docs/empathic-voice-interface-evi/voices) for details on creating a custom voice.
|
|
202
|
+
* Refer to our [voices guide](/docs/empathic-voice-interface-evi/configuration/voices) for details on creating a custom voice.
|
|
203
203
|
*
|
|
204
204
|
* @param {string} id - Identifier for a Custom Voice. Formatted as a UUID.
|
|
205
205
|
* @param {CustomVoices.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -215,7 +215,7 @@ class CustomVoices {
|
|
|
215
215
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
216
216
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/custom_voices/${encodeURIComponent(id)}`),
|
|
217
217
|
method: "GET",
|
|
218
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.
|
|
218
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.12", "User-Agent": "hume/0.9.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
219
219
|
contentType: "application/json",
|
|
220
220
|
requestType: "json",
|
|
221
221
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -264,7 +264,7 @@ class CustomVoices {
|
|
|
264
264
|
/**
|
|
265
265
|
* Updates a **Custom Voice** by creating a new version of the **Custom Voice**.
|
|
266
266
|
*
|
|
267
|
-
* Refer to our [voices guide](/docs/empathic-voice-interface-evi/voices) for details on creating a custom voice.
|
|
267
|
+
* Refer to our [voices guide](/docs/empathic-voice-interface-evi/configuration/voices) for details on creating a custom voice.
|
|
268
268
|
*
|
|
269
269
|
* @param {string} id - Identifier for a Custom Voice. Formatted as a UUID.
|
|
270
270
|
* @param {Hume.empathicVoice.PostedCustomVoice} request
|
|
@@ -285,7 +285,7 @@ class CustomVoices {
|
|
|
285
285
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
286
286
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/custom_voices/${encodeURIComponent(id)}`),
|
|
287
287
|
method: "POST",
|
|
288
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.
|
|
288
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.12", "User-Agent": "hume/0.9.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
289
289
|
contentType: "application/json",
|
|
290
290
|
requestType: "json",
|
|
291
291
|
body: serializers.empathicVoice.PostedCustomVoice.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -335,7 +335,7 @@ class CustomVoices {
|
|
|
335
335
|
/**
|
|
336
336
|
* Deletes a **Custom Voice** and its versions.
|
|
337
337
|
*
|
|
338
|
-
* Refer to our [voices guide](/docs/empathic-voice-interface-evi/voices) for details on creating a custom voice.
|
|
338
|
+
* Refer to our [voices guide](/docs/empathic-voice-interface-evi/configuration/voices) for details on creating a custom voice.
|
|
339
339
|
*
|
|
340
340
|
* @param {string} id - Identifier for a Custom Voice. Formatted as a UUID.
|
|
341
341
|
* @param {CustomVoices.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -351,7 +351,7 @@ class CustomVoices {
|
|
|
351
351
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
352
352
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/custom_voices/${encodeURIComponent(id)}`),
|
|
353
353
|
method: "DELETE",
|
|
354
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.
|
|
354
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.12", "User-Agent": "hume/0.9.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
355
355
|
contentType: "application/json",
|
|
356
356
|
requestType: "json",
|
|
357
357
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -395,13 +395,18 @@ class CustomVoices {
|
|
|
395
395
|
/**
|
|
396
396
|
* Updates the name of a **Custom Voice**.
|
|
397
397
|
*
|
|
398
|
-
* Refer to our [voices guide](/docs/empathic-voice-interface-evi/voices) for details on creating a custom voice.
|
|
398
|
+
* Refer to our [voices guide](/docs/empathic-voice-interface-evi/configuration/voices) for details on creating a custom voice.
|
|
399
399
|
*
|
|
400
400
|
* @param {string} id - Identifier for a Custom Voice. Formatted as a UUID.
|
|
401
401
|
* @param {Hume.empathicVoice.PostedCustomVoiceName} request
|
|
402
402
|
* @param {CustomVoices.RequestOptions} requestOptions - Request-specific configuration.
|
|
403
403
|
*
|
|
404
404
|
* @throws {@link Hume.empathicVoice.BadRequestError}
|
|
405
|
+
*
|
|
406
|
+
* @example
|
|
407
|
+
* await client.empathicVoice.customVoices.updateCustomVoiceName("id", {
|
|
408
|
+
* name: "name"
|
|
409
|
+
* })
|
|
405
410
|
*/
|
|
406
411
|
updateCustomVoiceName(id, request, requestOptions) {
|
|
407
412
|
var _a, _b;
|
|
@@ -409,7 +414,7 @@ class CustomVoices {
|
|
|
409
414
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
410
415
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/custom_voices/${encodeURIComponent(id)}`),
|
|
411
416
|
method: "PATCH",
|
|
412
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.
|
|
417
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.12", "User-Agent": "hume/0.9.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
413
418
|
contentType: "application/json",
|
|
414
419
|
requestType: "json",
|
|
415
420
|
body: serializers.empathicVoice.PostedCustomVoiceName.jsonOrThrow(request, {
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* name: "name"
|
|
8
|
+
* }
|
|
9
|
+
*/
|
|
4
10
|
export interface PostedCustomVoiceName {
|
|
5
11
|
/** The name of the Custom Voice. Maximum length of 75 characters. Will be converted to all-uppercase. (e.g., "sample voice" becomes "SAMPLE VOICE") */
|
|
6
12
|
name: string;
|
|
@@ -25,7 +25,7 @@ export declare class Prompts {
|
|
|
25
25
|
/**
|
|
26
26
|
* Fetches a paginated list of **Prompts**.
|
|
27
27
|
*
|
|
28
|
-
* See our [prompting guide](/docs/empathic-voice-interface-evi/phone-calling) for tips on crafting your system prompt.
|
|
28
|
+
* See our [prompting guide](/docs/empathic-voice-interface-evi/guides/phone-calling) for tips on crafting your system prompt.
|
|
29
29
|
*
|
|
30
30
|
* @param {Hume.empathicVoice.PromptsListPromptsRequest} request
|
|
31
31
|
* @param {Prompts.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -42,7 +42,7 @@ export declare class Prompts {
|
|
|
42
42
|
/**
|
|
43
43
|
* Creates a **Prompt** that can be added to an [EVI configuration](/reference/empathic-voice-interface-evi/configs/create-config).
|
|
44
44
|
*
|
|
45
|
-
* See our [prompting guide](/docs/empathic-voice-interface-evi/phone-calling) for tips on crafting your system prompt.
|
|
45
|
+
* See our [prompting guide](/docs/empathic-voice-interface-evi/guides/phone-calling) for tips on crafting your system prompt.
|
|
46
46
|
*
|
|
47
47
|
* @param {Hume.empathicVoice.PostedPrompt} request
|
|
48
48
|
* @param {Prompts.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -59,7 +59,7 @@ export declare class Prompts {
|
|
|
59
59
|
/**
|
|
60
60
|
* Fetches a list of a **Prompt's** versions.
|
|
61
61
|
*
|
|
62
|
-
* See our [prompting guide](/docs/empathic-voice-interface-evi/phone-calling) for tips on crafting your system prompt.
|
|
62
|
+
* See our [prompting guide](/docs/empathic-voice-interface-evi/guides/phone-calling) for tips on crafting your system prompt.
|
|
63
63
|
*
|
|
64
64
|
* @param {string} id - Identifier for a Prompt. Formatted as a UUID.
|
|
65
65
|
* @param {Hume.empathicVoice.PromptsListPromptVersionsRequest} request
|
|
@@ -74,7 +74,7 @@ export declare class Prompts {
|
|
|
74
74
|
/**
|
|
75
75
|
* Updates a **Prompt** by creating a new version of the **Prompt**.
|
|
76
76
|
*
|
|
77
|
-
* See our [prompting guide](/docs/empathic-voice-interface-evi/phone-calling) for tips on crafting your system prompt.
|
|
77
|
+
* See our [prompting guide](/docs/empathic-voice-interface-evi/guides/phone-calling) for tips on crafting your system prompt.
|
|
78
78
|
*
|
|
79
79
|
* @param {string} id - Identifier for a Prompt. Formatted as a UUID.
|
|
80
80
|
* @param {Hume.empathicVoice.PostedPromptVersion} request
|
|
@@ -83,16 +83,16 @@ export declare class Prompts {
|
|
|
83
83
|
* @throws {@link Hume.empathicVoice.BadRequestError}
|
|
84
84
|
*
|
|
85
85
|
* @example
|
|
86
|
-
* await client.empathicVoice.prompts.
|
|
86
|
+
* await client.empathicVoice.prompts.createPromptVersion("af699d45-2985-42cc-91b9-af9e5da3bac5", {
|
|
87
87
|
* text: "<role>You are an updated version of an AI weather assistant providing users with accurate and up-to-date weather information. Respond to user queries concisely and clearly. Use simple language and avoid technical jargon. Provide temperature, precipitation, wind conditions, and any weather alerts. Include helpful tips if severe weather is expected.</role>",
|
|
88
88
|
* versionDescription: "This is an updated version of the Weather Assistant Prompt."
|
|
89
89
|
* })
|
|
90
90
|
*/
|
|
91
|
-
|
|
91
|
+
createPromptVersion(id: string, request: Hume.empathicVoice.PostedPromptVersion, requestOptions?: Prompts.RequestOptions): Promise<Hume.empathicVoice.ReturnPrompt | undefined>;
|
|
92
92
|
/**
|
|
93
93
|
* Deletes a **Prompt** and its versions.
|
|
94
94
|
*
|
|
95
|
-
* See our [prompting guide](/docs/empathic-voice-interface-evi/phone-calling) for tips on crafting your system prompt.
|
|
95
|
+
* See our [prompting guide](/docs/empathic-voice-interface-evi/guides/phone-calling) for tips on crafting your system prompt.
|
|
96
96
|
*
|
|
97
97
|
* @param {string} id - Identifier for a Prompt. Formatted as a UUID.
|
|
98
98
|
* @param {Prompts.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -106,7 +106,7 @@ export declare class Prompts {
|
|
|
106
106
|
/**
|
|
107
107
|
* Updates the name of a **Prompt**.
|
|
108
108
|
*
|
|
109
|
-
* See our [prompting guide](/docs/empathic-voice-interface-evi/phone-calling) for tips on crafting your system prompt.
|
|
109
|
+
* See our [prompting guide](/docs/empathic-voice-interface-evi/guides/phone-calling) for tips on crafting your system prompt.
|
|
110
110
|
*
|
|
111
111
|
* @param {string} id - Identifier for a Prompt. Formatted as a UUID.
|
|
112
112
|
* @param {Hume.empathicVoice.PostedPromptName} request
|
|
@@ -123,7 +123,7 @@ export declare class Prompts {
|
|
|
123
123
|
/**
|
|
124
124
|
* Fetches a specified version of a **Prompt**.
|
|
125
125
|
*
|
|
126
|
-
* See our [prompting guide](/docs/empathic-voice-interface-evi/phone-calling) for tips on crafting your system prompt.
|
|
126
|
+
* See our [prompting guide](/docs/empathic-voice-interface-evi/guides/phone-calling) for tips on crafting your system prompt.
|
|
127
127
|
*
|
|
128
128
|
* @param {string} id - Identifier for a Prompt. Formatted as a UUID.
|
|
129
129
|
* @param {number} version - Version number for a Prompt.
|
|
@@ -142,7 +142,7 @@ export declare class Prompts {
|
|
|
142
142
|
/**
|
|
143
143
|
* Deletes a specified version of a **Prompt**.
|
|
144
144
|
*
|
|
145
|
-
* See our [prompting guide](/docs/empathic-voice-interface-evi/phone-calling) for tips on crafting your system prompt.
|
|
145
|
+
* See our [prompting guide](/docs/empathic-voice-interface-evi/guides/phone-calling) for tips on crafting your system prompt.
|
|
146
146
|
*
|
|
147
147
|
* @param {string} id - Identifier for a Prompt. Formatted as a UUID.
|
|
148
148
|
* @param {number} version - Version number for a Prompt.
|
|
@@ -161,7 +161,7 @@ export declare class Prompts {
|
|
|
161
161
|
/**
|
|
162
162
|
* Updates the description of a **Prompt**.
|
|
163
163
|
*
|
|
164
|
-
* See our [prompting guide](/docs/empathic-voice-interface-evi/phone-calling) for tips on crafting your system prompt.
|
|
164
|
+
* See our [prompting guide](/docs/empathic-voice-interface-evi/guides/phone-calling) for tips on crafting your system prompt.
|
|
165
165
|
*
|
|
166
166
|
* @param {string} id - Identifier for a Prompt. Formatted as a UUID.
|
|
167
167
|
* @param {number} version - Version number for a Prompt.
|
|
@@ -52,7 +52,7 @@ class Prompts {
|
|
|
52
52
|
/**
|
|
53
53
|
* Fetches a paginated list of **Prompts**.
|
|
54
54
|
*
|
|
55
|
-
* See our [prompting guide](/docs/empathic-voice-interface-evi/phone-calling) for tips on crafting your system prompt.
|
|
55
|
+
* See our [prompting guide](/docs/empathic-voice-interface-evi/guides/phone-calling) for tips on crafting your system prompt.
|
|
56
56
|
*
|
|
57
57
|
* @param {Hume.empathicVoice.PromptsListPromptsRequest} request
|
|
58
58
|
* @param {Prompts.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -86,7 +86,7 @@ class Prompts {
|
|
|
86
86
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
87
87
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "v0/evi/prompts"),
|
|
88
88
|
method: "GET",
|
|
89
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.
|
|
89
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.12", "User-Agent": "hume/0.9.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
90
90
|
contentType: "application/json",
|
|
91
91
|
queryParameters: _queryParams,
|
|
92
92
|
requestType: "json",
|
|
@@ -147,7 +147,7 @@ class Prompts {
|
|
|
147
147
|
/**
|
|
148
148
|
* Creates a **Prompt** that can be added to an [EVI configuration](/reference/empathic-voice-interface-evi/configs/create-config).
|
|
149
149
|
*
|
|
150
|
-
* See our [prompting guide](/docs/empathic-voice-interface-evi/phone-calling) for tips on crafting your system prompt.
|
|
150
|
+
* See our [prompting guide](/docs/empathic-voice-interface-evi/guides/phone-calling) for tips on crafting your system prompt.
|
|
151
151
|
*
|
|
152
152
|
* @param {Hume.empathicVoice.PostedPrompt} request
|
|
153
153
|
* @param {Prompts.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -166,7 +166,7 @@ class Prompts {
|
|
|
166
166
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
167
167
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "v0/evi/prompts"),
|
|
168
168
|
method: "POST",
|
|
169
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.
|
|
169
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.12", "User-Agent": "hume/0.9.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
170
170
|
contentType: "application/json",
|
|
171
171
|
requestType: "json",
|
|
172
172
|
body: serializers.empathicVoice.PostedPrompt.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -216,7 +216,7 @@ class Prompts {
|
|
|
216
216
|
/**
|
|
217
217
|
* Fetches a list of a **Prompt's** versions.
|
|
218
218
|
*
|
|
219
|
-
* See our [prompting guide](/docs/empathic-voice-interface-evi/phone-calling) for tips on crafting your system prompt.
|
|
219
|
+
* See our [prompting guide](/docs/empathic-voice-interface-evi/guides/phone-calling) for tips on crafting your system prompt.
|
|
220
220
|
*
|
|
221
221
|
* @param {string} id - Identifier for a Prompt. Formatted as a UUID.
|
|
222
222
|
* @param {Hume.empathicVoice.PromptsListPromptVersionsRequest} request
|
|
@@ -244,7 +244,7 @@ class Prompts {
|
|
|
244
244
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
245
245
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/prompts/${encodeURIComponent(id)}`),
|
|
246
246
|
method: "GET",
|
|
247
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.
|
|
247
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.12", "User-Agent": "hume/0.9.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
248
248
|
contentType: "application/json",
|
|
249
249
|
queryParameters: _queryParams,
|
|
250
250
|
requestType: "json",
|
|
@@ -294,7 +294,7 @@ class Prompts {
|
|
|
294
294
|
/**
|
|
295
295
|
* Updates a **Prompt** by creating a new version of the **Prompt**.
|
|
296
296
|
*
|
|
297
|
-
* See our [prompting guide](/docs/empathic-voice-interface-evi/phone-calling) for tips on crafting your system prompt.
|
|
297
|
+
* See our [prompting guide](/docs/empathic-voice-interface-evi/guides/phone-calling) for tips on crafting your system prompt.
|
|
298
298
|
*
|
|
299
299
|
* @param {string} id - Identifier for a Prompt. Formatted as a UUID.
|
|
300
300
|
* @param {Hume.empathicVoice.PostedPromptVersion} request
|
|
@@ -303,18 +303,18 @@ class Prompts {
|
|
|
303
303
|
* @throws {@link Hume.empathicVoice.BadRequestError}
|
|
304
304
|
*
|
|
305
305
|
* @example
|
|
306
|
-
* await client.empathicVoice.prompts.
|
|
306
|
+
* await client.empathicVoice.prompts.createPromptVersion("af699d45-2985-42cc-91b9-af9e5da3bac5", {
|
|
307
307
|
* text: "<role>You are an updated version of an AI weather assistant providing users with accurate and up-to-date weather information. Respond to user queries concisely and clearly. Use simple language and avoid technical jargon. Provide temperature, precipitation, wind conditions, and any weather alerts. Include helpful tips if severe weather is expected.</role>",
|
|
308
308
|
* versionDescription: "This is an updated version of the Weather Assistant Prompt."
|
|
309
309
|
* })
|
|
310
310
|
*/
|
|
311
|
-
|
|
311
|
+
createPromptVersion(id, request, requestOptions) {
|
|
312
312
|
var _a, _b;
|
|
313
313
|
return __awaiter(this, void 0, void 0, function* () {
|
|
314
314
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
315
315
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/prompts/${encodeURIComponent(id)}`),
|
|
316
316
|
method: "POST",
|
|
317
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.
|
|
317
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.12", "User-Agent": "hume/0.9.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
318
318
|
contentType: "application/json",
|
|
319
319
|
requestType: "json",
|
|
320
320
|
body: serializers.empathicVoice.PostedPromptVersion.jsonOrThrow(request, {
|
|
@@ -325,7 +325,7 @@ class Prompts {
|
|
|
325
325
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
326
326
|
});
|
|
327
327
|
if (_response.ok) {
|
|
328
|
-
return serializers.empathicVoice.prompts.
|
|
328
|
+
return serializers.empathicVoice.prompts.createPromptVersion.Response.parseOrThrow(_response.body, {
|
|
329
329
|
unrecognizedObjectKeys: "passthrough",
|
|
330
330
|
allowUnrecognizedUnionMembers: true,
|
|
331
331
|
allowUnrecognizedEnumValues: true,
|
|
@@ -366,7 +366,7 @@ class Prompts {
|
|
|
366
366
|
/**
|
|
367
367
|
* Deletes a **Prompt** and its versions.
|
|
368
368
|
*
|
|
369
|
-
* See our [prompting guide](/docs/empathic-voice-interface-evi/phone-calling) for tips on crafting your system prompt.
|
|
369
|
+
* See our [prompting guide](/docs/empathic-voice-interface-evi/guides/phone-calling) for tips on crafting your system prompt.
|
|
370
370
|
*
|
|
371
371
|
* @param {string} id - Identifier for a Prompt. Formatted as a UUID.
|
|
372
372
|
* @param {Prompts.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -382,7 +382,7 @@ class Prompts {
|
|
|
382
382
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
383
383
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/prompts/${encodeURIComponent(id)}`),
|
|
384
384
|
method: "DELETE",
|
|
385
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.
|
|
385
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.12", "User-Agent": "hume/0.9.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
386
386
|
contentType: "application/json",
|
|
387
387
|
requestType: "json",
|
|
388
388
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -426,7 +426,7 @@ class Prompts {
|
|
|
426
426
|
/**
|
|
427
427
|
* Updates the name of a **Prompt**.
|
|
428
428
|
*
|
|
429
|
-
* See our [prompting guide](/docs/empathic-voice-interface-evi/phone-calling) for tips on crafting your system prompt.
|
|
429
|
+
* See our [prompting guide](/docs/empathic-voice-interface-evi/guides/phone-calling) for tips on crafting your system prompt.
|
|
430
430
|
*
|
|
431
431
|
* @param {string} id - Identifier for a Prompt. Formatted as a UUID.
|
|
432
432
|
* @param {Hume.empathicVoice.PostedPromptName} request
|
|
@@ -445,7 +445,7 @@ class Prompts {
|
|
|
445
445
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
446
446
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/prompts/${encodeURIComponent(id)}`),
|
|
447
447
|
method: "PATCH",
|
|
448
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.
|
|
448
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.12", "User-Agent": "hume/0.9.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
449
449
|
contentType: "application/json",
|
|
450
450
|
requestType: "json",
|
|
451
451
|
body: serializers.empathicVoice.PostedPromptName.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -491,7 +491,7 @@ class Prompts {
|
|
|
491
491
|
/**
|
|
492
492
|
* Fetches a specified version of a **Prompt**.
|
|
493
493
|
*
|
|
494
|
-
* See our [prompting guide](/docs/empathic-voice-interface-evi/phone-calling) for tips on crafting your system prompt.
|
|
494
|
+
* See our [prompting guide](/docs/empathic-voice-interface-evi/guides/phone-calling) for tips on crafting your system prompt.
|
|
495
495
|
*
|
|
496
496
|
* @param {string} id - Identifier for a Prompt. Formatted as a UUID.
|
|
497
497
|
* @param {number} version - Version number for a Prompt.
|
|
@@ -512,7 +512,7 @@ class Prompts {
|
|
|
512
512
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
513
513
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/prompts/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
|
|
514
514
|
method: "GET",
|
|
515
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.
|
|
515
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.12", "User-Agent": "hume/0.9.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
516
516
|
contentType: "application/json",
|
|
517
517
|
requestType: "json",
|
|
518
518
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -561,7 +561,7 @@ class Prompts {
|
|
|
561
561
|
/**
|
|
562
562
|
* Deletes a specified version of a **Prompt**.
|
|
563
563
|
*
|
|
564
|
-
* See our [prompting guide](/docs/empathic-voice-interface-evi/phone-calling) for tips on crafting your system prompt.
|
|
564
|
+
* See our [prompting guide](/docs/empathic-voice-interface-evi/guides/phone-calling) for tips on crafting your system prompt.
|
|
565
565
|
*
|
|
566
566
|
* @param {string} id - Identifier for a Prompt. Formatted as a UUID.
|
|
567
567
|
* @param {number} version - Version number for a Prompt.
|
|
@@ -582,7 +582,7 @@ class Prompts {
|
|
|
582
582
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
583
583
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/prompts/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
|
|
584
584
|
method: "DELETE",
|
|
585
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.
|
|
585
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.12", "User-Agent": "hume/0.9.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
586
586
|
contentType: "application/json",
|
|
587
587
|
requestType: "json",
|
|
588
588
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -626,7 +626,7 @@ class Prompts {
|
|
|
626
626
|
/**
|
|
627
627
|
* Updates the description of a **Prompt**.
|
|
628
628
|
*
|
|
629
|
-
* See our [prompting guide](/docs/empathic-voice-interface-evi/phone-calling) for tips on crafting your system prompt.
|
|
629
|
+
* See our [prompting guide](/docs/empathic-voice-interface-evi/guides/phone-calling) for tips on crafting your system prompt.
|
|
630
630
|
*
|
|
631
631
|
* @param {string} id - Identifier for a Prompt. Formatted as a UUID.
|
|
632
632
|
* @param {number} version - Version number for a Prompt.
|
|
@@ -650,7 +650,7 @@ class Prompts {
|
|
|
650
650
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
651
651
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/prompts/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
|
|
652
652
|
method: "PATCH",
|
|
653
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.
|
|
653
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.12", "User-Agent": "hume/0.9.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
654
654
|
contentType: "application/json",
|
|
655
655
|
requestType: "json",
|
|
656
656
|
body: serializers.empathicVoice.PostedPromptVersionDescription.jsonOrThrow(request, {
|
package/dist/api/resources/empathicVoice/resources/prompts/client/requests/PostedPrompt.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ export interface PostedPrompt {
|
|
|
18
18
|
*
|
|
19
19
|
* You can use the Prompt to define a specific goal or role for EVI, specifying how it should act or what it should focus on during the conversation. For example, EVI can be instructed to act as a customer support representative, a fitness coach, or a travel advisor, each with its own set of behaviors and response styles.
|
|
20
20
|
*
|
|
21
|
-
* For help writing a system prompt, see our [Prompting Guide](/docs/empathic-voice-interface-evi/prompting).
|
|
21
|
+
* For help writing a system prompt, see our [Prompting Guide](/docs/empathic-voice-interface-evi/guides/prompting).
|
|
22
22
|
*/
|
|
23
23
|
text: string;
|
|
24
24
|
}
|
package/dist/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export interface PostedPromptVersion {
|
|
|
16
16
|
*
|
|
17
17
|
* You can use the Prompt to define a specific goal or role for EVI, specifying how it should act or what it should focus on during the conversation. For example, EVI can be instructed to act as a customer support representative, a fitness coach, or a travel advisor, each with its own set of behaviors and response styles.
|
|
18
18
|
*
|
|
19
|
-
* For help writing a system prompt, see our [Prompting Guide](/docs/empathic-voice-interface-evi/prompting).
|
|
19
|
+
* For help writing a system prompt, see our [Prompting Guide](/docs/empathic-voice-interface-evi/guides/prompting).
|
|
20
20
|
*/
|
|
21
21
|
text: string;
|
|
22
22
|
}
|