hume 0.9.13 → 0.9.14
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/expression-measurement/batch/__package__.yml +61 -76
- package/.mock/definition/tts/__package__.yml +31 -11
- package/api/resources/empathicVoice/resources/chatGroups/client/Client.js +4 -4
- package/api/resources/empathicVoice/resources/chats/client/Client.js +3 -3
- package/api/resources/empathicVoice/resources/configs/client/Client.js +9 -9
- package/api/resources/empathicVoice/resources/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/expressionMeasurement/resources/batch/client/Client.js +6 -6
- package/api/resources/index.d.ts +1 -1
- package/api/resources/index.js +2 -2
- package/api/resources/tts/client/Client.js +2 -2
- package/api/resources/tts/resources/voices/client/Client.js +1 -1
- package/api/resources/tts/types/PostedTts.d.ts +10 -0
- package/dist/api/resources/empathicVoice/resources/chatGroups/client/Client.js +4 -4
- package/dist/api/resources/empathicVoice/resources/chats/client/Client.js +3 -3
- package/dist/api/resources/empathicVoice/resources/configs/client/Client.js +9 -9
- package/dist/api/resources/empathicVoice/resources/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/expressionMeasurement/resources/batch/client/Client.js +6 -6
- package/dist/api/resources/index.d.ts +1 -1
- package/dist/api/resources/index.js +2 -2
- package/dist/api/resources/tts/client/Client.js +2 -2
- package/dist/api/resources/tts/resources/voices/client/Client.js +1 -1
- package/dist/api/resources/tts/types/PostedTts.d.ts +10 -0
- package/dist/serialization/resources/index.d.ts +1 -1
- package/dist/serialization/resources/index.js +2 -2
- package/dist/serialization/resources/tts/types/PostedTts.d.ts +1 -0
- package/dist/serialization/resources/tts/types/PostedTts.js +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +554 -554
- package/serialization/resources/index.d.ts +1 -1
- package/serialization/resources/index.js +2 -2
- package/serialization/resources/tts/types/PostedTts.d.ts +1 -0
- package/serialization/resources/tts/types/PostedTts.js +1 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -1295,176 +1295,169 @@ types:
|
|
|
1295
1295
|
source:
|
|
1296
1296
|
openapi: batch-openapi.json
|
|
1297
1297
|
Source:
|
|
1298
|
-
|
|
1298
|
+
discriminant: type
|
|
1299
|
+
base-properties: {}
|
|
1299
1300
|
union:
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
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
|
-
|
|
1330
|
+
discriminant: status
|
|
1331
|
+
base-properties: {}
|
|
1326
1332
|
union:
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
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
|
-
|
|
1364
|
+
discriminant: status
|
|
1365
|
+
base-properties: {}
|
|
1363
1366
|
union:
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
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
|
-
|
|
1398
|
+
discriminant: status
|
|
1399
|
+
base-properties: {}
|
|
1400
1400
|
union:
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
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
|
-
|
|
1432
|
+
discriminant: status
|
|
1433
|
+
base-properties: {}
|
|
1437
1434
|
union:
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
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
|
-
|
|
1512
|
+
discriminant: type
|
|
1513
|
+
base-properties: {}
|
|
1520
1514
|
union:
|
|
1521
|
-
|
|
1522
|
-
|
|
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>
|
|
@@ -186,8 +186,7 @@ types:
|
|
|
186
186
|
source:
|
|
187
187
|
openapi: tts-openapi.yml
|
|
188
188
|
FormatMp3:
|
|
189
|
-
properties:
|
|
190
|
-
type: literal<"mp3">
|
|
189
|
+
properties: {}
|
|
191
190
|
source:
|
|
192
191
|
openapi: tts-openapi.yml
|
|
193
192
|
PostedContext:
|
|
@@ -203,15 +202,18 @@ types:
|
|
|
203
202
|
openapi: tts-openapi.yml
|
|
204
203
|
inline: true
|
|
205
204
|
Format:
|
|
206
|
-
|
|
205
|
+
discriminant: type
|
|
206
|
+
base-properties: {}
|
|
207
207
|
docs: Specifies the output audio file format.
|
|
208
208
|
union:
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
209
|
+
mp3:
|
|
210
|
+
type: FormatMp3
|
|
211
|
+
pcm:
|
|
212
|
+
type: FormatPcm
|
|
213
|
+
wav:
|
|
214
|
+
type: FormatWav
|
|
212
215
|
source:
|
|
213
216
|
openapi: tts-openapi.yml
|
|
214
|
-
inline: true
|
|
215
217
|
PostedTts:
|
|
216
218
|
properties:
|
|
217
219
|
context:
|
|
@@ -230,6 +232,26 @@ types:
|
|
|
230
232
|
validation:
|
|
231
233
|
min: 1
|
|
232
234
|
max: 5
|
|
235
|
+
split_utterances:
|
|
236
|
+
type: optional<boolean>
|
|
237
|
+
docs: >-
|
|
238
|
+
Controls how audio output is segmented in the response.
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
- When **enabled** (`true`), input utterances are automatically split
|
|
242
|
+
into natural-sounding speech segments.
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
- When **disabled** (`false`), the response maintains a strict
|
|
246
|
+
one-to-one mapping between input utterances and output snippets.
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
This setting affects how the `snippets` array is structured in the
|
|
250
|
+
response, which may be important for applications that need to track
|
|
251
|
+
the relationship between input text and generated audio segments.
|
|
252
|
+
When setting to `false`, avoid including utterances with long `text`,
|
|
253
|
+
as this can result in distorted output.
|
|
254
|
+
default: true
|
|
233
255
|
utterances:
|
|
234
256
|
docs: Utterances to be converted to speech output.
|
|
235
257
|
type: list<PostedUtterance>
|
|
@@ -258,8 +280,7 @@ types:
|
|
|
258
280
|
source:
|
|
259
281
|
openapi: tts-openapi.yml
|
|
260
282
|
FormatPcm:
|
|
261
|
-
properties:
|
|
262
|
-
type: literal<"pcm">
|
|
283
|
+
properties: {}
|
|
263
284
|
source:
|
|
264
285
|
openapi: tts-openapi.yml
|
|
265
286
|
Snippet:
|
|
@@ -403,7 +424,6 @@ types:
|
|
|
403
424
|
source:
|
|
404
425
|
openapi: tts-openapi.yml
|
|
405
426
|
FormatWav:
|
|
406
|
-
properties:
|
|
407
|
-
type: literal<"wav">
|
|
427
|
+
properties: {}
|
|
408
428
|
source:
|
|
409
429
|
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.
|
|
88
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.14", "User-Agent": "hume/0.9.14", "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.
|
|
168
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.14", "User-Agent": "hume/0.9.14", "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.
|
|
248
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.14", "User-Agent": "hume/0.9.14", "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.
|
|
328
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.14", "User-Agent": "hume/0.9.14", "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.
|
|
88
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.14", "User-Agent": "hume/0.9.14", "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.
|
|
180
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.14", "User-Agent": "hume/0.9.14", "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.
|
|
255
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.14", "User-Agent": "hume/0.9.14", "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.
|
|
88
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.14", "User-Agent": "hume/0.9.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
89
89
|
contentType: "application/json",
|
|
90
90
|
queryParameters: _queryParams,
|
|
91
91
|
requestType: "json",
|
|
@@ -181,7 +181,7 @@ class Configs {
|
|
|
181
181
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
182
182
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "v0/evi/configs"),
|
|
183
183
|
method: "POST",
|
|
184
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.
|
|
184
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.14", "User-Agent": "hume/0.9.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
185
185
|
contentType: "application/json",
|
|
186
186
|
requestType: "json",
|
|
187
187
|
body: serializers.empathicVoice.PostedConfig.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -259,7 +259,7 @@ class Configs {
|
|
|
259
259
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
260
260
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/configs/${encodeURIComponent(id)}`),
|
|
261
261
|
method: "GET",
|
|
262
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.
|
|
262
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.14", "User-Agent": "hume/0.9.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
263
263
|
contentType: "application/json",
|
|
264
264
|
queryParameters: _queryParams,
|
|
265
265
|
requestType: "json",
|
|
@@ -359,7 +359,7 @@ class Configs {
|
|
|
359
359
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
360
360
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/configs/${encodeURIComponent(id)}`),
|
|
361
361
|
method: "POST",
|
|
362
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.
|
|
362
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.14", "User-Agent": "hume/0.9.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
363
363
|
contentType: "application/json",
|
|
364
364
|
requestType: "json",
|
|
365
365
|
body: serializers.empathicVoice.PostedConfigVersion.jsonOrThrow(request, {
|
|
@@ -427,7 +427,7 @@ class Configs {
|
|
|
427
427
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
428
428
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/configs/${encodeURIComponent(id)}`),
|
|
429
429
|
method: "DELETE",
|
|
430
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.
|
|
430
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.14", "User-Agent": "hume/0.9.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
431
431
|
contentType: "application/json",
|
|
432
432
|
requestType: "json",
|
|
433
433
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -490,7 +490,7 @@ class Configs {
|
|
|
490
490
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
491
491
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/configs/${encodeURIComponent(id)}`),
|
|
492
492
|
method: "PATCH",
|
|
493
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.
|
|
493
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.14", "User-Agent": "hume/0.9.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
494
494
|
contentType: "application/json",
|
|
495
495
|
requestType: "json",
|
|
496
496
|
body: serializers.empathicVoice.PostedConfigName.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -557,7 +557,7 @@ class Configs {
|
|
|
557
557
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
558
558
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/configs/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
|
|
559
559
|
method: "GET",
|
|
560
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.
|
|
560
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.14", "User-Agent": "hume/0.9.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
561
561
|
contentType: "application/json",
|
|
562
562
|
requestType: "json",
|
|
563
563
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -627,7 +627,7 @@ class Configs {
|
|
|
627
627
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
628
628
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/configs/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
|
|
629
629
|
method: "DELETE",
|
|
630
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.
|
|
630
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.14", "User-Agent": "hume/0.9.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
631
631
|
contentType: "application/json",
|
|
632
632
|
requestType: "json",
|
|
633
633
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -695,7 +695,7 @@ class Configs {
|
|
|
695
695
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
696
696
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/configs/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
|
|
697
697
|
method: "PATCH",
|
|
698
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.
|
|
698
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.14", "User-Agent": "hume/0.9.14", "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, {
|
|
@@ -79,7 +79,7 @@ class CustomVoices {
|
|
|
79
79
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
80
80
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "v0/evi/custom_voices"),
|
|
81
81
|
method: "GET",
|
|
82
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.
|
|
82
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.14", "User-Agent": "hume/0.9.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
83
83
|
contentType: "application/json",
|
|
84
84
|
queryParameters: _queryParams,
|
|
85
85
|
requestType: "json",
|
|
@@ -149,7 +149,7 @@ class CustomVoices {
|
|
|
149
149
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
150
150
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "v0/evi/custom_voices"),
|
|
151
151
|
method: "POST",
|
|
152
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.
|
|
152
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.14", "User-Agent": "hume/0.9.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
153
153
|
contentType: "application/json",
|
|
154
154
|
requestType: "json",
|
|
155
155
|
body: serializers.empathicVoice.PostedCustomVoice.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -215,7 +215,7 @@ class CustomVoices {
|
|
|
215
215
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
216
216
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/custom_voices/${encodeURIComponent(id)}`),
|
|
217
217
|
method: "GET",
|
|
218
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.
|
|
218
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.14", "User-Agent": "hume/0.9.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
219
219
|
contentType: "application/json",
|
|
220
220
|
requestType: "json",
|
|
221
221
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -285,7 +285,7 @@ class CustomVoices {
|
|
|
285
285
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
286
286
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/custom_voices/${encodeURIComponent(id)}`),
|
|
287
287
|
method: "POST",
|
|
288
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.
|
|
288
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.14", "User-Agent": "hume/0.9.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
289
289
|
contentType: "application/json",
|
|
290
290
|
requestType: "json",
|
|
291
291
|
body: serializers.empathicVoice.PostedCustomVoice.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -351,7 +351,7 @@ class CustomVoices {
|
|
|
351
351
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
352
352
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/custom_voices/${encodeURIComponent(id)}`),
|
|
353
353
|
method: "DELETE",
|
|
354
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.
|
|
354
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.14", "User-Agent": "hume/0.9.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
355
355
|
contentType: "application/json",
|
|
356
356
|
requestType: "json",
|
|
357
357
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -414,7 +414,7 @@ class CustomVoices {
|
|
|
414
414
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
415
415
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/custom_voices/${encodeURIComponent(id)}`),
|
|
416
416
|
method: "PATCH",
|
|
417
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.
|
|
417
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.14", "User-Agent": "hume/0.9.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
418
418
|
contentType: "application/json",
|
|
419
419
|
requestType: "json",
|
|
420
420
|
body: serializers.empathicVoice.PostedCustomVoiceName.jsonOrThrow(request, {
|