hume 0.14.2-beta.5 → 0.14.2-beta.6
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/.claude/settings.local.json +4 -1
- package/Client.d.ts +1 -0
- package/api/resources/empathicVoice/client/Client.d.ts +1 -0
- package/api/resources/empathicVoice/resources/chat/client/Client.d.ts +1 -1
- package/api/resources/empathicVoice/resources/chat/client/Client.js +3 -28
- package/api/resources/empathicVoice/resources/chatGroups/client/Client.d.ts +1 -0
- package/api/resources/empathicVoice/resources/chatGroups/client/Client.js +12 -20
- package/api/resources/empathicVoice/resources/chats/client/Client.d.ts +1 -0
- package/api/resources/empathicVoice/resources/chats/client/Client.js +9 -15
- package/api/resources/empathicVoice/resources/configs/client/Client.d.ts +1 -0
- package/api/resources/empathicVoice/resources/configs/client/Client.js +29 -52
- package/api/resources/empathicVoice/resources/prompts/client/Client.d.ts +1 -0
- package/api/resources/empathicVoice/resources/prompts/client/Client.js +29 -52
- package/api/resources/empathicVoice/resources/tools/client/Client.d.ts +1 -0
- package/api/resources/empathicVoice/resources/tools/client/Client.js +27 -46
- package/api/resources/expressionMeasurement/client/Client.d.ts +1 -0
- package/api/resources/expressionMeasurement/resources/batch/client/Client.d.ts +1 -0
- package/api/resources/expressionMeasurement/resources/batch/client/Client.js +18 -30
- package/api/resources/expressionMeasurement/resources/stream/resources/stream/client/Client.d.ts +1 -0
- package/api/resources/expressionMeasurement/resources/stream/resources/stream/client/Socket.js +0 -4
- package/api/resources/tts/client/Client.d.ts +1 -0
- package/api/resources/tts/client/Client.js +16 -34
- package/api/resources/tts/index.d.ts +1 -1
- package/api/resources/tts/index.js +1 -1
- package/api/resources/tts/resources/index.d.ts +0 -1
- package/api/resources/tts/resources/index.js +0 -1
- package/api/resources/tts/resources/streamInput/client/Client.d.ts +4 -3
- package/api/resources/tts/resources/streamInput/client/Client.js +14 -15
- package/api/resources/tts/resources/streamInput/client/Socket.d.ts +1 -1
- package/api/resources/tts/resources/streamInput/client/Socket.js +0 -4
- package/api/resources/tts/resources/streamInput/index.d.ts +0 -1
- package/api/resources/tts/resources/streamInput/index.js +0 -1
- package/api/resources/tts/resources/streamInput/types/index.js +26 -14
- package/api/resources/tts/resources/voices/client/Client.d.ts +1 -0
- package/api/resources/tts/resources/voices/client/Client.js +10 -19
- package/api/resources/tts/types/index.d.ts +2 -2
- package/api/resources/tts/types/index.js +2 -2
- package/changes.md +843 -0
- package/comment_changes.txt +0 -0
- package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +37 -0
- package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +21 -0
- package/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +37 -0
- package/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +18 -0
- package/core/file.d.ts +11 -0
- package/diff.txt +18143 -0
- package/dist/Client.d.ts +1 -0
- package/dist/api/resources/empathicVoice/client/Client.d.ts +1 -0
- package/dist/api/resources/empathicVoice/resources/chat/client/Client.d.ts +1 -1
- package/dist/api/resources/empathicVoice/resources/chat/client/Client.js +3 -28
- package/dist/api/resources/empathicVoice/resources/chatGroups/client/Client.d.ts +1 -0
- package/dist/api/resources/empathicVoice/resources/chatGroups/client/Client.js +12 -20
- package/dist/api/resources/empathicVoice/resources/chats/client/Client.d.ts +1 -0
- package/dist/api/resources/empathicVoice/resources/chats/client/Client.js +9 -15
- package/dist/api/resources/empathicVoice/resources/configs/client/Client.d.ts +1 -0
- package/dist/api/resources/empathicVoice/resources/configs/client/Client.js +29 -52
- package/dist/api/resources/empathicVoice/resources/prompts/client/Client.d.ts +1 -0
- package/dist/api/resources/empathicVoice/resources/prompts/client/Client.js +29 -52
- package/dist/api/resources/empathicVoice/resources/tools/client/Client.d.ts +1 -0
- package/dist/api/resources/empathicVoice/resources/tools/client/Client.js +27 -46
- package/dist/api/resources/expressionMeasurement/client/Client.d.ts +1 -0
- package/dist/api/resources/expressionMeasurement/resources/batch/client/Client.d.ts +1 -0
- package/dist/api/resources/expressionMeasurement/resources/batch/client/Client.js +18 -30
- package/dist/api/resources/expressionMeasurement/resources/stream/resources/stream/client/Client.d.ts +1 -0
- package/dist/api/resources/expressionMeasurement/resources/stream/resources/stream/client/Socket.js +0 -4
- package/dist/api/resources/tts/client/Client.d.ts +1 -0
- package/dist/api/resources/tts/client/Client.js +16 -34
- package/dist/api/resources/tts/index.d.ts +1 -1
- package/dist/api/resources/tts/index.js +1 -1
- package/dist/api/resources/tts/resources/index.d.ts +0 -1
- package/dist/api/resources/tts/resources/index.js +0 -1
- package/dist/api/resources/tts/resources/streamInput/client/Client.d.ts +4 -3
- package/dist/api/resources/tts/resources/streamInput/client/Client.js +14 -15
- package/dist/api/resources/tts/resources/streamInput/client/Socket.d.ts +1 -1
- package/dist/api/resources/tts/resources/streamInput/client/Socket.js +0 -4
- package/dist/api/resources/tts/resources/streamInput/index.d.ts +0 -1
- package/dist/api/resources/tts/resources/streamInput/index.js +0 -1
- package/dist/api/resources/tts/resources/streamInput/types/index.js +26 -14
- package/dist/api/resources/tts/resources/voices/client/Client.d.ts +1 -0
- package/dist/api/resources/tts/resources/voices/client/Client.js +10 -19
- package/dist/api/resources/tts/types/index.d.ts +2 -2
- package/dist/api/resources/tts/types/index.js +2 -2
- package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +37 -0
- package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +21 -0
- package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +37 -0
- package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +18 -0
- package/dist/core/file.d.ts +11 -0
- package/dist/main.js +40944 -0
- package/dist/serialization/resources/tts/resources/index.d.ts +0 -1
- package/dist/serialization/resources/tts/resources/index.js +0 -1
- package/dist/serialization/resources/tts/resources/streamInput/client/socket/StreamInputSocketResponse.d.ts +3 -3
- package/dist/serialization/resources/tts/resources/streamInput/client/socket/StreamInputSocketResponse.js +2 -2
- package/dist/serialization/resources/tts/resources/streamInput/index.d.ts +0 -1
- package/dist/serialization/resources/tts/resources/streamInput/index.js +0 -1
- package/dist/serialization/resources/tts/resources/streamInput/types/SubscribeEvent.d.ts +4 -1
- package/dist/serialization/resources/tts/resources/streamInput/types/SubscribeEvent.js +55 -33
- package/dist/serialization/resources/tts/resources/streamInput/types/index.js +26 -14
- package/dist/serialization/resources/tts/types/index.d.ts +2 -2
- package/dist/serialization/resources/tts/types/index.js +2 -2
- package/dist/wrapper/HumeClient.d.ts +1 -1
- package/dist/wrapper/HumeClient.js +27 -25
- package/hume-v0.14.2-beta.6.tgz +0 -0
- package/js_changes.txt +2610 -0
- package/main.js +40944 -0
- package/package.json +1 -1
- package/serialization/resources/tts/resources/index.d.ts +0 -1
- package/serialization/resources/tts/resources/index.js +0 -1
- package/serialization/resources/tts/resources/streamInput/client/socket/StreamInputSocketResponse.d.ts +3 -3
- package/serialization/resources/tts/resources/streamInput/client/socket/StreamInputSocketResponse.js +2 -2
- package/serialization/resources/tts/resources/streamInput/index.d.ts +0 -1
- package/serialization/resources/tts/resources/streamInput/index.js +0 -1
- package/serialization/resources/tts/resources/streamInput/types/SubscribeEvent.d.ts +4 -1
- package/serialization/resources/tts/resources/streamInput/types/SubscribeEvent.js +55 -33
- package/serialization/resources/tts/resources/streamInput/types/index.js +26 -14
- package/serialization/resources/tts/types/index.d.ts +2 -2
- package/serialization/resources/tts/types/index.js +2 -2
- package/tts-audio/tts-74f0e855-cd7e-46e7-9657-c9bdf4b60693.wav +0 -0
- package/tts-audio/tts-8d0d6c9c-f54d-4ffa-880a-556f3a77eb99.wav +0 -0
- package/tts-audio/tts-f2a1d9fa-8f28-4011-9c02-08364592d0a9.wav +0 -0
- package/wrapper/HumeClient.d.ts +1 -1
- package/wrapper/HumeClient.js +27 -25
- package/hume-v0.14.2-beta.2.tgz +0 -0
- package/hume-v0.14.2-beta.4.tgz +0 -0
- package/hume-v0.14.2-beta.5.tgz +0 -0
- package/hume-v0.14.2-beta1.tgz +0 -0
|
@@ -75,7 +75,7 @@ class Tools {
|
|
|
75
75
|
listTools() {
|
|
76
76
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
77
77
|
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
78
|
-
var _a, _b, _c;
|
|
78
|
+
var _a, _b, _c, _d;
|
|
79
79
|
const { pageNumber, pageSize, restrictToMostRecent, name } = request;
|
|
80
80
|
const _queryParams = {};
|
|
81
81
|
if (pageNumber != null) {
|
|
@@ -91,8 +91,8 @@ class Tools {
|
|
|
91
91
|
_queryParams["name"] = name;
|
|
92
92
|
}
|
|
93
93
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
94
|
-
const _response = yield core.fetcher({
|
|
95
|
-
url: core.url.join((
|
|
94
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
95
|
+
url: core.url.join((_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : ((_d = (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HumeEnvironment.Prod)
|
|
96
96
|
.base, "v0/evi/tools"),
|
|
97
97
|
method: "GET",
|
|
98
98
|
headers: _headers,
|
|
@@ -107,7 +107,6 @@ class Tools {
|
|
|
107
107
|
unrecognizedObjectKeys: "passthrough",
|
|
108
108
|
allowUnrecognizedUnionMembers: true,
|
|
109
109
|
allowUnrecognizedEnumValues: true,
|
|
110
|
-
skipValidation: true,
|
|
111
110
|
breadcrumbsPrefix: ["response"],
|
|
112
111
|
}),
|
|
113
112
|
rawResponse: _response.rawResponse,
|
|
@@ -120,7 +119,6 @@ class Tools {
|
|
|
120
119
|
unrecognizedObjectKeys: "passthrough",
|
|
121
120
|
allowUnrecognizedUnionMembers: true,
|
|
122
121
|
allowUnrecognizedEnumValues: true,
|
|
123
|
-
skipValidation: true,
|
|
124
122
|
breadcrumbsPrefix: ["response"],
|
|
125
123
|
}), _response.rawResponse);
|
|
126
124
|
default:
|
|
@@ -185,10 +183,10 @@ class Tools {
|
|
|
185
183
|
}
|
|
186
184
|
__createTool(request, requestOptions) {
|
|
187
185
|
return __awaiter(this, void 0, void 0, function* () {
|
|
188
|
-
var _a, _b, _c;
|
|
186
|
+
var _a, _b, _c, _d;
|
|
189
187
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
190
|
-
const _response = yield core.fetcher({
|
|
191
|
-
url: core.url.join((
|
|
188
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
189
|
+
url: core.url.join((_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : ((_d = (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HumeEnvironment.Prod).base, "v0/evi/tools"),
|
|
192
190
|
method: "POST",
|
|
193
191
|
headers: _headers,
|
|
194
192
|
contentType: "application/json",
|
|
@@ -196,7 +194,6 @@ class Tools {
|
|
|
196
194
|
requestType: "json",
|
|
197
195
|
body: serializers.empathicVoice.PostedUserDefinedTool.jsonOrThrow(request, {
|
|
198
196
|
unrecognizedObjectKeys: "strip",
|
|
199
|
-
omitUndefined: true,
|
|
200
197
|
}),
|
|
201
198
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
202
199
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -208,7 +205,6 @@ class Tools {
|
|
|
208
205
|
unrecognizedObjectKeys: "passthrough",
|
|
209
206
|
allowUnrecognizedUnionMembers: true,
|
|
210
207
|
allowUnrecognizedEnumValues: true,
|
|
211
|
-
skipValidation: true,
|
|
212
208
|
breadcrumbsPrefix: ["response"],
|
|
213
209
|
}),
|
|
214
210
|
rawResponse: _response.rawResponse,
|
|
@@ -221,7 +217,6 @@ class Tools {
|
|
|
221
217
|
unrecognizedObjectKeys: "passthrough",
|
|
222
218
|
allowUnrecognizedUnionMembers: true,
|
|
223
219
|
allowUnrecognizedEnumValues: true,
|
|
224
|
-
skipValidation: true,
|
|
225
220
|
breadcrumbsPrefix: ["response"],
|
|
226
221
|
}), _response.rawResponse);
|
|
227
222
|
default:
|
|
@@ -266,7 +261,7 @@ class Tools {
|
|
|
266
261
|
listToolVersions(id_1) {
|
|
267
262
|
return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
|
|
268
263
|
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
269
|
-
var _a, _b, _c;
|
|
264
|
+
var _a, _b, _c, _d;
|
|
270
265
|
const { pageNumber, pageSize, restrictToMostRecent } = request;
|
|
271
266
|
const _queryParams = {};
|
|
272
267
|
if (pageNumber != null) {
|
|
@@ -279,8 +274,8 @@ class Tools {
|
|
|
279
274
|
_queryParams["restrict_to_most_recent"] = restrictToMostRecent.toString();
|
|
280
275
|
}
|
|
281
276
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
282
|
-
const _response = yield core.fetcher({
|
|
283
|
-
url: core.url.join((
|
|
277
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
278
|
+
url: core.url.join((_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : ((_d = (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HumeEnvironment.Prod)
|
|
284
279
|
.base, `v0/evi/tools/${encodeURIComponent(id)}`),
|
|
285
280
|
method: "GET",
|
|
286
281
|
headers: _headers,
|
|
@@ -295,7 +290,6 @@ class Tools {
|
|
|
295
290
|
unrecognizedObjectKeys: "passthrough",
|
|
296
291
|
allowUnrecognizedUnionMembers: true,
|
|
297
292
|
allowUnrecognizedEnumValues: true,
|
|
298
|
-
skipValidation: true,
|
|
299
293
|
breadcrumbsPrefix: ["response"],
|
|
300
294
|
}),
|
|
301
295
|
rawResponse: _response.rawResponse,
|
|
@@ -308,7 +302,6 @@ class Tools {
|
|
|
308
302
|
unrecognizedObjectKeys: "passthrough",
|
|
309
303
|
allowUnrecognizedUnionMembers: true,
|
|
310
304
|
allowUnrecognizedEnumValues: true,
|
|
311
|
-
skipValidation: true,
|
|
312
305
|
breadcrumbsPrefix: ["response"],
|
|
313
306
|
}), _response.rawResponse);
|
|
314
307
|
default:
|
|
@@ -373,10 +366,10 @@ class Tools {
|
|
|
373
366
|
}
|
|
374
367
|
__createToolVersion(id, request, requestOptions) {
|
|
375
368
|
return __awaiter(this, void 0, void 0, function* () {
|
|
376
|
-
var _a, _b, _c;
|
|
369
|
+
var _a, _b, _c, _d;
|
|
377
370
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
378
|
-
const _response = yield core.fetcher({
|
|
379
|
-
url: core.url.join((
|
|
371
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
372
|
+
url: core.url.join((_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : ((_d = (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HumeEnvironment.Prod).base, `v0/evi/tools/${encodeURIComponent(id)}`),
|
|
380
373
|
method: "POST",
|
|
381
374
|
headers: _headers,
|
|
382
375
|
contentType: "application/json",
|
|
@@ -384,7 +377,6 @@ class Tools {
|
|
|
384
377
|
requestType: "json",
|
|
385
378
|
body: serializers.empathicVoice.PostedUserDefinedToolVersion.jsonOrThrow(request, {
|
|
386
379
|
unrecognizedObjectKeys: "strip",
|
|
387
|
-
omitUndefined: true,
|
|
388
380
|
}),
|
|
389
381
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
390
382
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -396,7 +388,6 @@ class Tools {
|
|
|
396
388
|
unrecognizedObjectKeys: "passthrough",
|
|
397
389
|
allowUnrecognizedUnionMembers: true,
|
|
398
390
|
allowUnrecognizedEnumValues: true,
|
|
399
|
-
skipValidation: true,
|
|
400
391
|
breadcrumbsPrefix: ["response"],
|
|
401
392
|
}),
|
|
402
393
|
rawResponse: _response.rawResponse,
|
|
@@ -409,7 +400,6 @@ class Tools {
|
|
|
409
400
|
unrecognizedObjectKeys: "passthrough",
|
|
410
401
|
allowUnrecognizedUnionMembers: true,
|
|
411
402
|
allowUnrecognizedEnumValues: true,
|
|
412
|
-
skipValidation: true,
|
|
413
403
|
breadcrumbsPrefix: ["response"],
|
|
414
404
|
}), _response.rawResponse);
|
|
415
405
|
default:
|
|
@@ -455,10 +445,10 @@ class Tools {
|
|
|
455
445
|
}
|
|
456
446
|
__deleteTool(id, requestOptions) {
|
|
457
447
|
return __awaiter(this, void 0, void 0, function* () {
|
|
458
|
-
var _a, _b, _c;
|
|
448
|
+
var _a, _b, _c, _d;
|
|
459
449
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
460
|
-
const _response = yield core.fetcher({
|
|
461
|
-
url: core.url.join((
|
|
450
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
451
|
+
url: core.url.join((_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : ((_d = (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HumeEnvironment.Prod).base, `v0/evi/tools/${encodeURIComponent(id)}`),
|
|
462
452
|
method: "DELETE",
|
|
463
453
|
headers: _headers,
|
|
464
454
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -476,7 +466,6 @@ class Tools {
|
|
|
476
466
|
unrecognizedObjectKeys: "passthrough",
|
|
477
467
|
allowUnrecognizedUnionMembers: true,
|
|
478
468
|
allowUnrecognizedEnumValues: true,
|
|
479
|
-
skipValidation: true,
|
|
480
469
|
breadcrumbsPrefix: ["response"],
|
|
481
470
|
}), _response.rawResponse);
|
|
482
471
|
default:
|
|
@@ -525,10 +514,10 @@ class Tools {
|
|
|
525
514
|
}
|
|
526
515
|
__updateToolName(id, request, requestOptions) {
|
|
527
516
|
return __awaiter(this, void 0, void 0, function* () {
|
|
528
|
-
var _a, _b, _c;
|
|
517
|
+
var _a, _b, _c, _d;
|
|
529
518
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
530
|
-
const _response = yield core.fetcher({
|
|
531
|
-
url: core.url.join((
|
|
519
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
520
|
+
url: core.url.join((_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : ((_d = (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HumeEnvironment.Prod).base, `v0/evi/tools/${encodeURIComponent(id)}`),
|
|
532
521
|
method: "PATCH",
|
|
533
522
|
headers: _headers,
|
|
534
523
|
contentType: "application/json",
|
|
@@ -536,7 +525,6 @@ class Tools {
|
|
|
536
525
|
requestType: "json",
|
|
537
526
|
body: serializers.empathicVoice.PostedUserDefinedToolName.jsonOrThrow(request, {
|
|
538
527
|
unrecognizedObjectKeys: "strip",
|
|
539
|
-
omitUndefined: true,
|
|
540
528
|
}),
|
|
541
529
|
responseType: "text",
|
|
542
530
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -553,7 +541,6 @@ class Tools {
|
|
|
553
541
|
unrecognizedObjectKeys: "passthrough",
|
|
554
542
|
allowUnrecognizedUnionMembers: true,
|
|
555
543
|
allowUnrecognizedEnumValues: true,
|
|
556
|
-
skipValidation: true,
|
|
557
544
|
breadcrumbsPrefix: ["response"],
|
|
558
545
|
}), _response.rawResponse);
|
|
559
546
|
default:
|
|
@@ -604,10 +591,10 @@ class Tools {
|
|
|
604
591
|
}
|
|
605
592
|
__getToolVersion(id, version, requestOptions) {
|
|
606
593
|
return __awaiter(this, void 0, void 0, function* () {
|
|
607
|
-
var _a, _b, _c;
|
|
594
|
+
var _a, _b, _c, _d;
|
|
608
595
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
609
|
-
const _response = yield core.fetcher({
|
|
610
|
-
url: core.url.join((
|
|
596
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
597
|
+
url: core.url.join((_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : ((_d = (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HumeEnvironment.Prod).base, `v0/evi/tools/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
|
|
611
598
|
method: "GET",
|
|
612
599
|
headers: _headers,
|
|
613
600
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -621,7 +608,6 @@ class Tools {
|
|
|
621
608
|
unrecognizedObjectKeys: "passthrough",
|
|
622
609
|
allowUnrecognizedUnionMembers: true,
|
|
623
610
|
allowUnrecognizedEnumValues: true,
|
|
624
|
-
skipValidation: true,
|
|
625
611
|
breadcrumbsPrefix: ["response"],
|
|
626
612
|
}),
|
|
627
613
|
rawResponse: _response.rawResponse,
|
|
@@ -634,7 +620,6 @@ class Tools {
|
|
|
634
620
|
unrecognizedObjectKeys: "passthrough",
|
|
635
621
|
allowUnrecognizedUnionMembers: true,
|
|
636
622
|
allowUnrecognizedEnumValues: true,
|
|
637
|
-
skipValidation: true,
|
|
638
623
|
breadcrumbsPrefix: ["response"],
|
|
639
624
|
}), _response.rawResponse);
|
|
640
625
|
default:
|
|
@@ -685,10 +670,10 @@ class Tools {
|
|
|
685
670
|
}
|
|
686
671
|
__deleteToolVersion(id, version, requestOptions) {
|
|
687
672
|
return __awaiter(this, void 0, void 0, function* () {
|
|
688
|
-
var _a, _b, _c;
|
|
673
|
+
var _a, _b, _c, _d;
|
|
689
674
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
690
|
-
const _response = yield core.fetcher({
|
|
691
|
-
url: core.url.join((
|
|
675
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
676
|
+
url: core.url.join((_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : ((_d = (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HumeEnvironment.Prod).base, `v0/evi/tools/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
|
|
692
677
|
method: "DELETE",
|
|
693
678
|
headers: _headers,
|
|
694
679
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -706,7 +691,6 @@ class Tools {
|
|
|
706
691
|
unrecognizedObjectKeys: "passthrough",
|
|
707
692
|
allowUnrecognizedUnionMembers: true,
|
|
708
693
|
allowUnrecognizedEnumValues: true,
|
|
709
|
-
skipValidation: true,
|
|
710
694
|
breadcrumbsPrefix: ["response"],
|
|
711
695
|
}), _response.rawResponse);
|
|
712
696
|
default:
|
|
@@ -760,10 +744,10 @@ class Tools {
|
|
|
760
744
|
}
|
|
761
745
|
__updateToolDescription(id_1, version_1) {
|
|
762
746
|
return __awaiter(this, arguments, void 0, function* (id, version, request = {}, requestOptions) {
|
|
763
|
-
var _a, _b, _c;
|
|
747
|
+
var _a, _b, _c, _d;
|
|
764
748
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
765
|
-
const _response = yield core.fetcher({
|
|
766
|
-
url: core.url.join((
|
|
749
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
750
|
+
url: core.url.join((_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : ((_d = (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HumeEnvironment.Prod).base, `v0/evi/tools/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
|
|
767
751
|
method: "PATCH",
|
|
768
752
|
headers: _headers,
|
|
769
753
|
contentType: "application/json",
|
|
@@ -771,7 +755,6 @@ class Tools {
|
|
|
771
755
|
requestType: "json",
|
|
772
756
|
body: serializers.empathicVoice.PostedUserDefinedToolVersionDescription.jsonOrThrow(request, {
|
|
773
757
|
unrecognizedObjectKeys: "strip",
|
|
774
|
-
omitUndefined: true,
|
|
775
758
|
}),
|
|
776
759
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
777
760
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -783,7 +766,6 @@ class Tools {
|
|
|
783
766
|
unrecognizedObjectKeys: "passthrough",
|
|
784
767
|
allowUnrecognizedUnionMembers: true,
|
|
785
768
|
allowUnrecognizedEnumValues: true,
|
|
786
|
-
skipValidation: true,
|
|
787
769
|
breadcrumbsPrefix: ["response"],
|
|
788
770
|
}),
|
|
789
771
|
rawResponse: _response.rawResponse,
|
|
@@ -796,7 +778,6 @@ class Tools {
|
|
|
796
778
|
unrecognizedObjectKeys: "passthrough",
|
|
797
779
|
allowUnrecognizedUnionMembers: true,
|
|
798
780
|
allowUnrecognizedEnumValues: true,
|
|
799
|
-
skipValidation: true,
|
|
800
781
|
breadcrumbsPrefix: ["response"],
|
|
801
782
|
}), _response.rawResponse);
|
|
802
783
|
default:
|
|
@@ -12,6 +12,7 @@ export declare namespace ExpressionMeasurement {
|
|
|
12
12
|
apiKey?: core.Supplier<string | undefined>;
|
|
13
13
|
/** Additional headers to include in requests. */
|
|
14
14
|
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
15
|
+
fetcher?: core.FetchFunction;
|
|
15
16
|
}
|
|
16
17
|
}
|
|
17
18
|
export declare class ExpressionMeasurement {
|
|
@@ -12,6 +12,7 @@ export declare namespace Batch {
|
|
|
12
12
|
apiKey?: core.Supplier<string | undefined>;
|
|
13
13
|
/** Additional headers to include in requests. */
|
|
14
14
|
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
15
|
+
fetcher?: core.FetchFunction;
|
|
15
16
|
}
|
|
16
17
|
interface RequestOptions {
|
|
17
18
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -70,7 +70,7 @@ class Batch {
|
|
|
70
70
|
}
|
|
71
71
|
__listJobs() {
|
|
72
72
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
73
|
-
var _a, _b, _c;
|
|
73
|
+
var _a, _b, _c, _d;
|
|
74
74
|
const { limit, status, when, timestampMs, sortBy, direction } = request;
|
|
75
75
|
const _queryParams = {};
|
|
76
76
|
if (limit != null) {
|
|
@@ -80,20 +80,17 @@ class Batch {
|
|
|
80
80
|
if (Array.isArray(status)) {
|
|
81
81
|
_queryParams["status"] = status.map((item) => serializers.expressionMeasurement.batch.Status.jsonOrThrow(item, {
|
|
82
82
|
unrecognizedObjectKeys: "strip",
|
|
83
|
-
omitUndefined: true,
|
|
84
83
|
}));
|
|
85
84
|
}
|
|
86
85
|
else {
|
|
87
86
|
_queryParams["status"] = serializers.expressionMeasurement.batch.Status.jsonOrThrow(status, {
|
|
88
87
|
unrecognizedObjectKeys: "strip",
|
|
89
|
-
omitUndefined: true,
|
|
90
88
|
});
|
|
91
89
|
}
|
|
92
90
|
}
|
|
93
91
|
if (when != null) {
|
|
94
92
|
_queryParams["when"] = serializers.expressionMeasurement.batch.When.jsonOrThrow(when, {
|
|
95
93
|
unrecognizedObjectKeys: "strip",
|
|
96
|
-
omitUndefined: true,
|
|
97
94
|
});
|
|
98
95
|
}
|
|
99
96
|
if (timestampMs != null) {
|
|
@@ -102,18 +99,16 @@ class Batch {
|
|
|
102
99
|
if (sortBy != null) {
|
|
103
100
|
_queryParams["sort_by"] = serializers.expressionMeasurement.batch.SortBy.jsonOrThrow(sortBy, {
|
|
104
101
|
unrecognizedObjectKeys: "strip",
|
|
105
|
-
omitUndefined: true,
|
|
106
102
|
});
|
|
107
103
|
}
|
|
108
104
|
if (direction != null) {
|
|
109
105
|
_queryParams["direction"] = serializers.expressionMeasurement.batch.Direction.jsonOrThrow(direction, {
|
|
110
106
|
unrecognizedObjectKeys: "strip",
|
|
111
|
-
omitUndefined: true,
|
|
112
107
|
});
|
|
113
108
|
}
|
|
114
109
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
115
|
-
const _response = yield core.fetcher({
|
|
116
|
-
url: core.url.join((
|
|
110
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
111
|
+
url: core.url.join((_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : ((_d = (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HumeEnvironment.Prod).base, "v0/batch/jobs"),
|
|
117
112
|
method: "GET",
|
|
118
113
|
headers: _headers,
|
|
119
114
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -127,7 +122,6 @@ class Batch {
|
|
|
127
122
|
unrecognizedObjectKeys: "passthrough",
|
|
128
123
|
allowUnrecognizedUnionMembers: true,
|
|
129
124
|
allowUnrecognizedEnumValues: true,
|
|
130
|
-
skipValidation: true,
|
|
131
125
|
breadcrumbsPrefix: ["response"],
|
|
132
126
|
}),
|
|
133
127
|
rawResponse: _response.rawResponse,
|
|
@@ -174,10 +168,10 @@ class Batch {
|
|
|
174
168
|
}
|
|
175
169
|
__startInferenceJob(request, requestOptions) {
|
|
176
170
|
return __awaiter(this, void 0, void 0, function* () {
|
|
177
|
-
var _a, _b, _c;
|
|
171
|
+
var _a, _b, _c, _d;
|
|
178
172
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
179
|
-
const _response = yield core.fetcher({
|
|
180
|
-
url: core.url.join((
|
|
173
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
174
|
+
url: core.url.join((_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : ((_d = (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HumeEnvironment.Prod).base, "v0/batch/jobs"),
|
|
181
175
|
method: "POST",
|
|
182
176
|
headers: _headers,
|
|
183
177
|
contentType: "application/json",
|
|
@@ -185,7 +179,6 @@ class Batch {
|
|
|
185
179
|
requestType: "json",
|
|
186
180
|
body: serializers.expressionMeasurement.batch.InferenceBaseRequest.jsonOrThrow(request, {
|
|
187
181
|
unrecognizedObjectKeys: "strip",
|
|
188
|
-
omitUndefined: true,
|
|
189
182
|
}),
|
|
190
183
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
191
184
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -197,7 +190,6 @@ class Batch {
|
|
|
197
190
|
unrecognizedObjectKeys: "passthrough",
|
|
198
191
|
allowUnrecognizedUnionMembers: true,
|
|
199
192
|
allowUnrecognizedEnumValues: true,
|
|
200
|
-
skipValidation: true,
|
|
201
193
|
breadcrumbsPrefix: ["response"],
|
|
202
194
|
}),
|
|
203
195
|
rawResponse: _response.rawResponse,
|
|
@@ -241,10 +233,10 @@ class Batch {
|
|
|
241
233
|
}
|
|
242
234
|
__getJobDetails(id, requestOptions) {
|
|
243
235
|
return __awaiter(this, void 0, void 0, function* () {
|
|
244
|
-
var _a, _b, _c;
|
|
236
|
+
var _a, _b, _c, _d;
|
|
245
237
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
246
|
-
const _response = yield core.fetcher({
|
|
247
|
-
url: core.url.join((
|
|
238
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
239
|
+
url: core.url.join((_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : ((_d = (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HumeEnvironment.Prod).base, `v0/batch/jobs/${encodeURIComponent(id)}`),
|
|
248
240
|
method: "GET",
|
|
249
241
|
headers: _headers,
|
|
250
242
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -258,7 +250,6 @@ class Batch {
|
|
|
258
250
|
unrecognizedObjectKeys: "passthrough",
|
|
259
251
|
allowUnrecognizedUnionMembers: true,
|
|
260
252
|
allowUnrecognizedEnumValues: true,
|
|
261
|
-
skipValidation: true,
|
|
262
253
|
breadcrumbsPrefix: ["response"],
|
|
263
254
|
}),
|
|
264
255
|
rawResponse: _response.rawResponse,
|
|
@@ -302,10 +293,10 @@ class Batch {
|
|
|
302
293
|
}
|
|
303
294
|
__getJobPredictions(id, requestOptions) {
|
|
304
295
|
return __awaiter(this, void 0, void 0, function* () {
|
|
305
|
-
var _a, _b, _c;
|
|
296
|
+
var _a, _b, _c, _d;
|
|
306
297
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
307
|
-
const _response = yield core.fetcher({
|
|
308
|
-
url: core.url.join((
|
|
298
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
299
|
+
url: core.url.join((_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : ((_d = (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HumeEnvironment.Prod).base, `v0/batch/jobs/${encodeURIComponent(id)}/predictions`),
|
|
309
300
|
method: "GET",
|
|
310
301
|
headers: _headers,
|
|
311
302
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -319,7 +310,6 @@ class Batch {
|
|
|
319
310
|
unrecognizedObjectKeys: "passthrough",
|
|
320
311
|
allowUnrecognizedUnionMembers: true,
|
|
321
312
|
allowUnrecognizedEnumValues: true,
|
|
322
|
-
skipValidation: true,
|
|
323
313
|
breadcrumbsPrefix: ["response"],
|
|
324
314
|
}),
|
|
325
315
|
rawResponse: _response.rawResponse,
|
|
@@ -357,10 +347,10 @@ class Batch {
|
|
|
357
347
|
}
|
|
358
348
|
__getJobArtifacts(id, requestOptions) {
|
|
359
349
|
return __awaiter(this, void 0, void 0, function* () {
|
|
360
|
-
var _a, _b, _c;
|
|
350
|
+
var _a, _b, _c, _d;
|
|
361
351
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
362
|
-
const _response = yield core.fetcher({
|
|
363
|
-
url: core.url.join((
|
|
352
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
353
|
+
url: core.url.join((_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : ((_d = (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HumeEnvironment.Prod).base, `v0/batch/jobs/${encodeURIComponent(id)}/artifacts`),
|
|
364
354
|
method: "GET",
|
|
365
355
|
headers: _headers,
|
|
366
356
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -413,12 +403,11 @@ class Batch {
|
|
|
413
403
|
}
|
|
414
404
|
__startInferenceJobFromLocalFile(request, requestOptions) {
|
|
415
405
|
return __awaiter(this, void 0, void 0, function* () {
|
|
416
|
-
var _a, _b, _c;
|
|
406
|
+
var _a, _b, _c, _d;
|
|
417
407
|
const _request = yield core.newFormData();
|
|
418
408
|
if (request.json != null) {
|
|
419
409
|
_request.append("json", (0, json_js_1.toJson)(serializers.expressionMeasurement.batch.InferenceBaseRequest.jsonOrThrow(request.json, {
|
|
420
410
|
unrecognizedObjectKeys: "strip",
|
|
421
|
-
omitUndefined: true,
|
|
422
411
|
})));
|
|
423
412
|
}
|
|
424
413
|
for (const _file of request.file) {
|
|
@@ -426,8 +415,8 @@ class Batch {
|
|
|
426
415
|
}
|
|
427
416
|
const _maybeEncodedRequest = yield _request.getRequest();
|
|
428
417
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign(Object.assign({}, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers)), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
429
|
-
const _response = yield core.fetcher({
|
|
430
|
-
url: core.url.join((
|
|
418
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
419
|
+
url: core.url.join((_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : ((_d = (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HumeEnvironment.Prod).base, "v0/batch/jobs"),
|
|
431
420
|
method: "POST",
|
|
432
421
|
headers: _headers,
|
|
433
422
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -444,7 +433,6 @@ class Batch {
|
|
|
444
433
|
unrecognizedObjectKeys: "passthrough",
|
|
445
434
|
allowUnrecognizedUnionMembers: true,
|
|
446
435
|
allowUnrecognizedEnumValues: true,
|
|
447
|
-
skipValidation: true,
|
|
448
436
|
breadcrumbsPrefix: ["response"],
|
|
449
437
|
}),
|
|
450
438
|
rawResponse: _response.rawResponse,
|
|
@@ -12,6 +12,7 @@ export declare namespace Stream {
|
|
|
12
12
|
apiKey?: core.Supplier<string | undefined>;
|
|
13
13
|
/** Additional headers to include in requests. */
|
|
14
14
|
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
15
|
+
fetcher?: core.FetchFunction;
|
|
15
16
|
}
|
|
16
17
|
interface ConnectArgs {
|
|
17
18
|
"X-Hume-Api-Key": string;
|
package/dist/api/resources/expressionMeasurement/resources/stream/resources/stream/client/Socket.js
CHANGED
|
@@ -64,8 +64,6 @@ class StreamSocket {
|
|
|
64
64
|
unrecognizedObjectKeys: "passthrough",
|
|
65
65
|
allowUnrecognizedUnionMembers: true,
|
|
66
66
|
allowUnrecognizedEnumValues: true,
|
|
67
|
-
skipValidation: true,
|
|
68
|
-
omitUndefined: true,
|
|
69
67
|
});
|
|
70
68
|
if (parsedResponse.ok) {
|
|
71
69
|
(_b = (_a = this.eventHandlers).message) === null || _b === void 0 ? void 0 : _b.call(_a, parsedResponse.value);
|
|
@@ -112,8 +110,6 @@ class StreamSocket {
|
|
|
112
110
|
unrecognizedObjectKeys: "passthrough",
|
|
113
111
|
allowUnrecognizedUnionMembers: true,
|
|
114
112
|
allowUnrecognizedEnumValues: true,
|
|
115
|
-
skipValidation: true,
|
|
116
|
-
omitUndefined: true,
|
|
117
113
|
});
|
|
118
114
|
this.socket.send(JSON.stringify(jsonPayload));
|
|
119
115
|
}
|
|
@@ -14,6 +14,7 @@ export declare namespace Tts {
|
|
|
14
14
|
apiKey?: core.Supplier<string | undefined>;
|
|
15
15
|
/** Additional headers to include in requests. */
|
|
16
16
|
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
17
|
+
fetcher?: core.FetchFunction;
|
|
17
18
|
}
|
|
18
19
|
interface RequestOptions {
|
|
19
20
|
/** The maximum time to wait for a response in seconds. */
|