hume 0.5.15 → 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 (211) hide show
  1. package/Client.d.ts +0 -1
  2. package/api/resources/customModels/client/Client.d.ts +0 -1
  3. package/api/resources/customModels/resources/datasets/client/Client.d.ts +0 -1
  4. package/api/resources/customModels/resources/datasets/client/Client.js +9 -27
  5. package/api/resources/customModels/resources/files/client/Client.d.ts +0 -1
  6. package/api/resources/customModels/resources/files/client/Client.js +7 -21
  7. package/api/resources/customModels/resources/jobs/client/Client.d.ts +0 -1
  8. package/api/resources/customModels/resources/jobs/client/Client.js +2 -6
  9. package/api/resources/customModels/resources/models/client/Client.d.ts +0 -1
  10. package/api/resources/customModels/resources/models/client/Client.js +6 -18
  11. package/api/resources/empathicVoice/client/Client.d.ts +0 -1
  12. package/api/resources/empathicVoice/resources/chat/types/PublishEvent.d.ts +1 -1
  13. package/api/resources/empathicVoice/resources/chats/client/Client.d.ts +1 -2
  14. package/api/resources/empathicVoice/resources/chats/client/Client.js +3 -7
  15. package/api/resources/empathicVoice/resources/configs/client/Client.d.ts +0 -1
  16. package/api/resources/empathicVoice/resources/configs/client/Client.js +9 -27
  17. package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +1 -0
  18. package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +1 -0
  19. package/api/resources/empathicVoice/resources/prompts/client/Client.d.ts +1 -2
  20. package/api/resources/empathicVoice/resources/prompts/client/Client.js +10 -28
  21. package/api/resources/empathicVoice/resources/tools/client/Client.d.ts +1 -2
  22. package/api/resources/empathicVoice/resources/tools/client/Client.js +10 -28
  23. package/api/resources/empathicVoice/types/AssistantEnd.d.ts +2 -0
  24. package/api/resources/empathicVoice/types/AssistantInput.d.ts +1 -0
  25. package/api/resources/empathicVoice/types/AssistantMessage.d.ts +1 -0
  26. package/api/resources/empathicVoice/types/AudioInput.d.ts +1 -0
  27. package/api/resources/empathicVoice/types/AudioOutput.d.ts +1 -0
  28. package/api/resources/empathicVoice/types/BuiltInTool.d.ts +4 -0
  29. package/api/resources/empathicVoice/types/BuiltinToolConfig.d.ts +8 -0
  30. package/api/resources/empathicVoice/types/Context.d.ts +10 -0
  31. package/api/resources/empathicVoice/types/Context.js +5 -0
  32. package/api/resources/empathicVoice/types/ContextType.d.ts +9 -0
  33. package/api/resources/empathicVoice/types/ContextType.js +11 -0
  34. package/api/resources/empathicVoice/types/PauseAssistantMessage.d.ts +11 -0
  35. package/api/resources/empathicVoice/types/PauseAssistantMessage.js +5 -0
  36. package/api/resources/empathicVoice/types/PostedLanguageModelModelProvider.d.ts +2 -2
  37. package/api/resources/empathicVoice/types/PostedLanguageModelModelProvider.js +1 -1
  38. package/api/resources/empathicVoice/types/PostedVoice.d.ts +4 -3
  39. package/api/resources/empathicVoice/types/PostedVoiceName.d.ts +11 -0
  40. package/api/resources/empathicVoice/types/PostedVoiceName.js +10 -0
  41. package/api/resources/empathicVoice/types/ResumeAssistantMessage.d.ts +11 -0
  42. package/api/resources/empathicVoice/types/ResumeAssistantMessage.js +5 -0
  43. package/api/resources/empathicVoice/types/ReturnChat.d.ts +2 -0
  44. package/api/resources/empathicVoice/types/{ReturnChatWithPagedEvents.d.ts → ReturnChatPagedEvents.d.ts} +1 -1
  45. package/api/resources/empathicVoice/types/ReturnChatPagedEvents.js +5 -0
  46. package/api/resources/empathicVoice/types/ReturnConfig.d.ts +1 -0
  47. package/api/resources/empathicVoice/types/SessionSettings.d.ts +4 -2
  48. package/api/resources/empathicVoice/types/Tool.d.ts +6 -6
  49. package/api/resources/empathicVoice/types/ToolCallMessage.d.ts +5 -4
  50. package/api/resources/empathicVoice/types/ToolErrorMessage.d.ts +7 -6
  51. package/api/resources/empathicVoice/types/ToolResponseMessage.d.ts +7 -3
  52. package/api/resources/empathicVoice/types/UserInput.d.ts +1 -0
  53. package/api/resources/empathicVoice/types/UserInterruption.d.ts +2 -0
  54. package/api/resources/empathicVoice/types/WebSocketError.d.ts +1 -0
  55. package/api/resources/empathicVoice/types/index.d.ts +14 -7
  56. package/api/resources/empathicVoice/types/index.js +14 -7
  57. package/api/resources/expressionMeasurement/client/Client.d.ts +0 -1
  58. package/api/resources/expressionMeasurement/resources/batch/client/Client.d.ts +0 -1
  59. package/api/resources/expressionMeasurement/resources/batch/client/Client.js +6 -18
  60. package/dist/Client.d.ts +0 -1
  61. package/dist/api/resources/customModels/client/Client.d.ts +0 -1
  62. package/dist/api/resources/customModels/resources/datasets/client/Client.d.ts +0 -1
  63. package/dist/api/resources/customModels/resources/datasets/client/Client.js +9 -27
  64. package/dist/api/resources/customModels/resources/files/client/Client.d.ts +0 -1
  65. package/dist/api/resources/customModels/resources/files/client/Client.js +7 -21
  66. package/dist/api/resources/customModels/resources/jobs/client/Client.d.ts +0 -1
  67. package/dist/api/resources/customModels/resources/jobs/client/Client.js +2 -6
  68. package/dist/api/resources/customModels/resources/models/client/Client.d.ts +0 -1
  69. package/dist/api/resources/customModels/resources/models/client/Client.js +6 -18
  70. package/dist/api/resources/empathicVoice/client/Client.d.ts +0 -1
  71. package/dist/api/resources/empathicVoice/resources/chat/types/PublishEvent.d.ts +1 -1
  72. package/dist/api/resources/empathicVoice/resources/chats/client/Client.d.ts +1 -2
  73. package/dist/api/resources/empathicVoice/resources/chats/client/Client.js +3 -7
  74. package/dist/api/resources/empathicVoice/resources/configs/client/Client.d.ts +0 -1
  75. package/dist/api/resources/empathicVoice/resources/configs/client/Client.js +9 -27
  76. package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +1 -0
  77. package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +1 -0
  78. package/dist/api/resources/empathicVoice/resources/prompts/client/Client.d.ts +1 -2
  79. package/dist/api/resources/empathicVoice/resources/prompts/client/Client.js +10 -28
  80. package/dist/api/resources/empathicVoice/resources/tools/client/Client.d.ts +1 -2
  81. package/dist/api/resources/empathicVoice/resources/tools/client/Client.js +10 -28
  82. package/dist/api/resources/empathicVoice/types/AssistantEnd.d.ts +2 -0
  83. package/dist/api/resources/empathicVoice/types/AssistantInput.d.ts +1 -0
  84. package/dist/api/resources/empathicVoice/types/AssistantMessage.d.ts +1 -0
  85. package/dist/api/resources/empathicVoice/types/AudioInput.d.ts +1 -0
  86. package/dist/api/resources/empathicVoice/types/AudioOutput.d.ts +1 -0
  87. package/dist/api/resources/empathicVoice/types/BuiltInTool.d.ts +4 -0
  88. package/dist/api/resources/empathicVoice/types/BuiltInTool.js +5 -0
  89. package/dist/api/resources/empathicVoice/types/BuiltinToolConfig.d.ts +8 -0
  90. package/dist/api/resources/empathicVoice/types/BuiltinToolConfig.js +5 -0
  91. package/dist/api/resources/empathicVoice/types/Context.d.ts +10 -0
  92. package/dist/api/resources/empathicVoice/types/Context.js +5 -0
  93. package/dist/api/resources/empathicVoice/types/ContextType.d.ts +9 -0
  94. package/dist/api/resources/empathicVoice/types/ContextType.js +11 -0
  95. package/dist/api/resources/empathicVoice/types/PauseAssistantMessage.d.ts +11 -0
  96. package/dist/api/resources/empathicVoice/types/PauseAssistantMessage.js +5 -0
  97. package/dist/api/resources/empathicVoice/types/PostedLanguageModelModelProvider.d.ts +2 -2
  98. package/dist/api/resources/empathicVoice/types/PostedLanguageModelModelProvider.js +1 -1
  99. package/dist/api/resources/empathicVoice/types/PostedVoice.d.ts +4 -3
  100. package/dist/api/resources/empathicVoice/types/PostedVoiceName.d.ts +11 -0
  101. package/dist/api/resources/empathicVoice/types/PostedVoiceName.js +10 -0
  102. package/dist/api/resources/empathicVoice/types/ResumeAssistantMessage.d.ts +11 -0
  103. package/dist/api/resources/empathicVoice/types/ResumeAssistantMessage.js +5 -0
  104. package/dist/api/resources/empathicVoice/types/ReturnChat.d.ts +2 -0
  105. package/dist/api/resources/empathicVoice/types/{ReturnChatWithPagedEvents.d.ts → ReturnChatPagedEvents.d.ts} +1 -1
  106. package/dist/api/resources/empathicVoice/types/ReturnChatPagedEvents.js +5 -0
  107. package/dist/api/resources/empathicVoice/types/ReturnConfig.d.ts +1 -0
  108. package/dist/api/resources/empathicVoice/types/SessionSettings.d.ts +4 -2
  109. package/dist/api/resources/empathicVoice/types/Tool.d.ts +6 -6
  110. package/dist/api/resources/empathicVoice/types/ToolCallMessage.d.ts +5 -4
  111. package/dist/api/resources/empathicVoice/types/ToolErrorMessage.d.ts +7 -6
  112. package/dist/api/resources/empathicVoice/types/ToolResponseMessage.d.ts +7 -3
  113. package/dist/api/resources/empathicVoice/types/UserInput.d.ts +1 -0
  114. package/dist/api/resources/empathicVoice/types/UserInterruption.d.ts +2 -0
  115. package/dist/api/resources/empathicVoice/types/WebSocketError.d.ts +1 -0
  116. package/dist/api/resources/empathicVoice/types/index.d.ts +14 -7
  117. package/dist/api/resources/empathicVoice/types/index.js +14 -7
  118. package/dist/api/resources/expressionMeasurement/client/Client.d.ts +0 -1
  119. package/dist/api/resources/expressionMeasurement/resources/batch/client/Client.d.ts +0 -1
  120. package/dist/api/resources/expressionMeasurement/resources/batch/client/Client.js +6 -18
  121. package/dist/serialization/resources/empathicVoice/resources/chat/types/PublishEvent.d.ts +3 -1
  122. package/dist/serialization/resources/empathicVoice/resources/chat/types/PublishEvent.js +4 -0
  123. package/dist/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +2 -0
  124. package/dist/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfig.js +2 -0
  125. package/dist/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +2 -0
  126. package/dist/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.js +2 -0
  127. package/dist/serialization/resources/empathicVoice/types/AssistantEnd.d.ts +1 -0
  128. package/dist/serialization/resources/empathicVoice/types/AssistantEnd.js +1 -0
  129. package/dist/serialization/resources/empathicVoice/types/BuiltInTool.d.ts +10 -0
  130. package/dist/serialization/resources/empathicVoice/types/BuiltInTool.js +31 -0
  131. package/dist/serialization/resources/empathicVoice/types/BuiltinToolConfig.d.ts +14 -0
  132. package/dist/serialization/resources/empathicVoice/types/BuiltinToolConfig.js +35 -0
  133. package/dist/serialization/resources/empathicVoice/types/Context.d.ts +14 -0
  134. package/dist/serialization/resources/empathicVoice/types/Context.js +35 -0
  135. package/dist/serialization/resources/empathicVoice/types/ContextType.d.ts +10 -0
  136. package/dist/serialization/resources/empathicVoice/types/ContextType.js +31 -0
  137. package/dist/serialization/resources/empathicVoice/types/PauseAssistantMessage.d.ts +13 -0
  138. package/dist/serialization/resources/empathicVoice/types/PauseAssistantMessage.js +34 -0
  139. package/dist/serialization/resources/empathicVoice/types/PostedLanguageModelModelProvider.d.ts +1 -1
  140. package/dist/serialization/resources/empathicVoice/types/PostedLanguageModelModelProvider.js +1 -1
  141. package/dist/serialization/resources/empathicVoice/types/PostedVoice.d.ts +3 -2
  142. package/dist/serialization/resources/empathicVoice/types/PostedVoice.js +3 -2
  143. package/dist/serialization/resources/empathicVoice/types/PostedVoiceName.d.ts +10 -0
  144. package/dist/serialization/resources/empathicVoice/types/PostedVoiceName.js +31 -0
  145. package/dist/serialization/resources/empathicVoice/types/ResumeAssistantMessage.d.ts +13 -0
  146. package/dist/serialization/resources/empathicVoice/types/ResumeAssistantMessage.js +34 -0
  147. package/dist/serialization/resources/empathicVoice/types/ReturnChat.d.ts +1 -0
  148. package/dist/serialization/resources/empathicVoice/types/ReturnChat.js +1 -0
  149. package/dist/serialization/resources/empathicVoice/types/{ReturnChatWithPagedEvents.d.ts → ReturnChatPagedEvents.d.ts} +2 -2
  150. package/dist/serialization/resources/empathicVoice/types/{ReturnChatWithPagedEvents.js → ReturnChatPagedEvents.js} +2 -2
  151. package/dist/serialization/resources/empathicVoice/types/ReturnConfig.d.ts +2 -0
  152. package/dist/serialization/resources/empathicVoice/types/ReturnConfig.js +2 -0
  153. package/dist/serialization/resources/empathicVoice/types/SessionSettings.d.ts +4 -2
  154. package/dist/serialization/resources/empathicVoice/types/SessionSettings.js +4 -2
  155. package/dist/serialization/resources/empathicVoice/types/Tool.d.ts +3 -3
  156. package/dist/serialization/resources/empathicVoice/types/Tool.js +3 -3
  157. package/dist/serialization/resources/empathicVoice/types/ToolCallMessage.d.ts +3 -3
  158. package/dist/serialization/resources/empathicVoice/types/ToolCallMessage.js +3 -3
  159. package/dist/serialization/resources/empathicVoice/types/ToolErrorMessage.d.ts +6 -4
  160. package/dist/serialization/resources/empathicVoice/types/ToolErrorMessage.js +6 -4
  161. package/dist/serialization/resources/empathicVoice/types/ToolResponseMessage.d.ts +5 -2
  162. package/dist/serialization/resources/empathicVoice/types/ToolResponseMessage.js +5 -2
  163. package/dist/serialization/resources/empathicVoice/types/index.d.ts +14 -7
  164. package/dist/serialization/resources/empathicVoice/types/index.js +14 -7
  165. package/package.json +1 -1
  166. package/serialization/resources/empathicVoice/resources/chat/types/PublishEvent.d.ts +3 -1
  167. package/serialization/resources/empathicVoice/resources/chat/types/PublishEvent.js +4 -0
  168. package/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +2 -0
  169. package/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfig.js +2 -0
  170. package/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +2 -0
  171. package/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.js +2 -0
  172. package/serialization/resources/empathicVoice/types/AssistantEnd.d.ts +1 -0
  173. package/serialization/resources/empathicVoice/types/AssistantEnd.js +1 -0
  174. package/serialization/resources/empathicVoice/types/BuiltInTool.d.ts +10 -0
  175. package/serialization/resources/empathicVoice/types/BuiltInTool.js +31 -0
  176. package/serialization/resources/empathicVoice/types/BuiltinToolConfig.d.ts +14 -0
  177. package/serialization/resources/empathicVoice/types/BuiltinToolConfig.js +35 -0
  178. package/serialization/resources/empathicVoice/types/Context.d.ts +14 -0
  179. package/serialization/resources/empathicVoice/types/Context.js +35 -0
  180. package/serialization/resources/empathicVoice/types/ContextType.d.ts +10 -0
  181. package/serialization/resources/empathicVoice/types/ContextType.js +31 -0
  182. package/serialization/resources/empathicVoice/types/PauseAssistantMessage.d.ts +13 -0
  183. package/serialization/resources/empathicVoice/types/PauseAssistantMessage.js +34 -0
  184. package/serialization/resources/empathicVoice/types/PostedLanguageModelModelProvider.d.ts +1 -1
  185. package/serialization/resources/empathicVoice/types/PostedLanguageModelModelProvider.js +1 -1
  186. package/serialization/resources/empathicVoice/types/PostedVoice.d.ts +3 -2
  187. package/serialization/resources/empathicVoice/types/PostedVoice.js +3 -2
  188. package/serialization/resources/empathicVoice/types/PostedVoiceName.d.ts +10 -0
  189. package/serialization/resources/empathicVoice/types/PostedVoiceName.js +31 -0
  190. package/serialization/resources/empathicVoice/types/ResumeAssistantMessage.d.ts +13 -0
  191. package/serialization/resources/empathicVoice/types/ResumeAssistantMessage.js +34 -0
  192. package/serialization/resources/empathicVoice/types/ReturnChat.d.ts +1 -0
  193. package/serialization/resources/empathicVoice/types/ReturnChat.js +1 -0
  194. package/serialization/resources/empathicVoice/types/{ReturnChatWithPagedEvents.d.ts → ReturnChatPagedEvents.d.ts} +2 -2
  195. package/serialization/resources/empathicVoice/types/{ReturnChatWithPagedEvents.js → ReturnChatPagedEvents.js} +2 -2
  196. package/serialization/resources/empathicVoice/types/ReturnConfig.d.ts +2 -0
  197. package/serialization/resources/empathicVoice/types/ReturnConfig.js +2 -0
  198. package/serialization/resources/empathicVoice/types/SessionSettings.d.ts +4 -2
  199. package/serialization/resources/empathicVoice/types/SessionSettings.js +4 -2
  200. package/serialization/resources/empathicVoice/types/Tool.d.ts +3 -3
  201. package/serialization/resources/empathicVoice/types/Tool.js +3 -3
  202. package/serialization/resources/empathicVoice/types/ToolCallMessage.d.ts +3 -3
  203. package/serialization/resources/empathicVoice/types/ToolCallMessage.js +3 -3
  204. package/serialization/resources/empathicVoice/types/ToolErrorMessage.d.ts +6 -4
  205. package/serialization/resources/empathicVoice/types/ToolErrorMessage.js +6 -4
  206. package/serialization/resources/empathicVoice/types/ToolResponseMessage.d.ts +5 -2
  207. package/serialization/resources/empathicVoice/types/ToolResponseMessage.js +5 -2
  208. package/serialization/resources/empathicVoice/types/index.d.ts +14 -7
  209. package/serialization/resources/empathicVoice/types/index.js +14 -7
  210. /package/api/resources/empathicVoice/types/{ReturnChatWithPagedEvents.js → BuiltInTool.js} +0 -0
  211. /package/{dist/api/resources/empathicVoice/types/ReturnChatWithPagedEvents.js → api/resources/empathicVoice/types/BuiltinToolConfig.js} +0 -0
@@ -72,9 +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, "prompts"),
74
74
  method: "GET",
75
- headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
76
- ? yield core.Supplier.get(this._options.accountToken)
77
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.15", "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.5.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
78
76
  contentType: "application/json",
79
77
  queryParameters: _queryParams,
80
78
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -126,9 +124,7 @@ class Prompts {
126
124
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
127
125
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "prompts"),
128
126
  method: "POST",
129
- headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
130
- ? yield core.Supplier.get(this._options.accountToken)
131
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
127
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
132
128
  contentType: "application/json",
133
129
  body: yield serializers.empathicVoice.PostedPrompt.jsonOrThrow(request, {
134
130
  unrecognizedObjectKeys: "strip",
@@ -167,7 +163,7 @@ class Prompts {
167
163
  });
168
164
  }
169
165
  /**
170
- * @param {string} id
166
+ * @param {string} id - Identifier for a tool. Formatted as a UUID.
171
167
  * @param {Hume.empathicVoice.PromptsListPromptVersionsRequest} request
172
168
  * @param {Prompts.RequestOptions} requestOptions - Request-specific configuration.
173
169
  *
@@ -191,9 +187,7 @@ class Prompts {
191
187
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
192
188
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `prompts/${encodeURIComponent(id)}`),
193
189
  method: "GET",
194
- headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
195
- ? yield core.Supplier.get(this._options.accountToken)
196
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
190
+ 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())),
197
191
  contentType: "application/json",
198
192
  queryParameters: _queryParams,
199
193
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -245,9 +239,7 @@ class Prompts {
245
239
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
246
240
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `prompts/${encodeURIComponent(id)}`),
247
241
  method: "POST",
248
- headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
249
- ? yield core.Supplier.get(this._options.accountToken)
250
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
242
+ 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())),
251
243
  contentType: "application/json",
252
244
  body: yield serializers.empathicVoice.PostedPromptVersion.jsonOrThrow(request, {
253
245
  unrecognizedObjectKeys: "strip",
@@ -298,9 +290,7 @@ class Prompts {
298
290
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
299
291
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `prompts/${encodeURIComponent(id)}`),
300
292
  method: "DELETE",
301
- headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
302
- ? yield core.Supplier.get(this._options.accountToken)
303
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
293
+ 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())),
304
294
  contentType: "application/json",
305
295
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
306
296
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -345,9 +335,7 @@ class Prompts {
345
335
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
346
336
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `prompts/${encodeURIComponent(id)}`),
347
337
  method: "PATCH",
348
- headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
349
- ? yield core.Supplier.get(this._options.accountToken)
350
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
338
+ 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())),
351
339
  contentType: "application/json",
352
340
  body: yield serializers.empathicVoice.PostedPromptName.jsonOrThrow(request, {
353
341
  unrecognizedObjectKeys: "strip",
@@ -394,9 +382,7 @@ class Prompts {
394
382
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
395
383
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `prompts/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
396
384
  method: "GET",
397
- headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
398
- ? yield core.Supplier.get(this._options.accountToken)
399
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
385
+ 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())),
400
386
  contentType: "application/json",
401
387
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
402
388
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -445,9 +431,7 @@ class Prompts {
445
431
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
446
432
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `prompts/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
447
433
  method: "DELETE",
448
- headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
449
- ? yield core.Supplier.get(this._options.accountToken)
450
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
434
+ 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())),
451
435
  contentType: "application/json",
452
436
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
453
437
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -491,9 +475,7 @@ class Prompts {
491
475
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
492
476
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `prompts/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
493
477
  method: "PATCH",
494
- headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
495
- ? yield core.Supplier.get(this._options.accountToken)
496
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
478
+ 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())),
497
479
  contentType: "application/json",
498
480
  body: yield serializers.empathicVoice.PostedPromptVersionDescription.jsonOrThrow(request, {
499
481
  unrecognizedObjectKeys: "strip",
@@ -8,7 +8,6 @@ export declare namespace Tools {
8
8
  interface Options {
9
9
  environment?: core.Supplier<environments.HumeEnvironment | string>;
10
10
  apiKey?: core.Supplier<string | undefined>;
11
- accountToken?: core.Supplier<string | undefined>;
12
11
  fetcher?: core.FetchFunction;
13
12
  }
14
13
  interface RequestOptions {
@@ -45,7 +44,7 @@ export declare class Tools {
45
44
  */
46
45
  createTool(request: Hume.empathicVoice.PostedUserDefinedTool, requestOptions?: Tools.RequestOptions): Promise<Hume.empathicVoice.ReturnUserDefinedTool | undefined>;
47
46
  /**
48
- * @param {string} id
47
+ * @param {string} id - Identifier for a tool. Formatted as a UUID.
49
48
  * @param {Hume.empathicVoice.ToolsListToolVersionsRequest} request
50
49
  * @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
51
50
  *
@@ -75,9 +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, "tools"),
77
77
  method: "GET",
78
- headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
79
- ? yield core.Supplier.get(this._options.accountToken)
80
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.15", "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.5.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
81
79
  contentType: "application/json",
82
80
  queryParameters: _queryParams,
83
81
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -132,9 +130,7 @@ class Tools {
132
130
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
133
131
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "tools"),
134
132
  method: "POST",
135
- headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
136
- ? yield core.Supplier.get(this._options.accountToken)
137
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
133
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
138
134
  contentType: "application/json",
139
135
  body: yield serializers.empathicVoice.PostedUserDefinedTool.jsonOrThrow(request, {
140
136
  unrecognizedObjectKeys: "strip",
@@ -173,7 +169,7 @@ class Tools {
173
169
  });
174
170
  }
175
171
  /**
176
- * @param {string} id
172
+ * @param {string} id - Identifier for a tool. Formatted as a UUID.
177
173
  * @param {Hume.empathicVoice.ToolsListToolVersionsRequest} request
178
174
  * @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
179
175
  *
@@ -197,9 +193,7 @@ class Tools {
197
193
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
198
194
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `tools/${encodeURIComponent(id)}`),
199
195
  method: "GET",
200
- headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
201
- ? yield core.Supplier.get(this._options.accountToken)
202
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
196
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
203
197
  contentType: "application/json",
204
198
  queryParameters: _queryParams,
205
199
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -254,9 +248,7 @@ class Tools {
254
248
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
255
249
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `tools/${encodeURIComponent(id)}`),
256
250
  method: "POST",
257
- headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
258
- ? yield core.Supplier.get(this._options.accountToken)
259
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
251
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
260
252
  contentType: "application/json",
261
253
  body: yield serializers.empathicVoice.PostedUserDefinedToolVersion.jsonOrThrow(request, {
262
254
  unrecognizedObjectKeys: "strip",
@@ -307,9 +299,7 @@ class Tools {
307
299
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
308
300
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `tools/${encodeURIComponent(id)}`),
309
301
  method: "DELETE",
310
- headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
311
- ? yield core.Supplier.get(this._options.accountToken)
312
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
302
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
313
303
  contentType: "application/json",
314
304
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
315
305
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -354,9 +344,7 @@ class Tools {
354
344
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
355
345
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `tools/${encodeURIComponent(id)}`),
356
346
  method: "PATCH",
357
- headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
358
- ? yield core.Supplier.get(this._options.accountToken)
359
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
347
+ 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())),
360
348
  contentType: "application/json",
361
349
  body: yield serializers.empathicVoice.PostedUserDefinedToolName.jsonOrThrow(request, {
362
350
  unrecognizedObjectKeys: "strip",
@@ -403,9 +391,7 @@ class Tools {
403
391
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
404
392
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `tools/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
405
393
  method: "GET",
406
- headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
407
- ? yield core.Supplier.get(this._options.accountToken)
408
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
394
+ 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())),
409
395
  contentType: "application/json",
410
396
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
411
397
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -454,9 +440,7 @@ class Tools {
454
440
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
455
441
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `tools/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
456
442
  method: "DELETE",
457
- headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
458
- ? yield core.Supplier.get(this._options.accountToken)
459
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
443
+ 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())),
460
444
  contentType: "application/json",
461
445
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
462
446
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -502,9 +486,7 @@ class Tools {
502
486
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
503
487
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `tools/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
504
488
  method: "PATCH",
505
- headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
506
- ? yield core.Supplier.get(this._options.accountToken)
507
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
489
+ 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())),
508
490
  contentType: "application/json",
509
491
  body: yield serializers.empathicVoice.PostedUserDefinedToolVersionDescription.jsonOrThrow(request, {
510
492
  unrecognizedObjectKeys: "strip",
@@ -5,5 +5,7 @@
5
5
  * When provided, the output is an assistant end message.
6
6
  */
7
7
  export interface AssistantEnd {
8
+ customSessionId?: string;
9
+ /** The type of message sent through the socket; for an Assistant End message, this must be 'assistant_end'. */
8
10
  type: "assistant_end";
9
11
  }
@@ -8,5 +8,6 @@ export interface AssistantInput {
8
8
  customSessionId?: string;
9
9
  /** Text to be synthesized. */
10
10
  text: string;
11
+ /** The type of message sent through the socket; for an Assistant Input message, this must be 'assistant_input'. */
11
12
  type: "assistant_input";
12
13
  }
@@ -15,5 +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
19
  type: "assistant_message";
19
20
  }
@@ -8,5 +8,6 @@ export interface AudioInput {
8
8
  customSessionId?: string;
9
9
  /** Base64 encoded audio input. */
10
10
  data: string;
11
+ /** The type of message sent through the socket; for an Audio Input message, this must be 'audio_input'. */
11
12
  type: "audio_input";
12
13
  }
@@ -10,5 +10,6 @@ export interface AudioOutput {
10
10
  data: string;
11
11
  /** ID of the audio output. */
12
12
  id: string;
13
+ /** The type of message sent through the socket; for an Audio Output message, this must be 'audio_output'. */
13
14
  type: "audio_output";
14
15
  }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export declare type BuiltInTool = "web_search";
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Hume from "../../../index";
5
+ export interface BuiltinToolConfig {
6
+ fallbackContent?: string;
7
+ name: Hume.empathicVoice.BuiltInTool;
8
+ }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Hume from "../../../index";
5
+ export interface Context {
6
+ /** User context to inject. */
7
+ text: string;
8
+ /** The persistence level of the injected context. */
9
+ type?: Hume.empathicVoice.ContextType;
10
+ }
@@ -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,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export declare type ContextType = "editable" | "persistent" | "temporary";
5
+ export declare const ContextType: {
6
+ readonly Editable: "editable";
7
+ readonly Persistent: "persistent";
8
+ readonly Temporary: "temporary";
9
+ };
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.ContextType = void 0;
7
+ exports.ContextType = {
8
+ Editable: "editable",
9
+ Persistent: "persistent",
10
+ Temporary: "temporary",
11
+ };
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Pause responses from EVI. Chat history is still saved and sent after resuming.
6
+ */
7
+ export interface PauseAssistantMessage {
8
+ customSessionId?: string;
9
+ /** The type of message sent through the socket; for a Pause Assistant message, this must be 'pause_assistant_message'. */
10
+ type?: "pause_assistant_message";
11
+ }
@@ -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 });
@@ -4,11 +4,11 @@
4
4
  /**
5
5
  * The provider of this model. Based on the enum modelProvider.
6
6
  */
7
- export declare type PostedLanguageModelModelProvider = "OPEN_AI" | "BYO_TEXT" | "CUSTOM_LANGUAGE_MODEL" | "ANTHROPIC" | "FIREWORKS";
7
+ export declare type PostedLanguageModelModelProvider = "OPEN_AI" | "CUSTOM_LANGUAGE_MODEL" | "ANTHROPIC" | "FIREWORKS" | "GROQ";
8
8
  export declare const PostedLanguageModelModelProvider: {
9
9
  readonly OpenAi: "OPEN_AI";
10
- readonly ByoText: "BYO_TEXT";
11
10
  readonly CustomLanguageModel: "CUSTOM_LANGUAGE_MODEL";
12
11
  readonly Anthropic: "ANTHROPIC";
13
12
  readonly Fireworks: "FIREWORKS";
13
+ readonly Groq: "GROQ";
14
14
  };
@@ -6,8 +6,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.PostedLanguageModelModelProvider = void 0;
7
7
  exports.PostedLanguageModelModelProvider = {
8
8
  OpenAi: "OPEN_AI",
9
- ByoText: "BYO_TEXT",
10
9
  CustomLanguageModel: "CUSTOM_LANGUAGE_MODEL",
11
10
  Anthropic: "ANTHROPIC",
12
11
  Fireworks: "FIREWORKS",
12
+ Groq: "GROQ",
13
13
  };
@@ -1,12 +1,13 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as Hume from "../../../index";
4
5
  /**
5
6
  * A Voice specification posted to the server
6
7
  */
7
8
  export interface PostedVoice {
8
- /** The provider of the voice to use. Based on the enum VoiceProvider. */
9
- provider?: string;
9
+ /** The provider of the voice to use. */
10
+ provider?: "HUME_AI";
10
11
  /** String with the name of the voice to use. */
11
- name: string;
12
+ name: Hume.empathicVoice.PostedVoiceName;
12
13
  }
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * String with the name of the voice to use.
6
+ */
7
+ export declare type PostedVoiceName = "ITO" | "DACHER";
8
+ export declare const PostedVoiceName: {
9
+ readonly Ito: "ITO";
10
+ readonly Dacher: "DACHER";
11
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.PostedVoiceName = void 0;
7
+ exports.PostedVoiceName = {
8
+ Ito: "ITO",
9
+ Dacher: "DACHER",
10
+ };
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Resume responses from EVI. Chat history sent while paused will now be sent.
6
+ */
7
+ export interface ResumeAssistantMessage {
8
+ customSessionId?: string;
9
+ /** The type of message sent through the socket; for a Resume Assistant message, this must be 'resume_assistant_message'. */
10
+ type?: "resume_assistant_message";
11
+ }
@@ -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 });
@@ -16,6 +16,8 @@ export interface ReturnChat {
16
16
  startTimestamp: number;
17
17
  /** The timestamp when the chat ended, formatted as a Unix epoch milliseconds. */
18
18
  endTimestamp?: number;
19
+ /** The total number of events currently in this chat. */
20
+ eventCount?: number;
19
21
  /** Stringified JSON with additional metadata about the chat. */
20
22
  metadata?: string;
21
23
  config?: Hume.empathicVoice.ReturnConfigSpec;
@@ -5,7 +5,7 @@ import * as Hume from "../../../index";
5
5
  /**
6
6
  * A description of chat status with a paginated list of chat events returned from the server
7
7
  */
8
- export interface ReturnChatWithPagedEvents {
8
+ export interface ReturnChatPagedEvents {
9
9
  /** Identifier for a chat. Formatted as a UUID. */
10
10
  id: string;
11
11
  /** Optional tag applied to this chat used to group chats by user, application, etc. */
@@ -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 });
@@ -19,6 +19,7 @@ export interface ReturnConfig {
19
19
  /** The timestamp when this version of the config was created. */
20
20
  modifiedOn?: number;
21
21
  prompt?: Hume.empathicVoice.ReturnPrompt;
22
+ voice?: Hume.empathicVoice.ReturnVoice;
22
23
  languageModel?: Hume.empathicVoice.ReturnLanguageModel;
23
24
  /** List of user-defined tools associated with this config. */
24
25
  tools?: (Hume.empathicVoice.ReturnUserDefinedTool | undefined)[];
@@ -6,10 +6,12 @@ import * as Hume from "../../../index";
6
6
  * Settings for this chat session.
7
7
  */
8
8
  export interface SessionSettings {
9
- customSessionId?: string;
10
9
  audio?: Hume.empathicVoice.AudioConfiguration;
10
+ builtinTools?: Hume.empathicVoice.BuiltinToolConfig[];
11
+ customSessionId?: string;
11
12
  languageModelApiKey?: string;
12
13
  systemPrompt?: string;
13
- type: "session_settings";
14
14
  tools?: Hume.empathicVoice.Tool[];
15
+ /** The type of message sent through the socket; for a Session Settings message, this must be 'session_settings'. */
16
+ type: "session_settings";
15
17
  }
@@ -3,12 +3,12 @@
3
3
  */
4
4
  import * as Hume from "../../../index";
5
5
  export interface Tool {
6
- /** Type of tool. */
7
- type: Hume.empathicVoice.ToolType;
8
- /** Name of the function. */
9
- name: string;
10
- /** Parameters of the function. Is a stringified JSON schema. */
11
- parameters: string;
12
6
  description?: string;
13
7
  fallbackContent?: string;
8
+ /** Name of the tool. */
9
+ name: string;
10
+ /** Parameters of the tool. Is a stringified JSON schema. */
11
+ parameters: string;
12
+ /** Type of tool. */
13
+ type: Hume.empathicVoice.ToolType;
14
14
  }
@@ -6,16 +6,17 @@ import * as Hume from "../../../index";
6
6
  * When provided, the output is a tool call.
7
7
  */
8
8
  export interface ToolCallMessage {
9
+ customSessionId?: string;
9
10
  /** Name of the tool called. */
10
11
  name: string;
11
12
  /** Parameters of the tool call. Is a stringified JSON schema. */
12
13
  parameters: string;
14
+ /** Whether a response is required from the developer. */
15
+ responseRequired: boolean;
13
16
  /** ID of the tool call. */
14
17
  toolCallId: string;
15
- type?: "tool_call";
16
- customSessionId?: string;
17
18
  /** Type of tool called, either 'builtin' or 'function'. */
18
19
  toolType: Hume.empathicVoice.ToolType;
19
- /** Whether a response is required from the developer. */
20
- responseRequired: boolean;
20
+ /** The type of message sent through the socket; for a Tool Call message, this must be 'tool_call'. */
21
+ type?: "tool_call";
21
22
  }
@@ -6,14 +6,15 @@ import * as Hume from "../../../index";
6
6
  * When provided, the output is a function call error.
7
7
  */
8
8
  export interface ToolErrorMessage {
9
- type: "tool_error";
9
+ code?: string;
10
+ content?: string;
10
11
  customSessionId?: string;
11
- /** ID of the tool call. */
12
- toolCallId: string;
13
- /** The content passed to the LLM in place of the tool response. */
14
- content: string;
15
12
  /** Error message from the tool call, not exposed to the LLM or user. */
16
13
  error: string;
17
- code?: string;
18
14
  level?: Hume.empathicVoice.ErrorLevel;
15
+ /** ID of the tool call. */
16
+ toolCallId: string;
17
+ toolType?: Hume.empathicVoice.ToolType;
18
+ /** The type of message sent through the socket; for a Tool Error message, this must be 'tool_error'. */
19
+ type?: "tool_error";
19
20
  }
@@ -1,14 +1,18 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as Hume from "../../../index";
4
5
  /**
5
6
  * When provided, the output is a function call response.
6
7
  */
7
8
  export interface ToolResponseMessage {
8
- type: "tool_response";
9
+ /** Return value of the tool call. */
10
+ content: string;
9
11
  customSessionId?: string;
10
12
  /** ID of the tool call. */
11
13
  toolCallId: string;
12
- /** Return value of the tool call. */
13
- content: string;
14
+ toolName?: string;
15
+ toolType?: Hume.empathicVoice.ToolType;
16
+ /** The type of message sent through the socket; for a Tool Response message, this must be ‘tool_response’. */
17
+ type?: "tool_response";
14
18
  }
@@ -8,5 +8,6 @@ export interface UserInput {
8
8
  customSessionId?: string;
9
9
  /** User text to insert into the conversation. */
10
10
  text: string;
11
+ /** The type of message sent through the socket; for a User Input message, this must be ‘user_input’. */
11
12
  type: "user_input";
12
13
  }