diff --git a/.mock/definition/empathic-voice/__package__.yml b/.mock/definition/empathic-voice/__package__.yml index 1b408969..b45cf3de 100644 --- a/.mock/definition/empathic-voice/__package__.yml +++ b/.mock/definition/empathic-voice/__package__.yml @@ -600,8 +600,7 @@ types: When provided, EVI will use this key instead of Hume's API key for the supplemental LLM. This allows you to bypass rate limits and utilize your own API key as needed. - metadata: - type: optional> + metadata: optional> system_prompt: type: optional docs: >- diff --git a/.mock/definition/empathic-voice/chat.yml b/.mock/definition/empathic-voice/chat.yml index 8d10be4a..dafa5d6f 100644 --- a/.mock/definition/empathic-voice/chat.yml +++ b/.mock/definition/empathic-voice/chat.yml @@ -214,12 +214,6 @@ channel: field on a [UserMessage](/reference/speech-to-speech-evi/chat#receive.UserMessage) denotes whether the message is "interim" or "final." - voice_id: - type: optional - docs: >- - The name or ID of the voice from the `Voice Library` to be used as the - speaker for this EVI session. This will override the speaker set in the - selected configuration. api_key: type: optional default: '' diff --git a/.mock/definition/empathic-voice/chatGroups.yml b/.mock/definition/empathic-voice/chatGroups.yml index adfef929..9233b0de 100644 --- a/.mock/definition/empathic-voice/chatGroups.yml +++ b/.mock/definition/empathic-voice/chatGroups.yml @@ -7,7 +7,6 @@ service: list-chat-groups: path: /v0/evi/chat_groups method: GET - auth: true docs: Fetches a paginated list of **Chat Groups**. pagination: offset: $request.page_number @@ -86,7 +85,6 @@ service: get-chat-group: path: /v0/evi/chat_groups/{id} method: GET - auth: true docs: >- Fetches a **ChatGroup** by ID, including a paginated list of **Chats** associated with the **ChatGroup**. @@ -166,7 +164,6 @@ service: list-chat-group-events: path: /v0/evi/chat_groups/{id}/events method: GET - auth: true docs: >- Fetches a paginated list of **Chat** events associated with a **Chat Group**. @@ -547,7 +544,6 @@ service: get-audio: path: /v0/evi/chat_groups/{id}/audio method: GET - auth: true docs: >- Fetches a paginated list of audio for each **Chat** within the specified **Chat Group**. For more details, see our guide on audio reconstruction diff --git a/.mock/definition/empathic-voice/chatWebhooks.yml b/.mock/definition/empathic-voice/chatWebhooks.yml index 93513fc5..00508be3 100644 --- a/.mock/definition/empathic-voice/chatWebhooks.yml +++ b/.mock/definition/empathic-voice/chatWebhooks.yml @@ -11,6 +11,9 @@ webhooks: - payload: chat_group_id: chat_group_id chat_id: chat_id + config_id: null + caller_number: null + custom_session_id: null duration_seconds: 1 end_reason: ACTIVE end_time: 1 @@ -25,6 +28,9 @@ webhooks: - payload: chat_group_id: chat_group_id chat_id: chat_id + config_id: null + caller_number: null chat_start_type: new_chat_group + custom_session_id: null start_time: 1 docs: Sent when an EVI chat is started. diff --git a/.mock/definition/empathic-voice/chats.yml b/.mock/definition/empathic-voice/chats.yml index 290d3ea1..7ceb5503 100644 --- a/.mock/definition/empathic-voice/chats.yml +++ b/.mock/definition/empathic-voice/chats.yml @@ -7,7 +7,6 @@ service: list-chats: path: /v0/evi/chats method: GET - auth: true docs: Fetches a paginated list of **Chats**. pagination: offset: $request.page_number @@ -84,7 +83,6 @@ service: list-chat-events: path: /v0/evi/chats/{id} method: GET - auth: true docs: Fetches a paginated list of **Chat** events. pagination: offset: $request.page_number @@ -471,7 +469,6 @@ service: get-audio: path: /v0/evi/chats/{id}/audio method: GET - auth: true docs: >- Fetches the audio of a previous **Chat**. For more details, see our guide on audio reconstruction diff --git a/.mock/definition/empathic-voice/configs.yml b/.mock/definition/empathic-voice/configs.yml index 90363130..a74be639 100644 --- a/.mock/definition/empathic-voice/configs.yml +++ b/.mock/definition/empathic-voice/configs.yml @@ -7,7 +7,6 @@ service: list-configs: path: /v0/evi/configs method: GET - auth: true docs: >- Fetches a paginated list of **Configs**. @@ -124,7 +123,6 @@ service: create-config: path: /v0/evi/configs method: POST - auth: true docs: >- Creates a **Config** which can be applied to EVI. @@ -278,7 +276,6 @@ service: list-config-versions: path: /v0/evi/configs/{id} method: GET - auth: true docs: >- Fetches a list of a **Config's** versions. @@ -395,7 +392,6 @@ service: create-config-version: path: /v0/evi/configs/{id} method: POST - auth: true docs: >- Updates a **Config** by creating a new version of the **Config**. @@ -547,7 +543,6 @@ service: delete-config: path: /v0/evi/configs/{id} method: DELETE - auth: true docs: >- Deletes a **Config** and its versions. @@ -569,7 +564,6 @@ service: update-config-name: path: /v0/evi/configs/{id} method: PATCH - auth: true docs: >- Updates the name of a **Config**. @@ -605,7 +599,6 @@ service: get-config-version: path: /v0/evi/configs/{id}/version/{version} method: GET - auth: true docs: >- Fetches a specified version of a **Config**. @@ -700,7 +693,6 @@ service: delete-config-version: path: /v0/evi/configs/{id}/version/{version} method: DELETE - auth: true docs: >- Deletes a specified version of a **Config**. @@ -738,7 +730,6 @@ service: update-config-description: path: /v0/evi/configs/{id}/version/{version} method: PATCH - auth: true docs: >- Updates the description of a **Config**. diff --git a/.mock/definition/empathic-voice/prompts.yml b/.mock/definition/empathic-voice/prompts.yml index c10a7038..e6d805b7 100644 --- a/.mock/definition/empathic-voice/prompts.yml +++ b/.mock/definition/empathic-voice/prompts.yml @@ -7,7 +7,6 @@ service: list-prompts: path: /v0/evi/prompts method: GET - auth: true docs: >- Fetches a paginated list of **Prompts**. @@ -101,7 +100,6 @@ service: create-prompt: path: /v0/evi/prompts method: POST - auth: true docs: >- Creates a **Prompt** that can be added to an [EVI configuration](/reference/speech-to-speech-evi/configs/create-config). @@ -175,7 +173,6 @@ service: list-prompt-versions: path: /v0/evi/prompts/{id} method: GET - auth: true docs: >- Fetches a list of a **Prompt's** versions. @@ -253,7 +250,6 @@ service: create-prompt-version: path: /v0/evi/prompts/{id} method: POST - auth: true docs: >- Updates a **Prompt** by creating a new version of the **Prompt**. @@ -330,7 +326,6 @@ service: delete-prompt: path: /v0/evi/prompts/{id} method: DELETE - auth: true docs: >- Deletes a **Prompt** and its versions. @@ -353,7 +348,6 @@ service: update-prompt-name: path: /v0/evi/prompts/{id} method: PATCH - auth: true docs: >- Updates the name of a **Prompt**. @@ -390,7 +384,6 @@ service: get-prompt-version: path: /v0/evi/prompts/{id}/version/{version} method: GET - auth: true docs: >- Fetches a specified version of a **Prompt**. @@ -449,7 +442,6 @@ service: delete-prompt-version: path: /v0/evi/prompts/{id}/version/{version} method: DELETE - auth: true docs: >- Deletes a specified version of a **Prompt**. @@ -488,7 +480,6 @@ service: update-prompt-description: path: /v0/evi/prompts/{id}/version/{version} method: PATCH - auth: true docs: >- Updates the description of a **Prompt**. diff --git a/.mock/definition/empathic-voice/tools.yml b/.mock/definition/empathic-voice/tools.yml index 6aa9f989..b5dd6787 100644 --- a/.mock/definition/empathic-voice/tools.yml +++ b/.mock/definition/empathic-voice/tools.yml @@ -7,7 +7,6 @@ service: list-tools: path: /v0/evi/tools method: GET - auth: true docs: >- Fetches a paginated list of **Tools**. @@ -110,7 +109,6 @@ service: create-tool: path: /v0/evi/tools method: POST - auth: true docs: >- Creates a **Tool** that can be added to an [EVI configuration](/reference/speech-to-speech-evi/configs/create-config). @@ -202,7 +200,6 @@ service: list-tool-versions: path: /v0/evi/tools/{id} method: GET - auth: true docs: >- Fetches a list of a **Tool's** versions. @@ -289,7 +286,6 @@ service: create-tool-version: path: /v0/evi/tools/{id} method: POST - auth: true docs: >- Updates a **Tool** by creating a new version of the **Tool**. @@ -382,7 +378,6 @@ service: delete-tool: path: /v0/evi/tools/{id} method: DELETE - auth: true docs: >- Deletes a **Tool** and its versions. @@ -406,7 +401,6 @@ service: update-tool-name: path: /v0/evi/tools/{id} method: PATCH - auth: true docs: >- Updates the name of a **Tool**. @@ -444,7 +438,6 @@ service: get-tool-version: path: /v0/evi/tools/{id}/version/{version} method: GET - auth: true docs: >- Fetches a specified version of a **Tool**. @@ -508,7 +501,6 @@ service: delete-tool-version: path: /v0/evi/tools/{id}/version/{version} method: DELETE - auth: true docs: >- Deletes a specified version of a **Tool**. @@ -547,7 +539,6 @@ service: update-tool-description: path: /v0/evi/tools/{id}/version/{version} method: PATCH - auth: true docs: >- Updates the description of a specified **Tool** version. diff --git a/.mock/definition/expression-measurement/batch/__package__.yml b/.mock/definition/expression-measurement/batch/__package__.yml index a486e310..2d224469 100644 --- a/.mock/definition/expression-measurement/batch/__package__.yml +++ b/.mock/definition/expression-measurement/batch/__package__.yml @@ -5,7 +5,6 @@ service: list-jobs: path: /v0/batch/jobs method: GET - auth: true docs: Sort and filter jobs. source: openapi: batch-openapi.json @@ -129,7 +128,6 @@ service: start-inference-job: path: /v0/batch/jobs method: POST - auth: true docs: Start a new measurement inference job. source: openapi: batch-openapi.json @@ -153,7 +151,6 @@ service: get-job-details: path: /v0/batch/jobs/{id} method: GET - auth: true docs: Get the request details and state of a given job. source: openapi: batch-openapi.json @@ -213,7 +210,6 @@ service: get-job-predictions: path: /v0/batch/jobs/{id}/predictions method: GET - auth: true docs: Get the JSON predictions of a completed inference job. source: openapi: batch-openapi.json @@ -354,7 +350,6 @@ service: get-job-artifacts: path: /v0/batch/jobs/{id}/artifacts method: GET - auth: true docs: Get the artifacts ZIP of a completed inference job. source: openapi: batch-openapi.json @@ -370,7 +365,8 @@ service: start-inference-job-from-local-file: path: /v0/batch/jobs method: POST - auth: true + auth: + - BearerAuth: [] docs: Start a new batch inference job. source: openapi: batch-files-openapi.yml diff --git a/.mock/definition/expression-measurement/stream/stream.yml b/.mock/definition/expression-measurement/stream/stream.yml index a483b3f2..9599b67a 100644 --- a/.mock/definition/expression-measurement/stream/stream.yml +++ b/.mock/definition/expression-measurement/stream/stream.yml @@ -142,8 +142,7 @@ types: StreamModelsEndpointPayload: docs: Models endpoint payload properties: - data: - type: optional + data: optional models: type: optional docs: > diff --git a/.mock/definition/tts/__package__.yml b/.mock/definition/tts/__package__.yml index dfdeeacf..9cc1ef15 100644 --- a/.mock/definition/tts/__package__.yml +++ b/.mock/definition/tts/__package__.yml @@ -18,7 +18,6 @@ service: synthesize-json: path: /v0/tts method: POST - auth: true docs: >- Synthesizes one or more input texts into speech using the specified voice. If no voice is provided, a novel voice will be generated @@ -84,7 +83,6 @@ service: synthesize-file: path: /v0/tts/file method: POST - auth: true docs: >- Synthesizes one or more input texts into speech using the specified voice. If no voice is provided, a novel voice will be generated @@ -124,7 +122,6 @@ service: synthesize-file-streaming: path: /v0/tts/stream/file method: POST - auth: true docs: >- Streams synthesized speech using the specified voice. If no voice is provided, a novel voice will be generated dynamically. Optionally, @@ -155,7 +152,6 @@ service: synthesize-json-streaming: path: /v0/tts/stream/json method: POST - auth: true docs: >- Streams synthesized speech using the specified voice. If no voice is provided, a novel voice will be generated dynamically. Optionally, @@ -191,13 +187,10 @@ service: openapi: tts-openapi.json types: TtsOutput: - discriminant: type - base-properties: {} + discriminated: false union: - timestamp: - type: TimestampMessage - audio: - type: SnippetAudioChunk + - type: TimestampMessage + - type: SnippetAudioChunk source: openapi: tts-openapi.json AudioFormatType: @@ -283,6 +276,8 @@ types: timestamp: type: Timestamp docs: A word or phoneme level timestamp for the generated audio. + type: + type: literal<"timestamp"> source: openapi: tts-openapi.json SnippetAudioChunk: @@ -310,8 +305,7 @@ types: request_id: type: string docs: ID of the initiating request. - snippet: - type: optional + snippet: optional snippet_id: type: string docs: The ID of the parent snippet that this chunk corresponds to. @@ -324,6 +318,8 @@ types: The transcribed text of the generated audio of the parent snippet that this chunk corresponds to. It is only present if `instant_mode` is set to `false`. + type: + type: literal<"audio"> utterance_index: type: optional docs: >- @@ -493,7 +489,8 @@ types: source: openapi: tts-openapi.json FormatMp3: - properties: {} + properties: + type: literal<"mp3"> source: openapi: tts-openapi.json PostedContext: @@ -509,18 +506,15 @@ types: openapi: tts-openapi.json inline: true Format: - discriminant: type - base-properties: {} + discriminated: false docs: Specifies the output audio file format. union: - mp3: - type: FormatMp3 - pcm: - type: FormatPcm - wav: - type: FormatWav + - type: FormatMp3 + - type: FormatPcm + - type: FormatWav source: openapi: tts-openapi.json + inline: true PostedTts: properties: context: @@ -643,7 +637,8 @@ types: source: openapi: tts-openapi.json FormatPcm: - properties: {} + properties: + type: literal<"pcm"> source: openapi: tts-openapi.json Snippet: @@ -746,7 +741,8 @@ types: source: openapi: tts-openapi.json FormatWav: - properties: {} + properties: + type: literal<"wav"> source: openapi: tts-openapi.json ErrorResponse: diff --git a/.mock/definition/tts/streamInput.yml b/.mock/definition/tts/streamInput.yml index 124ab711..bd2a7f5e 100644 --- a/.mock/definition/tts/streamInput.yml +++ b/.mock/definition/tts/streamInput.yml @@ -69,7 +69,30 @@ channel: origin: client body: type: root.PublishTts + subscribe: + origin: server + body: SubscribeEvent examples: - messages: - type: publish body: {} + - type: subscribe + body: + generation_id: generation_id + request_id: request_id + snippet_id: snippet_id + timestamp: + text: text + time: + begin: 1 + end: 1 + type: word + type: timestamp +types: + SubscribeEvent: + discriminated: false + union: + - type: root.TimestampMessage + - type: root.SnippetAudioChunk + source: + openapi: tts-asyncapi.json diff --git a/.mock/definition/tts/voices.yml b/.mock/definition/tts/voices.yml index 9fe39857..198a700d 100644 --- a/.mock/definition/tts/voices.yml +++ b/.mock/definition/tts/voices.yml @@ -7,7 +7,6 @@ service: list: path: /v0/tts/voices method: GET - auth: true docs: >- Lists voices you have saved in your account, or voices from the [Voice Library](https://platform.hume.ai/tts/voice-library). @@ -79,7 +78,6 @@ service: create: path: /v0/tts/voices method: POST - auth: true docs: >- Saves a new custom voice to your account using the specified TTS generation ID. @@ -123,7 +121,6 @@ service: delete: path: /v0/tts/voices method: DELETE - auth: true docs: Deletes a previously generated custom voice. source: openapi: tts-openapi.json diff --git a/.mock/fern.config.json b/.mock/fern.config.json index 3ca4abd1..225e7c17 100644 --- a/.mock/fern.config.json +++ b/.mock/fern.config.json @@ -1,4 +1,4 @@ { "organization" : "hume", - "version" : "0.76.2" + "version" : "0.87.0" } \ No newline at end of file diff --git a/package.json b/package.json index 8c093c09..147ce0d7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hume", - "version": "0.14.1", + "version": "0.14.2", "private": false, "repository": "https://github.com/HumeAI/hume-typescript-sdk", "main": "./index.js", diff --git a/reference.md b/reference.md index 4661e3f9..f9351ee0 100644 --- a/reference.md +++ b/reference.md @@ -1,8 +1,8 @@ # Reference -## Tts +## EmpathicVoice Tools -
client.tts.synthesizeJson({ ...params }) -> Hume.ReturnTts +
client.empathicVoice.tools.listTools({ ...params }) -> core.Page
@@ -14,9 +14,9 @@
-Synthesizes one or more input texts into speech using the specified voice. If no voice is provided, a novel voice will be generated dynamically. Optionally, additional context can be included to influence the speech's style and prosody. +Fetches a paginated list of **Tools**. -The response includes the base64-encoded audio and metadata in JSON format. +Refer to our [tool use](/docs/speech-to-speech-evi/features/tool-use#function-calling) guide for comprehensive instructions on defining and integrating tools into EVI.
@@ -32,28 +32,22 @@ The response includes the base64-encoded audio and metadata in JSON format.
```typescript -await client.tts.synthesizeJson({ - context: { - utterances: [ - { - text: "How can people see beauty so differently?", - description: - "A curious student with a clear and respectful tone, seeking clarification on Hume's ideas with a straightforward question.", - }, - ], - }, - format: { - type: "mp3", - }, - numGenerations: 1, - utterances: [ - { - text: "Beauty is no quality in things themselves: It exists merely in the mind which contemplates them.", - description: - "Middle-aged masculine voice with a clear, rhythmic Scots lilt, rounded vowels, and a warm, steady tone with an articulate, academic quality.", - }, - ], +const response = await client.empathicVoice.tools.listTools({ + pageNumber: 0, + pageSize: 2, }); +for await (const item of response) { + console.log(item); +} + +// Or you can manually iterate page-by-page +const page = await client.empathicVoice.tools.listTools({ + pageNumber: 0, + pageSize: 2, +}); +while (page.hasNextPage()) { + page = page.getNextPage(); +} ```
@@ -69,7 +63,7 @@ await client.tts.synthesizeJson({
-**request:** `Hume.PostedTts` +**request:** `Hume.empathicVoice.ToolsListToolsRequest`
@@ -77,7 +71,7 @@ await client.tts.synthesizeJson({
-**requestOptions:** `Tts.RequestOptions` +**requestOptions:** `Tools.RequestOptions`
@@ -88,7 +82,7 @@ await client.tts.synthesizeJson({
-
client.tts.synthesizeFile({ ...params }) -> stream.Readable +
client.empathicVoice.tools.createTool({ ...params }) -> Hume.ReturnUserDefinedTool | undefined
@@ -100,9 +94,9 @@ await client.tts.synthesizeJson({
-Synthesizes one or more input texts into speech using the specified voice. If no voice is provided, a novel voice will be generated dynamically. Optionally, additional context can be included to influence the speech's style and prosody. +Creates a **Tool** that can be added to an [EVI configuration](/reference/speech-to-speech-evi/configs/create-config). -The response contains the generated audio file in the requested format. +Refer to our [tool use](/docs/speech-to-speech-evi/features/tool-use#function-calling) guide for comprehensive instructions on defining and integrating tools into EVI.
@@ -118,21 +112,13 @@ The response contains the generated audio file in the requested format.
```typescript -await client.tts.synthesizeFile({ - context: { - generationId: "09ad914d-8e7f-40f8-a279-e34f07f7dab2", - }, - format: { - type: "mp3", - }, - numGenerations: 1, - utterances: [ - { - text: "Beauty is no quality in things themselves: It exists merely in the mind which contemplates them.", - description: - "Middle-aged masculine voice with a clear, rhythmic Scots lilt, rounded vowels, and a warm, steady tone with an articulate, academic quality.", - }, - ], +await client.empathicVoice.tools.createTool({ + name: "get_current_weather", + parameters: + '{ "type": "object", "properties": { "location": { "type": "string", "description": "The city and state, e.g. San Francisco, CA" }, "format": { "type": "string", "enum": ["celsius", "fahrenheit"], "description": "The temperature unit to use. Infer this from the users location." } }, "required": ["location", "format"] }', + versionDescription: "Fetches current weather and uses celsius or fahrenheit based on location of user.", + description: "This tool is for getting the current weather.", + fallbackContent: "Unable to fetch current weather.", }); ``` @@ -149,7 +135,7 @@ await client.tts.synthesizeFile({
-**request:** `Hume.PostedTts` +**request:** `Hume.empathicVoice.PostedUserDefinedTool`
@@ -157,7 +143,7 @@ await client.tts.synthesizeFile({
-**requestOptions:** `Tts.RequestOptions` +**requestOptions:** `Tools.RequestOptions`
@@ -168,7 +154,7 @@ await client.tts.synthesizeFile({
-
client.tts.synthesizeFileStreaming({ ...params }) -> stream.Readable +
client.empathicVoice.tools.listToolVersions(id, { ...params }) -> core.Page
@@ -180,7 +166,9 @@ await client.tts.synthesizeFile({
-Streams synthesized speech using the specified voice. If no voice is provided, a novel voice will be generated dynamically. Optionally, additional context can be included to influence the speech's style and prosody. +Fetches a list of a **Tool's** versions. + +Refer to our [tool use](/docs/speech-to-speech-evi/features/tool-use#function-calling) guide for comprehensive instructions on defining and integrating tools into EVI.
@@ -196,17 +184,16 @@ Streams synthesized speech using the specified voice. If no voice is provided, a
```typescript -await client.tts.synthesizeFileStreaming({ - utterances: [ - { - text: "Beauty is no quality in things themselves: It exists merely in the mind which contemplates them.", - voice: { - name: "Male English Actor", - provider: "HUME_AI", - }, - }, - ], -}); +const response = await client.empathicVoice.tools.listToolVersions("00183a3f-79ba-413d-9f3b-609864268bea"); +for await (const item of response) { + console.log(item); +} + +// Or you can manually iterate page-by-page +const page = await client.empathicVoice.tools.listToolVersions("00183a3f-79ba-413d-9f3b-609864268bea"); +while (page.hasNextPage()) { + page = page.getNextPage(); +} ```
@@ -222,7 +209,7 @@ await client.tts.synthesizeFileStreaming({
-**request:** `Hume.PostedTts` +**id:** `string` — Identifier for a Tool. Formatted as a UUID.
@@ -230,7 +217,15 @@ await client.tts.synthesizeFileStreaming({
-**requestOptions:** `Tts.RequestOptions` +**request:** `Hume.empathicVoice.ToolsListToolVersionsRequest` + +
+
+ +
+
+ +**requestOptions:** `Tools.RequestOptions`
@@ -241,7 +236,7 @@ await client.tts.synthesizeFileStreaming({
-
client.tts.synthesizeJsonStreaming({ ...params }) -> core.Stream +
client.empathicVoice.tools.createToolVersion(id, { ...params }) -> Hume.ReturnUserDefinedTool | undefined
@@ -253,9 +248,9 @@ await client.tts.synthesizeFileStreaming({
-Streams synthesized speech using the specified voice. If no voice is provided, a novel voice will be generated dynamically. Optionally, additional context can be included to influence the speech's style and prosody. +Updates a **Tool** by creating a new version of the **Tool**. -The response is a stream of JSON objects including audio encoded in base64. +Refer to our [tool use](/docs/speech-to-speech-evi/features/tool-use#function-calling) guide for comprehensive instructions on defining and integrating tools into EVI.
@@ -271,20 +266,13 @@ The response is a stream of JSON objects including audio encoded in base64.
```typescript -const response = await client.tts.synthesizeJsonStreaming({ - utterances: [ - { - text: "Beauty is no quality in things themselves: It exists merely in the mind which contemplates them.", - voice: { - name: "Male English Actor", - provider: "HUME_AI", - }, - }, - ], +await client.empathicVoice.tools.createToolVersion("00183a3f-79ba-413d-9f3b-609864268bea", { + parameters: + '{ "type": "object", "properties": { "location": { "type": "string", "description": "The city and state, e.g. San Francisco, CA" }, "format": { "type": "string", "enum": ["celsius", "fahrenheit", "kelvin"], "description": "The temperature unit to use. Infer this from the users location." } }, "required": ["location", "format"] }', + versionDescription: "Fetches current weather and uses celsius, fahrenheit, or kelvin based on location of user.", + fallbackContent: "Unable to fetch current weather.", + description: "This tool is for getting the current weather.", }); -for await (const item of response) { - console.log(item); -} ```
@@ -300,7 +288,7 @@ for await (const item of response) {
-**request:** `Hume.PostedTts` +**id:** `string` — Identifier for a Tool. Formatted as a UUID.
@@ -308,7 +296,15 @@ for await (const item of response) {
-**requestOptions:** `Tts.RequestOptions` +**request:** `Hume.empathicVoice.PostedUserDefinedToolVersion` + +
+
+ +
+
+ +**requestOptions:** `Tools.RequestOptions`
@@ -319,9 +315,7 @@ for await (const item of response) {
-## Tts Voices - -
client.tts.voices.list({ ...params }) -> core.Page +
client.empathicVoice.tools.deleteTool(id) -> void
@@ -333,7 +327,9 @@ for await (const item of response) {
-Lists voices you have saved in your account, or voices from the [Voice Library](https://platform.hume.ai/tts/voice-library). +Deletes a **Tool** and its versions. + +Refer to our [tool use](/docs/speech-to-speech-evi/features/tool-use#function-calling) guide for comprehensive instructions on defining and integrating tools into EVI.
@@ -349,20 +345,7 @@ Lists voices you have saved in your account, or voices from the [Voice Library](
```typescript -const response = await client.tts.voices.list({ - provider: "CUSTOM_VOICE", -}); -for await (const item of response) { - console.log(item); -} - -// Or you can manually iterate page-by-page -const page = await client.tts.voices.list({ - provider: "CUSTOM_VOICE", -}); -while (page.hasNextPage()) { - page = page.getNextPage(); -} +await client.empathicVoice.tools.deleteTool("00183a3f-79ba-413d-9f3b-609864268bea"); ```
@@ -378,7 +361,7 @@ while (page.hasNextPage()) {
-**request:** `Hume.tts.VoicesListRequest` +**id:** `string` — Identifier for a Tool. Formatted as a UUID.
@@ -386,7 +369,7 @@ while (page.hasNextPage()) {
-**requestOptions:** `Voices.RequestOptions` +**requestOptions:** `Tools.RequestOptions`
@@ -397,7 +380,7 @@ while (page.hasNextPage()) {
-
client.tts.voices.create({ ...params }) -> Hume.ReturnVoice +
client.empathicVoice.tools.updateToolName(id, { ...params }) -> string
@@ -409,9 +392,9 @@ while (page.hasNextPage()) {
-Saves a new custom voice to your account using the specified TTS generation ID. +Updates the name of a **Tool**. -Once saved, this voice can be reused in subsequent TTS requests, ensuring consistent speech style and prosody. For more details on voice creation, see the [Voices Guide](/docs/text-to-speech-tts/voices). +Refer to our [tool use](/docs/speech-to-speech-evi/features/tool-use#function-calling) guide for comprehensive instructions on defining and integrating tools into EVI.
@@ -427,9 +410,8 @@ Once saved, this voice can be reused in subsequent TTS requests, ensuring consis
```typescript -await client.tts.voices.create({ - generationId: "795c949a-1510-4a80-9646-7d0863b023ab", - name: "David Hume", +await client.empathicVoice.tools.updateToolName("00183a3f-79ba-413d-9f3b-609864268bea", { + name: "get_current_temperature", }); ``` @@ -446,7 +428,7 @@ await client.tts.voices.create({
-**request:** `Hume.tts.PostedVoice` +**id:** `string` — Identifier for a Tool. Formatted as a UUID.
@@ -454,7 +436,15 @@ await client.tts.voices.create({
-**requestOptions:** `Voices.RequestOptions` +**request:** `Hume.empathicVoice.PostedUserDefinedToolName` + +
+
+ +
+
+ +**requestOptions:** `Tools.RequestOptions`
@@ -465,7 +455,7 @@ await client.tts.voices.create({
-
client.tts.voices.delete({ ...params }) -> void +
client.empathicVoice.tools.getToolVersion(id, version) -> Hume.ReturnUserDefinedTool | undefined
@@ -477,7 +467,9 @@ await client.tts.voices.create({
-Deletes a previously generated custom voice. +Fetches a specified version of a **Tool**. + +Refer to our [tool use](/docs/speech-to-speech-evi/features/tool-use#function-calling) guide for comprehensive instructions on defining and integrating tools into EVI.
@@ -493,9 +485,7 @@ Deletes a previously generated custom voice.
```typescript -await client.tts.voices.delete({ - name: "David Hume", -}); +await client.empathicVoice.tools.getToolVersion("00183a3f-79ba-413d-9f3b-609864268bea", 1); ```
@@ -511,7 +501,7 @@ await client.tts.voices.delete({
-**request:** `Hume.tts.VoicesDeleteRequest` +**id:** `string` — Identifier for a Tool. Formatted as a UUID.
@@ -519,7 +509,21 @@ await client.tts.voices.delete({
-**requestOptions:** `Voices.RequestOptions` +**version:** `number` + +Version number for a Tool. + +Tools, Configs, Custom Voices, and Prompts are versioned. This versioning system supports iterative development, allowing you to progressively refine tools and revert to previous versions if needed. + +Version numbers are integer values representing different iterations of the Tool. Each update to the Tool increments its version number. + +
+
+ +
+
+ +**requestOptions:** `Tools.RequestOptions`
@@ -530,9 +534,7 @@ await client.tts.voices.delete({
-## EmpathicVoice Tools - -
client.empathicVoice.tools.listTools({ ...params }) -> core.Page +
client.empathicVoice.tools.deleteToolVersion(id, version) -> void
@@ -544,7 +546,7 @@ await client.tts.voices.delete({
-Fetches a paginated list of **Tools**. +Deletes a specified version of a **Tool**. Refer to our [tool use](/docs/speech-to-speech-evi/features/tool-use#function-calling) guide for comprehensive instructions on defining and integrating tools into EVI. @@ -562,23 +564,8 @@ Refer to our [tool use](/docs/speech-to-speech-evi/features/tool-use#function-ca
```typescript -const response = await client.empathicVoice.tools.listTools({ - pageNumber: 0, - pageSize: 2, -}); -for await (const item of response) { - console.log(item); -} - -// Or you can manually iterate page-by-page -const page = await client.empathicVoice.tools.listTools({ - pageNumber: 0, - pageSize: 2, -}); -while (page.hasNextPage()) { - page = page.getNextPage(); -} -``` +await client.empathicVoice.tools.deleteToolVersion("00183a3f-79ba-413d-9f3b-609864268bea", 1); +```
@@ -593,7 +580,21 @@ while (page.hasNextPage()) {
-**request:** `Hume.empathicVoice.ToolsListToolsRequest` +**id:** `string` — Identifier for a Tool. Formatted as a UUID. + +
+
+ +
+
+ +**version:** `number` + +Version number for a Tool. + +Tools, Configs, Custom Voices, and Prompts are versioned. This versioning system supports iterative development, allowing you to progressively refine tools and revert to previous versions if needed. + +Version numbers are integer values representing different iterations of the Tool. Each update to the Tool increments its version number.
@@ -612,7 +613,7 @@ while (page.hasNextPage()) {
-
client.empathicVoice.tools.createTool({ ...params }) -> Hume.ReturnUserDefinedTool | undefined +
client.empathicVoice.tools.updateToolDescription(id, version, { ...params }) -> Hume.ReturnUserDefinedTool | undefined
@@ -624,7 +625,7 @@ while (page.hasNextPage()) {
-Creates a **Tool** that can be added to an [EVI configuration](/reference/speech-to-speech-evi/configs/create-config). +Updates the description of a specified **Tool** version. Refer to our [tool use](/docs/speech-to-speech-evi/features/tool-use#function-calling) guide for comprehensive instructions on defining and integrating tools into EVI. @@ -642,13 +643,9 @@ Refer to our [tool use](/docs/speech-to-speech-evi/features/tool-use#function-ca
```typescript -await client.empathicVoice.tools.createTool({ - name: "get_current_weather", - parameters: - '{ "type": "object", "properties": { "location": { "type": "string", "description": "The city and state, e.g. San Francisco, CA" }, "format": { "type": "string", "enum": ["celsius", "fahrenheit"], "description": "The temperature unit to use. Infer this from the users location." } }, "required": ["location", "format"] }', - versionDescription: "Fetches current weather and uses celsius or fahrenheit based on location of user.", - description: "This tool is for getting the current weather.", - fallbackContent: "Unable to fetch current weather.", +await client.empathicVoice.tools.updateToolDescription("00183a3f-79ba-413d-9f3b-609864268bea", 1, { + versionDescription: + "Fetches current temperature, precipitation, wind speed, AQI, and other weather conditions. Uses Celsius, Fahrenheit, or kelvin depending on user's region.", }); ``` @@ -665,7 +662,29 @@ await client.empathicVoice.tools.createTool({
-**request:** `Hume.empathicVoice.PostedUserDefinedTool` +**id:** `string` — Identifier for a Tool. Formatted as a UUID. + +
+
+ +
+
+ +**version:** `number` + +Version number for a Tool. + +Tools, Configs, Custom Voices, and Prompts are versioned. This versioning system supports iterative development, allowing you to progressively refine tools and revert to previous versions if needed. + +Version numbers are integer values representing different iterations of the Tool. Each update to the Tool increments its version number. + +
+
+ +
+
+ +**request:** `Hume.empathicVoice.PostedUserDefinedToolVersionDescription`
@@ -684,7 +703,9 @@ await client.empathicVoice.tools.createTool({
-
client.empathicVoice.tools.listToolVersions(id, { ...params }) -> core.Page +## EmpathicVoice Prompts + +
client.empathicVoice.prompts.listPrompts({ ...params }) -> core.Page
@@ -696,9 +717,9 @@ await client.empathicVoice.tools.createTool({
-Fetches a list of a **Tool's** versions. +Fetches a paginated list of **Prompts**. -Refer to our [tool use](/docs/speech-to-speech-evi/features/tool-use#function-calling) guide for comprehensive instructions on defining and integrating tools into EVI. +See our [prompting guide](/docs/speech-to-speech-evi/guides/phone-calling) for tips on crafting your system prompt.
@@ -714,13 +735,19 @@ Refer to our [tool use](/docs/speech-to-speech-evi/features/tool-use#function-ca
```typescript -const response = await client.empathicVoice.tools.listToolVersions("00183a3f-79ba-413d-9f3b-609864268bea"); +const response = await client.empathicVoice.prompts.listPrompts({ + pageNumber: 0, + pageSize: 2, +}); for await (const item of response) { console.log(item); } // Or you can manually iterate page-by-page -const page = await client.empathicVoice.tools.listToolVersions("00183a3f-79ba-413d-9f3b-609864268bea"); +const page = await client.empathicVoice.prompts.listPrompts({ + pageNumber: 0, + pageSize: 2, +}); while (page.hasNextPage()) { page = page.getNextPage(); } @@ -739,15 +766,7 @@ while (page.hasNextPage()) {
-**id:** `string` — Identifier for a Tool. Formatted as a UUID. - -
-
- -
-
- -**request:** `Hume.empathicVoice.ToolsListToolVersionsRequest` +**request:** `Hume.empathicVoice.PromptsListPromptsRequest`
@@ -755,7 +774,7 @@ while (page.hasNextPage()) {
-**requestOptions:** `Tools.RequestOptions` +**requestOptions:** `Prompts.RequestOptions`
@@ -766,7 +785,7 @@ while (page.hasNextPage()) {
-
client.empathicVoice.tools.createToolVersion(id, { ...params }) -> Hume.ReturnUserDefinedTool | undefined +
client.empathicVoice.prompts.createPrompt({ ...params }) -> Hume.ReturnPrompt | undefined
@@ -778,9 +797,9 @@ while (page.hasNextPage()) {
-Updates a **Tool** by creating a new version of the **Tool**. +Creates a **Prompt** that can be added to an [EVI configuration](/reference/speech-to-speech-evi/configs/create-config). -Refer to our [tool use](/docs/speech-to-speech-evi/features/tool-use#function-calling) guide for comprehensive instructions on defining and integrating tools into EVI. +See our [prompting guide](/docs/speech-to-speech-evi/guides/phone-calling) for tips on crafting your system prompt.
@@ -796,12 +815,9 @@ Refer to our [tool use](/docs/speech-to-speech-evi/features/tool-use#function-ca
```typescript -await client.empathicVoice.tools.createToolVersion("00183a3f-79ba-413d-9f3b-609864268bea", { - parameters: - '{ "type": "object", "properties": { "location": { "type": "string", "description": "The city and state, e.g. San Francisco, CA" }, "format": { "type": "string", "enum": ["celsius", "fahrenheit", "kelvin"], "description": "The temperature unit to use. Infer this from the users location." } }, "required": ["location", "format"] }', - versionDescription: "Fetches current weather and uses celsius, fahrenheit, or kelvin based on location of user.", - fallbackContent: "Unable to fetch current weather.", - description: "This tool is for getting the current weather.", +await client.empathicVoice.prompts.createPrompt({ + name: "Weather Assistant Prompt", + text: "You are 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.", }); ``` @@ -818,15 +834,7 @@ await client.empathicVoice.tools.createToolVersion("00183a3f-79ba-413d-9f3b-6098
-**id:** `string` — Identifier for a Tool. Formatted as a UUID. - -
-
- -
-
- -**request:** `Hume.empathicVoice.PostedUserDefinedToolVersion` +**request:** `Hume.empathicVoice.PostedPrompt`
@@ -834,7 +842,7 @@ await client.empathicVoice.tools.createToolVersion("00183a3f-79ba-413d-9f3b-6098
-**requestOptions:** `Tools.RequestOptions` +**requestOptions:** `Prompts.RequestOptions`
@@ -845,7 +853,7 @@ await client.empathicVoice.tools.createToolVersion("00183a3f-79ba-413d-9f3b-6098
-
client.empathicVoice.tools.deleteTool(id) -> void +
client.empathicVoice.prompts.listPromptVersions(id, { ...params }) -> Hume.ReturnPagedPrompts
@@ -857,9 +865,9 @@ await client.empathicVoice.tools.createToolVersion("00183a3f-79ba-413d-9f3b-6098
-Deletes a **Tool** and its versions. +Fetches a list of a **Prompt's** versions. -Refer to our [tool use](/docs/speech-to-speech-evi/features/tool-use#function-calling) guide for comprehensive instructions on defining and integrating tools into EVI. +See our [prompting guide](/docs/speech-to-speech-evi/guides/phone-calling) for tips on crafting your system prompt.
@@ -875,7 +883,7 @@ Refer to our [tool use](/docs/speech-to-speech-evi/features/tool-use#function-ca
```typescript -await client.empathicVoice.tools.deleteTool("00183a3f-79ba-413d-9f3b-609864268bea"); +await client.empathicVoice.prompts.listPromptVersions("af699d45-2985-42cc-91b9-af9e5da3bac5"); ```
@@ -891,7 +899,7 @@ await client.empathicVoice.tools.deleteTool("00183a3f-79ba-413d-9f3b-609864268be
-**id:** `string` — Identifier for a Tool. Formatted as a UUID. +**id:** `string` — Identifier for a Prompt. Formatted as a UUID.
@@ -899,7 +907,15 @@ await client.empathicVoice.tools.deleteTool("00183a3f-79ba-413d-9f3b-609864268be
-**requestOptions:** `Tools.RequestOptions` +**request:** `Hume.empathicVoice.PromptsListPromptVersionsRequest` + +
+
+ +
+
+ +**requestOptions:** `Prompts.RequestOptions`
@@ -910,7 +926,7 @@ await client.empathicVoice.tools.deleteTool("00183a3f-79ba-413d-9f3b-609864268be
-
client.empathicVoice.tools.updateToolName(id, { ...params }) -> string +
client.empathicVoice.prompts.createPromptVersion(id, { ...params }) -> Hume.ReturnPrompt | undefined
@@ -922,9 +938,9 @@ await client.empathicVoice.tools.deleteTool("00183a3f-79ba-413d-9f3b-609864268be
-Updates the name of a **Tool**. +Updates a **Prompt** by creating a new version of the **Prompt**. -Refer to our [tool use](/docs/speech-to-speech-evi/features/tool-use#function-calling) guide for comprehensive instructions on defining and integrating tools into EVI. +See our [prompting guide](/docs/speech-to-speech-evi/guides/phone-calling) for tips on crafting your system prompt.
@@ -940,8 +956,9 @@ Refer to our [tool use](/docs/speech-to-speech-evi/features/tool-use#function-ca
```typescript -await client.empathicVoice.tools.updateToolName("00183a3f-79ba-413d-9f3b-609864268bea", { - name: "get_current_temperature", +await client.empathicVoice.prompts.createPromptVersion("af699d45-2985-42cc-91b9-af9e5da3bac5", { + text: "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.", + versionDescription: "This is an updated version of the Weather Assistant Prompt.", }); ``` @@ -958,7 +975,7 @@ await client.empathicVoice.tools.updateToolName("00183a3f-79ba-413d-9f3b-6098642
-**id:** `string` — Identifier for a Tool. Formatted as a UUID. +**id:** `string` — Identifier for a Prompt. Formatted as a UUID.
@@ -966,7 +983,7 @@ await client.empathicVoice.tools.updateToolName("00183a3f-79ba-413d-9f3b-6098642
-**request:** `Hume.empathicVoice.PostedUserDefinedToolName` +**request:** `Hume.empathicVoice.PostedPromptVersion`
@@ -974,7 +991,7 @@ await client.empathicVoice.tools.updateToolName("00183a3f-79ba-413d-9f3b-6098642
-**requestOptions:** `Tools.RequestOptions` +**requestOptions:** `Prompts.RequestOptions`
@@ -985,7 +1002,7 @@ await client.empathicVoice.tools.updateToolName("00183a3f-79ba-413d-9f3b-6098642
-
client.empathicVoice.tools.getToolVersion(id, version) -> Hume.ReturnUserDefinedTool | undefined +
client.empathicVoice.prompts.deletePrompt(id) -> void
@@ -997,9 +1014,9 @@ await client.empathicVoice.tools.updateToolName("00183a3f-79ba-413d-9f3b-6098642
-Fetches a specified version of a **Tool**. +Deletes a **Prompt** and its versions. -Refer to our [tool use](/docs/speech-to-speech-evi/features/tool-use#function-calling) guide for comprehensive instructions on defining and integrating tools into EVI. +See our [prompting guide](/docs/speech-to-speech-evi/guides/phone-calling) for tips on crafting your system prompt.
@@ -1015,7 +1032,7 @@ Refer to our [tool use](/docs/speech-to-speech-evi/features/tool-use#function-ca
```typescript -await client.empathicVoice.tools.getToolVersion("00183a3f-79ba-413d-9f3b-609864268bea", 1); +await client.empathicVoice.prompts.deletePrompt("af699d45-2985-42cc-91b9-af9e5da3bac5"); ```
@@ -1031,21 +1048,7 @@ await client.empathicVoice.tools.getToolVersion("00183a3f-79ba-413d-9f3b-6098642
-**id:** `string` — Identifier for a Tool. Formatted as a UUID. - -
-
- -
-
- -**version:** `number` - -Version number for a Tool. - -Tools, Configs, Custom Voices, and Prompts are versioned. This versioning system supports iterative development, allowing you to progressively refine tools and revert to previous versions if needed. - -Version numbers are integer values representing different iterations of the Tool. Each update to the Tool increments its version number. +**id:** `string` — Identifier for a Prompt. Formatted as a UUID.
@@ -1053,7 +1056,7 @@ Version numbers are integer values representing different iterations of the Tool
-**requestOptions:** `Tools.RequestOptions` +**requestOptions:** `Prompts.RequestOptions`
@@ -1064,7 +1067,7 @@ Version numbers are integer values representing different iterations of the Tool
-
client.empathicVoice.tools.deleteToolVersion(id, version) -> void +
client.empathicVoice.prompts.updatePromptName(id, { ...params }) -> string
@@ -1076,9 +1079,9 @@ Version numbers are integer values representing different iterations of the Tool
-Deletes a specified version of a **Tool**. +Updates the name of a **Prompt**. -Refer to our [tool use](/docs/speech-to-speech-evi/features/tool-use#function-calling) guide for comprehensive instructions on defining and integrating tools into EVI. +See our [prompting guide](/docs/speech-to-speech-evi/guides/phone-calling) for tips on crafting your system prompt.
@@ -1094,7 +1097,9 @@ Refer to our [tool use](/docs/speech-to-speech-evi/features/tool-use#function-ca
```typescript -await client.empathicVoice.tools.deleteToolVersion("00183a3f-79ba-413d-9f3b-609864268bea", 1); +await client.empathicVoice.prompts.updatePromptName("af699d45-2985-42cc-91b9-af9e5da3bac5", { + name: "Updated Weather Assistant Prompt Name", +}); ```
@@ -1110,7 +1115,7 @@ await client.empathicVoice.tools.deleteToolVersion("00183a3f-79ba-413d-9f3b-6098
-**id:** `string` — Identifier for a Tool. Formatted as a UUID. +**id:** `string` — Identifier for a Prompt. Formatted as a UUID.
@@ -1118,13 +1123,7 @@ await client.empathicVoice.tools.deleteToolVersion("00183a3f-79ba-413d-9f3b-6098
-**version:** `number` - -Version number for a Tool. - -Tools, Configs, Custom Voices, and Prompts are versioned. This versioning system supports iterative development, allowing you to progressively refine tools and revert to previous versions if needed. - -Version numbers are integer values representing different iterations of the Tool. Each update to the Tool increments its version number. +**request:** `Hume.empathicVoice.PostedPromptName`
@@ -1132,7 +1131,7 @@ Version numbers are integer values representing different iterations of the Tool
-**requestOptions:** `Tools.RequestOptions` +**requestOptions:** `Prompts.RequestOptions`
@@ -1143,7 +1142,7 @@ Version numbers are integer values representing different iterations of the Tool
-
client.empathicVoice.tools.updateToolDescription(id, version, { ...params }) -> Hume.ReturnUserDefinedTool | undefined +
client.empathicVoice.prompts.getPromptVersion(id, version) -> Hume.ReturnPrompt | undefined
@@ -1155,9 +1154,9 @@ Version numbers are integer values representing different iterations of the Tool
-Updates the description of a specified **Tool** version. +Fetches a specified version of a **Prompt**. -Refer to our [tool use](/docs/speech-to-speech-evi/features/tool-use#function-calling) guide for comprehensive instructions on defining and integrating tools into EVI. +See our [prompting guide](/docs/speech-to-speech-evi/guides/phone-calling) for tips on crafting your system prompt.
@@ -1173,10 +1172,7 @@ Refer to our [tool use](/docs/speech-to-speech-evi/features/tool-use#function-ca
```typescript -await client.empathicVoice.tools.updateToolDescription("00183a3f-79ba-413d-9f3b-609864268bea", 1, { - versionDescription: - "Fetches current temperature, precipitation, wind speed, AQI, and other weather conditions. Uses Celsius, Fahrenheit, or kelvin depending on user's region.", -}); +await client.empathicVoice.prompts.getPromptVersion("af699d45-2985-42cc-91b9-af9e5da3bac5", 0); ```
@@ -1192,7 +1188,7 @@ await client.empathicVoice.tools.updateToolDescription("00183a3f-79ba-413d-9f3b-
-**id:** `string` — Identifier for a Tool. Formatted as a UUID. +**id:** `string` — Identifier for a Prompt. Formatted as a UUID.
@@ -1202,19 +1198,11 @@ await client.empathicVoice.tools.updateToolDescription("00183a3f-79ba-413d-9f3b- **version:** `number` -Version number for a Tool. - -Tools, Configs, Custom Voices, and Prompts are versioned. This versioning system supports iterative development, allowing you to progressively refine tools and revert to previous versions if needed. - -Version numbers are integer values representing different iterations of the Tool. Each update to the Tool increments its version number. - - -
+Version number for a Prompt. -
-
+Prompts, Configs, Custom Voices, and Tools are versioned. This versioning system supports iterative development, allowing you to progressively refine prompts and revert to previous versions if needed. -**request:** `Hume.empathicVoice.PostedUserDefinedToolVersionDescription` +Version numbers are integer values representing different iterations of the Prompt. Each update to the Prompt increments its version number.
@@ -1222,7 +1210,7 @@ Version numbers are integer values representing different iterations of the Tool
-**requestOptions:** `Tools.RequestOptions` +**requestOptions:** `Prompts.RequestOptions`
@@ -1233,9 +1221,7 @@ Version numbers are integer values representing different iterations of the Tool
-## EmpathicVoice Prompts - -
client.empathicVoice.prompts.listPrompts({ ...params }) -> core.Page +
client.empathicVoice.prompts.deletePromptVersion(id, version) -> void
@@ -1247,7 +1233,7 @@ Version numbers are integer values representing different iterations of the Tool
-Fetches a paginated list of **Prompts**. +Deletes a specified version of a **Prompt**. See our [prompting guide](/docs/speech-to-speech-evi/guides/phone-calling) for tips on crafting your system prompt. @@ -1265,22 +1251,7 @@ See our [prompting guide](/docs/speech-to-speech-evi/guides/phone-calling) for t
```typescript -const response = await client.empathicVoice.prompts.listPrompts({ - pageNumber: 0, - pageSize: 2, -}); -for await (const item of response) { - console.log(item); -} - -// Or you can manually iterate page-by-page -const page = await client.empathicVoice.prompts.listPrompts({ - pageNumber: 0, - pageSize: 2, -}); -while (page.hasNextPage()) { - page = page.getNextPage(); -} +await client.empathicVoice.prompts.deletePromptVersion("af699d45-2985-42cc-91b9-af9e5da3bac5", 1); ```
@@ -1296,7 +1267,7 @@ while (page.hasNextPage()) {
-**request:** `Hume.empathicVoice.PromptsListPromptsRequest` +**id:** `string` — Identifier for a Prompt. Formatted as a UUID.
@@ -1304,9 +1275,23 @@ while (page.hasNextPage()) {
-**requestOptions:** `Prompts.RequestOptions` +**version:** `number` -
+Version number for a Prompt. + +Prompts, Configs, Custom Voices, and Tools are versioned. This versioning system supports iterative development, allowing you to progressively refine prompts and revert to previous versions if needed. + +Version numbers are integer values representing different iterations of the Prompt. Each update to the Prompt increments its version number. + +
+
+ +
+
+ +**requestOptions:** `Prompts.RequestOptions` + +
@@ -1315,7 +1300,7 @@ while (page.hasNextPage()) {
-
client.empathicVoice.prompts.createPrompt({ ...params }) -> Hume.ReturnPrompt | undefined +
client.empathicVoice.prompts.updatePromptDescription(id, version, { ...params }) -> Hume.ReturnPrompt | undefined
@@ -1327,7 +1312,7 @@ while (page.hasNextPage()) {
-Creates a **Prompt** that can be added to an [EVI configuration](/reference/speech-to-speech-evi/configs/create-config). +Updates the description of a **Prompt**. See our [prompting guide](/docs/speech-to-speech-evi/guides/phone-calling) for tips on crafting your system prompt. @@ -1345,9 +1330,8 @@ See our [prompting guide](/docs/speech-to-speech-evi/guides/phone-calling) for t
```typescript -await client.empathicVoice.prompts.createPrompt({ - name: "Weather Assistant Prompt", - text: "You are 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.", +await client.empathicVoice.prompts.updatePromptDescription("af699d45-2985-42cc-91b9-af9e5da3bac5", 1, { + versionDescription: "This is an updated version_description.", }); ``` @@ -1364,7 +1348,29 @@ await client.empathicVoice.prompts.createPrompt({
-**request:** `Hume.empathicVoice.PostedPrompt` +**id:** `string` — Identifier for a Prompt. Formatted as a UUID. + +
+
+ +
+
+ +**version:** `number` + +Version number for a Prompt. + +Prompts, Configs, Custom Voices, and Tools are versioned. This versioning system supports iterative development, allowing you to progressively refine prompts and revert to previous versions if needed. + +Version numbers are integer values representing different iterations of the Prompt. Each update to the Prompt increments its version number. + +
+
+ +
+
+ +**request:** `Hume.empathicVoice.PostedPromptVersionDescription`
@@ -1383,7 +1389,9 @@ await client.empathicVoice.prompts.createPrompt({
-
client.empathicVoice.prompts.listPromptVersions(id, { ...params }) -> Hume.ReturnPagedPrompts +## EmpathicVoice Configs + +
client.empathicVoice.configs.listConfigs({ ...params }) -> core.Page
@@ -1395,9 +1403,9 @@ await client.empathicVoice.prompts.createPrompt({
-Fetches a list of a **Prompt's** versions. +Fetches a paginated list of **Configs**. -See our [prompting guide](/docs/speech-to-speech-evi/guides/phone-calling) for tips on crafting your system prompt. +For more details on configuration options and how to configure EVI, see our [configuration guide](/docs/speech-to-speech-evi/configuration).
@@ -1413,7 +1421,22 @@ See our [prompting guide](/docs/speech-to-speech-evi/guides/phone-calling) for t
```typescript -await client.empathicVoice.prompts.listPromptVersions("af699d45-2985-42cc-91b9-af9e5da3bac5"); +const response = await client.empathicVoice.configs.listConfigs({ + pageNumber: 0, + pageSize: 1, +}); +for await (const item of response) { + console.log(item); +} + +// Or you can manually iterate page-by-page +const page = await client.empathicVoice.configs.listConfigs({ + pageNumber: 0, + pageSize: 1, +}); +while (page.hasNextPage()) { + page = page.getNextPage(); +} ```
@@ -1429,15 +1452,7 @@ await client.empathicVoice.prompts.listPromptVersions("af699d45-2985-42cc-91b9-a
-**id:** `string` — Identifier for a Prompt. Formatted as a UUID. - -
-
- -
-
- -**request:** `Hume.empathicVoice.PromptsListPromptVersionsRequest` +**request:** `Hume.empathicVoice.ConfigsListConfigsRequest`
@@ -1445,7 +1460,7 @@ await client.empathicVoice.prompts.listPromptVersions("af699d45-2985-42cc-91b9-a
-**requestOptions:** `Prompts.RequestOptions` +**requestOptions:** `Configs.RequestOptions`
@@ -1456,7 +1471,7 @@ await client.empathicVoice.prompts.listPromptVersions("af699d45-2985-42cc-91b9-a
-
client.empathicVoice.prompts.createPromptVersion(id, { ...params }) -> Hume.ReturnPrompt | undefined +
client.empathicVoice.configs.createConfig({ ...params }) -> Hume.ReturnConfig
@@ -1468,9 +1483,9 @@ await client.empathicVoice.prompts.listPromptVersions("af699d45-2985-42cc-91b9-a
-Updates a **Prompt** by creating a new version of the **Prompt**. +Creates a **Config** which can be applied to EVI. -See our [prompting guide](/docs/speech-to-speech-evi/guides/phone-calling) for tips on crafting your system prompt. +For more details on configuration options and how to configure EVI, see our [configuration guide](/docs/speech-to-speech-evi/configuration).
@@ -1486,9 +1501,36 @@ See our [prompting guide](/docs/speech-to-speech-evi/guides/phone-calling) for t
```typescript -await client.empathicVoice.prompts.createPromptVersion("af699d45-2985-42cc-91b9-af9e5da3bac5", { - text: "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.", - versionDescription: "This is an updated version of the Weather Assistant Prompt.", +await client.empathicVoice.configs.createConfig({ + name: "Weather Assistant Config", + prompt: { + id: "af699d45-2985-42cc-91b9-af9e5da3bac5", + version: 0, + }, + eviVersion: "3", + voice: { + provider: "HUME_AI", + name: "Ava Song", + }, + languageModel: { + modelProvider: "ANTHROPIC", + modelResource: "claude-3-7-sonnet-latest", + temperature: 1, + }, + eventMessages: { + onNewChat: { + enabled: false, + text: "", + }, + onInactivityTimeout: { + enabled: false, + text: "", + }, + onMaxDurationTimeout: { + enabled: false, + text: "", + }, + }, }); ``` @@ -1505,15 +1547,7 @@ await client.empathicVoice.prompts.createPromptVersion("af699d45-2985-42cc-91b9-
-**id:** `string` — Identifier for a Prompt. Formatted as a UUID. - -
-
- -
-
- -**request:** `Hume.empathicVoice.PostedPromptVersion` +**request:** `Hume.empathicVoice.PostedConfig`
@@ -1521,7 +1555,7 @@ await client.empathicVoice.prompts.createPromptVersion("af699d45-2985-42cc-91b9-
-**requestOptions:** `Prompts.RequestOptions` +**requestOptions:** `Configs.RequestOptions`
@@ -1532,7 +1566,7 @@ await client.empathicVoice.prompts.createPromptVersion("af699d45-2985-42cc-91b9-
-
client.empathicVoice.prompts.deletePrompt(id) -> void +
client.empathicVoice.configs.listConfigVersions(id, { ...params }) -> core.Page
@@ -1544,9 +1578,9 @@ await client.empathicVoice.prompts.createPromptVersion("af699d45-2985-42cc-91b9-
-Deletes a **Prompt** and its versions. +Fetches a list of a **Config's** versions. -See our [prompting guide](/docs/speech-to-speech-evi/guides/phone-calling) for tips on crafting your system prompt. +For more details on configuration options and how to configure EVI, see our [configuration guide](/docs/speech-to-speech-evi/configuration).
@@ -1562,7 +1596,16 @@ See our [prompting guide](/docs/speech-to-speech-evi/guides/phone-calling) for t
```typescript -await client.empathicVoice.prompts.deletePrompt("af699d45-2985-42cc-91b9-af9e5da3bac5"); +const response = await client.empathicVoice.configs.listConfigVersions("1b60e1a0-cc59-424a-8d2c-189d354db3f3"); +for await (const item of response) { + console.log(item); +} + +// Or you can manually iterate page-by-page +const page = await client.empathicVoice.configs.listConfigVersions("1b60e1a0-cc59-424a-8d2c-189d354db3f3"); +while (page.hasNextPage()) { + page = page.getNextPage(); +} ```
@@ -1578,7 +1621,7 @@ await client.empathicVoice.prompts.deletePrompt("af699d45-2985-42cc-91b9-af9e5da
-**id:** `string` — Identifier for a Prompt. Formatted as a UUID. +**id:** `string` — Identifier for a Config. Formatted as a UUID.
@@ -1586,7 +1629,15 @@ await client.empathicVoice.prompts.deletePrompt("af699d45-2985-42cc-91b9-af9e5da
-**requestOptions:** `Prompts.RequestOptions` +**request:** `Hume.empathicVoice.ConfigsListConfigVersionsRequest` + +
+
+ +
+
+ +**requestOptions:** `Configs.RequestOptions`
@@ -1597,7 +1648,7 @@ await client.empathicVoice.prompts.deletePrompt("af699d45-2985-42cc-91b9-af9e5da
-
client.empathicVoice.prompts.updatePromptName(id, { ...params }) -> string +
client.empathicVoice.configs.createConfigVersion(id, { ...params }) -> Hume.ReturnConfig
@@ -1609,9 +1660,9 @@ await client.empathicVoice.prompts.deletePrompt("af699d45-2985-42cc-91b9-af9e5da
-Updates the name of a **Prompt**. +Updates a **Config** by creating a new version of the **Config**. -See our [prompting guide](/docs/speech-to-speech-evi/guides/phone-calling) for tips on crafting your system prompt. +For more details on configuration options and how to configure EVI, see our [configuration guide](/docs/speech-to-speech-evi/configuration).
@@ -1627,8 +1678,39 @@ See our [prompting guide](/docs/speech-to-speech-evi/guides/phone-calling) for t
```typescript -await client.empathicVoice.prompts.updatePromptName("af699d45-2985-42cc-91b9-af9e5da3bac5", { - name: "Updated Weather Assistant Prompt Name", +await client.empathicVoice.configs.createConfigVersion("1b60e1a0-cc59-424a-8d2c-189d354db3f3", { + versionDescription: "This is an updated version of the Weather Assistant Config.", + eviVersion: "3", + prompt: { + id: "af699d45-2985-42cc-91b9-af9e5da3bac5", + version: 0, + }, + voice: { + provider: "HUME_AI", + name: "Ava Song", + }, + languageModel: { + modelProvider: "ANTHROPIC", + modelResource: "claude-3-7-sonnet-latest", + temperature: 1, + }, + ellmModel: { + allowShortResponses: true, + }, + eventMessages: { + onNewChat: { + enabled: false, + text: "", + }, + onInactivityTimeout: { + enabled: false, + text: "", + }, + onMaxDurationTimeout: { + enabled: false, + text: "", + }, + }, }); ``` @@ -1645,7 +1727,7 @@ await client.empathicVoice.prompts.updatePromptName("af699d45-2985-42cc-91b9-af9
-**id:** `string` — Identifier for a Prompt. Formatted as a UUID. +**id:** `string` — Identifier for a Config. Formatted as a UUID.
@@ -1653,7 +1735,7 @@ await client.empathicVoice.prompts.updatePromptName("af699d45-2985-42cc-91b9-af9
-**request:** `Hume.empathicVoice.PostedPromptName` +**request:** `Hume.empathicVoice.PostedConfigVersion`
@@ -1661,7 +1743,7 @@ await client.empathicVoice.prompts.updatePromptName("af699d45-2985-42cc-91b9-af9
-**requestOptions:** `Prompts.RequestOptions` +**requestOptions:** `Configs.RequestOptions`
@@ -1672,7 +1754,7 @@ await client.empathicVoice.prompts.updatePromptName("af699d45-2985-42cc-91b9-af9
-
client.empathicVoice.prompts.getPromptVersion(id, version) -> Hume.ReturnPrompt | undefined +
client.empathicVoice.configs.deleteConfig(id) -> void
@@ -1684,9 +1766,9 @@ await client.empathicVoice.prompts.updatePromptName("af699d45-2985-42cc-91b9-af9
-Fetches a specified version of a **Prompt**. +Deletes a **Config** and its versions. -See our [prompting guide](/docs/speech-to-speech-evi/guides/phone-calling) for tips on crafting your system prompt. +For more details on configuration options and how to configure EVI, see our [configuration guide](/docs/speech-to-speech-evi/configuration).
@@ -1702,7 +1784,7 @@ See our [prompting guide](/docs/speech-to-speech-evi/guides/phone-calling) for t
```typescript -await client.empathicVoice.prompts.getPromptVersion("af699d45-2985-42cc-91b9-af9e5da3bac5", 0); +await client.empathicVoice.configs.deleteConfig("1b60e1a0-cc59-424a-8d2c-189d354db3f3"); ```
@@ -1718,21 +1800,7 @@ await client.empathicVoice.prompts.getPromptVersion("af699d45-2985-42cc-91b9-af9
-**id:** `string` — Identifier for a Prompt. Formatted as a UUID. - -
-
- -
-
- -**version:** `number` - -Version number for a Prompt. - -Prompts, Configs, Custom Voices, and Tools are versioned. This versioning system supports iterative development, allowing you to progressively refine prompts and revert to previous versions if needed. - -Version numbers are integer values representing different iterations of the Prompt. Each update to the Prompt increments its version number. +**id:** `string` — Identifier for a Config. Formatted as a UUID.
@@ -1740,7 +1808,7 @@ Version numbers are integer values representing different iterations of the Prom
-**requestOptions:** `Prompts.RequestOptions` +**requestOptions:** `Configs.RequestOptions`
@@ -1751,7 +1819,7 @@ Version numbers are integer values representing different iterations of the Prom
-
client.empathicVoice.prompts.deletePromptVersion(id, version) -> void +
client.empathicVoice.configs.updateConfigName(id, { ...params }) -> string
@@ -1763,9 +1831,9 @@ Version numbers are integer values representing different iterations of the Prom
-Deletes a specified version of a **Prompt**. +Updates the name of a **Config**. -See our [prompting guide](/docs/speech-to-speech-evi/guides/phone-calling) for tips on crafting your system prompt. +For more details on configuration options and how to configure EVI, see our [configuration guide](/docs/speech-to-speech-evi/configuration).
@@ -1781,7 +1849,9 @@ See our [prompting guide](/docs/speech-to-speech-evi/guides/phone-calling) for t
```typescript -await client.empathicVoice.prompts.deletePromptVersion("af699d45-2985-42cc-91b9-af9e5da3bac5", 1); +await client.empathicVoice.configs.updateConfigName("1b60e1a0-cc59-424a-8d2c-189d354db3f3", { + name: "Updated Weather Assistant Config Name", +}); ```
@@ -1797,7 +1867,7 @@ await client.empathicVoice.prompts.deletePromptVersion("af699d45-2985-42cc-91b9-
-**id:** `string` — Identifier for a Prompt. Formatted as a UUID. +**id:** `string` — Identifier for a Config. Formatted as a UUID.
@@ -1805,21 +1875,15 @@ await client.empathicVoice.prompts.deletePromptVersion("af699d45-2985-42cc-91b9-
-**version:** `number` +**request:** `Hume.empathicVoice.PostedConfigName` -Version number for a Prompt. - -Prompts, Configs, Custom Voices, and Tools are versioned. This versioning system supports iterative development, allowing you to progressively refine prompts and revert to previous versions if needed. - -Version numbers are integer values representing different iterations of the Prompt. Each update to the Prompt increments its version number. - -
-
+ +
-**requestOptions:** `Prompts.RequestOptions` +**requestOptions:** `Configs.RequestOptions`
@@ -1830,7 +1894,7 @@ Version numbers are integer values representing different iterations of the Prom
-
client.empathicVoice.prompts.updatePromptDescription(id, version, { ...params }) -> Hume.ReturnPrompt | undefined +
client.empathicVoice.configs.getConfigVersion(id, version) -> Hume.ReturnConfig
@@ -1842,9 +1906,9 @@ Version numbers are integer values representing different iterations of the Prom
-Updates the description of a **Prompt**. +Fetches a specified version of a **Config**. -See our [prompting guide](/docs/speech-to-speech-evi/guides/phone-calling) for tips on crafting your system prompt. +For more details on configuration options and how to configure EVI, see our [configuration guide](/docs/speech-to-speech-evi/configuration).
@@ -1860,9 +1924,7 @@ See our [prompting guide](/docs/speech-to-speech-evi/guides/phone-calling) for t
```typescript -await client.empathicVoice.prompts.updatePromptDescription("af699d45-2985-42cc-91b9-af9e5da3bac5", 1, { - versionDescription: "This is an updated version_description.", -}); +await client.empathicVoice.configs.getConfigVersion("1b60e1a0-cc59-424a-8d2c-189d354db3f3", 1); ```
@@ -1878,7 +1940,7 @@ await client.empathicVoice.prompts.updatePromptDescription("af699d45-2985-42cc-9
-**id:** `string` — Identifier for a Prompt. Formatted as a UUID. +**id:** `string` — Identifier for a Config. Formatted as a UUID.
@@ -1888,19 +1950,11 @@ await client.empathicVoice.prompts.updatePromptDescription("af699d45-2985-42cc-9 **version:** `number` -Version number for a Prompt. - -Prompts, Configs, Custom Voices, and Tools are versioned. This versioning system supports iterative development, allowing you to progressively refine prompts and revert to previous versions if needed. - -Version numbers are integer values representing different iterations of the Prompt. Each update to the Prompt increments its version number. - - -
+Version number for a Config. -
-
+Configs, Prompts, Custom Voices, and Tools are versioned. This versioning system supports iterative development, allowing you to progressively refine configurations and revert to previous versions if needed. -**request:** `Hume.empathicVoice.PostedPromptVersionDescription` +Version numbers are integer values representing different iterations of the Config. Each update to the Config increments its version number.
@@ -1908,7 +1962,7 @@ Version numbers are integer values representing different iterations of the Prom
-**requestOptions:** `Prompts.RequestOptions` +**requestOptions:** `Configs.RequestOptions`
@@ -1919,9 +1973,7 @@ Version numbers are integer values representing different iterations of the Prom
-## EmpathicVoice Configs - -
client.empathicVoice.configs.listConfigs({ ...params }) -> core.Page +
client.empathicVoice.configs.deleteConfigVersion(id, version) -> void
@@ -1933,7 +1985,7 @@ Version numbers are integer values representing different iterations of the Prom
-Fetches a paginated list of **Configs**. +Deletes a specified version of a **Config**. For more details on configuration options and how to configure EVI, see our [configuration guide](/docs/speech-to-speech-evi/configuration). @@ -1951,22 +2003,7 @@ For more details on configuration options and how to configure EVI, see our [con
```typescript -const response = await client.empathicVoice.configs.listConfigs({ - pageNumber: 0, - pageSize: 1, -}); -for await (const item of response) { - console.log(item); -} - -// Or you can manually iterate page-by-page -const page = await client.empathicVoice.configs.listConfigs({ - pageNumber: 0, - pageSize: 1, -}); -while (page.hasNextPage()) { - page = page.getNextPage(); -} +await client.empathicVoice.configs.deleteConfigVersion("1b60e1a0-cc59-424a-8d2c-189d354db3f3", 1); ```
@@ -1982,7 +2019,21 @@ while (page.hasNextPage()) {
-**request:** `Hume.empathicVoice.ConfigsListConfigsRequest` +**id:** `string` — Identifier for a Config. Formatted as a UUID. + +
+
+ +
+
+ +**version:** `number` + +Version number for a Config. + +Configs, Prompts, Custom Voices, and Tools are versioned. This versioning system supports iterative development, allowing you to progressively refine configurations and revert to previous versions if needed. + +Version numbers are integer values representing different iterations of the Config. Each update to the Config increments its version number.
@@ -2001,7 +2052,7 @@ while (page.hasNextPage()) {
-
client.empathicVoice.configs.createConfig({ ...params }) -> Hume.ReturnConfig +
client.empathicVoice.configs.updateConfigDescription(id, version, { ...params }) -> Hume.ReturnConfig
@@ -2013,7 +2064,7 @@ while (page.hasNextPage()) {
-Creates a **Config** which can be applied to EVI. +Updates the description of a **Config**. For more details on configuration options and how to configure EVI, see our [configuration guide](/docs/speech-to-speech-evi/configuration). @@ -2031,36 +2082,8 @@ For more details on configuration options and how to configure EVI, see our [con
```typescript -await client.empathicVoice.configs.createConfig({ - name: "Weather Assistant Config", - prompt: { - id: "af699d45-2985-42cc-91b9-af9e5da3bac5", - version: 0, - }, - eviVersion: "3", - voice: { - provider: "HUME_AI", - name: "Ava Song", - }, - languageModel: { - modelProvider: "ANTHROPIC", - modelResource: "claude-3-7-sonnet-latest", - temperature: 1, - }, - eventMessages: { - onNewChat: { - enabled: false, - text: "", - }, - onInactivityTimeout: { - enabled: false, - text: "", - }, - onMaxDurationTimeout: { - enabled: false, - text: "", - }, - }, +await client.empathicVoice.configs.updateConfigDescription("1b60e1a0-cc59-424a-8d2c-189d354db3f3", 1, { + versionDescription: "This is an updated version_description.", }); ``` @@ -2077,7 +2100,29 @@ await client.empathicVoice.configs.createConfig({
-**request:** `Hume.empathicVoice.PostedConfig` +**id:** `string` — Identifier for a Config. Formatted as a UUID. + +
+
+ +
+
+ +**version:** `number` + +Version number for a Config. + +Configs, Prompts, Custom Voices, and Tools are versioned. This versioning system supports iterative development, allowing you to progressively refine configurations and revert to previous versions if needed. + +Version numbers are integer values representing different iterations of the Config. Each update to the Config increments its version number. + +
+
+ +
+
+ +**request:** `Hume.empathicVoice.PostedConfigVersionDescription`
@@ -2096,7 +2141,9 @@ await client.empathicVoice.configs.createConfig({
-
client.empathicVoice.configs.listConfigVersions(id, { ...params }) -> core.Page +## EmpathicVoice Chats + +
client.empathicVoice.chats.listChats({ ...params }) -> core.Page
@@ -2108,9 +2155,7 @@ await client.empathicVoice.configs.createConfig({
-Fetches a list of a **Config's** versions. - -For more details on configuration options and how to configure EVI, see our [configuration guide](/docs/speech-to-speech-evi/configuration). +Fetches a paginated list of **Chats**.
@@ -2126,13 +2171,21 @@ For more details on configuration options and how to configure EVI, see our [con
```typescript -const response = await client.empathicVoice.configs.listConfigVersions("1b60e1a0-cc59-424a-8d2c-189d354db3f3"); +const response = await client.empathicVoice.chats.listChats({ + pageNumber: 0, + pageSize: 1, + ascendingOrder: true, +}); for await (const item of response) { console.log(item); } // Or you can manually iterate page-by-page -const page = await client.empathicVoice.configs.listConfigVersions("1b60e1a0-cc59-424a-8d2c-189d354db3f3"); +const page = await client.empathicVoice.chats.listChats({ + pageNumber: 0, + pageSize: 1, + ascendingOrder: true, +}); while (page.hasNextPage()) { page = page.getNextPage(); } @@ -2151,15 +2204,7 @@ while (page.hasNextPage()) {
-**id:** `string` — Identifier for a Config. Formatted as a UUID. - -
-
- -
-
- -**request:** `Hume.empathicVoice.ConfigsListConfigVersionsRequest` +**request:** `Hume.empathicVoice.ChatsListChatsRequest`
@@ -2167,7 +2212,7 @@ while (page.hasNextPage()) {
-**requestOptions:** `Configs.RequestOptions` +**requestOptions:** `Chats.RequestOptions`
@@ -2178,7 +2223,7 @@ while (page.hasNextPage()) {
-
client.empathicVoice.configs.createConfigVersion(id, { ...params }) -> Hume.ReturnConfig +
client.empathicVoice.chats.listChatEvents(id, { ...params }) -> core.Page
@@ -2190,9 +2235,7 @@ while (page.hasNextPage()) {
-Updates a **Config** by creating a new version of the **Config**. - -For more details on configuration options and how to configure EVI, see our [configuration guide](/docs/speech-to-speech-evi/configuration). +Fetches a paginated list of **Chat** events.
@@ -2208,40 +2251,24 @@ For more details on configuration options and how to configure EVI, see our [con
```typescript -await client.empathicVoice.configs.createConfigVersion("1b60e1a0-cc59-424a-8d2c-189d354db3f3", { - versionDescription: "This is an updated version of the Weather Assistant Config.", - eviVersion: "3", - prompt: { - id: "af699d45-2985-42cc-91b9-af9e5da3bac5", - version: 0, - }, - voice: { - provider: "HUME_AI", - name: "Ava Song", - }, - languageModel: { - modelProvider: "ANTHROPIC", - modelResource: "claude-3-7-sonnet-latest", - temperature: 1, - }, - ellmModel: { - allowShortResponses: true, - }, - eventMessages: { - onNewChat: { - enabled: false, - text: "", - }, - onInactivityTimeout: { - enabled: false, - text: "", - }, - onMaxDurationTimeout: { - enabled: false, - text: "", - }, - }, +const response = await client.empathicVoice.chats.listChatEvents("470a49f6-1dec-4afe-8b61-035d3b2d63b0", { + pageNumber: 0, + pageSize: 3, + ascendingOrder: true, }); +for await (const item of response) { + console.log(item); +} + +// Or you can manually iterate page-by-page +const page = await client.empathicVoice.chats.listChatEvents("470a49f6-1dec-4afe-8b61-035d3b2d63b0", { + pageNumber: 0, + pageSize: 3, + ascendingOrder: true, +}); +while (page.hasNextPage()) { + page = page.getNextPage(); +} ```
@@ -2257,7 +2284,7 @@ await client.empathicVoice.configs.createConfigVersion("1b60e1a0-cc59-424a-8d2c-
-**id:** `string` — Identifier for a Config. Formatted as a UUID. +**id:** `string` — Identifier for a Chat. Formatted as a UUID.
@@ -2265,7 +2292,7 @@ await client.empathicVoice.configs.createConfigVersion("1b60e1a0-cc59-424a-8d2c-
-**request:** `Hume.empathicVoice.PostedConfigVersion` +**request:** `Hume.empathicVoice.ChatsListChatEventsRequest`
@@ -2273,7 +2300,7 @@ await client.empathicVoice.configs.createConfigVersion("1b60e1a0-cc59-424a-8d2c-
-**requestOptions:** `Configs.RequestOptions` +**requestOptions:** `Chats.RequestOptions`
@@ -2284,7 +2311,7 @@ await client.empathicVoice.configs.createConfigVersion("1b60e1a0-cc59-424a-8d2c-
-
client.empathicVoice.configs.deleteConfig(id) -> void +
client.empathicVoice.chats.getAudio(id) -> Hume.ReturnChatAudioReconstruction
@@ -2296,9 +2323,7 @@ await client.empathicVoice.configs.createConfigVersion("1b60e1a0-cc59-424a-8d2c-
-Deletes a **Config** and its versions. - -For more details on configuration options and how to configure EVI, see our [configuration guide](/docs/speech-to-speech-evi/configuration). +Fetches the audio of a previous **Chat**. For more details, see our guide on audio reconstruction [here](/docs/speech-to-speech-evi/faq#can-i-access-the-audio-of-previous-conversations-with-evi).
@@ -2314,7 +2339,7 @@ For more details on configuration options and how to configure EVI, see our [con
```typescript -await client.empathicVoice.configs.deleteConfig("1b60e1a0-cc59-424a-8d2c-189d354db3f3"); +await client.empathicVoice.chats.getAudio("470a49f6-1dec-4afe-8b61-035d3b2d63b0"); ```
@@ -2330,7 +2355,7 @@ await client.empathicVoice.configs.deleteConfig("1b60e1a0-cc59-424a-8d2c-189d354
-**id:** `string` — Identifier for a Config. Formatted as a UUID. +**id:** `string` — Identifier for a chat. Formatted as a UUID.
@@ -2338,7 +2363,7 @@ await client.empathicVoice.configs.deleteConfig("1b60e1a0-cc59-424a-8d2c-189d354
-**requestOptions:** `Configs.RequestOptions` +**requestOptions:** `Chats.RequestOptions`
@@ -2349,7 +2374,9 @@ await client.empathicVoice.configs.deleteConfig("1b60e1a0-cc59-424a-8d2c-189d354
-
client.empathicVoice.configs.updateConfigName(id, { ...params }) -> string +## EmpathicVoice ChatGroups + +
client.empathicVoice.chatGroups.listChatGroups({ ...params }) -> core.Page
@@ -2361,9 +2388,7 @@ await client.empathicVoice.configs.deleteConfig("1b60e1a0-cc59-424a-8d2c-189d354
-Updates the name of a **Config**. - -For more details on configuration options and how to configure EVI, see our [configuration guide](/docs/speech-to-speech-evi/configuration). +Fetches a paginated list of **Chat Groups**.
@@ -2379,9 +2404,26 @@ For more details on configuration options and how to configure EVI, see our [con
```typescript -await client.empathicVoice.configs.updateConfigName("1b60e1a0-cc59-424a-8d2c-189d354db3f3", { - name: "Updated Weather Assistant Config Name", +const response = await client.empathicVoice.chatGroups.listChatGroups({ + pageNumber: 0, + pageSize: 1, + ascendingOrder: true, + configId: "1b60e1a0-cc59-424a-8d2c-189d354db3f3", }); +for await (const item of response) { + console.log(item); +} + +// Or you can manually iterate page-by-page +const page = await client.empathicVoice.chatGroups.listChatGroups({ + pageNumber: 0, + pageSize: 1, + ascendingOrder: true, + configId: "1b60e1a0-cc59-424a-8d2c-189d354db3f3", +}); +while (page.hasNextPage()) { + page = page.getNextPage(); +} ```
@@ -2397,15 +2439,7 @@ await client.empathicVoice.configs.updateConfigName("1b60e1a0-cc59-424a-8d2c-189
-**id:** `string` — Identifier for a Config. Formatted as a UUID. - -
-
- -
-
- -**request:** `Hume.empathicVoice.PostedConfigName` +**request:** `Hume.empathicVoice.ChatGroupsListChatGroupsRequest`
@@ -2413,7 +2447,7 @@ await client.empathicVoice.configs.updateConfigName("1b60e1a0-cc59-424a-8d2c-189
-**requestOptions:** `Configs.RequestOptions` +**requestOptions:** `ChatGroups.RequestOptions`
@@ -2424,7 +2458,7 @@ await client.empathicVoice.configs.updateConfigName("1b60e1a0-cc59-424a-8d2c-189
-
client.empathicVoice.configs.getConfigVersion(id, version) -> Hume.ReturnConfig +
client.empathicVoice.chatGroups.getChatGroup(id, { ...params }) -> Hume.ReturnChatGroupPagedChats
@@ -2436,9 +2470,7 @@ await client.empathicVoice.configs.updateConfigName("1b60e1a0-cc59-424a-8d2c-189
-Fetches a specified version of a **Config**. - -For more details on configuration options and how to configure EVI, see our [configuration guide](/docs/speech-to-speech-evi/configuration). +Fetches a **ChatGroup** by ID, including a paginated list of **Chats** associated with the **ChatGroup**.
@@ -2454,7 +2486,11 @@ For more details on configuration options and how to configure EVI, see our [con
```typescript -await client.empathicVoice.configs.getConfigVersion("1b60e1a0-cc59-424a-8d2c-189d354db3f3", 1); +await client.empathicVoice.chatGroups.getChatGroup("697056f0-6c7e-487d-9bd8-9c19df79f05f", { + pageNumber: 0, + pageSize: 1, + ascendingOrder: true, +}); ```
@@ -2470,7 +2506,7 @@ await client.empathicVoice.configs.getConfigVersion("1b60e1a0-cc59-424a-8d2c-189
-**id:** `string` — Identifier for a Config. Formatted as a UUID. +**id:** `string` — Identifier for a Chat Group. Formatted as a UUID.
@@ -2478,13 +2514,7 @@ await client.empathicVoice.configs.getConfigVersion("1b60e1a0-cc59-424a-8d2c-189
-**version:** `number` - -Version number for a Config. - -Configs, Prompts, Custom Voices, and Tools are versioned. This versioning system supports iterative development, allowing you to progressively refine configurations and revert to previous versions if needed. - -Version numbers are integer values representing different iterations of the Config. Each update to the Config increments its version number. +**request:** `Hume.empathicVoice.ChatGroupsGetChatGroupRequest`
@@ -2492,7 +2522,7 @@ Version numbers are integer values representing different iterations of the Conf
-**requestOptions:** `Configs.RequestOptions` +**requestOptions:** `ChatGroups.RequestOptions`
@@ -2503,7 +2533,7 @@ Version numbers are integer values representing different iterations of the Conf
-
client.empathicVoice.configs.deleteConfigVersion(id, version) -> void +
client.empathicVoice.chatGroups.listChatGroupEvents(id, { ...params }) -> core.Page
@@ -2515,9 +2545,7 @@ Version numbers are integer values representing different iterations of the Conf
-Deletes a specified version of a **Config**. - -For more details on configuration options and how to configure EVI, see our [configuration guide](/docs/speech-to-speech-evi/configuration). +Fetches a paginated list of **Chat** events associated with a **Chat Group**.
@@ -2533,7 +2561,24 @@ For more details on configuration options and how to configure EVI, see our [con
```typescript -await client.empathicVoice.configs.deleteConfigVersion("1b60e1a0-cc59-424a-8d2c-189d354db3f3", 1); +const response = await client.empathicVoice.chatGroups.listChatGroupEvents("697056f0-6c7e-487d-9bd8-9c19df79f05f", { + pageNumber: 0, + pageSize: 3, + ascendingOrder: true, +}); +for await (const item of response) { + console.log(item); +} + +// Or you can manually iterate page-by-page +const page = await client.empathicVoice.chatGroups.listChatGroupEvents("697056f0-6c7e-487d-9bd8-9c19df79f05f", { + pageNumber: 0, + pageSize: 3, + ascendingOrder: true, +}); +while (page.hasNextPage()) { + page = page.getNextPage(); +} ```
@@ -2549,7 +2594,7 @@ await client.empathicVoice.configs.deleteConfigVersion("1b60e1a0-cc59-424a-8d2c-
-**id:** `string` — Identifier for a Config. Formatted as a UUID. +**id:** `string` — Identifier for a Chat Group. Formatted as a UUID.
@@ -2557,13 +2602,7 @@ await client.empathicVoice.configs.deleteConfigVersion("1b60e1a0-cc59-424a-8d2c-
-**version:** `number` - -Version number for a Config. - -Configs, Prompts, Custom Voices, and Tools are versioned. This versioning system supports iterative development, allowing you to progressively refine configurations and revert to previous versions if needed. - -Version numbers are integer values representing different iterations of the Config. Each update to the Config increments its version number. +**request:** `Hume.empathicVoice.ChatGroupsListChatGroupEventsRequest`
@@ -2571,7 +2610,7 @@ Version numbers are integer values representing different iterations of the Conf
-**requestOptions:** `Configs.RequestOptions` +**requestOptions:** `ChatGroups.RequestOptions`
@@ -2582,7 +2621,7 @@ Version numbers are integer values representing different iterations of the Conf
-
client.empathicVoice.configs.updateConfigDescription(id, version, { ...params }) -> Hume.ReturnConfig +
client.empathicVoice.chatGroups.getAudio(id, { ...params }) -> Hume.ReturnChatGroupPagedAudioReconstructions
@@ -2594,9 +2633,7 @@ Version numbers are integer values representing different iterations of the Conf
-Updates the description of a **Config**. - -For more details on configuration options and how to configure EVI, see our [configuration guide](/docs/speech-to-speech-evi/configuration). +Fetches a paginated list of audio for each **Chat** within the specified **Chat Group**. For more details, see our guide on audio reconstruction [here](/docs/speech-to-speech-evi/faq#can-i-access-the-audio-of-previous-conversations-with-evi).
@@ -2612,8 +2649,10 @@ For more details on configuration options and how to configure EVI, see our [con
```typescript -await client.empathicVoice.configs.updateConfigDescription("1b60e1a0-cc59-424a-8d2c-189d354db3f3", 1, { - versionDescription: "This is an updated version_description.", +await client.empathicVoice.chatGroups.getAudio("369846cf-6ad5-404d-905e-a8acb5cdfc78", { + pageNumber: 0, + pageSize: 10, + ascendingOrder: true, }); ``` @@ -2630,21 +2669,7 @@ await client.empathicVoice.configs.updateConfigDescription("1b60e1a0-cc59-424a-8
-**id:** `string` — Identifier for a Config. Formatted as a UUID. - -
-
- -
-
- -**version:** `number` - -Version number for a Config. - -Configs, Prompts, Custom Voices, and Tools are versioned. This versioning system supports iterative development, allowing you to progressively refine configurations and revert to previous versions if needed. - -Version numbers are integer values representing different iterations of the Config. Each update to the Config increments its version number. +**id:** `string` — Identifier for a Chat Group. Formatted as a UUID.
@@ -2652,7 +2677,7 @@ Version numbers are integer values representing different iterations of the Conf
-**request:** `Hume.empathicVoice.PostedConfigVersionDescription` +**request:** `Hume.empathicVoice.ChatGroupsGetAudioRequest`
@@ -2660,7 +2685,7 @@ Version numbers are integer values representing different iterations of the Conf
-**requestOptions:** `Configs.RequestOptions` +**requestOptions:** `ChatGroups.RequestOptions`
@@ -2671,9 +2696,9 @@ Version numbers are integer values representing different iterations of the Conf
-## EmpathicVoice Chats +## Tts -
client.empathicVoice.chats.listChats({ ...params }) -> core.Page +
client.tts.synthesizeJson({ ...params }) -> Hume.ReturnTts
@@ -2685,7 +2710,9 @@ Version numbers are integer values representing different iterations of the Conf
-Fetches a paginated list of **Chats**. +Synthesizes one or more input texts into speech using the specified voice. If no voice is provided, a novel voice will be generated dynamically. Optionally, additional context can be included to influence the speech's style and prosody. + +The response includes the base64-encoded audio and metadata in JSON format.
@@ -2701,24 +2728,28 @@ Fetches a paginated list of **Chats**.
```typescript -const response = await client.empathicVoice.chats.listChats({ - pageNumber: 0, - pageSize: 1, - ascendingOrder: true, -}); -for await (const item of response) { - console.log(item); -} - -// Or you can manually iterate page-by-page -const page = await client.empathicVoice.chats.listChats({ - pageNumber: 0, - pageSize: 1, - ascendingOrder: true, +await client.tts.synthesizeJson({ + context: { + utterances: [ + { + text: "How can people see beauty so differently?", + description: + "A curious student with a clear and respectful tone, seeking clarification on Hume's ideas with a straightforward question.", + }, + ], + }, + format: { + type: "mp3", + }, + numGenerations: 1, + utterances: [ + { + text: "Beauty is no quality in things themselves: It exists merely in the mind which contemplates them.", + description: + "Middle-aged masculine voice with a clear, rhythmic Scots lilt, rounded vowels, and a warm, steady tone with an articulate, academic quality.", + }, + ], }); -while (page.hasNextPage()) { - page = page.getNextPage(); -} ```
@@ -2734,7 +2765,7 @@ while (page.hasNextPage()) {
-**request:** `Hume.empathicVoice.ChatsListChatsRequest` +**request:** `Hume.PostedTts`
@@ -2742,7 +2773,7 @@ while (page.hasNextPage()) {
-**requestOptions:** `Chats.RequestOptions` +**requestOptions:** `Tts.RequestOptions`
@@ -2753,7 +2784,7 @@ while (page.hasNextPage()) {
-
client.empathicVoice.chats.listChatEvents(id, { ...params }) -> core.Page +
client.tts.synthesizeFile({ ...params }) -> stream.Readable
@@ -2765,7 +2796,9 @@ while (page.hasNextPage()) {
-Fetches a paginated list of **Chat** events. +Synthesizes one or more input texts into speech using the specified voice. If no voice is provided, a novel voice will be generated dynamically. Optionally, additional context can be included to influence the speech's style and prosody. + +The response contains the generated audio file in the requested format.
@@ -2781,24 +2814,22 @@ Fetches a paginated list of **Chat** events.
```typescript -const response = await client.empathicVoice.chats.listChatEvents("470a49f6-1dec-4afe-8b61-035d3b2d63b0", { - pageNumber: 0, - pageSize: 3, - ascendingOrder: true, -}); -for await (const item of response) { - console.log(item); -} - -// Or you can manually iterate page-by-page -const page = await client.empathicVoice.chats.listChatEvents("470a49f6-1dec-4afe-8b61-035d3b2d63b0", { - pageNumber: 0, - pageSize: 3, - ascendingOrder: true, +await client.tts.synthesizeFile({ + context: { + generationId: "09ad914d-8e7f-40f8-a279-e34f07f7dab2", + }, + format: { + type: "mp3", + }, + numGenerations: 1, + utterances: [ + { + text: "Beauty is no quality in things themselves: It exists merely in the mind which contemplates them.", + description: + "Middle-aged masculine voice with a clear, rhythmic Scots lilt, rounded vowels, and a warm, steady tone with an articulate, academic quality.", + }, + ], }); -while (page.hasNextPage()) { - page = page.getNextPage(); -} ```
@@ -2814,15 +2845,7 @@ while (page.hasNextPage()) {
-**id:** `string` — Identifier for a Chat. Formatted as a UUID. - -
-
- -
-
- -**request:** `Hume.empathicVoice.ChatsListChatEventsRequest` +**request:** `Hume.PostedTts`
@@ -2830,7 +2853,7 @@ while (page.hasNextPage()) {
-**requestOptions:** `Chats.RequestOptions` +**requestOptions:** `Tts.RequestOptions`
@@ -2841,7 +2864,7 @@ while (page.hasNextPage()) {
-
client.empathicVoice.chats.getAudio(id) -> Hume.ReturnChatAudioReconstruction +
client.tts.synthesizeFileStreaming({ ...params }) -> stream.Readable
@@ -2853,7 +2876,7 @@ while (page.hasNextPage()) {
-Fetches the audio of a previous **Chat**. For more details, see our guide on audio reconstruction [here](/docs/speech-to-speech-evi/faq#can-i-access-the-audio-of-previous-conversations-with-evi). +Streams synthesized speech using the specified voice. If no voice is provided, a novel voice will be generated dynamically. Optionally, additional context can be included to influence the speech's style and prosody.
@@ -2869,7 +2892,17 @@ Fetches the audio of a previous **Chat**. For more details, see our guide on aud
```typescript -await client.empathicVoice.chats.getAudio("470a49f6-1dec-4afe-8b61-035d3b2d63b0"); +await client.tts.synthesizeFileStreaming({ + utterances: [ + { + text: "Beauty is no quality in things themselves: It exists merely in the mind which contemplates them.", + voice: { + name: "Male English Actor", + provider: "HUME_AI", + }, + }, + ], +}); ```
@@ -2885,7 +2918,7 @@ await client.empathicVoice.chats.getAudio("470a49f6-1dec-4afe-8b61-035d3b2d63b0"
-**id:** `string` — Identifier for a chat. Formatted as a UUID. +**request:** `Hume.PostedTts`
@@ -2893,7 +2926,7 @@ await client.empathicVoice.chats.getAudio("470a49f6-1dec-4afe-8b61-035d3b2d63b0"
-**requestOptions:** `Chats.RequestOptions` +**requestOptions:** `Tts.RequestOptions`
@@ -2904,9 +2937,7 @@ await client.empathicVoice.chats.getAudio("470a49f6-1dec-4afe-8b61-035d3b2d63b0"
-## EmpathicVoice ChatGroups - -
client.empathicVoice.chatGroups.listChatGroups({ ...params }) -> core.Page +
client.tts.synthesizeJsonStreaming({ ...params }) -> core.Stream
@@ -2918,7 +2949,9 @@ await client.empathicVoice.chats.getAudio("470a49f6-1dec-4afe-8b61-035d3b2d63b0"
-Fetches a paginated list of **Chat Groups**. +Streams synthesized speech using the specified voice. If no voice is provided, a novel voice will be generated dynamically. Optionally, additional context can be included to influence the speech's style and prosody. + +The response is a stream of JSON objects including audio encoded in base64.
@@ -2934,26 +2967,20 @@ Fetches a paginated list of **Chat Groups**.
```typescript -const response = await client.empathicVoice.chatGroups.listChatGroups({ - pageNumber: 0, - pageSize: 1, - ascendingOrder: true, - configId: "1b60e1a0-cc59-424a-8d2c-189d354db3f3", +const response = await client.tts.synthesizeJsonStreaming({ + utterances: [ + { + text: "Beauty is no quality in things themselves: It exists merely in the mind which contemplates them.", + voice: { + name: "Male English Actor", + provider: "HUME_AI", + }, + }, + ], }); for await (const item of response) { console.log(item); } - -// Or you can manually iterate page-by-page -const page = await client.empathicVoice.chatGroups.listChatGroups({ - pageNumber: 0, - pageSize: 1, - ascendingOrder: true, - configId: "1b60e1a0-cc59-424a-8d2c-189d354db3f3", -}); -while (page.hasNextPage()) { - page = page.getNextPage(); -} ```
@@ -2969,7 +2996,7 @@ while (page.hasNextPage()) {
-**request:** `Hume.empathicVoice.ChatGroupsListChatGroupsRequest` +**request:** `Hume.PostedTts`
@@ -2977,7 +3004,7 @@ while (page.hasNextPage()) {
-**requestOptions:** `ChatGroups.RequestOptions` +**requestOptions:** `Tts.RequestOptions`
@@ -2988,7 +3015,9 @@ while (page.hasNextPage()) {
-
client.empathicVoice.chatGroups.getChatGroup(id, { ...params }) -> Hume.ReturnChatGroupPagedChats +## Tts Voices + +
client.tts.voices.list({ ...params }) -> core.Page
@@ -3000,7 +3029,7 @@ while (page.hasNextPage()) {
-Fetches a **ChatGroup** by ID, including a paginated list of **Chats** associated with the **ChatGroup**. +Lists voices you have saved in your account, or voices from the [Voice Library](https://platform.hume.ai/tts/voice-library).
@@ -3016,11 +3045,20 @@ Fetches a **ChatGroup** by ID, including a paginated list of **Chats** associate
```typescript -await client.empathicVoice.chatGroups.getChatGroup("697056f0-6c7e-487d-9bd8-9c19df79f05f", { - pageNumber: 0, - pageSize: 1, - ascendingOrder: true, +const response = await client.tts.voices.list({ + provider: "CUSTOM_VOICE", +}); +for await (const item of response) { + console.log(item); +} + +// Or you can manually iterate page-by-page +const page = await client.tts.voices.list({ + provider: "CUSTOM_VOICE", }); +while (page.hasNextPage()) { + page = page.getNextPage(); +} ```
@@ -3036,15 +3074,7 @@ await client.empathicVoice.chatGroups.getChatGroup("697056f0-6c7e-487d-9bd8-9c19
-**id:** `string` — Identifier for a Chat Group. Formatted as a UUID. - -
-
- -
-
- -**request:** `Hume.empathicVoice.ChatGroupsGetChatGroupRequest` +**request:** `Hume.tts.VoicesListRequest`
@@ -3052,7 +3082,7 @@ await client.empathicVoice.chatGroups.getChatGroup("697056f0-6c7e-487d-9bd8-9c19
-**requestOptions:** `ChatGroups.RequestOptions` +**requestOptions:** `Voices.RequestOptions`
@@ -3063,7 +3093,7 @@ await client.empathicVoice.chatGroups.getChatGroup("697056f0-6c7e-487d-9bd8-9c19
-
client.empathicVoice.chatGroups.listChatGroupEvents(id, { ...params }) -> core.Page +
client.tts.voices.create({ ...params }) -> Hume.ReturnVoice
@@ -3075,7 +3105,9 @@ await client.empathicVoice.chatGroups.getChatGroup("697056f0-6c7e-487d-9bd8-9c19
-Fetches a paginated list of **Chat** events associated with a **Chat Group**. +Saves a new custom voice to your account using the specified TTS generation ID. + +Once saved, this voice can be reused in subsequent TTS requests, ensuring consistent speech style and prosody. For more details on voice creation, see the [Voices Guide](/docs/text-to-speech-tts/voices).
@@ -3091,24 +3123,10 @@ Fetches a paginated list of **Chat** events associated with a **Chat Group**.
```typescript -const response = await client.empathicVoice.chatGroups.listChatGroupEvents("697056f0-6c7e-487d-9bd8-9c19df79f05f", { - pageNumber: 0, - pageSize: 3, - ascendingOrder: true, -}); -for await (const item of response) { - console.log(item); -} - -// Or you can manually iterate page-by-page -const page = await client.empathicVoice.chatGroups.listChatGroupEvents("697056f0-6c7e-487d-9bd8-9c19df79f05f", { - pageNumber: 0, - pageSize: 3, - ascendingOrder: true, +await client.tts.voices.create({ + generationId: "795c949a-1510-4a80-9646-7d0863b023ab", + name: "David Hume", }); -while (page.hasNextPage()) { - page = page.getNextPage(); -} ```
@@ -3124,15 +3142,7 @@ while (page.hasNextPage()) {
-**id:** `string` — Identifier for a Chat Group. Formatted as a UUID. - -
-
- -
-
- -**request:** `Hume.empathicVoice.ChatGroupsListChatGroupEventsRequest` +**request:** `Hume.tts.PostedVoice`
@@ -3140,7 +3150,7 @@ while (page.hasNextPage()) {
-**requestOptions:** `ChatGroups.RequestOptions` +**requestOptions:** `Voices.RequestOptions`
@@ -3151,7 +3161,7 @@ while (page.hasNextPage()) {
-
client.empathicVoice.chatGroups.getAudio(id, { ...params }) -> Hume.ReturnChatGroupPagedAudioReconstructions +
client.tts.voices.delete({ ...params }) -> void
@@ -3163,7 +3173,7 @@ while (page.hasNextPage()) {
-Fetches a paginated list of audio for each **Chat** within the specified **Chat Group**. For more details, see our guide on audio reconstruction [here](/docs/speech-to-speech-evi/faq#can-i-access-the-audio-of-previous-conversations-with-evi). +Deletes a previously generated custom voice.
@@ -3179,10 +3189,8 @@ Fetches a paginated list of audio for each **Chat** within the specified **Chat
```typescript -await client.empathicVoice.chatGroups.getAudio("369846cf-6ad5-404d-905e-a8acb5cdfc78", { - pageNumber: 0, - pageSize: 10, - ascendingOrder: true, +await client.tts.voices.delete({ + name: "David Hume", }); ``` @@ -3199,15 +3207,7 @@ await client.empathicVoice.chatGroups.getAudio("369846cf-6ad5-404d-905e-a8acb5cd
-**id:** `string` — Identifier for a Chat Group. Formatted as a UUID. - -
-
- -
-
- -**request:** `Hume.empathicVoice.ChatGroupsGetAudioRequest` +**request:** `Hume.tts.VoicesDeleteRequest`
@@ -3215,7 +3215,7 @@ await client.empathicVoice.chatGroups.getAudio("369846cf-6ad5-404d-905e-a8acb5cd
-**requestOptions:** `ChatGroups.RequestOptions` +**requestOptions:** `Voices.RequestOptions`
diff --git a/src/api/resources/index.ts b/src/api/resources/index.ts index 2e0a2bb8..8a685273 100644 --- a/src/api/resources/index.ts +++ b/src/api/resources/index.ts @@ -1,3 +1,3 @@ -export * as tts from "./tts"; export * as empathicVoice from "./empathicVoice"; +export * as tts from "./tts"; export * as expressionMeasurement from "./expressionMeasurement"; diff --git a/src/api/resources/tts/index.ts b/src/api/resources/tts/index.ts index 13a85e78..d5c609c4 100644 --- a/src/api/resources/tts/index.ts +++ b/src/api/resources/tts/index.ts @@ -1,4 +1,4 @@ +export * from "./resources"; export * from "./types"; export * from "./errors"; export * from "./client"; -export * from "./resources"; diff --git a/src/api/resources/tts/resources/index.ts b/src/api/resources/tts/resources/index.ts index 71c5d9e7..94b67359 100644 --- a/src/api/resources/tts/resources/index.ts +++ b/src/api/resources/tts/resources/index.ts @@ -1,2 +1,4 @@ +export * as streamInput from "./streamInput"; +export * from "./streamInput/types"; export * as voices from "./voices"; export * from "./voices/client/requests"; diff --git a/src/api/resources/tts/resources/streamInput/index.ts b/src/api/resources/tts/resources/streamInput/index.ts new file mode 100644 index 00000000..eea524d6 --- /dev/null +++ b/src/api/resources/tts/resources/streamInput/index.ts @@ -0,0 +1 @@ +export * from "./types"; diff --git a/src/api/resources/tts/resources/streamInput/types/SubscribeEvent.ts b/src/api/resources/tts/resources/streamInput/types/SubscribeEvent.ts new file mode 100644 index 00000000..e6fd82b1 --- /dev/null +++ b/src/api/resources/tts/resources/streamInput/types/SubscribeEvent.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Hume from "../../../../../index"; + +export type SubscribeEvent = Hume.tts.TimestampMessage | Hume.tts.SnippetAudioChunk; diff --git a/src/api/resources/tts/resources/streamInput/types/index.ts b/src/api/resources/tts/resources/streamInput/types/index.ts new file mode 100644 index 00000000..c7ccedaf --- /dev/null +++ b/src/api/resources/tts/resources/streamInput/types/index.ts @@ -0,0 +1 @@ +export * from "./SubscribeEvent"; diff --git a/src/api/resources/tts/types/Format.ts b/src/api/resources/tts/types/Format.ts index 51ee5d86..14945be0 100644 --- a/src/api/resources/tts/types/Format.ts +++ b/src/api/resources/tts/types/Format.ts @@ -7,18 +7,4 @@ import * as Hume from "../../../index"; /** * Specifies the output audio file format. */ -export type Format = Hume.tts.Format.Mp3 | Hume.tts.Format.Pcm | Hume.tts.Format.Wav; - -export namespace Format { - export interface Mp3 extends Hume.tts.FormatMp3 { - type: "mp3"; - } - - export interface Pcm extends Hume.tts.FormatPcm { - type: "pcm"; - } - - export interface Wav extends Hume.tts.FormatWav { - type: "wav"; - } -} +export type Format = Hume.tts.FormatMp3 | Hume.tts.FormatPcm | Hume.tts.FormatWav; diff --git a/src/api/resources/tts/types/FormatMp3.ts b/src/api/resources/tts/types/FormatMp3.ts index fe4b6823..701efff5 100644 --- a/src/api/resources/tts/types/FormatMp3.ts +++ b/src/api/resources/tts/types/FormatMp3.ts @@ -2,4 +2,6 @@ * This file was auto-generated by Fern from our API Definition. */ -export interface FormatMp3 {} +export interface FormatMp3 { + type: "mp3"; +} diff --git a/src/api/resources/tts/types/FormatPcm.ts b/src/api/resources/tts/types/FormatPcm.ts index 62719ccb..835fb0c8 100644 --- a/src/api/resources/tts/types/FormatPcm.ts +++ b/src/api/resources/tts/types/FormatPcm.ts @@ -2,4 +2,6 @@ * This file was auto-generated by Fern from our API Definition. */ -export interface FormatPcm {} +export interface FormatPcm { + type: "pcm"; +} diff --git a/src/api/resources/tts/types/FormatWav.ts b/src/api/resources/tts/types/FormatWav.ts index 34f94b7f..f9bbd00e 100644 --- a/src/api/resources/tts/types/FormatWav.ts +++ b/src/api/resources/tts/types/FormatWav.ts @@ -2,4 +2,6 @@ * This file was auto-generated by Fern from our API Definition. */ -export interface FormatWav {} +export interface FormatWav { + type: "wav"; +} diff --git a/src/api/resources/tts/types/SnippetAudioChunk.ts b/src/api/resources/tts/types/SnippetAudioChunk.ts index f7a7e70f..cc516be5 100644 --- a/src/api/resources/tts/types/SnippetAudioChunk.ts +++ b/src/api/resources/tts/types/SnippetAudioChunk.ts @@ -27,6 +27,7 @@ export interface SnippetAudioChunk { text: string; /** The transcribed text of the generated audio of the parent snippet that this chunk corresponds to. It is only present if `instant_mode` is set to `false`. */ transcribedText?: string; + type: "audio"; /** The index of the utterance in the request that the parent snippet of this chunk corresponds to. */ utteranceIndex?: number; } diff --git a/src/api/resources/tts/types/TimestampMessage.ts b/src/api/resources/tts/types/TimestampMessage.ts index bae5af66..93b2276a 100644 --- a/src/api/resources/tts/types/TimestampMessage.ts +++ b/src/api/resources/tts/types/TimestampMessage.ts @@ -16,4 +16,5 @@ export interface TimestampMessage { snippetId: string; /** A word or phoneme level timestamp for the generated audio. */ timestamp: Hume.tts.Timestamp; + type: "timestamp"; } diff --git a/src/api/resources/tts/types/TtsOutput.ts b/src/api/resources/tts/types/TtsOutput.ts index 8e0af785..e8a517e5 100644 --- a/src/api/resources/tts/types/TtsOutput.ts +++ b/src/api/resources/tts/types/TtsOutput.ts @@ -4,14 +4,4 @@ import * as Hume from "../../../index"; -export type TtsOutput = Hume.tts.TtsOutput.Timestamp | Hume.tts.TtsOutput.Audio; - -export namespace TtsOutput { - export interface Timestamp extends Hume.tts.TimestampMessage { - type: "timestamp"; - } - - export interface Audio extends Hume.tts.SnippetAudioChunk { - type: "audio"; - } -} +export type TtsOutput = Hume.tts.TimestampMessage | Hume.tts.SnippetAudioChunk; diff --git a/src/serialization/resources/index.ts b/src/serialization/resources/index.ts index 2e0a2bb8..8a685273 100644 --- a/src/serialization/resources/index.ts +++ b/src/serialization/resources/index.ts @@ -1,3 +1,3 @@ -export * as tts from "./tts"; export * as empathicVoice from "./empathicVoice"; +export * as tts from "./tts"; export * as expressionMeasurement from "./expressionMeasurement"; diff --git a/src/serialization/resources/tts/index.ts b/src/serialization/resources/tts/index.ts index 3ce0a3e3..3e15e290 100644 --- a/src/serialization/resources/tts/index.ts +++ b/src/serialization/resources/tts/index.ts @@ -1,2 +1,2 @@ -export * from "./types"; export * from "./resources"; +export * from "./types"; diff --git a/src/serialization/resources/tts/resources/index.ts b/src/serialization/resources/tts/resources/index.ts index 71c5d9e7..94b67359 100644 --- a/src/serialization/resources/tts/resources/index.ts +++ b/src/serialization/resources/tts/resources/index.ts @@ -1,2 +1,4 @@ +export * as streamInput from "./streamInput"; +export * from "./streamInput/types"; export * as voices from "./voices"; export * from "./voices/client/requests"; diff --git a/src/serialization/resources/tts/resources/streamInput/index.ts b/src/serialization/resources/tts/resources/streamInput/index.ts new file mode 100644 index 00000000..eea524d6 --- /dev/null +++ b/src/serialization/resources/tts/resources/streamInput/index.ts @@ -0,0 +1 @@ +export * from "./types"; diff --git a/src/serialization/resources/tts/resources/streamInput/types/SubscribeEvent.ts b/src/serialization/resources/tts/resources/streamInput/types/SubscribeEvent.ts new file mode 100644 index 00000000..e57409ea --- /dev/null +++ b/src/serialization/resources/tts/resources/streamInput/types/SubscribeEvent.ts @@ -0,0 +1,16 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../../../index"; +import * as Hume from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import { TimestampMessage } from "../../../types/TimestampMessage"; +import { SnippetAudioChunk } from "../../../types/SnippetAudioChunk"; + +export const SubscribeEvent: core.serialization.Schema = + core.serialization.undiscriminatedUnion([TimestampMessage, SnippetAudioChunk]); + +export declare namespace SubscribeEvent { + export type Raw = TimestampMessage.Raw | SnippetAudioChunk.Raw; +} diff --git a/src/serialization/resources/tts/resources/streamInput/types/index.ts b/src/serialization/resources/tts/resources/streamInput/types/index.ts new file mode 100644 index 00000000..c7ccedaf --- /dev/null +++ b/src/serialization/resources/tts/resources/streamInput/types/index.ts @@ -0,0 +1 @@ +export * from "./SubscribeEvent"; diff --git a/src/serialization/resources/tts/types/Format.ts b/src/serialization/resources/tts/types/Format.ts index 8db14d52..f312e949 100644 --- a/src/serialization/resources/tts/types/Format.ts +++ b/src/serialization/resources/tts/types/Format.ts @@ -9,29 +9,9 @@ import { FormatMp3 } from "./FormatMp3"; import { FormatPcm } from "./FormatPcm"; import { FormatWav } from "./FormatWav"; -export const Format: core.serialization.Schema = core.serialization - .union("type", { - mp3: FormatMp3, - pcm: FormatPcm, - wav: FormatWav, - }) - .transform({ - transform: (value) => value, - untransform: (value) => value, - }); +export const Format: core.serialization.Schema = + core.serialization.undiscriminatedUnion([FormatMp3, FormatPcm, FormatWav]); export declare namespace Format { - export type Raw = Format.Mp3 | Format.Pcm | Format.Wav; - - export interface Mp3 extends FormatMp3.Raw { - type: "mp3"; - } - - export interface Pcm extends FormatPcm.Raw { - type: "pcm"; - } - - export interface Wav extends FormatWav.Raw { - type: "wav"; - } + export type Raw = FormatMp3.Raw | FormatPcm.Raw | FormatWav.Raw; } diff --git a/src/serialization/resources/tts/types/FormatMp3.ts b/src/serialization/resources/tts/types/FormatMp3.ts index 412483e4..63b10cd2 100644 --- a/src/serialization/resources/tts/types/FormatMp3.ts +++ b/src/serialization/resources/tts/types/FormatMp3.ts @@ -7,8 +7,12 @@ import * as Hume from "../../../../api/index"; import * as core from "../../../../core"; export const FormatMp3: core.serialization.ObjectSchema = - core.serialization.object({}); + core.serialization.object({ + type: core.serialization.stringLiteral("mp3"), + }); export declare namespace FormatMp3 { - export interface Raw {} + export interface Raw { + type: "mp3"; + } } diff --git a/src/serialization/resources/tts/types/FormatPcm.ts b/src/serialization/resources/tts/types/FormatPcm.ts index 27b266de..49eb434e 100644 --- a/src/serialization/resources/tts/types/FormatPcm.ts +++ b/src/serialization/resources/tts/types/FormatPcm.ts @@ -7,8 +7,12 @@ import * as Hume from "../../../../api/index"; import * as core from "../../../../core"; export const FormatPcm: core.serialization.ObjectSchema = - core.serialization.object({}); + core.serialization.object({ + type: core.serialization.stringLiteral("pcm"), + }); export declare namespace FormatPcm { - export interface Raw {} + export interface Raw { + type: "pcm"; + } } diff --git a/src/serialization/resources/tts/types/FormatWav.ts b/src/serialization/resources/tts/types/FormatWav.ts index e64b7e6d..2ceac3de 100644 --- a/src/serialization/resources/tts/types/FormatWav.ts +++ b/src/serialization/resources/tts/types/FormatWav.ts @@ -7,8 +7,12 @@ import * as Hume from "../../../../api/index"; import * as core from "../../../../core"; export const FormatWav: core.serialization.ObjectSchema = - core.serialization.object({}); + core.serialization.object({ + type: core.serialization.stringLiteral("wav"), + }); export declare namespace FormatWav { - export interface Raw {} + export interface Raw { + type: "wav"; + } } diff --git a/src/serialization/resources/tts/types/SnippetAudioChunk.ts b/src/serialization/resources/tts/types/SnippetAudioChunk.ts index 3b0b420b..9a26b2ff 100644 --- a/src/serialization/resources/tts/types/SnippetAudioChunk.ts +++ b/src/serialization/resources/tts/types/SnippetAudioChunk.ts @@ -22,6 +22,7 @@ export const SnippetAudioChunk: core.serialization.ObjectSchema< snippetId: core.serialization.property("snippet_id", core.serialization.string()), text: core.serialization.string(), transcribedText: core.serialization.property("transcribed_text", core.serialization.string().optional()), + type: core.serialization.stringLiteral("audio"), utteranceIndex: core.serialization.property("utterance_index", core.serialization.number().optional()), }); @@ -37,6 +38,7 @@ export declare namespace SnippetAudioChunk { snippet_id: string; text: string; transcribed_text?: string | null; + type: "audio"; utterance_index?: number | null; } } diff --git a/src/serialization/resources/tts/types/TimestampMessage.ts b/src/serialization/resources/tts/types/TimestampMessage.ts index 76013298..ea7dd55a 100644 --- a/src/serialization/resources/tts/types/TimestampMessage.ts +++ b/src/serialization/resources/tts/types/TimestampMessage.ts @@ -15,6 +15,7 @@ export const TimestampMessage: core.serialization.ObjectSchema< requestId: core.serialization.property("request_id", core.serialization.string()), snippetId: core.serialization.property("snippet_id", core.serialization.string()), timestamp: Timestamp, + type: core.serialization.stringLiteral("timestamp"), }); export declare namespace TimestampMessage { @@ -23,5 +24,6 @@ export declare namespace TimestampMessage { request_id: string; snippet_id: string; timestamp: Timestamp.Raw; + type: "timestamp"; } } diff --git a/src/serialization/resources/tts/types/TtsOutput.ts b/src/serialization/resources/tts/types/TtsOutput.ts index f53d796a..10081a55 100644 --- a/src/serialization/resources/tts/types/TtsOutput.ts +++ b/src/serialization/resources/tts/types/TtsOutput.ts @@ -9,24 +9,8 @@ import { TimestampMessage } from "./TimestampMessage"; import { SnippetAudioChunk } from "./SnippetAudioChunk"; export const TtsOutput: core.serialization.Schema = - core.serialization - .union("type", { - timestamp: TimestampMessage, - audio: SnippetAudioChunk, - }) - .transform({ - transform: (value) => value, - untransform: (value) => value, - }); + core.serialization.undiscriminatedUnion([TimestampMessage, SnippetAudioChunk]); export declare namespace TtsOutput { - export type Raw = TtsOutput.Timestamp | TtsOutput.Audio; - - export interface Timestamp extends TimestampMessage.Raw { - type: "timestamp"; - } - - export interface Audio extends SnippetAudioChunk.Raw { - type: "audio"; - } + export type Raw = TimestampMessage.Raw | SnippetAudioChunk.Raw; } diff --git a/src/version.ts b/src/version.ts index 3700262e..18c69fbe 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const SDK_VERSION = "0.14.1"; +export const SDK_VERSION = "0.14.2"; diff --git a/yarn.lock b/yarn.lock index 9e34fb1d..b6d4727a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -270,20 +270,6 @@ resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39" integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw== -"@bundled-es-modules/cookie@^2.0.1": - version "2.0.1" - resolved "https://registry.yarnpkg.com/@bundled-es-modules/cookie/-/cookie-2.0.1.tgz#b41376af6a06b3e32a15241d927b840a9b4de507" - integrity sha512-8o+5fRPLNbjbdGRRmJj3h6Hh1AQJf2dk3qQ/5ZFb+PXkRNiSoMGGUKlsgLfrxneb72axVJyIYji64E2+nNfYyw== - dependencies: - cookie "^0.7.2" - -"@bundled-es-modules/statuses@^1.0.1": - version "1.0.1" - resolved "https://registry.yarnpkg.com/@bundled-es-modules/statuses/-/statuses-1.0.1.tgz#761d10f44e51a94902c4da48675b71a76cc98872" - integrity sha512-yn7BklA5acgcBr+7w064fGV+SGIFySjCKpqjcWgBAIfrAkY+4GQTJJHQMeT3V/sgz23VTEVV8TtOmkvJAhFVfg== - dependencies: - statuses "^2.0.1" - "@inquirer/ansi@^1.0.0": version "1.0.0" resolved "https://registry.yarnpkg.com/@inquirer/ansi/-/ansi-1.0.0.tgz#29525c673caf36c12e719712830705b9c31f0462" @@ -658,11 +644,6 @@ dependencies: "@babel/types" "^7.28.2" -"@types/cookie@^0.6.0": - version "0.6.0" - resolved "https://registry.yarnpkg.com/@types/cookie/-/cookie-0.6.0.tgz#eac397f28bf1d6ae0ae081363eca2f425bedf0d5" - integrity sha512-4Kh9a6B2bQciAhf7FSuMRRkUWecJgJu9nPnx3yzpsfXX/c50REIqpHY4C82bXP90qrLtXtkDxTZosYO3UpOwlA== - "@types/eslint-scope@^3.7.7": version "3.7.7" resolved "https://registry.yarnpkg.com/@types/eslint-scope/-/eslint-scope-3.7.7.tgz#3108bd5f18b0cdb277c867b3dd449c9ed7079ac5" @@ -741,16 +722,16 @@ form-data "^4.0.4" "@types/node@*": - version "24.6.1" - resolved "https://registry.yarnpkg.com/@types/node/-/node-24.6.1.tgz#29cd365beb4419b3b8271c7464f1a563446d7481" - integrity sha512-ljvjjs3DNXummeIaooB4cLBKg2U6SPI6Hjra/9rRIy7CpM0HpLtG9HptkMKAb4HYWy5S7HUvJEuWgr/y0U8SHw== + version "24.7.1" + resolved "https://registry.yarnpkg.com/@types/node/-/node-24.7.1.tgz#3f0b17eddcd965c9e337af22459b04bafbf96e5e" + integrity sha512-CmyhGZanP88uuC5GpWU9q+fI61j2SkhO3UGMUdfYRE6Bcy0ccyzn1Rqj9YAB/ZY4kOXmNf0ocah5GtphmLMP6Q== dependencies: - undici-types "~7.13.0" + undici-types "~7.14.0" "@types/node@^18.19.70": - version "18.19.129" - resolved "https://registry.yarnpkg.com/@types/node/-/node-18.19.129.tgz#1fea86229068c748ea395294dae4b0d5f1d96290" - integrity sha512-hrmi5jWt2w60ayox3iIXwpMEnfUvOLJCRtrOPbHtH15nTjvO7uhnelvrdAs0dO0/zl5DZ3ZbahiaXEVb54ca/A== + version "18.19.130" + resolved "https://registry.yarnpkg.com/@types/node/-/node-18.19.130.tgz#da4c6324793a79defb7a62cba3947ec5add00d59" + integrity sha512-GRaXQx6jGfL8sKfaIDD6OupbIHBr9jv7Jnaml9tB7l4v068PAOXqfcujMMo5PhbIs6ggR1XODELqahT2R8v0fg== dependencies: undici-types "~5.26.4" @@ -1127,9 +1108,9 @@ base64-js@^1.3.1: integrity sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA== baseline-browser-mapping@^2.8.9: - version "2.8.10" - resolved "https://registry.yarnpkg.com/baseline-browser-mapping/-/baseline-browser-mapping-2.8.10.tgz#32eb5e253d633fa3fa3ffb1685fabf41680d9e8a" - integrity sha512-uLfgBi+7IBNay8ECBO2mVMGZAc1VgZWEChxm4lv+TobGdG82LnXMjuNGo/BSSZZL4UmkWhxEHP2f5ziLNwGWMA== + version "2.8.16" + resolved "https://registry.yarnpkg.com/baseline-browser-mapping/-/baseline-browser-mapping-2.8.16.tgz#e17789673e7f4b7654f81ab2ef25e96ab6a895f9" + integrity sha512-OMu3BGQ4E7P1ErFsIPpbJh0qvDudM/UuJeHgkAvfWe+0HFJCXh+t/l8L6fVLR55RI/UbKrVLnAXZSVwd9ysWYw== brace-expansion@^1.1.7: version "1.1.12" @@ -1146,7 +1127,7 @@ braces@^3.0.3: dependencies: fill-range "^7.1.1" -browserslist@^4.24.0, browserslist@^4.24.5: +browserslist@^4.24.0, browserslist@^4.26.3: version "4.26.3" resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.26.3.tgz#40fbfe2d1cd420281ce5b1caa8840049c79afb56" integrity sha512-lAUU+02RFBuCKQPj/P6NgjlbCnLBMp4UtgTx7vNHd3XSIJF87s9a5rA3aH2yw3GS9DqZAUbOtZdCCiZeVRqt0w== @@ -1216,9 +1197,9 @@ camelcase@^6.2.0: integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA== caniuse-lite@^1.0.30001746: - version "1.0.30001746" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001746.tgz#199d20f04f5369825e00ff7067d45d5dfa03aee7" - integrity sha512-eA7Ys/DGw+pnkWWSE/id29f2IcPHVoE8wxtvE5JdvD2V28VTDPy1yEeo11Guz0sJ4ZeGRcm3uaTcAqK1LXaphA== + version "1.0.30001749" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001749.tgz#21a43b923577932097fe32bcaabb6da7f4677632" + integrity sha512-0rw2fJOmLfnzCRbkm8EyHL8SvI2Apu5UbnQuTsJ0ClgrH8hcwFooJ1s5R0EP8o8aVrFu8++ae29Kt9/gZAZp/Q== chalk@^4.0.0, chalk@^4.1.0: version "4.1.2" @@ -1306,10 +1287,10 @@ convert-source-map@^2.0.0: resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-2.0.0.tgz#4b560f649fc4e918dd0ab75cf4961e8bc882d82a" integrity sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg== -cookie@^0.7.2: - version "0.7.2" - resolved "https://registry.yarnpkg.com/cookie/-/cookie-0.7.2.tgz#556369c472a2ba910f2979891b526b3436237ed7" - integrity sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w== +cookie@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/cookie/-/cookie-1.0.2.tgz#27360701532116bd3f1f9416929d176afe1e4610" + integrity sha512-9Kr/j4O16ISv8zBBhJoi4bXOYNTkFLOqSL3UDB0njXxCXNezjeyVrJyGOWtgfs/q2km1gwBcfH8q1yEGoMYunA== create-jest@^29.7.0: version "29.7.0" @@ -1413,9 +1394,9 @@ dunder-proto@^1.0.1: gopd "^1.2.0" electron-to-chromium@^1.5.227: - version "1.5.228" - resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.228.tgz#38b849bc8714bd21fb64f5ad56bf8cfd8638e1e9" - integrity sha512-nxkiyuqAn4MJ1QbobwqJILiDtu/jk14hEAWaMiJmNPh1Z+jqoFlBFZjdXwLWGeVSeu9hGLg6+2G9yJaW8rBIFA== + version "1.5.234" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.234.tgz#d895b6dba84269f4e83b3a1149dcc55e27848c30" + integrity sha512-RXfEp2x+VRYn8jbKfQlRImzoJU01kyDvVPBmG39eU2iuRVhuS6vQNocB8J0/8GrIMLnPzgz4eW6WiRnJkTuNWg== emittery@^0.13.1: version "0.13.1" @@ -2395,9 +2376,9 @@ lines-and-columns@^1.1.6: integrity sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg== loader-runner@^4.2.0: - version "4.3.0" - resolved "https://registry.yarnpkg.com/loader-runner/-/loader-runner-4.3.0.tgz#c1b4a163b99f614830353b16755e7149ac2314e1" - integrity sha512-3R/1M+yS3j5ou80Me59j7F9IMs4PXs3VqRrm0TU3AbKPxlmpoY1TNscJV/oGJXo8qCatFGTfDbY6W6ipGOYXfg== + version "4.3.1" + resolved "https://registry.yarnpkg.com/loader-runner/-/loader-runner-4.3.1.tgz#6c76ed29b0ccce9af379208299f07f876de737e3" + integrity sha512-IWqP2SCPhyVFTBtRcgMHdzlf9ul25NwaFx4wCEH/KjAXuuHY4yNjvPXsBokp8jCB936PyWRaPKUNh8NvylLp2Q== locate-path@^5.0.0: version "5.0.0" @@ -2490,17 +2471,15 @@ ms@^2.1.3: integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA== msw@^2.8.4: - version "2.11.3" - resolved "https://registry.yarnpkg.com/msw/-/msw-2.11.3.tgz#5a51a7eebd334957fefb375b9d985e3893071ad3" - integrity sha512-878imp8jxIpfzuzxYfX0qqTq1IFQz/1/RBHs/PyirSjzi+xKM/RRfIpIqHSCWjH0GxidrjhgiiXC+DWXNDvT9w== + version "2.11.5" + resolved "https://registry.yarnpkg.com/msw/-/msw-2.11.5.tgz#69572ab70a60b5d72c8b6aed344595a7604241c0" + integrity sha512-atFI4GjKSJComxcigz273honh8h4j5zzpk5kwG4tGm0TPcYne6bqmVrufeRll6auBeouIkXqZYXxVbWSWxM3RA== dependencies: - "@bundled-es-modules/cookie" "^2.0.1" - "@bundled-es-modules/statuses" "^1.0.1" "@inquirer/confirm" "^5.0.0" "@mswjs/interceptors" "^0.39.1" "@open-draft/deferred-promise" "^2.2.0" - "@types/cookie" "^0.6.0" "@types/statuses" "^2.0.4" + cookie "^1.0.2" graphql "^16.8.1" headers-polyfill "^4.0.2" is-node-process "^1.2.0" @@ -2508,6 +2487,7 @@ msw@^2.8.4: path-to-regexp "^6.3.0" picocolors "^1.1.1" rettime "^0.7.0" + statuses "^2.0.2" strict-event-emitter "^0.5.1" tough-cookie "^6.0.0" type-fest "^4.26.1" @@ -2542,9 +2522,9 @@ node-int64@^0.4.0: integrity sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw== node-releases@^2.0.21: - version "2.0.21" - resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.21.tgz#f59b018bc0048044be2d4c4c04e4c8b18160894c" - integrity sha512-5b0pgg78U3hwXkCM8Z9b2FJdPZlr9Psr9V2gQPESdGHqbntyFJKFW4r5TeWGFzafGY3hzs1JC62VEQMbl1JFkw== + version "2.0.23" + resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.23.tgz#2ecf3d7ba571ece05c67c77e5b7b1b6fb9e18cea" + integrity sha512-cCmFDMSm26S6tQSDpBCg/NR8NENrVPhAJSf+XbxBG4rPFaaonlEoE9wHQmun+cls499TQGSb7ZyPBRlzgKfpeg== normalize-path@^3.0.0: version "3.0.0" @@ -2819,10 +2799,10 @@ saxes@^6.0.0: dependencies: xmlchars "^2.2.0" -schema-utils@^4.3.0, schema-utils@^4.3.2: - version "4.3.2" - resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-4.3.2.tgz#0c10878bf4a73fd2b1dfd14b9462b26788c806ae" - integrity sha512-Gn/JaSk/Mt9gYubxTtSn/QCV4em9mpAPiR1rqy/Ocu19u/G9J5WWdNoUT4SiV6mFC3y6cxyFcFwdzPM3FgxGAQ== +schema-utils@^4.3.0, schema-utils@^4.3.3: + version "4.3.3" + resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-4.3.3.tgz#5b1850912fa31df90716963d45d9121fdfc09f46" + integrity sha512-eflK8wEtyOE6+hsaRVPxvUKYCpRgzLqDTb8krvAsRIwOGlHoSgYLgBXoubGgLd2fT41/OUYdb48v4k4WWHQurA== dependencies: "@types/json-schema" "^7.0.9" ajv "^8.9.0" @@ -2834,10 +2814,10 @@ semver@^6.3.0, semver@^6.3.1: resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.1.tgz#556d2ef8689146e46dcea4bfdd095f3434dffcb4" integrity sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA== -semver@^7.3.4, semver@^7.5.3, semver@^7.5.4, semver@^7.7.2: - version "7.7.2" - resolved "https://registry.yarnpkg.com/semver/-/semver-7.7.2.tgz#67d99fdcd35cec21e6f8b87a7fd515a33f982b58" - integrity sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA== +semver@^7.3.4, semver@^7.5.3, semver@^7.5.4, semver@^7.7.3: + version "7.7.3" + resolved "https://registry.yarnpkg.com/semver/-/semver-7.7.3.tgz#4b5f4143d007633a8dc671cd0a6ef9147b8bb946" + integrity sha512-SdsKMrI9TdgjdweUSR9MweHA4EJ8YxHn8DFaDisvhVlUOe4BF1tLD7GAj0lIqWVl+dPb/rExr0Btby5loQm20Q== serialize-javascript@^6.0.2: version "6.0.2" @@ -2956,7 +2936,7 @@ stack-utils@^2.0.3: dependencies: escape-string-regexp "^2.0.0" -statuses@^2.0.1: +statuses@^2.0.2: version "2.0.2" resolved "https://registry.yarnpkg.com/statuses/-/statuses-2.0.2.tgz#8f75eecef765b5e1cfcdc080da59409ed424e382" integrity sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw== @@ -3036,10 +3016,10 @@ symbol-tree@^3.2.4: resolved "https://registry.yarnpkg.com/symbol-tree/-/symbol-tree-3.2.4.tgz#430637d248ba77e078883951fb9aa0eed7c63fa2" integrity sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw== -tapable@^2.2.0, tapable@^2.2.3: - version "2.2.3" - resolved "https://registry.yarnpkg.com/tapable/-/tapable-2.2.3.tgz#4b67b635b2d97578a06a2713d2f04800c237e99b" - integrity sha512-ZL6DDuAlRlLGghwcfmSn9sK3Hr6ArtyudlSAiCqQ6IfE+b+HHbydbYDIG15IfS5do+7XQQBdBiubF/cV2dnDzg== +tapable@^2.2.0, tapable@^2.3.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/tapable/-/tapable-2.3.0.tgz#7e3ea6d5ca31ba8e078b560f0d83ce9a14aa8be6" + integrity sha512-g9ljZiwki/LfxmQADO3dEY1CbpmXT5Hm2fJ+QaGKwSXUylMybePR7/67YW7jOrrvjEgL1Fmz5kzyAjWVWLlucg== terser-webpack-plugin@^5.3.11: version "5.3.14" @@ -3071,17 +3051,17 @@ test-exclude@^6.0.0: glob "^7.1.4" minimatch "^3.0.4" -tldts-core@^7.0.16: - version "7.0.16" - resolved "https://registry.yarnpkg.com/tldts-core/-/tldts-core-7.0.16.tgz#f94a42b1f571ee7e4d5c58a4a3486d557b093c14" - integrity sha512-XHhPmHxphLi+LGbH0G/O7dmUH9V65OY20R7vH8gETHsp5AZCjBk9l8sqmRKLaGOxnETU7XNSDUPtewAy/K6jbA== +tldts-core@^7.0.17: + version "7.0.17" + resolved "https://registry.yarnpkg.com/tldts-core/-/tldts-core-7.0.17.tgz#dadfee3750dd272ed219d7367beb7cbb2ff29eb8" + integrity sha512-DieYoGrP78PWKsrXr8MZwtQ7GLCUeLxihtjC1jZsW1DnvSMdKPitJSe8OSYDM2u5H6g3kWJZpePqkp43TfLh0g== tldts@^7.0.5: - version "7.0.16" - resolved "https://registry.yarnpkg.com/tldts/-/tldts-7.0.16.tgz#8eecb4c15608a23e5b360d64d74f937fb9dbe6aa" - integrity sha512-5bdPHSwbKTeHmXrgecID4Ljff8rQjv7g8zKQPkCozRo2HWWni+p310FSn5ImI+9kWw9kK4lzOB5q/a6iv0IJsw== + version "7.0.17" + resolved "https://registry.yarnpkg.com/tldts/-/tldts-7.0.17.tgz#a6cdc067b9e80ea05f3be471c0ea410688cc78b2" + integrity sha512-Y1KQBgDd/NUc+LfOtKS6mNsC9CCaH+m2P1RoIZy7RAPo3C3/t8X45+zgut31cRZtZ3xKPjfn3TkGTrctC2TQIQ== dependencies: - tldts-core "^7.0.16" + tldts-core "^7.0.17" tmpl@1.0.5: version "1.0.5" @@ -3125,9 +3105,9 @@ tr46@~0.0.3: integrity sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw== ts-jest@^29.3.4: - version "29.4.4" - resolved "https://registry.yarnpkg.com/ts-jest/-/ts-jest-29.4.4.tgz#fc6fefe28652ed81b8e1381ef8391901d9f81417" - integrity sha512-ccVcRABct5ZELCT5U0+DZwkXMCcOCLi2doHRrKy1nK/s7J7bch6TzJMsrY09WxgUUIP/ITfmcDS8D2yl63rnXw== + version "29.4.5" + resolved "https://registry.yarnpkg.com/ts-jest/-/ts-jest-29.4.5.tgz#a6b0dc401e521515d5342234be87f1ca96390a6f" + integrity sha512-HO3GyiWn2qvTQA4kTgjDcXiMwYQt68a1Y8+JuLRVpdIzm+UOLSHgl/XqR4c6nzJkq5rOkjc02O2I7P7l/Yof0Q== dependencies: bs-logger "^0.2.6" fast-json-stable-stringify "^2.1.0" @@ -3135,7 +3115,7 @@ ts-jest@^29.3.4: json5 "^2.2.3" lodash.memoize "^4.1.2" make-error "^1.3.6" - semver "^7.7.2" + semver "^7.7.3" type-fest "^4.41.0" yargs-parser "^21.1.1" @@ -3180,10 +3160,10 @@ undici-types@~5.26.4: resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-5.26.5.tgz#bcd539893d00b56e964fd2657a4866b221a65617" integrity sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA== -undici-types@~7.13.0: - version "7.13.0" - resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-7.13.0.tgz#a20ba7c0a2be0c97bd55c308069d29d167466bff" - integrity sha512-Ov2Rr9Sx+fRgagJ5AX0qvItZG/JKKoBRAVITs1zk7IqZGTJUwgUr7qoYBpWwakpWilTZFM98rG/AFRocu10iIQ== +undici-types@~7.14.0: + version "7.14.0" + resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-7.14.0.tgz#4c037b32ca4d7d62fae042174604341588bc0840" + integrity sha512-QQiYxHuyZ9gQUIrmPo3IA+hUl4KYk8uSA7cHrcKd/l3p1OTpZcM0Tbp9x7FAtXdAYhlasd60ncPpgu6ihG6TOA== universalify@^0.2.0: version "0.2.0" @@ -3268,9 +3248,9 @@ webpack-sources@^3.3.3: integrity sha512-yd1RBzSGanHkitROoPFd6qsrxt+oFhg/129YzheDGqeustzX0vTZJZsSsQjVQC4yzBQ56K55XU8gaNCtIzOnTg== webpack@^5.97.1: - version "5.102.0" - resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.102.0.tgz#7a2416e6da356c35f1fb35333d2f5cee0133e953" - integrity sha512-hUtqAR3ZLVEYDEABdBioQCIqSoguHbFn1K7WlPPWSuXmx0031BD73PSE35jKyftdSh4YLDoQNgK4pqBt5Q82MA== + version "5.102.1" + resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.102.1.tgz#1003a3024741a96ba99c37431938bf61aad3d988" + integrity sha512-7h/weGm9d/ywQ6qzJ+Xy+r9n/3qgp/thalBbpOi5i223dPXKi04IBtqPN9nTd+jBc7QKfvDbaBnFipYp4sJAUQ== dependencies: "@types/eslint-scope" "^3.7.7" "@types/estree" "^1.0.8" @@ -3280,7 +3260,7 @@ webpack@^5.97.1: "@webassemblyjs/wasm-parser" "^1.14.1" acorn "^8.15.0" acorn-import-phases "^1.0.3" - browserslist "^4.24.5" + browserslist "^4.26.3" chrome-trace-event "^1.0.2" enhanced-resolve "^5.17.3" es-module-lexer "^1.2.1" @@ -3292,8 +3272,8 @@ webpack@^5.97.1: loader-runner "^4.2.0" mime-types "^2.1.27" neo-async "^2.6.2" - schema-utils "^4.3.2" - tapable "^2.2.3" + schema-utils "^4.3.3" + tapable "^2.3.0" terser-webpack-plugin "^5.3.11" watchpack "^2.4.4" webpack-sources "^3.3.3"