hume 0.8.4 → 0.8.6

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 (439) hide show
  1. package/.mock/definition/empathic-voice/__package__.yml +855 -216
  2. package/.mock/definition/empathic-voice/chatGroups.yml +383 -35
  3. package/.mock/definition/empathic-voice/chats.yml +393 -44
  4. package/.mock/definition/empathic-voice/configs.yml +437 -228
  5. package/.mock/definition/empathic-voice/prompts.yml +258 -83
  6. package/.mock/definition/empathic-voice/tools.yml +119 -23
  7. package/.mock/definition/expression-measurement/__package__.yml +203 -59
  8. package/.mock/definition/expression-measurement/batch.yml +64 -35
  9. package/.mock/fern.config.json +1 -1
  10. package/api/resources/empathicVoice/resources/chatGroups/client/Client.d.ts +12 -3
  11. package/api/resources/empathicVoice/resources/chatGroups/client/Client.js +14 -5
  12. package/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupEventsRequest.d.ts +12 -4
  13. package/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupsRequest.d.ts +16 -5
  14. package/api/resources/empathicVoice/resources/chats/client/Client.d.ts +13 -5
  15. package/api/resources/empathicVoice/resources/chats/client/Client.js +129 -97
  16. package/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatEventsRequest.d.ts +12 -4
  17. package/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatsRequest.d.ts +12 -4
  18. package/api/resources/empathicVoice/resources/configs/client/Client.d.ts +96 -20
  19. package/api/resources/empathicVoice/resources/configs/client/Client.js +105 -29
  20. package/api/resources/empathicVoice/resources/configs/client/requests/ConfigsListConfigVersionsRequest.d.ts +7 -3
  21. package/api/resources/empathicVoice/resources/configs/client/requests/ConfigsListConfigsRequest.d.ts +11 -4
  22. package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +42 -4
  23. package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigName.d.ts +1 -1
  24. package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +47 -4
  25. package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersionDescription.d.ts +4 -2
  26. package/api/resources/empathicVoice/resources/prompts/client/Client.d.ts +41 -23
  27. package/api/resources/empathicVoice/resources/prompts/client/Client.js +111 -80
  28. package/api/resources/empathicVoice/resources/prompts/client/requests/PostedPrompt.d.ts +10 -4
  29. package/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptName.d.ts +1 -1
  30. package/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.d.ts +10 -3
  31. package/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersionDescription.d.ts +4 -2
  32. package/api/resources/empathicVoice/resources/prompts/client/requests/PromptsListPromptVersionsRequest.d.ts +7 -3
  33. package/api/resources/empathicVoice/resources/prompts/client/requests/PromptsListPromptsRequest.d.ts +11 -4
  34. package/api/resources/empathicVoice/resources/tools/client/Client.d.ts +23 -11
  35. package/api/resources/empathicVoice/resources/tools/client/Client.js +93 -68
  36. package/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedTool.d.ts +8 -4
  37. package/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersion.d.ts +8 -4
  38. package/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersionDescription.d.ts +1 -1
  39. package/api/resources/empathicVoice/resources/tools/client/requests/ToolsListToolVersionsRequest.d.ts +7 -3
  40. package/api/resources/empathicVoice/resources/tools/client/requests/ToolsListToolsRequest.d.ts +7 -3
  41. package/api/resources/empathicVoice/types/AudioInput.d.ts +4 -2
  42. package/api/resources/empathicVoice/types/Inference.d.ts +1 -1
  43. package/api/resources/empathicVoice/types/JsonMessage.d.ts +1 -1
  44. package/api/resources/empathicVoice/types/PostedBuiltinTool.d.ts +1 -1
  45. package/api/resources/empathicVoice/types/PostedEllmModel.d.ts +5 -1
  46. package/api/resources/empathicVoice/types/PostedEventMessageSpec.d.ts +6 -2
  47. package/api/resources/empathicVoice/types/PostedEventMessageSpecs.d.ts +16 -2
  48. package/api/resources/empathicVoice/types/PostedLanguageModel.d.ts +7 -3
  49. package/api/resources/empathicVoice/types/PostedLanguageModelModelProvider.d.ts +1 -1
  50. package/api/resources/empathicVoice/types/PostedPromptSpec.d.ts +8 -2
  51. package/api/resources/empathicVoice/types/PostedTimeoutSpecs.d.ts +3 -1
  52. package/api/resources/empathicVoice/types/PostedTimeoutSpecsInactivity.d.ts +1 -1
  53. package/api/resources/empathicVoice/types/PostedTimeoutSpecsMaxDuration.d.ts +1 -1
  54. package/api/resources/empathicVoice/types/PostedUserDefinedToolSpec.d.ts +7 -1
  55. package/api/resources/empathicVoice/types/PostedVoice.d.ts +1 -1
  56. package/api/resources/empathicVoice/types/ProsodyInference.d.ts +3 -1
  57. package/api/resources/empathicVoice/types/ReturnBuiltinTool.d.ts +4 -3
  58. package/api/resources/empathicVoice/types/ReturnBuiltinToolToolType.d.ts +11 -0
  59. package/api/resources/empathicVoice/types/ReturnBuiltinToolToolType.js +10 -0
  60. package/api/resources/empathicVoice/types/ReturnChat.d.ts +20 -8
  61. package/api/resources/empathicVoice/types/ReturnChatEvent.d.ts +38 -9
  62. package/api/resources/empathicVoice/types/ReturnChatEventRole.d.ts +21 -0
  63. package/api/resources/empathicVoice/types/ReturnChatEventRole.js +12 -0
  64. package/api/resources/empathicVoice/types/ReturnChatEventType.d.ts +27 -0
  65. package/api/resources/empathicVoice/types/ReturnChatEventType.js +14 -0
  66. package/api/resources/empathicVoice/types/ReturnChatGroup.d.ts +5 -5
  67. package/api/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.ts +19 -7
  68. package/api/resources/empathicVoice/types/ReturnChatGroupPagedEventsPaginationDirection.d.ts +13 -0
  69. package/api/resources/empathicVoice/types/ReturnChatGroupPagedEventsPaginationDirection.js +10 -0
  70. package/api/resources/empathicVoice/types/ReturnChatPagedEvents.d.ts +38 -14
  71. package/api/resources/empathicVoice/types/ReturnChatPagedEventsPaginationDirection.d.ts +13 -0
  72. package/api/resources/empathicVoice/types/ReturnChatPagedEventsPaginationDirection.js +10 -0
  73. package/api/resources/empathicVoice/types/ReturnChatPagedEventsStatus.d.ts +27 -0
  74. package/api/resources/empathicVoice/types/ReturnChatPagedEventsStatus.js +14 -0
  75. package/api/resources/empathicVoice/types/ReturnChatStatus.d.ts +27 -0
  76. package/api/resources/empathicVoice/types/ReturnChatStatus.js +14 -0
  77. package/api/resources/empathicVoice/types/ReturnConfig.d.ts +23 -6
  78. package/api/resources/empathicVoice/types/ReturnConfigSpec.d.ts +8 -2
  79. package/api/resources/empathicVoice/types/ReturnEllmModel.d.ts +5 -1
  80. package/api/resources/empathicVoice/types/ReturnEventMessageSpec.d.ts +6 -2
  81. package/api/resources/empathicVoice/types/ReturnEventMessageSpecs.d.ts +16 -2
  82. package/api/resources/empathicVoice/types/ReturnLanguageModel.d.ts +9 -4
  83. package/api/resources/empathicVoice/types/ReturnLanguageModelModelProvider.d.ts +15 -0
  84. package/api/resources/empathicVoice/types/ReturnLanguageModelModelProvider.js +14 -0
  85. package/api/resources/empathicVoice/types/ReturnPagedChatGroups.d.ts +18 -6
  86. package/api/resources/empathicVoice/types/ReturnPagedChatGroupsPaginationDirection.d.ts +13 -0
  87. package/api/resources/empathicVoice/types/ReturnPagedChatGroupsPaginationDirection.js +10 -0
  88. package/api/resources/empathicVoice/types/ReturnPagedChats.d.ts +18 -6
  89. package/api/resources/empathicVoice/types/ReturnPagedChatsPaginationDirection.d.ts +13 -0
  90. package/api/resources/empathicVoice/types/ReturnPagedChatsPaginationDirection.js +10 -0
  91. package/api/resources/empathicVoice/types/ReturnPagedConfigs.d.ts +12 -4
  92. package/api/resources/empathicVoice/types/ReturnPagedPrompts.d.ts +12 -4
  93. package/api/resources/empathicVoice/types/ReturnPagedUserDefinedTools.d.ts +12 -4
  94. package/api/resources/empathicVoice/types/ReturnPrompt.d.ts +21 -8
  95. package/api/resources/empathicVoice/types/ReturnPromptVersionType.d.ts +11 -0
  96. package/api/resources/empathicVoice/types/ReturnPromptVersionType.js +10 -0
  97. package/api/resources/empathicVoice/types/ReturnTimeoutSpec.d.ts +6 -2
  98. package/api/resources/empathicVoice/types/ReturnTimeoutSpecs.d.ts +13 -1
  99. package/api/resources/empathicVoice/types/ReturnUserDefinedTool.d.ts +22 -11
  100. package/api/resources/empathicVoice/types/ReturnUserDefinedToolToolType.d.ts +11 -0
  101. package/api/resources/empathicVoice/types/ReturnUserDefinedToolToolType.js +10 -0
  102. package/api/resources/empathicVoice/types/ReturnUserDefinedToolVersionType.d.ts +11 -0
  103. package/api/resources/empathicVoice/types/ReturnUserDefinedToolVersionType.js +10 -0
  104. package/api/resources/empathicVoice/types/ReturnVoice.d.ts +4 -3
  105. package/api/resources/empathicVoice/types/ReturnVoiceName.d.ts +12 -0
  106. package/api/resources/empathicVoice/types/ReturnVoiceName.js +11 -0
  107. package/api/resources/empathicVoice/types/index.d.ts +14 -0
  108. package/api/resources/empathicVoice/types/index.js +14 -0
  109. package/api/resources/expressionMeasurement/resources/batch/client/Client.d.ts +4 -4
  110. package/api/resources/expressionMeasurement/resources/batch/client/Client.js +11 -19
  111. package/api/resources/expressionMeasurement/resources/batch/client/requests/BatchListJobsRequest.d.ts +25 -9
  112. package/api/resources/expressionMeasurement/resources/batch/client/requests/BatchStartInferenceJobFromLocalFileRequest.d.ts +1 -0
  113. package/api/resources/expressionMeasurement/types/{UnionJobJobInference.d.ts → CustomModelsInferenceJob.d.ts} +2 -1
  114. package/api/resources/expressionMeasurement/types/{UnionJobJobEmbeddingGeneration.d.ts → CustomModelsTrainingJob.d.ts} +2 -1
  115. package/api/resources/expressionMeasurement/types/EmbeddingGenerationJob.d.ts +7 -0
  116. package/api/resources/expressionMeasurement/types/Face.d.ts +5 -0
  117. package/api/resources/expressionMeasurement/types/File_.d.ts +3 -0
  118. package/api/resources/expressionMeasurement/types/Granularity.d.ts +9 -1
  119. package/api/resources/expressionMeasurement/types/InferenceBaseRequest.d.ts +6 -1
  120. package/api/resources/expressionMeasurement/types/InferenceJob.d.ts +12 -0
  121. package/api/resources/expressionMeasurement/types/JobInference.d.ts +3 -0
  122. package/api/resources/expressionMeasurement/types/Language.d.ts +5 -0
  123. package/api/resources/expressionMeasurement/types/Models.d.ts +3 -0
  124. package/api/resources/expressionMeasurement/types/Ner.d.ts +5 -0
  125. package/api/resources/expressionMeasurement/types/Prosody.d.ts +5 -0
  126. package/api/resources/expressionMeasurement/types/Transcription.d.ts +40 -0
  127. package/api/resources/expressionMeasurement/types/UnionJob.d.ts +1 -15
  128. package/api/resources/expressionMeasurement/types/UnionPredictResult.d.ts +1 -1
  129. package/api/resources/expressionMeasurement/types/Window.d.ts +5 -0
  130. package/api/resources/expressionMeasurement/types/index.d.ts +4 -4
  131. package/api/resources/expressionMeasurement/types/index.js +4 -4
  132. package/api/resources/index.d.ts +1 -1
  133. package/api/resources/index.js +2 -2
  134. package/core/index.d.ts +1 -0
  135. package/core/index.js +1 -0
  136. package/core/pagination/Page.d.ts +29 -0
  137. package/core/pagination/Page.js +94 -0
  138. package/core/pagination/Pageable.d.ts +12 -0
  139. package/core/pagination/Pageable.js +10 -0
  140. package/core/pagination/index.d.ts +2 -0
  141. package/core/pagination/index.js +7 -0
  142. package/dist/api/resources/empathicVoice/resources/chatGroups/client/Client.d.ts +12 -3
  143. package/dist/api/resources/empathicVoice/resources/chatGroups/client/Client.js +14 -5
  144. package/dist/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupEventsRequest.d.ts +12 -4
  145. package/dist/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupsRequest.d.ts +16 -5
  146. package/dist/api/resources/empathicVoice/resources/chats/client/Client.d.ts +13 -5
  147. package/dist/api/resources/empathicVoice/resources/chats/client/Client.js +129 -97
  148. package/dist/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatEventsRequest.d.ts +12 -4
  149. package/dist/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatsRequest.d.ts +12 -4
  150. package/dist/api/resources/empathicVoice/resources/configs/client/Client.d.ts +96 -20
  151. package/dist/api/resources/empathicVoice/resources/configs/client/Client.js +105 -29
  152. package/dist/api/resources/empathicVoice/resources/configs/client/requests/ConfigsListConfigVersionsRequest.d.ts +7 -3
  153. package/dist/api/resources/empathicVoice/resources/configs/client/requests/ConfigsListConfigsRequest.d.ts +11 -4
  154. package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +42 -4
  155. package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigName.d.ts +1 -1
  156. package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +47 -4
  157. package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersionDescription.d.ts +4 -2
  158. package/dist/api/resources/empathicVoice/resources/prompts/client/Client.d.ts +41 -23
  159. package/dist/api/resources/empathicVoice/resources/prompts/client/Client.js +111 -80
  160. package/dist/api/resources/empathicVoice/resources/prompts/client/requests/PostedPrompt.d.ts +10 -4
  161. package/dist/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptName.d.ts +1 -1
  162. package/dist/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.d.ts +10 -3
  163. package/dist/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersionDescription.d.ts +4 -2
  164. package/dist/api/resources/empathicVoice/resources/prompts/client/requests/PromptsListPromptVersionsRequest.d.ts +7 -3
  165. package/dist/api/resources/empathicVoice/resources/prompts/client/requests/PromptsListPromptsRequest.d.ts +11 -4
  166. package/dist/api/resources/empathicVoice/resources/tools/client/Client.d.ts +23 -11
  167. package/dist/api/resources/empathicVoice/resources/tools/client/Client.js +93 -68
  168. package/dist/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedTool.d.ts +8 -4
  169. package/dist/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersion.d.ts +8 -4
  170. package/dist/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersionDescription.d.ts +1 -1
  171. package/dist/api/resources/empathicVoice/resources/tools/client/requests/ToolsListToolVersionsRequest.d.ts +7 -3
  172. package/dist/api/resources/empathicVoice/resources/tools/client/requests/ToolsListToolsRequest.d.ts +7 -3
  173. package/dist/api/resources/empathicVoice/types/AudioInput.d.ts +4 -2
  174. package/dist/api/resources/empathicVoice/types/Inference.d.ts +1 -1
  175. package/dist/api/resources/empathicVoice/types/JsonMessage.d.ts +1 -1
  176. package/dist/api/resources/empathicVoice/types/PostedBuiltinTool.d.ts +1 -1
  177. package/dist/api/resources/empathicVoice/types/PostedEllmModel.d.ts +5 -1
  178. package/dist/api/resources/empathicVoice/types/PostedEventMessageSpec.d.ts +6 -2
  179. package/dist/api/resources/empathicVoice/types/PostedEventMessageSpecs.d.ts +16 -2
  180. package/dist/api/resources/empathicVoice/types/PostedLanguageModel.d.ts +7 -3
  181. package/dist/api/resources/empathicVoice/types/PostedLanguageModelModelProvider.d.ts +1 -1
  182. package/dist/api/resources/empathicVoice/types/PostedPromptSpec.d.ts +8 -2
  183. package/dist/api/resources/empathicVoice/types/PostedTimeoutSpecs.d.ts +3 -1
  184. package/dist/api/resources/empathicVoice/types/PostedTimeoutSpecsInactivity.d.ts +1 -1
  185. package/dist/api/resources/empathicVoice/types/PostedTimeoutSpecsMaxDuration.d.ts +1 -1
  186. package/dist/api/resources/empathicVoice/types/PostedUserDefinedToolSpec.d.ts +7 -1
  187. package/dist/api/resources/empathicVoice/types/PostedVoice.d.ts +1 -1
  188. package/dist/api/resources/empathicVoice/types/ProsodyInference.d.ts +3 -1
  189. package/dist/api/resources/empathicVoice/types/ReturnBuiltinTool.d.ts +4 -3
  190. package/dist/api/resources/empathicVoice/types/ReturnBuiltinToolToolType.d.ts +11 -0
  191. package/dist/api/resources/empathicVoice/types/ReturnBuiltinToolToolType.js +10 -0
  192. package/dist/api/resources/empathicVoice/types/ReturnChat.d.ts +20 -8
  193. package/dist/api/resources/empathicVoice/types/ReturnChatEvent.d.ts +38 -9
  194. package/dist/api/resources/empathicVoice/types/ReturnChatEventRole.d.ts +21 -0
  195. package/dist/api/resources/empathicVoice/types/ReturnChatEventRole.js +12 -0
  196. package/dist/api/resources/empathicVoice/types/ReturnChatEventType.d.ts +27 -0
  197. package/dist/api/resources/empathicVoice/types/ReturnChatEventType.js +14 -0
  198. package/dist/api/resources/empathicVoice/types/ReturnChatGroup.d.ts +5 -5
  199. package/dist/api/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.ts +19 -7
  200. package/dist/api/resources/empathicVoice/types/ReturnChatGroupPagedEventsPaginationDirection.d.ts +13 -0
  201. package/dist/api/resources/empathicVoice/types/ReturnChatGroupPagedEventsPaginationDirection.js +10 -0
  202. package/dist/api/resources/empathicVoice/types/ReturnChatPagedEvents.d.ts +38 -14
  203. package/dist/api/resources/empathicVoice/types/ReturnChatPagedEventsPaginationDirection.d.ts +13 -0
  204. package/dist/api/resources/empathicVoice/types/ReturnChatPagedEventsPaginationDirection.js +10 -0
  205. package/dist/api/resources/empathicVoice/types/ReturnChatPagedEventsStatus.d.ts +27 -0
  206. package/dist/api/resources/empathicVoice/types/ReturnChatPagedEventsStatus.js +14 -0
  207. package/dist/api/resources/empathicVoice/types/ReturnChatStatus.d.ts +27 -0
  208. package/dist/api/resources/empathicVoice/types/ReturnChatStatus.js +14 -0
  209. package/dist/api/resources/empathicVoice/types/ReturnConfig.d.ts +23 -6
  210. package/dist/api/resources/empathicVoice/types/ReturnConfigSpec.d.ts +8 -2
  211. package/dist/api/resources/empathicVoice/types/ReturnEllmModel.d.ts +5 -1
  212. package/dist/api/resources/empathicVoice/types/ReturnEventMessageSpec.d.ts +6 -2
  213. package/dist/api/resources/empathicVoice/types/ReturnEventMessageSpecs.d.ts +16 -2
  214. package/dist/api/resources/empathicVoice/types/ReturnLanguageModel.d.ts +9 -4
  215. package/dist/api/resources/empathicVoice/types/ReturnLanguageModelModelProvider.d.ts +15 -0
  216. package/dist/api/resources/empathicVoice/types/ReturnLanguageModelModelProvider.js +14 -0
  217. package/dist/api/resources/empathicVoice/types/ReturnPagedChatGroups.d.ts +18 -6
  218. package/dist/api/resources/empathicVoice/types/ReturnPagedChatGroupsPaginationDirection.d.ts +13 -0
  219. package/dist/api/resources/empathicVoice/types/ReturnPagedChatGroupsPaginationDirection.js +10 -0
  220. package/dist/api/resources/empathicVoice/types/ReturnPagedChats.d.ts +18 -6
  221. package/dist/api/resources/empathicVoice/types/ReturnPagedChatsPaginationDirection.d.ts +13 -0
  222. package/dist/api/resources/empathicVoice/types/ReturnPagedChatsPaginationDirection.js +10 -0
  223. package/dist/api/resources/empathicVoice/types/ReturnPagedConfigs.d.ts +12 -4
  224. package/dist/api/resources/empathicVoice/types/ReturnPagedPrompts.d.ts +12 -4
  225. package/dist/api/resources/empathicVoice/types/ReturnPagedUserDefinedTools.d.ts +12 -4
  226. package/dist/api/resources/empathicVoice/types/ReturnPrompt.d.ts +21 -8
  227. package/dist/api/resources/empathicVoice/types/ReturnPromptVersionType.d.ts +11 -0
  228. package/dist/api/resources/empathicVoice/types/ReturnPromptVersionType.js +10 -0
  229. package/dist/api/resources/empathicVoice/types/ReturnTimeoutSpec.d.ts +6 -2
  230. package/dist/api/resources/empathicVoice/types/ReturnTimeoutSpecs.d.ts +13 -1
  231. package/dist/api/resources/empathicVoice/types/ReturnUserDefinedTool.d.ts +22 -11
  232. package/dist/api/resources/empathicVoice/types/ReturnUserDefinedToolToolType.d.ts +11 -0
  233. package/dist/api/resources/empathicVoice/types/ReturnUserDefinedToolToolType.js +10 -0
  234. package/dist/api/resources/empathicVoice/types/ReturnUserDefinedToolVersionType.d.ts +11 -0
  235. package/dist/api/resources/empathicVoice/types/ReturnUserDefinedToolVersionType.js +10 -0
  236. package/dist/api/resources/empathicVoice/types/ReturnVoice.d.ts +4 -3
  237. package/dist/api/resources/empathicVoice/types/ReturnVoiceName.d.ts +12 -0
  238. package/dist/api/resources/empathicVoice/types/ReturnVoiceName.js +11 -0
  239. package/dist/api/resources/empathicVoice/types/index.d.ts +14 -0
  240. package/dist/api/resources/empathicVoice/types/index.js +14 -0
  241. package/dist/api/resources/expressionMeasurement/resources/batch/client/Client.d.ts +4 -4
  242. package/dist/api/resources/expressionMeasurement/resources/batch/client/Client.js +11 -19
  243. package/dist/api/resources/expressionMeasurement/resources/batch/client/requests/BatchListJobsRequest.d.ts +25 -9
  244. package/dist/api/resources/expressionMeasurement/resources/batch/client/requests/BatchStartInferenceJobFromLocalFileRequest.d.ts +1 -0
  245. package/{api/resources/expressionMeasurement/types/UnionJobJobTraining.d.ts → dist/api/resources/expressionMeasurement/types/CustomModelsInferenceJob.d.ts} +2 -1
  246. package/{api/resources/expressionMeasurement/types/UnionJobJobTlInference.d.ts → dist/api/resources/expressionMeasurement/types/CustomModelsTrainingJob.d.ts} +2 -1
  247. package/dist/api/resources/expressionMeasurement/types/EmbeddingGenerationJob.d.ts +7 -0
  248. package/dist/api/resources/expressionMeasurement/types/Face.d.ts +5 -0
  249. package/dist/api/resources/expressionMeasurement/types/File_.d.ts +3 -0
  250. package/dist/api/resources/expressionMeasurement/types/Granularity.d.ts +9 -1
  251. package/dist/api/resources/expressionMeasurement/types/InferenceBaseRequest.d.ts +6 -1
  252. package/dist/api/resources/expressionMeasurement/types/InferenceJob.d.ts +12 -0
  253. package/dist/api/resources/expressionMeasurement/types/JobInference.d.ts +3 -0
  254. package/dist/api/resources/expressionMeasurement/types/Language.d.ts +5 -0
  255. package/dist/api/resources/expressionMeasurement/types/Models.d.ts +3 -0
  256. package/dist/api/resources/expressionMeasurement/types/Ner.d.ts +5 -0
  257. package/dist/api/resources/expressionMeasurement/types/Prosody.d.ts +5 -0
  258. package/dist/api/resources/expressionMeasurement/types/Transcription.d.ts +40 -0
  259. package/dist/api/resources/expressionMeasurement/types/UnionJob.d.ts +1 -15
  260. package/dist/api/resources/expressionMeasurement/types/UnionPredictResult.d.ts +1 -1
  261. package/dist/api/resources/expressionMeasurement/types/Window.d.ts +5 -0
  262. package/dist/api/resources/expressionMeasurement/types/index.d.ts +4 -4
  263. package/dist/api/resources/expressionMeasurement/types/index.js +4 -4
  264. package/dist/api/resources/index.d.ts +1 -1
  265. package/dist/api/resources/index.js +2 -2
  266. package/dist/core/index.d.ts +1 -0
  267. package/dist/core/index.js +1 -0
  268. package/dist/core/pagination/Page.d.ts +29 -0
  269. package/dist/core/pagination/Page.js +94 -0
  270. package/dist/core/pagination/Pageable.d.ts +12 -0
  271. package/dist/core/pagination/Pageable.js +10 -0
  272. package/dist/core/pagination/index.d.ts +2 -0
  273. package/dist/core/pagination/index.js +7 -0
  274. package/dist/errors/HumeError.js +1 -1
  275. package/dist/serialization/resources/empathicVoice/types/JsonMessage.d.ts +2 -1
  276. package/dist/serialization/resources/empathicVoice/types/JsonMessage.js +2 -0
  277. package/dist/serialization/resources/empathicVoice/types/PostedEventMessageSpecs.d.ts +2 -0
  278. package/dist/serialization/resources/empathicVoice/types/PostedEventMessageSpecs.js +2 -0
  279. package/dist/serialization/resources/empathicVoice/types/ReturnBuiltinTool.d.ts +2 -1
  280. package/dist/serialization/resources/empathicVoice/types/ReturnBuiltinTool.js +2 -1
  281. package/dist/serialization/resources/empathicVoice/types/ReturnBuiltinToolToolType.d.ts +10 -0
  282. package/{serialization/resources/expressionMeasurement/types/UnionJobJobTraining.js → dist/serialization/resources/empathicVoice/types/ReturnBuiltinToolToolType.js} +2 -3
  283. package/dist/serialization/resources/empathicVoice/types/ReturnChat.d.ts +2 -2
  284. package/dist/serialization/resources/empathicVoice/types/ReturnChat.js +2 -2
  285. package/dist/serialization/resources/empathicVoice/types/ReturnChatEvent.d.ts +4 -2
  286. package/dist/serialization/resources/empathicVoice/types/ReturnChatEvent.js +4 -2
  287. package/dist/serialization/resources/empathicVoice/types/ReturnChatEventRole.d.ts +10 -0
  288. package/dist/serialization/resources/{expressionMeasurement/types/UnionJobJobTraining.js → empathicVoice/types/ReturnChatEventRole.js} +2 -3
  289. package/dist/serialization/resources/empathicVoice/types/ReturnChatEventType.d.ts +10 -0
  290. package/dist/serialization/resources/empathicVoice/types/ReturnChatEventType.js +38 -0
  291. package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.ts +2 -1
  292. package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEvents.js +2 -1
  293. package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEventsPaginationDirection.d.ts +10 -0
  294. package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEventsPaginationDirection.js +31 -0
  295. package/dist/serialization/resources/empathicVoice/types/ReturnChatPagedEvents.d.ts +4 -3
  296. package/dist/serialization/resources/empathicVoice/types/ReturnChatPagedEvents.js +4 -3
  297. package/dist/serialization/resources/empathicVoice/types/ReturnChatPagedEventsPaginationDirection.d.ts +10 -0
  298. package/dist/serialization/resources/empathicVoice/types/ReturnChatPagedEventsPaginationDirection.js +31 -0
  299. package/dist/serialization/resources/empathicVoice/types/ReturnChatPagedEventsStatus.d.ts +10 -0
  300. package/dist/serialization/resources/empathicVoice/types/ReturnChatPagedEventsStatus.js +38 -0
  301. package/dist/serialization/resources/empathicVoice/types/ReturnChatStatus.d.ts +10 -0
  302. package/dist/serialization/resources/empathicVoice/types/ReturnChatStatus.js +38 -0
  303. package/dist/serialization/resources/empathicVoice/types/ReturnEventMessageSpecs.d.ts +2 -0
  304. package/dist/serialization/resources/empathicVoice/types/ReturnEventMessageSpecs.js +2 -0
  305. package/dist/serialization/resources/empathicVoice/types/ReturnLanguageModel.d.ts +2 -1
  306. package/dist/serialization/resources/empathicVoice/types/ReturnLanguageModel.js +2 -1
  307. package/dist/serialization/resources/empathicVoice/types/ReturnLanguageModelModelProvider.d.ts +10 -0
  308. package/dist/serialization/resources/empathicVoice/types/ReturnLanguageModelModelProvider.js +38 -0
  309. package/dist/serialization/resources/empathicVoice/types/ReturnPagedChatGroups.d.ts +2 -1
  310. package/dist/serialization/resources/empathicVoice/types/ReturnPagedChatGroups.js +2 -1
  311. package/dist/serialization/resources/empathicVoice/types/ReturnPagedChatGroupsPaginationDirection.d.ts +10 -0
  312. package/dist/serialization/resources/empathicVoice/types/ReturnPagedChatGroupsPaginationDirection.js +31 -0
  313. package/dist/serialization/resources/empathicVoice/types/ReturnPagedChats.d.ts +2 -1
  314. package/dist/serialization/resources/empathicVoice/types/ReturnPagedChats.js +2 -1
  315. package/dist/serialization/resources/empathicVoice/types/ReturnPagedChatsPaginationDirection.d.ts +10 -0
  316. package/dist/serialization/resources/empathicVoice/types/ReturnPagedChatsPaginationDirection.js +31 -0
  317. package/dist/serialization/resources/empathicVoice/types/ReturnPrompt.d.ts +2 -1
  318. package/dist/serialization/resources/empathicVoice/types/ReturnPrompt.js +2 -1
  319. package/dist/serialization/resources/empathicVoice/types/ReturnPromptVersionType.d.ts +10 -0
  320. package/dist/serialization/resources/empathicVoice/types/ReturnPromptVersionType.js +31 -0
  321. package/dist/serialization/resources/empathicVoice/types/ReturnUserDefinedTool.d.ts +4 -2
  322. package/dist/serialization/resources/empathicVoice/types/ReturnUserDefinedTool.js +4 -2
  323. package/dist/serialization/resources/empathicVoice/types/ReturnUserDefinedToolToolType.d.ts +10 -0
  324. package/dist/serialization/resources/empathicVoice/types/ReturnUserDefinedToolToolType.js +31 -0
  325. package/dist/serialization/resources/empathicVoice/types/ReturnUserDefinedToolVersionType.d.ts +10 -0
  326. package/dist/serialization/resources/empathicVoice/types/ReturnUserDefinedToolVersionType.js +31 -0
  327. package/dist/serialization/resources/empathicVoice/types/ReturnVoice.d.ts +3 -2
  328. package/dist/serialization/resources/empathicVoice/types/ReturnVoice.js +3 -2
  329. package/dist/serialization/resources/empathicVoice/types/ReturnVoiceName.d.ts +10 -0
  330. package/dist/serialization/resources/empathicVoice/types/ReturnVoiceName.js +31 -0
  331. package/dist/serialization/resources/empathicVoice/types/index.d.ts +14 -0
  332. package/dist/serialization/resources/empathicVoice/types/index.js +14 -0
  333. package/{serialization/resources/expressionMeasurement/types/UnionJobJobTlInference.d.ts → dist/serialization/resources/expressionMeasurement/types/CustomModelsInferenceJob.d.ts} +3 -2
  334. package/{serialization/resources/expressionMeasurement/types/UnionJobJobTlInference.js → dist/serialization/resources/expressionMeasurement/types/CustomModelsInferenceJob.js} +6 -2
  335. package/{serialization/resources/expressionMeasurement/types/UnionJobJobTraining.d.ts → dist/serialization/resources/expressionMeasurement/types/CustomModelsTrainingJob.d.ts} +3 -2
  336. package/dist/serialization/resources/expressionMeasurement/types/CustomModelsTrainingJob.js +36 -0
  337. package/dist/serialization/resources/expressionMeasurement/types/{UnionJobJobEmbeddingGeneration.d.ts → EmbeddingGenerationJob.d.ts} +3 -2
  338. package/dist/serialization/resources/expressionMeasurement/types/{UnionJobJobEmbeddingGeneration.js → EmbeddingGenerationJob.js} +6 -2
  339. package/{serialization/resources/expressionMeasurement/types/UnionJobJobInference.d.ts → dist/serialization/resources/expressionMeasurement/types/InferenceJob.d.ts} +3 -2
  340. package/{serialization/resources/expressionMeasurement/types/UnionJobJobInference.js → dist/serialization/resources/expressionMeasurement/types/InferenceJob.js} +6 -2
  341. package/dist/serialization/resources/expressionMeasurement/types/UnionJob.d.ts +3 -18
  342. package/dist/serialization/resources/expressionMeasurement/types/UnionJob.js +2 -39
  343. package/dist/serialization/resources/expressionMeasurement/types/UnionPredictResult.d.ts +2 -3
  344. package/dist/serialization/resources/expressionMeasurement/types/UnionPredictResult.js +1 -29
  345. package/dist/serialization/resources/expressionMeasurement/types/index.d.ts +4 -4
  346. package/dist/serialization/resources/expressionMeasurement/types/index.js +4 -4
  347. package/dist/serialization/resources/index.d.ts +1 -1
  348. package/dist/serialization/resources/index.js +2 -2
  349. package/errors/HumeError.js +1 -1
  350. package/eslint.config.mjs +1 -1
  351. package/{jest.config.mjs → jest.config.js} +1 -3
  352. package/package.json +2 -2
  353. package/reference.md +608 -502
  354. package/serialization/resources/empathicVoice/types/JsonMessage.d.ts +2 -1
  355. package/serialization/resources/empathicVoice/types/JsonMessage.js +2 -0
  356. package/serialization/resources/empathicVoice/types/PostedEventMessageSpecs.d.ts +2 -0
  357. package/serialization/resources/empathicVoice/types/PostedEventMessageSpecs.js +2 -0
  358. package/serialization/resources/empathicVoice/types/ReturnBuiltinTool.d.ts +2 -1
  359. package/serialization/resources/empathicVoice/types/ReturnBuiltinTool.js +2 -1
  360. package/serialization/resources/empathicVoice/types/ReturnBuiltinToolToolType.d.ts +10 -0
  361. package/serialization/resources/empathicVoice/types/ReturnBuiltinToolToolType.js +31 -0
  362. package/serialization/resources/empathicVoice/types/ReturnChat.d.ts +2 -2
  363. package/serialization/resources/empathicVoice/types/ReturnChat.js +2 -2
  364. package/serialization/resources/empathicVoice/types/ReturnChatEvent.d.ts +4 -2
  365. package/serialization/resources/empathicVoice/types/ReturnChatEvent.js +4 -2
  366. package/serialization/resources/empathicVoice/types/ReturnChatEventRole.d.ts +10 -0
  367. package/serialization/resources/empathicVoice/types/ReturnChatEventRole.js +31 -0
  368. package/serialization/resources/empathicVoice/types/ReturnChatEventType.d.ts +10 -0
  369. package/serialization/resources/empathicVoice/types/ReturnChatEventType.js +38 -0
  370. package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.ts +2 -1
  371. package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEvents.js +2 -1
  372. package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEventsPaginationDirection.d.ts +10 -0
  373. package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEventsPaginationDirection.js +31 -0
  374. package/serialization/resources/empathicVoice/types/ReturnChatPagedEvents.d.ts +4 -3
  375. package/serialization/resources/empathicVoice/types/ReturnChatPagedEvents.js +4 -3
  376. package/serialization/resources/empathicVoice/types/ReturnChatPagedEventsPaginationDirection.d.ts +10 -0
  377. package/serialization/resources/empathicVoice/types/ReturnChatPagedEventsPaginationDirection.js +31 -0
  378. package/serialization/resources/empathicVoice/types/ReturnChatPagedEventsStatus.d.ts +10 -0
  379. package/serialization/resources/empathicVoice/types/ReturnChatPagedEventsStatus.js +38 -0
  380. package/serialization/resources/empathicVoice/types/ReturnChatStatus.d.ts +10 -0
  381. package/serialization/resources/empathicVoice/types/ReturnChatStatus.js +38 -0
  382. package/serialization/resources/empathicVoice/types/ReturnEventMessageSpecs.d.ts +2 -0
  383. package/serialization/resources/empathicVoice/types/ReturnEventMessageSpecs.js +2 -0
  384. package/serialization/resources/empathicVoice/types/ReturnLanguageModel.d.ts +2 -1
  385. package/serialization/resources/empathicVoice/types/ReturnLanguageModel.js +2 -1
  386. package/serialization/resources/empathicVoice/types/ReturnLanguageModelModelProvider.d.ts +10 -0
  387. package/serialization/resources/empathicVoice/types/ReturnLanguageModelModelProvider.js +38 -0
  388. package/serialization/resources/empathicVoice/types/ReturnPagedChatGroups.d.ts +2 -1
  389. package/serialization/resources/empathicVoice/types/ReturnPagedChatGroups.js +2 -1
  390. package/serialization/resources/empathicVoice/types/ReturnPagedChatGroupsPaginationDirection.d.ts +10 -0
  391. package/serialization/resources/empathicVoice/types/ReturnPagedChatGroupsPaginationDirection.js +31 -0
  392. package/serialization/resources/empathicVoice/types/ReturnPagedChats.d.ts +2 -1
  393. package/serialization/resources/empathicVoice/types/ReturnPagedChats.js +2 -1
  394. package/serialization/resources/empathicVoice/types/ReturnPagedChatsPaginationDirection.d.ts +10 -0
  395. package/serialization/resources/empathicVoice/types/ReturnPagedChatsPaginationDirection.js +31 -0
  396. package/serialization/resources/empathicVoice/types/ReturnPrompt.d.ts +2 -1
  397. package/serialization/resources/empathicVoice/types/ReturnPrompt.js +2 -1
  398. package/serialization/resources/empathicVoice/types/ReturnPromptVersionType.d.ts +10 -0
  399. package/serialization/resources/empathicVoice/types/ReturnPromptVersionType.js +31 -0
  400. package/serialization/resources/empathicVoice/types/ReturnUserDefinedTool.d.ts +4 -2
  401. package/serialization/resources/empathicVoice/types/ReturnUserDefinedTool.js +4 -2
  402. package/serialization/resources/empathicVoice/types/ReturnUserDefinedToolToolType.d.ts +10 -0
  403. package/serialization/resources/empathicVoice/types/ReturnUserDefinedToolToolType.js +31 -0
  404. package/serialization/resources/empathicVoice/types/ReturnUserDefinedToolVersionType.d.ts +10 -0
  405. package/serialization/resources/empathicVoice/types/ReturnUserDefinedToolVersionType.js +31 -0
  406. package/serialization/resources/empathicVoice/types/ReturnVoice.d.ts +3 -2
  407. package/serialization/resources/empathicVoice/types/ReturnVoice.js +3 -2
  408. package/serialization/resources/empathicVoice/types/ReturnVoiceName.d.ts +10 -0
  409. package/serialization/resources/empathicVoice/types/ReturnVoiceName.js +31 -0
  410. package/serialization/resources/empathicVoice/types/index.d.ts +14 -0
  411. package/serialization/resources/empathicVoice/types/index.js +14 -0
  412. package/{dist/serialization/resources/expressionMeasurement/types/UnionJobJobTlInference.d.ts → serialization/resources/expressionMeasurement/types/CustomModelsInferenceJob.d.ts} +3 -2
  413. package/{dist/serialization/resources/expressionMeasurement/types/UnionJobJobTlInference.js → serialization/resources/expressionMeasurement/types/CustomModelsInferenceJob.js} +6 -2
  414. package/{dist/serialization/resources/expressionMeasurement/types/UnionJobJobTraining.d.ts → serialization/resources/expressionMeasurement/types/CustomModelsTrainingJob.d.ts} +3 -2
  415. package/serialization/resources/expressionMeasurement/types/CustomModelsTrainingJob.js +36 -0
  416. package/serialization/resources/expressionMeasurement/types/{UnionJobJobEmbeddingGeneration.d.ts → EmbeddingGenerationJob.d.ts} +3 -2
  417. package/serialization/resources/expressionMeasurement/types/{UnionJobJobEmbeddingGeneration.js → EmbeddingGenerationJob.js} +6 -2
  418. package/{dist/serialization/resources/expressionMeasurement/types/UnionJobJobInference.d.ts → serialization/resources/expressionMeasurement/types/InferenceJob.d.ts} +3 -2
  419. package/{dist/serialization/resources/expressionMeasurement/types/UnionJobJobInference.js → serialization/resources/expressionMeasurement/types/InferenceJob.js} +6 -2
  420. package/serialization/resources/expressionMeasurement/types/UnionJob.d.ts +3 -18
  421. package/serialization/resources/expressionMeasurement/types/UnionJob.js +2 -39
  422. package/serialization/resources/expressionMeasurement/types/UnionPredictResult.d.ts +2 -3
  423. package/serialization/resources/expressionMeasurement/types/UnionPredictResult.js +1 -29
  424. package/serialization/resources/expressionMeasurement/types/index.d.ts +4 -4
  425. package/serialization/resources/expressionMeasurement/types/index.js +4 -4
  426. package/serialization/resources/index.d.ts +1 -1
  427. package/serialization/resources/index.js +2 -2
  428. package/dist/api/resources/expressionMeasurement/types/UnionJobJobEmbeddingGeneration.d.ts +0 -6
  429. package/dist/api/resources/expressionMeasurement/types/UnionJobJobInference.d.ts +0 -6
  430. package/dist/api/resources/expressionMeasurement/types/UnionJobJobTlInference.d.ts +0 -6
  431. package/dist/api/resources/expressionMeasurement/types/UnionJobJobTraining.d.ts +0 -6
  432. /package/api/resources/expressionMeasurement/types/{UnionJobJobEmbeddingGeneration.js → CustomModelsInferenceJob.js} +0 -0
  433. /package/api/resources/expressionMeasurement/types/{UnionJobJobInference.js → CustomModelsTrainingJob.js} +0 -0
  434. /package/api/resources/expressionMeasurement/types/{UnionJobJobTlInference.js → EmbeddingGenerationJob.js} +0 -0
  435. /package/api/resources/expressionMeasurement/types/{UnionJobJobTraining.js → InferenceJob.js} +0 -0
  436. /package/dist/api/resources/expressionMeasurement/types/{UnionJobJobEmbeddingGeneration.js → CustomModelsInferenceJob.js} +0 -0
  437. /package/dist/api/resources/expressionMeasurement/types/{UnionJobJobInference.js → CustomModelsTrainingJob.js} +0 -0
  438. /package/dist/api/resources/expressionMeasurement/types/{UnionJobJobTlInference.js → EmbeddingGenerationJob.js} +0 -0
  439. /package/dist/api/resources/expressionMeasurement/types/{UnionJobJobTraining.js → InferenceJob.js} +0 -0
@@ -51,7 +51,7 @@ export declare class Batch {
51
51
  /**
52
52
  * Get the request details and state of a given job.
53
53
  *
54
- * @param {string} id
54
+ * @param {string} id - The unique identifier for the job.
55
55
  * @param {Batch.RequestOptions} requestOptions - Request-specific configuration.
56
56
  *
57
57
  * @example
@@ -59,9 +59,9 @@ export declare class Batch {
59
59
  */
60
60
  getJobDetails(id: string, requestOptions?: Batch.RequestOptions): Promise<Hume.expressionMeasurement.UnionJob>;
61
61
  /**
62
- * Get the JSON predictions of a completed measurement or custom models inference job.
62
+ * Get the JSON predictions of a completed inference job.
63
63
  *
64
- * @param {string} id
64
+ * @param {string} id - The unique identifier for the job.
65
65
  * @param {Batch.RequestOptions} requestOptions - Request-specific configuration.
66
66
  *
67
67
  * @example
@@ -69,7 +69,7 @@ export declare class Batch {
69
69
  */
70
70
  getJobPredictions(id: string, requestOptions?: Batch.RequestOptions): Promise<Hume.expressionMeasurement.UnionPredictResult[]>;
71
71
  /**
72
- * Get the artifacts ZIP of a completed measurement or custom models inference job.
72
+ * Get the artifacts ZIP of a completed inference job.
73
73
  */
74
74
  getJobArtifacts(id: string, requestOptions?: Batch.RequestOptions): Promise<stream.Readable>;
75
75
  /**
@@ -60,7 +60,7 @@ class Batch {
60
60
  listJobs(request = {}, requestOptions) {
61
61
  var _a, _b;
62
62
  return __awaiter(this, void 0, void 0, function* () {
63
- const { limit, status, when, timestampMs, sortBy, direction, type: type_, } = request;
63
+ const { limit, status, when, timestampMs, sortBy, direction } = request;
64
64
  const _queryParams = {};
65
65
  if (limit != null) {
66
66
  _queryParams['limit'] = limit.toString();
@@ -85,18 +85,10 @@ class Batch {
85
85
  if (direction != null) {
86
86
  _queryParams['direction'] = direction;
87
87
  }
88
- if (type_ != null) {
89
- if (Array.isArray(type_)) {
90
- _queryParams['type'] = type_.map((item) => item);
91
- }
92
- else {
93
- _queryParams['type'] = type_;
94
- }
95
- }
96
88
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
97
89
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, 'v0/batch/jobs'),
98
90
  method: 'GET',
99
- headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.2', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
91
+ headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.6', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
100
92
  contentType: 'application/json',
101
93
  queryParameters: _queryParams,
102
94
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null
@@ -152,7 +144,7 @@ class Batch {
152
144
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
153
145
  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'),
154
146
  method: 'POST',
155
- headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.2', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
147
+ headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.6', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
156
148
  contentType: 'application/json',
157
149
  body: serializers.expressionMeasurement.InferenceBaseRequest.jsonOrThrow(request, {
158
150
  unrecognizedObjectKeys: 'strip',
@@ -195,7 +187,7 @@ class Batch {
195
187
  /**
196
188
  * Get the request details and state of a given job.
197
189
  *
198
- * @param {string} id
190
+ * @param {string} id - The unique identifier for the job.
199
191
  * @param {Batch.RequestOptions} requestOptions - Request-specific configuration.
200
192
  *
201
193
  * @example
@@ -207,7 +199,7 @@ class Batch {
207
199
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
208
200
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/batch/jobs/${encodeURIComponent(id)}`),
209
201
  method: 'GET',
210
- headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.2', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
202
+ headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.6', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
211
203
  contentType: 'application/json',
212
204
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null
213
205
  ? requestOptions.timeoutInSeconds * 1000
@@ -245,9 +237,9 @@ class Batch {
245
237
  });
246
238
  }
247
239
  /**
248
- * Get the JSON predictions of a completed measurement or custom models inference job.
240
+ * Get the JSON predictions of a completed inference job.
249
241
  *
250
- * @param {string} id
242
+ * @param {string} id - The unique identifier for the job.
251
243
  * @param {Batch.RequestOptions} requestOptions - Request-specific configuration.
252
244
  *
253
245
  * @example
@@ -259,7 +251,7 @@ class Batch {
259
251
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
260
252
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/batch/jobs/${encodeURIComponent(id)}/predictions`),
261
253
  method: 'GET',
262
- headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.2', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
254
+ headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.6', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
263
255
  contentType: 'application/json',
264
256
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null
265
257
  ? requestOptions.timeoutInSeconds * 1000
@@ -297,7 +289,7 @@ class Batch {
297
289
  });
298
290
  }
299
291
  /**
300
- * Get the artifacts ZIP of a completed measurement or custom models inference job.
292
+ * Get the artifacts ZIP of a completed inference job.
301
293
  */
302
294
  getJobArtifacts(id, requestOptions) {
303
295
  var _a, _b;
@@ -305,7 +297,7 @@ class Batch {
305
297
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
306
298
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/batch/jobs/${encodeURIComponent(id)}/artifacts`),
307
299
  method: 'GET',
308
- headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.2', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
300
+ headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.6', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
309
301
  contentType: 'application/json',
310
302
  responseType: 'streaming',
311
303
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null
@@ -362,7 +354,7 @@ class Batch {
362
354
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
363
355
  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'),
364
356
  method: 'POST',
365
- headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.2', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), (yield _maybeEncodedRequest.getHeaders())),
357
+ headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.6', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), (yield _maybeEncodedRequest.getHeaders())),
366
358
  body: yield _maybeEncodedRequest.getBody(),
367
359
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null
368
360
  ? requestOptions.timeoutInSeconds * 1000
@@ -12,27 +12,43 @@ export interface BatchListJobsRequest {
12
12
  */
13
13
  limit?: number;
14
14
  /**
15
- * Include only jobs with these statuses.
15
+ * Include only jobs of this status in the response. There are four possible statuses:
16
+ *
17
+ * - `QUEUED`: The job has been received and is waiting to be processed.
18
+ *
19
+ * - `IN_PROGRESS`: The job is currently being processed.
20
+ *
21
+ * - `COMPLETED`: The job has finished processing.
22
+ *
23
+ * - `FAILED`: The job encountered an error and could not be completed successfully.
16
24
  */
17
25
  status?: Hume.expressionMeasurement.Status | Hume.expressionMeasurement.Status[];
18
26
  /**
19
- * Include only jobs that were created before or after `timestamp_ms`.
27
+ * Specify whether to include jobs created before or after a given `timestamp_ms`.
20
28
  */
21
29
  when?: Hume.expressionMeasurement.When;
22
30
  /**
23
- * Defaults to the current date and time. See `when`.
31
+ * Provide a timestamp in milliseconds to filter jobs.
32
+ *
33
+ * When combined with the `when` parameter, you can filter jobs before or after the given timestamp. Defaults to the current Unix timestamp if one is not provided.
24
34
  */
25
35
  timestampMs?: number;
26
36
  /**
27
- * The job timestamp to sort by.
37
+ * Specify which timestamp to sort the jobs by.
38
+ *
39
+ * - `created`: Sort jobs by the time of creation, indicated by `created_timestamp_ms`.
40
+ *
41
+ * - `started`: Sort jobs by the time processing started, indicated by `started_timestamp_ms`.
42
+ *
43
+ * - `ended`: Sort jobs by the time processing ended, indicated by `ended_timestamp_ms`.
28
44
  */
29
45
  sortBy?: Hume.expressionMeasurement.SortBy;
30
46
  /**
31
- * The sort direction.
47
+ * Specify the order in which to sort the jobs. Defaults to descending order.
48
+ *
49
+ * - `asc`: Sort in ascending order (chronological, with the oldest records first).
50
+ *
51
+ * - `desc`: Sort in descending order (reverse-chronological, with the newest records first).
32
52
  */
33
53
  direction?: Hume.expressionMeasurement.Direction;
34
- /**
35
- * Include only jobs of these types.
36
- */
37
- type?: Hume.expressionMeasurement.Type | Hume.expressionMeasurement.Type[];
38
54
  }
@@ -7,5 +7,6 @@ import * as Hume from '../../../../../../index';
7
7
  * {}
8
8
  */
9
9
  export interface BatchStartInferenceJobFromLocalFileRequest {
10
+ /** Stringified JSON object containing the inference job configuration. */
10
11
  json?: Hume.expressionMeasurement.InferenceBaseRequest;
11
12
  }
@@ -2,5 +2,6 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Hume from '../../../index';
5
- export interface UnionJobJobInference extends Hume.expressionMeasurement.JobInference {
5
+ export interface CustomModelsInferenceJob extends Hume.expressionMeasurement.JobTlInference {
6
+ type: string;
6
7
  }
@@ -2,5 +2,6 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Hume from '../../../index';
5
- export interface UnionJobJobEmbeddingGeneration extends Hume.expressionMeasurement.JobEmbeddingGeneration {
5
+ export interface CustomModelsTrainingJob extends Hume.expressionMeasurement.JobTraining {
6
+ type: string;
6
7
  }
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Hume from '../../../index';
5
+ export interface EmbeddingGenerationJob extends Hume.expressionMeasurement.JobEmbeddingGeneration {
6
+ type: string;
7
+ }
@@ -2,6 +2,11 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Hume from '../../../index';
5
+ /**
6
+ * The Facial Emotional Expression model analyzes human facial expressions in images and videos. Results will be provided per frame for video files.
7
+ *
8
+ * Recommended input file types: `.png`, `.jpeg`, `.mp4`
9
+ */
5
10
  export interface Face {
6
11
  /** Number of frames per second to process. Other frames will be omitted from the response. Set to `0` to process every frame. */
7
12
  fpsPred?: number;
@@ -1,6 +1,9 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ /**
5
+ * The list of files submitted for analysis.
6
+ */
4
7
  export interface File_ {
5
8
  /** The name of the file. */
6
9
  filename?: string;
@@ -2,7 +2,15 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  /**
5
- * The granularity at which to generate predictions. `utterance` corresponds to a natural pause or break in conversation, while `conversational_turn` corresponds to a change in speaker.
5
+ * The granularity at which to generate predictions. The `granularity` field is ignored if transcription is not enabled or if the `window` field has been set.
6
+ *
7
+ * - `word`: At the word level, our model provides a separate output for each word, offering the most granular insight into emotional expression during speech.
8
+ *
9
+ * - `sentence`: At the sentence level of granularity, we annotate the emotional tone of each spoken sentence with our Prosody and Emotional Language models.
10
+ *
11
+ * - `utterance`: Utterance-level granularity is between word- and sentence-level. It takes into account natural pauses or breaks in speech, providing more rapidly updated measures of emotional expression within a flowing conversation. For text inputs, utterance-level granularity will produce results identical to sentence-level granularity.
12
+ *
13
+ * - `conversational_turn`: Conversational turn-level granularity provides a distinct output for each change in speaker. It captures the full sequence of words and sentences spoken uninterrupted by each person. This approach provides a higher-level view of the emotional dynamics in a multi-participant dialogue. For text inputs, specifying conversational turn-level granularity for our Emotional Language model will produce results for the entire passage.
6
14
  */
7
15
  export declare type Granularity = 'word' | 'sentence' | 'utterance' | 'conversational_turn';
8
16
  export declare const Granularity: {
@@ -3,6 +3,11 @@
3
3
  */
4
4
  import * as Hume from '../../../index';
5
5
  export interface InferenceBaseRequest {
6
+ /**
7
+ * Specify the models to use for inference.
8
+ *
9
+ * If this field is not explicitly set, then all models will run by default.
10
+ */
6
11
  models?: Hume.expressionMeasurement.Models;
7
12
  transcription?: Hume.expressionMeasurement.Transcription;
8
13
  /**
@@ -13,7 +18,7 @@ export interface InferenceBaseRequest {
13
18
  urls?: string[];
14
19
  /** List of File IDs corresponding to the files in the asset registry. */
15
20
  registryFiles?: string[];
16
- /** Text to supply directly to our language and NER models. */
21
+ /** Text supplied directly to our Emotional Language and NER models for analysis. */
17
22
  text?: string[];
18
23
  /** If provided, a `POST` request will be made to the URL with the generated predictions on completion or the error message on failure. */
19
24
  callbackUrl?: string;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Hume from '../../../index';
5
+ export interface InferenceJob extends Hume.expressionMeasurement.JobInference {
6
+ /**
7
+ * Denotes the job type.
8
+ *
9
+ * Jobs created with the Expression Measurement API will have this field set to `INFERENCE`.
10
+ */
11
+ type: string;
12
+ }
@@ -5,7 +5,10 @@ import * as Hume from '../../../index';
5
5
  export interface JobInference {
6
6
  /** The ID associated with this job. */
7
7
  jobId: string;
8
+ /** The unique identifier for the user who initiated the job. */
8
9
  userId: string;
10
+ /** The request that initiated the job. */
9
11
  request: Hume.expressionMeasurement.InferenceRequest;
12
+ /** The current state of the job. */
10
13
  state: Hume.expressionMeasurement.StateInference;
11
14
  }
@@ -2,6 +2,11 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Hume from '../../../index';
5
+ /**
6
+ * The Emotional Language model analyzes passages of text. This also supports audio and video files by transcribing and then directly analyzing the transcribed text.
7
+ *
8
+ * Recommended input filetypes: `.txt`, `.mp3`, `.wav`, `.mp4`
9
+ */
5
10
  export interface Language {
6
11
  granularity?: Hume.expressionMeasurement.Granularity;
7
12
  sentiment?: Hume.expressionMeasurement.Unconfigurable;
@@ -2,6 +2,9 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Hume from '../../../index';
5
+ /**
6
+ * The models used for inference.
7
+ */
5
8
  export interface Models {
6
9
  face?: Hume.expressionMeasurement.Face;
7
10
  burst?: Hume.expressionMeasurement.Unconfigurable;
@@ -1,6 +1,11 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ /**
5
+ * The NER (Named-entity Recognition) model identifies real-world objects and concepts in passages of text. This also supports audio and video files by transcribing and then directly analyzing the transcribed text.
6
+ *
7
+ * Recommended input filetypes: `.txt`, `.mp3`, `.wav`, `.mp4`
8
+ */
4
9
  export interface Ner {
5
10
  /** Whether to return identifiers for speakers over time. If `true`, unique identifiers will be assigned to spoken words to differentiate different speakers. If `false`, all speakers will be tagged with an `unknown` ID. */
6
11
  identifySpeakers?: boolean;
@@ -2,6 +2,11 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Hume from '../../../index';
5
+ /**
6
+ * The Speech Prosody model analyzes the intonation, stress, and rhythm of spoken word.
7
+ *
8
+ * Recommended input file types: `.wav`, `.mp3`, `.mp4`
9
+ */
5
10
  export interface Prosody {
6
11
  granularity?: Hume.expressionMeasurement.Granularity;
7
12
  window?: Hume.expressionMeasurement.Window;
@@ -2,7 +2,47 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Hume from '../../../index';
5
+ /**
6
+ * Transcription-related configuration options.
7
+ *
8
+ * To disable transcription, explicitly set this field to `null`.
9
+ */
5
10
  export interface Transcription {
11
+ /**
12
+ * By default, we use an automated language detection method for our Speech Prosody, Language, and NER models. However, if you know what language is being spoken in your media samples, you can specify it via its BCP-47 tag and potentially obtain more accurate results.
13
+ *
14
+ * You can specify any of the following languages:
15
+ *
16
+ * - Chinese: `zh`
17
+ * - Danish: `da`
18
+ * - Dutch: `nl`
19
+ * - English: `en`
20
+ * - English (Australia): `en-AU`
21
+ * - English (India): `en-IN`
22
+ * - English (New Zealand): `en-NZ`
23
+ * - English (United Kingdom): `en-GB`
24
+ * - French: `fr`
25
+ * - French (Canada): `fr-CA`
26
+ * - German: `de`
27
+ * - Hindi: `hi`
28
+ * - Hindi (Roman Script): `hi-Latn`
29
+ * - Indonesian: `id`
30
+ * - Italian: `it`
31
+ * - Japanese: `ja`
32
+ * - Korean: `ko`
33
+ * - Norwegian: `no`
34
+ * - Polish: `pl`
35
+ * - Portuguese: `pt`
36
+ * - Portuguese (Brazil): `pt-BR`
37
+ * - Portuguese (Portugal): `pt-PT`
38
+ * - Russian: `ru`
39
+ * - Spanish: `es`
40
+ * - Spanish (Latin America): `es-419`
41
+ * - Swedish: `sv`
42
+ * - Tamil: `ta`
43
+ * - Turkish: `tr`
44
+ * - Ukrainian: `uk`
45
+ */
6
46
  language?: Hume.expressionMeasurement.Bcp47Tag;
7
47
  /** Whether to return identifiers for speakers over time. If `true`, unique identifiers will be assigned to spoken words to differentiate different speakers. If `false`, all speakers will be tagged with an `unknown` ID. */
8
48
  identifySpeakers?: boolean;
@@ -2,18 +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 UnionJob = Hume.expressionMeasurement.UnionJob.EmbeddingGeneration | Hume.expressionMeasurement.UnionJob.Inference | Hume.expressionMeasurement.UnionJob.TlInference | Hume.expressionMeasurement.UnionJob.Training;
6
- export declare namespace UnionJob {
7
- interface EmbeddingGeneration extends Hume.expressionMeasurement.UnionJobJobEmbeddingGeneration {
8
- type: 'EMBEDDING_GENERATION';
9
- }
10
- interface Inference extends Hume.expressionMeasurement.UnionJobJobInference {
11
- type: 'INFERENCE';
12
- }
13
- interface TlInference extends Hume.expressionMeasurement.UnionJobJobTlInference {
14
- type: 'TL_INFERENCE';
15
- }
16
- interface Training extends Hume.expressionMeasurement.UnionJobJobTraining {
17
- type: 'TRAINING';
18
- }
19
- }
5
+ export declare type UnionJob = Hume.expressionMeasurement.InferenceJob;
@@ -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 UnionPredictResult = Hume.expressionMeasurement.InferenceSourcePredictResult | Hume.expressionMeasurement.TlInferenceSourcePredictResult;
5
+ export declare type UnionPredictResult = Hume.expressionMeasurement.InferenceSourcePredictResult;
@@ -1,6 +1,11 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ /**
5
+ * Generate predictions based on time.
6
+ *
7
+ * Setting the `window` field allows for a 'sliding window' approach, where a fixed-size window moves across the audio or video file in defined steps. This enables continuous analysis of prosody within subsets of the file, providing dynamic and localized insights into emotional expression.
8
+ */
4
9
  export interface Window {
5
10
  /** The length of the sliding window. */
6
11
  length?: number;
@@ -111,10 +111,10 @@ export * from './TranscriptionMetadata';
111
111
  export * from './Type';
112
112
  export * from './Unconfigurable';
113
113
  export * from './UnionJob';
114
- export * from './UnionJobJobEmbeddingGeneration';
115
- export * from './UnionJobJobInference';
116
- export * from './UnionJobJobTlInference';
117
- export * from './UnionJobJobTraining';
114
+ export * from './EmbeddingGenerationJob';
115
+ export * from './InferenceJob';
116
+ export * from './CustomModelsInferenceJob';
117
+ export * from './CustomModelsTrainingJob';
118
118
  export * from './UnionPredictResult';
119
119
  export * from './ValidationArgs';
120
120
  export * from './When';
@@ -127,10 +127,10 @@ __exportStar(require("./TranscriptionMetadata"), exports);
127
127
  __exportStar(require("./Type"), exports);
128
128
  __exportStar(require("./Unconfigurable"), exports);
129
129
  __exportStar(require("./UnionJob"), exports);
130
- __exportStar(require("./UnionJobJobEmbeddingGeneration"), exports);
131
- __exportStar(require("./UnionJobJobInference"), exports);
132
- __exportStar(require("./UnionJobJobTlInference"), exports);
133
- __exportStar(require("./UnionJobJobTraining"), exports);
130
+ __exportStar(require("./EmbeddingGenerationJob"), exports);
131
+ __exportStar(require("./InferenceJob"), exports);
132
+ __exportStar(require("./CustomModelsInferenceJob"), exports);
133
+ __exportStar(require("./CustomModelsTrainingJob"), exports);
134
134
  __exportStar(require("./UnionPredictResult"), exports);
135
135
  __exportStar(require("./ValidationArgs"), exports);
136
136
  __exportStar(require("./When"), exports);
@@ -1,2 +1,2 @@
1
- export * as empathicVoice from './empathicVoice';
2
1
  export * as expressionMeasurement from './expressionMeasurement';
2
+ export * as empathicVoice from './empathicVoice';
@@ -23,6 +23,6 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.expressionMeasurement = exports.empathicVoice = void 0;
27
- exports.empathicVoice = __importStar(require("./empathicVoice"));
26
+ exports.empathicVoice = exports.expressionMeasurement = void 0;
28
27
  exports.expressionMeasurement = __importStar(require("./expressionMeasurement"));
28
+ exports.empathicVoice = __importStar(require("./empathicVoice"));
package/core/index.d.ts CHANGED
@@ -2,4 +2,5 @@ export * from './fetcher';
2
2
  export * from './runtime';
3
3
  export * from './form-data-utils';
4
4
  export * from './websocket';
5
+ export * from './pagination';
5
6
  export * as serialization from './schemas';
package/core/index.js CHANGED
@@ -31,4 +31,5 @@ __exportStar(require("./fetcher"), exports);
31
31
  __exportStar(require("./runtime"), exports);
32
32
  __exportStar(require("./form-data-utils"), exports);
33
33
  __exportStar(require("./websocket"), exports);
34
+ __exportStar(require("./pagination"), exports);
34
35
  exports.serialization = __importStar(require("./schemas"));
@@ -0,0 +1,29 @@
1
+ /**
2
+ * A page of results from a paginated API.
3
+ *
4
+ * @template T The type of the items in the page.
5
+ */
6
+ export declare class Page<T> implements AsyncIterable<T> {
7
+ data: T[];
8
+ private response;
9
+ private _hasNextPage;
10
+ private getItems;
11
+ private loadNextPage;
12
+ constructor({ response, hasNextPage, getItems, loadPage, }: {
13
+ response: unknown;
14
+ hasNextPage: (response: unknown) => boolean;
15
+ getItems: (response: unknown) => T[];
16
+ loadPage: (response: unknown) => Promise<any>;
17
+ });
18
+ /**
19
+ * Retrieves the next page
20
+ * @returns this
21
+ */
22
+ getNextPage(): Promise<this>;
23
+ /**
24
+ * @returns whether there is a next page to load
25
+ */
26
+ hasNextPage(): boolean;
27
+ private iterMessages;
28
+ [Symbol.asyncIterator](): AsyncIterator<T, void, any>;
29
+ }
@@ -0,0 +1,94 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }
12
+ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
13
+ if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
14
+ var g = generator.apply(thisArg, _arguments || []), i, q = [];
15
+ return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
16
+ function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
17
+ function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
18
+ function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
19
+ function fulfill(value) { resume("next", value); }
20
+ function reject(value) { resume("throw", value); }
21
+ function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
22
+ };
23
+ var __asyncValues = (this && this.__asyncValues) || function (o) {
24
+ if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
25
+ var m = o[Symbol.asyncIterator], i;
26
+ return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
27
+ function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
28
+ function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
29
+ };
30
+ Object.defineProperty(exports, "__esModule", { value: true });
31
+ exports.Page = void 0;
32
+ /**
33
+ * A page of results from a paginated API.
34
+ *
35
+ * @template T The type of the items in the page.
36
+ */
37
+ class Page {
38
+ constructor({ response, hasNextPage, getItems, loadPage, }) {
39
+ this.response = response;
40
+ this.data = getItems(response);
41
+ this._hasNextPage = hasNextPage;
42
+ this.getItems = getItems;
43
+ this.loadNextPage = loadPage;
44
+ }
45
+ /**
46
+ * Retrieves the next page
47
+ * @returns this
48
+ */
49
+ getNextPage() {
50
+ return __awaiter(this, void 0, void 0, function* () {
51
+ this.response = yield this.loadNextPage(this.response);
52
+ this.data = this.getItems(this.response);
53
+ return this;
54
+ });
55
+ }
56
+ /**
57
+ * @returns whether there is a next page to load
58
+ */
59
+ hasNextPage() {
60
+ return this._hasNextPage(this.response);
61
+ }
62
+ iterMessages() {
63
+ return __asyncGenerator(this, arguments, function* iterMessages_1() {
64
+ for (const item of this.data) {
65
+ yield yield __await(item);
66
+ }
67
+ while (this.hasNextPage()) {
68
+ yield __await(this.getNextPage());
69
+ for (const item of this.data) {
70
+ yield yield __await(item);
71
+ }
72
+ }
73
+ });
74
+ }
75
+ [Symbol.asyncIterator]() {
76
+ return __asyncGenerator(this, arguments, function* _a() {
77
+ var e_1, _b;
78
+ try {
79
+ for (var _c = __asyncValues(this.iterMessages()), _d; _d = yield __await(_c.next()), !_d.done;) {
80
+ const message = _d.value;
81
+ yield yield __await(message);
82
+ }
83
+ }
84
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
85
+ finally {
86
+ try {
87
+ if (_d && !_d.done && (_b = _c.return)) yield __await(_b.call(_c));
88
+ }
89
+ finally { if (e_1) throw e_1.error; }
90
+ }
91
+ });
92
+ }
93
+ }
94
+ exports.Page = Page;