hume 0.9.13 → 0.9.15

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 (60) hide show
  1. package/.mock/definition/expression-measurement/batch/__package__.yml +61 -76
  2. package/.mock/definition/tts/__package__.yml +113 -15
  3. package/api/resources/empathicVoice/resources/chatGroups/client/Client.js +4 -4
  4. package/api/resources/empathicVoice/resources/chats/client/Client.js +3 -3
  5. package/api/resources/empathicVoice/resources/configs/client/Client.js +9 -9
  6. package/api/resources/empathicVoice/resources/customVoices/client/Client.js +6 -6
  7. package/api/resources/empathicVoice/resources/prompts/client/Client.js +9 -9
  8. package/api/resources/empathicVoice/resources/tools/client/Client.js +9 -9
  9. package/api/resources/expressionMeasurement/resources/batch/client/Client.js +6 -6
  10. package/api/resources/index.d.ts +1 -1
  11. package/api/resources/index.js +2 -2
  12. package/api/resources/tts/client/Client.d.ts +11 -0
  13. package/api/resources/tts/client/Client.js +124 -2
  14. package/api/resources/tts/resources/voices/client/Client.js +1 -1
  15. package/api/resources/tts/types/PostedTts.d.ts +10 -0
  16. package/api/resources/tts/types/Snippet.d.ts +0 -2
  17. package/core/index.d.ts +1 -0
  18. package/core/index.js +1 -0
  19. package/core/streaming-fetcher/Stream.d.ts +48 -0
  20. package/core/streaming-fetcher/Stream.js +170 -0
  21. package/core/streaming-fetcher/index.d.ts +1 -0
  22. package/core/streaming-fetcher/index.js +5 -0
  23. package/dist/api/resources/empathicVoice/resources/chatGroups/client/Client.js +4 -4
  24. package/dist/api/resources/empathicVoice/resources/chats/client/Client.js +3 -3
  25. package/dist/api/resources/empathicVoice/resources/configs/client/Client.js +9 -9
  26. package/dist/api/resources/empathicVoice/resources/customVoices/client/Client.js +6 -6
  27. package/dist/api/resources/empathicVoice/resources/prompts/client/Client.js +9 -9
  28. package/dist/api/resources/empathicVoice/resources/tools/client/Client.js +9 -9
  29. package/dist/api/resources/expressionMeasurement/resources/batch/client/Client.js +6 -6
  30. package/dist/api/resources/index.d.ts +1 -1
  31. package/dist/api/resources/index.js +2 -2
  32. package/dist/api/resources/tts/client/Client.d.ts +11 -0
  33. package/dist/api/resources/tts/client/Client.js +124 -2
  34. package/dist/api/resources/tts/resources/voices/client/Client.js +1 -1
  35. package/dist/api/resources/tts/types/PostedTts.d.ts +10 -0
  36. package/dist/api/resources/tts/types/Snippet.d.ts +0 -2
  37. package/dist/core/index.d.ts +1 -0
  38. package/dist/core/index.js +1 -0
  39. package/dist/core/streaming-fetcher/Stream.d.ts +48 -0
  40. package/dist/core/streaming-fetcher/Stream.js +170 -0
  41. package/dist/core/streaming-fetcher/index.d.ts +1 -0
  42. package/dist/core/streaming-fetcher/index.js +5 -0
  43. package/dist/serialization/resources/index.d.ts +1 -1
  44. package/dist/serialization/resources/index.js +2 -2
  45. package/dist/serialization/resources/tts/types/PostedTts.d.ts +1 -0
  46. package/dist/serialization/resources/tts/types/PostedTts.js +1 -0
  47. package/dist/serialization/resources/tts/types/Snippet.d.ts +0 -1
  48. package/dist/serialization/resources/tts/types/Snippet.js +0 -1
  49. package/dist/version.d.ts +1 -1
  50. package/dist/version.js +1 -1
  51. package/package.json +1 -1
  52. package/reference.md +716 -553
  53. package/serialization/resources/index.d.ts +1 -1
  54. package/serialization/resources/index.js +2 -2
  55. package/serialization/resources/tts/types/PostedTts.d.ts +1 -0
  56. package/serialization/resources/tts/types/PostedTts.js +1 -0
  57. package/serialization/resources/tts/types/Snippet.d.ts +0 -1
  58. package/serialization/resources/tts/types/Snippet.js +0 -1
  59. package/version.d.ts +1 -1
  60. package/version.js +1 -1
@@ -1295,176 +1295,169 @@ types:
1295
1295
  source:
1296
1296
  openapi: batch-openapi.json
1297
1297
  Source:
1298
- discriminated: false
1298
+ discriminant: type
1299
+ base-properties: {}
1299
1300
  union:
1300
- - SourceUrl
1301
- - SourceFile
1302
- - SourceTextSource
1301
+ url: SourceUrl
1302
+ file: SourceFile
1303
+ text: SourceTextSource
1303
1304
  source:
1304
1305
  openapi: batch-openapi.json
1305
1306
  SourceFile:
1306
- properties:
1307
- type: literal<"file">
1307
+ properties: {}
1308
1308
  extends:
1309
1309
  - File
1310
1310
  source:
1311
1311
  openapi: batch-openapi.json
1312
1312
  SourceTextSource:
1313
- properties:
1314
- type: literal<"text">
1313
+ properties: {}
1315
1314
  source:
1316
1315
  openapi: batch-openapi.json
1317
1316
  SourceUrl:
1318
- properties:
1319
- type: literal<"url">
1317
+ properties: {}
1320
1318
  extends:
1321
1319
  - Url
1322
1320
  source:
1323
1321
  openapi: batch-openapi.json
1322
+ Url:
1323
+ properties:
1324
+ url:
1325
+ type: string
1326
+ docs: The URL of the source media file.
1327
+ source:
1328
+ openapi: batch-openapi.json
1324
1329
  StateEmbeddingGeneration:
1325
- discriminated: false
1330
+ discriminant: status
1331
+ base-properties: {}
1326
1332
  union:
1327
- - StateEmbeddingGenerationQueued
1328
- - StateEmbeddingGenerationInProgress
1329
- - StateEmbeddingGenerationCompletedEmbeddingGeneration
1330
- - StateEmbeddingGenerationFailed
1333
+ QUEUED: StateEmbeddingGenerationQueued
1334
+ IN_PROGRESS: StateEmbeddingGenerationInProgress
1335
+ COMPLETED: StateEmbeddingGenerationCompletedEmbeddingGeneration
1336
+ FAILED: StateEmbeddingGenerationFailed
1331
1337
  source:
1332
1338
  openapi: batch-openapi.json
1333
1339
  StateEmbeddingGenerationCompletedEmbeddingGeneration:
1334
- properties:
1335
- status: literal<"COMPLETED">
1340
+ properties: {}
1336
1341
  extends:
1337
1342
  - CompletedEmbeddingGeneration
1338
1343
  source:
1339
1344
  openapi: batch-openapi.json
1340
1345
  StateEmbeddingGenerationFailed:
1341
- properties:
1342
- status: literal<"FAILED">
1346
+ properties: {}
1343
1347
  extends:
1344
1348
  - Failed
1345
1349
  source:
1346
1350
  openapi: batch-openapi.json
1347
1351
  StateEmbeddingGenerationInProgress:
1348
- properties:
1349
- status: literal<"IN_PROGRESS">
1352
+ properties: {}
1350
1353
  extends:
1351
1354
  - InProgress
1352
1355
  source:
1353
1356
  openapi: batch-openapi.json
1354
1357
  StateEmbeddingGenerationQueued:
1355
- properties:
1356
- status: literal<"QUEUED">
1358
+ properties: {}
1357
1359
  extends:
1358
1360
  - Queued
1359
1361
  source:
1360
1362
  openapi: batch-openapi.json
1361
1363
  StateInference:
1362
- discriminated: false
1364
+ discriminant: status
1365
+ base-properties: {}
1363
1366
  union:
1364
- - QueuedState
1365
- - InProgressState
1366
- - CompletedState
1367
- - FailedState
1367
+ QUEUED: QueuedState
1368
+ IN_PROGRESS: InProgressState
1369
+ COMPLETED: CompletedState
1370
+ FAILED: FailedState
1368
1371
  source:
1369
1372
  openapi: batch-openapi.json
1370
1373
  CompletedState:
1371
- properties:
1372
- status: literal<"COMPLETED">
1374
+ properties: {}
1373
1375
  extends:
1374
1376
  - CompletedInference
1375
1377
  source:
1376
1378
  openapi: batch-openapi.json
1377
1379
  FailedState:
1378
- properties:
1379
- status: literal<"FAILED">
1380
+ properties: {}
1380
1381
  extends:
1381
1382
  - Failed
1382
1383
  source:
1383
1384
  openapi: batch-openapi.json
1384
1385
  InProgressState:
1385
- properties:
1386
- status: literal<"IN_PROGRESS">
1386
+ properties: {}
1387
1387
  extends:
1388
1388
  - InProgress
1389
1389
  source:
1390
1390
  openapi: batch-openapi.json
1391
1391
  QueuedState:
1392
- properties:
1393
- status: literal<"QUEUED">
1392
+ properties: {}
1394
1393
  extends:
1395
1394
  - Queued
1396
1395
  source:
1397
1396
  openapi: batch-openapi.json
1398
1397
  StateTlInference:
1399
- discriminated: false
1398
+ discriminant: status
1399
+ base-properties: {}
1400
1400
  union:
1401
- - StateTlInferenceQueued
1402
- - StateTlInferenceInProgress
1403
- - StateTlInferenceCompletedTlInference
1404
- - StateTlInferenceFailed
1401
+ QUEUED: StateTlInferenceQueued
1402
+ IN_PROGRESS: StateTlInferenceInProgress
1403
+ COMPLETED: StateTlInferenceCompletedTlInference
1404
+ FAILED: StateTlInferenceFailed
1405
1405
  source:
1406
1406
  openapi: batch-openapi.json
1407
1407
  StateTlInferenceCompletedTlInference:
1408
- properties:
1409
- status: literal<"COMPLETED">
1408
+ properties: {}
1410
1409
  extends:
1411
1410
  - CompletedTlInference
1412
1411
  source:
1413
1412
  openapi: batch-openapi.json
1414
1413
  StateTlInferenceFailed:
1415
- properties:
1416
- status: literal<"FAILED">
1414
+ properties: {}
1417
1415
  extends:
1418
1416
  - Failed
1419
1417
  source:
1420
1418
  openapi: batch-openapi.json
1421
1419
  StateTlInferenceInProgress:
1422
- properties:
1423
- status: literal<"IN_PROGRESS">
1420
+ properties: {}
1424
1421
  extends:
1425
1422
  - InProgress
1426
1423
  source:
1427
1424
  openapi: batch-openapi.json
1428
1425
  StateTlInferenceQueued:
1429
- properties:
1430
- status: literal<"QUEUED">
1426
+ properties: {}
1431
1427
  extends:
1432
1428
  - Queued
1433
1429
  source:
1434
1430
  openapi: batch-openapi.json
1435
1431
  StateTraining:
1436
- discriminated: false
1432
+ discriminant: status
1433
+ base-properties: {}
1437
1434
  union:
1438
- - StateTrainingQueued
1439
- - StateTrainingInProgress
1440
- - StateTrainingCompletedTraining
1441
- - StateTrainingFailed
1435
+ QUEUED: StateTrainingQueued
1436
+ IN_PROGRESS: StateTrainingInProgress
1437
+ COMPLETED: StateTrainingCompletedTraining
1438
+ FAILED: StateTrainingFailed
1442
1439
  source:
1443
1440
  openapi: batch-openapi.json
1444
1441
  StateTrainingCompletedTraining:
1445
- properties:
1446
- status: literal<"COMPLETED">
1442
+ properties: {}
1447
1443
  extends:
1448
1444
  - CompletedTraining
1449
1445
  source:
1450
1446
  openapi: batch-openapi.json
1451
1447
  StateTrainingFailed:
1452
- properties:
1453
- status: literal<"FAILED">
1448
+ properties: {}
1454
1449
  extends:
1455
1450
  - Failed
1456
1451
  source:
1457
1452
  openapi: batch-openapi.json
1458
1453
  StateTrainingInProgress:
1459
- properties:
1460
- status: literal<"IN_PROGRESS">
1454
+ properties: {}
1461
1455
  extends:
1462
1456
  - InProgress
1463
1457
  source:
1464
1458
  openapi: batch-openapi.json
1465
1459
  StateTrainingQueued:
1466
- properties:
1467
- status: literal<"QUEUED">
1460
+ properties: {}
1468
1461
  extends:
1469
1462
  - Queued
1470
1463
  source:
@@ -1516,20 +1509,19 @@ types:
1516
1509
  source:
1517
1510
  openapi: batch-openapi.json
1518
1511
  Task:
1519
- discriminated: false
1512
+ discriminant: type
1513
+ base-properties: {}
1520
1514
  union:
1521
- - TaskClassification
1522
- - TaskRegression
1515
+ classification: TaskClassification
1516
+ regression: TaskRegression
1523
1517
  source:
1524
1518
  openapi: batch-openapi.json
1525
1519
  TaskClassification:
1526
- properties:
1527
- type: literal<"classification">
1520
+ properties: {}
1528
1521
  source:
1529
1522
  openapi: batch-openapi.json
1530
1523
  TaskRegression:
1531
- properties:
1532
- type: literal<"regression">
1524
+ properties: {}
1533
1525
  source:
1534
1526
  openapi: batch-openapi.json
1535
1527
  TextSource: map<string, unknown>
@@ -1774,13 +1766,6 @@ types:
1774
1766
  source:
1775
1767
  openapi: batch-openapi.json
1776
1768
  UnionPredictResult: InferenceSourcePredictResult
1777
- Url:
1778
- properties:
1779
- url:
1780
- type: string
1781
- docs: The URL of the source media file.
1782
- source:
1783
- openapi: batch-openapi.json
1784
1769
  ValidationArgs:
1785
1770
  properties:
1786
1771
  positive_label: optional<Target>
@@ -67,7 +67,6 @@ service:
67
67
  audio: //PExAA0DDYRvkpNfhv3JI5JZ...etc.
68
68
  snippets:
69
69
  - - audio: //PExAA0DDYRvkpNfhv3JI5JZ...etc.
70
- audio_format: mp3
71
70
  id: 37b1b1b1-1b1b-1b1b-1b1b-1b1b1b1b1b1b
72
71
  text: >-
73
72
  Beauty is no quality in things themselves: It exists
@@ -114,6 +113,88 @@ service:
114
113
  format:
115
114
  type: mp3
116
115
  num_generations: 1
116
+ synthesize-file-streaming:
117
+ path: /v0/tts/stream/file
118
+ method: POST
119
+ auth: true
120
+ docs: >-
121
+ Streams synthesized speech using the specified voice. If no voice is
122
+ provided, a novel voice will be generated dynamically. Optionally,
123
+ additional context can be included to influence the speech's style and
124
+ prosody.
125
+ source:
126
+ openapi: tts-openapi.yml
127
+ display-name: Text-to-speech (Streamed File)
128
+ request:
129
+ body:
130
+ type: PostedTts
131
+ content-type: application/json
132
+ response:
133
+ docs: OK
134
+ type: file
135
+ status-code: 200
136
+ errors:
137
+ - UnprocessableEntityError
138
+ examples:
139
+ - request:
140
+ utterances:
141
+ - text: >-
142
+ Beauty is no quality in things themselves: It exists merely in
143
+ the mind which contemplates them.
144
+ description: >-
145
+ Middle-aged masculine voice with a clear, rhythmic Scots lilt,
146
+ rounded vowels, and a warm, steady tone with an articulate,
147
+ academic quality.
148
+ context:
149
+ generation_id: 09ad914d-8e7f-40f8-a279-e34f07f7dab2
150
+ format:
151
+ type: mp3
152
+ num_generations: 1
153
+ synthesize-json-streaming:
154
+ path: /v0/tts/stream/json
155
+ method: POST
156
+ auth: true
157
+ docs: >-
158
+ Streams synthesized speech using the specified voice. If no voice is
159
+ provided, a novel voice will be generated dynamically. Optionally,
160
+ additional context can be included to influence the speech's style and
161
+ prosody.
162
+
163
+
164
+ The response is a stream of JSON objects including audio encoded in
165
+ base64.
166
+ source:
167
+ openapi: tts-openapi.yml
168
+ display-name: Text-to-speech (Streamed JSON)
169
+ request:
170
+ body:
171
+ type: PostedTts
172
+ content-type: application/json
173
+ response-stream:
174
+ docs: Successful Response
175
+ type: Snippet
176
+ format: json
177
+ errors:
178
+ - UnprocessableEntityError
179
+ examples:
180
+ - request:
181
+ utterances:
182
+ - text: >-
183
+ Beauty is no quality in things themselves: It exists merely in
184
+ the mind which contemplates them.
185
+ description: >-
186
+ Middle-aged masculine voice with a clear, rhythmic Scots lilt,
187
+ rounded vowels, and a warm, steady tone with an articulate,
188
+ academic quality.
189
+ context:
190
+ utterances:
191
+ - text: How can people see beauty so differently?
192
+ description: >-
193
+ A curious student with a clear and respectful tone, seeking
194
+ clarification on Hume's ideas with a straightforward
195
+ question.
196
+ format:
197
+ type: mp3
117
198
  source:
118
199
  openapi: tts-openapi.yml
119
200
  types:
@@ -186,8 +267,7 @@ types:
186
267
  source:
187
268
  openapi: tts-openapi.yml
188
269
  FormatMp3:
189
- properties:
190
- type: literal<"mp3">
270
+ properties: {}
191
271
  source:
192
272
  openapi: tts-openapi.yml
193
273
  PostedContext:
@@ -203,15 +283,18 @@ types:
203
283
  openapi: tts-openapi.yml
204
284
  inline: true
205
285
  Format:
206
- discriminated: false
286
+ discriminant: type
287
+ base-properties: {}
207
288
  docs: Specifies the output audio file format.
208
289
  union:
209
- - type: FormatMp3
210
- - type: FormatPcm
211
- - type: FormatWav
290
+ mp3:
291
+ type: FormatMp3
292
+ pcm:
293
+ type: FormatPcm
294
+ wav:
295
+ type: FormatWav
212
296
  source:
213
297
  openapi: tts-openapi.yml
214
- inline: true
215
298
  PostedTts:
216
299
  properties:
217
300
  context:
@@ -230,6 +313,26 @@ types:
230
313
  validation:
231
314
  min: 1
232
315
  max: 5
316
+ split_utterances:
317
+ type: optional<boolean>
318
+ docs: >-
319
+ Controls how audio output is segmented in the response.
320
+
321
+
322
+ - When **enabled** (`true`), input utterances are automatically split
323
+ into natural-sounding speech segments.
324
+
325
+
326
+ - When **disabled** (`false`), the response maintains a strict
327
+ one-to-one mapping between input utterances and output snippets.
328
+
329
+
330
+ This setting affects how the `snippets` array is structured in the
331
+ response, which may be important for applications that need to track
332
+ the relationship between input text and generated audio segments.
333
+ When setting to `false`, avoid including utterances with long `text`,
334
+ as this can result in distorted output.
335
+ default: true
233
336
  utterances:
234
337
  docs: Utterances to be converted to speech output.
235
338
  type: list<PostedUtterance>
@@ -258,8 +361,7 @@ types:
258
361
  source:
259
362
  openapi: tts-openapi.yml
260
363
  FormatPcm:
261
- properties:
262
- type: literal<"pcm">
364
+ properties: {}
263
365
  source:
264
366
  openapi: tts-openapi.yml
265
367
  Snippet:
@@ -270,9 +372,6 @@ types:
270
372
  The segmented audio output in the requested format, encoded as a
271
373
  base64 string.
272
374
  access: read-only
273
- audio_format:
274
- type: string
275
- docs: The generated audio output format.
276
375
  generation_id:
277
376
  type: string
278
377
  docs: The generation ID this snippet corresponds to.
@@ -403,7 +502,6 @@ types:
403
502
  source:
404
503
  openapi: tts-openapi.yml
405
504
  FormatWav:
406
- properties:
407
- type: literal<"wav">
505
+ properties: {}
408
506
  source:
409
507
  openapi: tts-openapi.yml
@@ -85,7 +85,7 @@ class ChatGroups {
85
85
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
86
86
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "v0/evi/chat_groups"),
87
87
  method: "GET",
88
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.13", "User-Agent": "hume/0.9.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
88
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.15", "User-Agent": "hume/0.9.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
89
89
  contentType: "application/json",
90
90
  queryParameters: _queryParams,
91
91
  requestType: "json",
@@ -165,7 +165,7 @@ class ChatGroups {
165
165
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
166
166
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/chat_groups/${encodeURIComponent(id)}`),
167
167
  method: "GET",
168
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.13", "User-Agent": "hume/0.9.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
168
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.15", "User-Agent": "hume/0.9.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
169
169
  contentType: "application/json",
170
170
  queryParameters: _queryParams,
171
171
  requestType: "json",
@@ -245,7 +245,7 @@ class ChatGroups {
245
245
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
246
246
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/chat_groups/${encodeURIComponent(id)}/events`),
247
247
  method: "GET",
248
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.13", "User-Agent": "hume/0.9.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
248
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.15", "User-Agent": "hume/0.9.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
249
249
  contentType: "application/json",
250
250
  queryParameters: _queryParams,
251
251
  requestType: "json",
@@ -325,7 +325,7 @@ class ChatGroups {
325
325
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
326
326
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/chat_groups/${encodeURIComponent(id)}/audio`),
327
327
  method: "GET",
328
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.13", "User-Agent": "hume/0.9.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
328
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.15", "User-Agent": "hume/0.9.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
329
329
  contentType: "application/json",
330
330
  queryParameters: _queryParams,
331
331
  requestType: "json",
@@ -85,7 +85,7 @@ class Chats {
85
85
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
86
86
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "v0/evi/chats"),
87
87
  method: "GET",
88
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.13", "User-Agent": "hume/0.9.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
88
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.15", "User-Agent": "hume/0.9.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
89
89
  contentType: "application/json",
90
90
  queryParameters: _queryParams,
91
91
  requestType: "json",
@@ -177,7 +177,7 @@ class Chats {
177
177
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
178
178
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/chats/${encodeURIComponent(id)}`),
179
179
  method: "GET",
180
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.13", "User-Agent": "hume/0.9.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
180
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.15", "User-Agent": "hume/0.9.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
181
181
  contentType: "application/json",
182
182
  queryParameters: _queryParams,
183
183
  requestType: "json",
@@ -252,7 +252,7 @@ class Chats {
252
252
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
253
253
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/chats/${encodeURIComponent(id)}/audio`),
254
254
  method: "GET",
255
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.13", "User-Agent": "hume/0.9.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
255
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.15", "User-Agent": "hume/0.9.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
256
256
  contentType: "application/json",
257
257
  requestType: "json",
258
258
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -85,7 +85,7 @@ class Configs {
85
85
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
86
86
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "v0/evi/configs"),
87
87
  method: "GET",
88
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.13", "User-Agent": "hume/0.9.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
88
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.15", "User-Agent": "hume/0.9.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
89
89
  contentType: "application/json",
90
90
  queryParameters: _queryParams,
91
91
  requestType: "json",
@@ -181,7 +181,7 @@ class Configs {
181
181
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
182
182
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "v0/evi/configs"),
183
183
  method: "POST",
184
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.13", "User-Agent": "hume/0.9.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
184
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.15", "User-Agent": "hume/0.9.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
185
185
  contentType: "application/json",
186
186
  requestType: "json",
187
187
  body: serializers.empathicVoice.PostedConfig.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -259,7 +259,7 @@ class Configs {
259
259
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
260
260
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/configs/${encodeURIComponent(id)}`),
261
261
  method: "GET",
262
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.13", "User-Agent": "hume/0.9.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
262
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.15", "User-Agent": "hume/0.9.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
263
263
  contentType: "application/json",
264
264
  queryParameters: _queryParams,
265
265
  requestType: "json",
@@ -359,7 +359,7 @@ class Configs {
359
359
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
360
360
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/configs/${encodeURIComponent(id)}`),
361
361
  method: "POST",
362
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.13", "User-Agent": "hume/0.9.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
362
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.15", "User-Agent": "hume/0.9.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
363
363
  contentType: "application/json",
364
364
  requestType: "json",
365
365
  body: serializers.empathicVoice.PostedConfigVersion.jsonOrThrow(request, {
@@ -427,7 +427,7 @@ class Configs {
427
427
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
428
428
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/configs/${encodeURIComponent(id)}`),
429
429
  method: "DELETE",
430
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.13", "User-Agent": "hume/0.9.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
430
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.15", "User-Agent": "hume/0.9.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
431
431
  contentType: "application/json",
432
432
  requestType: "json",
433
433
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -490,7 +490,7 @@ class Configs {
490
490
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
491
491
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/configs/${encodeURIComponent(id)}`),
492
492
  method: "PATCH",
493
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.13", "User-Agent": "hume/0.9.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
493
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.15", "User-Agent": "hume/0.9.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
494
494
  contentType: "application/json",
495
495
  requestType: "json",
496
496
  body: serializers.empathicVoice.PostedConfigName.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -557,7 +557,7 @@ class Configs {
557
557
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
558
558
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/configs/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
559
559
  method: "GET",
560
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.13", "User-Agent": "hume/0.9.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
560
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.15", "User-Agent": "hume/0.9.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
561
561
  contentType: "application/json",
562
562
  requestType: "json",
563
563
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -627,7 +627,7 @@ class Configs {
627
627
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
628
628
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/configs/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
629
629
  method: "DELETE",
630
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.13", "User-Agent": "hume/0.9.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
630
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.15", "User-Agent": "hume/0.9.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
631
631
  contentType: "application/json",
632
632
  requestType: "json",
633
633
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -695,7 +695,7 @@ class Configs {
695
695
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
696
696
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/configs/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
697
697
  method: "PATCH",
698
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.13", "User-Agent": "hume/0.9.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
698
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.15", "User-Agent": "hume/0.9.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
699
699
  contentType: "application/json",
700
700
  requestType: "json",
701
701
  body: serializers.empathicVoice.PostedConfigVersionDescription.jsonOrThrow(request, {