hume 0.5.16 → 0.5.17

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 (191) hide show
  1. package/api/resources/customModels/resources/datasets/client/Client.js +9 -9
  2. package/api/resources/customModels/resources/files/client/Client.js +7 -7
  3. package/api/resources/customModels/resources/jobs/client/Client.js +2 -2
  4. package/api/resources/customModels/resources/models/client/Client.js +6 -6
  5. package/api/resources/empathicVoice/resources/chat/types/PublishEvent.d.ts +1 -1
  6. package/api/resources/empathicVoice/resources/chats/client/Client.d.ts +1 -1
  7. package/api/resources/empathicVoice/resources/chats/client/Client.js +3 -3
  8. package/api/resources/empathicVoice/resources/configs/client/Client.js +9 -9
  9. package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +1 -0
  10. package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +1 -0
  11. package/api/resources/empathicVoice/resources/prompts/client/Client.d.ts +1 -1
  12. package/api/resources/empathicVoice/resources/prompts/client/Client.js +10 -10
  13. package/api/resources/empathicVoice/resources/tools/client/Client.d.ts +1 -1
  14. package/api/resources/empathicVoice/resources/tools/client/Client.js +10 -10
  15. package/api/resources/empathicVoice/types/AssistantEnd.d.ts +2 -0
  16. package/api/resources/empathicVoice/types/AssistantInput.d.ts +1 -0
  17. package/api/resources/empathicVoice/types/AssistantMessage.d.ts +1 -0
  18. package/api/resources/empathicVoice/types/AudioInput.d.ts +1 -0
  19. package/api/resources/empathicVoice/types/AudioOutput.d.ts +1 -0
  20. package/api/resources/empathicVoice/types/BuiltInTool.d.ts +4 -0
  21. package/api/resources/empathicVoice/types/BuiltinToolConfig.d.ts +8 -0
  22. package/api/resources/empathicVoice/types/Context.d.ts +10 -0
  23. package/api/resources/empathicVoice/types/Context.js +5 -0
  24. package/api/resources/empathicVoice/types/ContextType.d.ts +9 -0
  25. package/api/resources/empathicVoice/types/ContextType.js +11 -0
  26. package/api/resources/empathicVoice/types/PauseAssistantMessage.d.ts +11 -0
  27. package/api/resources/empathicVoice/types/PauseAssistantMessage.js +5 -0
  28. package/api/resources/empathicVoice/types/PostedLanguageModelModelProvider.d.ts +2 -2
  29. package/api/resources/empathicVoice/types/PostedLanguageModelModelProvider.js +1 -1
  30. package/api/resources/empathicVoice/types/PostedVoice.d.ts +4 -3
  31. package/api/resources/empathicVoice/types/PostedVoiceName.d.ts +11 -0
  32. package/api/resources/empathicVoice/types/PostedVoiceName.js +10 -0
  33. package/api/resources/empathicVoice/types/ResumeAssistantMessage.d.ts +11 -0
  34. package/api/resources/empathicVoice/types/ResumeAssistantMessage.js +5 -0
  35. package/api/resources/empathicVoice/types/ReturnChat.d.ts +2 -0
  36. package/api/resources/empathicVoice/types/{ReturnChatWithPagedEvents.d.ts → ReturnChatPagedEvents.d.ts} +1 -1
  37. package/api/resources/empathicVoice/types/ReturnChatPagedEvents.js +5 -0
  38. package/api/resources/empathicVoice/types/ReturnConfig.d.ts +1 -0
  39. package/api/resources/empathicVoice/types/SessionSettings.d.ts +4 -2
  40. package/api/resources/empathicVoice/types/Tool.d.ts +6 -6
  41. package/api/resources/empathicVoice/types/ToolCallMessage.d.ts +5 -4
  42. package/api/resources/empathicVoice/types/ToolErrorMessage.d.ts +7 -6
  43. package/api/resources/empathicVoice/types/ToolResponseMessage.d.ts +7 -3
  44. package/api/resources/empathicVoice/types/UserInput.d.ts +1 -0
  45. package/api/resources/empathicVoice/types/UserInterruption.d.ts +2 -0
  46. package/api/resources/empathicVoice/types/WebSocketError.d.ts +1 -0
  47. package/api/resources/empathicVoice/types/index.d.ts +14 -7
  48. package/api/resources/empathicVoice/types/index.js +14 -7
  49. package/api/resources/expressionMeasurement/resources/batch/client/Client.js +6 -6
  50. package/dist/api/resources/customModels/resources/datasets/client/Client.js +9 -9
  51. package/dist/api/resources/customModels/resources/files/client/Client.js +7 -7
  52. package/dist/api/resources/customModels/resources/jobs/client/Client.js +2 -2
  53. package/dist/api/resources/customModels/resources/models/client/Client.js +6 -6
  54. package/dist/api/resources/empathicVoice/resources/chat/types/PublishEvent.d.ts +1 -1
  55. package/dist/api/resources/empathicVoice/resources/chats/client/Client.d.ts +1 -1
  56. package/dist/api/resources/empathicVoice/resources/chats/client/Client.js +3 -3
  57. package/dist/api/resources/empathicVoice/resources/configs/client/Client.js +9 -9
  58. package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +1 -0
  59. package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +1 -0
  60. package/dist/api/resources/empathicVoice/resources/prompts/client/Client.d.ts +1 -1
  61. package/dist/api/resources/empathicVoice/resources/prompts/client/Client.js +10 -10
  62. package/dist/api/resources/empathicVoice/resources/tools/client/Client.d.ts +1 -1
  63. package/dist/api/resources/empathicVoice/resources/tools/client/Client.js +10 -10
  64. package/dist/api/resources/empathicVoice/types/AssistantEnd.d.ts +2 -0
  65. package/dist/api/resources/empathicVoice/types/AssistantInput.d.ts +1 -0
  66. package/dist/api/resources/empathicVoice/types/AssistantMessage.d.ts +1 -0
  67. package/dist/api/resources/empathicVoice/types/AudioInput.d.ts +1 -0
  68. package/dist/api/resources/empathicVoice/types/AudioOutput.d.ts +1 -0
  69. package/dist/api/resources/empathicVoice/types/BuiltInTool.d.ts +4 -0
  70. package/dist/api/resources/empathicVoice/types/BuiltInTool.js +5 -0
  71. package/dist/api/resources/empathicVoice/types/BuiltinToolConfig.d.ts +8 -0
  72. package/dist/api/resources/empathicVoice/types/BuiltinToolConfig.js +5 -0
  73. package/dist/api/resources/empathicVoice/types/Context.d.ts +10 -0
  74. package/dist/api/resources/empathicVoice/types/Context.js +5 -0
  75. package/dist/api/resources/empathicVoice/types/ContextType.d.ts +9 -0
  76. package/dist/api/resources/empathicVoice/types/ContextType.js +11 -0
  77. package/dist/api/resources/empathicVoice/types/PauseAssistantMessage.d.ts +11 -0
  78. package/dist/api/resources/empathicVoice/types/PauseAssistantMessage.js +5 -0
  79. package/dist/api/resources/empathicVoice/types/PostedLanguageModelModelProvider.d.ts +2 -2
  80. package/dist/api/resources/empathicVoice/types/PostedLanguageModelModelProvider.js +1 -1
  81. package/dist/api/resources/empathicVoice/types/PostedVoice.d.ts +4 -3
  82. package/dist/api/resources/empathicVoice/types/PostedVoiceName.d.ts +11 -0
  83. package/dist/api/resources/empathicVoice/types/PostedVoiceName.js +10 -0
  84. package/dist/api/resources/empathicVoice/types/ResumeAssistantMessage.d.ts +11 -0
  85. package/dist/api/resources/empathicVoice/types/ResumeAssistantMessage.js +5 -0
  86. package/dist/api/resources/empathicVoice/types/ReturnChat.d.ts +2 -0
  87. package/dist/api/resources/empathicVoice/types/{ReturnChatWithPagedEvents.d.ts → ReturnChatPagedEvents.d.ts} +1 -1
  88. package/dist/api/resources/empathicVoice/types/ReturnChatPagedEvents.js +5 -0
  89. package/dist/api/resources/empathicVoice/types/ReturnConfig.d.ts +1 -0
  90. package/dist/api/resources/empathicVoice/types/SessionSettings.d.ts +4 -2
  91. package/dist/api/resources/empathicVoice/types/Tool.d.ts +6 -6
  92. package/dist/api/resources/empathicVoice/types/ToolCallMessage.d.ts +5 -4
  93. package/dist/api/resources/empathicVoice/types/ToolErrorMessage.d.ts +7 -6
  94. package/dist/api/resources/empathicVoice/types/ToolResponseMessage.d.ts +7 -3
  95. package/dist/api/resources/empathicVoice/types/UserInput.d.ts +1 -0
  96. package/dist/api/resources/empathicVoice/types/UserInterruption.d.ts +2 -0
  97. package/dist/api/resources/empathicVoice/types/WebSocketError.d.ts +1 -0
  98. package/dist/api/resources/empathicVoice/types/index.d.ts +14 -7
  99. package/dist/api/resources/empathicVoice/types/index.js +14 -7
  100. package/dist/api/resources/expressionMeasurement/resources/batch/client/Client.js +6 -6
  101. package/dist/serialization/resources/empathicVoice/resources/chat/types/PublishEvent.d.ts +3 -1
  102. package/dist/serialization/resources/empathicVoice/resources/chat/types/PublishEvent.js +4 -0
  103. package/dist/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +2 -0
  104. package/dist/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfig.js +2 -0
  105. package/dist/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +2 -0
  106. package/dist/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.js +2 -0
  107. package/dist/serialization/resources/empathicVoice/types/AssistantEnd.d.ts +1 -0
  108. package/dist/serialization/resources/empathicVoice/types/AssistantEnd.js +1 -0
  109. package/dist/serialization/resources/empathicVoice/types/BuiltInTool.d.ts +10 -0
  110. package/dist/serialization/resources/empathicVoice/types/BuiltInTool.js +31 -0
  111. package/dist/serialization/resources/empathicVoice/types/BuiltinToolConfig.d.ts +14 -0
  112. package/dist/serialization/resources/empathicVoice/types/BuiltinToolConfig.js +35 -0
  113. package/dist/serialization/resources/empathicVoice/types/Context.d.ts +14 -0
  114. package/dist/serialization/resources/empathicVoice/types/Context.js +35 -0
  115. package/dist/serialization/resources/empathicVoice/types/ContextType.d.ts +10 -0
  116. package/dist/serialization/resources/empathicVoice/types/ContextType.js +31 -0
  117. package/dist/serialization/resources/empathicVoice/types/PauseAssistantMessage.d.ts +13 -0
  118. package/dist/serialization/resources/empathicVoice/types/PauseAssistantMessage.js +34 -0
  119. package/dist/serialization/resources/empathicVoice/types/PostedLanguageModelModelProvider.d.ts +1 -1
  120. package/dist/serialization/resources/empathicVoice/types/PostedLanguageModelModelProvider.js +1 -1
  121. package/dist/serialization/resources/empathicVoice/types/PostedVoice.d.ts +3 -2
  122. package/dist/serialization/resources/empathicVoice/types/PostedVoice.js +3 -2
  123. package/dist/serialization/resources/empathicVoice/types/PostedVoiceName.d.ts +10 -0
  124. package/dist/serialization/resources/empathicVoice/types/PostedVoiceName.js +31 -0
  125. package/dist/serialization/resources/empathicVoice/types/ResumeAssistantMessage.d.ts +13 -0
  126. package/dist/serialization/resources/empathicVoice/types/ResumeAssistantMessage.js +34 -0
  127. package/dist/serialization/resources/empathicVoice/types/ReturnChat.d.ts +1 -0
  128. package/dist/serialization/resources/empathicVoice/types/ReturnChat.js +1 -0
  129. package/dist/serialization/resources/empathicVoice/types/{ReturnChatWithPagedEvents.d.ts → ReturnChatPagedEvents.d.ts} +2 -2
  130. package/dist/serialization/resources/empathicVoice/types/{ReturnChatWithPagedEvents.js → ReturnChatPagedEvents.js} +2 -2
  131. package/dist/serialization/resources/empathicVoice/types/ReturnConfig.d.ts +2 -0
  132. package/dist/serialization/resources/empathicVoice/types/ReturnConfig.js +2 -0
  133. package/dist/serialization/resources/empathicVoice/types/SessionSettings.d.ts +4 -2
  134. package/dist/serialization/resources/empathicVoice/types/SessionSettings.js +4 -2
  135. package/dist/serialization/resources/empathicVoice/types/Tool.d.ts +3 -3
  136. package/dist/serialization/resources/empathicVoice/types/Tool.js +3 -3
  137. package/dist/serialization/resources/empathicVoice/types/ToolCallMessage.d.ts +3 -3
  138. package/dist/serialization/resources/empathicVoice/types/ToolCallMessage.js +3 -3
  139. package/dist/serialization/resources/empathicVoice/types/ToolErrorMessage.d.ts +6 -4
  140. package/dist/serialization/resources/empathicVoice/types/ToolErrorMessage.js +6 -4
  141. package/dist/serialization/resources/empathicVoice/types/ToolResponseMessage.d.ts +5 -2
  142. package/dist/serialization/resources/empathicVoice/types/ToolResponseMessage.js +5 -2
  143. package/dist/serialization/resources/empathicVoice/types/index.d.ts +14 -7
  144. package/dist/serialization/resources/empathicVoice/types/index.js +14 -7
  145. package/package.json +1 -1
  146. package/serialization/resources/empathicVoice/resources/chat/types/PublishEvent.d.ts +3 -1
  147. package/serialization/resources/empathicVoice/resources/chat/types/PublishEvent.js +4 -0
  148. package/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +2 -0
  149. package/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfig.js +2 -0
  150. package/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +2 -0
  151. package/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.js +2 -0
  152. package/serialization/resources/empathicVoice/types/AssistantEnd.d.ts +1 -0
  153. package/serialization/resources/empathicVoice/types/AssistantEnd.js +1 -0
  154. package/serialization/resources/empathicVoice/types/BuiltInTool.d.ts +10 -0
  155. package/serialization/resources/empathicVoice/types/BuiltInTool.js +31 -0
  156. package/serialization/resources/empathicVoice/types/BuiltinToolConfig.d.ts +14 -0
  157. package/serialization/resources/empathicVoice/types/BuiltinToolConfig.js +35 -0
  158. package/serialization/resources/empathicVoice/types/Context.d.ts +14 -0
  159. package/serialization/resources/empathicVoice/types/Context.js +35 -0
  160. package/serialization/resources/empathicVoice/types/ContextType.d.ts +10 -0
  161. package/serialization/resources/empathicVoice/types/ContextType.js +31 -0
  162. package/serialization/resources/empathicVoice/types/PauseAssistantMessage.d.ts +13 -0
  163. package/serialization/resources/empathicVoice/types/PauseAssistantMessage.js +34 -0
  164. package/serialization/resources/empathicVoice/types/PostedLanguageModelModelProvider.d.ts +1 -1
  165. package/serialization/resources/empathicVoice/types/PostedLanguageModelModelProvider.js +1 -1
  166. package/serialization/resources/empathicVoice/types/PostedVoice.d.ts +3 -2
  167. package/serialization/resources/empathicVoice/types/PostedVoice.js +3 -2
  168. package/serialization/resources/empathicVoice/types/PostedVoiceName.d.ts +10 -0
  169. package/serialization/resources/empathicVoice/types/PostedVoiceName.js +31 -0
  170. package/serialization/resources/empathicVoice/types/ResumeAssistantMessage.d.ts +13 -0
  171. package/serialization/resources/empathicVoice/types/ResumeAssistantMessage.js +34 -0
  172. package/serialization/resources/empathicVoice/types/ReturnChat.d.ts +1 -0
  173. package/serialization/resources/empathicVoice/types/ReturnChat.js +1 -0
  174. package/serialization/resources/empathicVoice/types/{ReturnChatWithPagedEvents.d.ts → ReturnChatPagedEvents.d.ts} +2 -2
  175. package/serialization/resources/empathicVoice/types/{ReturnChatWithPagedEvents.js → ReturnChatPagedEvents.js} +2 -2
  176. package/serialization/resources/empathicVoice/types/ReturnConfig.d.ts +2 -0
  177. package/serialization/resources/empathicVoice/types/ReturnConfig.js +2 -0
  178. package/serialization/resources/empathicVoice/types/SessionSettings.d.ts +4 -2
  179. package/serialization/resources/empathicVoice/types/SessionSettings.js +4 -2
  180. package/serialization/resources/empathicVoice/types/Tool.d.ts +3 -3
  181. package/serialization/resources/empathicVoice/types/Tool.js +3 -3
  182. package/serialization/resources/empathicVoice/types/ToolCallMessage.d.ts +3 -3
  183. package/serialization/resources/empathicVoice/types/ToolCallMessage.js +3 -3
  184. package/serialization/resources/empathicVoice/types/ToolErrorMessage.d.ts +6 -4
  185. package/serialization/resources/empathicVoice/types/ToolErrorMessage.js +6 -4
  186. package/serialization/resources/empathicVoice/types/ToolResponseMessage.d.ts +5 -2
  187. package/serialization/resources/empathicVoice/types/ToolResponseMessage.js +5 -2
  188. package/serialization/resources/empathicVoice/types/index.d.ts +14 -7
  189. package/serialization/resources/empathicVoice/types/index.js +14 -7
  190. /package/api/resources/empathicVoice/types/{ReturnChatWithPagedEvents.js → BuiltInTool.js} +0 -0
  191. /package/{dist/api/resources/empathicVoice/types/ReturnChatWithPagedEvents.js → api/resources/empathicVoice/types/BuiltinToolConfig.js} +0 -0
@@ -97,7 +97,7 @@ class Batch {
97
97
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
98
98
  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"),
99
99
  method: "GET",
100
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.16", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
100
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
101
101
  contentType: "application/json",
102
102
  queryParameters: _queryParams,
103
103
  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.5.16", "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.5.17", "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",
@@ -204,7 +204,7 @@ class Batch {
204
204
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
205
205
  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)}`),
206
206
  method: "GET",
207
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.16", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
207
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
208
208
  contentType: "application/json",
209
209
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
210
210
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -254,7 +254,7 @@ class Batch {
254
254
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
255
255
  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`),
256
256
  method: "GET",
257
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.16", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
257
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
258
258
  contentType: "application/json",
259
259
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
260
260
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -298,7 +298,7 @@ class Batch {
298
298
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
299
299
  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`),
300
300
  method: "GET",
301
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.16", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
301
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
302
302
  contentType: "application/json",
303
303
  responseType: "streaming",
304
304
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -351,7 +351,7 @@ class Batch {
351
351
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
352
352
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "v0/batch/jobs"),
353
353
  method: "POST",
354
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.16", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
354
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
355
355
  contentType: "multipart/form-data; boundary=" + _request.getBoundary(),
356
356
  body: _request,
357
357
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -10,7 +10,9 @@ import { UserInput } from "../../../types/UserInput";
10
10
  import { AssistantInput } from "../../../types/AssistantInput";
11
11
  import { ToolResponseMessage } from "../../../types/ToolResponseMessage";
12
12
  import { ToolErrorMessage } from "../../../types/ToolErrorMessage";
13
+ import { PauseAssistantMessage } from "../../../types/PauseAssistantMessage";
14
+ import { ResumeAssistantMessage } from "../../../types/ResumeAssistantMessage";
13
15
  export declare const PublishEvent: core.serialization.Schema<serializers.empathicVoice.PublishEvent.Raw, Hume.empathicVoice.PublishEvent>;
14
16
  export declare namespace PublishEvent {
15
- type Raw = AudioInput.Raw | SessionSettings.Raw | UserInput.Raw | AssistantInput.Raw | ToolResponseMessage.Raw | ToolErrorMessage.Raw;
17
+ type Raw = AudioInput.Raw | SessionSettings.Raw | UserInput.Raw | AssistantInput.Raw | ToolResponseMessage.Raw | ToolErrorMessage.Raw | PauseAssistantMessage.Raw | ResumeAssistantMessage.Raw;
16
18
  }
@@ -34,6 +34,8 @@ const UserInput_1 = require("../../../types/UserInput");
34
34
  const AssistantInput_1 = require("../../../types/AssistantInput");
35
35
  const ToolResponseMessage_1 = require("../../../types/ToolResponseMessage");
36
36
  const ToolErrorMessage_1 = require("../../../types/ToolErrorMessage");
37
+ const PauseAssistantMessage_1 = require("../../../types/PauseAssistantMessage");
38
+ const ResumeAssistantMessage_1 = require("../../../types/ResumeAssistantMessage");
37
39
  exports.PublishEvent = core.serialization.undiscriminatedUnion([
38
40
  AudioInput_1.AudioInput,
39
41
  SessionSettings_1.SessionSettings,
@@ -41,4 +43,6 @@ exports.PublishEvent = core.serialization.undiscriminatedUnion([
41
43
  AssistantInput_1.AssistantInput,
42
44
  ToolResponseMessage_1.ToolResponseMessage,
43
45
  ToolErrorMessage_1.ToolErrorMessage,
46
+ PauseAssistantMessage_1.PauseAssistantMessage,
47
+ ResumeAssistantMessage_1.ResumeAssistantMessage,
44
48
  ]);
@@ -5,6 +5,7 @@ import * as serializers from "../../../../../../index";
5
5
  import * as Hume from "../../../../../../../api/index";
6
6
  import * as core from "../../../../../../../core";
7
7
  import { PostedPromptSpec } from "../../../../types/PostedPromptSpec";
8
+ import { PostedVoice } from "../../../../types/PostedVoice";
8
9
  import { PostedLanguageModel } from "../../../../types/PostedLanguageModel";
9
10
  import { PostedUserDefinedToolSpec } from "../../../../types/PostedUserDefinedToolSpec";
10
11
  import { PostedBuiltinTool } from "../../../../types/PostedBuiltinTool";
@@ -14,6 +15,7 @@ export declare namespace PostedConfig {
14
15
  name: string;
15
16
  version_description?: string | null;
16
17
  prompt?: PostedPromptSpec.Raw | null;
18
+ voice?: PostedVoice.Raw | null;
17
19
  language_model?: PostedLanguageModel.Raw | null;
18
20
  tools?: (PostedUserDefinedToolSpec.Raw | null | undefined)[] | null;
19
21
  builtin_tools?: (PostedBuiltinTool.Raw | null | undefined)[] | null;
@@ -29,6 +29,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.PostedConfig = void 0;
30
30
  const core = __importStar(require("../../../../../../../core"));
31
31
  const PostedPromptSpec_1 = require("../../../../types/PostedPromptSpec");
32
+ const PostedVoice_1 = require("../../../../types/PostedVoice");
32
33
  const PostedLanguageModel_1 = require("../../../../types/PostedLanguageModel");
33
34
  const PostedUserDefinedToolSpec_1 = require("../../../../types/PostedUserDefinedToolSpec");
34
35
  const PostedBuiltinTool_1 = require("../../../../types/PostedBuiltinTool");
@@ -36,6 +37,7 @@ exports.PostedConfig = core.serialization.object({
36
37
  name: core.serialization.string(),
37
38
  versionDescription: core.serialization.property("version_description", core.serialization.string().optional()),
38
39
  prompt: PostedPromptSpec_1.PostedPromptSpec.optional(),
40
+ voice: PostedVoice_1.PostedVoice.optional(),
39
41
  languageModel: core.serialization.property("language_model", PostedLanguageModel_1.PostedLanguageModel.optional()),
40
42
  tools: core.serialization.list(PostedUserDefinedToolSpec_1.PostedUserDefinedToolSpec.optional()).optional(),
41
43
  builtinTools: core.serialization.property("builtin_tools", core.serialization.list(PostedBuiltinTool_1.PostedBuiltinTool.optional()).optional()),
@@ -5,6 +5,7 @@ import * as serializers from "../../../../../../index";
5
5
  import * as Hume from "../../../../../../../api/index";
6
6
  import * as core from "../../../../../../../core";
7
7
  import { PostedPromptSpec } from "../../../../types/PostedPromptSpec";
8
+ import { PostedVoice } from "../../../../types/PostedVoice";
8
9
  import { PostedLanguageModel } from "../../../../types/PostedLanguageModel";
9
10
  import { PostedUserDefinedToolSpec } from "../../../../types/PostedUserDefinedToolSpec";
10
11
  import { PostedBuiltinTool } from "../../../../types/PostedBuiltinTool";
@@ -13,6 +14,7 @@ export declare namespace PostedConfigVersion {
13
14
  interface Raw {
14
15
  version_description?: string | null;
15
16
  prompt?: PostedPromptSpec.Raw | null;
17
+ voice?: PostedVoice.Raw | null;
16
18
  language_model?: PostedLanguageModel.Raw | null;
17
19
  tools?: (PostedUserDefinedToolSpec.Raw | null | undefined)[] | null;
18
20
  builtin_tools?: (PostedBuiltinTool.Raw | null | undefined)[] | null;
@@ -29,12 +29,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.PostedConfigVersion = void 0;
30
30
  const core = __importStar(require("../../../../../../../core"));
31
31
  const PostedPromptSpec_1 = require("../../../../types/PostedPromptSpec");
32
+ const PostedVoice_1 = require("../../../../types/PostedVoice");
32
33
  const PostedLanguageModel_1 = require("../../../../types/PostedLanguageModel");
33
34
  const PostedUserDefinedToolSpec_1 = require("../../../../types/PostedUserDefinedToolSpec");
34
35
  const PostedBuiltinTool_1 = require("../../../../types/PostedBuiltinTool");
35
36
  exports.PostedConfigVersion = core.serialization.object({
36
37
  versionDescription: core.serialization.property("version_description", core.serialization.string().optional()),
37
38
  prompt: PostedPromptSpec_1.PostedPromptSpec.optional(),
39
+ voice: PostedVoice_1.PostedVoice.optional(),
38
40
  languageModel: core.serialization.property("language_model", PostedLanguageModel_1.PostedLanguageModel.optional()),
39
41
  tools: core.serialization.list(PostedUserDefinedToolSpec_1.PostedUserDefinedToolSpec.optional()).optional(),
40
42
  builtinTools: core.serialization.property("builtin_tools", core.serialization.list(PostedBuiltinTool_1.PostedBuiltinTool.optional()).optional()),
@@ -7,6 +7,7 @@ import * as core from "../../../../core";
7
7
  export declare const AssistantEnd: core.serialization.ObjectSchema<serializers.empathicVoice.AssistantEnd.Raw, Hume.empathicVoice.AssistantEnd>;
8
8
  export declare namespace AssistantEnd {
9
9
  interface Raw {
10
+ custom_session_id?: string | null;
10
11
  type: "assistant_end";
11
12
  }
12
13
  }
@@ -29,5 +29,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.AssistantEnd = void 0;
30
30
  const core = __importStar(require("../../../../core"));
31
31
  exports.AssistantEnd = core.serialization.object({
32
+ customSessionId: core.serialization.property("custom_session_id", core.serialization.string().optional()),
32
33
  type: core.serialization.stringLiteral("assistant_end"),
33
34
  });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as Hume from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ export declare const BuiltInTool: core.serialization.Schema<serializers.empathicVoice.BuiltInTool.Raw, Hume.empathicVoice.BuiltInTool>;
8
+ export declare namespace BuiltInTool {
9
+ type Raw = "web_search";
10
+ }
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.BuiltInTool = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ exports.BuiltInTool = core.serialization.stringLiteral("web_search");
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as Hume from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ import { BuiltInTool } from "./BuiltInTool";
8
+ export declare const BuiltinToolConfig: core.serialization.ObjectSchema<serializers.empathicVoice.BuiltinToolConfig.Raw, Hume.empathicVoice.BuiltinToolConfig>;
9
+ export declare namespace BuiltinToolConfig {
10
+ interface Raw {
11
+ fallback_content?: string | null;
12
+ name: BuiltInTool.Raw;
13
+ }
14
+ }
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.BuiltinToolConfig = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ const BuiltInTool_1 = require("./BuiltInTool");
32
+ exports.BuiltinToolConfig = core.serialization.object({
33
+ fallbackContent: core.serialization.property("fallback_content", core.serialization.string().optional()),
34
+ name: BuiltInTool_1.BuiltInTool,
35
+ });
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as Hume from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ import { ContextType } from "./ContextType";
8
+ export declare const Context: core.serialization.ObjectSchema<serializers.empathicVoice.Context.Raw, Hume.empathicVoice.Context>;
9
+ export declare namespace Context {
10
+ interface Raw {
11
+ text: string;
12
+ type?: ContextType.Raw | null;
13
+ }
14
+ }
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.Context = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ const ContextType_1 = require("./ContextType");
32
+ exports.Context = core.serialization.object({
33
+ text: core.serialization.string(),
34
+ type: ContextType_1.ContextType.optional(),
35
+ });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as Hume from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ export declare const ContextType: core.serialization.Schema<serializers.empathicVoice.ContextType.Raw, Hume.empathicVoice.ContextType>;
8
+ export declare namespace ContextType {
9
+ type Raw = "editable" | "persistent" | "temporary";
10
+ }
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.ContextType = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ exports.ContextType = core.serialization.enum_(["editable", "persistent", "temporary"]);
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as Hume from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ export declare const PauseAssistantMessage: core.serialization.ObjectSchema<serializers.empathicVoice.PauseAssistantMessage.Raw, Hume.empathicVoice.PauseAssistantMessage>;
8
+ export declare namespace PauseAssistantMessage {
9
+ interface Raw {
10
+ custom_session_id?: string | null;
11
+ type?: "pause_assistant_message" | null;
12
+ }
13
+ }
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.PauseAssistantMessage = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ exports.PauseAssistantMessage = core.serialization.object({
32
+ customSessionId: core.serialization.property("custom_session_id", core.serialization.string().optional()),
33
+ type: core.serialization.stringLiteral("pause_assistant_message").optional(),
34
+ });
@@ -6,5 +6,5 @@ import * as Hume from "../../../../api/index";
6
6
  import * as core from "../../../../core";
7
7
  export declare const PostedLanguageModelModelProvider: core.serialization.Schema<serializers.empathicVoice.PostedLanguageModelModelProvider.Raw, Hume.empathicVoice.PostedLanguageModelModelProvider>;
8
8
  export declare namespace PostedLanguageModelModelProvider {
9
- type Raw = "OPEN_AI" | "BYO_TEXT" | "CUSTOM_LANGUAGE_MODEL" | "ANTHROPIC" | "FIREWORKS";
9
+ type Raw = "OPEN_AI" | "CUSTOM_LANGUAGE_MODEL" | "ANTHROPIC" | "FIREWORKS" | "GROQ";
10
10
  }
@@ -28,4 +28,4 @@ var __importStar = (this && this.__importStar) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.PostedLanguageModelModelProvider = void 0;
30
30
  const core = __importStar(require("../../../../core"));
31
- exports.PostedLanguageModelModelProvider = core.serialization.enum_(["OPEN_AI", "BYO_TEXT", "CUSTOM_LANGUAGE_MODEL", "ANTHROPIC", "FIREWORKS"]);
31
+ exports.PostedLanguageModelModelProvider = core.serialization.enum_(["OPEN_AI", "CUSTOM_LANGUAGE_MODEL", "ANTHROPIC", "FIREWORKS", "GROQ"]);
@@ -4,10 +4,11 @@
4
4
  import * as serializers from "../../../index";
5
5
  import * as Hume from "../../../../api/index";
6
6
  import * as core from "../../../../core";
7
+ import { PostedVoiceName } from "./PostedVoiceName";
7
8
  export declare const PostedVoice: core.serialization.ObjectSchema<serializers.empathicVoice.PostedVoice.Raw, Hume.empathicVoice.PostedVoice>;
8
9
  export declare namespace PostedVoice {
9
10
  interface Raw {
10
- provider?: string | null;
11
- name: string;
11
+ provider?: "HUME_AI" | null;
12
+ name: PostedVoiceName.Raw;
12
13
  }
13
14
  }
@@ -28,7 +28,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.PostedVoice = void 0;
30
30
  const core = __importStar(require("../../../../core"));
31
+ const PostedVoiceName_1 = require("./PostedVoiceName");
31
32
  exports.PostedVoice = core.serialization.object({
32
- provider: core.serialization.string().optional(),
33
- name: core.serialization.string(),
33
+ provider: core.serialization.stringLiteral("HUME_AI").optional(),
34
+ name: PostedVoiceName_1.PostedVoiceName,
34
35
  });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as Hume from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ export declare const PostedVoiceName: core.serialization.Schema<serializers.empathicVoice.PostedVoiceName.Raw, Hume.empathicVoice.PostedVoiceName>;
8
+ export declare namespace PostedVoiceName {
9
+ type Raw = "ITO" | "DACHER";
10
+ }
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.PostedVoiceName = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ exports.PostedVoiceName = core.serialization.enum_(["ITO", "DACHER"]);
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as Hume from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ export declare const ResumeAssistantMessage: core.serialization.ObjectSchema<serializers.empathicVoice.ResumeAssistantMessage.Raw, Hume.empathicVoice.ResumeAssistantMessage>;
8
+ export declare namespace ResumeAssistantMessage {
9
+ interface Raw {
10
+ custom_session_id?: string | null;
11
+ type?: "resume_assistant_message" | null;
12
+ }
13
+ }
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.ResumeAssistantMessage = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ exports.ResumeAssistantMessage = core.serialization.object({
32
+ customSessionId: core.serialization.property("custom_session_id", core.serialization.string().optional()),
33
+ type: core.serialization.stringLiteral("resume_assistant_message").optional(),
34
+ });
@@ -13,6 +13,7 @@ export declare namespace ReturnChat {
13
13
  status: string;
14
14
  start_timestamp: number;
15
15
  end_timestamp?: number | null;
16
+ event_count?: number | null;
16
17
  metadata?: string | null;
17
18
  config?: ReturnConfigSpec.Raw | null;
18
19
  }
@@ -35,6 +35,7 @@ exports.ReturnChat = core.serialization.object({
35
35
  status: core.serialization.string(),
36
36
  startTimestamp: core.serialization.property("start_timestamp", core.serialization.number()),
37
37
  endTimestamp: core.serialization.property("end_timestamp", core.serialization.number().optional()),
38
+ eventCount: core.serialization.property("event_count", core.serialization.number().optional()),
38
39
  metadata: core.serialization.string().optional(),
39
40
  config: ReturnConfigSpec_1.ReturnConfigSpec.optional(),
40
41
  });
@@ -6,8 +6,8 @@ import * as Hume from "../../../../api/index";
6
6
  import * as core from "../../../../core";
7
7
  import { ReturnChatEvent } from "./ReturnChatEvent";
8
8
  import { ReturnConfigSpec } from "./ReturnConfigSpec";
9
- export declare const ReturnChatWithPagedEvents: core.serialization.ObjectSchema<serializers.empathicVoice.ReturnChatWithPagedEvents.Raw, Hume.empathicVoice.ReturnChatWithPagedEvents>;
10
- export declare namespace ReturnChatWithPagedEvents {
9
+ export declare const ReturnChatPagedEvents: core.serialization.ObjectSchema<serializers.empathicVoice.ReturnChatPagedEvents.Raw, Hume.empathicVoice.ReturnChatPagedEvents>;
10
+ export declare namespace ReturnChatPagedEvents {
11
11
  interface Raw {
12
12
  id: string;
13
13
  tag?: string | null;
@@ -26,11 +26,11 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.ReturnChatWithPagedEvents = void 0;
29
+ exports.ReturnChatPagedEvents = void 0;
30
30
  const core = __importStar(require("../../../../core"));
31
31
  const ReturnChatEvent_1 = require("./ReturnChatEvent");
32
32
  const ReturnConfigSpec_1 = require("./ReturnConfigSpec");
33
- exports.ReturnChatWithPagedEvents = core.serialization.object({
33
+ exports.ReturnChatPagedEvents = core.serialization.object({
34
34
  id: core.serialization.string(),
35
35
  tag: core.serialization.string().optional(),
36
36
  status: core.serialization.string(),
@@ -5,6 +5,7 @@ import * as serializers from "../../../index";
5
5
  import * as Hume from "../../../../api/index";
6
6
  import * as core from "../../../../core";
7
7
  import { ReturnPrompt } from "./ReturnPrompt";
8
+ import { ReturnVoice } from "./ReturnVoice";
8
9
  import { ReturnLanguageModel } from "./ReturnLanguageModel";
9
10
  import { ReturnUserDefinedTool } from "./ReturnUserDefinedTool";
10
11
  import { ReturnBuiltinTool } from "./ReturnBuiltinTool";
@@ -18,6 +19,7 @@ export declare namespace ReturnConfig {
18
19
  created_on?: number | null;
19
20
  modified_on?: number | null;
20
21
  prompt?: ReturnPrompt.Raw | null;
22
+ voice?: ReturnVoice.Raw | null;
21
23
  language_model?: ReturnLanguageModel.Raw | null;
22
24
  tools?: (ReturnUserDefinedTool.Raw | null | undefined)[] | null;
23
25
  builtin_tools?: (ReturnBuiltinTool.Raw | null | undefined)[] | null;