hume 0.10.0 → 0.10.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.mock/definition/empathic-voice/__package__.yml +151 -224
- package/.mock/definition/empathic-voice/chatGroups.yml +4 -4
- package/.mock/definition/empathic-voice/chats.yml +3 -3
- package/.mock/definition/empathic-voice/configs.yml +17 -17
- package/.mock/definition/empathic-voice/customVoices.yml +6 -6
- package/.mock/definition/empathic-voice/prompts.yml +9 -9
- package/.mock/definition/empathic-voice/tools.yml +9 -9
- package/.mock/definition/tts/__package__.yml +32 -3
- package/api/resources/empathicVoice/resources/chatGroups/client/Client.js +4 -4
- package/api/resources/empathicVoice/resources/chats/client/Client.js +3 -3
- package/api/resources/empathicVoice/resources/configs/client/Client.d.ts +2 -2
- package/api/resources/empathicVoice/resources/configs/client/Client.js +11 -11
- package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +1 -1
- package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +1 -1
- package/api/resources/empathicVoice/resources/customVoices/client/Client.js +6 -6
- package/api/resources/empathicVoice/resources/prompts/client/Client.js +9 -9
- package/api/resources/empathicVoice/resources/tools/client/Client.js +9 -9
- package/api/resources/empathicVoice/types/{ReturnLanguageModelModelResource.d.ts → LanguageModelType.d.ts} +3 -6
- package/api/resources/empathicVoice/types/{ReturnLanguageModelModelResource.js → LanguageModelType.js} +3 -3
- package/api/resources/empathicVoice/types/{PostedLanguageModelModelProvider.d.ts → ModelProviderEnum.d.ts} +2 -5
- package/{dist/api/resources/empathicVoice/types/PostedLanguageModelModelProvider.js → api/resources/empathicVoice/types/ModelProviderEnum.js} +2 -2
- package/api/resources/empathicVoice/types/PostedLanguageModel.d.ts +2 -2
- package/api/resources/empathicVoice/types/ReturnLanguageModel.d.ts +2 -2
- package/api/resources/empathicVoice/types/index.d.ts +6 -8
- package/api/resources/empathicVoice/types/index.js +6 -8
- package/api/resources/expressionMeasurement/resources/batch/client/Client.js +6 -6
- package/api/resources/tts/client/Client.js +4 -4
- package/api/resources/tts/resources/voices/client/Client.js +3 -3
- package/api/resources/tts/types/PostedTts.d.ts +7 -0
- package/api/resources/tts/types/SnippetAudioChunk.d.ts +6 -2
- package/dist/api/resources/empathicVoice/resources/chatGroups/client/Client.js +4 -4
- package/dist/api/resources/empathicVoice/resources/chats/client/Client.js +3 -3
- package/dist/api/resources/empathicVoice/resources/configs/client/Client.d.ts +2 -2
- package/dist/api/resources/empathicVoice/resources/configs/client/Client.js +11 -11
- package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +1 -1
- package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +1 -1
- package/dist/api/resources/empathicVoice/resources/customVoices/client/Client.js +6 -6
- package/dist/api/resources/empathicVoice/resources/prompts/client/Client.js +9 -9
- package/dist/api/resources/empathicVoice/resources/tools/client/Client.js +9 -9
- package/dist/api/resources/empathicVoice/types/{ReturnLanguageModelModelResource.d.ts → LanguageModelType.d.ts} +3 -6
- package/dist/api/resources/empathicVoice/types/{ReturnLanguageModelModelResource.js → LanguageModelType.js} +3 -3
- package/dist/api/resources/empathicVoice/types/{PostedLanguageModelModelProvider.d.ts → ModelProviderEnum.d.ts} +2 -5
- package/{api/resources/empathicVoice/types/PostedLanguageModelModelProvider.js → dist/api/resources/empathicVoice/types/ModelProviderEnum.js} +2 -2
- package/dist/api/resources/empathicVoice/types/PostedLanguageModel.d.ts +2 -2
- package/dist/api/resources/empathicVoice/types/ReturnLanguageModel.d.ts +2 -2
- package/dist/api/resources/empathicVoice/types/index.d.ts +6 -8
- package/dist/api/resources/empathicVoice/types/index.js +6 -8
- package/dist/api/resources/expressionMeasurement/resources/batch/client/Client.js +6 -6
- package/dist/api/resources/tts/client/Client.js +4 -4
- package/dist/api/resources/tts/resources/voices/client/Client.js +3 -3
- package/dist/api/resources/tts/types/PostedTts.d.ts +7 -0
- package/dist/api/resources/tts/types/SnippetAudioChunk.d.ts +6 -2
- package/dist/serialization/resources/empathicVoice/types/LanguageModelType.d.ts +10 -0
- package/{serialization/resources/empathicVoice/types/ReturnLanguageModelModelResource.js → dist/serialization/resources/empathicVoice/types/LanguageModelType.js} +3 -3
- package/dist/serialization/resources/empathicVoice/types/{PostedLanguageModelModelProvider.d.ts → ModelProviderEnum.d.ts} +2 -2
- package/dist/serialization/resources/empathicVoice/types/{ReturnLanguageModelModelProvider.js → ModelProviderEnum.js} +2 -2
- package/dist/serialization/resources/empathicVoice/types/PostedLanguageModel.d.ts +4 -4
- package/dist/serialization/resources/empathicVoice/types/PostedLanguageModel.js +4 -4
- package/dist/serialization/resources/empathicVoice/types/ReturnLanguageModel.d.ts +4 -4
- package/dist/serialization/resources/empathicVoice/types/ReturnLanguageModel.js +4 -4
- package/dist/serialization/resources/empathicVoice/types/index.d.ts +6 -8
- package/dist/serialization/resources/empathicVoice/types/index.js +6 -8
- package/dist/serialization/resources/tts/types/PostedTts.d.ts +1 -0
- package/dist/serialization/resources/tts/types/PostedTts.js +1 -0
- package/dist/serialization/resources/tts/types/SnippetAudioChunk.d.ts +2 -0
- package/dist/serialization/resources/tts/types/SnippetAudioChunk.js +2 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/wrapper/getAudioStream.d.ts +6 -1
- package/dist/wrapper/getAudioStream.js +5 -4
- package/package.json +1 -1
- package/reference.md +2 -2
- package/serialization/resources/empathicVoice/types/LanguageModelType.d.ts +10 -0
- package/{dist/serialization/resources/empathicVoice/types/ReturnLanguageModelModelResource.js → serialization/resources/empathicVoice/types/LanguageModelType.js} +3 -3
- package/{dist/serialization/resources/empathicVoice/types/ReturnLanguageModelModelProvider.d.ts → serialization/resources/empathicVoice/types/ModelProviderEnum.d.ts} +2 -2
- package/{dist/serialization/resources/empathicVoice/types/PostedLanguageModelModelProvider.js → serialization/resources/empathicVoice/types/ModelProviderEnum.js} +2 -2
- package/serialization/resources/empathicVoice/types/PostedLanguageModel.d.ts +4 -4
- package/serialization/resources/empathicVoice/types/PostedLanguageModel.js +4 -4
- package/serialization/resources/empathicVoice/types/ReturnLanguageModel.d.ts +4 -4
- package/serialization/resources/empathicVoice/types/ReturnLanguageModel.js +4 -4
- package/serialization/resources/empathicVoice/types/index.d.ts +6 -8
- package/serialization/resources/empathicVoice/types/index.js +6 -8
- package/serialization/resources/tts/types/PostedTts.d.ts +1 -0
- package/serialization/resources/tts/types/PostedTts.js +1 -0
- package/serialization/resources/tts/types/SnippetAudioChunk.d.ts +2 -0
- package/serialization/resources/tts/types/SnippetAudioChunk.js +2 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/wrapper/getAudioStream.d.ts +6 -1
- package/wrapper/getAudioStream.js +5 -4
- package/api/resources/empathicVoice/types/PostedLanguageModelModelResource.d.ts +0 -34
- package/api/resources/empathicVoice/types/PostedLanguageModelModelResource.js +0 -33
- package/api/resources/empathicVoice/types/ReturnLanguageModelModelProvider.d.ts +0 -17
- package/api/resources/empathicVoice/types/ReturnLanguageModelModelProvider.js +0 -16
- package/dist/api/resources/empathicVoice/types/PostedLanguageModelModelResource.d.ts +0 -34
- package/dist/api/resources/empathicVoice/types/PostedLanguageModelModelResource.js +0 -33
- package/dist/api/resources/empathicVoice/types/ReturnLanguageModelModelProvider.d.ts +0 -17
- package/dist/api/resources/empathicVoice/types/ReturnLanguageModelModelProvider.js +0 -16
- package/dist/serialization/resources/empathicVoice/types/PostedLanguageModelModelResource.d.ts +0 -10
- package/dist/serialization/resources/empathicVoice/types/PostedLanguageModelModelResource.js +0 -67
- package/dist/serialization/resources/empathicVoice/types/ReturnLanguageModelModelResource.d.ts +0 -10
- package/serialization/resources/empathicVoice/types/PostedLanguageModelModelProvider.d.ts +0 -10
- package/serialization/resources/empathicVoice/types/PostedLanguageModelModelProvider.js +0 -50
- package/serialization/resources/empathicVoice/types/PostedLanguageModelModelResource.d.ts +0 -10
- package/serialization/resources/empathicVoice/types/PostedLanguageModelModelResource.js +0 -67
- package/serialization/resources/empathicVoice/types/ReturnLanguageModelModelProvider.d.ts +0 -10
- package/serialization/resources/empathicVoice/types/ReturnLanguageModelModelProvider.js +0 -50
- package/serialization/resources/empathicVoice/types/ReturnLanguageModelModelResource.d.ts +0 -10
|
@@ -7,7 +7,7 @@ service:
|
|
|
7
7
|
list-prompts:
|
|
8
8
|
path: /v0/evi/prompts
|
|
9
9
|
method: GET
|
|
10
|
-
auth:
|
|
10
|
+
auth: true
|
|
11
11
|
docs: >-
|
|
12
12
|
Fetches a paginated list of **Prompts**.
|
|
13
13
|
|
|
@@ -100,7 +100,7 @@ service:
|
|
|
100
100
|
create-prompt:
|
|
101
101
|
path: /v0/evi/prompts
|
|
102
102
|
method: POST
|
|
103
|
-
auth:
|
|
103
|
+
auth: true
|
|
104
104
|
docs: >-
|
|
105
105
|
Creates a **Prompt** that can be added to an [EVI
|
|
106
106
|
configuration](/reference/empathic-voice-interface-evi/configs/create-config).
|
|
@@ -174,7 +174,7 @@ service:
|
|
|
174
174
|
list-prompt-versions:
|
|
175
175
|
path: /v0/evi/prompts/{id}
|
|
176
176
|
method: GET
|
|
177
|
-
auth:
|
|
177
|
+
auth: true
|
|
178
178
|
docs: >-
|
|
179
179
|
Fetches a list of a **Prompt's** versions.
|
|
180
180
|
|
|
@@ -251,7 +251,7 @@ service:
|
|
|
251
251
|
create-prompt-version:
|
|
252
252
|
path: /v0/evi/prompts/{id}
|
|
253
253
|
method: POST
|
|
254
|
-
auth:
|
|
254
|
+
auth: true
|
|
255
255
|
docs: >-
|
|
256
256
|
Updates a **Prompt** by creating a new version of the **Prompt**.
|
|
257
257
|
|
|
@@ -328,7 +328,7 @@ service:
|
|
|
328
328
|
delete-prompt:
|
|
329
329
|
path: /v0/evi/prompts/{id}
|
|
330
330
|
method: DELETE
|
|
331
|
-
auth:
|
|
331
|
+
auth: true
|
|
332
332
|
docs: >-
|
|
333
333
|
Deletes a **Prompt** and its versions.
|
|
334
334
|
|
|
@@ -351,7 +351,7 @@ service:
|
|
|
351
351
|
update-prompt-name:
|
|
352
352
|
path: /v0/evi/prompts/{id}
|
|
353
353
|
method: PATCH
|
|
354
|
-
auth:
|
|
354
|
+
auth: true
|
|
355
355
|
docs: >-
|
|
356
356
|
Updates the name of a **Prompt**.
|
|
357
357
|
|
|
@@ -388,7 +388,7 @@ service:
|
|
|
388
388
|
get-prompt-version:
|
|
389
389
|
path: /v0/evi/prompts/{id}/version/{version}
|
|
390
390
|
method: GET
|
|
391
|
-
auth:
|
|
391
|
+
auth: true
|
|
392
392
|
docs: >-
|
|
393
393
|
Fetches a specified version of a **Prompt**.
|
|
394
394
|
|
|
@@ -447,7 +447,7 @@ service:
|
|
|
447
447
|
delete-prompt-version:
|
|
448
448
|
path: /v0/evi/prompts/{id}/version/{version}
|
|
449
449
|
method: DELETE
|
|
450
|
-
auth:
|
|
450
|
+
auth: true
|
|
451
451
|
docs: >-
|
|
452
452
|
Deletes a specified version of a **Prompt**.
|
|
453
453
|
|
|
@@ -486,7 +486,7 @@ service:
|
|
|
486
486
|
update-prompt-description:
|
|
487
487
|
path: /v0/evi/prompts/{id}/version/{version}
|
|
488
488
|
method: PATCH
|
|
489
|
-
auth:
|
|
489
|
+
auth: true
|
|
490
490
|
docs: >-
|
|
491
491
|
Updates the description of a **Prompt**.
|
|
492
492
|
|
|
@@ -7,7 +7,7 @@ service:
|
|
|
7
7
|
list-tools:
|
|
8
8
|
path: /v0/evi/tools
|
|
9
9
|
method: GET
|
|
10
|
-
auth:
|
|
10
|
+
auth: true
|
|
11
11
|
docs: >-
|
|
12
12
|
Fetches a paginated list of **Tools**.
|
|
13
13
|
|
|
@@ -109,7 +109,7 @@ service:
|
|
|
109
109
|
create-tool:
|
|
110
110
|
path: /v0/evi/tools
|
|
111
111
|
method: POST
|
|
112
|
-
auth:
|
|
112
|
+
auth: true
|
|
113
113
|
docs: >-
|
|
114
114
|
Creates a **Tool** that can be added to an [EVI
|
|
115
115
|
configuration](/reference/empathic-voice-interface-evi/configs/create-config).
|
|
@@ -201,7 +201,7 @@ service:
|
|
|
201
201
|
list-tool-versions:
|
|
202
202
|
path: /v0/evi/tools/{id}
|
|
203
203
|
method: GET
|
|
204
|
-
auth:
|
|
204
|
+
auth: true
|
|
205
205
|
docs: >-
|
|
206
206
|
Fetches a list of a **Tool's** versions.
|
|
207
207
|
|
|
@@ -287,7 +287,7 @@ service:
|
|
|
287
287
|
create-tool-version:
|
|
288
288
|
path: /v0/evi/tools/{id}
|
|
289
289
|
method: POST
|
|
290
|
-
auth:
|
|
290
|
+
auth: true
|
|
291
291
|
docs: >-
|
|
292
292
|
Updates a **Tool** by creating a new version of the **Tool**.
|
|
293
293
|
|
|
@@ -380,7 +380,7 @@ service:
|
|
|
380
380
|
delete-tool:
|
|
381
381
|
path: /v0/evi/tools/{id}
|
|
382
382
|
method: DELETE
|
|
383
|
-
auth:
|
|
383
|
+
auth: true
|
|
384
384
|
docs: >-
|
|
385
385
|
Deletes a **Tool** and its versions.
|
|
386
386
|
|
|
@@ -404,7 +404,7 @@ service:
|
|
|
404
404
|
update-tool-name:
|
|
405
405
|
path: /v0/evi/tools/{id}
|
|
406
406
|
method: PATCH
|
|
407
|
-
auth:
|
|
407
|
+
auth: true
|
|
408
408
|
docs: >-
|
|
409
409
|
Updates the name of a **Tool**.
|
|
410
410
|
|
|
@@ -442,7 +442,7 @@ service:
|
|
|
442
442
|
get-tool-version:
|
|
443
443
|
path: /v0/evi/tools/{id}/version/{version}
|
|
444
444
|
method: GET
|
|
445
|
-
auth:
|
|
445
|
+
auth: true
|
|
446
446
|
docs: >-
|
|
447
447
|
Fetches a specified version of a **Tool**.
|
|
448
448
|
|
|
@@ -506,7 +506,7 @@ service:
|
|
|
506
506
|
delete-tool-version:
|
|
507
507
|
path: /v0/evi/tools/{id}/version/{version}
|
|
508
508
|
method: DELETE
|
|
509
|
-
auth:
|
|
509
|
+
auth: true
|
|
510
510
|
docs: >-
|
|
511
511
|
Deletes a specified version of a **Tool**.
|
|
512
512
|
|
|
@@ -545,7 +545,7 @@ service:
|
|
|
545
545
|
update-tool-description:
|
|
546
546
|
path: /v0/evi/tools/{id}/version/{version}
|
|
547
547
|
method: PATCH
|
|
548
|
-
auth:
|
|
548
|
+
auth: true
|
|
549
549
|
docs: >-
|
|
550
550
|
Updates the description of a specified **Tool** version.
|
|
551
551
|
|
|
@@ -358,6 +358,27 @@ types:
|
|
|
358
358
|
additional controls to guide delivery for `speed` and
|
|
359
359
|
`trailing_silence`.
|
|
360
360
|
type: list<PostedUtterance>
|
|
361
|
+
instant_mode:
|
|
362
|
+
type: optional<boolean>
|
|
363
|
+
docs: >-
|
|
364
|
+
Enables ultra-low latency streaming, significantly reducing the time
|
|
365
|
+
until the first audio chunk is received. Recommended for real-time
|
|
366
|
+
applications requiring immediate audio playback. For further details,
|
|
367
|
+
see our documentation on [instant
|
|
368
|
+
mode](/docs/text-to-speech-tts/overview#ultra-low-latency-streaming-instant-mode).
|
|
369
|
+
|
|
370
|
+
- Dynamic voice generation is not supported with this mode; a
|
|
371
|
+
predefined
|
|
372
|
+
[voice](/reference/text-to-speech-tts/synthesize-json-streaming#request.body.utterances.voice)
|
|
373
|
+
must be specified in your request.
|
|
374
|
+
|
|
375
|
+
- This mode is only supported for streaming endpoints (e.g.,
|
|
376
|
+
[/v0/tts/stream/json](/reference/text-to-speech-tts/synthesize-json-streaming),
|
|
377
|
+
[/v0/tts/stream/file](/reference/text-to-speech-tts/synthesize-file-streaming)).
|
|
378
|
+
|
|
379
|
+
- With `instant_mode` enabled, **requests incur a 10% higher cost**
|
|
380
|
+
due to increased compute and resource requirements.
|
|
381
|
+
default: false
|
|
361
382
|
source:
|
|
362
383
|
openapi: tts-openapi.yml
|
|
363
384
|
ReturnTts:
|
|
@@ -431,17 +452,25 @@ types:
|
|
|
431
452
|
docs: The index of the audio chunk in the snippet.
|
|
432
453
|
generation_id:
|
|
433
454
|
type: string
|
|
434
|
-
docs:
|
|
455
|
+
docs: >-
|
|
456
|
+
The generation ID of the parent snippet that this chunk corresponds
|
|
457
|
+
to.
|
|
435
458
|
is_last_chunk:
|
|
436
459
|
type: boolean
|
|
437
460
|
docs: >-
|
|
438
461
|
Whether or not this is the last chunk streamed back from the decoder
|
|
439
462
|
for one input snippet.
|
|
463
|
+
snippet_id:
|
|
464
|
+
type: string
|
|
465
|
+
docs: The ID of the parent snippet that this chunk corresponds to.
|
|
466
|
+
text:
|
|
467
|
+
type: string
|
|
468
|
+
docs: The text of the parent snippet that this chunk corresponds to.
|
|
440
469
|
utterance_index:
|
|
441
470
|
type: optional<integer>
|
|
442
471
|
docs: >-
|
|
443
|
-
The index of the utterance in the request the parent snippet of
|
|
444
|
-
chunk corresponds to.
|
|
472
|
+
The index of the utterance in the request that the parent snippet of
|
|
473
|
+
this chunk corresponds to.
|
|
445
474
|
source:
|
|
446
475
|
openapi: tts-openapi.yml
|
|
447
476
|
PostedUtterance:
|
|
@@ -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.
|
|
99
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.2", "User-Agent": "hume/0.10.2", "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",
|
|
@@ -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.
|
|
190
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.2", "User-Agent": "hume/0.10.2", "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.
|
|
271
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.2", "User-Agent": "hume/0.10.2", "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",
|
|
@@ -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.
|
|
362
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.2", "User-Agent": "hume/0.10.2", "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",
|
|
@@ -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.
|
|
98
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.2", "User-Agent": "hume/0.10.2", "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",
|
|
@@ -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.
|
|
190
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.2", "User-Agent": "hume/0.10.2", "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",
|
|
@@ -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.
|
|
265
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.2", "User-Agent": "hume/0.10.2", "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,
|
|
@@ -67,7 +67,7 @@ export declare class Configs {
|
|
|
67
67
|
* },
|
|
68
68
|
* languageModel: {
|
|
69
69
|
* modelProvider: "ANTHROPIC",
|
|
70
|
-
* modelResource: "claude-3-7-sonnet",
|
|
70
|
+
* modelResource: "claude-3-7-sonnet-latest",
|
|
71
71
|
* temperature: 1
|
|
72
72
|
* },
|
|
73
73
|
* eventMessages: {
|
|
@@ -127,7 +127,7 @@ export declare class Configs {
|
|
|
127
127
|
* },
|
|
128
128
|
* languageModel: {
|
|
129
129
|
* modelProvider: "ANTHROPIC",
|
|
130
|
-
* modelResource: "claude-3-7-sonnet",
|
|
130
|
+
* modelResource: "claude-3-7-sonnet-latest",
|
|
131
131
|
* temperature: 1
|
|
132
132
|
* },
|
|
133
133
|
* ellmModel: {
|
|
@@ -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.
|
|
99
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.2", "User-Agent": "hume/0.10.2", "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",
|
|
@@ -178,7 +178,7 @@ class Configs {
|
|
|
178
178
|
* },
|
|
179
179
|
* languageModel: {
|
|
180
180
|
* modelProvider: "ANTHROPIC",
|
|
181
|
-
* modelResource: "claude-3-7-sonnet",
|
|
181
|
+
* modelResource: "claude-3-7-sonnet-latest",
|
|
182
182
|
* temperature: 1
|
|
183
183
|
* },
|
|
184
184
|
* eventMessages: {
|
|
@@ -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.
|
|
206
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.2", "User-Agent": "hume/0.10.2", "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.
|
|
285
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.2", "User-Agent": "hume/0.10.2", "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",
|
|
@@ -365,7 +365,7 @@ class Configs {
|
|
|
365
365
|
* },
|
|
366
366
|
* languageModel: {
|
|
367
367
|
* modelProvider: "ANTHROPIC",
|
|
368
|
-
* modelResource: "claude-3-7-sonnet",
|
|
368
|
+
* modelResource: "claude-3-7-sonnet-latest",
|
|
369
369
|
* temperature: 1
|
|
370
370
|
* },
|
|
371
371
|
* ellmModel: {
|
|
@@ -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.
|
|
396
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.2", "User-Agent": "hume/0.10.2", "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.
|
|
464
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.2", "User-Agent": "hume/0.10.2", "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.
|
|
527
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.2", "User-Agent": "hume/0.10.2", "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.
|
|
594
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.2", "User-Agent": "hume/0.10.2", "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.
|
|
664
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.2", "User-Agent": "hume/0.10.2", "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.
|
|
732
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.2", "User-Agent": "hume/0.10.2", "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, {
|
|
@@ -90,7 +90,7 @@ class CustomVoices {
|
|
|
90
90
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
91
91
|
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/custom_voices"),
|
|
92
92
|
method: "GET",
|
|
93
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.
|
|
93
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.2", "User-Agent": "hume/0.10.2", "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),
|
|
94
94
|
contentType: "application/json",
|
|
95
95
|
queryParameters: _queryParams,
|
|
96
96
|
requestType: "json",
|
|
@@ -171,7 +171,7 @@ class CustomVoices {
|
|
|
171
171
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
172
172
|
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/custom_voices"),
|
|
173
173
|
method: "POST",
|
|
174
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.
|
|
174
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.2", "User-Agent": "hume/0.10.2", "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),
|
|
175
175
|
contentType: "application/json",
|
|
176
176
|
requestType: "json",
|
|
177
177
|
body: serializers.empathicVoice.PostedCustomVoice.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -237,7 +237,7 @@ class CustomVoices {
|
|
|
237
237
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
238
238
|
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/custom_voices/${encodeURIComponent(id)}`),
|
|
239
239
|
method: "GET",
|
|
240
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.
|
|
240
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.2", "User-Agent": "hume/0.10.2", "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),
|
|
241
241
|
contentType: "application/json",
|
|
242
242
|
requestType: "json",
|
|
243
243
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -307,7 +307,7 @@ class CustomVoices {
|
|
|
307
307
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
308
308
|
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/custom_voices/${encodeURIComponent(id)}`),
|
|
309
309
|
method: "POST",
|
|
310
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.
|
|
310
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.2", "User-Agent": "hume/0.10.2", "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),
|
|
311
311
|
contentType: "application/json",
|
|
312
312
|
requestType: "json",
|
|
313
313
|
body: serializers.empathicVoice.PostedCustomVoice.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -373,7 +373,7 @@ class CustomVoices {
|
|
|
373
373
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
374
374
|
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/custom_voices/${encodeURIComponent(id)}`),
|
|
375
375
|
method: "DELETE",
|
|
376
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.
|
|
376
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.2", "User-Agent": "hume/0.10.2", "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),
|
|
377
377
|
contentType: "application/json",
|
|
378
378
|
requestType: "json",
|
|
379
379
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -436,7 +436,7 @@ class CustomVoices {
|
|
|
436
436
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
437
437
|
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/custom_voices/${encodeURIComponent(id)}`),
|
|
438
438
|
method: "PATCH",
|
|
439
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.
|
|
439
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.2", "User-Agent": "hume/0.10.2", "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),
|
|
440
440
|
contentType: "application/json",
|
|
441
441
|
requestType: "json",
|
|
442
442
|
body: serializers.empathicVoice.PostedCustomVoiceName.jsonOrThrow(request, {
|
|
@@ -96,7 +96,7 @@ class Prompts {
|
|
|
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/prompts"),
|
|
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.
|
|
99
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.2", "User-Agent": "hume/0.10.2", "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",
|
|
@@ -176,7 +176,7 @@ class Prompts {
|
|
|
176
176
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
177
177
|
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/prompts"),
|
|
178
178
|
method: "POST",
|
|
179
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.
|
|
179
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.2", "User-Agent": "hume/0.10.2", "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),
|
|
180
180
|
contentType: "application/json",
|
|
181
181
|
requestType: "json",
|
|
182
182
|
body: serializers.empathicVoice.PostedPrompt.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -254,7 +254,7 @@ class Prompts {
|
|
|
254
254
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
255
255
|
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/prompts/${encodeURIComponent(id)}`),
|
|
256
256
|
method: "GET",
|
|
257
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.
|
|
257
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.2", "User-Agent": "hume/0.10.2", "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),
|
|
258
258
|
contentType: "application/json",
|
|
259
259
|
queryParameters: _queryParams,
|
|
260
260
|
requestType: "json",
|
|
@@ -324,7 +324,7 @@ class Prompts {
|
|
|
324
324
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
325
325
|
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/prompts/${encodeURIComponent(id)}`),
|
|
326
326
|
method: "POST",
|
|
327
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.
|
|
327
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.2", "User-Agent": "hume/0.10.2", "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),
|
|
328
328
|
contentType: "application/json",
|
|
329
329
|
requestType: "json",
|
|
330
330
|
body: serializers.empathicVoice.PostedPromptVersion.jsonOrThrow(request, {
|
|
@@ -392,7 +392,7 @@ class Prompts {
|
|
|
392
392
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
393
393
|
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/prompts/${encodeURIComponent(id)}`),
|
|
394
394
|
method: "DELETE",
|
|
395
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.
|
|
395
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.2", "User-Agent": "hume/0.10.2", "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
396
|
contentType: "application/json",
|
|
397
397
|
requestType: "json",
|
|
398
398
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -455,7 +455,7 @@ class Prompts {
|
|
|
455
455
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
456
456
|
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/prompts/${encodeURIComponent(id)}`),
|
|
457
457
|
method: "PATCH",
|
|
458
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.
|
|
458
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.2", "User-Agent": "hume/0.10.2", "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),
|
|
459
459
|
contentType: "application/json",
|
|
460
460
|
requestType: "json",
|
|
461
461
|
body: serializers.empathicVoice.PostedPromptName.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -522,7 +522,7 @@ class Prompts {
|
|
|
522
522
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
523
523
|
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/prompts/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
|
|
524
524
|
method: "GET",
|
|
525
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.
|
|
525
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.2", "User-Agent": "hume/0.10.2", "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),
|
|
526
526
|
contentType: "application/json",
|
|
527
527
|
requestType: "json",
|
|
528
528
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -592,7 +592,7 @@ class Prompts {
|
|
|
592
592
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
593
593
|
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/prompts/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
|
|
594
594
|
method: "DELETE",
|
|
595
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.
|
|
595
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.2", "User-Agent": "hume/0.10.2", "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),
|
|
596
596
|
contentType: "application/json",
|
|
597
597
|
requestType: "json",
|
|
598
598
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -660,7 +660,7 @@ class Prompts {
|
|
|
660
660
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
661
661
|
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/prompts/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
|
|
662
662
|
method: "PATCH",
|
|
663
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.
|
|
663
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.2", "User-Agent": "hume/0.10.2", "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
664
|
contentType: "application/json",
|
|
665
665
|
requestType: "json",
|
|
666
666
|
body: serializers.empathicVoice.PostedPromptVersionDescription.jsonOrThrow(request, {
|