hume 0.6.0 → 0.6.2

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 (164) hide show
  1. package/.mock/definition/api.yml +12 -0
  2. package/.mock/definition/custom-models/__package__.yml +1392 -0
  3. package/.mock/definition/custom-models/datasets.yml +406 -0
  4. package/.mock/definition/custom-models/files.yml +263 -0
  5. package/.mock/definition/custom-models/jobs.yml +44 -0
  6. package/.mock/definition/custom-models/models.yml +303 -0
  7. package/.mock/definition/empathic-voice/__package__.yml +896 -0
  8. package/.mock/definition/empathic-voice/chat.yml +59 -0
  9. package/.mock/definition/empathic-voice/chatGroups.yml +80 -0
  10. package/.mock/definition/empathic-voice/chats.yml +86 -0
  11. package/.mock/definition/empathic-voice/configs.yml +413 -0
  12. package/.mock/definition/empathic-voice/prompts.yml +265 -0
  13. package/.mock/definition/empathic-voice/tools.yml +398 -0
  14. package/.mock/definition/expression-measurement/__package__.yml +1122 -0
  15. package/.mock/definition/expression-measurement/batch.yml +352 -0
  16. package/.mock/definition/expression-measurement/stream.yml +362 -0
  17. package/.mock/fern.config.json +4 -0
  18. package/Client.d.ts +3 -3
  19. package/Client.js +6 -6
  20. package/api/resources/customModels/resources/datasets/client/Client.js +9 -9
  21. package/api/resources/customModels/resources/files/client/Client.js +7 -7
  22. package/api/resources/customModels/resources/jobs/client/Client.js +2 -2
  23. package/api/resources/customModels/resources/models/client/Client.js +6 -6
  24. package/api/resources/empathicVoice/client/Client.d.ts +3 -0
  25. package/api/resources/empathicVoice/client/Client.js +5 -0
  26. package/api/resources/empathicVoice/client/StreamSocket.d.ts +9 -1
  27. package/api/resources/empathicVoice/client/StreamSocket.js +17 -1
  28. package/api/resources/empathicVoice/resources/chat/types/SubscribeEvent.d.ts +1 -1
  29. package/api/resources/empathicVoice/resources/chatGroups/client/Client.d.ts +42 -0
  30. package/api/resources/empathicVoice/resources/chatGroups/client/Client.js +178 -0
  31. package/api/resources/empathicVoice/resources/chatGroups/client/index.d.ts +1 -0
  32. package/api/resources/empathicVoice/resources/chatGroups/client/index.js +17 -0
  33. package/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupEventsRequest.d.ts +21 -0
  34. package/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupEventsRequest.js +5 -0
  35. package/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupsRequest.d.ts +17 -0
  36. package/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupsRequest.js +5 -0
  37. package/api/resources/empathicVoice/resources/chatGroups/client/requests/index.d.ts +2 -0
  38. package/api/resources/empathicVoice/resources/chatGroups/client/requests/index.js +2 -0
  39. package/api/resources/empathicVoice/resources/chatGroups/index.d.ts +1 -0
  40. package/api/resources/empathicVoice/resources/chatGroups/index.js +17 -0
  41. package/api/resources/empathicVoice/resources/chats/client/Client.js +2 -2
  42. package/api/resources/empathicVoice/resources/configs/client/Client.js +9 -9
  43. package/api/resources/empathicVoice/resources/index.d.ts +2 -0
  44. package/api/resources/empathicVoice/resources/index.js +3 -1
  45. package/api/resources/empathicVoice/resources/prompts/client/Client.js +9 -9
  46. package/api/resources/empathicVoice/resources/tools/client/Client.js +9 -9
  47. package/api/resources/empathicVoice/types/AssistantMessage.d.ts +1 -1
  48. package/api/resources/empathicVoice/types/ChatMetadata.d.ts +15 -0
  49. package/api/resources/empathicVoice/types/ChatMetadata.js +5 -0
  50. package/api/resources/empathicVoice/types/ReturnChat.d.ts +2 -0
  51. package/api/resources/empathicVoice/types/ReturnChatEvent.d.ts +2 -0
  52. package/api/resources/empathicVoice/types/ReturnChatGroup.d.ts +19 -0
  53. package/api/resources/empathicVoice/types/ReturnChatGroup.js +5 -0
  54. package/api/resources/empathicVoice/types/ReturnChatGroupPagedChats.d.ts +24 -0
  55. package/api/resources/empathicVoice/types/ReturnChatGroupPagedChats.js +5 -0
  56. package/api/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.ts +19 -0
  57. package/api/resources/empathicVoice/types/ReturnChatGroupPagedEvents.js +5 -0
  58. package/api/resources/empathicVoice/types/ReturnChatPagedEvents.d.ts +2 -0
  59. package/api/resources/empathicVoice/types/ReturnPagedChatGroups.d.ts +15 -0
  60. package/api/resources/empathicVoice/types/ReturnPagedChatGroups.js +5 -0
  61. package/api/resources/empathicVoice/types/index.d.ts +5 -0
  62. package/api/resources/empathicVoice/types/index.js +5 -0
  63. package/api/resources/expressionMeasurement/resources/batch/client/Client.js +6 -6
  64. package/api/resources/index.d.ts +1 -1
  65. package/api/resources/index.js +2 -2
  66. package/core/form-data-utils/FormDataWrapper.js +2 -1
  67. package/dist/Client.d.ts +3 -3
  68. package/dist/Client.js +6 -6
  69. package/dist/api/resources/customModels/resources/datasets/client/Client.js +9 -9
  70. package/dist/api/resources/customModels/resources/files/client/Client.js +7 -7
  71. package/dist/api/resources/customModels/resources/jobs/client/Client.js +2 -2
  72. package/dist/api/resources/customModels/resources/models/client/Client.js +6 -6
  73. package/dist/api/resources/empathicVoice/client/Client.d.ts +3 -0
  74. package/dist/api/resources/empathicVoice/client/Client.js +5 -0
  75. package/dist/api/resources/empathicVoice/client/StreamSocket.d.ts +9 -1
  76. package/dist/api/resources/empathicVoice/client/StreamSocket.js +17 -1
  77. package/dist/api/resources/empathicVoice/resources/chat/types/SubscribeEvent.d.ts +1 -1
  78. package/dist/api/resources/empathicVoice/resources/chatGroups/client/Client.d.ts +42 -0
  79. package/dist/api/resources/empathicVoice/resources/chatGroups/client/Client.js +178 -0
  80. package/dist/api/resources/empathicVoice/resources/chatGroups/client/index.d.ts +1 -0
  81. package/dist/api/resources/empathicVoice/resources/chatGroups/client/index.js +17 -0
  82. package/dist/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupEventsRequest.d.ts +21 -0
  83. package/dist/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupEventsRequest.js +5 -0
  84. package/dist/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupsRequest.d.ts +17 -0
  85. package/dist/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupsRequest.js +5 -0
  86. package/dist/api/resources/empathicVoice/resources/chatGroups/client/requests/index.d.ts +2 -0
  87. package/dist/api/resources/empathicVoice/resources/chatGroups/client/requests/index.js +2 -0
  88. package/dist/api/resources/empathicVoice/resources/chatGroups/index.d.ts +1 -0
  89. package/dist/api/resources/empathicVoice/resources/chatGroups/index.js +17 -0
  90. package/dist/api/resources/empathicVoice/resources/chats/client/Client.js +2 -2
  91. package/dist/api/resources/empathicVoice/resources/configs/client/Client.js +9 -9
  92. package/dist/api/resources/empathicVoice/resources/index.d.ts +2 -0
  93. package/dist/api/resources/empathicVoice/resources/index.js +3 -1
  94. package/dist/api/resources/empathicVoice/resources/prompts/client/Client.js +9 -9
  95. package/dist/api/resources/empathicVoice/resources/tools/client/Client.js +9 -9
  96. package/dist/api/resources/empathicVoice/types/AssistantMessage.d.ts +1 -1
  97. package/dist/api/resources/empathicVoice/types/ChatMetadata.d.ts +15 -0
  98. package/dist/api/resources/empathicVoice/types/ChatMetadata.js +5 -0
  99. package/dist/api/resources/empathicVoice/types/ReturnChat.d.ts +2 -0
  100. package/dist/api/resources/empathicVoice/types/ReturnChatEvent.d.ts +2 -0
  101. package/dist/api/resources/empathicVoice/types/ReturnChatGroup.d.ts +19 -0
  102. package/dist/api/resources/empathicVoice/types/ReturnChatGroup.js +5 -0
  103. package/dist/api/resources/empathicVoice/types/ReturnChatGroupPagedChats.d.ts +24 -0
  104. package/dist/api/resources/empathicVoice/types/ReturnChatGroupPagedChats.js +5 -0
  105. package/dist/api/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.ts +19 -0
  106. package/dist/api/resources/empathicVoice/types/ReturnChatGroupPagedEvents.js +5 -0
  107. package/dist/api/resources/empathicVoice/types/ReturnChatPagedEvents.d.ts +2 -0
  108. package/dist/api/resources/empathicVoice/types/ReturnPagedChatGroups.d.ts +15 -0
  109. package/dist/api/resources/empathicVoice/types/ReturnPagedChatGroups.js +5 -0
  110. package/dist/api/resources/empathicVoice/types/index.d.ts +5 -0
  111. package/dist/api/resources/empathicVoice/types/index.js +5 -0
  112. package/dist/api/resources/expressionMeasurement/resources/batch/client/Client.js +6 -6
  113. package/dist/api/resources/index.d.ts +1 -1
  114. package/dist/api/resources/index.js +2 -2
  115. package/dist/core/form-data-utils/FormDataWrapper.js +2 -1
  116. package/dist/serialization/resources/empathicVoice/resources/chat/types/SubscribeEvent.d.ts +2 -1
  117. package/dist/serialization/resources/empathicVoice/resources/chat/types/SubscribeEvent.js +2 -0
  118. package/dist/serialization/resources/empathicVoice/types/ChatMetadata.d.ts +15 -0
  119. package/dist/serialization/resources/empathicVoice/types/ChatMetadata.js +36 -0
  120. package/dist/serialization/resources/empathicVoice/types/ReturnChat.d.ts +1 -0
  121. package/dist/serialization/resources/empathicVoice/types/ReturnChat.js +1 -0
  122. package/dist/serialization/resources/empathicVoice/types/ReturnChatEvent.d.ts +1 -0
  123. package/dist/serialization/resources/empathicVoice/types/ReturnChatEvent.js +1 -0
  124. package/dist/serialization/resources/empathicVoice/types/ReturnChatGroup.d.ts +17 -0
  125. package/dist/serialization/resources/empathicVoice/types/ReturnChatGroup.js +38 -0
  126. package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedChats.d.ts +20 -0
  127. package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedChats.js +41 -0
  128. package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.ts +17 -0
  129. package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEvents.js +38 -0
  130. package/dist/serialization/resources/empathicVoice/types/ReturnChatPagedEvents.d.ts +1 -0
  131. package/dist/serialization/resources/empathicVoice/types/ReturnChatPagedEvents.js +1 -0
  132. package/dist/serialization/resources/empathicVoice/types/ReturnPagedChatGroups.d.ts +15 -0
  133. package/dist/serialization/resources/empathicVoice/types/ReturnPagedChatGroups.js +36 -0
  134. package/dist/serialization/resources/empathicVoice/types/index.d.ts +5 -0
  135. package/dist/serialization/resources/empathicVoice/types/index.js +5 -0
  136. package/dist/serialization/resources/index.d.ts +1 -1
  137. package/dist/serialization/resources/index.js +2 -2
  138. package/dist/wrapper/empathicVoice/chat/ChatClient.d.ts +2 -0
  139. package/dist/wrapper/empathicVoice/chat/ChatClient.js +3 -0
  140. package/package.json +1 -1
  141. package/serialization/resources/empathicVoice/resources/chat/types/SubscribeEvent.d.ts +2 -1
  142. package/serialization/resources/empathicVoice/resources/chat/types/SubscribeEvent.js +2 -0
  143. package/serialization/resources/empathicVoice/types/ChatMetadata.d.ts +15 -0
  144. package/serialization/resources/empathicVoice/types/ChatMetadata.js +36 -0
  145. package/serialization/resources/empathicVoice/types/ReturnChat.d.ts +1 -0
  146. package/serialization/resources/empathicVoice/types/ReturnChat.js +1 -0
  147. package/serialization/resources/empathicVoice/types/ReturnChatEvent.d.ts +1 -0
  148. package/serialization/resources/empathicVoice/types/ReturnChatEvent.js +1 -0
  149. package/serialization/resources/empathicVoice/types/ReturnChatGroup.d.ts +17 -0
  150. package/serialization/resources/empathicVoice/types/ReturnChatGroup.js +38 -0
  151. package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedChats.d.ts +20 -0
  152. package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedChats.js +41 -0
  153. package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.ts +17 -0
  154. package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEvents.js +38 -0
  155. package/serialization/resources/empathicVoice/types/ReturnChatPagedEvents.d.ts +1 -0
  156. package/serialization/resources/empathicVoice/types/ReturnChatPagedEvents.js +1 -0
  157. package/serialization/resources/empathicVoice/types/ReturnPagedChatGroups.d.ts +15 -0
  158. package/serialization/resources/empathicVoice/types/ReturnPagedChatGroups.js +36 -0
  159. package/serialization/resources/empathicVoice/types/index.d.ts +5 -0
  160. package/serialization/resources/empathicVoice/types/index.js +5 -0
  161. package/serialization/resources/index.d.ts +1 -1
  162. package/serialization/resources/index.js +2 -2
  163. package/wrapper/empathicVoice/chat/ChatClient.d.ts +2 -0
  164. package/wrapper/empathicVoice/chat/ChatClient.js +3 -0
@@ -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.6.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.6.1", "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,
@@ -125,7 +125,7 @@ class Prompts {
125
125
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
126
126
  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"),
127
127
  method: "POST",
128
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
128
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.1", "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.empathicVoice.PostedPrompt.jsonOrThrow(request, {
131
131
  unrecognizedObjectKeys: "strip",
@@ -189,7 +189,7 @@ class Prompts {
189
189
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
190
190
  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)}`),
191
191
  method: "GET",
192
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
192
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
193
193
  contentType: "application/json",
194
194
  queryParameters: _queryParams,
195
195
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -242,7 +242,7 @@ class Prompts {
242
242
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
243
243
  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)}`),
244
244
  method: "POST",
245
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
245
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
246
246
  contentType: "application/json",
247
247
  body: yield serializers.empathicVoice.PostedPromptVersion.jsonOrThrow(request, {
248
248
  unrecognizedObjectKeys: "strip",
@@ -294,7 +294,7 @@ class Prompts {
294
294
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
295
295
  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)}`),
296
296
  method: "DELETE",
297
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
297
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
298
298
  contentType: "application/json",
299
299
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
300
300
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -340,7 +340,7 @@ class Prompts {
340
340
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
341
341
  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)}`),
342
342
  method: "PATCH",
343
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
343
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
344
344
  contentType: "application/json",
345
345
  body: yield serializers.empathicVoice.PostedPromptName.jsonOrThrow(request, {
346
346
  unrecognizedObjectKeys: "strip",
@@ -388,7 +388,7 @@ class Prompts {
388
388
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
389
389
  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)}`),
390
390
  method: "GET",
391
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
391
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
392
392
  contentType: "application/json",
393
393
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
394
394
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -438,7 +438,7 @@ class Prompts {
438
438
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
439
439
  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)}`),
440
440
  method: "DELETE",
441
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
441
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
442
442
  contentType: "application/json",
443
443
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
444
444
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -483,7 +483,7 @@ class Prompts {
483
483
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
484
484
  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)}`),
485
485
  method: "PATCH",
486
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
486
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
487
487
  contentType: "application/json",
488
488
  body: yield serializers.empathicVoice.PostedPromptVersionDescription.jsonOrThrow(request, {
489
489
  unrecognizedObjectKeys: "strip",
@@ -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.6.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.6.1", "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,
@@ -131,7 +131,7 @@ class Tools {
131
131
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
132
132
  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"),
133
133
  method: "POST",
134
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
134
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
135
135
  contentType: "application/json",
136
136
  body: yield serializers.empathicVoice.PostedUserDefinedTool.jsonOrThrow(request, {
137
137
  unrecognizedObjectKeys: "strip",
@@ -195,7 +195,7 @@ class Tools {
195
195
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
196
196
  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)}`),
197
197
  method: "GET",
198
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
198
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
199
199
  contentType: "application/json",
200
200
  queryParameters: _queryParams,
201
201
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -251,7 +251,7 @@ class Tools {
251
251
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
252
252
  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)}`),
253
253
  method: "POST",
254
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
254
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
255
255
  contentType: "application/json",
256
256
  body: yield serializers.empathicVoice.PostedUserDefinedToolVersion.jsonOrThrow(request, {
257
257
  unrecognizedObjectKeys: "strip",
@@ -303,7 +303,7 @@ class Tools {
303
303
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
304
304
  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)}`),
305
305
  method: "DELETE",
306
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
306
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
307
307
  contentType: "application/json",
308
308
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
309
309
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -349,7 +349,7 @@ class Tools {
349
349
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
350
350
  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)}`),
351
351
  method: "PATCH",
352
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
352
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
353
353
  contentType: "application/json",
354
354
  body: yield serializers.empathicVoice.PostedUserDefinedToolName.jsonOrThrow(request, {
355
355
  unrecognizedObjectKeys: "strip",
@@ -397,7 +397,7 @@ class Tools {
397
397
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
398
398
  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)}`),
399
399
  method: "GET",
400
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
400
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
401
401
  contentType: "application/json",
402
402
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
403
403
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -447,7 +447,7 @@ class Tools {
447
447
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
448
448
  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)}`),
449
449
  method: "DELETE",
450
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
450
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
451
451
  contentType: "application/json",
452
452
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
453
453
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -494,7 +494,7 @@ class Tools {
494
494
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
495
495
  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)}`),
496
496
  method: "PATCH",
497
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
497
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
498
498
  contentType: "application/json",
499
499
  body: yield serializers.empathicVoice.PostedUserDefinedToolVersionDescription.jsonOrThrow(request, {
500
500
  unrecognizedObjectKeys: "strip",
@@ -15,6 +15,6 @@ export interface AssistantMessage {
15
15
  message: Hume.empathicVoice.ChatMessage;
16
16
  /** Inference model results. */
17
17
  models: Hume.empathicVoice.Inference;
18
- /** The type of message sent through the socket; for an Assistant Message message, this must be 'assistant_message'. */
18
+ /** The type of message sent through the socket; for an Assistant Message, this must be 'assistant_message'. */
19
19
  type: "assistant_message";
20
20
  }
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * When provided, the output is a chat metadata message.
6
+ */
7
+ export interface ChatMetadata {
8
+ /** ID of the chat group. Used to resume a chat. */
9
+ chatGroupId: string;
10
+ /** ID of the chat. */
11
+ chatId: string;
12
+ customSessionId?: string;
13
+ /** The type of message sent through the socket; for a Chat Metadata message, this must be 'chat_metadata'. */
14
+ type: "chat_metadata";
15
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -8,6 +8,8 @@ import * as Hume from "../../../index";
8
8
  export interface ReturnChat {
9
9
  /** Identifier for a chat. Formatted as a UUID. */
10
10
  id: string;
11
+ /** Identifier for the chat group. Any chat resumed from this chat will have the same chat_group_id. Formatted as a UUID. */
12
+ chatGroupId: string;
11
13
  /** Optional tag applied to this chat used to group chats by user, application, etc. */
12
14
  tag?: string;
13
15
  /** The status of the chat. Values from the ChatStatus enum. */
@@ -7,6 +7,8 @@
7
7
  export interface ReturnChatEvent {
8
8
  /** Identifier for a chat event. Formatted as a UUID. */
9
9
  id: string;
10
+ /** Identifier for the chat this event occurred in. Formatted as a UUID. */
11
+ chatId: string;
10
12
  /** The timestamp when the chat event occurred, formatted as a Unix epoch milliseconds. */
11
13
  timestamp: number;
12
14
  /** The role of the user who generated the chat event. Values from the Role enum. */
@@ -0,0 +1,19 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * A description of chat_group and its status
6
+ */
7
+ export interface ReturnChatGroup {
8
+ /** Identifier for the chat group. Any chat resumed from this chat will have the same chat_group_id. Formatted as a UUID. */
9
+ id: string;
10
+ /** The timestamp when the first chat in this chat group started, formatted as a Unix epoch milliseconds. */
11
+ firstStartTimestamp: number;
12
+ /** The timestamp when the most recent chat in this chat group started, formatted as a Unix epoch milliseconds. */
13
+ mostRecentStartTimestamp: number;
14
+ /** The chat_id of the most recent chat in this chat group. Formatted as a UUID. */
15
+ mostRecentChatId?: string;
16
+ /** The total number of chats in this chat group. */
17
+ numChats: number;
18
+ active?: boolean;
19
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,24 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Hume from "../../../index";
5
+ /**
6
+ * A description of chat_group and its status with a paginated list of each chat in the chat_group
7
+ */
8
+ export interface ReturnChatGroupPagedChats {
9
+ /** Identifier for the chat group. Any chat resumed from this chat will have the same chat_group_id. Formatted as a UUID. */
10
+ id: string;
11
+ /** The timestamp when the first chat in this chat group started, formatted as a Unix epoch milliseconds. */
12
+ firstStartTimestamp: number;
13
+ /** The timestamp when the most recent chat in this chat group started, formatted as a Unix epoch milliseconds. */
14
+ mostRecentStartTimestamp: number;
15
+ /** The total number of chats in this chat group. */
16
+ numChats: number;
17
+ /** The page number of the returned results. */
18
+ pageNumber: number;
19
+ /** The number of results returned per page. */
20
+ pageSize: number;
21
+ /** List of chats and their metadata returned for the specified page number and page size. */
22
+ chatsPage: Hume.empathicVoice.ReturnChat[];
23
+ active?: boolean;
24
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,19 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Hume from "../../../index";
5
+ /**
6
+ * A paginated list of chat events that occurred across chats in this chat_group from the server
7
+ */
8
+ export interface ReturnChatGroupPagedEvents {
9
+ /** Identifier for the chat group. Any chat resumed from this chat will have the same chat_group_id. Formatted as a UUID. */
10
+ id: string;
11
+ /** The page number of the returned results. */
12
+ pageNumber: number;
13
+ /** The number of results returned per page. */
14
+ pageSize: number;
15
+ /** The direction of the pagination (ASC or DESC). */
16
+ paginationDirection: string;
17
+ /** List of chat_events returned for the specified page number and page size. */
18
+ eventsPage: Hume.empathicVoice.ReturnChatEvent[];
19
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -8,6 +8,8 @@ import * as Hume from "../../../index";
8
8
  export interface ReturnChatPagedEvents {
9
9
  /** Identifier for a chat. Formatted as a UUID. */
10
10
  id: string;
11
+ /** Identifier for the chat group. Any chat resumed from this chat will have the same chat_group_id. Formatted as a UUID. */
12
+ chatGroupId: string;
11
13
  /** Optional tag applied to this chat used to group chats by user, application, etc. */
12
14
  tag?: string;
13
15
  /** The status of the chat. Values from the ChatStatus enum. */
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Hume from "../../../index";
5
+ /**
6
+ * A paginated list of chat_groups returned from the server
7
+ */
8
+ export interface ReturnPagedChatGroups {
9
+ /** The page number of the returned results. */
10
+ pageNumber: number;
11
+ /** The number of results returned per page. */
12
+ pageSize: number;
13
+ /** List of chat_groups and their metadata returned for the specified page number and page size. */
14
+ chatGroupsPage: Hume.empathicVoice.ReturnChatGroup[];
15
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -21,6 +21,10 @@ export * from "./ReturnChatEvent";
21
21
  export * from "./ReturnChatPagedEvents";
22
22
  export * from "./ReturnActiveChatCount";
23
23
  export * from "./ReturnActiveChatCountPerTag";
24
+ export * from "./ReturnChatGroupPagedEvents";
25
+ export * from "./ReturnChatGroupPagedChats";
26
+ export * from "./ReturnChatGroup";
27
+ export * from "./ReturnPagedChatGroups";
24
28
  export * from "./AssistantEnd";
25
29
  export * from "./AssistantInput";
26
30
  export * from "./AssistantMessage";
@@ -31,6 +35,7 @@ export * from "./BuiltInTool";
31
35
  export * from "./BuiltinToolConfig";
32
36
  export * from "./ChatMessageToolResult";
33
37
  export * from "./ChatMessage";
38
+ export * from "./ChatMetadata";
34
39
  export * from "./Context";
35
40
  export * from "./ContextType";
36
41
  export * from "./EmotionScores";
@@ -37,6 +37,10 @@ __exportStar(require("./ReturnChatEvent"), exports);
37
37
  __exportStar(require("./ReturnChatPagedEvents"), exports);
38
38
  __exportStar(require("./ReturnActiveChatCount"), exports);
39
39
  __exportStar(require("./ReturnActiveChatCountPerTag"), exports);
40
+ __exportStar(require("./ReturnChatGroupPagedEvents"), exports);
41
+ __exportStar(require("./ReturnChatGroupPagedChats"), exports);
42
+ __exportStar(require("./ReturnChatGroup"), exports);
43
+ __exportStar(require("./ReturnPagedChatGroups"), exports);
40
44
  __exportStar(require("./AssistantEnd"), exports);
41
45
  __exportStar(require("./AssistantInput"), exports);
42
46
  __exportStar(require("./AssistantMessage"), exports);
@@ -47,6 +51,7 @@ __exportStar(require("./BuiltInTool"), exports);
47
51
  __exportStar(require("./BuiltinToolConfig"), exports);
48
52
  __exportStar(require("./ChatMessageToolResult"), exports);
49
53
  __exportStar(require("./ChatMessage"), exports);
54
+ __exportStar(require("./ChatMetadata"), exports);
50
55
  __exportStar(require("./Context"), exports);
51
56
  __exportStar(require("./ContextType"), exports);
52
57
  __exportStar(require("./EmotionScores"), exports);
@@ -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.6.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.6.1", "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,
@@ -151,7 +151,7 @@ class Batch {
151
151
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
152
152
  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"),
153
153
  method: "POST",
154
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
154
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
155
155
  contentType: "application/json",
156
156
  body: yield serializers.expressionMeasurement.InferenceBaseRequest.jsonOrThrow(request, {
157
157
  unrecognizedObjectKeys: "strip",
@@ -205,7 +205,7 @@ class Batch {
205
205
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
206
206
  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)}`),
207
207
  method: "GET",
208
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
208
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
209
209
  contentType: "application/json",
210
210
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
211
211
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -256,7 +256,7 @@ class Batch {
256
256
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
257
257
  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`),
258
258
  method: "GET",
259
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
259
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
260
260
  contentType: "application/json",
261
261
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
262
262
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -301,7 +301,7 @@ class Batch {
301
301
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
302
302
  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`),
303
303
  method: "GET",
304
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
304
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
305
305
  contentType: "application/json",
306
306
  responseType: "streaming",
307
307
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -356,7 +356,7 @@ class Batch {
356
356
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
357
357
  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"),
358
358
  method: "POST",
359
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), (yield _maybeEncodedRequest.getHeaders())),
359
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), (yield _maybeEncodedRequest.getHeaders())),
360
360
  body: yield _maybeEncodedRequest.getBody(),
361
361
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
362
362
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -1,3 +1,3 @@
1
- export * as empathicVoice from "./empathicVoice";
2
1
  export * as customModels from "./customModels";
2
+ export * as empathicVoice from "./empathicVoice";
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.customModels = exports.empathicVoice = void 0;
27
- exports.empathicVoice = __importStar(require("./empathicVoice"));
26
+ exports.expressionMeasurement = exports.empathicVoice = exports.customModels = void 0;
28
27
  exports.customModels = __importStar(require("./customModels"));
28
+ exports.empathicVoice = __importStar(require("./empathicVoice"));
29
29
  exports.expressionMeasurement = __importStar(require("./expressionMeasurement"));
@@ -33,6 +33,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
33
33
  };
34
34
  Object.defineProperty(exports, "__esModule", { value: true });
35
35
  exports.FormDataWrapper = void 0;
36
+ const stream_1 = require("stream");
36
37
  const runtime_1 = require("../runtime");
37
38
  class FormDataRequestBody {
38
39
  constructor(fd) {
@@ -57,7 +58,7 @@ class FormDataRequestBody {
57
58
  if (this.encoder == null) {
58
59
  yield this.setup();
59
60
  }
60
- return (yield Promise.resolve().then(() => __importStar(require("node:stream")))).Readable.from(this.encoder);
61
+ return stream_1.Readable.from(this.encoder);
61
62
  }
62
63
  });
63
64
  }
package/dist/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 { EmpathicVoice } from "./api/resources/empathicVoice/client/Client";
7
6
  import { CustomModels } from "./api/resources/customModels/client/Client";
7
+ import { EmpathicVoice } from "./api/resources/empathicVoice/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 _empathicVoice: EmpathicVoice | undefined;
25
- get empathicVoice(): EmpathicVoice;
26
24
  protected _customModels: CustomModels | undefined;
27
25
  get customModels(): CustomModels;
26
+ protected _empathicVoice: EmpathicVoice | undefined;
27
+ get empathicVoice(): EmpathicVoice;
28
28
  protected _expressionMeasurement: ExpressionMeasurement | undefined;
29
29
  get expressionMeasurement(): ExpressionMeasurement;
30
30
  }
package/dist/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/empathicVoice/client/Client");
8
- const Client_2 = require("./api/resources/customModels/client/Client");
7
+ const Client_1 = require("./api/resources/customModels/client/Client");
8
+ const Client_2 = require("./api/resources/empathicVoice/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 empathicVoice() {
14
+ get customModels() {
15
15
  var _a;
16
- return ((_a = this._empathicVoice) !== null && _a !== void 0 ? _a : (this._empathicVoice = new Client_1.EmpathicVoice(this._options)));
16
+ return ((_a = this._customModels) !== null && _a !== void 0 ? _a : (this._customModels = new Client_1.CustomModels(this._options)));
17
17
  }
18
- get customModels() {
18
+ get empathicVoice() {
19
19
  var _a;
20
- return ((_a = this._customModels) !== null && _a !== void 0 ? _a : (this._customModels = new Client_2.CustomModels(this._options)));
20
+ return ((_a = this._empathicVoice) !== null && _a !== void 0 ? _a : (this._empathicVoice = new Client_2.EmpathicVoice(this._options)));
21
21
  }
22
22
  get expressionMeasurement() {
23
23
  var _a;