hume 0.5.7 → 0.5.8

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 (39) hide show
  1. package/Client.d.ts +3 -3
  2. package/Client.js +6 -6
  3. package/api/resources/customModels/resources/datasets/client/Client.js +9 -9
  4. package/api/resources/customModels/resources/files/client/Client.js +7 -7
  5. package/api/resources/customModels/resources/jobs/client/Client.js +2 -2
  6. package/api/resources/customModels/resources/models/client/Client.js +6 -6
  7. package/api/resources/empathicVoice/resources/chats/client/Client.js +2 -2
  8. package/api/resources/empathicVoice/resources/configs/client/Client.js +9 -9
  9. package/api/resources/empathicVoice/resources/prompts/client/Client.js +9 -9
  10. package/api/resources/expressionMeasurement/resources/batch/client/Client.js +6 -6
  11. package/api/resources/index.d.ts +1 -1
  12. package/api/resources/index.js +2 -2
  13. package/core/websocket/WebSocket.d.ts +6 -1
  14. package/core/websocket/WebSocket.js +19 -12
  15. package/core/websocket/index.d.ts +1 -1
  16. package/core/websocket/index.js +2 -2
  17. package/dist/Client.d.ts +3 -3
  18. package/dist/Client.js +6 -6
  19. package/dist/api/resources/customModels/resources/datasets/client/Client.js +9 -9
  20. package/dist/api/resources/customModels/resources/files/client/Client.js +7 -7
  21. package/dist/api/resources/customModels/resources/jobs/client/Client.js +2 -2
  22. package/dist/api/resources/customModels/resources/models/client/Client.js +6 -6
  23. package/dist/api/resources/empathicVoice/resources/chats/client/Client.js +2 -2
  24. package/dist/api/resources/empathicVoice/resources/configs/client/Client.js +9 -9
  25. package/dist/api/resources/empathicVoice/resources/prompts/client/Client.js +9 -9
  26. package/dist/api/resources/expressionMeasurement/resources/batch/client/Client.js +6 -6
  27. package/dist/api/resources/index.d.ts +1 -1
  28. package/dist/api/resources/index.js +2 -2
  29. package/dist/core/websocket/WebSocket.d.ts +6 -1
  30. package/dist/core/websocket/WebSocket.js +19 -12
  31. package/dist/core/websocket/index.d.ts +1 -1
  32. package/dist/core/websocket/index.js +2 -2
  33. package/dist/serialization/resources/index.d.ts +1 -1
  34. package/dist/serialization/resources/index.js +2 -2
  35. package/dist/wrapper/empathicVoice/chat/ChatClient.js +1 -3
  36. package/package.json +1 -1
  37. package/serialization/resources/index.d.ts +1 -1
  38. package/serialization/resources/index.js +2 -2
  39. package/wrapper/empathicVoice/chat/ChatClient.js +1 -3
package/Client.d.ts CHANGED
@@ -3,8 +3,8 @@
3
3
  */
4
4
  import * as environments from "./environments";
5
5
  import * as core from "./core";
6
- import { CustomModels } from "./api/resources/customModels/client/Client";
7
6
  import { EmpathicVoice } from "./api/resources/empathicVoice/client/Client";
7
+ import { CustomModels } from "./api/resources/customModels/client/Client";
8
8
  import { ExpressionMeasurement } from "./api/resources/expressionMeasurement/client/Client";
9
9
  export declare namespace HumeClient {
10
10
  interface Options {
@@ -21,10 +21,10 @@ export declare namespace HumeClient {
21
21
  export declare class HumeClient {
22
22
  protected readonly _options: HumeClient.Options;
23
23
  constructor(_options?: HumeClient.Options);
24
- protected _customModels: CustomModels | undefined;
25
- get customModels(): CustomModels;
26
24
  protected _empathicVoice: EmpathicVoice | undefined;
27
25
  get empathicVoice(): EmpathicVoice;
26
+ protected _customModels: CustomModels | undefined;
27
+ get customModels(): CustomModels;
28
28
  protected _expressionMeasurement: ExpressionMeasurement | undefined;
29
29
  get expressionMeasurement(): ExpressionMeasurement;
30
30
  }
package/Client.js CHANGED
@@ -4,20 +4,20 @@
4
4
  */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.HumeClient = void 0;
7
- const Client_1 = require("./api/resources/customModels/client/Client");
8
- const Client_2 = require("./api/resources/empathicVoice/client/Client");
7
+ const Client_1 = require("./api/resources/empathicVoice/client/Client");
8
+ const Client_2 = require("./api/resources/customModels/client/Client");
9
9
  const Client_3 = require("./api/resources/expressionMeasurement/client/Client");
10
10
  class HumeClient {
11
11
  constructor(_options = {}) {
12
12
  this._options = _options;
13
13
  }
14
- get customModels() {
14
+ get empathicVoice() {
15
15
  var _a;
16
- return ((_a = this._customModels) !== null && _a !== void 0 ? _a : (this._customModels = new Client_1.CustomModels(this._options)));
16
+ return ((_a = this._empathicVoice) !== null && _a !== void 0 ? _a : (this._empathicVoice = new Client_1.EmpathicVoice(this._options)));
17
17
  }
18
- get empathicVoice() {
18
+ get customModels() {
19
19
  var _a;
20
- return ((_a = this._empathicVoice) !== null && _a !== void 0 ? _a : (this._empathicVoice = new Client_2.EmpathicVoice(this._options)));
20
+ return ((_a = this._customModels) !== null && _a !== void 0 ? _a : (this._customModels = new Client_2.CustomModels(this._options)));
21
21
  }
22
22
  get expressionMeasurement() {
23
23
  var _a;
@@ -77,7 +77,7 @@ class Datasets {
77
77
  method: "GET",
78
78
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
79
79
  ? yield core.Supplier.get(this._options.accountToken)
80
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
80
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
81
81
  contentType: "application/json",
82
82
  queryParameters: _queryParams,
83
83
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -130,7 +130,7 @@ class Datasets {
130
130
  method: "POST",
131
131
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
132
132
  ? yield core.Supplier.get(this._options.accountToken)
133
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
133
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
134
134
  contentType: "multipart/form-data; boundary=" + _request.getBoundary(),
135
135
  body: _request,
136
136
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -180,7 +180,7 @@ class Datasets {
180
180
  method: "GET",
181
181
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
182
182
  ? yield core.Supplier.get(this._options.accountToken)
183
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
183
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
184
184
  contentType: "application/json",
185
185
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
186
186
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -231,7 +231,7 @@ class Datasets {
231
231
  method: "POST",
232
232
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
233
233
  ? yield core.Supplier.get(this._options.accountToken)
234
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
234
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
235
235
  contentType: "multipart/form-data; boundary=" + _request.getBoundary(),
236
236
  body: _request,
237
237
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -281,7 +281,7 @@ class Datasets {
281
281
  method: "DELETE",
282
282
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
283
283
  ? yield core.Supplier.get(this._options.accountToken)
284
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
284
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
285
285
  contentType: "application/json",
286
286
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
287
287
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -335,7 +335,7 @@ class Datasets {
335
335
  method: "GET",
336
336
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
337
337
  ? yield core.Supplier.get(this._options.accountToken)
338
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
338
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
339
339
  contentType: "application/json",
340
340
  queryParameters: _queryParams,
341
341
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -396,7 +396,7 @@ class Datasets {
396
396
  method: "GET",
397
397
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
398
398
  ? yield core.Supplier.get(this._options.accountToken)
399
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
399
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
400
400
  contentType: "application/json",
401
401
  queryParameters: _queryParams,
402
402
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -446,7 +446,7 @@ class Datasets {
446
446
  method: "GET",
447
447
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
448
448
  ? yield core.Supplier.get(this._options.accountToken)
449
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
449
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
450
450
  contentType: "application/json",
451
451
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
452
452
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -506,7 +506,7 @@ class Datasets {
506
506
  method: "GET",
507
507
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
508
508
  ? yield core.Supplier.get(this._options.accountToken)
509
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
509
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
510
510
  contentType: "application/json",
511
511
  queryParameters: _queryParams,
512
512
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -74,7 +74,7 @@ class Files {
74
74
  method: "GET",
75
75
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
76
76
  ? yield core.Supplier.get(this._options.accountToken)
77
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
77
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
78
78
  contentType: "application/json",
79
79
  queryParameters: _queryParams,
80
80
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -130,7 +130,7 @@ class Files {
130
130
  method: "POST",
131
131
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
132
132
  ? yield core.Supplier.get(this._options.accountToken)
133
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
133
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
134
134
  contentType: "application/json",
135
135
  body: yield serializers.customModels.files.createFiles.Request.jsonOrThrow(request, {
136
136
  unrecognizedObjectKeys: "strip",
@@ -184,7 +184,7 @@ class Files {
184
184
  method: "POST",
185
185
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
186
186
  ? yield core.Supplier.get(this._options.accountToken)
187
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
187
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
188
188
  contentType: "multipart/form-data; boundary=" + _request.getBoundary(),
189
189
  body: _request,
190
190
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -234,7 +234,7 @@ class Files {
234
234
  method: "GET",
235
235
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
236
236
  ? yield core.Supplier.get(this._options.accountToken)
237
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
237
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
238
238
  contentType: "application/json",
239
239
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
240
240
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -283,7 +283,7 @@ class Files {
283
283
  method: "DELETE",
284
284
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
285
285
  ? yield core.Supplier.get(this._options.accountToken)
286
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
286
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
287
287
  contentType: "application/json",
288
288
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
289
289
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -331,7 +331,7 @@ class Files {
331
331
  method: "PATCH",
332
332
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
333
333
  ? yield core.Supplier.get(this._options.accountToken)
334
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
334
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
335
335
  contentType: "application/json",
336
336
  queryParameters: _queryParams,
337
337
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -381,7 +381,7 @@ class Files {
381
381
  method: "GET",
382
382
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
383
383
  ? yield core.Supplier.get(this._options.accountToken)
384
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
384
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
385
385
  contentType: "application/json",
386
386
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
387
387
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -69,7 +69,7 @@ class Jobs {
69
69
  method: "POST",
70
70
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
71
71
  ? yield core.Supplier.get(this._options.accountToken)
72
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
72
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
73
73
  contentType: "application/json",
74
74
  body: yield serializers.customModels.TrainingBaseRequest.jsonOrThrow(request, {
75
75
  unrecognizedObjectKeys: "strip",
@@ -125,7 +125,7 @@ class Jobs {
125
125
  method: "POST",
126
126
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
127
127
  ? yield core.Supplier.get(this._options.accountToken)
128
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
128
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
129
129
  contentType: "application/json",
130
130
  body: yield serializers.customModels.TlInferenceBaseRequest.jsonOrThrow(request, {
131
131
  unrecognizedObjectKeys: "strip",
@@ -62,7 +62,7 @@ class Models {
62
62
  method: "GET",
63
63
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
64
64
  ? yield core.Supplier.get(this._options.accountToken)
65
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
65
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
66
66
  contentType: "application/json",
67
67
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
68
68
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -116,7 +116,7 @@ class Models {
116
116
  method: "PATCH",
117
117
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
118
118
  ? yield core.Supplier.get(this._options.accountToken)
119
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
119
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
120
120
  contentType: "application/json",
121
121
  queryParameters: _queryParams,
122
122
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -171,7 +171,7 @@ class Models {
171
171
  method: "GET",
172
172
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
173
173
  ? yield core.Supplier.get(this._options.accountToken)
174
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
174
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
175
175
  contentType: "application/json",
176
176
  queryParameters: _queryParams,
177
177
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -221,7 +221,7 @@ class Models {
221
221
  method: "PATCH",
222
222
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
223
223
  ? yield core.Supplier.get(this._options.accountToken)
224
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
224
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
225
225
  contentType: "application/json",
226
226
  body: yield serializers.customModels.models.updateModelVersionDescription.Request.jsonOrThrow(request, {
227
227
  unrecognizedObjectKeys: "strip",
@@ -287,7 +287,7 @@ class Models {
287
287
  method: "GET",
288
288
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
289
289
  ? yield core.Supplier.get(this._options.accountToken)
290
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
290
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
291
291
  contentType: "application/json",
292
292
  queryParameters: _queryParams,
293
293
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -356,7 +356,7 @@ class Models {
356
356
  method: "GET",
357
357
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
358
358
  ? yield core.Supplier.get(this._options.accountToken)
359
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
359
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
360
360
  contentType: "application/json",
361
361
  queryParameters: _queryParams,
362
362
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -64,7 +64,7 @@ class Chats {
64
64
  method: "GET",
65
65
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
66
66
  ? yield core.Supplier.get(this._options.accountToken)
67
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
67
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
68
68
  contentType: "application/json",
69
69
  queryParameters: _queryParams,
70
70
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -116,7 +116,7 @@ class Chats {
116
116
  method: "GET",
117
117
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
118
118
  ? yield core.Supplier.get(this._options.accountToken)
119
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
119
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
120
120
  contentType: "application/json",
121
121
  queryParameters: _queryParams,
122
122
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -67,7 +67,7 @@ class Configs {
67
67
  method: "GET",
68
68
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
69
69
  ? yield core.Supplier.get(this._options.accountToken)
70
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
70
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
71
71
  contentType: "application/json",
72
72
  queryParameters: _queryParams,
73
73
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -111,7 +111,7 @@ class Configs {
111
111
  method: "POST",
112
112
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
113
113
  ? yield core.Supplier.get(this._options.accountToken)
114
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
114
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
115
115
  contentType: "application/json",
116
116
  body: yield serializers.empathicVoice.PostedConfig.jsonOrThrow(request, {
117
117
  unrecognizedObjectKeys: "strip",
@@ -168,7 +168,7 @@ class Configs {
168
168
  method: "GET",
169
169
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
170
170
  ? yield core.Supplier.get(this._options.accountToken)
171
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
171
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
172
172
  contentType: "application/json",
173
173
  queryParameters: _queryParams,
174
174
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -212,7 +212,7 @@ class Configs {
212
212
  method: "POST",
213
213
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
214
214
  ? yield core.Supplier.get(this._options.accountToken)
215
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
215
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
216
216
  contentType: "application/json",
217
217
  body: yield serializers.empathicVoice.PostedConfigVersion.jsonOrThrow(request, {
218
218
  unrecognizedObjectKeys: "strip",
@@ -258,7 +258,7 @@ class Configs {
258
258
  method: "DELETE",
259
259
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
260
260
  ? yield core.Supplier.get(this._options.accountToken)
261
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
261
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
262
262
  contentType: "application/json",
263
263
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
264
264
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -295,7 +295,7 @@ class Configs {
295
295
  method: "PATCH",
296
296
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
297
297
  ? yield core.Supplier.get(this._options.accountToken)
298
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
298
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
299
299
  contentType: "application/json",
300
300
  body: yield serializers.empathicVoice.PostedConfigName.jsonOrThrow(request, {
301
301
  unrecognizedObjectKeys: "strip",
@@ -335,7 +335,7 @@ class Configs {
335
335
  method: "GET",
336
336
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
337
337
  ? yield core.Supplier.get(this._options.accountToken)
338
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
338
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
339
339
  contentType: "application/json",
340
340
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
341
341
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -378,7 +378,7 @@ class Configs {
378
378
  method: "DELETE",
379
379
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
380
380
  ? yield core.Supplier.get(this._options.accountToken)
381
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
381
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
382
382
  contentType: "application/json",
383
383
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
384
384
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -415,7 +415,7 @@ class Configs {
415
415
  method: "PATCH",
416
416
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
417
417
  ? yield core.Supplier.get(this._options.accountToken)
418
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
418
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
419
419
  contentType: "application/json",
420
420
  body: yield serializers.empathicVoice.PostedConfigVersionDescription.jsonOrThrow(request, {
421
421
  unrecognizedObjectKeys: "strip",
@@ -67,7 +67,7 @@ class Prompts {
67
67
  method: "GET",
68
68
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
69
69
  ? yield core.Supplier.get(this._options.accountToken)
70
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
70
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
71
71
  contentType: "application/json",
72
72
  queryParameters: _queryParams,
73
73
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -111,7 +111,7 @@ class Prompts {
111
111
  method: "POST",
112
112
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
113
113
  ? yield core.Supplier.get(this._options.accountToken)
114
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
114
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
115
115
  contentType: "application/json",
116
116
  body: yield serializers.empathicVoice.PostedPrompt.jsonOrThrow(request, {
117
117
  unrecognizedObjectKeys: "strip",
@@ -168,7 +168,7 @@ class Prompts {
168
168
  method: "GET",
169
169
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
170
170
  ? yield core.Supplier.get(this._options.accountToken)
171
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
171
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
172
172
  contentType: "application/json",
173
173
  queryParameters: _queryParams,
174
174
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -212,7 +212,7 @@ class Prompts {
212
212
  method: "POST",
213
213
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
214
214
  ? yield core.Supplier.get(this._options.accountToken)
215
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
215
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
216
216
  contentType: "application/json",
217
217
  body: yield serializers.empathicVoice.PostedPromptVersion.jsonOrThrow(request, {
218
218
  unrecognizedObjectKeys: "strip",
@@ -258,7 +258,7 @@ class Prompts {
258
258
  method: "DELETE",
259
259
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
260
260
  ? yield core.Supplier.get(this._options.accountToken)
261
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
261
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
262
262
  contentType: "application/json",
263
263
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
264
264
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -295,7 +295,7 @@ class Prompts {
295
295
  method: "PATCH",
296
296
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
297
297
  ? yield core.Supplier.get(this._options.accountToken)
298
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
298
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
299
299
  contentType: "application/json",
300
300
  body: yield serializers.empathicVoice.PostedPromptName.jsonOrThrow(request, {
301
301
  unrecognizedObjectKeys: "strip",
@@ -335,7 +335,7 @@ class Prompts {
335
335
  method: "GET",
336
336
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
337
337
  ? yield core.Supplier.get(this._options.accountToken)
338
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
338
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
339
339
  contentType: "application/json",
340
340
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
341
341
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -378,7 +378,7 @@ class Prompts {
378
378
  method: "DELETE",
379
379
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
380
380
  ? yield core.Supplier.get(this._options.accountToken)
381
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
381
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
382
382
  contentType: "application/json",
383
383
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
384
384
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -415,7 +415,7 @@ class Prompts {
415
415
  method: "PATCH",
416
416
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
417
417
  ? yield core.Supplier.get(this._options.accountToken)
418
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
418
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
419
419
  contentType: "application/json",
420
420
  body: yield serializers.empathicVoice.PostedPromptVersionDescription.jsonOrThrow(request, {
421
421
  unrecognizedObjectKeys: "strip",
@@ -96,7 +96,7 @@ class Batch {
96
96
  method: "GET",
97
97
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
98
98
  ? yield core.Supplier.get(this._options.accountToken)
99
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
99
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
100
100
  contentType: "application/json",
101
101
  queryParameters: _queryParams,
102
102
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -149,7 +149,7 @@ class Batch {
149
149
  method: "POST",
150
150
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
151
151
  ? yield core.Supplier.get(this._options.accountToken)
152
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
152
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
153
153
  contentType: "application/json",
154
154
  body: yield serializers.expressionMeasurement.InferenceBaseRequest.jsonOrThrow(request, {
155
155
  unrecognizedObjectKeys: "strip",
@@ -204,7 +204,7 @@ class Batch {
204
204
  method: "GET",
205
205
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
206
206
  ? yield core.Supplier.get(this._options.accountToken)
207
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
207
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
208
208
  contentType: "application/json",
209
209
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
210
210
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -253,7 +253,7 @@ class Batch {
253
253
  method: "GET",
254
254
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
255
255
  ? yield core.Supplier.get(this._options.accountToken)
256
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
256
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
257
257
  contentType: "application/json",
258
258
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
259
259
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -299,7 +299,7 @@ class Batch {
299
299
  method: "GET",
300
300
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
301
301
  ? yield core.Supplier.get(this._options.accountToken)
302
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
302
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
303
303
  contentType: "application/json",
304
304
  responseType: "streaming",
305
305
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -345,7 +345,7 @@ class Batch {
345
345
  method: "POST",
346
346
  headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
347
347
  ? yield core.Supplier.get(this._options.accountToken)
348
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
348
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
349
349
  contentType: "multipart/form-data; boundary=" + _request.getBoundary(),
350
350
  body: _request,
351
351
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1,3 +1,3 @@
1
- export * as customModels from "./customModels";
2
1
  export * as empathicVoice from "./empathicVoice";
2
+ export * as customModels from "./customModels";
3
3
  export * as expressionMeasurement from "./expressionMeasurement";
@@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.expressionMeasurement = exports.empathicVoice = exports.customModels = void 0;
27
- exports.customModels = __importStar(require("./customModels"));
26
+ exports.expressionMeasurement = exports.customModels = exports.empathicVoice = void 0;
28
27
  exports.empathicVoice = __importStar(require("./empathicVoice"));
28
+ exports.customModels = __importStar(require("./customModels"));
29
29
  exports.expressionMeasurement = __importStar(require("./expressionMeasurement"));
@@ -1 +1,6 @@
1
- export declare const IsomorphicWebSocket: any;
1
+ export declare namespace WebSocket {
2
+ interface Options {
3
+ timeout: number;
4
+ }
5
+ }
6
+ export declare function connect(url: string): Promise<any>;