@mistralai/mistralai 1.10.0 → 1.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (373) hide show
  1. package/README.md +21 -7
  2. package/_speakeasy/.github/action-inputs-config.json +53 -0
  3. package/_speakeasy/.github/action-security-config.json +88 -0
  4. package/funcs/audioTranscriptionsStream.d.ts +1 -1
  5. package/funcs/audioTranscriptionsStream.js +1 -1
  6. package/funcs/batchJobsGet.d.ts +3 -0
  7. package/funcs/batchJobsGet.d.ts.map +1 -1
  8. package/funcs/batchJobsGet.js +7 -0
  9. package/funcs/batchJobsGet.js.map +1 -1
  10. package/funcs/betaAgentsDelete.d.ts +15 -0
  11. package/funcs/betaAgentsDelete.d.ts.map +1 -0
  12. package/funcs/betaAgentsDelete.js +121 -0
  13. package/funcs/betaAgentsDelete.js.map +1 -0
  14. package/funcs/betaAgentsGet.js +4 -0
  15. package/funcs/betaAgentsGet.js.map +1 -1
  16. package/funcs/betaAgentsList.d.ts.map +1 -1
  17. package/funcs/betaAgentsList.js +8 -2
  18. package/funcs/betaAgentsList.js.map +1 -1
  19. package/funcs/betaConversationsDelete.d.ts +18 -0
  20. package/funcs/betaConversationsDelete.d.ts.map +1 -0
  21. package/funcs/betaConversationsDelete.js +124 -0
  22. package/funcs/betaConversationsDelete.js.map +1 -0
  23. package/funcs/betaConversationsList.d.ts.map +1 -1
  24. package/funcs/betaConversationsList.js +4 -2
  25. package/funcs/betaConversationsList.js.map +1 -1
  26. package/funcs/betaLibrariesDocumentsList.d.ts +1 -1
  27. package/funcs/betaLibrariesDocumentsList.js +2 -1
  28. package/funcs/betaLibrariesDocumentsList.js.map +1 -1
  29. package/funcs/filesList.js +1 -0
  30. package/funcs/filesList.js.map +1 -1
  31. package/funcs/modelsList.d.ts +1 -2
  32. package/funcs/modelsList.d.ts.map +1 -1
  33. package/funcs/modelsList.js +2 -6
  34. package/funcs/modelsList.js.map +1 -1
  35. package/jsr.json +1 -1
  36. package/lib/config.d.ts +2 -2
  37. package/lib/config.js +2 -2
  38. package/models/components/agent.d.ts +12 -0
  39. package/models/components/agent.d.ts.map +1 -1
  40. package/models/components/agent.js +10 -0
  41. package/models/components/agent.js.map +1 -1
  42. package/models/components/agentconversation.d.ts +11 -0
  43. package/models/components/agentconversation.d.ts.map +1 -1
  44. package/models/components/agentconversation.js +6 -0
  45. package/models/components/agentconversation.js.map +1 -1
  46. package/models/components/agentcreationrequest.d.ts +6 -0
  47. package/models/components/agentcreationrequest.d.ts.map +1 -1
  48. package/models/components/agentcreationrequest.js +2 -0
  49. package/models/components/agentcreationrequest.js.map +1 -1
  50. package/models/components/agentscompletionrequest.d.ts +14 -2
  51. package/models/components/agentscompletionrequest.d.ts.map +1 -1
  52. package/models/components/agentscompletionrequest.js +2 -0
  53. package/models/components/agentscompletionrequest.js.map +1 -1
  54. package/models/components/agentscompletionstreamrequest.d.ts +14 -2
  55. package/models/components/agentscompletionstreamrequest.d.ts.map +1 -1
  56. package/models/components/agentscompletionstreamrequest.js +2 -0
  57. package/models/components/agentscompletionstreamrequest.js.map +1 -1
  58. package/models/components/agentupdaterequest.d.ts +8 -0
  59. package/models/components/agentupdaterequest.d.ts.map +1 -1
  60. package/models/components/agentupdaterequest.js +6 -0
  61. package/models/components/agentupdaterequest.js.map +1 -1
  62. package/models/components/audioencoding.d.ts +26 -0
  63. package/models/components/audioencoding.d.ts.map +1 -0
  64. package/models/components/audioencoding.js +72 -0
  65. package/models/components/audioencoding.js.map +1 -0
  66. package/models/components/audioformat.d.ts +32 -0
  67. package/models/components/audioformat.d.ts.map +1 -0
  68. package/models/components/audioformat.js +81 -0
  69. package/models/components/audioformat.js.map +1 -0
  70. package/models/components/audiotranscriptionrequest.d.ts +3 -0
  71. package/models/components/audiotranscriptionrequest.d.ts.map +1 -1
  72. package/models/components/audiotranscriptionrequest.js.map +1 -1
  73. package/models/components/batchjobin.d.ts +20 -2
  74. package/models/components/batchjobin.d.ts.map +1 -1
  75. package/models/components/batchjobin.js +5 -2
  76. package/models/components/batchjobin.js.map +1 -1
  77. package/models/components/batchjobout.d.ts +6 -0
  78. package/models/components/batchjobout.d.ts.map +1 -1
  79. package/models/components/batchjobout.js +2 -0
  80. package/models/components/batchjobout.js.map +1 -1
  81. package/models/components/batchrequest.d.ts +35 -0
  82. package/models/components/batchrequest.d.ts.map +1 -0
  83. package/models/components/batchrequest.js +80 -0
  84. package/models/components/batchrequest.js.map +1 -0
  85. package/models/components/chatcompletionrequest.d.ts +26 -2
  86. package/models/components/chatcompletionrequest.d.ts.map +1 -1
  87. package/models/components/chatcompletionrequest.js +2 -0
  88. package/models/components/chatcompletionrequest.js.map +1 -1
  89. package/models/components/chatcompletionstreamrequest.d.ts +26 -2
  90. package/models/components/chatcompletionstreamrequest.d.ts.map +1 -1
  91. package/models/components/chatcompletionstreamrequest.js +2 -0
  92. package/models/components/chatcompletionstreamrequest.js.map +1 -1
  93. package/models/components/classificationrequest.d.ts +6 -0
  94. package/models/components/classificationrequest.d.ts.map +1 -1
  95. package/models/components/classificationrequest.js +2 -0
  96. package/models/components/classificationrequest.js.map +1 -1
  97. package/models/components/conversationrequest.d.ts +13 -2
  98. package/models/components/conversationrequest.d.ts.map +1 -1
  99. package/models/components/conversationrequest.js +16 -6
  100. package/models/components/conversationrequest.js.map +1 -1
  101. package/models/components/conversationrestartrequest.d.ts +14 -0
  102. package/models/components/conversationrestartrequest.d.ts.map +1 -1
  103. package/models/components/conversationrestartrequest.js +6 -0
  104. package/models/components/conversationrestartrequest.js.map +1 -1
  105. package/models/components/conversationrestartstreamrequest.d.ts +14 -0
  106. package/models/components/conversationrestartstreamrequest.d.ts.map +1 -1
  107. package/models/components/conversationrestartstreamrequest.js +6 -0
  108. package/models/components/conversationrestartstreamrequest.js.map +1 -1
  109. package/models/components/conversationstreamrequest.d.ts +13 -2
  110. package/models/components/conversationstreamrequest.d.ts.map +1 -1
  111. package/models/components/conversationstreamrequest.js +16 -6
  112. package/models/components/conversationstreamrequest.js.map +1 -1
  113. package/models/components/documentout.d.ts +18 -10
  114. package/models/components/documentout.d.ts.map +1 -1
  115. package/models/components/documentout.js +14 -10
  116. package/models/components/documentout.js.map +1 -1
  117. package/models/components/documentupdatein.d.ts +27 -0
  118. package/models/components/documentupdatein.d.ts.map +1 -1
  119. package/models/components/documentupdatein.js +66 -1
  120. package/models/components/documentupdatein.js.map +1 -1
  121. package/models/components/embeddingrequest.d.ts +10 -4
  122. package/models/components/embeddingrequest.d.ts.map +1 -1
  123. package/models/components/embeddingrequest.js +2 -0
  124. package/models/components/embeddingrequest.js.map +1 -1
  125. package/models/components/fimcompletionrequest.d.ts +7 -5
  126. package/models/components/fimcompletionrequest.d.ts.map +1 -1
  127. package/models/components/fimcompletionrequest.js +2 -0
  128. package/models/components/fimcompletionrequest.js.map +1 -1
  129. package/models/components/fimcompletionstreamrequest.d.ts +7 -5
  130. package/models/components/fimcompletionstreamrequest.d.ts.map +1 -1
  131. package/models/components/fimcompletionstreamrequest.js +2 -0
  132. package/models/components/fimcompletionstreamrequest.js.map +1 -1
  133. package/models/components/index.d.ts +5 -0
  134. package/models/components/index.d.ts.map +1 -1
  135. package/models/components/index.js +5 -0
  136. package/models/components/index.js.map +1 -1
  137. package/models/components/libraryout.d.ts +7 -4
  138. package/models/components/libraryout.d.ts.map +1 -1
  139. package/models/components/libraryout.js +6 -6
  140. package/models/components/libraryout.js.map +1 -1
  141. package/models/components/listfilesout.d.ts +2 -2
  142. package/models/components/listfilesout.d.ts.map +1 -1
  143. package/models/components/listfilesout.js +2 -2
  144. package/models/components/listfilesout.js.map +1 -1
  145. package/models/components/modelcapabilities.d.ts +8 -2
  146. package/models/components/modelcapabilities.d.ts.map +1 -1
  147. package/models/components/modelcapabilities.js +12 -6
  148. package/models/components/modelcapabilities.js.map +1 -1
  149. package/models/components/modelconversation.d.ts +9 -0
  150. package/models/components/modelconversation.d.ts.map +1 -1
  151. package/models/components/modelconversation.js +2 -0
  152. package/models/components/modelconversation.js.map +1 -1
  153. package/models/components/ocrpageobject.d.ts +21 -0
  154. package/models/components/ocrpageobject.d.ts.map +1 -1
  155. package/models/components/ocrpageobject.js +9 -0
  156. package/models/components/ocrpageobject.js.map +1 -1
  157. package/models/components/ocrrequest.d.ts +32 -0
  158. package/models/components/ocrrequest.d.ts.map +1 -1
  159. package/models/components/ocrrequest.js +33 -1
  160. package/models/components/ocrrequest.js.map +1 -1
  161. package/models/components/ocrtableobject.d.ts +74 -0
  162. package/models/components/ocrtableobject.d.ts.map +1 -0
  163. package/models/components/ocrtableobject.js +96 -0
  164. package/models/components/ocrtableobject.js.map +1 -0
  165. package/models/components/prediction.d.ts +3 -0
  166. package/models/components/prediction.d.ts.map +1 -1
  167. package/models/components/prediction.js.map +1 -1
  168. package/models/components/requestsource.d.ts +31 -0
  169. package/models/components/requestsource.d.ts.map +1 -0
  170. package/models/components/requestsource.js +61 -0
  171. package/models/components/requestsource.js.map +1 -0
  172. package/models/components/responseformat.d.ts +3 -3
  173. package/models/components/responseformat.d.ts.map +1 -1
  174. package/models/components/responseformats.d.ts +0 -6
  175. package/models/components/responseformats.d.ts.map +1 -1
  176. package/models/components/responseformats.js +0 -3
  177. package/models/components/responseformats.js.map +1 -1
  178. package/models/components/sharingdelete.d.ts +2 -2
  179. package/models/components/sharingdelete.d.ts.map +1 -1
  180. package/models/components/sharingdelete.js +2 -2
  181. package/models/components/sharingdelete.js.map +1 -1
  182. package/models/components/sharingin.d.ts +2 -2
  183. package/models/components/sharingin.d.ts.map +1 -1
  184. package/models/components/sharingin.js +2 -2
  185. package/models/components/sharingin.js.map +1 -1
  186. package/models/components/sharingout.d.ts +2 -2
  187. package/models/components/sharingout.d.ts.map +1 -1
  188. package/models/components/sharingout.js +2 -2
  189. package/models/components/sharingout.js.map +1 -1
  190. package/models/components/toolexecutiondeltaevent.d.ts +23 -2
  191. package/models/components/toolexecutiondeltaevent.d.ts.map +1 -1
  192. package/models/components/toolexecutiondeltaevent.js +26 -3
  193. package/models/components/toolexecutiondeltaevent.js.map +1 -1
  194. package/models/components/toolexecutiondoneevent.d.ts +23 -2
  195. package/models/components/toolexecutiondoneevent.d.ts.map +1 -1
  196. package/models/components/toolexecutiondoneevent.js +26 -3
  197. package/models/components/toolexecutiondoneevent.js.map +1 -1
  198. package/models/components/toolexecutionentry.d.ts +23 -2
  199. package/models/components/toolexecutionentry.d.ts.map +1 -1
  200. package/models/components/toolexecutionentry.js +27 -3
  201. package/models/components/toolexecutionentry.js.map +1 -1
  202. package/models/components/toolexecutionstartedevent.d.ts +23 -2
  203. package/models/components/toolexecutionstartedevent.d.ts.map +1 -1
  204. package/models/components/toolexecutionstartedevent.js +26 -3
  205. package/models/components/toolexecutionstartedevent.js.map +1 -1
  206. package/models/components/toolfilechunk.d.ts +23 -2
  207. package/models/components/toolfilechunk.d.ts.map +1 -1
  208. package/models/components/toolfilechunk.js +26 -3
  209. package/models/components/toolfilechunk.js.map +1 -1
  210. package/models/components/toolreferencechunk.d.ts +23 -2
  211. package/models/components/toolreferencechunk.d.ts.map +1 -1
  212. package/models/components/toolreferencechunk.js +26 -3
  213. package/models/components/toolreferencechunk.js.map +1 -1
  214. package/models/operations/agentsapiv1agentsdelete.d.ts +29 -0
  215. package/models/operations/agentsapiv1agentsdelete.d.ts.map +1 -0
  216. package/models/operations/agentsapiv1agentsdelete.js +78 -0
  217. package/models/operations/agentsapiv1agentsdelete.js.map +1 -0
  218. package/models/operations/agentsapiv1agentsget.d.ts +2 -0
  219. package/models/operations/agentsapiv1agentsget.d.ts.map +1 -1
  220. package/models/operations/agentsapiv1agentsget.js +4 -0
  221. package/models/operations/agentsapiv1agentsget.js.map +1 -1
  222. package/models/operations/agentsapiv1agentslist.d.ts +15 -0
  223. package/models/operations/agentsapiv1agentslist.d.ts.map +1 -1
  224. package/models/operations/agentsapiv1agentslist.js +15 -0
  225. package/models/operations/agentsapiv1agentslist.js.map +1 -1
  226. package/models/operations/agentsapiv1conversationsdelete.d.ts +32 -0
  227. package/models/operations/agentsapiv1conversationsdelete.d.ts.map +1 -0
  228. package/models/operations/agentsapiv1conversationsdelete.js +78 -0
  229. package/models/operations/agentsapiv1conversationsdelete.js.map +1 -0
  230. package/models/operations/agentsapiv1conversationslist.d.ts +6 -0
  231. package/models/operations/agentsapiv1conversationslist.d.ts.map +1 -1
  232. package/models/operations/agentsapiv1conversationslist.js +2 -0
  233. package/models/operations/agentsapiv1conversationslist.js.map +1 -1
  234. package/models/operations/filesapirouteslistfiles.d.ts +2 -0
  235. package/models/operations/filesapirouteslistfiles.d.ts.map +1 -1
  236. package/models/operations/filesapirouteslistfiles.js +4 -0
  237. package/models/operations/filesapirouteslistfiles.js.map +1 -1
  238. package/models/operations/index.d.ts +2 -0
  239. package/models/operations/index.d.ts.map +1 -1
  240. package/models/operations/index.js +2 -0
  241. package/models/operations/index.js.map +1 -1
  242. package/models/operations/jobsapiroutesbatchgetbatchjob.d.ts +2 -0
  243. package/models/operations/jobsapiroutesbatchgetbatchjob.d.ts.map +1 -1
  244. package/models/operations/jobsapiroutesbatchgetbatchjob.js +2 -0
  245. package/models/operations/jobsapiroutesbatchgetbatchjob.js.map +1 -1
  246. package/models/operations/librariesdocumentslistv1.d.ts +2 -0
  247. package/models/operations/librariesdocumentslistv1.d.ts.map +1 -1
  248. package/models/operations/librariesdocumentslistv1.js +4 -0
  249. package/models/operations/librariesdocumentslistv1.js.map +1 -1
  250. package/package.json +1 -1
  251. package/sdk/conversations.d.ts +7 -0
  252. package/sdk/conversations.d.ts.map +1 -1
  253. package/sdk/conversations.js +10 -0
  254. package/sdk/conversations.js.map +1 -1
  255. package/sdk/documents.d.ts +1 -1
  256. package/sdk/documents.js +1 -1
  257. package/sdk/mistralagents.d.ts +4 -0
  258. package/sdk/mistralagents.d.ts.map +1 -1
  259. package/sdk/mistralagents.js +7 -0
  260. package/sdk/mistralagents.js.map +1 -1
  261. package/sdk/mistraljobs.d.ts +3 -0
  262. package/sdk/mistraljobs.d.ts.map +1 -1
  263. package/sdk/mistraljobs.js +3 -0
  264. package/sdk/mistraljobs.js.map +1 -1
  265. package/sdk/transcriptions.d.ts +1 -1
  266. package/sdk/transcriptions.js +1 -1
  267. package/src/funcs/audioTranscriptionsStream.ts +1 -1
  268. package/src/funcs/batchJobsGet.ts +9 -1
  269. package/src/funcs/betaAgentsDelete.ts +174 -0
  270. package/src/funcs/betaAgentsGet.ts +6 -1
  271. package/src/funcs/betaAgentsList.ts +18 -5
  272. package/src/funcs/betaConversationsDelete.ts +179 -0
  273. package/src/funcs/betaConversationsList.ts +14 -5
  274. package/src/funcs/betaLibrariesDocumentsList.ts +2 -1
  275. package/src/funcs/filesList.ts +1 -0
  276. package/src/funcs/modelsList.ts +2 -11
  277. package/src/lib/config.ts +2 -2
  278. package/src/models/components/agent.ts +18 -0
  279. package/src/models/components/agentconversation.ts +13 -0
  280. package/src/models/components/agentcreationrequest.ts +4 -0
  281. package/src/models/components/agentscompletionrequest.ts +12 -2
  282. package/src/models/components/agentscompletionstreamrequest.ts +12 -2
  283. package/src/models/components/agentupdaterequest.ts +10 -0
  284. package/src/models/components/audioencoding.ts +52 -0
  285. package/src/models/components/audioformat.ts +80 -0
  286. package/src/models/components/audiotranscriptionrequest.ts +3 -0
  287. package/src/models/components/batchjobin.ts +29 -4
  288. package/src/models/components/batchjobout.ts +4 -0
  289. package/src/models/components/batchrequest.ts +75 -0
  290. package/src/models/components/chatcompletionrequest.ts +24 -2
  291. package/src/models/components/chatcompletionstreamrequest.ts +24 -2
  292. package/src/models/components/classificationrequest.ts +4 -0
  293. package/src/models/components/conversationrequest.ts +79 -72
  294. package/src/models/components/conversationrestartrequest.ts +16 -0
  295. package/src/models/components/conversationrestartstreamrequest.ts +16 -0
  296. package/src/models/components/conversationstreamrequest.ts +79 -72
  297. package/src/models/components/documentout.ts +28 -20
  298. package/src/models/components/documentupdatein.ts +144 -0
  299. package/src/models/components/embeddingrequest.ts +8 -4
  300. package/src/models/components/fimcompletionrequest.ts +5 -5
  301. package/src/models/components/fimcompletionstreamrequest.ts +5 -5
  302. package/src/models/components/index.ts +5 -0
  303. package/src/models/components/libraryout.ts +13 -10
  304. package/src/models/components/listfilesout.ts +4 -4
  305. package/src/models/components/modelcapabilities.ts +20 -8
  306. package/src/models/components/modelconversation.ts +7 -0
  307. package/src/models/components/ocrpageobject.ts +34 -0
  308. package/src/models/components/ocrrequest.ts +44 -0
  309. package/src/models/components/ocrtableobject.ts +111 -0
  310. package/src/models/components/prediction.ts +3 -0
  311. package/src/models/components/requestsource.ts +34 -0
  312. package/src/models/components/responseformat.ts +3 -3
  313. package/src/models/components/responseformats.ts +0 -6
  314. package/src/models/components/sharingdelete.ts +4 -4
  315. package/src/models/components/sharingin.ts +4 -4
  316. package/src/models/components/sharingout.ts +4 -4
  317. package/src/models/components/toolexecutiondeltaevent.ts +56 -4
  318. package/src/models/components/toolexecutiondoneevent.ts +54 -4
  319. package/src/models/components/toolexecutionentry.ts +44 -4
  320. package/src/models/components/toolexecutionstartedevent.ts +56 -4
  321. package/src/models/components/toolfilechunk.ts +54 -4
  322. package/src/models/components/toolreferencechunk.ts +54 -4
  323. package/src/models/operations/agentsapiv1agentsdelete.ts +77 -0
  324. package/src/models/operations/agentsapiv1agentsget.ts +6 -0
  325. package/src/models/operations/agentsapiv1agentslist.ts +25 -0
  326. package/src/models/operations/agentsapiv1conversationsdelete.ts +83 -0
  327. package/src/models/operations/agentsapiv1conversationslist.ts +4 -0
  328. package/src/models/operations/filesapirouteslistfiles.ts +6 -0
  329. package/src/models/operations/index.ts +2 -0
  330. package/src/models/operations/jobsapiroutesbatchgetbatchjob.ts +4 -0
  331. package/src/models/operations/librariesdocumentslistv1.ts +6 -0
  332. package/src/sdk/conversations.ts +18 -0
  333. package/src/sdk/documents.ts +1 -1
  334. package/src/sdk/mistralagents.ts +15 -0
  335. package/src/sdk/mistraljobs.ts +3 -0
  336. package/src/sdk/transcriptions.ts +1 -1
  337. package/.devcontainer/README.md +0 -35
  338. package/docs/sdks/accesses/README.md +0 -256
  339. package/docs/sdks/agents/README.md +0 -189
  340. package/docs/sdks/audio/README.md +0 -6
  341. package/docs/sdks/batch/README.md +0 -6
  342. package/docs/sdks/beta/README.md +0 -6
  343. package/docs/sdks/chat/README.md +0 -189
  344. package/docs/sdks/classifiers/README.md +0 -355
  345. package/docs/sdks/conversations/README.md +0 -835
  346. package/docs/sdks/documents/README.md +0 -785
  347. package/docs/sdks/embeddings/README.md +0 -92
  348. package/docs/sdks/files/README.md +0 -455
  349. package/docs/sdks/fim/README.md +0 -173
  350. package/docs/sdks/finetuning/README.md +0 -6
  351. package/docs/sdks/jobs/README.md +0 -379
  352. package/docs/sdks/libraries/README.md +0 -380
  353. package/docs/sdks/mistral/README.md +0 -7
  354. package/docs/sdks/mistralagents/README.md +0 -386
  355. package/docs/sdks/mistraljobs/README.md +0 -305
  356. package/docs/sdks/models/README.md +0 -453
  357. package/docs/sdks/ocr/README.md +0 -92
  358. package/docs/sdks/transcriptions/README.md +0 -163
  359. package/examples/README.md +0 -44
  360. package/packages/mistralai-azure/FUNCTIONS.md +0 -111
  361. package/packages/mistralai-azure/LICENSE +0 -201
  362. package/packages/mistralai-azure/README.md +0 -447
  363. package/packages/mistralai-azure/RUNTIMES.md +0 -48
  364. package/packages/mistralai-azure/docs/sdks/chat/README.md +0 -114
  365. package/packages/mistralai-azure/docs/sdks/mistralazure/README.md +0 -9
  366. package/packages/mistralai-gcp/FUNCTIONS.md +0 -112
  367. package/packages/mistralai-gcp/LICENSE +0 -201
  368. package/packages/mistralai-gcp/README.md +0 -455
  369. package/packages/mistralai-gcp/RUNTIMES.md +0 -48
  370. package/packages/mistralai-gcp/docs/sdks/chat/README.md +0 -115
  371. package/packages/mistralai-gcp/docs/sdks/fim/README.md +0 -58
  372. package/packages/mistralai-gcp/docs/sdks/mistralgcp/README.md +0 -9
  373. package/src/extra/README.md +0 -52
@@ -0,0 +1,52 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import {
7
+ catchUnrecognizedEnum,
8
+ OpenEnum,
9
+ Unrecognized,
10
+ } from "../../types/enums.js";
11
+
12
+ export const AudioEncoding = {
13
+ PcmS16le: "pcm_s16le",
14
+ PcmS32le: "pcm_s32le",
15
+ PcmF16le: "pcm_f16le",
16
+ PcmF32le: "pcm_f32le",
17
+ PcmMulaw: "pcm_mulaw",
18
+ PcmAlaw: "pcm_alaw",
19
+ } as const;
20
+ export type AudioEncoding = OpenEnum<typeof AudioEncoding>;
21
+
22
+ /** @internal */
23
+ export const AudioEncoding$inboundSchema: z.ZodType<
24
+ AudioEncoding,
25
+ z.ZodTypeDef,
26
+ unknown
27
+ > = z
28
+ .union([
29
+ z.nativeEnum(AudioEncoding),
30
+ z.string().transform(catchUnrecognizedEnum),
31
+ ]);
32
+
33
+ /** @internal */
34
+ export const AudioEncoding$outboundSchema: z.ZodType<
35
+ AudioEncoding,
36
+ z.ZodTypeDef,
37
+ AudioEncoding
38
+ > = z.union([
39
+ z.nativeEnum(AudioEncoding),
40
+ z.string().and(z.custom<Unrecognized<string>>()),
41
+ ]);
42
+
43
+ /**
44
+ * @internal
45
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
46
+ */
47
+ export namespace AudioEncoding$ {
48
+ /** @deprecated use `AudioEncoding$inboundSchema` instead. */
49
+ export const inboundSchema = AudioEncoding$inboundSchema;
50
+ /** @deprecated use `AudioEncoding$outboundSchema` instead. */
51
+ export const outboundSchema = AudioEncoding$outboundSchema;
52
+ }
@@ -0,0 +1,80 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+ import {
11
+ AudioEncoding,
12
+ AudioEncoding$inboundSchema,
13
+ AudioEncoding$outboundSchema,
14
+ } from "./audioencoding.js";
15
+
16
+ export type AudioFormat = {
17
+ encoding: AudioEncoding;
18
+ sampleRate: number;
19
+ };
20
+
21
+ /** @internal */
22
+ export const AudioFormat$inboundSchema: z.ZodType<
23
+ AudioFormat,
24
+ z.ZodTypeDef,
25
+ unknown
26
+ > = z.object({
27
+ encoding: AudioEncoding$inboundSchema,
28
+ sample_rate: z.number().int(),
29
+ }).transform((v) => {
30
+ return remap$(v, {
31
+ "sample_rate": "sampleRate",
32
+ });
33
+ });
34
+
35
+ /** @internal */
36
+ export type AudioFormat$Outbound = {
37
+ encoding: string;
38
+ sample_rate: number;
39
+ };
40
+
41
+ /** @internal */
42
+ export const AudioFormat$outboundSchema: z.ZodType<
43
+ AudioFormat$Outbound,
44
+ z.ZodTypeDef,
45
+ AudioFormat
46
+ > = z.object({
47
+ encoding: AudioEncoding$outboundSchema,
48
+ sampleRate: z.number().int(),
49
+ }).transform((v) => {
50
+ return remap$(v, {
51
+ sampleRate: "sample_rate",
52
+ });
53
+ });
54
+
55
+ /**
56
+ * @internal
57
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
58
+ */
59
+ export namespace AudioFormat$ {
60
+ /** @deprecated use `AudioFormat$inboundSchema` instead. */
61
+ export const inboundSchema = AudioFormat$inboundSchema;
62
+ /** @deprecated use `AudioFormat$outboundSchema` instead. */
63
+ export const outboundSchema = AudioFormat$outboundSchema;
64
+ /** @deprecated use `AudioFormat$Outbound` instead. */
65
+ export type Outbound = AudioFormat$Outbound;
66
+ }
67
+
68
+ export function audioFormatToJSON(audioFormat: AudioFormat): string {
69
+ return JSON.stringify(AudioFormat$outboundSchema.parse(audioFormat));
70
+ }
71
+
72
+ export function audioFormatFromJSON(
73
+ jsonString: string,
74
+ ): SafeParseResult<AudioFormat, SDKValidationError> {
75
+ return safeParse(
76
+ jsonString,
77
+ (x) => AudioFormat$inboundSchema.parse(JSON.parse(x)),
78
+ `Failed to parse 'AudioFormat' from JSON`,
79
+ );
80
+ }
@@ -21,6 +21,9 @@ import {
21
21
  } from "./timestampgranularity.js";
22
22
 
23
23
  export type AudioTranscriptionRequest = {
24
+ /**
25
+ * ID of the model to be used.
26
+ */
24
27
  model: string;
25
28
  file?: FileT | Blob | undefined;
26
29
  /**
@@ -12,13 +12,35 @@ import {
12
12
  ApiEndpoint$inboundSchema,
13
13
  ApiEndpoint$outboundSchema,
14
14
  } from "./apiendpoint.js";
15
+ import {
16
+ BatchRequest,
17
+ BatchRequest$inboundSchema,
18
+ BatchRequest$Outbound,
19
+ BatchRequest$outboundSchema,
20
+ } from "./batchrequest.js";
15
21
 
16
22
  export type BatchJobIn = {
17
- inputFiles: Array<string>;
23
+ /**
24
+ * The list of input files to be used for batch inference, these files should be `jsonl` files, containing the input data corresponding to the bory request for the batch inference in a "body" field. An example of such file is the following: ```json {"custom_id": "0", "body": {"max_tokens": 100, "messages": [{"role": "user", "content": "What is the best French cheese?"}]}} {"custom_id": "1", "body": {"max_tokens": 100, "messages": [{"role": "user", "content": "What is the best French wine?"}]}} ```
25
+ */
26
+ inputFiles?: Array<string> | null | undefined;
27
+ requests?: Array<BatchRequest> | null | undefined;
18
28
  endpoint: ApiEndpoint;
29
+ /**
30
+ * The model to be used for batch inference.
31
+ */
19
32
  model?: string | null | undefined;
33
+ /**
34
+ * In case you want to use a specific agent from the **deprecated** agents api for batch inference, you can specify the agent ID here.
35
+ */
20
36
  agentId?: string | null | undefined;
37
+ /**
38
+ * The metadata of your choice to be associated with the batch inference job.
39
+ */
21
40
  metadata?: { [k: string]: string } | null | undefined;
41
+ /**
42
+ * The timeout in hours for the batch inference job.
43
+ */
22
44
  timeoutHours?: number | undefined;
23
45
  };
24
46
 
@@ -28,7 +50,8 @@ export const BatchJobIn$inboundSchema: z.ZodType<
28
50
  z.ZodTypeDef,
29
51
  unknown
30
52
  > = z.object({
31
- input_files: z.array(z.string()),
53
+ input_files: z.nullable(z.array(z.string())).optional(),
54
+ requests: z.nullable(z.array(BatchRequest$inboundSchema)).optional(),
32
55
  endpoint: ApiEndpoint$inboundSchema,
33
56
  model: z.nullable(z.string()).optional(),
34
57
  agent_id: z.nullable(z.string()).optional(),
@@ -44,7 +67,8 @@ export const BatchJobIn$inboundSchema: z.ZodType<
44
67
 
45
68
  /** @internal */
46
69
  export type BatchJobIn$Outbound = {
47
- input_files: Array<string>;
70
+ input_files?: Array<string> | null | undefined;
71
+ requests?: Array<BatchRequest$Outbound> | null | undefined;
48
72
  endpoint: string;
49
73
  model?: string | null | undefined;
50
74
  agent_id?: string | null | undefined;
@@ -58,7 +82,8 @@ export const BatchJobIn$outboundSchema: z.ZodType<
58
82
  z.ZodTypeDef,
59
83
  BatchJobIn
60
84
  > = z.object({
61
- inputFiles: z.array(z.string()),
85
+ inputFiles: z.nullable(z.array(z.string())).optional(),
86
+ requests: z.nullable(z.array(BatchRequest$outboundSchema)).optional(),
62
87
  endpoint: ApiEndpoint$outboundSchema,
63
88
  model: z.nullable(z.string()).optional(),
64
89
  agentId: z.nullable(z.string()).optional(),
@@ -36,6 +36,7 @@ export type BatchJobOut = {
36
36
  outputFile?: string | null | undefined;
37
37
  errorFile?: string | null | undefined;
38
38
  errors: Array<BatchError>;
39
+ outputs?: Array<{ [k: string]: any }> | null | undefined;
39
40
  status: BatchJobStatus;
40
41
  createdAt: number;
41
42
  totalRequests: number;
@@ -83,6 +84,7 @@ export const BatchJobOut$inboundSchema: z.ZodType<
83
84
  output_file: z.nullable(z.string()).optional(),
84
85
  error_file: z.nullable(z.string()).optional(),
85
86
  errors: z.array(BatchError$inboundSchema),
87
+ outputs: z.nullable(z.array(z.record(z.any()))).optional(),
86
88
  status: BatchJobStatus$inboundSchema,
87
89
  created_at: z.number().int(),
88
90
  total_requests: z.number().int(),
@@ -119,6 +121,7 @@ export type BatchJobOut$Outbound = {
119
121
  output_file?: string | null | undefined;
120
122
  error_file?: string | null | undefined;
121
123
  errors: Array<BatchError$Outbound>;
124
+ outputs?: Array<{ [k: string]: any }> | null | undefined;
122
125
  status: string;
123
126
  created_at: number;
124
127
  total_requests: number;
@@ -145,6 +148,7 @@ export const BatchJobOut$outboundSchema: z.ZodType<
145
148
  outputFile: z.nullable(z.string()).optional(),
146
149
  errorFile: z.nullable(z.string()).optional(),
147
150
  errors: z.array(BatchError$outboundSchema),
151
+ outputs: z.nullable(z.array(z.record(z.any()))).optional(),
148
152
  status: BatchJobStatus$outboundSchema,
149
153
  createdAt: z.number().int(),
150
154
  totalRequests: z.number().int(),
@@ -0,0 +1,75 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+
11
+ export type BatchRequest = {
12
+ customId?: string | null | undefined;
13
+ body: { [k: string]: any };
14
+ };
15
+
16
+ /** @internal */
17
+ export const BatchRequest$inboundSchema: z.ZodType<
18
+ BatchRequest,
19
+ z.ZodTypeDef,
20
+ unknown
21
+ > = z.object({
22
+ custom_id: z.nullable(z.string()).optional(),
23
+ body: z.record(z.any()),
24
+ }).transform((v) => {
25
+ return remap$(v, {
26
+ "custom_id": "customId",
27
+ });
28
+ });
29
+
30
+ /** @internal */
31
+ export type BatchRequest$Outbound = {
32
+ custom_id?: string | null | undefined;
33
+ body: { [k: string]: any };
34
+ };
35
+
36
+ /** @internal */
37
+ export const BatchRequest$outboundSchema: z.ZodType<
38
+ BatchRequest$Outbound,
39
+ z.ZodTypeDef,
40
+ BatchRequest
41
+ > = z.object({
42
+ customId: z.nullable(z.string()).optional(),
43
+ body: z.record(z.any()),
44
+ }).transform((v) => {
45
+ return remap$(v, {
46
+ customId: "custom_id",
47
+ });
48
+ });
49
+
50
+ /**
51
+ * @internal
52
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
53
+ */
54
+ export namespace BatchRequest$ {
55
+ /** @deprecated use `BatchRequest$inboundSchema` instead. */
56
+ export const inboundSchema = BatchRequest$inboundSchema;
57
+ /** @deprecated use `BatchRequest$outboundSchema` instead. */
58
+ export const outboundSchema = BatchRequest$outboundSchema;
59
+ /** @deprecated use `BatchRequest$Outbound` instead. */
60
+ export type Outbound = BatchRequest$Outbound;
61
+ }
62
+
63
+ export function batchRequestToJSON(batchRequest: BatchRequest): string {
64
+ return JSON.stringify(BatchRequest$outboundSchema.parse(batchRequest));
65
+ }
66
+
67
+ export function batchRequestFromJSON(
68
+ jsonString: string,
69
+ ): SafeParseResult<BatchRequest, SDKValidationError> {
70
+ return safeParse(
71
+ jsonString,
72
+ (x) => BatchRequest$inboundSchema.parse(JSON.parse(x)),
73
+ `Failed to parse 'BatchRequest' from JSON`,
74
+ );
75
+ }
@@ -77,6 +77,9 @@ export type Messages =
77
77
  | (UserMessage & { role: "user" })
78
78
  | (AssistantMessage & { role: "assistant" });
79
79
 
80
+ /**
81
+ * Controls which (if any) tool is called by the model. `none` means the model will not call any tool and instead generates a message. `auto` means the model can pick between generating a message or calling one or more tools. `any` or `required` means the model must call one or more tools. Specifying a particular tool via `{"type": "function", "function": {"name": "my_function"}}` forces the model to call that tool.
82
+ */
80
83
  export type ChatCompletionRequestToolChoice = ToolChoice | ToolChoiceEnum;
81
84
 
82
85
  export type ChatCompletionRequest = {
@@ -108,6 +111,7 @@ export type ChatCompletionRequest = {
108
111
  * The seed to use for random sampling. If set, different calls will generate deterministic results.
109
112
  */
110
113
  randomSeed?: number | null | undefined;
114
+ metadata?: { [k: string]: any } | null | undefined;
111
115
  /**
112
116
  * The prompt(s) to generate completions for, encoded as a list of dict with role and content.
113
117
  */
@@ -117,22 +121,37 @@ export type ChatCompletionRequest = {
117
121
  | (UserMessage & { role: "user" })
118
122
  | (AssistantMessage & { role: "assistant" })
119
123
  >;
124
+ /**
125
+ * Specify the format that the model must output. By default it will use `{ "type": "text" }`. Setting to `{ "type": "json_object" }` enables JSON mode, which guarantees the message the model generates is in JSON. When using JSON mode you MUST also instruct the model to produce JSON yourself with a system or a user message. Setting to `{ "type": "json_schema" }` enables JSON schema mode, which guarantees the message the model generates is in JSON and follows the schema you provide.
126
+ */
120
127
  responseFormat?: ResponseFormat | undefined;
128
+ /**
129
+ * A list of tools the model may call. Use this to provide a list of functions the model may generate JSON inputs for.
130
+ */
121
131
  tools?: Array<Tool> | null | undefined;
132
+ /**
133
+ * Controls which (if any) tool is called by the model. `none` means the model will not call any tool and instead generates a message. `auto` means the model can pick between generating a message or calling one or more tools. `any` or `required` means the model must call one or more tools. Specifying a particular tool via `{"type": "function", "function": {"name": "my_function"}}` forces the model to call that tool.
134
+ */
122
135
  toolChoice?: ToolChoice | ToolChoiceEnum | undefined;
123
136
  /**
124
- * presence_penalty determines how much the model penalizes the repetition of words or phrases. A higher presence penalty encourages the model to use a wider variety of words and phrases, making the output more diverse and creative.
137
+ * The `presence_penalty` determines how much the model penalizes the repetition of words or phrases. A higher presence penalty encourages the model to use a wider variety of words and phrases, making the output more diverse and creative.
125
138
  */
126
139
  presencePenalty?: number | undefined;
127
140
  /**
128
- * frequency_penalty penalizes the repetition of words based on their frequency in the generated text. A higher frequency penalty discourages the model from repeating words that have already appeared frequently in the output, promoting diversity and reducing repetition.
141
+ * The `frequency_penalty` penalizes the repetition of words based on their frequency in the generated text. A higher frequency penalty discourages the model from repeating words that have already appeared frequently in the output, promoting diversity and reducing repetition.
129
142
  */
130
143
  frequencyPenalty?: number | undefined;
131
144
  /**
132
145
  * Number of completions to return for each request, input tokens are only billed once.
133
146
  */
134
147
  n?: number | null | undefined;
148
+ /**
149
+ * Enable users to specify an expected completion, optimizing response times by leveraging known or predictable content.
150
+ */
135
151
  prediction?: Prediction | undefined;
152
+ /**
153
+ * Whether to enable parallel function calling during tool use, when enabled the model can call multiple tools in parallel.
154
+ */
136
155
  parallelToolCalls?: boolean | undefined;
137
156
  /**
138
157
  * Allows toggling between the reasoning mode and no system prompt. When set to `reasoning` the system prompt for reasoning models will be used.
@@ -329,6 +348,7 @@ export const ChatCompletionRequest$inboundSchema: z.ZodType<
329
348
  stream: z.boolean().default(false),
330
349
  stop: z.union([z.string(), z.array(z.string())]).optional(),
331
350
  random_seed: z.nullable(z.number().int()).optional(),
351
+ metadata: z.nullable(z.record(z.any())).optional(),
332
352
  messages: z.array(
333
353
  z.union([
334
354
  SystemMessage$inboundSchema.and(
@@ -388,6 +408,7 @@ export type ChatCompletionRequest$Outbound = {
388
408
  stream: boolean;
389
409
  stop?: string | Array<string> | undefined;
390
410
  random_seed?: number | null | undefined;
411
+ metadata?: { [k: string]: any } | null | undefined;
391
412
  messages: Array<
392
413
  | (SystemMessage$Outbound & { role: "system" })
393
414
  | (ToolMessage$Outbound & { role: "tool" })
@@ -419,6 +440,7 @@ export const ChatCompletionRequest$outboundSchema: z.ZodType<
419
440
  stream: z.boolean().default(false),
420
441
  stop: z.union([z.string(), z.array(z.string())]).optional(),
421
442
  randomSeed: z.nullable(z.number().int()).optional(),
443
+ metadata: z.nullable(z.record(z.any())).optional(),
422
444
  messages: z.array(
423
445
  z.union([
424
446
  SystemMessage$outboundSchema.and(
@@ -77,6 +77,9 @@ export type ChatCompletionStreamRequestMessages =
77
77
  | (UserMessage & { role: "user" })
78
78
  | (AssistantMessage & { role: "assistant" });
79
79
 
80
+ /**
81
+ * Controls which (if any) tool is called by the model. `none` means the model will not call any tool and instead generates a message. `auto` means the model can pick between generating a message or calling one or more tools. `any` or `required` means the model must call one or more tools. Specifying a particular tool via `{"type": "function", "function": {"name": "my_function"}}` forces the model to call that tool.
82
+ */
80
83
  export type ChatCompletionStreamRequestToolChoice = ToolChoice | ToolChoiceEnum;
81
84
 
82
85
  export type ChatCompletionStreamRequest = {
@@ -105,6 +108,7 @@ export type ChatCompletionStreamRequest = {
105
108
  * The seed to use for random sampling. If set, different calls will generate deterministic results.
106
109
  */
107
110
  randomSeed?: number | null | undefined;
111
+ metadata?: { [k: string]: any } | null | undefined;
108
112
  /**
109
113
  * The prompt(s) to generate completions for, encoded as a list of dict with role and content.
110
114
  */
@@ -114,22 +118,37 @@ export type ChatCompletionStreamRequest = {
114
118
  | (UserMessage & { role: "user" })
115
119
  | (AssistantMessage & { role: "assistant" })
116
120
  >;
121
+ /**
122
+ * Specify the format that the model must output. By default it will use `{ "type": "text" }`. Setting to `{ "type": "json_object" }` enables JSON mode, which guarantees the message the model generates is in JSON. When using JSON mode you MUST also instruct the model to produce JSON yourself with a system or a user message. Setting to `{ "type": "json_schema" }` enables JSON schema mode, which guarantees the message the model generates is in JSON and follows the schema you provide.
123
+ */
117
124
  responseFormat?: ResponseFormat | undefined;
125
+ /**
126
+ * A list of tools the model may call. Use this to provide a list of functions the model may generate JSON inputs for.
127
+ */
118
128
  tools?: Array<Tool> | null | undefined;
129
+ /**
130
+ * Controls which (if any) tool is called by the model. `none` means the model will not call any tool and instead generates a message. `auto` means the model can pick between generating a message or calling one or more tools. `any` or `required` means the model must call one or more tools. Specifying a particular tool via `{"type": "function", "function": {"name": "my_function"}}` forces the model to call that tool.
131
+ */
119
132
  toolChoice?: ToolChoice | ToolChoiceEnum | undefined;
120
133
  /**
121
- * presence_penalty determines how much the model penalizes the repetition of words or phrases. A higher presence penalty encourages the model to use a wider variety of words and phrases, making the output more diverse and creative.
134
+ * The `presence_penalty` determines how much the model penalizes the repetition of words or phrases. A higher presence penalty encourages the model to use a wider variety of words and phrases, making the output more diverse and creative.
122
135
  */
123
136
  presencePenalty?: number | undefined;
124
137
  /**
125
- * frequency_penalty penalizes the repetition of words based on their frequency in the generated text. A higher frequency penalty discourages the model from repeating words that have already appeared frequently in the output, promoting diversity and reducing repetition.
138
+ * The `frequency_penalty` penalizes the repetition of words based on their frequency in the generated text. A higher frequency penalty discourages the model from repeating words that have already appeared frequently in the output, promoting diversity and reducing repetition.
126
139
  */
127
140
  frequencyPenalty?: number | undefined;
128
141
  /**
129
142
  * Number of completions to return for each request, input tokens are only billed once.
130
143
  */
131
144
  n?: number | null | undefined;
145
+ /**
146
+ * Enable users to specify an expected completion, optimizing response times by leveraging known or predictable content.
147
+ */
132
148
  prediction?: Prediction | undefined;
149
+ /**
150
+ * Whether to enable parallel function calling during tool use, when enabled the model can call multiple tools in parallel.
151
+ */
133
152
  parallelToolCalls?: boolean | undefined;
134
153
  /**
135
154
  * Allows toggling between the reasoning mode and no system prompt. When set to `reasoning` the system prompt for reasoning models will be used.
@@ -350,6 +369,7 @@ export const ChatCompletionStreamRequest$inboundSchema: z.ZodType<
350
369
  stream: z.boolean().default(true),
351
370
  stop: z.union([z.string(), z.array(z.string())]).optional(),
352
371
  random_seed: z.nullable(z.number().int()).optional(),
372
+ metadata: z.nullable(z.record(z.any())).optional(),
353
373
  messages: z.array(
354
374
  z.union([
355
375
  SystemMessage$inboundSchema.and(
@@ -409,6 +429,7 @@ export type ChatCompletionStreamRequest$Outbound = {
409
429
  stream: boolean;
410
430
  stop?: string | Array<string> | undefined;
411
431
  random_seed?: number | null | undefined;
432
+ metadata?: { [k: string]: any } | null | undefined;
412
433
  messages: Array<
413
434
  | (SystemMessage$Outbound & { role: "system" })
414
435
  | (ToolMessage$Outbound & { role: "tool" })
@@ -440,6 +461,7 @@ export const ChatCompletionStreamRequest$outboundSchema: z.ZodType<
440
461
  stream: z.boolean().default(true),
441
462
  stop: z.union([z.string(), z.array(z.string())]).optional(),
442
463
  randomSeed: z.nullable(z.number().int()).optional(),
464
+ metadata: z.nullable(z.record(z.any())).optional(),
443
465
  messages: z.array(
444
466
  z.union([
445
467
  SystemMessage$outboundSchema.and(
@@ -18,6 +18,7 @@ export type ClassificationRequest = {
18
18
  * ID of the model to use.
19
19
  */
20
20
  model: string;
21
+ metadata?: { [k: string]: any } | null | undefined;
21
22
  /**
22
23
  * Text to classify.
23
24
  */
@@ -81,6 +82,7 @@ export const ClassificationRequest$inboundSchema: z.ZodType<
81
82
  unknown
82
83
  > = z.object({
83
84
  model: z.string(),
85
+ metadata: z.nullable(z.record(z.any())).optional(),
84
86
  input: z.union([z.string(), z.array(z.string())]),
85
87
  }).transform((v) => {
86
88
  return remap$(v, {
@@ -91,6 +93,7 @@ export const ClassificationRequest$inboundSchema: z.ZodType<
91
93
  /** @internal */
92
94
  export type ClassificationRequest$Outbound = {
93
95
  model: string;
96
+ metadata?: { [k: string]: any } | null | undefined;
94
97
  input: string | Array<string>;
95
98
  };
96
99
 
@@ -101,6 +104,7 @@ export const ClassificationRequest$outboundSchema: z.ZodType<
101
104
  ClassificationRequest
102
105
  > = z.object({
103
106
  model: z.string(),
107
+ metadata: z.nullable(z.record(z.any())).optional(),
104
108
  inputs: z.union([z.string(), z.array(z.string())]),
105
109
  }).transform((v) => {
106
110
  return remap$(v, {