hume 0.8.0 → 0.8.1-beta0

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 (96) hide show
  1. package/.mock/definition/empathic-voice/__package__.yml +3 -65
  2. package/Client.d.ts +3 -0
  3. package/api/resources/empathicVoice/client/Client.d.ts +3 -0
  4. package/api/resources/empathicVoice/resources/chat/client/Socket.d.ts +8 -8
  5. package/api/resources/empathicVoice/resources/chat/client/Socket.js +13 -40
  6. package/api/resources/empathicVoice/resources/chatGroups/client/Client.d.ts +3 -0
  7. package/api/resources/empathicVoice/resources/chatGroups/client/Client.js +4 -4
  8. package/api/resources/empathicVoice/resources/chats/client/Client.d.ts +3 -0
  9. package/api/resources/empathicVoice/resources/chats/client/Client.js +4 -4
  10. package/api/resources/empathicVoice/resources/configs/client/Client.d.ts +3 -0
  11. package/api/resources/empathicVoice/resources/configs/client/Client.js +19 -23
  12. package/api/resources/empathicVoice/resources/prompts/client/Client.d.ts +3 -0
  13. package/api/resources/empathicVoice/resources/prompts/client/Client.js +19 -23
  14. package/api/resources/empathicVoice/resources/tools/client/Client.d.ts +3 -0
  15. package/api/resources/empathicVoice/resources/tools/client/Client.js +19 -19
  16. package/api/resources/empathicVoice/types/SessionSettings.d.ts +2 -0
  17. package/api/resources/empathicVoice/types/VoiceArgs.d.ts +0 -2
  18. package/api/resources/empathicVoice/types/index.d.ts +0 -1
  19. package/api/resources/empathicVoice/types/index.js +0 -1
  20. package/api/resources/expressionMeasurement/client/Client.d.ts +3 -0
  21. package/api/resources/expressionMeasurement/resources/batch/client/Client.d.ts +3 -0
  22. package/api/resources/expressionMeasurement/resources/batch/client/Client.js +12 -12
  23. package/core/form-data-utils/FormDataWrapper.js +1 -3
  24. package/core/schemas/Schema.d.ts +3 -4
  25. package/core/schemas/builders/lazy/lazy.d.ts +2 -2
  26. package/core/schemas/builders/lazy/lazy.js +8 -19
  27. package/core/schemas/builders/lazy/lazyObject.js +1 -10
  28. package/core/schemas/builders/list/list.js +31 -44
  29. package/core/schemas/builders/object/object.js +88 -111
  30. package/core/schemas/builders/object/types.d.ts +2 -2
  31. package/core/schemas/builders/object-like/getObjectLikeUtils.js +3 -12
  32. package/core/schemas/builders/record/record.js +49 -60
  33. package/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +2 -2
  34. package/core/schemas/builders/schema-utils/getSchemaUtils.js +12 -21
  35. package/core/schemas/builders/set/set.js +6 -15
  36. package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +21 -32
  37. package/core/schemas/builders/union/union.js +51 -62
  38. package/core/schemas/utils/maybeSkipValidation.js +3 -12
  39. package/dist/Client.d.ts +3 -0
  40. package/dist/api/resources/empathicVoice/client/Client.d.ts +3 -0
  41. package/dist/api/resources/empathicVoice/resources/chat/client/Socket.d.ts +8 -8
  42. package/dist/api/resources/empathicVoice/resources/chat/client/Socket.js +13 -40
  43. package/dist/api/resources/empathicVoice/resources/chatGroups/client/Client.d.ts +3 -0
  44. package/dist/api/resources/empathicVoice/resources/chatGroups/client/Client.js +4 -4
  45. package/dist/api/resources/empathicVoice/resources/chats/client/Client.d.ts +3 -0
  46. package/dist/api/resources/empathicVoice/resources/chats/client/Client.js +4 -4
  47. package/dist/api/resources/empathicVoice/resources/configs/client/Client.d.ts +3 -0
  48. package/dist/api/resources/empathicVoice/resources/configs/client/Client.js +19 -23
  49. package/dist/api/resources/empathicVoice/resources/prompts/client/Client.d.ts +3 -0
  50. package/dist/api/resources/empathicVoice/resources/prompts/client/Client.js +19 -23
  51. package/dist/api/resources/empathicVoice/resources/tools/client/Client.d.ts +3 -0
  52. package/dist/api/resources/empathicVoice/resources/tools/client/Client.js +19 -19
  53. package/dist/api/resources/empathicVoice/types/SessionSettings.d.ts +2 -0
  54. package/dist/api/resources/empathicVoice/types/VoiceArgs.d.ts +0 -2
  55. package/dist/api/resources/empathicVoice/types/index.d.ts +0 -1
  56. package/dist/api/resources/empathicVoice/types/index.js +0 -1
  57. package/dist/api/resources/expressionMeasurement/client/Client.d.ts +3 -0
  58. package/dist/api/resources/expressionMeasurement/resources/batch/client/Client.d.ts +3 -0
  59. package/dist/api/resources/expressionMeasurement/resources/batch/client/Client.js +12 -12
  60. package/dist/core/form-data-utils/FormDataWrapper.js +1 -3
  61. package/dist/core/schemas/Schema.d.ts +3 -4
  62. package/dist/core/schemas/builders/lazy/lazy.d.ts +2 -2
  63. package/dist/core/schemas/builders/lazy/lazy.js +8 -19
  64. package/dist/core/schemas/builders/lazy/lazyObject.js +1 -10
  65. package/dist/core/schemas/builders/list/list.js +31 -44
  66. package/dist/core/schemas/builders/object/object.js +88 -111
  67. package/dist/core/schemas/builders/object/types.d.ts +2 -2
  68. package/dist/core/schemas/builders/object-like/getObjectLikeUtils.js +3 -12
  69. package/dist/core/schemas/builders/record/record.js +49 -60
  70. package/dist/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +2 -2
  71. package/dist/core/schemas/builders/schema-utils/getSchemaUtils.js +12 -21
  72. package/dist/core/schemas/builders/set/set.js +6 -15
  73. package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +21 -32
  74. package/dist/core/schemas/builders/union/union.js +51 -62
  75. package/dist/core/schemas/utils/maybeSkipValidation.js +3 -12
  76. package/dist/serialization/resources/empathicVoice/types/SessionSettings.d.ts +1 -0
  77. package/dist/serialization/resources/empathicVoice/types/SessionSettings.js +1 -0
  78. package/dist/serialization/resources/empathicVoice/types/VoiceArgs.d.ts +0 -3
  79. package/dist/serialization/resources/empathicVoice/types/VoiceArgs.js +0 -3
  80. package/dist/serialization/resources/empathicVoice/types/index.d.ts +0 -1
  81. package/dist/serialization/resources/empathicVoice/types/index.js +0 -1
  82. package/package.json +1 -1
  83. package/serialization/resources/empathicVoice/types/SessionSettings.d.ts +1 -0
  84. package/serialization/resources/empathicVoice/types/SessionSettings.js +1 -0
  85. package/serialization/resources/empathicVoice/types/VoiceArgs.d.ts +0 -3
  86. package/serialization/resources/empathicVoice/types/VoiceArgs.js +0 -3
  87. package/serialization/resources/empathicVoice/types/index.d.ts +0 -1
  88. package/serialization/resources/empathicVoice/types/index.js +0 -1
  89. package/api/resources/empathicVoice/types/Features.d.ts +0 -21
  90. package/api/resources/empathicVoice/types/Features.js +0 -5
  91. package/dist/api/resources/empathicVoice/types/Features.d.ts +0 -21
  92. package/dist/api/resources/empathicVoice/types/Features.js +0 -5
  93. package/dist/serialization/resources/empathicVoice/types/Features.d.ts +0 -19
  94. package/dist/serialization/resources/empathicVoice/types/Features.js +0 -40
  95. package/serialization/resources/empathicVoice/types/Features.d.ts +0 -19
  96. package/serialization/resources/empathicVoice/types/Features.js +0 -40
@@ -72,7 +72,7 @@ class Prompts {
72
72
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
73
73
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "v0/evi/prompts"),
74
74
  method: "GET",
75
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.8.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
75
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
76
76
  contentType: "application/json",
77
77
  queryParameters: _queryParams,
78
78
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -80,7 +80,7 @@ class Prompts {
80
80
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
81
81
  });
82
82
  if (_response.ok) {
83
- return yield serializers.empathicVoice.ReturnPagedPrompts.parseOrThrow(_response.body, {
83
+ return serializers.empathicVoice.ReturnPagedPrompts.parseOrThrow(_response.body, {
84
84
  unrecognizedObjectKeys: "passthrough",
85
85
  allowUnrecognizedUnionMembers: true,
86
86
  allowUnrecognizedEnumValues: true,
@@ -124,17 +124,15 @@ class Prompts {
124
124
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
125
125
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "v0/evi/prompts"),
126
126
  method: "POST",
127
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.8.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
127
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
128
128
  contentType: "application/json",
129
- body: yield serializers.empathicVoice.PostedPrompt.jsonOrThrow(request, {
130
- unrecognizedObjectKeys: "strip",
131
- }),
129
+ body: serializers.empathicVoice.PostedPrompt.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
132
130
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
133
131
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
134
132
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
135
133
  });
136
134
  if (_response.ok) {
137
- return yield serializers.empathicVoice.prompts.createPrompt.Response.parseOrThrow(_response.body, {
135
+ return serializers.empathicVoice.prompts.createPrompt.Response.parseOrThrow(_response.body, {
138
136
  unrecognizedObjectKeys: "passthrough",
139
137
  allowUnrecognizedUnionMembers: true,
140
138
  allowUnrecognizedEnumValues: true,
@@ -187,7 +185,7 @@ class Prompts {
187
185
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
188
186
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/prompts/${encodeURIComponent(id)}`),
189
187
  method: "GET",
190
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.8.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
188
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
191
189
  contentType: "application/json",
192
190
  queryParameters: _queryParams,
193
191
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -195,7 +193,7 @@ class Prompts {
195
193
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
196
194
  });
197
195
  if (_response.ok) {
198
- return yield serializers.empathicVoice.ReturnPagedPrompts.parseOrThrow(_response.body, {
196
+ return serializers.empathicVoice.ReturnPagedPrompts.parseOrThrow(_response.body, {
199
197
  unrecognizedObjectKeys: "passthrough",
200
198
  allowUnrecognizedUnionMembers: true,
201
199
  allowUnrecognizedEnumValues: true,
@@ -239,9 +237,9 @@ class Prompts {
239
237
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
240
238
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/prompts/${encodeURIComponent(id)}`),
241
239
  method: "POST",
242
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.8.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
240
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
243
241
  contentType: "application/json",
244
- body: yield serializers.empathicVoice.PostedPromptVersion.jsonOrThrow(request, {
242
+ body: serializers.empathicVoice.PostedPromptVersion.jsonOrThrow(request, {
245
243
  unrecognizedObjectKeys: "strip",
246
244
  }),
247
245
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -249,7 +247,7 @@ class Prompts {
249
247
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
250
248
  });
251
249
  if (_response.ok) {
252
- return yield serializers.empathicVoice.prompts.createPromptVerison.Response.parseOrThrow(_response.body, {
250
+ return serializers.empathicVoice.prompts.createPromptVerison.Response.parseOrThrow(_response.body, {
253
251
  unrecognizedObjectKeys: "passthrough",
254
252
  allowUnrecognizedUnionMembers: true,
255
253
  allowUnrecognizedEnumValues: true,
@@ -290,7 +288,7 @@ class Prompts {
290
288
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
291
289
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/prompts/${encodeURIComponent(id)}`),
292
290
  method: "DELETE",
293
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.8.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
291
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
294
292
  contentType: "application/json",
295
293
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
296
294
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -336,11 +334,9 @@ class Prompts {
336
334
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
337
335
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/prompts/${encodeURIComponent(id)}`),
338
336
  method: "PATCH",
339
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.8.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
337
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
340
338
  contentType: "application/json",
341
- body: yield serializers.empathicVoice.PostedPromptName.jsonOrThrow(request, {
342
- unrecognizedObjectKeys: "strip",
343
- }),
339
+ body: serializers.empathicVoice.PostedPromptName.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
344
340
  responseType: "text",
345
341
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
346
342
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -384,14 +380,14 @@ class Prompts {
384
380
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
385
381
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/prompts/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
386
382
  method: "GET",
387
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.8.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
383
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
388
384
  contentType: "application/json",
389
385
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
390
386
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
391
387
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
392
388
  });
393
389
  if (_response.ok) {
394
- return yield serializers.empathicVoice.prompts.getPromptVersion.Response.parseOrThrow(_response.body, {
390
+ return serializers.empathicVoice.prompts.getPromptVersion.Response.parseOrThrow(_response.body, {
395
391
  unrecognizedObjectKeys: "passthrough",
396
392
  allowUnrecognizedUnionMembers: true,
397
393
  allowUnrecognizedEnumValues: true,
@@ -433,7 +429,7 @@ class Prompts {
433
429
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
434
430
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/prompts/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
435
431
  method: "DELETE",
436
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.8.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
432
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
437
433
  contentType: "application/json",
438
434
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
439
435
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -478,9 +474,9 @@ class Prompts {
478
474
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
479
475
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/prompts/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
480
476
  method: "PATCH",
481
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.8.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
477
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
482
478
  contentType: "application/json",
483
- body: yield serializers.empathicVoice.PostedPromptVersionDescription.jsonOrThrow(request, {
479
+ body: serializers.empathicVoice.PostedPromptVersionDescription.jsonOrThrow(request, {
484
480
  unrecognizedObjectKeys: "strip",
485
481
  }),
486
482
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -488,7 +484,7 @@ class Prompts {
488
484
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
489
485
  });
490
486
  if (_response.ok) {
491
- return yield serializers.empathicVoice.prompts.updatePromptDescription.Response.parseOrThrow(_response.body, {
487
+ return serializers.empathicVoice.prompts.updatePromptDescription.Response.parseOrThrow(_response.body, {
492
488
  unrecognizedObjectKeys: "passthrough",
493
489
  allowUnrecognizedUnionMembers: true,
494
490
  allowUnrecognizedEnumValues: true,
@@ -11,8 +11,11 @@ export declare namespace Tools {
11
11
  fetcher?: core.FetchFunction;
12
12
  }
13
13
  interface RequestOptions {
14
+ /** The maximum time to wait for a response in seconds. */
14
15
  timeoutInSeconds?: number;
16
+ /** The number of times to retry the request. Defaults to 2. */
15
17
  maxRetries?: number;
18
+ /** A hook to abort the request. */
16
19
  abortSignal?: AbortSignal;
17
20
  }
18
21
  }
@@ -75,7 +75,7 @@ class Tools {
75
75
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
76
76
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "v0/evi/tools"),
77
77
  method: "GET",
78
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.8.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
78
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
79
79
  contentType: "application/json",
80
80
  queryParameters: _queryParams,
81
81
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -83,7 +83,7 @@ class Tools {
83
83
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
84
84
  });
85
85
  if (_response.ok) {
86
- return yield serializers.empathicVoice.ReturnPagedUserDefinedTools.parseOrThrow(_response.body, {
86
+ return serializers.empathicVoice.ReturnPagedUserDefinedTools.parseOrThrow(_response.body, {
87
87
  unrecognizedObjectKeys: "passthrough",
88
88
  allowUnrecognizedUnionMembers: true,
89
89
  allowUnrecognizedEnumValues: true,
@@ -130,9 +130,9 @@ class Tools {
130
130
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
131
131
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "v0/evi/tools"),
132
132
  method: "POST",
133
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.8.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
133
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
134
134
  contentType: "application/json",
135
- body: yield serializers.empathicVoice.PostedUserDefinedTool.jsonOrThrow(request, {
135
+ body: serializers.empathicVoice.PostedUserDefinedTool.jsonOrThrow(request, {
136
136
  unrecognizedObjectKeys: "strip",
137
137
  }),
138
138
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -140,7 +140,7 @@ class Tools {
140
140
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
141
141
  });
142
142
  if (_response.ok) {
143
- return yield serializers.empathicVoice.tools.createTool.Response.parseOrThrow(_response.body, {
143
+ return serializers.empathicVoice.tools.createTool.Response.parseOrThrow(_response.body, {
144
144
  unrecognizedObjectKeys: "passthrough",
145
145
  allowUnrecognizedUnionMembers: true,
146
146
  allowUnrecognizedEnumValues: true,
@@ -193,7 +193,7 @@ class Tools {
193
193
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
194
194
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/tools/${encodeURIComponent(id)}`),
195
195
  method: "GET",
196
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.8.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
196
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
197
197
  contentType: "application/json",
198
198
  queryParameters: _queryParams,
199
199
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -201,7 +201,7 @@ class Tools {
201
201
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
202
202
  });
203
203
  if (_response.ok) {
204
- return yield serializers.empathicVoice.ReturnPagedUserDefinedTools.parseOrThrow(_response.body, {
204
+ return serializers.empathicVoice.ReturnPagedUserDefinedTools.parseOrThrow(_response.body, {
205
205
  unrecognizedObjectKeys: "passthrough",
206
206
  allowUnrecognizedUnionMembers: true,
207
207
  allowUnrecognizedEnumValues: true,
@@ -248,9 +248,9 @@ class Tools {
248
248
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
249
249
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/tools/${encodeURIComponent(id)}`),
250
250
  method: "POST",
251
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.8.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
251
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
252
252
  contentType: "application/json",
253
- body: yield serializers.empathicVoice.PostedUserDefinedToolVersion.jsonOrThrow(request, {
253
+ body: serializers.empathicVoice.PostedUserDefinedToolVersion.jsonOrThrow(request, {
254
254
  unrecognizedObjectKeys: "strip",
255
255
  }),
256
256
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -258,7 +258,7 @@ class Tools {
258
258
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
259
259
  });
260
260
  if (_response.ok) {
261
- return yield serializers.empathicVoice.tools.createToolVersion.Response.parseOrThrow(_response.body, {
261
+ return serializers.empathicVoice.tools.createToolVersion.Response.parseOrThrow(_response.body, {
262
262
  unrecognizedObjectKeys: "passthrough",
263
263
  allowUnrecognizedUnionMembers: true,
264
264
  allowUnrecognizedEnumValues: true,
@@ -299,7 +299,7 @@ class Tools {
299
299
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
300
300
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/tools/${encodeURIComponent(id)}`),
301
301
  method: "DELETE",
302
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.8.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
302
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
303
303
  contentType: "application/json",
304
304
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
305
305
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -345,9 +345,9 @@ class Tools {
345
345
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
346
346
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/tools/${encodeURIComponent(id)}`),
347
347
  method: "PATCH",
348
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.8.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
348
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
349
349
  contentType: "application/json",
350
- body: yield serializers.empathicVoice.PostedUserDefinedToolName.jsonOrThrow(request, {
350
+ body: serializers.empathicVoice.PostedUserDefinedToolName.jsonOrThrow(request, {
351
351
  unrecognizedObjectKeys: "strip",
352
352
  }),
353
353
  responseType: "text",
@@ -393,14 +393,14 @@ class Tools {
393
393
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
394
394
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/tools/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
395
395
  method: "GET",
396
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.8.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
396
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
397
397
  contentType: "application/json",
398
398
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
399
399
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
400
400
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
401
401
  });
402
402
  if (_response.ok) {
403
- return yield serializers.empathicVoice.tools.getToolVersion.Response.parseOrThrow(_response.body, {
403
+ return serializers.empathicVoice.tools.getToolVersion.Response.parseOrThrow(_response.body, {
404
404
  unrecognizedObjectKeys: "passthrough",
405
405
  allowUnrecognizedUnionMembers: true,
406
406
  allowUnrecognizedEnumValues: true,
@@ -442,7 +442,7 @@ class Tools {
442
442
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
443
443
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/tools/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
444
444
  method: "DELETE",
445
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.8.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
445
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
446
446
  contentType: "application/json",
447
447
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
448
448
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -489,9 +489,9 @@ class Tools {
489
489
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
490
490
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/tools/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
491
491
  method: "PATCH",
492
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.8.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
492
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
493
493
  contentType: "application/json",
494
- body: yield serializers.empathicVoice.PostedUserDefinedToolVersionDescription.jsonOrThrow(request, {
494
+ body: serializers.empathicVoice.PostedUserDefinedToolVersionDescription.jsonOrThrow(request, {
495
495
  unrecognizedObjectKeys: "strip",
496
496
  }),
497
497
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -499,7 +499,7 @@ class Tools {
499
499
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
500
500
  });
501
501
  if (_response.ok) {
502
- return yield serializers.empathicVoice.tools.updateToolDescription.Response.parseOrThrow(_response.body, {
502
+ return serializers.empathicVoice.tools.updateToolDescription.Response.parseOrThrow(_response.body, {
503
503
  unrecognizedObjectKeys: "passthrough",
504
504
  allowUnrecognizedUnionMembers: true,
505
505
  allowUnrecognizedEnumValues: true,
@@ -23,4 +23,6 @@ export interface SessionSettings {
23
23
  /** List of builtin tools to enable. */
24
24
  builtinTools?: Hume.empathicVoice.BuiltinToolConfig[];
25
25
  metadata?: Record<string, unknown>;
26
+ /** Dynamic values that can be used to populate EVI prompts. */
27
+ variables?: Record<string, string>;
26
28
  }
@@ -4,8 +4,6 @@
4
4
  import * as Hume from "../../../index";
5
5
  export interface VoiceArgs {
6
6
  voice?: Hume.empathicVoice.VoiceNameEnum;
7
- features?: Hume.empathicVoice.Features;
8
- charactersPerSecondRatio?: number;
9
7
  baseline?: boolean;
10
8
  reconstruct?: boolean;
11
9
  }
@@ -77,7 +77,6 @@ export * from "./TtsInput";
77
77
  export * from "./TextInput";
78
78
  export * from "./FunctionCallResponseInput";
79
79
  export * from "./ExtendedVoiceArgs";
80
- export * from "./Features";
81
80
  export * from "./HttpValidationError";
82
81
  export * from "./ValidationErrorLocItem";
83
82
  export * from "./ValidationError";
@@ -93,7 +93,6 @@ __exportStar(require("./TtsInput"), exports);
93
93
  __exportStar(require("./TextInput"), exports);
94
94
  __exportStar(require("./FunctionCallResponseInput"), exports);
95
95
  __exportStar(require("./ExtendedVoiceArgs"), exports);
96
- __exportStar(require("./Features"), exports);
97
96
  __exportStar(require("./HttpValidationError"), exports);
98
97
  __exportStar(require("./ValidationErrorLocItem"), exports);
99
98
  __exportStar(require("./ValidationError"), exports);
@@ -11,8 +11,11 @@ export declare namespace ExpressionMeasurement {
11
11
  fetcher?: core.FetchFunction;
12
12
  }
13
13
  interface RequestOptions {
14
+ /** The maximum time to wait for a response in seconds. */
14
15
  timeoutInSeconds?: number;
16
+ /** The number of times to retry the request. Defaults to 2. */
15
17
  maxRetries?: number;
18
+ /** A hook to abort the request. */
16
19
  abortSignal?: AbortSignal;
17
20
  }
18
21
  }
@@ -14,8 +14,11 @@ export declare namespace Batch {
14
14
  fetcher?: core.FetchFunction;
15
15
  }
16
16
  interface RequestOptions {
17
+ /** The maximum time to wait for a response in seconds. */
17
18
  timeoutInSeconds?: number;
19
+ /** The number of times to retry the request. Defaults to 2. */
18
20
  maxRetries?: number;
21
+ /** A hook to abort the request. */
19
22
  abortSignal?: AbortSignal;
20
23
  }
21
24
  }
@@ -96,7 +96,7 @@ class Batch {
96
96
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
97
97
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "v0/batch/jobs"),
98
98
  method: "GET",
99
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.8.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
99
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.3", "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,
@@ -104,7 +104,7 @@ class Batch {
104
104
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
105
105
  });
106
106
  if (_response.ok) {
107
- return yield serializers.expressionMeasurement.batch.listJobs.Response.parseOrThrow(_response.body, {
107
+ return serializers.expressionMeasurement.batch.listJobs.Response.parseOrThrow(_response.body, {
108
108
  unrecognizedObjectKeys: "passthrough",
109
109
  allowUnrecognizedUnionMembers: true,
110
110
  allowUnrecognizedEnumValues: true,
@@ -150,9 +150,9 @@ class Batch {
150
150
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
151
151
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "v0/batch/jobs"),
152
152
  method: "POST",
153
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.8.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
153
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
154
154
  contentType: "application/json",
155
- body: yield serializers.expressionMeasurement.InferenceBaseRequest.jsonOrThrow(request, {
155
+ body: serializers.expressionMeasurement.InferenceBaseRequest.jsonOrThrow(request, {
156
156
  unrecognizedObjectKeys: "strip",
157
157
  }),
158
158
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -160,7 +160,7 @@ class Batch {
160
160
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
161
161
  });
162
162
  if (_response.ok) {
163
- return yield serializers.expressionMeasurement.JobId.parseOrThrow(_response.body, {
163
+ return serializers.expressionMeasurement.JobId.parseOrThrow(_response.body, {
164
164
  unrecognizedObjectKeys: "passthrough",
165
165
  allowUnrecognizedUnionMembers: true,
166
166
  allowUnrecognizedEnumValues: true,
@@ -203,14 +203,14 @@ class Batch {
203
203
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
204
204
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/batch/jobs/${encodeURIComponent(id)}`),
205
205
  method: "GET",
206
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.8.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
206
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
207
207
  contentType: "application/json",
208
208
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
209
209
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
210
210
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
211
211
  });
212
212
  if (_response.ok) {
213
- return yield serializers.expressionMeasurement.UnionJob.parseOrThrow(_response.body, {
213
+ return serializers.expressionMeasurement.UnionJob.parseOrThrow(_response.body, {
214
214
  unrecognizedObjectKeys: "passthrough",
215
215
  allowUnrecognizedUnionMembers: true,
216
216
  allowUnrecognizedEnumValues: true,
@@ -253,14 +253,14 @@ class Batch {
253
253
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
254
254
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/batch/jobs/${encodeURIComponent(id)}/predictions`),
255
255
  method: "GET",
256
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.8.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
256
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.3", "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,
260
260
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
261
261
  });
262
262
  if (_response.ok) {
263
- return yield serializers.expressionMeasurement.batch.getJobPredictions.Response.parseOrThrow(_response.body, {
263
+ return serializers.expressionMeasurement.batch.getJobPredictions.Response.parseOrThrow(_response.body, {
264
264
  unrecognizedObjectKeys: "passthrough",
265
265
  allowUnrecognizedUnionMembers: true,
266
266
  allowUnrecognizedEnumValues: true,
@@ -297,7 +297,7 @@ class Batch {
297
297
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
298
298
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/batch/jobs/${encodeURIComponent(id)}/artifacts`),
299
299
  method: "GET",
300
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.8.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
300
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
301
301
  contentType: "application/json",
302
302
  responseType: "streaming",
303
303
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -352,14 +352,14 @@ class Batch {
352
352
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
353
353
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "v0/batch/jobs"),
354
354
  method: "POST",
355
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.8.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), (yield _maybeEncodedRequest.getHeaders())),
355
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.7.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), (yield _maybeEncodedRequest.getHeaders())),
356
356
  body: yield _maybeEncodedRequest.getBody(),
357
357
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
358
358
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
359
359
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
360
360
  });
361
361
  if (_response.ok) {
362
- return yield serializers.expressionMeasurement.JobId.parseOrThrow(_response.body, {
362
+ return serializers.expressionMeasurement.JobId.parseOrThrow(_response.body, {
363
363
  unrecognizedObjectKeys: "passthrough",
364
364
  allowUnrecognizedUnionMembers: true,
365
365
  allowUnrecognizedEnumValues: true,
@@ -74,9 +74,7 @@ class FormDataRequestBody {
74
74
  if (this.encoder == null) {
75
75
  yield this.setup();
76
76
  }
77
- return {
78
- "Content-Length": this.encoder.length,
79
- };
77
+ return this.encoder.headers;
80
78
  }
81
79
  });
82
80
  }
@@ -1,12 +1,11 @@
1
1
  import { SchemaUtils } from "./builders";
2
- import { MaybePromise } from "./utils/MaybePromise";
3
2
  export declare type Schema<Raw = unknown, Parsed = unknown> = BaseSchema<Raw, Parsed> & SchemaUtils<Raw, Parsed>;
4
3
  export declare type inferRaw<S extends Schema> = S extends Schema<infer Raw, any> ? Raw : never;
5
4
  export declare type inferParsed<S extends Schema> = S extends Schema<any, infer Parsed> ? Parsed : never;
6
5
  export interface BaseSchema<Raw, Parsed> {
7
- parse: (raw: unknown, opts?: SchemaOptions) => MaybePromise<MaybeValid<Parsed>>;
8
- json: (parsed: unknown, opts?: SchemaOptions) => MaybePromise<MaybeValid<Raw>>;
9
- getType: () => SchemaType | Promise<SchemaType>;
6
+ parse: (raw: unknown, opts?: SchemaOptions) => MaybeValid<Parsed>;
7
+ json: (parsed: unknown, opts?: SchemaOptions) => MaybeValid<Raw>;
8
+ getType: () => SchemaType | SchemaType;
10
9
  }
11
10
  export declare const SchemaType: {
12
11
  readonly DATE: "date";
@@ -1,5 +1,5 @@
1
1
  import { BaseSchema, Schema } from "../../Schema";
2
- export declare type SchemaGetter<SchemaType extends Schema<any, any>> = () => SchemaType | Promise<SchemaType>;
2
+ export declare type SchemaGetter<SchemaType extends Schema<any, any>> = () => SchemaType;
3
3
  export declare function lazy<Raw, Parsed>(getter: SchemaGetter<Schema<Raw, Parsed>>): Schema<Raw, Parsed>;
4
4
  export declare function constructLazyBaseSchema<Raw, Parsed>(getter: SchemaGetter<Schema<Raw, Parsed>>): BaseSchema<Raw, Parsed>;
5
- export declare function getMemoizedSchema<SchemaType extends Schema<any, any>>(getter: SchemaGetter<SchemaType>): Promise<SchemaType>;
5
+ export declare function getMemoizedSchema<SchemaType extends Schema<any, any>>(getter: SchemaGetter<SchemaType>): SchemaType;
@@ -1,13 +1,4 @@
1
1
  "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
2
  Object.defineProperty(exports, "__esModule", { value: true });
12
3
  exports.getMemoizedSchema = exports.constructLazyBaseSchema = exports.lazy = void 0;
13
4
  const schema_utils_1 = require("../schema-utils");
@@ -18,19 +9,17 @@ function lazy(getter) {
18
9
  exports.lazy = lazy;
19
10
  function constructLazyBaseSchema(getter) {
20
11
  return {
21
- parse: (raw, opts) => __awaiter(this, void 0, void 0, function* () { return (yield getMemoizedSchema(getter)).parse(raw, opts); }),
22
- json: (parsed, opts) => __awaiter(this, void 0, void 0, function* () { return (yield getMemoizedSchema(getter)).json(parsed, opts); }),
23
- getType: () => __awaiter(this, void 0, void 0, function* () { return (yield getMemoizedSchema(getter)).getType(); }),
12
+ parse: (raw, opts) => getMemoizedSchema(getter).parse(raw, opts),
13
+ json: (parsed, opts) => getMemoizedSchema(getter).json(parsed, opts),
14
+ getType: () => getMemoizedSchema(getter).getType(),
24
15
  };
25
16
  }
26
17
  exports.constructLazyBaseSchema = constructLazyBaseSchema;
27
18
  function getMemoizedSchema(getter) {
28
- return __awaiter(this, void 0, void 0, function* () {
29
- const castedGetter = getter;
30
- if (castedGetter.__zurg_memoized == null) {
31
- castedGetter.__zurg_memoized = yield getter();
32
- }
33
- return castedGetter.__zurg_memoized;
34
- });
19
+ const castedGetter = getter;
20
+ if (castedGetter.__zurg_memoized == null) {
21
+ castedGetter.__zurg_memoized = getter();
22
+ }
23
+ return castedGetter.__zurg_memoized;
35
24
  }
36
25
  exports.getMemoizedSchema = getMemoizedSchema;
@@ -1,13 +1,4 @@
1
1
  "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
2
  Object.defineProperty(exports, "__esModule", { value: true });
12
3
  exports.lazyObject = void 0;
13
4
  const object_1 = require("../object");
@@ -15,7 +6,7 @@ const object_like_1 = require("../object-like");
15
6
  const schema_utils_1 = require("../schema-utils");
16
7
  const lazy_1 = require("./lazy");
17
8
  function lazyObject(getter) {
18
- const baseSchema = Object.assign(Object.assign({}, (0, lazy_1.constructLazyBaseSchema)(getter)), { _getRawProperties: () => __awaiter(this, void 0, void 0, function* () { return (yield (0, lazy_1.getMemoizedSchema)(getter))._getRawProperties(); }), _getParsedProperties: () => __awaiter(this, void 0, void 0, function* () { return (yield (0, lazy_1.getMemoizedSchema)(getter))._getParsedProperties(); }) });
9
+ const baseSchema = Object.assign(Object.assign({}, (0, lazy_1.constructLazyBaseSchema)(getter)), { _getRawProperties: () => (0, lazy_1.getMemoizedSchema)(getter)._getRawProperties(), _getParsedProperties: () => (0, lazy_1.getMemoizedSchema)(getter)._getParsedProperties() });
19
10
  return Object.assign(Object.assign(Object.assign(Object.assign({}, baseSchema), (0, schema_utils_1.getSchemaUtils)(baseSchema)), (0, object_like_1.getObjectLikeUtils)(baseSchema)), (0, object_1.getObjectUtils)(baseSchema));
20
11
  }
21
12
  exports.lazyObject = lazyObject;