hume 0.10.4-beta.5 → 0.11.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (132) hide show
  1. package/.mock/definition/empathic-voice/__package__.yml +15 -36
  2. package/.mock/definition/empathic-voice/chat.yml +18 -3
  3. package/.mock/definition/empathic-voice/chatGroups.yml +14 -10
  4. package/.mock/definition/empathic-voice/chatWebhooks.yml +2 -0
  5. package/.mock/definition/empathic-voice/chats.yml +2 -0
  6. package/.mock/definition/empathic-voice/configs.yml +2 -0
  7. package/.mock/definition/empathic-voice/customVoices.yml +1 -0
  8. package/.mock/definition/empathic-voice/prompts.yml +2 -0
  9. package/.mock/definition/empathic-voice/tools.yml +2 -0
  10. package/.mock/definition/expression-measurement/batch/__package__.yml +10 -10
  11. package/.mock/definition/expression-measurement/stream/stream.yml +1 -1
  12. package/.mock/definition/tts/__package__.yml +70 -55
  13. package/.mock/definition/tts/voices.yml +20 -9
  14. package/.mock/fern.config.json +1 -1
  15. package/api/resources/empathicVoice/resources/chat/client/Client.js +4 -1
  16. package/api/resources/empathicVoice/resources/chatGroups/client/Client.js +6 -6
  17. package/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsGetAudioRequest.d.ts +4 -4
  18. package/api/resources/empathicVoice/resources/chats/client/Client.js +5 -5
  19. package/api/resources/empathicVoice/resources/configs/client/Client.js +11 -11
  20. package/api/resources/empathicVoice/resources/customVoices/client/Client.js +7 -7
  21. package/api/resources/empathicVoice/resources/prompts/client/Client.js +10 -10
  22. package/api/resources/empathicVoice/resources/tools/client/Client.js +11 -11
  23. package/api/resources/empathicVoice/types/AssistantInput.d.ts +1 -1
  24. package/api/resources/empathicVoice/types/AssistantMessage.d.ts +1 -1
  25. package/api/resources/empathicVoice/types/PauseAssistantMessage.d.ts +1 -1
  26. package/api/resources/empathicVoice/types/ToolCallMessage.d.ts +1 -1
  27. package/api/resources/empathicVoice/types/ToolErrorMessage.d.ts +2 -2
  28. package/api/resources/empathicVoice/types/ToolResponseMessage.d.ts +3 -3
  29. package/api/resources/empathicVoice/types/UserInput.d.ts +1 -1
  30. package/api/resources/empathicVoice/types/UserMessage.d.ts +3 -3
  31. package/api/resources/empathicVoice/types/index.d.ts +0 -4
  32. package/api/resources/empathicVoice/types/index.js +0 -4
  33. package/api/resources/expressionMeasurement/resources/batch/client/Client.js +6 -6
  34. package/api/resources/tts/client/Client.d.ts +6 -6
  35. package/api/resources/tts/client/Client.js +10 -10
  36. package/api/resources/tts/resources/voices/client/Client.d.ts +5 -3
  37. package/api/resources/tts/resources/voices/client/Client.js +9 -7
  38. package/api/resources/tts/resources/voices/client/requests/VoicesListRequest.d.ts +4 -1
  39. package/api/resources/tts/types/PostedTts.d.ts +6 -6
  40. package/api/resources/tts/types/PostedUtterance.d.ts +5 -5
  41. package/api/resources/tts/types/PostedUtteranceVoiceWithId.d.ts +6 -7
  42. package/api/resources/tts/types/PostedUtteranceVoiceWithName.d.ts +6 -7
  43. package/api/resources/tts/types/ReturnGeneration.d.ts +1 -1
  44. package/api/resources/tts/types/ReturnTts.d.ts +1 -1
  45. package/api/resources/tts/types/ReturnVoice.d.ts +2 -8
  46. package/core/websocket/ws.js +2 -4
  47. package/dist/api/resources/empathicVoice/resources/chat/client/Client.js +4 -1
  48. package/dist/api/resources/empathicVoice/resources/chatGroups/client/Client.js +6 -6
  49. package/dist/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsGetAudioRequest.d.ts +4 -4
  50. package/dist/api/resources/empathicVoice/resources/chats/client/Client.js +5 -5
  51. package/dist/api/resources/empathicVoice/resources/configs/client/Client.js +11 -11
  52. package/dist/api/resources/empathicVoice/resources/customVoices/client/Client.js +7 -7
  53. package/dist/api/resources/empathicVoice/resources/prompts/client/Client.js +10 -10
  54. package/dist/api/resources/empathicVoice/resources/tools/client/Client.js +11 -11
  55. package/dist/api/resources/empathicVoice/types/AssistantInput.d.ts +1 -1
  56. package/dist/api/resources/empathicVoice/types/AssistantMessage.d.ts +1 -1
  57. package/dist/api/resources/empathicVoice/types/PauseAssistantMessage.d.ts +1 -1
  58. package/dist/api/resources/empathicVoice/types/ToolCallMessage.d.ts +1 -1
  59. package/dist/api/resources/empathicVoice/types/ToolErrorMessage.d.ts +2 -2
  60. package/dist/api/resources/empathicVoice/types/ToolResponseMessage.d.ts +3 -3
  61. package/dist/api/resources/empathicVoice/types/UserInput.d.ts +1 -1
  62. package/dist/api/resources/empathicVoice/types/UserMessage.d.ts +3 -3
  63. package/dist/api/resources/empathicVoice/types/index.d.ts +0 -4
  64. package/dist/api/resources/empathicVoice/types/index.js +0 -4
  65. package/dist/api/resources/expressionMeasurement/resources/batch/client/Client.js +6 -6
  66. package/dist/api/resources/tts/client/Client.d.ts +6 -6
  67. package/dist/api/resources/tts/client/Client.js +10 -10
  68. package/dist/api/resources/tts/resources/voices/client/Client.d.ts +5 -3
  69. package/dist/api/resources/tts/resources/voices/client/Client.js +9 -7
  70. package/dist/api/resources/tts/resources/voices/client/requests/VoicesListRequest.d.ts +4 -1
  71. package/dist/api/resources/tts/types/PostedTts.d.ts +6 -6
  72. package/dist/api/resources/tts/types/PostedUtterance.d.ts +5 -5
  73. package/dist/api/resources/tts/types/PostedUtteranceVoiceWithId.d.ts +6 -7
  74. package/dist/api/resources/tts/types/PostedUtteranceVoiceWithName.d.ts +6 -7
  75. package/dist/api/resources/tts/types/ReturnGeneration.d.ts +1 -1
  76. package/dist/api/resources/tts/types/ReturnTts.d.ts +1 -1
  77. package/dist/api/resources/tts/types/ReturnVoice.d.ts +2 -8
  78. package/dist/core/websocket/ws.js +2 -4
  79. package/dist/serialization/resources/empathicVoice/types/index.d.ts +0 -4
  80. package/dist/serialization/resources/empathicVoice/types/index.js +0 -4
  81. package/dist/version.d.ts +1 -1
  82. package/dist/version.js +1 -1
  83. package/dist/wrapper/EVIWebAudioPlayer.d.ts +174 -0
  84. package/dist/wrapper/EVIWebAudioPlayer.js +314 -0
  85. package/dist/wrapper/fetchAccessToken.d.ts +1 -3
  86. package/dist/wrapper/fetchAccessToken.js +8 -28
  87. package/dist/wrapper/index.d.ts +1 -0
  88. package/dist/wrapper/index.js +3 -1
  89. package/package.json +1 -1
  90. package/reference.md +11 -9
  91. package/serialization/resources/empathicVoice/types/index.d.ts +0 -4
  92. package/serialization/resources/empathicVoice/types/index.js +0 -4
  93. package/version.d.ts +1 -1
  94. package/version.js +1 -1
  95. package/wrapper/EVIWebAudioPlayer.d.ts +174 -0
  96. package/wrapper/EVIWebAudioPlayer.js +314 -0
  97. package/wrapper/fetchAccessToken.d.ts +1 -3
  98. package/wrapper/fetchAccessToken.js +8 -28
  99. package/wrapper/index.d.ts +1 -0
  100. package/wrapper/index.js +3 -1
  101. package/api/resources/empathicVoice/types/FunctionCallResponseInput.d.ts +0 -6
  102. package/api/resources/empathicVoice/types/FunctionCallResponseInput.js +0 -5
  103. package/api/resources/empathicVoice/types/PostedPromptSpec.d.ts +0 -9
  104. package/api/resources/empathicVoice/types/PostedPromptSpec.js +0 -5
  105. package/api/resources/empathicVoice/types/TextInput.d.ts +0 -6
  106. package/api/resources/empathicVoice/types/TextInput.js +0 -5
  107. package/api/resources/empathicVoice/types/TtsInput.d.ts +0 -6
  108. package/api/resources/empathicVoice/types/TtsInput.js +0 -5
  109. package/dist/api/resources/empathicVoice/types/FunctionCallResponseInput.d.ts +0 -6
  110. package/dist/api/resources/empathicVoice/types/FunctionCallResponseInput.js +0 -5
  111. package/dist/api/resources/empathicVoice/types/PostedPromptSpec.d.ts +0 -9
  112. package/dist/api/resources/empathicVoice/types/PostedPromptSpec.js +0 -5
  113. package/dist/api/resources/empathicVoice/types/TextInput.d.ts +0 -6
  114. package/dist/api/resources/empathicVoice/types/TextInput.js +0 -5
  115. package/dist/api/resources/empathicVoice/types/TtsInput.d.ts +0 -6
  116. package/dist/api/resources/empathicVoice/types/TtsInput.js +0 -5
  117. package/dist/serialization/resources/empathicVoice/types/FunctionCallResponseInput.d.ts +0 -12
  118. package/dist/serialization/resources/empathicVoice/types/FunctionCallResponseInput.js +0 -43
  119. package/dist/serialization/resources/empathicVoice/types/PostedPromptSpec.d.ts +0 -12
  120. package/dist/serialization/resources/empathicVoice/types/PostedPromptSpec.js +0 -43
  121. package/dist/serialization/resources/empathicVoice/types/TextInput.d.ts +0 -12
  122. package/dist/serialization/resources/empathicVoice/types/TextInput.js +0 -43
  123. package/dist/serialization/resources/empathicVoice/types/TtsInput.d.ts +0 -12
  124. package/dist/serialization/resources/empathicVoice/types/TtsInput.js +0 -43
  125. package/serialization/resources/empathicVoice/types/FunctionCallResponseInput.d.ts +0 -12
  126. package/serialization/resources/empathicVoice/types/FunctionCallResponseInput.js +0 -43
  127. package/serialization/resources/empathicVoice/types/PostedPromptSpec.d.ts +0 -12
  128. package/serialization/resources/empathicVoice/types/PostedPromptSpec.js +0 -43
  129. package/serialization/resources/empathicVoice/types/TextInput.d.ts +0 -12
  130. package/serialization/resources/empathicVoice/types/TextInput.js +0 -43
  131. package/serialization/resources/empathicVoice/types/TtsInput.d.ts +0 -12
  132. package/serialization/resources/empathicVoice/types/TtsInput.js +0 -43
@@ -21,9 +21,9 @@ service:
21
21
  auth: true
22
22
  docs: >-
23
23
  Synthesizes one or more input texts into speech using the specified
24
- voice. If no voice is provided, a novel voice will be generated
24
+ voice. If no voice is provided, a novel voice will be generated
25
25
  dynamically. Optionally, additional context can be included to influence
26
- the speech's style and prosody.
26
+ the speech's style and prosody.
27
27
 
28
28
 
29
29
  The response includes the base64-encoded audio and metadata in JSON
@@ -49,14 +49,14 @@ service:
49
49
  the mind which contemplates them.
50
50
  description: >-
51
51
  Middle-aged masculine voice with a clear, rhythmic Scots lilt,
52
- rounded vowels, and a warm, steady tone with an articulate,
52
+ rounded vowels, and a warm, steady tone with an articulate,
53
53
  academic quality.
54
54
  context:
55
55
  utterances:
56
56
  - text: How can people see beauty so differently?
57
57
  description: >-
58
58
  A curious student with a clear and respectful tone, seeking
59
- clarification on Hume's ideas with a straightforward
59
+ clarification on Hume's ideas with a straightforward
60
60
  question.
61
61
  format:
62
62
  type: mp3
@@ -86,9 +86,9 @@ service:
86
86
  auth: true
87
87
  docs: >-
88
88
  Synthesizes one or more input texts into speech using the specified
89
- voice. If no voice is provided, a novel voice will be generated
89
+ voice. If no voice is provided, a novel voice will be generated
90
90
  dynamically. Optionally, additional context can be included to influence
91
- the speech's style and prosody.
91
+ the speech's style and prosody.
92
92
 
93
93
 
94
94
  The response contains the generated audio file in the requested format.
@@ -113,7 +113,7 @@ service:
113
113
  the mind which contemplates them.
114
114
  description: >-
115
115
  Middle-aged masculine voice with a clear, rhythmic Scots lilt,
116
- rounded vowels, and a warm, steady tone with an articulate,
116
+ rounded vowels, and a warm, steady tone with an articulate,
117
117
  academic quality.
118
118
  context:
119
119
  generation_id: 09ad914d-8e7f-40f8-a279-e34f07f7dab2
@@ -126,7 +126,7 @@ service:
126
126
  auth: true
127
127
  docs: >-
128
128
  Streams synthesized speech using the specified voice. If no voice is
129
- provided, a novel voice will be generated dynamically. Optionally,
129
+ provided, a novel voice will be generated dynamically. Optionally,
130
130
  additional context can be included to influence the speech's style and
131
131
  prosody.
132
132
  source:
@@ -150,7 +150,7 @@ service:
150
150
  the mind which contemplates them.
151
151
  description: >-
152
152
  Middle-aged masculine voice with a clear, rhythmic Scots lilt,
153
- rounded vowels, and a warm, steady tone with an articulate,
153
+ rounded vowels, and a warm, steady tone with an articulate,
154
154
  academic quality.
155
155
  context:
156
156
  generation_id: 09ad914d-8e7f-40f8-a279-e34f07f7dab2
@@ -163,8 +163,8 @@ service:
163
163
  auth: true
164
164
  docs: >-
165
165
  Streams synthesized speech using the specified voice. If no voice is
166
- provided, a novel voice will be generated dynamically. Optionally,
167
- additional context can be included to influence the speech's style and
166
+ provided, a novel voice will be generated dynamically. Optionally,
167
+ additional context can be included to influence the speech's style and
168
168
  prosody.
169
169
 
170
170
 
@@ -191,14 +191,14 @@ service:
191
191
  the mind which contemplates them.
192
192
  description: >-
193
193
  Middle-aged masculine voice with a clear, rhythmic Scots lilt,
194
- rounded vowels, and a warm, steady tone with an articulate,
194
+ rounded vowels, and a warm, steady tone with an articulate,
195
195
  academic quality.
196
196
  context:
197
197
  utterances:
198
198
  - text: How can people see beauty so differently?
199
199
  description: >-
200
200
  A curious student with a clear and respectful tone, seeking
201
- clarification on Hume's ideas with a straightforward
201
+ clarification on Hume's ideas with a straightforward
202
202
  question.
203
203
  format:
204
204
  type: mp3
@@ -267,7 +267,7 @@ types:
267
267
  snippets:
268
268
  docs: >-
269
269
  A list of snippet groups where each group corresponds to an utterance
270
- in the request. Each group contains segmented snippets that represent
270
+ in the request. Each group contains segmented snippets that represent
271
271
  the original utterance divided into more natural-sounding units
272
272
  optimized for speech delivery.
273
273
  type: list<list<Snippet>>
@@ -332,19 +332,19 @@ types:
332
332
  Controls how audio output is segmented in the response.
333
333
 
334
334
 
335
- - When **enabled** (`true`), input utterances are automatically split
335
+ - When **enabled** (`true`), input utterances are automatically split
336
336
  into natural-sounding speech segments.
337
337
 
338
338
 
339
- - When **disabled** (`false`), the response maintains a strict
339
+ - When **disabled** (`false`), the response maintains a strict
340
340
  one-to-one mapping between input utterances and output snippets.
341
341
 
342
342
 
343
343
  This setting affects how the `snippets` array is structured in the
344
- response, which may be important for applications that need to track
345
- the relationship between input text and generated audio segments.
346
- When setting to `false`, avoid including utterances with long `text`,
347
- as this can result in distorted output.
344
+ response, which may be important for applications that need to track
345
+ the relationship between input text and generated audio segments. When
346
+ setting to `false`, avoid including utterances with long `text`, as
347
+ this can result in distorted output.
348
348
  default: true
349
349
  strip_headers:
350
350
  type: optional<boolean>
@@ -359,9 +359,9 @@ types:
359
359
  A list of **Utterances** to be converted to speech output.
360
360
 
361
361
 
362
- An **Utterance** is a unit of input for
362
+ An **Utterance** is a unit of input for
363
363
  [Octave](/docs/text-to-speech-tts/overview), and includes input
364
- `text`, an optional `description` to serve as the prompt for how the
364
+ `text`, an optional `description` to serve as the prompt for how the
365
365
  speech should be delivered, an optional `voice` specification, and
366
366
  additional controls to guide delivery for `speed` and
367
367
  `trailing_silence`.
@@ -376,11 +376,11 @@ types:
376
376
  mode](/docs/text-to-speech-tts/overview#ultra-low-latency-streaming-instant-mode).
377
377
 
378
378
  - Dynamic voice generation is not supported with this mode; a
379
- predefined
380
- [voice](/reference/text-to-speech-tts/synthesize-json-streaming#request.body.utterances.voice)
379
+ predefined
380
+ [voice](/reference/text-to-speech-tts/synthesize-json-streaming#request.body.utterances.voice)
381
381
  must be specified in your request.
382
382
 
383
- - This mode is only supported for streaming endpoints (e.g.,
383
+ - This mode is only supported for streaming endpoints (e.g.,
384
384
  [/v0/tts/stream/json](/reference/text-to-speech-tts/synthesize-json-streaming),
385
385
  [/v0/tts/stream/file](/reference/text-to-speech-tts/synthesize-file-streaming)).
386
386
 
@@ -401,7 +401,7 @@ types:
401
401
  type: optional<string>
402
402
  docs: >-
403
403
  A unique ID associated with this request for tracking and
404
- troubleshooting. Use this ID when contacting [support](/support) for
404
+ troubleshooting. Use this ID when contacting [support](/support) for
405
405
  troubleshooting assistance.
406
406
  source:
407
407
  openapi: tts-openapi.yml
@@ -416,16 +416,12 @@ types:
416
416
  docs: Name of the voice in the `Voice Library`.
417
417
  provider:
418
418
  type: optional<VoiceProvider>
419
- docs: |-
420
- Specifies the provider of the voice.
421
-
422
- - **HUME_AI**: Preset voices generated by Hume.
423
-
424
- - **CUSTOM_VOICE**: Voices you have generated and saved to your `Voice library`.
419
+ docs: >-
420
+ The provider associated with the created voice.
425
421
 
426
- If a provider is not specified, the provider will default to `CUSTOM_VOICE`.
427
422
 
428
- While Hume's preset voices are shared and usable by anyone, your custom voices are only available to calls made with your API key.
423
+ Voices created through this endpoint will always have the provider set
424
+ to `CUSTOM_VOICE`, indicating a custom voice stored in your account.
429
425
  source:
430
426
  openapi: tts-openapi.yml
431
427
  FormatPcm:
@@ -439,7 +435,6 @@ types:
439
435
  docs: >-
440
436
  The segmented audio output in the requested format, encoded as a
441
437
  base64 string.
442
- access: read-only
443
438
  generation_id:
444
439
  type: string
445
440
  docs: The generation ID this snippet corresponds to.
@@ -491,15 +486,15 @@ types:
491
486
  type: optional<string>
492
487
  docs: >-
493
488
  Natural language instructions describing how the synthesized speech
494
- should sound, including but not limited to tone, intonation, pacing,
495
- and accent (e.g., 'a soft, gentle voice with a strong British
489
+ should sound, including but not limited to tone, intonation, pacing,
490
+ and accent (e.g., 'a soft, gentle voice with a strong British
496
491
  accent').
497
492
 
498
493
  - If a Voice is specified in the request, this description serves as
499
- acting instructions. For tips on how to effectively guide speech
494
+ acting instructions. For tips on how to effectively guide speech
500
495
  delivery, see our guide on [Acting
501
496
  instructions](/docs/text-to-speech-tts/acting-instructions).
502
- - If no Voice is specified, a new voice is generated based on this description. See our [prompting guide](/docs/text-to-speech-tts/prompting) for tips on designing a voice.
497
+ - If no Voice is specified, a new voice is generated based on this description. See our [prompting guide](/docs/text-to-speech-tts/prompting) for tips on designing a voice.
503
498
  validation:
504
499
  maxLength: 1000
505
500
  speed:
@@ -525,10 +520,10 @@ types:
525
520
  type: optional<PostedUtteranceVoice>
526
521
  docs: >-
527
522
  The `name` or `id` associated with a **Voice** from the **Voice
528
- Library** to be used as the speaker for this and all subsequent
523
+ Library** to be used as the speaker for this and all subsequent
529
524
  `utterances`, until the `voice` field is updated again.
530
525
 
531
- See our [voices guide](/docs/text-to-speech-tts/voices) for more details on generating and specifying **Voices**.
526
+ See our [voices guide](/docs/text-to-speech-tts/voices) for more details on generating and specifying **Voices**.
532
527
  source:
533
528
  openapi: tts-openapi.yml
534
529
  ValidationErrorLocItem:
@@ -551,38 +546,58 @@ types:
551
546
  properties:
552
547
  id:
553
548
  type: string
554
- docs: The ID of a **Voice** within the **Voice Library**.
549
+ docs: The unique ID associated with the **Voice**.
555
550
  provider:
556
551
  type: optional<VoiceProvider>
557
- docs: |-
558
- Specifies the provider of the voice associated with this voice ID.
552
+ docs: >-
553
+ Specifies the source provider associated with the chosen voice.
554
+
559
555
 
560
- - **HUME_AI**: Preset voices generated by Hume.
556
+ - **`HUME_AI`**: Select voices from Hume's [Voice
557
+ Library](https://platform.hume.ai/tts/voice-library), containing a
558
+ variety of preset, shared voices.
561
559
 
562
- - **CUSTOM_VOICE**: Voices you have generated and saved to your `Voice library`.
560
+ - **`CUSTOM_VOICE`**: Select from voices you've personally generated
561
+ and saved in your account.
563
562
 
564
- If a provider is not specified, the provider will default to `CUSTOM_VOICE`.
565
563
 
566
- While Hume's preset voices are shared and usable by anyone, your custom voices are only available to calls made with your API key.
564
+ If no provider is explicitly set, the default provider is
565
+ `CUSTOM_VOICE`. When using voices from Hume's **Voice Library**, you
566
+ must explicitly set the provider to `HUME_AI`.
567
+
568
+
569
+ Preset voices from Hume's **Voice Library** are accessible by all
570
+ users. In contrast, your custom voices are private and accessible only
571
+ via requests authenticated with your API key.
567
572
  source:
568
573
  openapi: tts-openapi.yml
569
574
  PostedUtteranceVoiceWithName:
570
575
  properties:
571
576
  name:
572
577
  type: string
573
- docs: The name of a **Voice** within the **Voice Library**.
578
+ docs: The name of a **Voice**.
574
579
  provider:
575
580
  type: optional<VoiceProvider>
576
- docs: |-
577
- Specifies the provider of the voice associated with this voice name.
581
+ docs: >-
582
+ Specifies the source provider associated with the chosen voice.
583
+
584
+
585
+ - **`HUME_AI`**: Select voices from Hume's [Voice
586
+ Library](https://platform.hume.ai/tts/voice-library), containing a
587
+ variety of preset, shared voices.
588
+
589
+ - **`CUSTOM_VOICE`**: Select from voices you've personally generated
590
+ and saved in your account.
578
591
 
579
- - **HUME_AI**: Preset voices generated by Hume.
580
592
 
581
- - **CUSTOM_VOICE**: Voices you have generated and saved to your `Voice library`.
593
+ If no provider is explicitly set, the default provider is
594
+ `CUSTOM_VOICE`. When using voices from Hume's **Voice Library**, you
595
+ must explicitly set the provider to `HUME_AI`.
582
596
 
583
- If a provider is not specified, the provider will default to `CUSTOM_VOICE`.
584
597
 
585
- While Hume's preset voices are shared and usable by anyone, your custom voices are only available to calls made with your API key.
598
+ Preset voices from Hume's **Voice Library** are accessible by all
599
+ users. In contrast, your custom voices are private and accessible only
600
+ via requests authenticated with your API key.
586
601
  source:
587
602
  openapi: tts-openapi.yml
588
603
  VoiceProvider:
@@ -9,9 +9,8 @@ service:
9
9
  method: GET
10
10
  auth: true
11
11
  docs: >-
12
- Lists voices in your **Voice Library**. Set provider to `HUME_AI` to
13
- list Hume's preset voices, or to `CUSTOM_VOICE` to a custom voice
14
- created in your account.
12
+ Lists voices you have saved in your account, or voices from the [Voice
13
+ Library](https://platform.hume.ai/tts/voice-library).
15
14
  pagination:
16
15
  offset: $request.page_number
17
16
  results: $response.voices_page
@@ -24,10 +23,18 @@ service:
24
23
  provider:
25
24
  type: root.VoiceProvider
26
25
  docs: >-
27
- Specifies whether to return custom voices created in your account
28
- or shared voices provided by Hume
26
+ Specify the voice provider to filter voices returned by the
27
+ endpoint:
28
+
29
+
30
+ - **`HUME_AI`**: Lists preset, shared voices from Hume's [Voice
31
+ Library](https://platform.hume.ai/tts/voice-library).
32
+
33
+ - **`CUSTOM_VOICE`**: Lists custom voices created and saved to
34
+ your account.
29
35
  page_number:
30
36
  type: optional<integer>
37
+ default: 0
31
38
  docs: >-
32
39
  Specifies the page number to retrieve, enabling pagination.
33
40
 
@@ -74,9 +81,13 @@ service:
74
81
  method: POST
75
82
  auth: true
76
83
  docs: >-
77
- Creates a new voice from a specified TTS generation ID and saves it to
78
- your **Voice Library**. This allows for consistent speech style and
79
- prosody across multiple requests.
84
+ Saves a new custom voice to your account using the specified TTS
85
+ generation ID.
86
+
87
+
88
+ Once saved, this voice can be reused in subsequent TTS requests,
89
+ ensuring consistent speech style and prosody. For more details on voice
90
+ creation, see the [Voices Guide](/docs/text-to-speech-tts/voices).
80
91
  source:
81
92
  openapi: tts-openapi.yml
82
93
  display-name: Create voice
@@ -113,7 +124,7 @@ service:
113
124
  path: /v0/tts/voices
114
125
  method: DELETE
115
126
  auth: true
116
- docs: Removes a custom voice from your **Voice Library**.
127
+ docs: Deletes a previously generated custom voice.
117
128
  source:
118
129
  openapi: tts-openapi.yml
119
130
  display-name: Delete voice
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "organization" : "hume",
3
- "version" : "0.57.5"
3
+ "version" : "0.63.26"
4
4
  }
@@ -77,7 +77,10 @@ class Chat {
77
77
  queryParams[name] = value;
78
78
  }
79
79
  }
80
- const socket = new core.ReconnectingWebSocket(`wss://${((_a = core.Supplier.get(this._options.environment)) !== null && _a !== void 0 ? _a : environments.HumeEnvironment.Production).replace("https://", "")}/v0/evi/chat?${qs_1.default.stringify(queryParams)}`, [], {
80
+ const environ = ((_a = core.Supplier.get(this._options.environment)) !== null && _a !== void 0 ? _a : environments.HumeEnvironment.Production)
81
+ .replace("https://", "wss://")
82
+ .replace("http://", "ws://");
83
+ const socket = new core.ReconnectingWebSocket(`${environ}/v0/evi/chat?${qs_1.default.stringify(queryParams)}`, [], {
81
84
  debug: (_b = args.debug) !== null && _b !== void 0 ? _b : false,
82
85
  maxRetries: (_c = args.reconnectAttempts) !== null && _c !== void 0 ? _c : 30,
83
86
  });
@@ -96,7 +96,7 @@ class ChatGroups {
96
96
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
97
97
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.HumeEnvironment.Production, "v0/evi/chat_groups"),
98
98
  method: "GET",
99
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.3", "User-Agent": "hume/0.10.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
99
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.11.1", "User-Agent": "hume/0.11.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
100
100
  contentType: "application/json",
101
101
  queryParameters: _queryParams,
102
102
  requestType: "json",
@@ -142,7 +142,7 @@ class ChatGroups {
142
142
  });
143
143
  }
144
144
  });
145
- let _offset = (request === null || request === void 0 ? void 0 : request.pageNumber) != null ? request === null || request === void 0 ? void 0 : request.pageNumber : 1;
145
+ let _offset = (request === null || request === void 0 ? void 0 : request.pageNumber) != null ? request === null || request === void 0 ? void 0 : request.pageNumber : 0;
146
146
  return new core.Pageable({
147
147
  response: yield list(request),
148
148
  hasNextPage: (response) => { var _a; return ((_a = response === null || response === void 0 ? void 0 : response.chatGroupsPage) !== null && _a !== void 0 ? _a : []).length > 0; },
@@ -187,7 +187,7 @@ class ChatGroups {
187
187
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
188
188
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.HumeEnvironment.Production, `v0/evi/chat_groups/${encodeURIComponent(id)}`),
189
189
  method: "GET",
190
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.3", "User-Agent": "hume/0.10.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
190
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.11.1", "User-Agent": "hume/0.11.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
191
191
  contentType: "application/json",
192
192
  queryParameters: _queryParams,
193
193
  requestType: "json",
@@ -268,7 +268,7 @@ class ChatGroups {
268
268
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
269
269
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.HumeEnvironment.Production, `v0/evi/chat_groups/${encodeURIComponent(id)}/events`),
270
270
  method: "GET",
271
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.3", "User-Agent": "hume/0.10.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
271
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.11.1", "User-Agent": "hume/0.11.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
272
272
  contentType: "application/json",
273
273
  queryParameters: _queryParams,
274
274
  requestType: "json",
@@ -314,7 +314,7 @@ class ChatGroups {
314
314
  });
315
315
  }
316
316
  });
317
- let _offset = (request === null || request === void 0 ? void 0 : request.pageNumber) != null ? request === null || request === void 0 ? void 0 : request.pageNumber : 1;
317
+ let _offset = (request === null || request === void 0 ? void 0 : request.pageNumber) != null ? request === null || request === void 0 ? void 0 : request.pageNumber : 0;
318
318
  return new core.Pageable({
319
319
  response: yield list(request),
320
320
  hasNextPage: (response) => { var _a; return ((_a = response === null || response === void 0 ? void 0 : response.eventsPage) !== null && _a !== void 0 ? _a : []).length > 0; },
@@ -359,7 +359,7 @@ class ChatGroups {
359
359
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
360
360
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.HumeEnvironment.Production, `v0/evi/chat_groups/${encodeURIComponent(id)}/audio`),
361
361
  method: "GET",
362
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.3", "User-Agent": "hume/0.10.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
362
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.11.1", "User-Agent": "hume/0.11.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
363
363
  contentType: "application/json",
364
364
  queryParameters: _queryParams,
365
365
  requestType: "json",
@@ -11,15 +11,15 @@
11
11
  */
12
12
  export interface ChatGroupsGetAudioRequest {
13
13
  /**
14
- * Specifies the maximum number of results to include per page, enabling pagination. The value must be between 1 and 100, inclusive.
14
+ * Specifies the page number to retrieve, enabling pagination.
15
15
  *
16
- * For example, if `page_size` is set to 10, each page will include up to 10 items. Defaults to 10.
16
+ * This parameter uses zero-based indexing. For example, setting `page_number` to 0 retrieves the first page of results (items 0-9 if `page_size` is 10), setting `page_number` to 1 retrieves the second page (items 10-19), and so on. Defaults to 0, which retrieves the first page.
17
17
  */
18
18
  pageNumber?: number;
19
19
  /**
20
- * Specifies the page number to retrieve, enabling pagination.
20
+ * Specifies the maximum number of results to include per page, enabling pagination. The value must be between 1 and 100, inclusive.
21
21
  *
22
- * This parameter uses zero-based indexing. For example, setting `page_number` to 0 retrieves the first page of results (items 0-9 if `page_size` is 10), setting `page_number` to 1 retrieves the second page (items 10-19), and so on. Defaults to 0, which retrieves the first page.
22
+ * For example, if `page_size` is set to 10, each page will include up to 10 items. Defaults to 10.
23
23
  */
24
24
  pageSize?: number;
25
25
  /**
@@ -95,7 +95,7 @@ class Chats {
95
95
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
96
96
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.HumeEnvironment.Production, "v0/evi/chats"),
97
97
  method: "GET",
98
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.3", "User-Agent": "hume/0.10.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
98
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.11.1", "User-Agent": "hume/0.11.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
99
99
  contentType: "application/json",
100
100
  queryParameters: _queryParams,
101
101
  requestType: "json",
@@ -141,7 +141,7 @@ class Chats {
141
141
  });
142
142
  }
143
143
  });
144
- let _offset = (request === null || request === void 0 ? void 0 : request.pageNumber) != null ? request === null || request === void 0 ? void 0 : request.pageNumber : 1;
144
+ let _offset = (request === null || request === void 0 ? void 0 : request.pageNumber) != null ? request === null || request === void 0 ? void 0 : request.pageNumber : 0;
145
145
  return new core.Pageable({
146
146
  response: yield list(request),
147
147
  hasNextPage: (response) => { var _a; return ((_a = response === null || response === void 0 ? void 0 : response.chatsPage) !== null && _a !== void 0 ? _a : []).length > 0; },
@@ -187,7 +187,7 @@ class Chats {
187
187
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
188
188
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.HumeEnvironment.Production, `v0/evi/chats/${encodeURIComponent(id)}`),
189
189
  method: "GET",
190
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.3", "User-Agent": "hume/0.10.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
190
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.11.1", "User-Agent": "hume/0.11.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
191
191
  contentType: "application/json",
192
192
  queryParameters: _queryParams,
193
193
  requestType: "json",
@@ -233,7 +233,7 @@ class Chats {
233
233
  });
234
234
  }
235
235
  });
236
- let _offset = (request === null || request === void 0 ? void 0 : request.pageNumber) != null ? request === null || request === void 0 ? void 0 : request.pageNumber : 1;
236
+ let _offset = (request === null || request === void 0 ? void 0 : request.pageNumber) != null ? request === null || request === void 0 ? void 0 : request.pageNumber : 0;
237
237
  return new core.Pageable({
238
238
  response: yield list(request),
239
239
  hasNextPage: (response) => { var _a; return ((_a = response === null || response === void 0 ? void 0 : response.eventsPage) !== null && _a !== void 0 ? _a : []).length > 0; },
@@ -262,7 +262,7 @@ class Chats {
262
262
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
263
263
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.HumeEnvironment.Production, `v0/evi/chats/${encodeURIComponent(id)}/audio`),
264
264
  method: "GET",
265
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.3", "User-Agent": "hume/0.10.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
265
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.11.1", "User-Agent": "hume/0.11.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
266
266
  contentType: "application/json",
267
267
  requestType: "json",
268
268
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -96,7 +96,7 @@ class Configs {
96
96
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
97
97
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.HumeEnvironment.Production, "v0/evi/configs"),
98
98
  method: "GET",
99
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.3", "User-Agent": "hume/0.10.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
99
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.11.1", "User-Agent": "hume/0.11.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
100
100
  contentType: "application/json",
101
101
  queryParameters: _queryParams,
102
102
  requestType: "json",
@@ -142,7 +142,7 @@ class Configs {
142
142
  });
143
143
  }
144
144
  });
145
- let _offset = (request === null || request === void 0 ? void 0 : request.pageNumber) != null ? request === null || request === void 0 ? void 0 : request.pageNumber : 1;
145
+ let _offset = (request === null || request === void 0 ? void 0 : request.pageNumber) != null ? request === null || request === void 0 ? void 0 : request.pageNumber : 0;
146
146
  return new core.Pageable({
147
147
  response: yield list(request),
148
148
  hasNextPage: (response) => { var _a; return ((_a = response === null || response === void 0 ? void 0 : response.configsPage) !== null && _a !== void 0 ? _a : []).length > 0; },
@@ -203,7 +203,7 @@ class Configs {
203
203
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
204
204
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.HumeEnvironment.Production, "v0/evi/configs"),
205
205
  method: "POST",
206
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.3", "User-Agent": "hume/0.10.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
206
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.11.1", "User-Agent": "hume/0.11.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
207
207
  contentType: "application/json",
208
208
  requestType: "json",
209
209
  body: serializers.empathicVoice.PostedConfig.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -282,7 +282,7 @@ class Configs {
282
282
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
283
283
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.HumeEnvironment.Production, `v0/evi/configs/${encodeURIComponent(id)}`),
284
284
  method: "GET",
285
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.3", "User-Agent": "hume/0.10.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
285
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.11.1", "User-Agent": "hume/0.11.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
286
286
  contentType: "application/json",
287
287
  queryParameters: _queryParams,
288
288
  requestType: "json",
@@ -328,7 +328,7 @@ class Configs {
328
328
  });
329
329
  }
330
330
  });
331
- let _offset = (request === null || request === void 0 ? void 0 : request.pageNumber) != null ? request === null || request === void 0 ? void 0 : request.pageNumber : 1;
331
+ let _offset = (request === null || request === void 0 ? void 0 : request.pageNumber) != null ? request === null || request === void 0 ? void 0 : request.pageNumber : 0;
332
332
  return new core.Pageable({
333
333
  response: yield list(request),
334
334
  hasNextPage: (response) => { var _a; return ((_a = response === null || response === void 0 ? void 0 : response.configsPage) !== null && _a !== void 0 ? _a : []).length > 0; },
@@ -393,7 +393,7 @@ class Configs {
393
393
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
394
394
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.HumeEnvironment.Production, `v0/evi/configs/${encodeURIComponent(id)}`),
395
395
  method: "POST",
396
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.3", "User-Agent": "hume/0.10.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
396
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.11.1", "User-Agent": "hume/0.11.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
397
397
  contentType: "application/json",
398
398
  requestType: "json",
399
399
  body: serializers.empathicVoice.PostedConfigVersion.jsonOrThrow(request, {
@@ -461,7 +461,7 @@ class Configs {
461
461
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
462
462
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.HumeEnvironment.Production, `v0/evi/configs/${encodeURIComponent(id)}`),
463
463
  method: "DELETE",
464
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.3", "User-Agent": "hume/0.10.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
464
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.11.1", "User-Agent": "hume/0.11.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
465
465
  contentType: "application/json",
466
466
  requestType: "json",
467
467
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -524,7 +524,7 @@ class Configs {
524
524
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
525
525
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.HumeEnvironment.Production, `v0/evi/configs/${encodeURIComponent(id)}`),
526
526
  method: "PATCH",
527
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.3", "User-Agent": "hume/0.10.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
527
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.11.1", "User-Agent": "hume/0.11.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
528
528
  contentType: "application/json",
529
529
  requestType: "json",
530
530
  body: serializers.empathicVoice.PostedConfigName.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -591,7 +591,7 @@ class Configs {
591
591
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
592
592
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.HumeEnvironment.Production, `v0/evi/configs/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
593
593
  method: "GET",
594
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.3", "User-Agent": "hume/0.10.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
594
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.11.1", "User-Agent": "hume/0.11.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
595
595
  contentType: "application/json",
596
596
  requestType: "json",
597
597
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -661,7 +661,7 @@ class Configs {
661
661
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
662
662
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.HumeEnvironment.Production, `v0/evi/configs/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
663
663
  method: "DELETE",
664
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.3", "User-Agent": "hume/0.10.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
664
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.11.1", "User-Agent": "hume/0.11.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
665
665
  contentType: "application/json",
666
666
  requestType: "json",
667
667
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -729,7 +729,7 @@ class Configs {
729
729
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
730
730
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.HumeEnvironment.Production, `v0/evi/configs/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
731
731
  method: "PATCH",
732
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.3", "User-Agent": "hume/0.10.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
732
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.11.1", "User-Agent": "hume/0.11.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
733
733
  contentType: "application/json",
734
734
  requestType: "json",
735
735
  body: serializers.empathicVoice.PostedConfigVersionDescription.jsonOrThrow(request, {