hume 0.9.17 → 0.9.18

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 (1113) hide show
  1. package/.mock/definition/empathic-voice/__package__.yml +60 -48
  2. package/.mock/definition/empathic-voice/chat.yml +16 -16
  3. package/.mock/definition/empathic-voice/configs.yml +8 -8
  4. package/.mock/definition/expression-measurement/stream/stream.yml +206 -206
  5. package/.mock/definition/tts/__package__.yml +51 -17
  6. package/.mock/definition/tts/voices.yml +8 -1
  7. package/.mock/fern.config.json +1 -1
  8. package/api/resources/empathicVoice/errors/BadRequestError.js +17 -7
  9. package/api/resources/empathicVoice/resources/chat/client/Client.js +17 -7
  10. package/api/resources/empathicVoice/resources/chat/client/Socket.js +17 -7
  11. package/api/resources/empathicVoice/resources/chat/types/PublishEvent.d.ts +1 -1
  12. package/api/resources/empathicVoice/resources/chat/types/SubscribeEvent.d.ts +1 -1
  13. package/api/resources/empathicVoice/resources/chat/types/index.d.ts +1 -1
  14. package/api/resources/empathicVoice/resources/chat/types/index.js +1 -1
  15. package/api/resources/empathicVoice/resources/chatGroups/client/Client.d.ts +4 -0
  16. package/api/resources/empathicVoice/resources/chatGroups/client/Client.js +41 -31
  17. package/api/resources/empathicVoice/resources/chats/client/Client.d.ts +4 -0
  18. package/api/resources/empathicVoice/resources/chats/client/Client.js +33 -23
  19. package/api/resources/empathicVoice/resources/configs/client/Client.d.ts +10 -6
  20. package/api/resources/empathicVoice/resources/configs/client/Client.js +65 -55
  21. package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +3 -3
  22. package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +3 -3
  23. package/api/resources/empathicVoice/resources/customVoices/client/Client.d.ts +6 -2
  24. package/api/resources/empathicVoice/resources/customVoices/client/Client.js +45 -35
  25. package/api/resources/empathicVoice/resources/index.js +17 -7
  26. package/api/resources/empathicVoice/resources/prompts/client/Client.d.ts +4 -0
  27. package/api/resources/empathicVoice/resources/prompts/client/Client.js +59 -49
  28. package/api/resources/empathicVoice/resources/tools/client/Client.d.ts +4 -0
  29. package/api/resources/empathicVoice/resources/tools/client/Client.js +59 -49
  30. package/api/resources/empathicVoice/types/BuiltInTool.d.ts +1 -1
  31. package/api/resources/empathicVoice/types/ChatMessageToolResult.d.ts +1 -1
  32. package/api/resources/empathicVoice/types/ContextType.d.ts +1 -1
  33. package/api/resources/empathicVoice/types/Encoding.d.ts +1 -1
  34. package/api/resources/empathicVoice/types/ErrorLevel.d.ts +1 -1
  35. package/api/resources/empathicVoice/types/JsonMessage.d.ts +1 -1
  36. package/api/resources/empathicVoice/types/PostedBuiltinToolName.d.ts +1 -1
  37. package/api/resources/empathicVoice/types/PostedCustomVoiceBaseVoice.d.ts +1 -1
  38. package/api/resources/empathicVoice/types/PostedLanguageModelModelProvider.d.ts +6 -4
  39. package/api/resources/empathicVoice/types/PostedLanguageModelModelProvider.js +5 -3
  40. package/api/resources/empathicVoice/types/PostedLanguageModelModelResource.d.ts +18 -19
  41. package/api/resources/empathicVoice/types/PostedLanguageModelModelResource.js +17 -18
  42. package/api/resources/empathicVoice/types/PostedVoiceProvider.d.ts +1 -1
  43. package/api/resources/empathicVoice/types/PostedWebhookEventType.d.ts +1 -1
  44. package/api/resources/empathicVoice/types/ReturnBuiltinToolToolType.d.ts +1 -1
  45. package/api/resources/empathicVoice/types/ReturnChatAudioReconstructionStatus.d.ts +1 -1
  46. package/api/resources/empathicVoice/types/ReturnChatEventRole.d.ts +1 -1
  47. package/api/resources/empathicVoice/types/ReturnChatEventType.d.ts +1 -1
  48. package/api/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructionsPaginationDirection.d.ts +1 -1
  49. package/api/resources/empathicVoice/types/ReturnChatGroupPagedChatsPaginationDirection.d.ts +1 -1
  50. package/api/resources/empathicVoice/types/ReturnChatGroupPagedEventsPaginationDirection.d.ts +1 -1
  51. package/api/resources/empathicVoice/types/ReturnChatPagedEventsPaginationDirection.d.ts +1 -1
  52. package/api/resources/empathicVoice/types/ReturnChatPagedEventsStatus.d.ts +1 -1
  53. package/api/resources/empathicVoice/types/ReturnChatStatus.d.ts +1 -1
  54. package/api/resources/empathicVoice/types/ReturnCustomVoiceBaseVoice.d.ts +1 -1
  55. package/api/resources/empathicVoice/types/ReturnLanguageModelModelProvider.d.ts +6 -4
  56. package/api/resources/empathicVoice/types/ReturnLanguageModelModelProvider.js +5 -3
  57. package/api/resources/empathicVoice/types/ReturnLanguageModelModelResource.d.ts +9 -4
  58. package/api/resources/empathicVoice/types/ReturnLanguageModelModelResource.js +8 -3
  59. package/api/resources/empathicVoice/types/ReturnPagedChatGroupsPaginationDirection.d.ts +1 -1
  60. package/api/resources/empathicVoice/types/ReturnPagedChatsPaginationDirection.d.ts +1 -1
  61. package/api/resources/empathicVoice/types/ReturnPromptVersionType.d.ts +1 -1
  62. package/api/resources/empathicVoice/types/ReturnUserDefinedToolToolType.d.ts +1 -1
  63. package/api/resources/empathicVoice/types/ReturnUserDefinedToolVersionType.d.ts +1 -1
  64. package/api/resources/empathicVoice/types/ReturnVoiceProvider.d.ts +1 -1
  65. package/api/resources/empathicVoice/types/ReturnWebhookEventType.d.ts +1 -1
  66. package/api/resources/empathicVoice/types/Role.d.ts +1 -1
  67. package/api/resources/empathicVoice/types/SessionSettingsVariablesValue.d.ts +1 -1
  68. package/api/resources/empathicVoice/types/ToolType.d.ts +1 -1
  69. package/api/resources/empathicVoice/types/ValidationErrorLocItem.d.ts +1 -1
  70. package/api/resources/empathicVoice/types/WebhookEvent.d.ts +1 -1
  71. package/api/resources/empathicVoice/types/WebhookEventChatStartType.d.ts +1 -1
  72. package/api/resources/empathicVoice/types/WebhookEventChatStatus.d.ts +1 -1
  73. package/api/resources/expressionMeasurement/client/Client.d.ts +3 -9
  74. package/api/resources/expressionMeasurement/resources/batch/client/Client.d.ts +4 -1
  75. package/api/resources/expressionMeasurement/resources/batch/client/Client.js +64 -41
  76. package/api/resources/expressionMeasurement/resources/batch/types/Alternative.d.ts +1 -1
  77. package/api/resources/expressionMeasurement/resources/batch/types/Bcp47Tag.d.ts +1 -1
  78. package/api/resources/expressionMeasurement/resources/batch/types/Classification.d.ts +1 -1
  79. package/api/resources/expressionMeasurement/resources/batch/types/CustomModel.d.ts +1 -1
  80. package/api/resources/expressionMeasurement/resources/batch/types/Dataset.d.ts +1 -1
  81. package/api/resources/expressionMeasurement/resources/batch/types/Direction.d.ts +1 -1
  82. package/api/resources/expressionMeasurement/resources/batch/types/Granularity.d.ts +1 -1
  83. package/api/resources/expressionMeasurement/resources/batch/types/Null.d.ts +1 -1
  84. package/api/resources/expressionMeasurement/resources/batch/types/Regression.d.ts +1 -1
  85. package/api/resources/expressionMeasurement/resources/batch/types/SortBy.d.ts +1 -1
  86. package/api/resources/expressionMeasurement/resources/batch/types/Source.d.ts +1 -1
  87. package/api/resources/expressionMeasurement/resources/batch/types/StateEmbeddingGeneration.d.ts +1 -1
  88. package/api/resources/expressionMeasurement/resources/batch/types/StateInference.d.ts +1 -1
  89. package/api/resources/expressionMeasurement/resources/batch/types/StateTlInference.d.ts +1 -1
  90. package/api/resources/expressionMeasurement/resources/batch/types/StateTraining.d.ts +1 -1
  91. package/api/resources/expressionMeasurement/resources/batch/types/Status.d.ts +1 -1
  92. package/api/resources/expressionMeasurement/resources/batch/types/Target.d.ts +1 -1
  93. package/api/resources/expressionMeasurement/resources/batch/types/Task.d.ts +1 -1
  94. package/api/resources/expressionMeasurement/resources/batch/types/TextSource.d.ts +1 -1
  95. package/api/resources/expressionMeasurement/resources/batch/types/Type.d.ts +1 -1
  96. package/api/resources/expressionMeasurement/resources/batch/types/Unconfigurable.d.ts +1 -1
  97. package/api/resources/expressionMeasurement/resources/batch/types/UnionJob.d.ts +1 -1
  98. package/api/resources/expressionMeasurement/resources/batch/types/UnionPredictResult.d.ts +1 -1
  99. package/api/resources/expressionMeasurement/resources/batch/types/When.d.ts +1 -1
  100. package/api/resources/expressionMeasurement/resources/index.js +17 -7
  101. package/api/resources/expressionMeasurement/resources/stream/resources/index.js +17 -7
  102. package/api/resources/expressionMeasurement/resources/stream/resources/stream/types/SubscribeEvent.d.ts +1 -1
  103. package/api/resources/expressionMeasurement/resources/stream/resources/stream/types/index.d.ts +4 -4
  104. package/api/resources/expressionMeasurement/resources/stream/resources/stream/types/index.js +4 -4
  105. package/api/resources/expressionMeasurement/resources/stream/types/EmotionEmbedding.d.ts +1 -1
  106. package/api/resources/expressionMeasurement/resources/stream/types/Sentiment.d.ts +1 -1
  107. package/api/resources/expressionMeasurement/resources/stream/types/Toxicity.d.ts +1 -1
  108. package/api/resources/index.js +17 -7
  109. package/api/resources/tts/client/Client.d.ts +6 -3
  110. package/api/resources/tts/client/Client.js +37 -27
  111. package/api/resources/tts/errors/BadRequestError.js +17 -7
  112. package/api/resources/tts/errors/UnprocessableEntityError.js +17 -7
  113. package/api/resources/tts/resources/index.js +17 -7
  114. package/api/resources/tts/resources/voices/client/Client.d.ts +5 -1
  115. package/api/resources/tts/resources/voices/client/Client.js +34 -22
  116. package/api/resources/tts/resources/voices/client/requests/VoicesListRequest.d.ts +1 -1
  117. package/api/resources/tts/types/AudioEncoding.d.ts +4 -1
  118. package/api/resources/tts/types/AudioFormatType.d.ts +1 -1
  119. package/api/resources/tts/types/Format.d.ts +1 -1
  120. package/api/resources/tts/types/PostedContext.d.ts +1 -1
  121. package/api/resources/tts/types/PostedTts.d.ts +5 -1
  122. package/api/resources/tts/types/PostedUtterance.d.ts +2 -4
  123. package/api/resources/tts/types/PostedUtteranceVoice.d.ts +1 -1
  124. package/api/resources/tts/types/ReturnGeneration.d.ts +1 -1
  125. package/api/resources/tts/types/ReturnPagedVoices.d.ts +12 -0
  126. package/api/resources/tts/types/ValidationErrorLocItem.d.ts +1 -1
  127. package/api/resources/tts/types/VoiceProvider.d.ts +1 -1
  128. package/core/fetcher/APIResponse.d.ts +1 -1
  129. package/core/fetcher/Fetcher.d.ts +3 -3
  130. package/core/fetcher/Fetcher.js +6 -5
  131. package/core/fetcher/Supplier.d.ts +1 -1
  132. package/core/fetcher/createRequestUrl.d.ts +1 -1
  133. package/core/fetcher/createRequestUrl.js +1 -2
  134. package/core/fetcher/getFetchFn.js +18 -9
  135. package/core/fetcher/getHeader.js +1 -2
  136. package/core/fetcher/getRequestBody.js +5 -5
  137. package/core/fetcher/getResponseBody.js +4 -2
  138. package/core/fetcher/makeRequest.d.ts +1 -1
  139. package/core/fetcher/requestWithRetries.js +17 -9
  140. package/core/fetcher/signals.d.ts +0 -1
  141. package/core/fetcher/signals.js +2 -3
  142. package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +0 -1
  143. package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +6 -4
  144. package/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +1 -1
  145. package/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +1 -1
  146. package/core/fetcher/stream-wrappers/chooseStreamWrapper.js +18 -9
  147. package/core/form-data-utils/FormDataWrapper.d.ts +4 -4
  148. package/core/form-data-utils/FormDataWrapper.js +27 -13
  149. package/core/form-data-utils/encodeAsFormParameter.d.ts +4 -0
  150. package/core/form-data-utils/encodeAsFormParameter.js +18 -0
  151. package/core/form-data-utils/index.d.ts +1 -0
  152. package/core/form-data-utils/index.js +3 -0
  153. package/core/index.js +17 -7
  154. package/core/json.d.ts +15 -0
  155. package/core/json.js +24 -0
  156. package/core/pagination/Page.js +9 -6
  157. package/core/runtime/runtime.d.ts +1 -1
  158. package/core/runtime/runtime.js +51 -41
  159. package/core/schemas/Schema.d.ts +8 -5
  160. package/core/schemas/Schema.js +3 -0
  161. package/core/schemas/builders/bigint/bigint.d.ts +2 -0
  162. package/core/schemas/builders/bigint/bigint.js +53 -0
  163. package/core/schemas/builders/bigint/index.d.ts +1 -0
  164. package/core/schemas/builders/bigint/index.js +5 -0
  165. package/core/schemas/builders/date/date.js +1 -2
  166. package/core/schemas/builders/enum/enum.js +1 -2
  167. package/core/schemas/builders/index.d.ts +1 -0
  168. package/core/schemas/builders/index.js +1 -0
  169. package/core/schemas/builders/lazy/lazy.d.ts +1 -1
  170. package/core/schemas/builders/lazy/lazy.js +3 -4
  171. package/core/schemas/builders/lazy/lazyObject.js +1 -2
  172. package/core/schemas/builders/list/list.js +1 -2
  173. package/core/schemas/builders/literals/booleanLiteral.js +1 -2
  174. package/core/schemas/builders/literals/stringLiteral.js +1 -2
  175. package/core/schemas/builders/object/object.d.ts +1 -1
  176. package/core/schemas/builders/object/object.js +31 -3
  177. package/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +3 -3
  178. package/core/schemas/builders/object/objectWithoutOptionalProperties.js +1 -2
  179. package/core/schemas/builders/object/property.js +2 -3
  180. package/core/schemas/builders/object/types.d.ts +16 -11
  181. package/core/schemas/builders/object-like/getObjectLikeUtils.js +2 -3
  182. package/core/schemas/builders/object-like/types.d.ts +1 -1
  183. package/core/schemas/builders/record/record.js +2 -4
  184. package/core/schemas/builders/record/types.d.ts +2 -2
  185. package/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +4 -0
  186. package/core/schemas/builders/schema-utils/getSchemaUtils.js +67 -4
  187. package/core/schemas/builders/schema-utils/stringifyValidationErrors.js +1 -2
  188. package/core/schemas/builders/set/set.js +1 -2
  189. package/core/schemas/builders/undiscriminated-union/types.d.ts +4 -4
  190. package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +1 -2
  191. package/core/schemas/builders/union/discriminant.js +1 -2
  192. package/core/schemas/builders/union/types.d.ts +6 -6
  193. package/core/schemas/builders/union/union.d.ts +1 -1
  194. package/core/schemas/builders/union/union.js +1 -2
  195. package/core/schemas/utils/MaybePromise.d.ts +1 -1
  196. package/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +4 -4
  197. package/core/schemas/utils/createIdentitySchemaCreator.js +1 -2
  198. package/core/schemas/utils/entries.d.ts +1 -1
  199. package/core/schemas/utils/entries.js +1 -2
  200. package/core/schemas/utils/filterObject.d.ts +1 -1
  201. package/core/schemas/utils/filterObject.js +1 -2
  202. package/core/schemas/utils/getErrorMessageForIncorrectType.js +5 -2
  203. package/core/schemas/utils/isPlainObject.js +1 -2
  204. package/core/schemas/utils/keys.d.ts +1 -1
  205. package/core/schemas/utils/keys.js +1 -2
  206. package/core/schemas/utils/maybeSkipValidation.js +1 -2
  207. package/core/schemas/utils/partition.js +1 -2
  208. package/core/streaming-fetcher/Stream.d.ts +0 -1
  209. package/core/streaming-fetcher/Stream.js +20 -21
  210. package/core/utils/setObjectProperty.js +1 -2
  211. package/core/websocket/ws.d.ts +7 -7
  212. package/core/websocket/ws.js +17 -7
  213. package/dist/api/resources/empathicVoice/errors/BadRequestError.js +17 -7
  214. package/dist/api/resources/empathicVoice/resources/chat/client/Client.js +17 -7
  215. package/dist/api/resources/empathicVoice/resources/chat/client/Socket.js +17 -7
  216. package/dist/api/resources/empathicVoice/resources/chat/types/PublishEvent.d.ts +1 -1
  217. package/dist/api/resources/empathicVoice/resources/chat/types/SubscribeEvent.d.ts +1 -1
  218. package/dist/api/resources/empathicVoice/resources/chat/types/index.d.ts +1 -1
  219. package/dist/api/resources/empathicVoice/resources/chat/types/index.js +1 -1
  220. package/dist/api/resources/empathicVoice/resources/chatGroups/client/Client.d.ts +4 -0
  221. package/dist/api/resources/empathicVoice/resources/chatGroups/client/Client.js +41 -31
  222. package/dist/api/resources/empathicVoice/resources/chats/client/Client.d.ts +4 -0
  223. package/dist/api/resources/empathicVoice/resources/chats/client/Client.js +33 -23
  224. package/dist/api/resources/empathicVoice/resources/configs/client/Client.d.ts +10 -6
  225. package/dist/api/resources/empathicVoice/resources/configs/client/Client.js +65 -55
  226. package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +3 -3
  227. package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +3 -3
  228. package/dist/api/resources/empathicVoice/resources/customVoices/client/Client.d.ts +6 -2
  229. package/dist/api/resources/empathicVoice/resources/customVoices/client/Client.js +45 -35
  230. package/dist/api/resources/empathicVoice/resources/index.js +17 -7
  231. package/dist/api/resources/empathicVoice/resources/prompts/client/Client.d.ts +4 -0
  232. package/dist/api/resources/empathicVoice/resources/prompts/client/Client.js +59 -49
  233. package/dist/api/resources/empathicVoice/resources/tools/client/Client.d.ts +4 -0
  234. package/dist/api/resources/empathicVoice/resources/tools/client/Client.js +59 -49
  235. package/dist/api/resources/empathicVoice/types/BuiltInTool.d.ts +1 -1
  236. package/dist/api/resources/empathicVoice/types/ChatMessageToolResult.d.ts +1 -1
  237. package/dist/api/resources/empathicVoice/types/ContextType.d.ts +1 -1
  238. package/dist/api/resources/empathicVoice/types/Encoding.d.ts +1 -1
  239. package/dist/api/resources/empathicVoice/types/ErrorLevel.d.ts +1 -1
  240. package/dist/api/resources/empathicVoice/types/JsonMessage.d.ts +1 -1
  241. package/dist/api/resources/empathicVoice/types/PostedBuiltinToolName.d.ts +1 -1
  242. package/dist/api/resources/empathicVoice/types/PostedCustomVoiceBaseVoice.d.ts +1 -1
  243. package/dist/api/resources/empathicVoice/types/PostedLanguageModelModelProvider.d.ts +6 -4
  244. package/dist/api/resources/empathicVoice/types/PostedLanguageModelModelProvider.js +5 -3
  245. package/dist/api/resources/empathicVoice/types/PostedLanguageModelModelResource.d.ts +18 -19
  246. package/dist/api/resources/empathicVoice/types/PostedLanguageModelModelResource.js +17 -18
  247. package/dist/api/resources/empathicVoice/types/PostedVoiceProvider.d.ts +1 -1
  248. package/dist/api/resources/empathicVoice/types/PostedWebhookEventType.d.ts +1 -1
  249. package/dist/api/resources/empathicVoice/types/ReturnBuiltinToolToolType.d.ts +1 -1
  250. package/dist/api/resources/empathicVoice/types/ReturnChatAudioReconstructionStatus.d.ts +1 -1
  251. package/dist/api/resources/empathicVoice/types/ReturnChatEventRole.d.ts +1 -1
  252. package/dist/api/resources/empathicVoice/types/ReturnChatEventType.d.ts +1 -1
  253. package/dist/api/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructionsPaginationDirection.d.ts +1 -1
  254. package/dist/api/resources/empathicVoice/types/ReturnChatGroupPagedChatsPaginationDirection.d.ts +1 -1
  255. package/dist/api/resources/empathicVoice/types/ReturnChatGroupPagedEventsPaginationDirection.d.ts +1 -1
  256. package/dist/api/resources/empathicVoice/types/ReturnChatPagedEventsPaginationDirection.d.ts +1 -1
  257. package/dist/api/resources/empathicVoice/types/ReturnChatPagedEventsStatus.d.ts +1 -1
  258. package/dist/api/resources/empathicVoice/types/ReturnChatStatus.d.ts +1 -1
  259. package/dist/api/resources/empathicVoice/types/ReturnCustomVoiceBaseVoice.d.ts +1 -1
  260. package/dist/api/resources/empathicVoice/types/ReturnLanguageModelModelProvider.d.ts +6 -4
  261. package/dist/api/resources/empathicVoice/types/ReturnLanguageModelModelProvider.js +5 -3
  262. package/dist/api/resources/empathicVoice/types/ReturnLanguageModelModelResource.d.ts +9 -4
  263. package/dist/api/resources/empathicVoice/types/ReturnLanguageModelModelResource.js +8 -3
  264. package/dist/api/resources/empathicVoice/types/ReturnPagedChatGroupsPaginationDirection.d.ts +1 -1
  265. package/dist/api/resources/empathicVoice/types/ReturnPagedChatsPaginationDirection.d.ts +1 -1
  266. package/dist/api/resources/empathicVoice/types/ReturnPromptVersionType.d.ts +1 -1
  267. package/dist/api/resources/empathicVoice/types/ReturnUserDefinedToolToolType.d.ts +1 -1
  268. package/dist/api/resources/empathicVoice/types/ReturnUserDefinedToolVersionType.d.ts +1 -1
  269. package/dist/api/resources/empathicVoice/types/ReturnVoiceProvider.d.ts +1 -1
  270. package/dist/api/resources/empathicVoice/types/ReturnWebhookEventType.d.ts +1 -1
  271. package/dist/api/resources/empathicVoice/types/Role.d.ts +1 -1
  272. package/dist/api/resources/empathicVoice/types/SessionSettingsVariablesValue.d.ts +1 -1
  273. package/dist/api/resources/empathicVoice/types/ToolType.d.ts +1 -1
  274. package/dist/api/resources/empathicVoice/types/ValidationErrorLocItem.d.ts +1 -1
  275. package/dist/api/resources/empathicVoice/types/WebhookEvent.d.ts +1 -1
  276. package/dist/api/resources/empathicVoice/types/WebhookEventChatStartType.d.ts +1 -1
  277. package/dist/api/resources/empathicVoice/types/WebhookEventChatStatus.d.ts +1 -1
  278. package/dist/api/resources/expressionMeasurement/client/Client.d.ts +3 -9
  279. package/dist/api/resources/expressionMeasurement/resources/batch/client/Client.d.ts +4 -1
  280. package/dist/api/resources/expressionMeasurement/resources/batch/client/Client.js +64 -41
  281. package/dist/api/resources/expressionMeasurement/resources/batch/types/Alternative.d.ts +1 -1
  282. package/dist/api/resources/expressionMeasurement/resources/batch/types/Bcp47Tag.d.ts +1 -1
  283. package/dist/api/resources/expressionMeasurement/resources/batch/types/Classification.d.ts +1 -1
  284. package/dist/api/resources/expressionMeasurement/resources/batch/types/CustomModel.d.ts +1 -1
  285. package/dist/api/resources/expressionMeasurement/resources/batch/types/Dataset.d.ts +1 -1
  286. package/dist/api/resources/expressionMeasurement/resources/batch/types/Direction.d.ts +1 -1
  287. package/dist/api/resources/expressionMeasurement/resources/batch/types/Granularity.d.ts +1 -1
  288. package/dist/api/resources/expressionMeasurement/resources/batch/types/Null.d.ts +1 -1
  289. package/dist/api/resources/expressionMeasurement/resources/batch/types/Regression.d.ts +1 -1
  290. package/dist/api/resources/expressionMeasurement/resources/batch/types/SortBy.d.ts +1 -1
  291. package/dist/api/resources/expressionMeasurement/resources/batch/types/Source.d.ts +1 -1
  292. package/dist/api/resources/expressionMeasurement/resources/batch/types/StateEmbeddingGeneration.d.ts +1 -1
  293. package/dist/api/resources/expressionMeasurement/resources/batch/types/StateInference.d.ts +1 -1
  294. package/dist/api/resources/expressionMeasurement/resources/batch/types/StateTlInference.d.ts +1 -1
  295. package/dist/api/resources/expressionMeasurement/resources/batch/types/StateTraining.d.ts +1 -1
  296. package/dist/api/resources/expressionMeasurement/resources/batch/types/Status.d.ts +1 -1
  297. package/dist/api/resources/expressionMeasurement/resources/batch/types/Target.d.ts +1 -1
  298. package/dist/api/resources/expressionMeasurement/resources/batch/types/Task.d.ts +1 -1
  299. package/dist/api/resources/expressionMeasurement/resources/batch/types/TextSource.d.ts +1 -1
  300. package/dist/api/resources/expressionMeasurement/resources/batch/types/Type.d.ts +1 -1
  301. package/dist/api/resources/expressionMeasurement/resources/batch/types/Unconfigurable.d.ts +1 -1
  302. package/dist/api/resources/expressionMeasurement/resources/batch/types/UnionJob.d.ts +1 -1
  303. package/dist/api/resources/expressionMeasurement/resources/batch/types/UnionPredictResult.d.ts +1 -1
  304. package/dist/api/resources/expressionMeasurement/resources/batch/types/When.d.ts +1 -1
  305. package/dist/api/resources/expressionMeasurement/resources/index.js +17 -7
  306. package/dist/api/resources/expressionMeasurement/resources/stream/resources/index.js +17 -7
  307. package/dist/api/resources/expressionMeasurement/resources/stream/resources/stream/types/SubscribeEvent.d.ts +1 -1
  308. package/dist/api/resources/expressionMeasurement/resources/stream/resources/stream/types/index.d.ts +4 -4
  309. package/dist/api/resources/expressionMeasurement/resources/stream/resources/stream/types/index.js +4 -4
  310. package/dist/api/resources/expressionMeasurement/resources/stream/types/EmotionEmbedding.d.ts +1 -1
  311. package/dist/api/resources/expressionMeasurement/resources/stream/types/Sentiment.d.ts +1 -1
  312. package/dist/api/resources/expressionMeasurement/resources/stream/types/Toxicity.d.ts +1 -1
  313. package/dist/api/resources/index.js +17 -7
  314. package/dist/api/resources/tts/client/Client.d.ts +6 -3
  315. package/dist/api/resources/tts/client/Client.js +37 -27
  316. package/dist/api/resources/tts/errors/BadRequestError.js +17 -7
  317. package/dist/api/resources/tts/errors/UnprocessableEntityError.js +17 -7
  318. package/dist/api/resources/tts/resources/index.js +17 -7
  319. package/dist/api/resources/tts/resources/voices/client/Client.d.ts +5 -1
  320. package/dist/api/resources/tts/resources/voices/client/Client.js +34 -22
  321. package/dist/api/resources/tts/resources/voices/client/requests/VoicesListRequest.d.ts +1 -1
  322. package/dist/api/resources/tts/types/AudioEncoding.d.ts +4 -1
  323. package/dist/api/resources/tts/types/AudioFormatType.d.ts +1 -1
  324. package/dist/api/resources/tts/types/Format.d.ts +1 -1
  325. package/dist/api/resources/tts/types/PostedContext.d.ts +1 -1
  326. package/dist/api/resources/tts/types/PostedTts.d.ts +5 -1
  327. package/dist/api/resources/tts/types/PostedUtterance.d.ts +2 -4
  328. package/dist/api/resources/tts/types/PostedUtteranceVoice.d.ts +1 -1
  329. package/dist/api/resources/tts/types/ReturnGeneration.d.ts +1 -1
  330. package/dist/api/resources/tts/types/ReturnPagedVoices.d.ts +12 -0
  331. package/dist/api/resources/tts/types/ValidationErrorLocItem.d.ts +1 -1
  332. package/dist/api/resources/tts/types/VoiceProvider.d.ts +1 -1
  333. package/dist/core/fetcher/APIResponse.d.ts +1 -1
  334. package/dist/core/fetcher/Fetcher.d.ts +3 -3
  335. package/dist/core/fetcher/Fetcher.js +6 -5
  336. package/dist/core/fetcher/Supplier.d.ts +1 -1
  337. package/dist/core/fetcher/createRequestUrl.d.ts +1 -1
  338. package/dist/core/fetcher/createRequestUrl.js +1 -2
  339. package/dist/core/fetcher/getFetchFn.js +18 -9
  340. package/dist/core/fetcher/getHeader.js +1 -2
  341. package/dist/core/fetcher/getRequestBody.js +5 -5
  342. package/dist/core/fetcher/getResponseBody.js +4 -2
  343. package/dist/core/fetcher/makeRequest.d.ts +1 -1
  344. package/dist/core/fetcher/requestWithRetries.js +17 -9
  345. package/dist/core/fetcher/signals.d.ts +0 -1
  346. package/dist/core/fetcher/signals.js +2 -3
  347. package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +0 -1
  348. package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +6 -4
  349. package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +1 -1
  350. package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +1 -1
  351. package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.js +18 -9
  352. package/dist/core/form-data-utils/FormDataWrapper.d.ts +4 -4
  353. package/dist/core/form-data-utils/FormDataWrapper.js +27 -13
  354. package/dist/core/form-data-utils/encodeAsFormParameter.d.ts +4 -0
  355. package/dist/core/form-data-utils/encodeAsFormParameter.js +18 -0
  356. package/dist/core/form-data-utils/index.d.ts +1 -0
  357. package/dist/core/form-data-utils/index.js +3 -0
  358. package/dist/core/index.js +17 -7
  359. package/dist/core/json.d.ts +15 -0
  360. package/dist/core/json.js +24 -0
  361. package/dist/core/pagination/Page.js +9 -6
  362. package/dist/core/runtime/runtime.d.ts +1 -1
  363. package/dist/core/runtime/runtime.js +51 -41
  364. package/dist/core/schemas/Schema.d.ts +8 -5
  365. package/dist/core/schemas/Schema.js +3 -0
  366. package/dist/core/schemas/builders/bigint/bigint.d.ts +2 -0
  367. package/dist/core/schemas/builders/bigint/bigint.js +53 -0
  368. package/dist/core/schemas/builders/bigint/index.d.ts +1 -0
  369. package/dist/core/schemas/builders/bigint/index.js +5 -0
  370. package/dist/core/schemas/builders/date/date.js +1 -2
  371. package/dist/core/schemas/builders/enum/enum.js +1 -2
  372. package/dist/core/schemas/builders/index.d.ts +1 -0
  373. package/dist/core/schemas/builders/index.js +1 -0
  374. package/dist/core/schemas/builders/lazy/lazy.d.ts +1 -1
  375. package/dist/core/schemas/builders/lazy/lazy.js +3 -4
  376. package/dist/core/schemas/builders/lazy/lazyObject.js +1 -2
  377. package/dist/core/schemas/builders/list/list.js +1 -2
  378. package/dist/core/schemas/builders/literals/booleanLiteral.js +1 -2
  379. package/dist/core/schemas/builders/literals/stringLiteral.js +1 -2
  380. package/dist/core/schemas/builders/object/object.d.ts +1 -1
  381. package/dist/core/schemas/builders/object/object.js +31 -3
  382. package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +3 -3
  383. package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.js +1 -2
  384. package/dist/core/schemas/builders/object/property.js +2 -3
  385. package/dist/core/schemas/builders/object/types.d.ts +16 -11
  386. package/dist/core/schemas/builders/object-like/getObjectLikeUtils.js +2 -3
  387. package/dist/core/schemas/builders/object-like/types.d.ts +1 -1
  388. package/dist/core/schemas/builders/record/record.js +2 -4
  389. package/dist/core/schemas/builders/record/types.d.ts +2 -2
  390. package/dist/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +4 -0
  391. package/dist/core/schemas/builders/schema-utils/getSchemaUtils.js +67 -4
  392. package/dist/core/schemas/builders/schema-utils/stringifyValidationErrors.js +1 -2
  393. package/dist/core/schemas/builders/set/set.js +1 -2
  394. package/dist/core/schemas/builders/undiscriminated-union/types.d.ts +4 -4
  395. package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +1 -2
  396. package/dist/core/schemas/builders/union/discriminant.js +1 -2
  397. package/dist/core/schemas/builders/union/types.d.ts +6 -6
  398. package/dist/core/schemas/builders/union/union.d.ts +1 -1
  399. package/dist/core/schemas/builders/union/union.js +1 -2
  400. package/dist/core/schemas/utils/MaybePromise.d.ts +1 -1
  401. package/dist/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +4 -4
  402. package/dist/core/schemas/utils/createIdentitySchemaCreator.js +1 -2
  403. package/dist/core/schemas/utils/entries.d.ts +1 -1
  404. package/dist/core/schemas/utils/entries.js +1 -2
  405. package/dist/core/schemas/utils/filterObject.d.ts +1 -1
  406. package/dist/core/schemas/utils/filterObject.js +1 -2
  407. package/dist/core/schemas/utils/getErrorMessageForIncorrectType.js +5 -2
  408. package/dist/core/schemas/utils/isPlainObject.js +1 -2
  409. package/dist/core/schemas/utils/keys.d.ts +1 -1
  410. package/dist/core/schemas/utils/keys.js +1 -2
  411. package/dist/core/schemas/utils/maybeSkipValidation.js +1 -2
  412. package/dist/core/schemas/utils/partition.js +1 -2
  413. package/dist/core/streaming-fetcher/Stream.d.ts +0 -1
  414. package/dist/core/streaming-fetcher/Stream.js +20 -21
  415. package/dist/core/utils/setObjectProperty.js +1 -2
  416. package/dist/core/websocket/ws.d.ts +7 -7
  417. package/dist/core/websocket/ws.js +17 -7
  418. package/dist/environments.d.ts +1 -1
  419. package/dist/errors/HumeTimeoutError.d.ts +1 -1
  420. package/dist/errors/HumeTimeoutError.js +2 -2
  421. package/dist/index.js +17 -7
  422. package/dist/serialization/resources/empathicVoice/resources/chat/types/PublishEvent.js +17 -7
  423. package/dist/serialization/resources/empathicVoice/resources/chat/types/SubscribeEvent.js +17 -7
  424. package/dist/serialization/resources/empathicVoice/resources/chat/types/index.d.ts +1 -1
  425. package/dist/serialization/resources/empathicVoice/resources/chat/types/index.js +1 -1
  426. package/dist/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfig.js +17 -7
  427. package/dist/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigName.js +17 -7
  428. package/dist/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.js +17 -7
  429. package/dist/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersionDescription.js +17 -7
  430. package/dist/serialization/resources/empathicVoice/resources/customVoices/client/requests/PostedCustomVoiceName.js +17 -7
  431. package/dist/serialization/resources/empathicVoice/resources/index.js +17 -7
  432. package/dist/serialization/resources/empathicVoice/resources/prompts/client/index.js +17 -7
  433. package/dist/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPrompt.js +17 -7
  434. package/dist/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPromptName.js +17 -7
  435. package/dist/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.js +17 -7
  436. package/dist/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersionDescription.js +17 -7
  437. package/dist/serialization/resources/empathicVoice/resources/tools/client/index.js +17 -7
  438. package/dist/serialization/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedTool.js +17 -7
  439. package/dist/serialization/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolName.js +17 -7
  440. package/dist/serialization/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersion.js +17 -7
  441. package/dist/serialization/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersionDescription.js +17 -7
  442. package/dist/serialization/resources/empathicVoice/types/AssistantEnd.js +17 -7
  443. package/dist/serialization/resources/empathicVoice/types/AssistantInput.js +17 -7
  444. package/dist/serialization/resources/empathicVoice/types/AssistantMessage.js +17 -7
  445. package/dist/serialization/resources/empathicVoice/types/AudioConfiguration.js +17 -7
  446. package/dist/serialization/resources/empathicVoice/types/AudioInput.js +17 -7
  447. package/dist/serialization/resources/empathicVoice/types/AudioOutput.js +17 -7
  448. package/dist/serialization/resources/empathicVoice/types/BuiltInTool.js +17 -7
  449. package/dist/serialization/resources/empathicVoice/types/BuiltinToolConfig.js +17 -7
  450. package/dist/serialization/resources/empathicVoice/types/ChatMessage.js +17 -7
  451. package/dist/serialization/resources/empathicVoice/types/ChatMessageToolResult.js +17 -7
  452. package/dist/serialization/resources/empathicVoice/types/ChatMetadata.js +17 -7
  453. package/dist/serialization/resources/empathicVoice/types/Context.js +17 -7
  454. package/dist/serialization/resources/empathicVoice/types/ContextType.js +17 -7
  455. package/dist/serialization/resources/empathicVoice/types/EmotionScores.js +17 -7
  456. package/dist/serialization/resources/empathicVoice/types/Encoding.js +17 -7
  457. package/dist/serialization/resources/empathicVoice/types/ErrorLevel.js +17 -7
  458. package/dist/serialization/resources/empathicVoice/types/ErrorResponse.js +17 -7
  459. package/dist/serialization/resources/empathicVoice/types/FunctionCallResponseInput.js +17 -7
  460. package/dist/serialization/resources/empathicVoice/types/HttpValidationError.js +17 -7
  461. package/dist/serialization/resources/empathicVoice/types/Inference.js +17 -7
  462. package/dist/serialization/resources/empathicVoice/types/JsonMessage.js +17 -7
  463. package/dist/serialization/resources/empathicVoice/types/MillisecondInterval.js +17 -7
  464. package/dist/serialization/resources/empathicVoice/types/PauseAssistantMessage.js +17 -7
  465. package/dist/serialization/resources/empathicVoice/types/PostedBuiltinTool.js +17 -7
  466. package/dist/serialization/resources/empathicVoice/types/PostedBuiltinToolName.js +17 -7
  467. package/dist/serialization/resources/empathicVoice/types/PostedConfigPromptSpec.js +17 -7
  468. package/dist/serialization/resources/empathicVoice/types/PostedCustomVoice.js +17 -7
  469. package/dist/serialization/resources/empathicVoice/types/PostedCustomVoiceBaseVoice.js +17 -7
  470. package/dist/serialization/resources/empathicVoice/types/PostedCustomVoiceParameters.js +17 -7
  471. package/dist/serialization/resources/empathicVoice/types/PostedEllmModel.js +17 -7
  472. package/dist/serialization/resources/empathicVoice/types/PostedEventMessageSpec.js +17 -7
  473. package/dist/serialization/resources/empathicVoice/types/PostedEventMessageSpecs.js +17 -7
  474. package/dist/serialization/resources/empathicVoice/types/PostedLanguageModel.js +17 -7
  475. package/dist/serialization/resources/empathicVoice/types/PostedLanguageModelModelProvider.d.ts +1 -1
  476. package/dist/serialization/resources/empathicVoice/types/PostedLanguageModelModelProvider.js +27 -8
  477. package/dist/serialization/resources/empathicVoice/types/PostedLanguageModelModelResource.d.ts +1 -1
  478. package/dist/serialization/resources/empathicVoice/types/PostedLanguageModelModelResource.js +34 -25
  479. package/dist/serialization/resources/empathicVoice/types/PostedPromptSpec.js +17 -7
  480. package/dist/serialization/resources/empathicVoice/types/PostedTimeoutSpec.js +17 -7
  481. package/dist/serialization/resources/empathicVoice/types/PostedTimeoutSpecs.js +17 -7
  482. package/dist/serialization/resources/empathicVoice/types/PostedTimeoutSpecsInactivity.js +17 -7
  483. package/dist/serialization/resources/empathicVoice/types/PostedTimeoutSpecsMaxDuration.js +17 -7
  484. package/dist/serialization/resources/empathicVoice/types/PostedUserDefinedToolSpec.js +17 -7
  485. package/dist/serialization/resources/empathicVoice/types/PostedVoice.js +17 -7
  486. package/dist/serialization/resources/empathicVoice/types/PostedVoiceProvider.js +17 -7
  487. package/dist/serialization/resources/empathicVoice/types/PostedWebhookEventType.js +17 -7
  488. package/dist/serialization/resources/empathicVoice/types/PostedWebhookSpec.js +17 -7
  489. package/dist/serialization/resources/empathicVoice/types/ProsodyInference.js +17 -7
  490. package/dist/serialization/resources/empathicVoice/types/ResumeAssistantMessage.js +17 -7
  491. package/dist/serialization/resources/empathicVoice/types/ReturnBuiltinTool.js +17 -7
  492. package/dist/serialization/resources/empathicVoice/types/ReturnBuiltinToolToolType.js +17 -7
  493. package/dist/serialization/resources/empathicVoice/types/ReturnChat.js +17 -7
  494. package/dist/serialization/resources/empathicVoice/types/ReturnChatAudioReconstruction.js +17 -7
  495. package/dist/serialization/resources/empathicVoice/types/ReturnChatAudioReconstructionStatus.js +17 -7
  496. package/dist/serialization/resources/empathicVoice/types/ReturnChatEvent.js +17 -7
  497. package/dist/serialization/resources/empathicVoice/types/ReturnChatEventRole.js +17 -7
  498. package/dist/serialization/resources/empathicVoice/types/ReturnChatEventType.js +17 -7
  499. package/dist/serialization/resources/empathicVoice/types/ReturnChatGroup.js +17 -7
  500. package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructions.js +17 -7
  501. package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructionsPaginationDirection.js +17 -7
  502. package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedChats.js +17 -7
  503. package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedChatsPaginationDirection.js +17 -7
  504. package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEvents.js +17 -7
  505. package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEventsPaginationDirection.js +17 -7
  506. package/dist/serialization/resources/empathicVoice/types/ReturnChatPagedEvents.js +17 -7
  507. package/dist/serialization/resources/empathicVoice/types/ReturnChatPagedEventsPaginationDirection.js +17 -7
  508. package/dist/serialization/resources/empathicVoice/types/ReturnChatPagedEventsStatus.js +17 -7
  509. package/dist/serialization/resources/empathicVoice/types/ReturnChatStatus.js +17 -7
  510. package/dist/serialization/resources/empathicVoice/types/ReturnConfig.js +17 -7
  511. package/dist/serialization/resources/empathicVoice/types/ReturnConfigSpec.js +17 -7
  512. package/dist/serialization/resources/empathicVoice/types/ReturnCustomVoice.js +17 -7
  513. package/dist/serialization/resources/empathicVoice/types/ReturnCustomVoiceBaseVoice.js +17 -7
  514. package/dist/serialization/resources/empathicVoice/types/ReturnCustomVoiceParameters.js +17 -7
  515. package/dist/serialization/resources/empathicVoice/types/ReturnEllmModel.js +17 -7
  516. package/dist/serialization/resources/empathicVoice/types/ReturnEventMessageSpec.js +17 -7
  517. package/dist/serialization/resources/empathicVoice/types/ReturnEventMessageSpecs.js +17 -7
  518. package/dist/serialization/resources/empathicVoice/types/ReturnLanguageModel.js +17 -7
  519. package/dist/serialization/resources/empathicVoice/types/ReturnLanguageModelModelProvider.d.ts +1 -1
  520. package/dist/serialization/resources/empathicVoice/types/ReturnLanguageModelModelProvider.js +27 -8
  521. package/dist/serialization/resources/empathicVoice/types/ReturnLanguageModelModelResource.d.ts +1 -1
  522. package/dist/serialization/resources/empathicVoice/types/ReturnLanguageModelModelResource.js +25 -10
  523. package/dist/serialization/resources/empathicVoice/types/ReturnPagedChatGroups.js +17 -7
  524. package/dist/serialization/resources/empathicVoice/types/ReturnPagedChatGroupsPaginationDirection.js +17 -7
  525. package/dist/serialization/resources/empathicVoice/types/ReturnPagedChats.js +17 -7
  526. package/dist/serialization/resources/empathicVoice/types/ReturnPagedChatsPaginationDirection.js +17 -7
  527. package/dist/serialization/resources/empathicVoice/types/ReturnPagedConfigs.js +17 -7
  528. package/dist/serialization/resources/empathicVoice/types/ReturnPagedCustomVoices.js +17 -7
  529. package/dist/serialization/resources/empathicVoice/types/ReturnPagedPrompts.js +17 -7
  530. package/dist/serialization/resources/empathicVoice/types/ReturnPagedUserDefinedTools.js +17 -7
  531. package/dist/serialization/resources/empathicVoice/types/ReturnPrompt.js +17 -7
  532. package/dist/serialization/resources/empathicVoice/types/ReturnPromptVersionType.js +17 -7
  533. package/dist/serialization/resources/empathicVoice/types/ReturnTimeoutSpec.js +17 -7
  534. package/dist/serialization/resources/empathicVoice/types/ReturnTimeoutSpecs.js +17 -7
  535. package/dist/serialization/resources/empathicVoice/types/ReturnUserDefinedTool.js +17 -7
  536. package/dist/serialization/resources/empathicVoice/types/ReturnUserDefinedToolToolType.js +17 -7
  537. package/dist/serialization/resources/empathicVoice/types/ReturnUserDefinedToolVersionType.js +17 -7
  538. package/dist/serialization/resources/empathicVoice/types/ReturnVoice.js +17 -7
  539. package/dist/serialization/resources/empathicVoice/types/ReturnVoiceProvider.js +17 -7
  540. package/dist/serialization/resources/empathicVoice/types/ReturnWebhookEventType.js +17 -7
  541. package/dist/serialization/resources/empathicVoice/types/ReturnWebhookSpec.js +17 -7
  542. package/dist/serialization/resources/empathicVoice/types/Role.js +17 -7
  543. package/dist/serialization/resources/empathicVoice/types/SessionSettings.js +17 -7
  544. package/dist/serialization/resources/empathicVoice/types/SessionSettingsVariablesValue.js +17 -7
  545. package/dist/serialization/resources/empathicVoice/types/TextInput.js +17 -7
  546. package/dist/serialization/resources/empathicVoice/types/Tool.js +17 -7
  547. package/dist/serialization/resources/empathicVoice/types/ToolCallMessage.js +17 -7
  548. package/dist/serialization/resources/empathicVoice/types/ToolErrorMessage.js +17 -7
  549. package/dist/serialization/resources/empathicVoice/types/ToolResponseMessage.js +17 -7
  550. package/dist/serialization/resources/empathicVoice/types/ToolType.js +17 -7
  551. package/dist/serialization/resources/empathicVoice/types/TtsInput.js +17 -7
  552. package/dist/serialization/resources/empathicVoice/types/UserInput.js +17 -7
  553. package/dist/serialization/resources/empathicVoice/types/UserInterruption.js +17 -7
  554. package/dist/serialization/resources/empathicVoice/types/UserMessage.js +17 -7
  555. package/dist/serialization/resources/empathicVoice/types/ValidationError.js +17 -7
  556. package/dist/serialization/resources/empathicVoice/types/ValidationErrorLocItem.js +17 -7
  557. package/dist/serialization/resources/empathicVoice/types/WebSocketError.js +17 -7
  558. package/dist/serialization/resources/empathicVoice/types/WebhookEvent.js +17 -7
  559. package/dist/serialization/resources/empathicVoice/types/WebhookEventBase.js +17 -7
  560. package/dist/serialization/resources/empathicVoice/types/WebhookEventChatEnded.js +17 -7
  561. package/dist/serialization/resources/empathicVoice/types/WebhookEventChatStartType.js +17 -7
  562. package/dist/serialization/resources/empathicVoice/types/WebhookEventChatStarted.js +17 -7
  563. package/dist/serialization/resources/empathicVoice/types/WebhookEventChatStatus.js +17 -7
  564. package/dist/serialization/resources/expressionMeasurement/resources/batch/client/getJobPredictions.js +17 -7
  565. package/dist/serialization/resources/expressionMeasurement/resources/batch/client/index.js +17 -7
  566. package/dist/serialization/resources/expressionMeasurement/resources/batch/client/listJobs.js +17 -7
  567. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/Alternative.js +17 -7
  568. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/Bcp47Tag.js +17 -7
  569. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/BoundingBox.js +17 -7
  570. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/BurstPrediction.js +17 -7
  571. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/Classification.js +17 -7
  572. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/CompletedEmbeddingGeneration.js +17 -7
  573. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/CompletedInference.js +17 -7
  574. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/CompletedState.js +17 -7
  575. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/CompletedTlInference.js +17 -7
  576. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/CompletedTraining.js +17 -7
  577. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/CustomModel.js +17 -7
  578. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/CustomModelId.js +17 -7
  579. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/CustomModelPrediction.js +17 -7
  580. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/CustomModelRequest.js +17 -7
  581. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/CustomModelVersionId.js +17 -7
  582. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/CustomModelsInferenceJob.js +17 -7
  583. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/CustomModelsTrainingJob.js +17 -7
  584. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/Dataset.js +17 -7
  585. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/DatasetId.js +17 -7
  586. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/DatasetVersionId.js +17 -7
  587. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/DescriptionsScore.js +17 -7
  588. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/Direction.js +17 -7
  589. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/EmbeddingGenerationBaseRequest.js +17 -7
  590. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/EmbeddingGenerationJob.js +17 -7
  591. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/EmotionScore.js +17 -7
  592. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/Error_.js +17 -7
  593. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/EvaluationArgs.js +17 -7
  594. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/Face.js +17 -7
  595. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/FacePrediction.js +17 -7
  596. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/FacemeshPrediction.js +17 -7
  597. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/FacsScore.js +17 -7
  598. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/Failed.js +17 -7
  599. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/FailedState.js +17 -7
  600. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/File_.js +17 -7
  601. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/Granularity.js +17 -7
  602. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/GroupedPredictionsBurstPrediction.js +17 -7
  603. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/GroupedPredictionsFacePrediction.js +17 -7
  604. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/GroupedPredictionsFacemeshPrediction.js +17 -7
  605. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/GroupedPredictionsLanguagePrediction.js +17 -7
  606. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/GroupedPredictionsNerPrediction.js +17 -7
  607. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/GroupedPredictionsProsodyPrediction.js +17 -7
  608. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/InProgress.js +17 -7
  609. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/InProgressState.js +17 -7
  610. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/InferenceBaseRequest.js +17 -7
  611. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/InferenceJob.js +17 -7
  612. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/InferencePrediction.js +17 -7
  613. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/InferenceRequest.js +17 -7
  614. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/InferenceResults.js +17 -7
  615. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/InferenceSourcePredictResult.js +17 -7
  616. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/JobEmbeddingGeneration.js +17 -7
  617. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/JobId.js +17 -7
  618. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/JobInference.js +17 -7
  619. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/JobTlInference.js +17 -7
  620. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/JobTraining.js +17 -7
  621. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/Language.js +17 -7
  622. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/LanguagePrediction.js +17 -7
  623. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/Models.js +17 -7
  624. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/ModelsPredictions.js +17 -7
  625. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/Ner.js +17 -7
  626. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/NerPrediction.js +17 -7
  627. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/Null.js +17 -7
  628. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/PositionInterval.js +17 -7
  629. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/PredictionsOptionalNullBurstPrediction.js +17 -7
  630. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/PredictionsOptionalNullFacePrediction.js +17 -7
  631. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/PredictionsOptionalNullFacemeshPrediction.js +17 -7
  632. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/PredictionsOptionalTranscriptionMetadataLanguagePrediction.js +17 -7
  633. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/PredictionsOptionalTranscriptionMetadataNerPrediction.js +17 -7
  634. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/PredictionsOptionalTranscriptionMetadataProsodyPrediction.js +17 -7
  635. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/Prosody.js +17 -7
  636. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/ProsodyPrediction.js +17 -7
  637. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/Queued.js +17 -7
  638. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/QueuedState.js +17 -7
  639. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/RegistryFileDetail.js +17 -7
  640. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/Regression.js +17 -7
  641. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/SentimentScore.js +17 -7
  642. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/SortBy.js +17 -7
  643. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/Source.js +17 -7
  644. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/SourceFile.js +17 -7
  645. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/SourceTextSource.js +17 -7
  646. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/SourceUrl.js +17 -7
  647. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/StateEmbeddingGeneration.js +17 -7
  648. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/StateEmbeddingGenerationCompletedEmbeddingGeneration.js +17 -7
  649. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/StateEmbeddingGenerationFailed.js +17 -7
  650. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/StateEmbeddingGenerationInProgress.js +17 -7
  651. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/StateEmbeddingGenerationQueued.js +17 -7
  652. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/StateInference.js +17 -7
  653. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/StateTlInference.js +17 -7
  654. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/StateTlInferenceCompletedTlInference.js +17 -7
  655. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/StateTlInferenceFailed.js +17 -7
  656. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/StateTlInferenceInProgress.js +17 -7
  657. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/StateTlInferenceQueued.js +17 -7
  658. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/StateTraining.js +17 -7
  659. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/StateTrainingCompletedTraining.js +17 -7
  660. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/StateTrainingFailed.js +17 -7
  661. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/StateTrainingInProgress.js +17 -7
  662. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/StateTrainingQueued.js +17 -7
  663. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/Status.js +17 -7
  664. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/Tag.js +17 -7
  665. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/Target.js +17 -7
  666. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/Task.js +17 -7
  667. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/TaskClassification.js +17 -7
  668. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/TaskRegression.js +17 -7
  669. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/TextSource.js +17 -7
  670. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/TimeInterval.js +17 -7
  671. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/TlInferenceBaseRequest.js +17 -7
  672. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/TlInferencePrediction.js +17 -7
  673. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/TlInferenceResults.js +17 -7
  674. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/TlInferenceSourcePredictResult.js +17 -7
  675. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/ToxicityScore.js +17 -7
  676. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/TrainingBaseRequest.js +17 -7
  677. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/TrainingCustomModel.js +17 -7
  678. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/Transcription.js +17 -7
  679. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/TranscriptionMetadata.js +17 -7
  680. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/Type.js +17 -7
  681. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/Unconfigurable.js +17 -7
  682. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/Url.js +17 -7
  683. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/ValidationArgs.js +17 -7
  684. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/When.js +17 -7
  685. package/dist/serialization/resources/expressionMeasurement/resources/batch/types/Window.js +17 -7
  686. package/dist/serialization/resources/expressionMeasurement/resources/index.js +17 -7
  687. package/dist/serialization/resources/expressionMeasurement/resources/stream/resources/index.js +17 -7
  688. package/dist/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/Config.js +17 -7
  689. package/dist/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/JobDetails.js +17 -7
  690. package/dist/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/StreamErrorMessage.js +17 -7
  691. package/dist/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/StreamFace.js +17 -7
  692. package/dist/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/StreamLanguage.js +17 -7
  693. package/dist/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/StreamModelPredictions.js +17 -7
  694. package/dist/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/StreamModelPredictionsBurst.js +17 -7
  695. package/dist/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/StreamModelPredictionsBurstPredictionsItem.js +17 -7
  696. package/dist/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/StreamModelPredictionsFace.js +17 -7
  697. package/dist/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/StreamModelPredictionsFacePredictionsItem.js +17 -7
  698. package/dist/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/StreamModelPredictionsFacemesh.js +17 -7
  699. package/dist/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/StreamModelPredictionsFacemeshPredictionsItem.js +17 -7
  700. package/dist/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/StreamModelPredictionsJobDetails.js +17 -7
  701. package/dist/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/StreamModelPredictionsLanguage.js +17 -7
  702. package/dist/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/StreamModelPredictionsLanguagePredictionsItem.js +17 -7
  703. package/dist/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/StreamModelPredictionsProsody.js +17 -7
  704. package/dist/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/StreamModelPredictionsProsodyPredictionsItem.js +17 -7
  705. package/dist/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/StreamModelsEndpointPayload.js +17 -7
  706. package/dist/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/StreamWarningMessage.js +17 -7
  707. package/dist/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/StreamWarningMessageJobDetails.js +17 -7
  708. package/dist/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/SubscribeEvent.js +17 -7
  709. package/dist/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/index.d.ts +4 -4
  710. package/dist/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/index.js +4 -4
  711. package/dist/serialization/resources/expressionMeasurement/resources/stream/types/EmotionEmbedding.js +17 -7
  712. package/dist/serialization/resources/expressionMeasurement/resources/stream/types/EmotionEmbeddingItem.js +17 -7
  713. package/dist/serialization/resources/expressionMeasurement/resources/stream/types/Sentiment.js +17 -7
  714. package/dist/serialization/resources/expressionMeasurement/resources/stream/types/SentimentItem.js +17 -7
  715. package/dist/serialization/resources/expressionMeasurement/resources/stream/types/StreamBoundingBox.js +17 -7
  716. package/dist/serialization/resources/expressionMeasurement/resources/stream/types/TextPosition.js +17 -7
  717. package/dist/serialization/resources/expressionMeasurement/resources/stream/types/TimeRange.js +17 -7
  718. package/dist/serialization/resources/expressionMeasurement/resources/stream/types/Toxicity.js +17 -7
  719. package/dist/serialization/resources/expressionMeasurement/resources/stream/types/ToxicityItem.js +17 -7
  720. package/dist/serialization/resources/index.js +17 -7
  721. package/dist/serialization/resources/tts/resources/index.js +17 -7
  722. package/dist/serialization/resources/tts/resources/voices/client/requests/PostedVoice.js +17 -7
  723. package/dist/serialization/resources/tts/types/AudioEncoding.js +17 -7
  724. package/dist/serialization/resources/tts/types/AudioFormatType.js +17 -7
  725. package/dist/serialization/resources/tts/types/ErrorResponse.js +17 -7
  726. package/dist/serialization/resources/tts/types/Format.js +17 -7
  727. package/dist/serialization/resources/tts/types/FormatMp3.js +17 -7
  728. package/dist/serialization/resources/tts/types/FormatPcm.js +17 -7
  729. package/dist/serialization/resources/tts/types/FormatWav.js +17 -7
  730. package/dist/serialization/resources/tts/types/HttpValidationError.js +17 -7
  731. package/dist/serialization/resources/tts/types/PostedContext.js +17 -7
  732. package/dist/serialization/resources/tts/types/PostedContextWithGenerationId.js +17 -7
  733. package/dist/serialization/resources/tts/types/PostedContextWithUtterances.js +17 -7
  734. package/dist/serialization/resources/tts/types/PostedTts.js +17 -7
  735. package/dist/serialization/resources/tts/types/PostedUtterance.js +17 -7
  736. package/dist/serialization/resources/tts/types/PostedUtteranceVoice.js +17 -7
  737. package/dist/serialization/resources/tts/types/PostedUtteranceVoiceWithId.js +17 -7
  738. package/dist/serialization/resources/tts/types/PostedUtteranceVoiceWithName.js +17 -7
  739. package/dist/serialization/resources/tts/types/ReturnGeneration.js +17 -7
  740. package/dist/serialization/resources/tts/types/ReturnPagedVoices.js +17 -7
  741. package/dist/serialization/resources/tts/types/ReturnTts.js +17 -7
  742. package/dist/serialization/resources/tts/types/ReturnVoice.js +17 -7
  743. package/dist/serialization/resources/tts/types/Snippet.js +17 -7
  744. package/dist/serialization/resources/tts/types/SnippetAudioChunk.js +17 -7
  745. package/dist/serialization/resources/tts/types/ValidationError.js +17 -7
  746. package/dist/serialization/resources/tts/types/ValidationErrorLocItem.js +17 -7
  747. package/dist/serialization/resources/tts/types/VoiceProvider.js +17 -7
  748. package/dist/version.d.ts +1 -1
  749. package/dist/version.js +1 -1
  750. package/dist/wrapper/base64Decode.d.ts +0 -1
  751. package/dist/wrapper/base64Decode.js +1 -2
  752. package/dist/wrapper/base64Encode.js +1 -2
  753. package/dist/wrapper/convertBase64ToBlob.js +1 -2
  754. package/dist/wrapper/convertBlobToBase64.js +1 -2
  755. package/dist/wrapper/expressionMeasurement/batch/BatchClient.js +2 -2
  756. package/dist/wrapper/expressionMeasurement/batch/Job.js +20 -10
  757. package/dist/wrapper/expressionMeasurement/streaming/StreamSocket.d.ts +0 -1
  758. package/dist/wrapper/expressionMeasurement/streaming/StreamSocket.js +30 -18
  759. package/dist/wrapper/expressionMeasurement/streaming/StreamingClient.js +20 -10
  760. package/dist/wrapper/fetchAccessToken.d.ts +1 -1
  761. package/dist/wrapper/fetchAccessToken.js +1 -1
  762. package/dist/wrapper/getBrowserSupportedMimeType.d.ts +3 -3
  763. package/dist/wrapper/getBrowserSupportedMimeType.js +3 -3
  764. package/environments.d.ts +1 -1
  765. package/errors/HumeTimeoutError.d.ts +1 -1
  766. package/errors/HumeTimeoutError.js +2 -2
  767. package/index.js +17 -7
  768. package/{jest.config.js → jest.config.mjs} +4 -1
  769. package/package.json +15 -16
  770. package/reference.md +68 -15
  771. package/scripts/rename-to-esm-files.js +115 -0
  772. package/serialization/resources/empathicVoice/resources/chat/types/PublishEvent.js +17 -7
  773. package/serialization/resources/empathicVoice/resources/chat/types/SubscribeEvent.js +17 -7
  774. package/serialization/resources/empathicVoice/resources/chat/types/index.d.ts +1 -1
  775. package/serialization/resources/empathicVoice/resources/chat/types/index.js +1 -1
  776. package/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfig.js +17 -7
  777. package/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigName.js +17 -7
  778. package/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.js +17 -7
  779. package/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersionDescription.js +17 -7
  780. package/serialization/resources/empathicVoice/resources/customVoices/client/requests/PostedCustomVoiceName.js +17 -7
  781. package/serialization/resources/empathicVoice/resources/index.js +17 -7
  782. package/serialization/resources/empathicVoice/resources/prompts/client/index.js +17 -7
  783. package/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPrompt.js +17 -7
  784. package/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPromptName.js +17 -7
  785. package/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.js +17 -7
  786. package/serialization/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersionDescription.js +17 -7
  787. package/serialization/resources/empathicVoice/resources/tools/client/index.js +17 -7
  788. package/serialization/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedTool.js +17 -7
  789. package/serialization/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolName.js +17 -7
  790. package/serialization/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersion.js +17 -7
  791. package/serialization/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersionDescription.js +17 -7
  792. package/serialization/resources/empathicVoice/types/AssistantEnd.js +17 -7
  793. package/serialization/resources/empathicVoice/types/AssistantInput.js +17 -7
  794. package/serialization/resources/empathicVoice/types/AssistantMessage.js +17 -7
  795. package/serialization/resources/empathicVoice/types/AudioConfiguration.js +17 -7
  796. package/serialization/resources/empathicVoice/types/AudioInput.js +17 -7
  797. package/serialization/resources/empathicVoice/types/AudioOutput.js +17 -7
  798. package/serialization/resources/empathicVoice/types/BuiltInTool.js +17 -7
  799. package/serialization/resources/empathicVoice/types/BuiltinToolConfig.js +17 -7
  800. package/serialization/resources/empathicVoice/types/ChatMessage.js +17 -7
  801. package/serialization/resources/empathicVoice/types/ChatMessageToolResult.js +17 -7
  802. package/serialization/resources/empathicVoice/types/ChatMetadata.js +17 -7
  803. package/serialization/resources/empathicVoice/types/Context.js +17 -7
  804. package/serialization/resources/empathicVoice/types/ContextType.js +17 -7
  805. package/serialization/resources/empathicVoice/types/EmotionScores.js +17 -7
  806. package/serialization/resources/empathicVoice/types/Encoding.js +17 -7
  807. package/serialization/resources/empathicVoice/types/ErrorLevel.js +17 -7
  808. package/serialization/resources/empathicVoice/types/ErrorResponse.js +17 -7
  809. package/serialization/resources/empathicVoice/types/FunctionCallResponseInput.js +17 -7
  810. package/serialization/resources/empathicVoice/types/HttpValidationError.js +17 -7
  811. package/serialization/resources/empathicVoice/types/Inference.js +17 -7
  812. package/serialization/resources/empathicVoice/types/JsonMessage.js +17 -7
  813. package/serialization/resources/empathicVoice/types/MillisecondInterval.js +17 -7
  814. package/serialization/resources/empathicVoice/types/PauseAssistantMessage.js +17 -7
  815. package/serialization/resources/empathicVoice/types/PostedBuiltinTool.js +17 -7
  816. package/serialization/resources/empathicVoice/types/PostedBuiltinToolName.js +17 -7
  817. package/serialization/resources/empathicVoice/types/PostedConfigPromptSpec.js +17 -7
  818. package/serialization/resources/empathicVoice/types/PostedCustomVoice.js +17 -7
  819. package/serialization/resources/empathicVoice/types/PostedCustomVoiceBaseVoice.js +17 -7
  820. package/serialization/resources/empathicVoice/types/PostedCustomVoiceParameters.js +17 -7
  821. package/serialization/resources/empathicVoice/types/PostedEllmModel.js +17 -7
  822. package/serialization/resources/empathicVoice/types/PostedEventMessageSpec.js +17 -7
  823. package/serialization/resources/empathicVoice/types/PostedEventMessageSpecs.js +17 -7
  824. package/serialization/resources/empathicVoice/types/PostedLanguageModel.js +17 -7
  825. package/serialization/resources/empathicVoice/types/PostedLanguageModelModelProvider.d.ts +1 -1
  826. package/serialization/resources/empathicVoice/types/PostedLanguageModelModelProvider.js +27 -8
  827. package/serialization/resources/empathicVoice/types/PostedLanguageModelModelResource.d.ts +1 -1
  828. package/serialization/resources/empathicVoice/types/PostedLanguageModelModelResource.js +34 -25
  829. package/serialization/resources/empathicVoice/types/PostedPromptSpec.js +17 -7
  830. package/serialization/resources/empathicVoice/types/PostedTimeoutSpec.js +17 -7
  831. package/serialization/resources/empathicVoice/types/PostedTimeoutSpecs.js +17 -7
  832. package/serialization/resources/empathicVoice/types/PostedTimeoutSpecsInactivity.js +17 -7
  833. package/serialization/resources/empathicVoice/types/PostedTimeoutSpecsMaxDuration.js +17 -7
  834. package/serialization/resources/empathicVoice/types/PostedUserDefinedToolSpec.js +17 -7
  835. package/serialization/resources/empathicVoice/types/PostedVoice.js +17 -7
  836. package/serialization/resources/empathicVoice/types/PostedVoiceProvider.js +17 -7
  837. package/serialization/resources/empathicVoice/types/PostedWebhookEventType.js +17 -7
  838. package/serialization/resources/empathicVoice/types/PostedWebhookSpec.js +17 -7
  839. package/serialization/resources/empathicVoice/types/ProsodyInference.js +17 -7
  840. package/serialization/resources/empathicVoice/types/ResumeAssistantMessage.js +17 -7
  841. package/serialization/resources/empathicVoice/types/ReturnBuiltinTool.js +17 -7
  842. package/serialization/resources/empathicVoice/types/ReturnBuiltinToolToolType.js +17 -7
  843. package/serialization/resources/empathicVoice/types/ReturnChat.js +17 -7
  844. package/serialization/resources/empathicVoice/types/ReturnChatAudioReconstruction.js +17 -7
  845. package/serialization/resources/empathicVoice/types/ReturnChatAudioReconstructionStatus.js +17 -7
  846. package/serialization/resources/empathicVoice/types/ReturnChatEvent.js +17 -7
  847. package/serialization/resources/empathicVoice/types/ReturnChatEventRole.js +17 -7
  848. package/serialization/resources/empathicVoice/types/ReturnChatEventType.js +17 -7
  849. package/serialization/resources/empathicVoice/types/ReturnChatGroup.js +17 -7
  850. package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructions.js +17 -7
  851. package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructionsPaginationDirection.js +17 -7
  852. package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedChats.js +17 -7
  853. package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedChatsPaginationDirection.js +17 -7
  854. package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEvents.js +17 -7
  855. package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEventsPaginationDirection.js +17 -7
  856. package/serialization/resources/empathicVoice/types/ReturnChatPagedEvents.js +17 -7
  857. package/serialization/resources/empathicVoice/types/ReturnChatPagedEventsPaginationDirection.js +17 -7
  858. package/serialization/resources/empathicVoice/types/ReturnChatPagedEventsStatus.js +17 -7
  859. package/serialization/resources/empathicVoice/types/ReturnChatStatus.js +17 -7
  860. package/serialization/resources/empathicVoice/types/ReturnConfig.js +17 -7
  861. package/serialization/resources/empathicVoice/types/ReturnConfigSpec.js +17 -7
  862. package/serialization/resources/empathicVoice/types/ReturnCustomVoice.js +17 -7
  863. package/serialization/resources/empathicVoice/types/ReturnCustomVoiceBaseVoice.js +17 -7
  864. package/serialization/resources/empathicVoice/types/ReturnCustomVoiceParameters.js +17 -7
  865. package/serialization/resources/empathicVoice/types/ReturnEllmModel.js +17 -7
  866. package/serialization/resources/empathicVoice/types/ReturnEventMessageSpec.js +17 -7
  867. package/serialization/resources/empathicVoice/types/ReturnEventMessageSpecs.js +17 -7
  868. package/serialization/resources/empathicVoice/types/ReturnLanguageModel.js +17 -7
  869. package/serialization/resources/empathicVoice/types/ReturnLanguageModelModelProvider.d.ts +1 -1
  870. package/serialization/resources/empathicVoice/types/ReturnLanguageModelModelProvider.js +27 -8
  871. package/serialization/resources/empathicVoice/types/ReturnLanguageModelModelResource.d.ts +1 -1
  872. package/serialization/resources/empathicVoice/types/ReturnLanguageModelModelResource.js +25 -10
  873. package/serialization/resources/empathicVoice/types/ReturnPagedChatGroups.js +17 -7
  874. package/serialization/resources/empathicVoice/types/ReturnPagedChatGroupsPaginationDirection.js +17 -7
  875. package/serialization/resources/empathicVoice/types/ReturnPagedChats.js +17 -7
  876. package/serialization/resources/empathicVoice/types/ReturnPagedChatsPaginationDirection.js +17 -7
  877. package/serialization/resources/empathicVoice/types/ReturnPagedConfigs.js +17 -7
  878. package/serialization/resources/empathicVoice/types/ReturnPagedCustomVoices.js +17 -7
  879. package/serialization/resources/empathicVoice/types/ReturnPagedPrompts.js +17 -7
  880. package/serialization/resources/empathicVoice/types/ReturnPagedUserDefinedTools.js +17 -7
  881. package/serialization/resources/empathicVoice/types/ReturnPrompt.js +17 -7
  882. package/serialization/resources/empathicVoice/types/ReturnPromptVersionType.js +17 -7
  883. package/serialization/resources/empathicVoice/types/ReturnTimeoutSpec.js +17 -7
  884. package/serialization/resources/empathicVoice/types/ReturnTimeoutSpecs.js +17 -7
  885. package/serialization/resources/empathicVoice/types/ReturnUserDefinedTool.js +17 -7
  886. package/serialization/resources/empathicVoice/types/ReturnUserDefinedToolToolType.js +17 -7
  887. package/serialization/resources/empathicVoice/types/ReturnUserDefinedToolVersionType.js +17 -7
  888. package/serialization/resources/empathicVoice/types/ReturnVoice.js +17 -7
  889. package/serialization/resources/empathicVoice/types/ReturnVoiceProvider.js +17 -7
  890. package/serialization/resources/empathicVoice/types/ReturnWebhookEventType.js +17 -7
  891. package/serialization/resources/empathicVoice/types/ReturnWebhookSpec.js +17 -7
  892. package/serialization/resources/empathicVoice/types/Role.js +17 -7
  893. package/serialization/resources/empathicVoice/types/SessionSettings.js +17 -7
  894. package/serialization/resources/empathicVoice/types/SessionSettingsVariablesValue.js +17 -7
  895. package/serialization/resources/empathicVoice/types/TextInput.js +17 -7
  896. package/serialization/resources/empathicVoice/types/Tool.js +17 -7
  897. package/serialization/resources/empathicVoice/types/ToolCallMessage.js +17 -7
  898. package/serialization/resources/empathicVoice/types/ToolErrorMessage.js +17 -7
  899. package/serialization/resources/empathicVoice/types/ToolResponseMessage.js +17 -7
  900. package/serialization/resources/empathicVoice/types/ToolType.js +17 -7
  901. package/serialization/resources/empathicVoice/types/TtsInput.js +17 -7
  902. package/serialization/resources/empathicVoice/types/UserInput.js +17 -7
  903. package/serialization/resources/empathicVoice/types/UserInterruption.js +17 -7
  904. package/serialization/resources/empathicVoice/types/UserMessage.js +17 -7
  905. package/serialization/resources/empathicVoice/types/ValidationError.js +17 -7
  906. package/serialization/resources/empathicVoice/types/ValidationErrorLocItem.js +17 -7
  907. package/serialization/resources/empathicVoice/types/WebSocketError.js +17 -7
  908. package/serialization/resources/empathicVoice/types/WebhookEvent.js +17 -7
  909. package/serialization/resources/empathicVoice/types/WebhookEventBase.js +17 -7
  910. package/serialization/resources/empathicVoice/types/WebhookEventChatEnded.js +17 -7
  911. package/serialization/resources/empathicVoice/types/WebhookEventChatStartType.js +17 -7
  912. package/serialization/resources/empathicVoice/types/WebhookEventChatStarted.js +17 -7
  913. package/serialization/resources/empathicVoice/types/WebhookEventChatStatus.js +17 -7
  914. package/serialization/resources/expressionMeasurement/resources/batch/client/getJobPredictions.js +17 -7
  915. package/serialization/resources/expressionMeasurement/resources/batch/client/index.js +17 -7
  916. package/serialization/resources/expressionMeasurement/resources/batch/client/listJobs.js +17 -7
  917. package/serialization/resources/expressionMeasurement/resources/batch/types/Alternative.js +17 -7
  918. package/serialization/resources/expressionMeasurement/resources/batch/types/Bcp47Tag.js +17 -7
  919. package/serialization/resources/expressionMeasurement/resources/batch/types/BoundingBox.js +17 -7
  920. package/serialization/resources/expressionMeasurement/resources/batch/types/BurstPrediction.js +17 -7
  921. package/serialization/resources/expressionMeasurement/resources/batch/types/Classification.js +17 -7
  922. package/serialization/resources/expressionMeasurement/resources/batch/types/CompletedEmbeddingGeneration.js +17 -7
  923. package/serialization/resources/expressionMeasurement/resources/batch/types/CompletedInference.js +17 -7
  924. package/serialization/resources/expressionMeasurement/resources/batch/types/CompletedState.js +17 -7
  925. package/serialization/resources/expressionMeasurement/resources/batch/types/CompletedTlInference.js +17 -7
  926. package/serialization/resources/expressionMeasurement/resources/batch/types/CompletedTraining.js +17 -7
  927. package/serialization/resources/expressionMeasurement/resources/batch/types/CustomModel.js +17 -7
  928. package/serialization/resources/expressionMeasurement/resources/batch/types/CustomModelId.js +17 -7
  929. package/serialization/resources/expressionMeasurement/resources/batch/types/CustomModelPrediction.js +17 -7
  930. package/serialization/resources/expressionMeasurement/resources/batch/types/CustomModelRequest.js +17 -7
  931. package/serialization/resources/expressionMeasurement/resources/batch/types/CustomModelVersionId.js +17 -7
  932. package/serialization/resources/expressionMeasurement/resources/batch/types/CustomModelsInferenceJob.js +17 -7
  933. package/serialization/resources/expressionMeasurement/resources/batch/types/CustomModelsTrainingJob.js +17 -7
  934. package/serialization/resources/expressionMeasurement/resources/batch/types/Dataset.js +17 -7
  935. package/serialization/resources/expressionMeasurement/resources/batch/types/DatasetId.js +17 -7
  936. package/serialization/resources/expressionMeasurement/resources/batch/types/DatasetVersionId.js +17 -7
  937. package/serialization/resources/expressionMeasurement/resources/batch/types/DescriptionsScore.js +17 -7
  938. package/serialization/resources/expressionMeasurement/resources/batch/types/Direction.js +17 -7
  939. package/serialization/resources/expressionMeasurement/resources/batch/types/EmbeddingGenerationBaseRequest.js +17 -7
  940. package/serialization/resources/expressionMeasurement/resources/batch/types/EmbeddingGenerationJob.js +17 -7
  941. package/serialization/resources/expressionMeasurement/resources/batch/types/EmotionScore.js +17 -7
  942. package/serialization/resources/expressionMeasurement/resources/batch/types/Error_.js +17 -7
  943. package/serialization/resources/expressionMeasurement/resources/batch/types/EvaluationArgs.js +17 -7
  944. package/serialization/resources/expressionMeasurement/resources/batch/types/Face.js +17 -7
  945. package/serialization/resources/expressionMeasurement/resources/batch/types/FacePrediction.js +17 -7
  946. package/serialization/resources/expressionMeasurement/resources/batch/types/FacemeshPrediction.js +17 -7
  947. package/serialization/resources/expressionMeasurement/resources/batch/types/FacsScore.js +17 -7
  948. package/serialization/resources/expressionMeasurement/resources/batch/types/Failed.js +17 -7
  949. package/serialization/resources/expressionMeasurement/resources/batch/types/FailedState.js +17 -7
  950. package/serialization/resources/expressionMeasurement/resources/batch/types/File_.js +17 -7
  951. package/serialization/resources/expressionMeasurement/resources/batch/types/Granularity.js +17 -7
  952. package/serialization/resources/expressionMeasurement/resources/batch/types/GroupedPredictionsBurstPrediction.js +17 -7
  953. package/serialization/resources/expressionMeasurement/resources/batch/types/GroupedPredictionsFacePrediction.js +17 -7
  954. package/serialization/resources/expressionMeasurement/resources/batch/types/GroupedPredictionsFacemeshPrediction.js +17 -7
  955. package/serialization/resources/expressionMeasurement/resources/batch/types/GroupedPredictionsLanguagePrediction.js +17 -7
  956. package/serialization/resources/expressionMeasurement/resources/batch/types/GroupedPredictionsNerPrediction.js +17 -7
  957. package/serialization/resources/expressionMeasurement/resources/batch/types/GroupedPredictionsProsodyPrediction.js +17 -7
  958. package/serialization/resources/expressionMeasurement/resources/batch/types/InProgress.js +17 -7
  959. package/serialization/resources/expressionMeasurement/resources/batch/types/InProgressState.js +17 -7
  960. package/serialization/resources/expressionMeasurement/resources/batch/types/InferenceBaseRequest.js +17 -7
  961. package/serialization/resources/expressionMeasurement/resources/batch/types/InferenceJob.js +17 -7
  962. package/serialization/resources/expressionMeasurement/resources/batch/types/InferencePrediction.js +17 -7
  963. package/serialization/resources/expressionMeasurement/resources/batch/types/InferenceRequest.js +17 -7
  964. package/serialization/resources/expressionMeasurement/resources/batch/types/InferenceResults.js +17 -7
  965. package/serialization/resources/expressionMeasurement/resources/batch/types/InferenceSourcePredictResult.js +17 -7
  966. package/serialization/resources/expressionMeasurement/resources/batch/types/JobEmbeddingGeneration.js +17 -7
  967. package/serialization/resources/expressionMeasurement/resources/batch/types/JobId.js +17 -7
  968. package/serialization/resources/expressionMeasurement/resources/batch/types/JobInference.js +17 -7
  969. package/serialization/resources/expressionMeasurement/resources/batch/types/JobTlInference.js +17 -7
  970. package/serialization/resources/expressionMeasurement/resources/batch/types/JobTraining.js +17 -7
  971. package/serialization/resources/expressionMeasurement/resources/batch/types/Language.js +17 -7
  972. package/serialization/resources/expressionMeasurement/resources/batch/types/LanguagePrediction.js +17 -7
  973. package/serialization/resources/expressionMeasurement/resources/batch/types/Models.js +17 -7
  974. package/serialization/resources/expressionMeasurement/resources/batch/types/ModelsPredictions.js +17 -7
  975. package/serialization/resources/expressionMeasurement/resources/batch/types/Ner.js +17 -7
  976. package/serialization/resources/expressionMeasurement/resources/batch/types/NerPrediction.js +17 -7
  977. package/serialization/resources/expressionMeasurement/resources/batch/types/Null.js +17 -7
  978. package/serialization/resources/expressionMeasurement/resources/batch/types/PositionInterval.js +17 -7
  979. package/serialization/resources/expressionMeasurement/resources/batch/types/PredictionsOptionalNullBurstPrediction.js +17 -7
  980. package/serialization/resources/expressionMeasurement/resources/batch/types/PredictionsOptionalNullFacePrediction.js +17 -7
  981. package/serialization/resources/expressionMeasurement/resources/batch/types/PredictionsOptionalNullFacemeshPrediction.js +17 -7
  982. package/serialization/resources/expressionMeasurement/resources/batch/types/PredictionsOptionalTranscriptionMetadataLanguagePrediction.js +17 -7
  983. package/serialization/resources/expressionMeasurement/resources/batch/types/PredictionsOptionalTranscriptionMetadataNerPrediction.js +17 -7
  984. package/serialization/resources/expressionMeasurement/resources/batch/types/PredictionsOptionalTranscriptionMetadataProsodyPrediction.js +17 -7
  985. package/serialization/resources/expressionMeasurement/resources/batch/types/Prosody.js +17 -7
  986. package/serialization/resources/expressionMeasurement/resources/batch/types/ProsodyPrediction.js +17 -7
  987. package/serialization/resources/expressionMeasurement/resources/batch/types/Queued.js +17 -7
  988. package/serialization/resources/expressionMeasurement/resources/batch/types/QueuedState.js +17 -7
  989. package/serialization/resources/expressionMeasurement/resources/batch/types/RegistryFileDetail.js +17 -7
  990. package/serialization/resources/expressionMeasurement/resources/batch/types/Regression.js +17 -7
  991. package/serialization/resources/expressionMeasurement/resources/batch/types/SentimentScore.js +17 -7
  992. package/serialization/resources/expressionMeasurement/resources/batch/types/SortBy.js +17 -7
  993. package/serialization/resources/expressionMeasurement/resources/batch/types/Source.js +17 -7
  994. package/serialization/resources/expressionMeasurement/resources/batch/types/SourceFile.js +17 -7
  995. package/serialization/resources/expressionMeasurement/resources/batch/types/SourceTextSource.js +17 -7
  996. package/serialization/resources/expressionMeasurement/resources/batch/types/SourceUrl.js +17 -7
  997. package/serialization/resources/expressionMeasurement/resources/batch/types/StateEmbeddingGeneration.js +17 -7
  998. package/serialization/resources/expressionMeasurement/resources/batch/types/StateEmbeddingGenerationCompletedEmbeddingGeneration.js +17 -7
  999. package/serialization/resources/expressionMeasurement/resources/batch/types/StateEmbeddingGenerationFailed.js +17 -7
  1000. package/serialization/resources/expressionMeasurement/resources/batch/types/StateEmbeddingGenerationInProgress.js +17 -7
  1001. package/serialization/resources/expressionMeasurement/resources/batch/types/StateEmbeddingGenerationQueued.js +17 -7
  1002. package/serialization/resources/expressionMeasurement/resources/batch/types/StateInference.js +17 -7
  1003. package/serialization/resources/expressionMeasurement/resources/batch/types/StateTlInference.js +17 -7
  1004. package/serialization/resources/expressionMeasurement/resources/batch/types/StateTlInferenceCompletedTlInference.js +17 -7
  1005. package/serialization/resources/expressionMeasurement/resources/batch/types/StateTlInferenceFailed.js +17 -7
  1006. package/serialization/resources/expressionMeasurement/resources/batch/types/StateTlInferenceInProgress.js +17 -7
  1007. package/serialization/resources/expressionMeasurement/resources/batch/types/StateTlInferenceQueued.js +17 -7
  1008. package/serialization/resources/expressionMeasurement/resources/batch/types/StateTraining.js +17 -7
  1009. package/serialization/resources/expressionMeasurement/resources/batch/types/StateTrainingCompletedTraining.js +17 -7
  1010. package/serialization/resources/expressionMeasurement/resources/batch/types/StateTrainingFailed.js +17 -7
  1011. package/serialization/resources/expressionMeasurement/resources/batch/types/StateTrainingInProgress.js +17 -7
  1012. package/serialization/resources/expressionMeasurement/resources/batch/types/StateTrainingQueued.js +17 -7
  1013. package/serialization/resources/expressionMeasurement/resources/batch/types/Status.js +17 -7
  1014. package/serialization/resources/expressionMeasurement/resources/batch/types/Tag.js +17 -7
  1015. package/serialization/resources/expressionMeasurement/resources/batch/types/Target.js +17 -7
  1016. package/serialization/resources/expressionMeasurement/resources/batch/types/Task.js +17 -7
  1017. package/serialization/resources/expressionMeasurement/resources/batch/types/TaskClassification.js +17 -7
  1018. package/serialization/resources/expressionMeasurement/resources/batch/types/TaskRegression.js +17 -7
  1019. package/serialization/resources/expressionMeasurement/resources/batch/types/TextSource.js +17 -7
  1020. package/serialization/resources/expressionMeasurement/resources/batch/types/TimeInterval.js +17 -7
  1021. package/serialization/resources/expressionMeasurement/resources/batch/types/TlInferenceBaseRequest.js +17 -7
  1022. package/serialization/resources/expressionMeasurement/resources/batch/types/TlInferencePrediction.js +17 -7
  1023. package/serialization/resources/expressionMeasurement/resources/batch/types/TlInferenceResults.js +17 -7
  1024. package/serialization/resources/expressionMeasurement/resources/batch/types/TlInferenceSourcePredictResult.js +17 -7
  1025. package/serialization/resources/expressionMeasurement/resources/batch/types/ToxicityScore.js +17 -7
  1026. package/serialization/resources/expressionMeasurement/resources/batch/types/TrainingBaseRequest.js +17 -7
  1027. package/serialization/resources/expressionMeasurement/resources/batch/types/TrainingCustomModel.js +17 -7
  1028. package/serialization/resources/expressionMeasurement/resources/batch/types/Transcription.js +17 -7
  1029. package/serialization/resources/expressionMeasurement/resources/batch/types/TranscriptionMetadata.js +17 -7
  1030. package/serialization/resources/expressionMeasurement/resources/batch/types/Type.js +17 -7
  1031. package/serialization/resources/expressionMeasurement/resources/batch/types/Unconfigurable.js +17 -7
  1032. package/serialization/resources/expressionMeasurement/resources/batch/types/Url.js +17 -7
  1033. package/serialization/resources/expressionMeasurement/resources/batch/types/ValidationArgs.js +17 -7
  1034. package/serialization/resources/expressionMeasurement/resources/batch/types/When.js +17 -7
  1035. package/serialization/resources/expressionMeasurement/resources/batch/types/Window.js +17 -7
  1036. package/serialization/resources/expressionMeasurement/resources/index.js +17 -7
  1037. package/serialization/resources/expressionMeasurement/resources/stream/resources/index.js +17 -7
  1038. package/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/Config.js +17 -7
  1039. package/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/JobDetails.js +17 -7
  1040. package/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/StreamErrorMessage.js +17 -7
  1041. package/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/StreamFace.js +17 -7
  1042. package/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/StreamLanguage.js +17 -7
  1043. package/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/StreamModelPredictions.js +17 -7
  1044. package/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/StreamModelPredictionsBurst.js +17 -7
  1045. package/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/StreamModelPredictionsBurstPredictionsItem.js +17 -7
  1046. package/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/StreamModelPredictionsFace.js +17 -7
  1047. package/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/StreamModelPredictionsFacePredictionsItem.js +17 -7
  1048. package/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/StreamModelPredictionsFacemesh.js +17 -7
  1049. package/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/StreamModelPredictionsFacemeshPredictionsItem.js +17 -7
  1050. package/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/StreamModelPredictionsJobDetails.js +17 -7
  1051. package/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/StreamModelPredictionsLanguage.js +17 -7
  1052. package/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/StreamModelPredictionsLanguagePredictionsItem.js +17 -7
  1053. package/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/StreamModelPredictionsProsody.js +17 -7
  1054. package/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/StreamModelPredictionsProsodyPredictionsItem.js +17 -7
  1055. package/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/StreamModelsEndpointPayload.js +17 -7
  1056. package/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/StreamWarningMessage.js +17 -7
  1057. package/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/StreamWarningMessageJobDetails.js +17 -7
  1058. package/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/SubscribeEvent.js +17 -7
  1059. package/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/index.d.ts +4 -4
  1060. package/serialization/resources/expressionMeasurement/resources/stream/resources/stream/types/index.js +4 -4
  1061. package/serialization/resources/expressionMeasurement/resources/stream/types/EmotionEmbedding.js +17 -7
  1062. package/serialization/resources/expressionMeasurement/resources/stream/types/EmotionEmbeddingItem.js +17 -7
  1063. package/serialization/resources/expressionMeasurement/resources/stream/types/Sentiment.js +17 -7
  1064. package/serialization/resources/expressionMeasurement/resources/stream/types/SentimentItem.js +17 -7
  1065. package/serialization/resources/expressionMeasurement/resources/stream/types/StreamBoundingBox.js +17 -7
  1066. package/serialization/resources/expressionMeasurement/resources/stream/types/TextPosition.js +17 -7
  1067. package/serialization/resources/expressionMeasurement/resources/stream/types/TimeRange.js +17 -7
  1068. package/serialization/resources/expressionMeasurement/resources/stream/types/Toxicity.js +17 -7
  1069. package/serialization/resources/expressionMeasurement/resources/stream/types/ToxicityItem.js +17 -7
  1070. package/serialization/resources/index.js +17 -7
  1071. package/serialization/resources/tts/resources/index.js +17 -7
  1072. package/serialization/resources/tts/resources/voices/client/requests/PostedVoice.js +17 -7
  1073. package/serialization/resources/tts/types/AudioEncoding.js +17 -7
  1074. package/serialization/resources/tts/types/AudioFormatType.js +17 -7
  1075. package/serialization/resources/tts/types/ErrorResponse.js +17 -7
  1076. package/serialization/resources/tts/types/Format.js +17 -7
  1077. package/serialization/resources/tts/types/FormatMp3.js +17 -7
  1078. package/serialization/resources/tts/types/FormatPcm.js +17 -7
  1079. package/serialization/resources/tts/types/FormatWav.js +17 -7
  1080. package/serialization/resources/tts/types/HttpValidationError.js +17 -7
  1081. package/serialization/resources/tts/types/PostedContext.js +17 -7
  1082. package/serialization/resources/tts/types/PostedContextWithGenerationId.js +17 -7
  1083. package/serialization/resources/tts/types/PostedContextWithUtterances.js +17 -7
  1084. package/serialization/resources/tts/types/PostedTts.js +17 -7
  1085. package/serialization/resources/tts/types/PostedUtterance.js +17 -7
  1086. package/serialization/resources/tts/types/PostedUtteranceVoice.js +17 -7
  1087. package/serialization/resources/tts/types/PostedUtteranceVoiceWithId.js +17 -7
  1088. package/serialization/resources/tts/types/PostedUtteranceVoiceWithName.js +17 -7
  1089. package/serialization/resources/tts/types/ReturnGeneration.js +17 -7
  1090. package/serialization/resources/tts/types/ReturnPagedVoices.js +17 -7
  1091. package/serialization/resources/tts/types/ReturnTts.js +17 -7
  1092. package/serialization/resources/tts/types/ReturnVoice.js +17 -7
  1093. package/serialization/resources/tts/types/Snippet.js +17 -7
  1094. package/serialization/resources/tts/types/SnippetAudioChunk.js +17 -7
  1095. package/serialization/resources/tts/types/ValidationError.js +17 -7
  1096. package/serialization/resources/tts/types/ValidationErrorLocItem.js +17 -7
  1097. package/serialization/resources/tts/types/VoiceProvider.js +17 -7
  1098. package/version.d.ts +1 -1
  1099. package/version.js +1 -1
  1100. package/wrapper/base64Decode.d.ts +0 -1
  1101. package/wrapper/base64Decode.js +1 -2
  1102. package/wrapper/base64Encode.js +1 -2
  1103. package/wrapper/convertBase64ToBlob.js +1 -2
  1104. package/wrapper/convertBlobToBase64.js +1 -2
  1105. package/wrapper/expressionMeasurement/batch/BatchClient.js +2 -2
  1106. package/wrapper/expressionMeasurement/batch/Job.js +20 -10
  1107. package/wrapper/expressionMeasurement/streaming/StreamSocket.d.ts +0 -1
  1108. package/wrapper/expressionMeasurement/streaming/StreamSocket.js +30 -18
  1109. package/wrapper/expressionMeasurement/streaming/StreamingClient.js +20 -10
  1110. package/wrapper/fetchAccessToken.d.ts +1 -1
  1111. package/wrapper/fetchAccessToken.js +1 -1
  1112. package/wrapper/getBrowserSupportedMimeType.d.ts +3 -3
  1113. package/wrapper/getBrowserSupportedMimeType.js +3 -3
package/core/json.js ADDED
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.toJson = void 0;
4
+ exports.fromJson = fromJson;
5
+ /**
6
+ * Serialize a value to JSON
7
+ * @param value A JavaScript value, usually an object or array, to be converted.
8
+ * @param replacer A function that transforms the results.
9
+ * @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.
10
+ * @returns JSON string
11
+ */
12
+ const toJson = (value, replacer, space) => {
13
+ return JSON.stringify(value, replacer, space);
14
+ };
15
+ exports.toJson = toJson;
16
+ /**
17
+ * Parse JSON string to object, array, or other type
18
+ * @param text A valid JSON string.
19
+ * @param reviver A function that transforms the results. This function is called for each member of the object. If a member contains nested objects, the nested objects are transformed before the parent object is.
20
+ * @returns Parsed object, array, or other type
21
+ */
22
+ function fromJson(text, reviver) {
23
+ return JSON.parse(text, reviver);
24
+ }
@@ -12,8 +12,9 @@ var __await = (this && this.__await) || function (v) { return this instanceof __
12
12
  var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
13
13
  if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
14
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); }); }; }
15
+ return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;
16
+ function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }
17
+ function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }
17
18
  function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
18
19
  function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
19
20
  function fulfill(value) { resume("next", value); }
@@ -74,17 +75,19 @@ class Page {
74
75
  }
75
76
  [Symbol.asyncIterator]() {
76
77
  return __asyncGenerator(this, arguments, function* _a() {
77
- var e_1, _b;
78
+ var _b, e_1, _c, _d;
78
79
  try {
79
- for (var _c = __asyncValues(this.iterMessages()), _d; _d = yield __await(_c.next()), !_d.done;) {
80
- const message = _d.value;
80
+ for (var _e = true, _f = __asyncValues(this.iterMessages()), _g; _g = yield __await(_f.next()), _b = _g.done, !_b; _e = true) {
81
+ _d = _g.value;
82
+ _e = false;
83
+ const message = _d;
81
84
  yield yield __await(message);
82
85
  }
83
86
  }
84
87
  catch (e_1_1) { e_1 = { error: e_1_1 }; }
85
88
  finally {
86
89
  try {
87
- if (_d && !_d.done && (_b = _c.return)) yield __await(_b.call(_c));
90
+ if (!_e && !_b && (_c = _f.return)) yield __await(_c.call(_f));
88
91
  }
89
92
  finally { if (e_1) throw e_1.error; }
90
93
  }
@@ -3,7 +3,7 @@
3
3
  */
4
4
  export declare const RUNTIME: Runtime;
5
5
  export interface Runtime {
6
- type: "browser" | "web-worker" | "deno" | "bun" | "node" | "react-native" | "unknown" | "workerd";
6
+ type: "browser" | "web-worker" | "deno" | "bun" | "node" | "react-native" | "unknown" | "workerd" | "edge-runtime";
7
7
  version?: string;
8
8
  parsedVersion?: number;
9
9
  }
@@ -1,80 +1,85 @@
1
1
  "use strict";
2
- var _a, _b, _c, _d, _e;
3
2
  Object.defineProperty(exports, "__esModule", { value: true });
4
3
  exports.RUNTIME = void 0;
5
- /**
6
- * A constant that indicates whether the environment the code is running is a Web Browser.
7
- */
8
- const isBrowser = typeof window !== "undefined" && typeof window.document !== "undefined";
9
- /**
10
- * A constant that indicates whether the environment the code is running is a Web Worker.
11
- */
12
- const isWebWorker = typeof self === "object" &&
13
- // @ts-ignore
14
- typeof (self === null || self === void 0 ? void 0 : self.importScripts) === "function" &&
15
- (((_a = self.constructor) === null || _a === void 0 ? void 0 : _a.name) === "DedicatedWorkerGlobalScope" ||
16
- ((_b = self.constructor) === null || _b === void 0 ? void 0 : _b.name) === "ServiceWorkerGlobalScope" ||
17
- ((_c = self.constructor) === null || _c === void 0 ? void 0 : _c.name) === "SharedWorkerGlobalScope");
18
- /**
19
- * A constant that indicates whether the environment the code is running is Deno.
20
- */
21
- const isDeno = typeof Deno !== "undefined" && typeof Deno.version !== "undefined" && typeof Deno.version.deno !== "undefined";
22
- /**
23
- * A constant that indicates whether the environment the code is running is Bun.sh.
24
- */
25
- const isBun = typeof Bun !== "undefined" && typeof Bun.version !== "undefined";
26
- /**
27
- * A constant that indicates whether the environment the code is running is Node.JS.
28
- */
29
- const isNode = typeof process !== "undefined" &&
30
- Boolean(process.version) &&
31
- Boolean((_d = process.versions) === null || _d === void 0 ? void 0 : _d.node) &&
32
- // Deno spoofs process.versions.node, see https://deno.land/std@0.177.0/node/process.ts?s=versions
33
- !isDeno &&
34
- !isBun;
35
- /**
36
- * A constant that indicates whether the environment the code is running is in React-Native.
37
- * https://github.com/facebook/react-native/blob/main/packages/react-native/Libraries/Core/setUpNavigator.js
38
- */
39
- const isReactNative = typeof navigator !== "undefined" && (navigator === null || navigator === void 0 ? void 0 : navigator.product) === "ReactNative";
40
- /**
41
- * A constant that indicates whether the environment the code is running is Cloudflare.
42
- * https://developers.cloudflare.com/workers/runtime-apis/web-standards/#navigatoruseragent
43
- */
44
- const isCloudflare = typeof globalThis !== "undefined" && ((_e = globalThis === null || globalThis === void 0 ? void 0 : globalThis.navigator) === null || _e === void 0 ? void 0 : _e.userAgent) === "Cloudflare-Workers";
45
4
  /**
46
5
  * A constant that indicates which environment and version the SDK is running in.
47
6
  */
48
7
  exports.RUNTIME = evaluateRuntime();
49
8
  function evaluateRuntime() {
9
+ var _a, _b, _c, _d, _e;
10
+ /**
11
+ * A constant that indicates whether the environment the code is running is a Web Browser.
12
+ */
13
+ const isBrowser = typeof window !== "undefined" && typeof window.document !== "undefined";
50
14
  if (isBrowser) {
51
15
  return {
52
16
  type: "browser",
53
17
  version: window.navigator.userAgent,
54
18
  };
55
19
  }
20
+ /**
21
+ * A constant that indicates whether the environment the code is running is Cloudflare.
22
+ * https://developers.cloudflare.com/workers/runtime-apis/web-standards/#navigatoruseragent
23
+ */
24
+ const isCloudflare = typeof globalThis !== "undefined" && ((_a = globalThis === null || globalThis === void 0 ? void 0 : globalThis.navigator) === null || _a === void 0 ? void 0 : _a.userAgent) === "Cloudflare-Workers";
56
25
  if (isCloudflare) {
57
26
  return {
58
27
  type: "workerd",
59
28
  };
60
29
  }
30
+ /**
31
+ * A constant that indicates whether the environment the code is running is Edge Runtime.
32
+ * https://vercel.com/docs/functions/runtimes/edge-runtime#check-if-you're-running-on-the-edge-runtime
33
+ */
34
+ const isEdgeRuntime = typeof EdgeRuntime === "string";
35
+ if (isEdgeRuntime) {
36
+ return {
37
+ type: "edge-runtime",
38
+ };
39
+ }
40
+ /**
41
+ * A constant that indicates whether the environment the code is running is a Web Worker.
42
+ */
43
+ const isWebWorker = typeof self === "object" &&
44
+ // @ts-ignore
45
+ typeof (self === null || self === void 0 ? void 0 : self.importScripts) === "function" &&
46
+ (((_b = self.constructor) === null || _b === void 0 ? void 0 : _b.name) === "DedicatedWorkerGlobalScope" ||
47
+ ((_c = self.constructor) === null || _c === void 0 ? void 0 : _c.name) === "ServiceWorkerGlobalScope" ||
48
+ ((_d = self.constructor) === null || _d === void 0 ? void 0 : _d.name) === "SharedWorkerGlobalScope");
61
49
  if (isWebWorker) {
62
50
  return {
63
51
  type: "web-worker",
64
52
  };
65
53
  }
54
+ /**
55
+ * A constant that indicates whether the environment the code is running is Deno.
56
+ * FYI Deno spoofs process.versions.node, see https://deno.land/std@0.177.0/node/process.ts?s=versions
57
+ */
58
+ const isDeno = typeof Deno !== "undefined" && typeof Deno.version !== "undefined" && typeof Deno.version.deno !== "undefined";
66
59
  if (isDeno) {
67
60
  return {
68
61
  type: "deno",
69
62
  version: Deno.version.deno,
70
63
  };
71
64
  }
65
+ /**
66
+ * A constant that indicates whether the environment the code is running is Bun.sh.
67
+ */
68
+ const isBun = typeof Bun !== "undefined" && typeof Bun.version !== "undefined";
72
69
  if (isBun) {
73
70
  return {
74
71
  type: "bun",
75
72
  version: Bun.version,
76
73
  };
77
74
  }
75
+ /**
76
+ * A constant that indicates whether the environment the code is running is Node.JS.
77
+ */
78
+ const isNode = typeof process !== "undefined" &&
79
+ "version" in process &&
80
+ !!process.version &&
81
+ "versions" in process &&
82
+ !!((_e = process.versions) === null || _e === void 0 ? void 0 : _e.node);
78
83
  if (isNode) {
79
84
  return {
80
85
  type: "node",
@@ -82,6 +87,11 @@ function evaluateRuntime() {
82
87
  parsedVersion: Number(process.versions.node.split(".")[0]),
83
88
  };
84
89
  }
90
+ /**
91
+ * A constant that indicates whether the environment the code is running is in React-Native.
92
+ * https://github.com/facebook/react-native/blob/main/packages/react-native/Libraries/Core/setUpNavigator.js
93
+ */
94
+ const isReactNative = typeof navigator !== "undefined" && (navigator === null || navigator === void 0 ? void 0 : navigator.product) === "ReactNative";
85
95
  if (isReactNative) {
86
96
  return {
87
97
  type: "react-native",
@@ -1,13 +1,14 @@
1
1
  import { SchemaUtils } from "./builders";
2
- export declare type Schema<Raw = unknown, Parsed = unknown> = BaseSchema<Raw, Parsed> & SchemaUtils<Raw, Parsed>;
3
- export declare type inferRaw<S extends Schema> = S extends Schema<infer Raw, any> ? Raw : never;
4
- export declare type inferParsed<S extends Schema> = S extends Schema<any, infer Parsed> ? Parsed : never;
2
+ export type Schema<Raw = unknown, Parsed = unknown> = BaseSchema<Raw, Parsed> & SchemaUtils<Raw, Parsed>;
3
+ export type inferRaw<S extends Schema> = S extends Schema<infer Raw, any> ? Raw : never;
4
+ export type inferParsed<S extends Schema> = S extends Schema<any, infer Parsed> ? Parsed : never;
5
5
  export interface BaseSchema<Raw, Parsed> {
6
6
  parse: (raw: unknown, opts?: SchemaOptions) => MaybeValid<Parsed>;
7
7
  json: (parsed: unknown, opts?: SchemaOptions) => MaybeValid<Raw>;
8
8
  getType: () => SchemaType | SchemaType;
9
9
  }
10
10
  export declare const SchemaType: {
11
+ readonly BIGINT: "bigint";
11
12
  readonly DATE: "date";
12
13
  readonly ENUM: "enum";
13
14
  readonly LIST: "list";
@@ -23,10 +24,12 @@ export declare const SchemaType: {
23
24
  readonly SET: "set";
24
25
  readonly UNION: "union";
25
26
  readonly UNDISCRIMINATED_UNION: "undiscriminatedUnion";
27
+ readonly NULLABLE: "nullable";
26
28
  readonly OPTIONAL: "optional";
29
+ readonly OPTIONAL_NULLABLE: "optionalNullable";
27
30
  };
28
- export declare type SchemaType = typeof SchemaType[keyof typeof SchemaType];
29
- export declare type MaybeValid<T> = Valid<T> | Invalid;
31
+ export type SchemaType = (typeof SchemaType)[keyof typeof SchemaType];
32
+ export type MaybeValid<T> = Valid<T> | Invalid;
30
33
  export interface Valid<T> {
31
34
  ok: true;
32
35
  value: T;
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SchemaType = void 0;
4
4
  exports.SchemaType = {
5
+ BIGINT: "bigint",
5
6
  DATE: "date",
6
7
  ENUM: "enum",
7
8
  LIST: "list",
@@ -17,5 +18,7 @@ exports.SchemaType = {
17
18
  SET: "set",
18
19
  UNION: "union",
19
20
  UNDISCRIMINATED_UNION: "undiscriminatedUnion",
21
+ NULLABLE: "nullable",
20
22
  OPTIONAL: "optional",
23
+ OPTIONAL_NULLABLE: "optionalNullable",
21
24
  };
@@ -0,0 +1,2 @@
1
+ import { Schema } from "../../Schema";
2
+ export declare function bigint(): Schema<bigint | number, bigint>;
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.bigint = bigint;
4
+ const Schema_1 = require("../../Schema");
5
+ const getErrorMessageForIncorrectType_1 = require("../../utils/getErrorMessageForIncorrectType");
6
+ const maybeSkipValidation_1 = require("../../utils/maybeSkipValidation");
7
+ const schema_utils_1 = require("../schema-utils");
8
+ function bigint() {
9
+ const baseSchema = {
10
+ parse: (raw, { breadcrumbsPrefix = [] } = {}) => {
11
+ if (typeof raw === "bigint") {
12
+ return {
13
+ ok: true,
14
+ value: raw,
15
+ };
16
+ }
17
+ if (typeof raw === "number") {
18
+ return {
19
+ ok: true,
20
+ value: BigInt(raw),
21
+ };
22
+ }
23
+ return {
24
+ ok: false,
25
+ errors: [
26
+ {
27
+ path: breadcrumbsPrefix,
28
+ message: (0, getErrorMessageForIncorrectType_1.getErrorMessageForIncorrectType)(raw, "bigint | number"),
29
+ },
30
+ ],
31
+ };
32
+ },
33
+ json: (bigint, { breadcrumbsPrefix = [] } = {}) => {
34
+ if (typeof bigint !== "bigint") {
35
+ return {
36
+ ok: false,
37
+ errors: [
38
+ {
39
+ path: breadcrumbsPrefix,
40
+ message: (0, getErrorMessageForIncorrectType_1.getErrorMessageForIncorrectType)(bigint, "bigint"),
41
+ },
42
+ ],
43
+ };
44
+ }
45
+ return {
46
+ ok: true,
47
+ value: bigint,
48
+ };
49
+ },
50
+ getType: () => Schema_1.SchemaType.BIGINT,
51
+ };
52
+ return Object.assign(Object.assign({}, (0, maybeSkipValidation_1.maybeSkipValidation)(baseSchema)), (0, schema_utils_1.getSchemaUtils)(baseSchema));
53
+ }
@@ -0,0 +1 @@
1
+ export { bigint } from "./bigint";
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.bigint = void 0;
4
+ var bigint_1 = require("./bigint");
5
+ Object.defineProperty(exports, "bigint", { enumerable: true, get: function () { return bigint_1.bigint; } });
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.date = void 0;
3
+ exports.date = date;
4
4
  const Schema_1 = require("../../Schema");
5
5
  const getErrorMessageForIncorrectType_1 = require("../../utils/getErrorMessageForIncorrectType");
6
6
  const maybeSkipValidation_1 = require("../../utils/maybeSkipValidation");
@@ -60,4 +60,3 @@ function date() {
60
60
  };
61
61
  return Object.assign(Object.assign({}, (0, maybeSkipValidation_1.maybeSkipValidation)(baseSchema)), (0, schema_utils_1.getSchemaUtils)(baseSchema));
62
62
  }
63
- exports.date = date;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.enum_ = void 0;
3
+ exports.enum_ = enum_;
4
4
  const Schema_1 = require("../../Schema");
5
5
  const createIdentitySchemaCreator_1 = require("../../utils/createIdentitySchemaCreator");
6
6
  const getErrorMessageForIncorrectType_1 = require("../../utils/getErrorMessageForIncorrectType");
@@ -36,4 +36,3 @@ function enum_(values) {
36
36
  });
37
37
  return schemaCreator();
38
38
  }
39
- exports.enum_ = enum_;
@@ -1,3 +1,4 @@
1
+ export * from "./bigint";
1
2
  export * from "./date";
2
3
  export * from "./enum";
3
4
  export * from "./lazy";
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./bigint"), exports);
17
18
  __exportStar(require("./date"), exports);
18
19
  __exportStar(require("./enum"), exports);
19
20
  __exportStar(require("./lazy"), exports);
@@ -1,5 +1,5 @@
1
1
  import { BaseSchema, Schema } from "../../Schema";
2
- export declare type SchemaGetter<SchemaType extends Schema<any, any>> = () => SchemaType;
2
+ export type SchemaGetter<SchemaType extends Schema<any, any>> = () => SchemaType;
3
3
  export declare function lazy<Raw, Parsed>(getter: SchemaGetter<Schema<Raw, Parsed>>): Schema<Raw, Parsed>;
4
4
  export declare function constructLazyBaseSchema<Raw, Parsed>(getter: SchemaGetter<Schema<Raw, Parsed>>): BaseSchema<Raw, Parsed>;
5
5
  export declare function getMemoizedSchema<SchemaType extends Schema<any, any>>(getter: SchemaGetter<SchemaType>): SchemaType;
@@ -1,12 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getMemoizedSchema = exports.constructLazyBaseSchema = exports.lazy = void 0;
3
+ exports.lazy = lazy;
4
+ exports.constructLazyBaseSchema = constructLazyBaseSchema;
5
+ exports.getMemoizedSchema = getMemoizedSchema;
4
6
  const schema_utils_1 = require("../schema-utils");
5
7
  function lazy(getter) {
6
8
  const baseSchema = constructLazyBaseSchema(getter);
7
9
  return Object.assign(Object.assign({}, baseSchema), (0, schema_utils_1.getSchemaUtils)(baseSchema));
8
10
  }
9
- exports.lazy = lazy;
10
11
  function constructLazyBaseSchema(getter) {
11
12
  return {
12
13
  parse: (raw, opts) => getMemoizedSchema(getter).parse(raw, opts),
@@ -14,7 +15,6 @@ function constructLazyBaseSchema(getter) {
14
15
  getType: () => getMemoizedSchema(getter).getType(),
15
16
  };
16
17
  }
17
- exports.constructLazyBaseSchema = constructLazyBaseSchema;
18
18
  function getMemoizedSchema(getter) {
19
19
  const castedGetter = getter;
20
20
  if (castedGetter.__zurg_memoized == null) {
@@ -22,4 +22,3 @@ function getMemoizedSchema(getter) {
22
22
  }
23
23
  return castedGetter.__zurg_memoized;
24
24
  }
25
- exports.getMemoizedSchema = getMemoizedSchema;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.lazyObject = void 0;
3
+ exports.lazyObject = lazyObject;
4
4
  const object_1 = require("../object");
5
5
  const object_like_1 = require("../object-like");
6
6
  const schema_utils_1 = require("../schema-utils");
@@ -9,4 +9,3 @@ function lazyObject(getter) {
9
9
  const baseSchema = Object.assign(Object.assign({}, (0, lazy_1.constructLazyBaseSchema)(getter)), { _getRawProperties: () => (0, lazy_1.getMemoizedSchema)(getter)._getRawProperties(), _getParsedProperties: () => (0, lazy_1.getMemoizedSchema)(getter)._getParsedProperties() });
10
10
  return Object.assign(Object.assign(Object.assign(Object.assign({}, baseSchema), (0, schema_utils_1.getSchemaUtils)(baseSchema)), (0, object_like_1.getObjectLikeUtils)(baseSchema)), (0, object_1.getObjectUtils)(baseSchema));
11
11
  }
12
- exports.lazyObject = lazyObject;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.list = void 0;
3
+ exports.list = list;
4
4
  const Schema_1 = require("../../Schema");
5
5
  const getErrorMessageForIncorrectType_1 = require("../../utils/getErrorMessageForIncorrectType");
6
6
  const maybeSkipValidation_1 = require("../../utils/maybeSkipValidation");
@@ -19,7 +19,6 @@ function list(schema) {
19
19
  };
20
20
  return Object.assign(Object.assign({}, (0, maybeSkipValidation_1.maybeSkipValidation)(baseSchema)), (0, schema_utils_1.getSchemaUtils)(baseSchema));
21
21
  }
22
- exports.list = list;
23
22
  function validateAndTransformArray(value, transformItem) {
24
23
  if (!Array.isArray(value)) {
25
24
  return {
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.booleanLiteral = void 0;
3
+ exports.booleanLiteral = booleanLiteral;
4
4
  const Schema_1 = require("../../Schema");
5
5
  const createIdentitySchemaCreator_1 = require("../../utils/createIdentitySchemaCreator");
6
6
  const getErrorMessageForIncorrectType_1 = require("../../utils/getErrorMessageForIncorrectType");
@@ -26,4 +26,3 @@ function booleanLiteral(literal) {
26
26
  });
27
27
  return schemaCreator();
28
28
  }
29
- exports.booleanLiteral = booleanLiteral;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.stringLiteral = void 0;
3
+ exports.stringLiteral = stringLiteral;
4
4
  const Schema_1 = require("../../Schema");
5
5
  const createIdentitySchemaCreator_1 = require("../../utils/createIdentitySchemaCreator");
6
6
  const getErrorMessageForIncorrectType_1 = require("../../utils/getErrorMessageForIncorrectType");
@@ -26,4 +26,3 @@ function stringLiteral(literal) {
26
26
  });
27
27
  return schemaCreator();
28
28
  }
29
- exports.stringLiteral = stringLiteral;
@@ -1,3 +1,3 @@
1
- import { BaseObjectSchema, inferObjectSchemaFromPropertySchemas, ObjectUtils, PropertySchemas } from "./types";
1
+ import { BaseObjectSchema, ObjectUtils, PropertySchemas, inferObjectSchemaFromPropertySchemas } from "./types";
2
2
  export declare function object<ParsedKeys extends string, T extends PropertySchemas<ParsedKeys>>(schemas: T): inferObjectSchemaFromPropertySchemas<T>;
3
3
  export declare function getObjectUtils<Raw, Parsed>(schema: BaseObjectSchema<Raw, Parsed>): ObjectUtils<Raw, Parsed>;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getObjectUtils = exports.object = void 0;
3
+ exports.object = object;
4
+ exports.getObjectUtils = getObjectUtils;
4
5
  const Schema_1 = require("../../Schema");
5
6
  const entries_1 = require("../../utils/entries");
6
7
  const filterObject_1 = require("../../utils/filterObject");
@@ -104,7 +105,6 @@ function object(schemas) {
104
105
  };
105
106
  return Object.assign(Object.assign(Object.assign(Object.assign({}, (0, maybeSkipValidation_1.maybeSkipValidation)(baseSchema)), (0, schema_utils_1.getSchemaUtils)(baseSchema)), (0, object_like_1.getObjectLikeUtils)(baseSchema)), getObjectUtils(baseSchema));
106
107
  }
107
- exports.object = object;
108
108
  function validateAndTransformObject({ value, requiredKeys, getProperty, unrecognizedObjectKeys = "fail", skipValidation = false, breadcrumbsPrefix = [], }) {
109
109
  if (!(0, isPlainObject_1.isPlainObject)(value)) {
110
110
  return {
@@ -194,9 +194,36 @@ function getObjectUtils(schema) {
194
194
  };
195
195
  return Object.assign(Object.assign(Object.assign(Object.assign({}, baseSchema), (0, schema_utils_1.getSchemaUtils)(baseSchema)), (0, object_like_1.getObjectLikeUtils)(baseSchema)), getObjectUtils(baseSchema));
196
196
  },
197
+ passthrough: () => {
198
+ const baseSchema = {
199
+ _getParsedProperties: () => schema._getParsedProperties(),
200
+ _getRawProperties: () => schema._getRawProperties(),
201
+ parse: (raw, opts) => {
202
+ const transformed = schema.parse(raw, Object.assign(Object.assign({}, opts), { unrecognizedObjectKeys: "passthrough" }));
203
+ if (!transformed.ok) {
204
+ return transformed;
205
+ }
206
+ return {
207
+ ok: true,
208
+ value: Object.assign(Object.assign({}, raw), transformed.value),
209
+ };
210
+ },
211
+ json: (parsed, opts) => {
212
+ const transformed = schema.json(parsed, Object.assign(Object.assign({}, opts), { unrecognizedObjectKeys: "passthrough" }));
213
+ if (!transformed.ok) {
214
+ return transformed;
215
+ }
216
+ return {
217
+ ok: true,
218
+ value: Object.assign(Object.assign({}, parsed), transformed.value),
219
+ };
220
+ },
221
+ getType: () => Schema_1.SchemaType.OBJECT,
222
+ };
223
+ return Object.assign(Object.assign(Object.assign(Object.assign({}, baseSchema), (0, schema_utils_1.getSchemaUtils)(baseSchema)), (0, object_like_1.getObjectLikeUtils)(baseSchema)), getObjectUtils(baseSchema));
224
+ },
197
225
  };
198
226
  }
199
- exports.getObjectUtils = getObjectUtils;
200
227
  function validateAndTransformExtendedObject({ extensionKeys, value, transformBase, transformExtension, }) {
201
228
  const extensionPropertiesSet = new Set(extensionKeys);
202
229
  const [extensionProperties, baseProperties] = (0, partition_1.partition)((0, keys_1.keys)(value), (key) => extensionPropertiesSet.has(key));
@@ -226,6 +253,7 @@ function isSchemaOptional(schema) {
226
253
  case Schema_1.SchemaType.ANY:
227
254
  case Schema_1.SchemaType.UNKNOWN:
228
255
  case Schema_1.SchemaType.OPTIONAL:
256
+ case Schema_1.SchemaType.OPTIONAL_NULLABLE:
229
257
  return true;
230
258
  default:
231
259
  return false;
@@ -1,6 +1,6 @@
1
- import { inferParsedPropertySchema, inferRawObjectFromPropertySchemas, ObjectSchema, PropertySchemas } from "./types";
1
+ import { ObjectSchema, PropertySchemas, inferParsedPropertySchema, inferRawObjectFromPropertySchemas } from "./types";
2
2
  export declare function objectWithoutOptionalProperties<ParsedKeys extends string, T extends PropertySchemas<ParsedKeys>>(schemas: T): inferObjectWithoutOptionalPropertiesSchemaFromPropertySchemas<T>;
3
- export declare type inferObjectWithoutOptionalPropertiesSchemaFromPropertySchemas<T extends PropertySchemas<keyof T>> = ObjectSchema<inferRawObjectFromPropertySchemas<T>, inferParsedObjectWithoutOptionalPropertiesFromPropertySchemas<T>>;
4
- export declare type inferParsedObjectWithoutOptionalPropertiesFromPropertySchemas<T extends PropertySchemas<keyof T>> = {
3
+ export type inferObjectWithoutOptionalPropertiesSchemaFromPropertySchemas<T extends PropertySchemas<keyof T>> = ObjectSchema<inferRawObjectFromPropertySchemas<T>, inferParsedObjectWithoutOptionalPropertiesFromPropertySchemas<T>>;
4
+ export type inferParsedObjectWithoutOptionalPropertiesFromPropertySchemas<T extends PropertySchemas<keyof T>> = {
5
5
  [K in keyof T]: inferParsedPropertySchema<T[K]>;
6
6
  };
@@ -1,8 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.objectWithoutOptionalProperties = void 0;
3
+ exports.objectWithoutOptionalProperties = objectWithoutOptionalProperties;
4
4
  const object_1 = require("./object");
5
5
  function objectWithoutOptionalProperties(schemas) {
6
6
  return (0, object_1.object)(schemas);
7
7
  }
8
- exports.objectWithoutOptionalProperties = objectWithoutOptionalProperties;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isProperty = exports.property = void 0;
3
+ exports.property = property;
4
+ exports.isProperty = isProperty;
4
5
  function property(rawKey, valueSchema) {
5
6
  return {
6
7
  rawKey,
@@ -8,9 +9,7 @@ function property(rawKey, valueSchema) {
8
9
  isProperty: true,
9
10
  };
10
11
  }
11
- exports.property = property;
12
12
  function isProperty(maybeProperty) {
13
13
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
14
14
  return maybeProperty.isProperty;
15
15
  }
16
- exports.isProperty = isProperty;
@@ -1,26 +1,31 @@
1
- import { BaseSchema, inferParsed, inferRaw, Schema } from "../../Schema";
1
+ import { BaseSchema, Schema, inferParsed, inferRaw } from "../../Schema";
2
2
  import { addQuestionMarksToNullableProperties } from "../../utils/addQuestionMarksToNullableProperties";
3
3
  import { ObjectLikeUtils } from "../object-like";
4
4
  import { SchemaUtils } from "../schema-utils";
5
5
  import { Property } from "./property";
6
- export declare type ObjectSchema<Raw, Parsed> = BaseObjectSchema<Raw, Parsed> & ObjectLikeUtils<Raw, Parsed> & ObjectUtils<Raw, Parsed> & SchemaUtils<Raw, Parsed>;
6
+ export type ObjectSchema<Raw, Parsed> = BaseObjectSchema<Raw, Parsed> & ObjectLikeUtils<Raw, Parsed> & ObjectUtils<Raw, Parsed> & SchemaUtils<Raw, Parsed>;
7
7
  export interface BaseObjectSchema<Raw, Parsed> extends BaseSchema<Raw, Parsed> {
8
8
  _getRawProperties: () => (keyof Raw)[];
9
9
  _getParsedProperties: () => (keyof Parsed)[];
10
10
  }
11
11
  export interface ObjectUtils<Raw, Parsed> {
12
12
  extend: <RawExtension, ParsedExtension>(schemas: ObjectSchema<RawExtension, ParsedExtension>) => ObjectSchema<Raw & RawExtension, Parsed & ParsedExtension>;
13
+ passthrough: () => ObjectSchema<Raw & {
14
+ [key: string]: unknown;
15
+ }, Parsed & {
16
+ [key: string]: unknown;
17
+ }>;
13
18
  }
14
- export declare type inferRawObject<O extends ObjectSchema<any, any>> = O extends ObjectSchema<infer Raw, any> ? Raw : never;
15
- export declare type inferParsedObject<O extends ObjectSchema<any, any>> = O extends ObjectSchema<any, infer Parsed> ? Parsed : never;
16
- export declare type inferObjectSchemaFromPropertySchemas<T extends PropertySchemas<keyof T>> = ObjectSchema<inferRawObjectFromPropertySchemas<T>, inferParsedObjectFromPropertySchemas<T>>;
17
- export declare type inferRawObjectFromPropertySchemas<T extends PropertySchemas<keyof T>> = addQuestionMarksToNullableProperties<{
19
+ export type inferRawObject<O extends ObjectSchema<any, any>> = O extends ObjectSchema<infer Raw, any> ? Raw : never;
20
+ export type inferParsedObject<O extends ObjectSchema<any, any>> = O extends ObjectSchema<any, infer Parsed> ? Parsed : never;
21
+ export type inferObjectSchemaFromPropertySchemas<T extends PropertySchemas<keyof T>> = ObjectSchema<inferRawObjectFromPropertySchemas<T>, inferParsedObjectFromPropertySchemas<T>>;
22
+ export type inferRawObjectFromPropertySchemas<T extends PropertySchemas<keyof T>> = addQuestionMarksToNullableProperties<{
18
23
  [ParsedKey in keyof T as inferRawKey<ParsedKey, T[ParsedKey]>]: inferRawPropertySchema<T[ParsedKey]>;
19
24
  }>;
20
- export declare type inferParsedObjectFromPropertySchemas<T extends PropertySchemas<keyof T>> = addQuestionMarksToNullableProperties<{
25
+ export type inferParsedObjectFromPropertySchemas<T extends PropertySchemas<keyof T>> = addQuestionMarksToNullableProperties<{
21
26
  [K in keyof T]: inferParsedPropertySchema<T[K]>;
22
27
  }>;
23
- export declare type PropertySchemas<ParsedKeys extends string | number | symbol> = Record<ParsedKeys, Property<any, any, any> | Schema<any, any>>;
24
- export declare type inferRawPropertySchema<P extends Property<any, any, any> | Schema<any, any>> = P extends Property<any, infer Raw, any> ? Raw : P extends Schema<any, any> ? inferRaw<P> : never;
25
- export declare type inferParsedPropertySchema<P extends Property<any, any, any> | Schema<any, any>> = P extends Property<any, any, infer Parsed> ? Parsed : P extends Schema<any, any> ? inferParsed<P> : never;
26
- export declare type inferRawKey<ParsedKey extends string | number | symbol, P extends Property<any, any, any> | Schema<any, any>> = P extends Property<infer Raw, any, any> ? Raw : ParsedKey;
28
+ export type PropertySchemas<ParsedKeys extends string | number | symbol> = Record<ParsedKeys, Property<any, any, any> | Schema<any, any>>;
29
+ export type inferRawPropertySchema<P extends Property<any, any, any> | Schema<any, any>> = P extends Property<any, infer Raw, any> ? Raw : P extends Schema<any, any> ? inferRaw<P> : never;
30
+ export type inferParsedPropertySchema<P extends Property<any, any, any> | Schema<any, any>> = P extends Property<any, any, infer Parsed> ? Parsed : P extends Schema<any, any> ? inferParsed<P> : never;
31
+ export type inferRawKey<ParsedKey extends string | number | symbol, P extends Property<any, any, any> | Schema<any, any>> = P extends Property<infer Raw, any, any> ? Raw : ParsedKey;