hume 0.5.16 → 0.6.0

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 (237) hide show
  1. package/Client.d.ts +4 -3
  2. package/Client.js +6 -6
  3. package/api/resources/customModels/client/Client.d.ts +1 -0
  4. package/api/resources/customModels/resources/datasets/client/Client.d.ts +1 -0
  5. package/api/resources/customModels/resources/datasets/client/Client.js +38 -30
  6. package/api/resources/customModels/resources/files/client/Client.d.ts +1 -0
  7. package/api/resources/customModels/resources/files/client/Client.js +26 -20
  8. package/api/resources/customModels/resources/jobs/client/Client.d.ts +1 -0
  9. package/api/resources/customModels/resources/jobs/client/Client.js +6 -4
  10. package/api/resources/customModels/resources/models/client/Client.d.ts +1 -0
  11. package/api/resources/customModels/resources/models/client/Client.js +18 -12
  12. package/api/resources/empathicVoice/client/Client.d.ts +1 -0
  13. package/api/resources/empathicVoice/resources/chat/types/PublishEvent.d.ts +1 -1
  14. package/api/resources/empathicVoice/resources/chats/client/Client.d.ts +2 -1
  15. package/api/resources/empathicVoice/resources/chats/client/Client.js +7 -5
  16. package/api/resources/empathicVoice/resources/configs/client/Client.d.ts +1 -0
  17. package/api/resources/empathicVoice/resources/configs/client/Client.js +27 -18
  18. package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +1 -0
  19. package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +1 -0
  20. package/api/resources/empathicVoice/resources/prompts/client/Client.d.ts +2 -1
  21. package/api/resources/empathicVoice/resources/prompts/client/Client.js +28 -19
  22. package/api/resources/empathicVoice/resources/tools/client/Client.d.ts +2 -1
  23. package/api/resources/empathicVoice/resources/tools/client/Client.js +28 -19
  24. package/api/resources/empathicVoice/types/AssistantEnd.d.ts +2 -0
  25. package/api/resources/empathicVoice/types/AssistantInput.d.ts +1 -0
  26. package/api/resources/empathicVoice/types/AssistantMessage.d.ts +1 -0
  27. package/api/resources/empathicVoice/types/AudioInput.d.ts +1 -0
  28. package/api/resources/empathicVoice/types/AudioOutput.d.ts +1 -0
  29. package/api/resources/empathicVoice/types/BuiltInTool.d.ts +4 -0
  30. package/api/resources/empathicVoice/types/BuiltinToolConfig.d.ts +8 -0
  31. package/api/resources/empathicVoice/types/Context.d.ts +10 -0
  32. package/api/resources/empathicVoice/types/Context.js +5 -0
  33. package/api/resources/empathicVoice/types/ContextType.d.ts +9 -0
  34. package/api/resources/empathicVoice/types/ContextType.js +11 -0
  35. package/api/resources/empathicVoice/types/PauseAssistantMessage.d.ts +11 -0
  36. package/api/resources/empathicVoice/types/PauseAssistantMessage.js +5 -0
  37. package/api/resources/empathicVoice/types/PostedLanguageModelModelProvider.d.ts +2 -2
  38. package/api/resources/empathicVoice/types/PostedLanguageModelModelProvider.js +1 -1
  39. package/api/resources/empathicVoice/types/PostedVoice.d.ts +4 -3
  40. package/api/resources/empathicVoice/types/PostedVoiceName.d.ts +11 -0
  41. package/api/resources/empathicVoice/types/PostedVoiceName.js +10 -0
  42. package/api/resources/empathicVoice/types/ResumeAssistantMessage.d.ts +11 -0
  43. package/api/resources/empathicVoice/types/ResumeAssistantMessage.js +5 -0
  44. package/api/resources/empathicVoice/types/ReturnChat.d.ts +2 -0
  45. package/api/resources/empathicVoice/types/{ReturnChatWithPagedEvents.d.ts → ReturnChatPagedEvents.d.ts} +1 -1
  46. package/api/resources/empathicVoice/types/ReturnChatPagedEvents.js +5 -0
  47. package/api/resources/empathicVoice/types/ReturnConfig.d.ts +1 -0
  48. package/api/resources/empathicVoice/types/SessionSettings.d.ts +4 -2
  49. package/api/resources/empathicVoice/types/Tool.d.ts +6 -6
  50. package/api/resources/empathicVoice/types/ToolCallMessage.d.ts +5 -4
  51. package/api/resources/empathicVoice/types/ToolErrorMessage.d.ts +7 -6
  52. package/api/resources/empathicVoice/types/ToolResponseMessage.d.ts +7 -3
  53. package/api/resources/empathicVoice/types/UserInput.d.ts +1 -0
  54. package/api/resources/empathicVoice/types/UserInterruption.d.ts +2 -0
  55. package/api/resources/empathicVoice/types/WebSocketError.d.ts +1 -0
  56. package/api/resources/empathicVoice/types/index.d.ts +14 -7
  57. package/api/resources/empathicVoice/types/index.js +14 -7
  58. package/api/resources/expressionMeasurement/client/Client.d.ts +1 -0
  59. package/api/resources/expressionMeasurement/resources/batch/client/Client.d.ts +1 -0
  60. package/api/resources/expressionMeasurement/resources/batch/client/Client.js +17 -12
  61. package/api/resources/index.d.ts +1 -1
  62. package/api/resources/index.js +2 -2
  63. package/core/fetcher/Fetcher.d.ts +1 -0
  64. package/core/fetcher/Fetcher.js +106 -20
  65. package/core/form-data-utils/FormDataWrapper.d.ts +24 -0
  66. package/core/form-data-utils/FormDataWrapper.js +105 -0
  67. package/core/form-data-utils/index.d.ts +1 -0
  68. package/core/form-data-utils/index.js +17 -0
  69. package/core/index.d.ts +1 -0
  70. package/core/index.js +1 -0
  71. package/dist/Client.d.ts +4 -3
  72. package/dist/Client.js +6 -6
  73. package/dist/api/resources/customModels/client/Client.d.ts +1 -0
  74. package/dist/api/resources/customModels/resources/datasets/client/Client.d.ts +1 -0
  75. package/dist/api/resources/customModels/resources/datasets/client/Client.js +38 -30
  76. package/dist/api/resources/customModels/resources/files/client/Client.d.ts +1 -0
  77. package/dist/api/resources/customModels/resources/files/client/Client.js +26 -20
  78. package/dist/api/resources/customModels/resources/jobs/client/Client.d.ts +1 -0
  79. package/dist/api/resources/customModels/resources/jobs/client/Client.js +6 -4
  80. package/dist/api/resources/customModels/resources/models/client/Client.d.ts +1 -0
  81. package/dist/api/resources/customModels/resources/models/client/Client.js +18 -12
  82. package/dist/api/resources/empathicVoice/client/Client.d.ts +1 -0
  83. package/dist/api/resources/empathicVoice/resources/chat/types/PublishEvent.d.ts +1 -1
  84. package/dist/api/resources/empathicVoice/resources/chats/client/Client.d.ts +2 -1
  85. package/dist/api/resources/empathicVoice/resources/chats/client/Client.js +7 -5
  86. package/dist/api/resources/empathicVoice/resources/configs/client/Client.d.ts +1 -0
  87. package/dist/api/resources/empathicVoice/resources/configs/client/Client.js +27 -18
  88. package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +1 -0
  89. package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +1 -0
  90. package/dist/api/resources/empathicVoice/resources/prompts/client/Client.d.ts +2 -1
  91. package/dist/api/resources/empathicVoice/resources/prompts/client/Client.js +28 -19
  92. package/dist/api/resources/empathicVoice/resources/tools/client/Client.d.ts +2 -1
  93. package/dist/api/resources/empathicVoice/resources/tools/client/Client.js +28 -19
  94. package/dist/api/resources/empathicVoice/types/AssistantEnd.d.ts +2 -0
  95. package/dist/api/resources/empathicVoice/types/AssistantInput.d.ts +1 -0
  96. package/dist/api/resources/empathicVoice/types/AssistantMessage.d.ts +1 -0
  97. package/dist/api/resources/empathicVoice/types/AudioInput.d.ts +1 -0
  98. package/dist/api/resources/empathicVoice/types/AudioOutput.d.ts +1 -0
  99. package/dist/api/resources/empathicVoice/types/BuiltInTool.d.ts +4 -0
  100. package/dist/api/resources/empathicVoice/types/BuiltInTool.js +5 -0
  101. package/dist/api/resources/empathicVoice/types/BuiltinToolConfig.d.ts +8 -0
  102. package/dist/api/resources/empathicVoice/types/BuiltinToolConfig.js +5 -0
  103. package/dist/api/resources/empathicVoice/types/Context.d.ts +10 -0
  104. package/dist/api/resources/empathicVoice/types/Context.js +5 -0
  105. package/dist/api/resources/empathicVoice/types/ContextType.d.ts +9 -0
  106. package/dist/api/resources/empathicVoice/types/ContextType.js +11 -0
  107. package/dist/api/resources/empathicVoice/types/PauseAssistantMessage.d.ts +11 -0
  108. package/dist/api/resources/empathicVoice/types/PauseAssistantMessage.js +5 -0
  109. package/dist/api/resources/empathicVoice/types/PostedLanguageModelModelProvider.d.ts +2 -2
  110. package/dist/api/resources/empathicVoice/types/PostedLanguageModelModelProvider.js +1 -1
  111. package/dist/api/resources/empathicVoice/types/PostedVoice.d.ts +4 -3
  112. package/dist/api/resources/empathicVoice/types/PostedVoiceName.d.ts +11 -0
  113. package/dist/api/resources/empathicVoice/types/PostedVoiceName.js +10 -0
  114. package/dist/api/resources/empathicVoice/types/ResumeAssistantMessage.d.ts +11 -0
  115. package/dist/api/resources/empathicVoice/types/ResumeAssistantMessage.js +5 -0
  116. package/dist/api/resources/empathicVoice/types/ReturnChat.d.ts +2 -0
  117. package/dist/api/resources/empathicVoice/types/{ReturnChatWithPagedEvents.d.ts → ReturnChatPagedEvents.d.ts} +1 -1
  118. package/dist/api/resources/empathicVoice/types/ReturnChatPagedEvents.js +5 -0
  119. package/dist/api/resources/empathicVoice/types/ReturnConfig.d.ts +1 -0
  120. package/dist/api/resources/empathicVoice/types/SessionSettings.d.ts +4 -2
  121. package/dist/api/resources/empathicVoice/types/Tool.d.ts +6 -6
  122. package/dist/api/resources/empathicVoice/types/ToolCallMessage.d.ts +5 -4
  123. package/dist/api/resources/empathicVoice/types/ToolErrorMessage.d.ts +7 -6
  124. package/dist/api/resources/empathicVoice/types/ToolResponseMessage.d.ts +7 -3
  125. package/dist/api/resources/empathicVoice/types/UserInput.d.ts +1 -0
  126. package/dist/api/resources/empathicVoice/types/UserInterruption.d.ts +2 -0
  127. package/dist/api/resources/empathicVoice/types/WebSocketError.d.ts +1 -0
  128. package/dist/api/resources/empathicVoice/types/index.d.ts +14 -7
  129. package/dist/api/resources/empathicVoice/types/index.js +14 -7
  130. package/dist/api/resources/expressionMeasurement/client/Client.d.ts +1 -0
  131. package/dist/api/resources/expressionMeasurement/resources/batch/client/Client.d.ts +1 -0
  132. package/dist/api/resources/expressionMeasurement/resources/batch/client/Client.js +17 -12
  133. package/dist/api/resources/index.d.ts +1 -1
  134. package/dist/api/resources/index.js +2 -2
  135. package/dist/core/fetcher/Fetcher.d.ts +1 -0
  136. package/dist/core/fetcher/Fetcher.js +106 -20
  137. package/dist/core/form-data-utils/FormDataWrapper.d.ts +24 -0
  138. package/dist/core/form-data-utils/FormDataWrapper.js +105 -0
  139. package/dist/core/form-data-utils/index.d.ts +1 -0
  140. package/dist/core/form-data-utils/index.js +17 -0
  141. package/dist/core/index.d.ts +1 -0
  142. package/dist/core/index.js +1 -0
  143. package/dist/serialization/resources/empathicVoice/resources/chat/types/PublishEvent.d.ts +3 -1
  144. package/dist/serialization/resources/empathicVoice/resources/chat/types/PublishEvent.js +4 -0
  145. package/dist/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +2 -0
  146. package/dist/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfig.js +2 -0
  147. package/dist/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +2 -0
  148. package/dist/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.js +2 -0
  149. package/dist/serialization/resources/empathicVoice/types/AssistantEnd.d.ts +1 -0
  150. package/dist/serialization/resources/empathicVoice/types/AssistantEnd.js +1 -0
  151. package/dist/serialization/resources/empathicVoice/types/BuiltInTool.d.ts +10 -0
  152. package/dist/serialization/resources/empathicVoice/types/BuiltInTool.js +31 -0
  153. package/dist/serialization/resources/empathicVoice/types/BuiltinToolConfig.d.ts +14 -0
  154. package/dist/serialization/resources/empathicVoice/types/BuiltinToolConfig.js +35 -0
  155. package/dist/serialization/resources/empathicVoice/types/Context.d.ts +14 -0
  156. package/dist/serialization/resources/empathicVoice/types/Context.js +35 -0
  157. package/dist/serialization/resources/empathicVoice/types/ContextType.d.ts +10 -0
  158. package/dist/serialization/resources/empathicVoice/types/ContextType.js +31 -0
  159. package/dist/serialization/resources/empathicVoice/types/PauseAssistantMessage.d.ts +13 -0
  160. package/dist/serialization/resources/empathicVoice/types/PauseAssistantMessage.js +34 -0
  161. package/dist/serialization/resources/empathicVoice/types/PostedLanguageModelModelProvider.d.ts +1 -1
  162. package/dist/serialization/resources/empathicVoice/types/PostedLanguageModelModelProvider.js +1 -1
  163. package/dist/serialization/resources/empathicVoice/types/PostedVoice.d.ts +3 -2
  164. package/dist/serialization/resources/empathicVoice/types/PostedVoice.js +3 -2
  165. package/dist/serialization/resources/empathicVoice/types/PostedVoiceName.d.ts +10 -0
  166. package/dist/serialization/resources/empathicVoice/types/PostedVoiceName.js +31 -0
  167. package/dist/serialization/resources/empathicVoice/types/ResumeAssistantMessage.d.ts +13 -0
  168. package/dist/serialization/resources/empathicVoice/types/ResumeAssistantMessage.js +34 -0
  169. package/dist/serialization/resources/empathicVoice/types/ReturnChat.d.ts +1 -0
  170. package/dist/serialization/resources/empathicVoice/types/ReturnChat.js +1 -0
  171. package/dist/serialization/resources/empathicVoice/types/{ReturnChatWithPagedEvents.d.ts → ReturnChatPagedEvents.d.ts} +2 -2
  172. package/dist/serialization/resources/empathicVoice/types/{ReturnChatWithPagedEvents.js → ReturnChatPagedEvents.js} +2 -2
  173. package/dist/serialization/resources/empathicVoice/types/ReturnConfig.d.ts +2 -0
  174. package/dist/serialization/resources/empathicVoice/types/ReturnConfig.js +2 -0
  175. package/dist/serialization/resources/empathicVoice/types/SessionSettings.d.ts +4 -2
  176. package/dist/serialization/resources/empathicVoice/types/SessionSettings.js +4 -2
  177. package/dist/serialization/resources/empathicVoice/types/Tool.d.ts +3 -3
  178. package/dist/serialization/resources/empathicVoice/types/Tool.js +3 -3
  179. package/dist/serialization/resources/empathicVoice/types/ToolCallMessage.d.ts +3 -3
  180. package/dist/serialization/resources/empathicVoice/types/ToolCallMessage.js +3 -3
  181. package/dist/serialization/resources/empathicVoice/types/ToolErrorMessage.d.ts +6 -4
  182. package/dist/serialization/resources/empathicVoice/types/ToolErrorMessage.js +6 -4
  183. package/dist/serialization/resources/empathicVoice/types/ToolResponseMessage.d.ts +5 -2
  184. package/dist/serialization/resources/empathicVoice/types/ToolResponseMessage.js +5 -2
  185. package/dist/serialization/resources/empathicVoice/types/index.d.ts +14 -7
  186. package/dist/serialization/resources/empathicVoice/types/index.js +14 -7
  187. package/dist/serialization/resources/index.d.ts +1 -1
  188. package/dist/serialization/resources/index.js +2 -2
  189. package/package.json +3 -1
  190. package/serialization/resources/empathicVoice/resources/chat/types/PublishEvent.d.ts +3 -1
  191. package/serialization/resources/empathicVoice/resources/chat/types/PublishEvent.js +4 -0
  192. package/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +2 -0
  193. package/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfig.js +2 -0
  194. package/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +2 -0
  195. package/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.js +2 -0
  196. package/serialization/resources/empathicVoice/types/AssistantEnd.d.ts +1 -0
  197. package/serialization/resources/empathicVoice/types/AssistantEnd.js +1 -0
  198. package/serialization/resources/empathicVoice/types/BuiltInTool.d.ts +10 -0
  199. package/serialization/resources/empathicVoice/types/BuiltInTool.js +31 -0
  200. package/serialization/resources/empathicVoice/types/BuiltinToolConfig.d.ts +14 -0
  201. package/serialization/resources/empathicVoice/types/BuiltinToolConfig.js +35 -0
  202. package/serialization/resources/empathicVoice/types/Context.d.ts +14 -0
  203. package/serialization/resources/empathicVoice/types/Context.js +35 -0
  204. package/serialization/resources/empathicVoice/types/ContextType.d.ts +10 -0
  205. package/serialization/resources/empathicVoice/types/ContextType.js +31 -0
  206. package/serialization/resources/empathicVoice/types/PauseAssistantMessage.d.ts +13 -0
  207. package/serialization/resources/empathicVoice/types/PauseAssistantMessage.js +34 -0
  208. package/serialization/resources/empathicVoice/types/PostedLanguageModelModelProvider.d.ts +1 -1
  209. package/serialization/resources/empathicVoice/types/PostedLanguageModelModelProvider.js +1 -1
  210. package/serialization/resources/empathicVoice/types/PostedVoice.d.ts +3 -2
  211. package/serialization/resources/empathicVoice/types/PostedVoice.js +3 -2
  212. package/serialization/resources/empathicVoice/types/PostedVoiceName.d.ts +10 -0
  213. package/serialization/resources/empathicVoice/types/PostedVoiceName.js +31 -0
  214. package/serialization/resources/empathicVoice/types/ResumeAssistantMessage.d.ts +13 -0
  215. package/serialization/resources/empathicVoice/types/ResumeAssistantMessage.js +34 -0
  216. package/serialization/resources/empathicVoice/types/ReturnChat.d.ts +1 -0
  217. package/serialization/resources/empathicVoice/types/ReturnChat.js +1 -0
  218. package/serialization/resources/empathicVoice/types/{ReturnChatWithPagedEvents.d.ts → ReturnChatPagedEvents.d.ts} +2 -2
  219. package/serialization/resources/empathicVoice/types/{ReturnChatWithPagedEvents.js → ReturnChatPagedEvents.js} +2 -2
  220. package/serialization/resources/empathicVoice/types/ReturnConfig.d.ts +2 -0
  221. package/serialization/resources/empathicVoice/types/ReturnConfig.js +2 -0
  222. package/serialization/resources/empathicVoice/types/SessionSettings.d.ts +4 -2
  223. package/serialization/resources/empathicVoice/types/SessionSettings.js +4 -2
  224. package/serialization/resources/empathicVoice/types/Tool.d.ts +3 -3
  225. package/serialization/resources/empathicVoice/types/Tool.js +3 -3
  226. package/serialization/resources/empathicVoice/types/ToolCallMessage.d.ts +3 -3
  227. package/serialization/resources/empathicVoice/types/ToolCallMessage.js +3 -3
  228. package/serialization/resources/empathicVoice/types/ToolErrorMessage.d.ts +6 -4
  229. package/serialization/resources/empathicVoice/types/ToolErrorMessage.js +6 -4
  230. package/serialization/resources/empathicVoice/types/ToolResponseMessage.d.ts +5 -2
  231. package/serialization/resources/empathicVoice/types/ToolResponseMessage.js +5 -2
  232. package/serialization/resources/empathicVoice/types/index.d.ts +14 -7
  233. package/serialization/resources/empathicVoice/types/index.js +14 -7
  234. package/serialization/resources/index.d.ts +1 -1
  235. package/serialization/resources/index.js +2 -2
  236. /package/api/resources/empathicVoice/types/{ReturnChatWithPagedEvents.js → BuiltInTool.js} +0 -0
  237. /package/{dist/api/resources/empathicVoice/types/ReturnChatWithPagedEvents.js → api/resources/empathicVoice/types/BuiltinToolConfig.js} +0 -0
package/Client.d.ts CHANGED
@@ -3,8 +3,8 @@
3
3
  */
4
4
  import * as environments from "./environments";
5
5
  import * as core from "./core";
6
- import { CustomModels } from "./api/resources/customModels/client/Client";
7
6
  import { EmpathicVoice } from "./api/resources/empathicVoice/client/Client";
7
+ import { CustomModels } from "./api/resources/customModels/client/Client";
8
8
  import { ExpressionMeasurement } from "./api/resources/expressionMeasurement/client/Client";
9
9
  export declare namespace HumeClient {
10
10
  interface Options {
@@ -15,15 +15,16 @@ export declare namespace HumeClient {
15
15
  interface RequestOptions {
16
16
  timeoutInSeconds?: number;
17
17
  maxRetries?: number;
18
+ abortSignal?: AbortSignal;
18
19
  }
19
20
  }
20
21
  export declare class HumeClient {
21
22
  protected readonly _options: HumeClient.Options;
22
23
  constructor(_options?: HumeClient.Options);
23
- protected _customModels: CustomModels | undefined;
24
- get customModels(): CustomModels;
25
24
  protected _empathicVoice: EmpathicVoice | undefined;
26
25
  get empathicVoice(): EmpathicVoice;
26
+ protected _customModels: CustomModels | undefined;
27
+ get customModels(): CustomModels;
27
28
  protected _expressionMeasurement: ExpressionMeasurement | undefined;
28
29
  get expressionMeasurement(): ExpressionMeasurement;
29
30
  }
package/Client.js CHANGED
@@ -4,20 +4,20 @@
4
4
  */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.HumeClient = void 0;
7
- const Client_1 = require("./api/resources/customModels/client/Client");
8
- const Client_2 = require("./api/resources/empathicVoice/client/Client");
7
+ const Client_1 = require("./api/resources/empathicVoice/client/Client");
8
+ const Client_2 = require("./api/resources/customModels/client/Client");
9
9
  const Client_3 = require("./api/resources/expressionMeasurement/client/Client");
10
10
  class HumeClient {
11
11
  constructor(_options = {}) {
12
12
  this._options = _options;
13
13
  }
14
- get customModels() {
14
+ get empathicVoice() {
15
15
  var _a;
16
- return ((_a = this._customModels) !== null && _a !== void 0 ? _a : (this._customModels = new Client_1.CustomModels(this._options)));
16
+ return ((_a = this._empathicVoice) !== null && _a !== void 0 ? _a : (this._empathicVoice = new Client_1.EmpathicVoice(this._options)));
17
17
  }
18
- get empathicVoice() {
18
+ get customModels() {
19
19
  var _a;
20
- return ((_a = this._empathicVoice) !== null && _a !== void 0 ? _a : (this._empathicVoice = new Client_2.EmpathicVoice(this._options)));
20
+ return ((_a = this._customModels) !== null && _a !== void 0 ? _a : (this._customModels = new Client_2.CustomModels(this._options)));
21
21
  }
22
22
  get expressionMeasurement() {
23
23
  var _a;
@@ -16,6 +16,7 @@ export declare namespace CustomModels {
16
16
  interface RequestOptions {
17
17
  timeoutInSeconds?: number;
18
18
  maxRetries?: number;
19
+ abortSignal?: AbortSignal;
19
20
  }
20
21
  }
21
22
  export declare class CustomModels {
@@ -15,6 +15,7 @@ export declare namespace Datasets {
15
15
  interface RequestOptions {
16
16
  timeoutInSeconds?: number;
17
17
  maxRetries?: number;
18
+ abortSignal?: AbortSignal;
18
19
  }
19
20
  }
20
21
  export declare class Datasets {
@@ -44,7 +44,6 @@ const core = __importStar(require("../../../../../../core"));
44
44
  const url_join_1 = __importDefault(require("url-join"));
45
45
  const serializers = __importStar(require("../../../../../../serialization/index"));
46
46
  const errors = __importStar(require("../../../../../../errors/index"));
47
- const form_data_1 = __importDefault(require("form-data"));
48
47
  class Datasets {
49
48
  constructor(_options = {}) {
50
49
  this._options = _options;
@@ -76,13 +75,14 @@ class Datasets {
76
75
  _queryParams["shared_assets"] = sharedAssets.toString();
77
76
  }
78
77
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
79
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "datasets"),
78
+ url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "v0/registry/datasets"),
80
79
  method: "GET",
81
- 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())),
80
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
82
81
  contentType: "application/json",
83
82
  queryParameters: _queryParams,
84
83
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
85
84
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
85
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
86
86
  });
87
87
  if (_response.ok) {
88
88
  return yield serializers.customModels.DatasetPage.parseOrThrow(_response.body, {
@@ -130,20 +130,21 @@ class Datasets {
130
130
  createDataset(featureTypes, labelsFile, request, requestOptions) {
131
131
  var _a, _b;
132
132
  return __awaiter(this, void 0, void 0, function* () {
133
- const _request = new form_data_1.default();
134
- _request.append("name", request.name);
133
+ const _request = new core.FormDataWrapper();
134
+ yield _request.append("name", request.name);
135
135
  if (featureTypes != null) {
136
- _request.append("feature_types", featureTypes);
136
+ yield _request.append("feature_types", featureTypes);
137
137
  }
138
- _request.append("labels_file", labelsFile);
138
+ yield _request.append("labels_file", labelsFile);
139
+ const _maybeEncodedRequest = _request.getRequest();
139
140
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
140
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "datasets"),
141
+ url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "v0/registry/datasets"),
141
142
  method: "POST",
142
- 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())),
143
- contentType: "multipart/form-data; boundary=" + _request.getBoundary(),
144
- body: _request,
143
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), (yield _maybeEncodedRequest.getHeaders())),
144
+ body: yield _maybeEncodedRequest.getBody(),
145
145
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
146
146
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
147
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
147
148
  });
148
149
  if (_response.ok) {
149
150
  return yield serializers.customModels.ReturnDataset.parseOrThrow(_response.body, {
@@ -188,12 +189,13 @@ class Datasets {
188
189
  var _a, _b;
189
190
  return __awaiter(this, void 0, void 0, function* () {
190
191
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
191
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `datasets/${encodeURIComponent(id)}`),
192
+ url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/registry/datasets/${encodeURIComponent(id)}`),
192
193
  method: "GET",
193
- 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())),
194
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
194
195
  contentType: "application/json",
195
196
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
196
197
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
198
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
197
199
  });
198
200
  if (_response.ok) {
199
201
  return yield serializers.customModels.ReturnDataset.parseOrThrow(_response.body, {
@@ -239,19 +241,20 @@ class Datasets {
239
241
  createDatasetVersion(featureTypes, labelsFile, id, requestOptions) {
240
242
  var _a, _b;
241
243
  return __awaiter(this, void 0, void 0, function* () {
242
- const _request = new form_data_1.default();
244
+ const _request = new core.FormDataWrapper();
243
245
  if (featureTypes != null) {
244
- _request.append("feature_types", featureTypes);
246
+ yield _request.append("feature_types", featureTypes);
245
247
  }
246
- _request.append("labels_file", labelsFile);
248
+ yield _request.append("labels_file", labelsFile);
249
+ const _maybeEncodedRequest = _request.getRequest();
247
250
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
248
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `datasets/${encodeURIComponent(id)}`),
251
+ url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/registry/datasets/${encodeURIComponent(id)}`),
249
252
  method: "POST",
250
- 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())),
251
- contentType: "multipart/form-data; boundary=" + _request.getBoundary(),
252
- body: _request,
253
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), (yield _maybeEncodedRequest.getHeaders())),
254
+ body: yield _maybeEncodedRequest.getBody(),
253
255
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
254
256
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
257
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
255
258
  });
256
259
  if (_response.ok) {
257
260
  return yield serializers.customModels.datasets.createDatasetVersion.Response.parseOrThrow(_response.body, {
@@ -296,12 +299,13 @@ class Datasets {
296
299
  var _a, _b;
297
300
  return __awaiter(this, void 0, void 0, function* () {
298
301
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
299
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `datasets/${encodeURIComponent(id)}`),
302
+ url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/registry/datasets/${encodeURIComponent(id)}`),
300
303
  method: "DELETE",
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())),
304
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
302
305
  contentType: "application/json",
303
306
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
304
307
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
308
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
305
309
  });
306
310
  if (_response.ok) {
307
311
  return;
@@ -352,13 +356,14 @@ class Datasets {
352
356
  _queryParams["shared_assets"] = sharedAssets.toString();
353
357
  }
354
358
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
355
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `datasets/${encodeURIComponent(id)}/versions`),
359
+ url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/registry/datasets/${encodeURIComponent(id)}/versions`),
356
360
  method: "GET",
357
- 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())),
361
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
358
362
  contentType: "application/json",
359
363
  queryParameters: _queryParams,
360
364
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
361
365
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
366
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
362
367
  });
363
368
  if (_response.ok) {
364
369
  return yield serializers.customModels.DatasetVersionPage.parseOrThrow(_response.body, {
@@ -415,13 +420,14 @@ class Datasets {
415
420
  _queryParams["shared_assets"] = sharedAssets.toString();
416
421
  }
417
422
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
418
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `datasets/${encodeURIComponent(id)}/files`),
423
+ url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/registry/datasets/${encodeURIComponent(id)}/files`),
419
424
  method: "GET",
420
- 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())),
425
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
421
426
  contentType: "application/json",
422
427
  queryParameters: _queryParams,
423
428
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
424
429
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
430
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
425
431
  });
426
432
  if (_response.ok) {
427
433
  return yield serializers.customModels.datasets.listDatasetFiles.Response.parseOrThrow(_response.body, {
@@ -466,12 +472,13 @@ class Datasets {
466
472
  var _a, _b;
467
473
  return __awaiter(this, void 0, void 0, function* () {
468
474
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
469
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `datasets/version/${encodeURIComponent(id)}`),
475
+ url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/registry/datasets/version/${encodeURIComponent(id)}`),
470
476
  method: "GET",
471
- 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())),
477
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
472
478
  contentType: "application/json",
473
479
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
474
480
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
481
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
475
482
  });
476
483
  if (_response.ok) {
477
484
  return yield serializers.customModels.DatasetLabels.parseOrThrow(_response.body, {
@@ -528,13 +535,14 @@ class Datasets {
528
535
  _queryParams["shared_assets"] = sharedAssets.toString();
529
536
  }
530
537
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
531
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `datasets/version/${encodeURIComponent(id)}/files`),
538
+ url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/registry/datasets/version/${encodeURIComponent(id)}/files`),
532
539
  method: "GET",
533
- 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())),
540
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
534
541
  contentType: "application/json",
535
542
  queryParameters: _queryParams,
536
543
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
537
544
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
545
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
538
546
  });
539
547
  if (_response.ok) {
540
548
  return yield serializers.customModels.datasets.listDatasetVersionFiles.Response.parseOrThrow(_response.body, {
@@ -15,6 +15,7 @@ export declare namespace Files {
15
15
  interface RequestOptions {
16
16
  timeoutInSeconds?: number;
17
17
  maxRetries?: number;
18
+ abortSignal?: AbortSignal;
18
19
  }
19
20
  }
20
21
  export declare class Files {
@@ -44,7 +44,6 @@ const core = __importStar(require("../../../../../../core"));
44
44
  const url_join_1 = __importDefault(require("url-join"));
45
45
  const serializers = __importStar(require("../../../../../../serialization/index"));
46
46
  const errors = __importStar(require("../../../../../../errors/index"));
47
- const form_data_1 = __importDefault(require("form-data"));
48
47
  class Files {
49
48
  constructor(_options = {}) {
50
49
  this._options = _options;
@@ -73,13 +72,14 @@ class Files {
73
72
  _queryParams["shared_assets"] = sharedAssets.toString();
74
73
  }
75
74
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
76
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "files"),
75
+ url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "v0/registry/files"),
77
76
  method: "GET",
78
- 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())),
77
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
79
78
  contentType: "application/json",
80
79
  queryParameters: _queryParams,
81
80
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
82
81
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
82
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
83
83
  });
84
84
  if (_response.ok) {
85
85
  return yield serializers.customModels.FilePage.parseOrThrow(_response.body, {
@@ -130,15 +130,16 @@ class Files {
130
130
  var _a, _b;
131
131
  return __awaiter(this, void 0, void 0, function* () {
132
132
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
133
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "files"),
133
+ url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "v0/registry/files"),
134
134
  method: "POST",
135
- 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())),
135
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
136
136
  contentType: "application/json",
137
137
  body: yield serializers.customModels.files.createFiles.Request.jsonOrThrow(request, {
138
138
  unrecognizedObjectKeys: "strip",
139
139
  }),
140
140
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
141
141
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
142
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
142
143
  });
143
144
  if (_response.ok) {
144
145
  return yield serializers.customModels.files.createFiles.Response.parseOrThrow(_response.body, {
@@ -183,19 +184,20 @@ class Files {
183
184
  uploadFile(file, attributes, requestOptions) {
184
185
  var _a, _b;
185
186
  return __awaiter(this, void 0, void 0, function* () {
186
- const _request = new form_data_1.default();
187
- _request.append("file", file);
187
+ const _request = new core.FormDataWrapper();
188
+ yield _request.append("file", file);
188
189
  if (attributes != null) {
189
- _request.append("attributes", attributes);
190
+ yield _request.append("attributes", attributes);
190
191
  }
192
+ const _maybeEncodedRequest = _request.getRequest();
191
193
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
192
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "files/upload"),
194
+ url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "v0/registry/files/upload"),
193
195
  method: "POST",
194
- 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())),
195
- contentType: "multipart/form-data; boundary=" + _request.getBoundary(),
196
- body: _request,
196
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), (yield _maybeEncodedRequest.getHeaders())),
197
+ body: yield _maybeEncodedRequest.getBody(),
197
198
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
198
199
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
200
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
199
201
  });
200
202
  if (_response.ok) {
201
203
  return yield serializers.customModels.FileWithAttributes.parseOrThrow(_response.body, {
@@ -240,12 +242,13 @@ class Files {
240
242
  var _a, _b;
241
243
  return __awaiter(this, void 0, void 0, function* () {
242
244
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
243
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `files/${encodeURIComponent(id)}`),
245
+ url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/registry/files/${encodeURIComponent(id)}`),
244
246
  method: "GET",
245
- 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())),
247
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
246
248
  contentType: "application/json",
247
249
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
248
250
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
251
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
249
252
  });
250
253
  if (_response.ok) {
251
254
  return yield serializers.customModels.FileWithAttributes.parseOrThrow(_response.body, {
@@ -290,12 +293,13 @@ class Files {
290
293
  var _a, _b;
291
294
  return __awaiter(this, void 0, void 0, function* () {
292
295
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
293
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `files/${encodeURIComponent(id)}`),
296
+ url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/registry/files/${encodeURIComponent(id)}`),
294
297
  method: "DELETE",
295
- 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())),
298
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
296
299
  contentType: "application/json",
297
300
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
298
301
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
302
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
299
303
  });
300
304
  if (_response.ok) {
301
305
  return;
@@ -340,13 +344,14 @@ class Files {
340
344
  const _queryParams = {};
341
345
  _queryParams["name"] = name;
342
346
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
343
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `files/${encodeURIComponent(id)}`),
347
+ url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/registry/files/${encodeURIComponent(id)}`),
344
348
  method: "PATCH",
345
- 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())),
349
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
346
350
  contentType: "application/json",
347
351
  queryParameters: _queryParams,
348
352
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
349
353
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
354
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
350
355
  });
351
356
  if (_response.ok) {
352
357
  return yield serializers.customModels.FileWithAttributes.parseOrThrow(_response.body, {
@@ -391,12 +396,13 @@ class Files {
391
396
  var _a, _b;
392
397
  return __awaiter(this, void 0, void 0, function* () {
393
398
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
394
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `files/${encodeURIComponent(id)}/predictions`),
399
+ url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/registry/files/${encodeURIComponent(id)}/predictions`),
395
400
  method: "GET",
396
- 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())),
401
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
397
402
  contentType: "application/json",
398
403
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
399
404
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
405
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
400
406
  });
401
407
  if (_response.ok) {
402
408
  return;
@@ -13,6 +13,7 @@ export declare namespace Jobs {
13
13
  interface RequestOptions {
14
14
  timeoutInSeconds?: number;
15
15
  maxRetries?: number;
16
+ abortSignal?: AbortSignal;
16
17
  }
17
18
  }
18
19
  export declare class Jobs {
@@ -68,15 +68,16 @@ class Jobs {
68
68
  var _a, _b;
69
69
  return __awaiter(this, void 0, void 0, function* () {
70
70
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
71
- 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/tl/train"),
71
+ url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "v0/registry/v0/batch/jobs/tl/train"),
72
72
  method: "POST",
73
- 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())),
73
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
74
74
  contentType: "application/json",
75
75
  body: yield serializers.customModels.TrainingBaseRequest.jsonOrThrow(request, {
76
76
  unrecognizedObjectKeys: "strip",
77
77
  }),
78
78
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
79
79
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
80
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
80
81
  });
81
82
  if (_response.ok) {
82
83
  return yield serializers.customModels.JobId.parseOrThrow(_response.body, {
@@ -125,15 +126,16 @@ class Jobs {
125
126
  var _a, _b;
126
127
  return __awaiter(this, void 0, void 0, function* () {
127
128
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
128
- 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/tl/inference"),
129
+ url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "v0/registry/v0/batch/jobs/tl/inference"),
129
130
  method: "POST",
130
- 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())),
131
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
131
132
  contentType: "application/json",
132
133
  body: yield serializers.customModels.TlInferenceBaseRequest.jsonOrThrow(request, {
133
134
  unrecognizedObjectKeys: "strip",
134
135
  }),
135
136
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
136
137
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
138
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
137
139
  });
138
140
  if (_response.ok) {
139
141
  return yield serializers.customModels.JobId.parseOrThrow(_response.body, {
@@ -13,6 +13,7 @@ export declare namespace Models {
13
13
  interface RequestOptions {
14
14
  timeoutInSeconds?: number;
15
15
  maxRetries?: number;
16
+ abortSignal?: AbortSignal;
16
17
  }
17
18
  }
18
19
  export declare class Models {
@@ -75,13 +75,14 @@ class Models {
75
75
  _queryParams["shared_assets"] = sharedAssets.toString();
76
76
  }
77
77
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
78
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "models"),
78
+ url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "v0/registry/models"),
79
79
  method: "GET",
80
- 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())),
80
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
81
81
  contentType: "application/json",
82
82
  queryParameters: _queryParams,
83
83
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
84
84
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
85
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
85
86
  });
86
87
  if (_response.ok) {
87
88
  return yield serializers.customModels.ModelPage.parseOrThrow(_response.body, {
@@ -126,12 +127,13 @@ class Models {
126
127
  var _a, _b;
127
128
  return __awaiter(this, void 0, void 0, function* () {
128
129
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
129
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `models/${encodeURIComponent(id)}`),
130
+ url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/registry/models/${encodeURIComponent(id)}`),
130
131
  method: "GET",
131
- 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())),
132
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
132
133
  contentType: "application/json",
133
134
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
134
135
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
136
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
135
137
  });
136
138
  if (_response.ok) {
137
139
  return yield serializers.customModels.ExternalModel.parseOrThrow(_response.body, {
@@ -182,13 +184,14 @@ class Models {
182
184
  const _queryParams = {};
183
185
  _queryParams["name"] = name;
184
186
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
185
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `models/${encodeURIComponent(id)}`),
187
+ url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/registry/models/${encodeURIComponent(id)}`),
186
188
  method: "PATCH",
187
- 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())),
189
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
188
190
  contentType: "application/json",
189
191
  queryParameters: _queryParams,
190
192
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
191
193
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
194
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
192
195
  });
193
196
  if (_response.ok) {
194
197
  return yield serializers.customModels.ExternalModel.parseOrThrow(_response.body, {
@@ -252,13 +255,14 @@ class Models {
252
255
  _queryParams["shared_assets"] = sharedAssets.toString();
253
256
  }
254
257
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
255
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "models/version"),
258
+ url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "v0/registry/models/version"),
256
259
  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())),
260
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
258
261
  contentType: "application/json",
259
262
  queryParameters: _queryParams,
260
263
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
261
264
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
265
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
262
266
  });
263
267
  if (_response.ok) {
264
268
  return yield serializers.customModels.models.listModelVersions.Response.parseOrThrow(_response.body, {
@@ -309,13 +313,14 @@ class Models {
309
313
  _queryParams["shared_assets"] = sharedAssets.toString();
310
314
  }
311
315
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
312
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `models/version/${encodeURIComponent(id)}`),
316
+ url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/registry/models/version/${encodeURIComponent(id)}`),
313
317
  method: "GET",
314
- 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())),
318
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
315
319
  contentType: "application/json",
316
320
  queryParameters: _queryParams,
317
321
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
318
322
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
323
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
319
324
  });
320
325
  if (_response.ok) {
321
326
  return yield serializers.customModels.ExternalModelVersion.parseOrThrow(_response.body, {
@@ -361,15 +366,16 @@ class Models {
361
366
  var _a, _b;
362
367
  return __awaiter(this, void 0, void 0, function* () {
363
368
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
364
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `models/version/${encodeURIComponent(id)}`),
369
+ url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/registry/models/version/${encodeURIComponent(id)}`),
365
370
  method: "PATCH",
366
- 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())),
371
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
367
372
  contentType: "application/json",
368
373
  body: yield serializers.customModels.models.updateModelDescription.Request.jsonOrThrow(request, {
369
374
  unrecognizedObjectKeys: "strip",
370
375
  }),
371
376
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
372
377
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
378
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
373
379
  });
374
380
  if (_response.ok) {
375
381
  return yield serializers.customModels.ExternalModelVersion.parseOrThrow(_response.body, {
@@ -16,6 +16,7 @@ export declare namespace EmpathicVoice {
16
16
  interface RequestOptions {
17
17
  timeoutInSeconds?: number;
18
18
  maxRetries?: number;
19
+ abortSignal?: AbortSignal;
19
20
  }
20
21
  }
21
22
  export declare class EmpathicVoice {
@@ -2,4 +2,4 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Hume from "../../../../../index";
5
- export declare type PublishEvent = Hume.empathicVoice.AudioInput | Hume.empathicVoice.SessionSettings | Hume.empathicVoice.UserInput | Hume.empathicVoice.AssistantInput | Hume.empathicVoice.ToolResponseMessage | Hume.empathicVoice.ToolErrorMessage;
5
+ export declare type PublishEvent = Hume.empathicVoice.AudioInput | Hume.empathicVoice.SessionSettings | Hume.empathicVoice.UserInput | Hume.empathicVoice.AssistantInput | Hume.empathicVoice.ToolResponseMessage | Hume.empathicVoice.ToolErrorMessage | Hume.empathicVoice.PauseAssistantMessage | Hume.empathicVoice.ResumeAssistantMessage;