@orq-ai/node 4.15.0-rc.2 → 4.15.0-rc.21

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 (790) hide show
  1. package/FUNCTIONS.md +3 -3
  2. package/README.md +101 -90
  3. package/examples/{evalsAll.example.ts → deploymentsList.example.ts} +2 -2
  4. package/funcs/annotationQueuesAddItems.d.ts +3 -2
  5. package/funcs/annotationQueuesAddItems.d.ts.map +1 -1
  6. package/funcs/annotationQueuesAddItems.js +6 -4
  7. package/funcs/annotationQueuesAddItems.js.map +1 -1
  8. package/funcs/annotationQueuesClear.d.ts +4 -3
  9. package/funcs/annotationQueuesClear.d.ts.map +1 -1
  10. package/funcs/annotationQueuesClear.js +5 -5
  11. package/funcs/annotationQueuesClear.js.map +1 -1
  12. package/funcs/annotationQueuesCreate.d.ts +3 -3
  13. package/funcs/annotationQueuesCreate.d.ts.map +1 -1
  14. package/funcs/annotationQueuesCreate.js +5 -8
  15. package/funcs/annotationQueuesCreate.js.map +1 -1
  16. package/funcs/annotationQueuesDelete.d.ts +3 -2
  17. package/funcs/annotationQueuesDelete.d.ts.map +1 -1
  18. package/funcs/annotationQueuesDelete.js +4 -4
  19. package/funcs/annotationQueuesDelete.js.map +1 -1
  20. package/funcs/annotationQueuesList.d.ts +3 -2
  21. package/funcs/annotationQueuesList.d.ts.map +1 -1
  22. package/funcs/annotationQueuesList.js +3 -2
  23. package/funcs/annotationQueuesList.js.map +1 -1
  24. package/funcs/annotationQueuesListItems.d.ts +3 -2
  25. package/funcs/annotationQueuesListItems.d.ts.map +1 -1
  26. package/funcs/annotationQueuesListItems.js +3 -2
  27. package/funcs/annotationQueuesListItems.js.map +1 -1
  28. package/funcs/annotationQueuesRemoveItems.d.ts +4 -3
  29. package/funcs/annotationQueuesRemoveItems.d.ts.map +1 -1
  30. package/funcs/annotationQueuesRemoveItems.js +8 -6
  31. package/funcs/annotationQueuesRemoveItems.js.map +1 -1
  32. package/funcs/annotationQueuesRetrieve.d.ts +3 -2
  33. package/funcs/annotationQueuesRetrieve.d.ts.map +1 -1
  34. package/funcs/annotationQueuesRetrieve.js +3 -2
  35. package/funcs/annotationQueuesRetrieve.js.map +1 -1
  36. package/funcs/annotationQueuesRetrieveItem.d.ts +2 -3
  37. package/funcs/annotationQueuesRetrieveItem.d.ts.map +1 -1
  38. package/funcs/annotationQueuesRetrieveItem.js +2 -3
  39. package/funcs/annotationQueuesRetrieveItem.js.map +1 -1
  40. package/funcs/annotationQueuesUpdate.d.ts +4 -3
  41. package/funcs/annotationQueuesUpdate.d.ts.map +1 -1
  42. package/funcs/annotationQueuesUpdate.js +7 -4
  43. package/funcs/annotationQueuesUpdate.js.map +1 -1
  44. package/funcs/auditLogsQuery.d.ts +17 -0
  45. package/funcs/auditLogsQuery.d.ts.map +1 -0
  46. package/funcs/{deploymentsInvoke.js → auditLogsQuery.js} +9 -10
  47. package/funcs/auditLogsQuery.js.map +1 -0
  48. package/funcs/evalsAll.d.ts +2 -2
  49. package/funcs/evalsAll.d.ts.map +1 -1
  50. package/funcs/evalsAll.js +2 -5
  51. package/funcs/evalsAll.js.map +1 -1
  52. package/funcs/evalsCreate.d.ts +2 -2
  53. package/funcs/evalsCreate.d.ts.map +1 -1
  54. package/funcs/evalsCreate.js +5 -20
  55. package/funcs/evalsCreate.js.map +1 -1
  56. package/funcs/evalsDelete.d.ts +2 -2
  57. package/funcs/evalsDelete.d.ts.map +1 -1
  58. package/funcs/evalsDelete.js +2 -6
  59. package/funcs/evalsDelete.js.map +1 -1
  60. package/funcs/evalsGet.d.ts +2 -2
  61. package/funcs/evalsGet.d.ts.map +1 -1
  62. package/funcs/evalsGet.js +2 -5
  63. package/funcs/evalsGet.js.map +1 -1
  64. package/funcs/{deploymentsInvoke.d.ts → evalsGetVersion.d.ts} +4 -4
  65. package/funcs/evalsGetVersion.d.ts.map +1 -0
  66. package/funcs/evalsGetVersion.js +125 -0
  67. package/funcs/evalsGetVersion.js.map +1 -0
  68. package/funcs/evalsListVersions.d.ts +3 -3
  69. package/funcs/evalsListVersions.d.ts.map +1 -1
  70. package/funcs/evalsListVersions.js +5 -8
  71. package/funcs/evalsListVersions.js.map +1 -1
  72. package/funcs/evalsUpdate.d.ts +2 -2
  73. package/funcs/evalsUpdate.d.ts.map +1 -1
  74. package/funcs/evalsUpdate.js +2 -5
  75. package/funcs/evalsUpdate.js.map +1 -1
  76. package/funcs/knowledgePreviewChunks.d.ts +18 -0
  77. package/funcs/knowledgePreviewChunks.d.ts.map +1 -0
  78. package/funcs/{deploymentsStream.js → knowledgePreviewChunks.js} +18 -25
  79. package/funcs/knowledgePreviewChunks.js.map +1 -0
  80. package/funcs/logsListFacets.d.ts +2 -3
  81. package/funcs/logsListFacets.d.ts.map +1 -1
  82. package/funcs/logsListFacets.js +5 -12
  83. package/funcs/logsListFacets.js.map +1 -1
  84. package/funcs/reportingQuery.d.ts +1 -1
  85. package/funcs/reportingQuery.js +1 -1
  86. package/funcs/tracesAggregate.d.ts +1 -1
  87. package/funcs/tracesAggregate.js +1 -1
  88. package/funcs/workspacesGet.d.ts +18 -0
  89. package/funcs/workspacesGet.d.ts.map +1 -0
  90. package/funcs/workspacesGet.js +121 -0
  91. package/funcs/workspacesGet.js.map +1 -0
  92. package/funcs/workspacesList.d.ts +18 -0
  93. package/funcs/workspacesList.d.ts.map +1 -0
  94. package/funcs/workspacesList.js +121 -0
  95. package/funcs/workspacesList.js.map +1 -0
  96. package/funcs/{deploymentsStream.d.ts → workspacesUpdate.d.ts} +5 -5
  97. package/funcs/workspacesUpdate.d.ts.map +1 -0
  98. package/funcs/workspacesUpdate.js +124 -0
  99. package/funcs/workspacesUpdate.js.map +1 -0
  100. package/jsr.json +1 -1
  101. package/lib/config.d.ts +3 -3
  102. package/lib/config.js +3 -3
  103. package/lib/config.js.map +1 -1
  104. package/lib/encodings.d.ts +10 -9
  105. package/lib/encodings.d.ts.map +1 -1
  106. package/lib/encodings.js +29 -13
  107. package/lib/encodings.js.map +1 -1
  108. package/models/components/addannotationqueueitemsrequest.d.ts +16 -0
  109. package/models/components/addannotationqueueitemsrequest.d.ts.map +1 -0
  110. package/models/components/addannotationqueueitemsrequest.js +50 -0
  111. package/models/components/addannotationqueueitemsrequest.js.map +1 -0
  112. package/models/components/addannotationqueueitemsresponse.d.ts +14 -0
  113. package/models/components/addannotationqueueitemsresponse.d.ts.map +1 -0
  114. package/models/components/addannotationqueueitemsresponse.js +51 -0
  115. package/models/components/addannotationqueueitemsresponse.js.map +1 -0
  116. package/models/components/agentresponserequest.d.ts +20 -20
  117. package/models/components/agentresponserequest.d.ts.map +1 -1
  118. package/models/components/agentresponserequest.js +20 -20
  119. package/models/components/agentresponserequest.js.map +1 -1
  120. package/models/components/agentthoughtstreamingevent.d.ts +12 -12
  121. package/models/components/agentthoughtstreamingevent.d.ts.map +1 -1
  122. package/models/components/agentthoughtstreamingevent.js +17 -17
  123. package/models/components/agentthoughtstreamingevent.js.map +1 -1
  124. package/models/components/annotationqueue.d.ts +54 -0
  125. package/models/components/annotationqueue.d.ts.map +1 -0
  126. package/models/components/{evaluatorresponsehttp.js → annotationqueue.js} +22 -25
  127. package/models/components/annotationqueue.js.map +1 -0
  128. package/models/components/annotationqueueitem.d.ts +41 -0
  129. package/models/components/annotationqueueitem.d.ts.map +1 -0
  130. package/models/components/{evaluatorresponsepython.js → annotationqueueitem.js} +19 -18
  131. package/models/components/annotationqueueitem.js.map +1 -0
  132. package/models/components/annotationqueueitemref.d.ts +17 -0
  133. package/models/components/annotationqueueitemref.d.ts.map +1 -0
  134. package/models/{errors/getevals.js → components/annotationqueueitemref.js} +14 -26
  135. package/models/components/annotationqueueitemref.js.map +1 -0
  136. package/models/components/annotationqueuemetadata.d.ts +16 -0
  137. package/models/components/annotationqueuemetadata.d.ts.map +1 -0
  138. package/models/components/{evaluatorresponsejsonschema.js → annotationqueuemetadata.js} +8 -20
  139. package/models/components/annotationqueuemetadata.js.map +1 -0
  140. package/models/components/auditlog.d.ts +60 -0
  141. package/models/components/auditlog.d.ts.map +1 -0
  142. package/models/components/{evaluatorresponseragas.js → auditlog.js} +33 -36
  143. package/models/components/auditlog.js.map +1 -0
  144. package/models/components/auditlogfilter.d.ts +33 -0
  145. package/models/components/auditlogfilter.d.ts.map +1 -0
  146. package/models/components/auditlogfilter.js +52 -0
  147. package/models/components/auditlogfilter.js.map +1 -0
  148. package/models/components/auditlogfilterquery.d.ts +29 -0
  149. package/models/components/auditlogfilterquery.d.ts.map +1 -0
  150. package/models/components/auditlogfilterquery.js +52 -0
  151. package/models/components/auditlogfilterquery.js.map +1 -0
  152. package/models/components/auditlogpagination.d.ts +28 -0
  153. package/models/components/auditlogpagination.d.ts.map +1 -0
  154. package/models/{errors/createeval.js → components/auditlogpagination.js} +15 -26
  155. package/models/components/auditlogpagination.js.map +1 -0
  156. package/models/components/auditlogsort.d.ts +23 -0
  157. package/models/components/auditlogsort.d.ts.map +1 -0
  158. package/models/components/auditlogsort.js +50 -0
  159. package/models/components/auditlogsort.js.map +1 -0
  160. package/models/components/budgetmatch.d.ts +1 -7
  161. package/models/components/budgetmatch.d.ts.map +1 -1
  162. package/models/components/budgetmatch.js.map +1 -1
  163. package/models/components/budgetscope.d.ts +1 -5
  164. package/models/components/budgetscope.d.ts.map +1 -1
  165. package/models/components/budgetscope.js.map +1 -1
  166. package/models/components/budgetscoperestresponse.d.ts +1 -5
  167. package/models/components/budgetscoperestresponse.d.ts.map +1 -1
  168. package/models/components/budgetscoperestresponse.js.map +1 -1
  169. package/models/components/chunkingconfiguration.d.ts +263 -4
  170. package/models/components/chunkingconfiguration.d.ts.map +1 -1
  171. package/models/components/chunkingconfiguration.js +144 -1
  172. package/models/components/chunkingconfiguration.js.map +1 -1
  173. package/models/components/clearannotationqueueresponse.d.ts +8 -0
  174. package/models/components/clearannotationqueueresponse.d.ts.map +1 -0
  175. package/models/components/clearannotationqueueresponse.js +48 -0
  176. package/models/components/clearannotationqueueresponse.js.map +1 -0
  177. package/models/components/createannotationqueuerequest.d.ts +25 -0
  178. package/models/components/createannotationqueuerequest.d.ts.map +1 -0
  179. package/models/components/createannotationqueuerequest.js +57 -0
  180. package/models/components/createannotationqueuerequest.js.map +1 -0
  181. package/models/components/createapikeyrequest.d.ts +12 -0
  182. package/models/components/createapikeyrequest.d.ts.map +1 -1
  183. package/models/components/createapikeyrequest.js +1 -0
  184. package/models/components/createapikeyrequest.js.map +1 -1
  185. package/models/components/createmcpgatewayrequest.d.ts +6 -0
  186. package/models/components/createmcpgatewayrequest.d.ts.map +1 -1
  187. package/models/components/createmcpgatewayrequest.js +2 -0
  188. package/models/components/createmcpgatewayrequest.js.map +1 -1
  189. package/models/components/datasourcesservicepreviewchunksrequest.d.ts +15 -0
  190. package/models/components/datasourcesservicepreviewchunksrequest.d.ts.map +1 -0
  191. package/models/{errors/geteval.js → components/datasourcesservicepreviewchunksrequest.js} +15 -26
  192. package/models/components/datasourcesservicepreviewchunksrequest.js.map +1 -0
  193. package/models/components/datasourcesservicepreviewchunksresponse.d.ts +13 -0
  194. package/models/components/datasourcesservicepreviewchunksresponse.d.ts.map +1 -0
  195. package/models/components/datasourcesservicepreviewchunksresponse.js +53 -0
  196. package/models/components/datasourcesservicepreviewchunksresponse.js.map +1 -0
  197. package/models/components/deleteannotationqueueresponse.d.ts +8 -0
  198. package/models/components/deleteannotationqueueresponse.d.ts.map +1 -0
  199. package/models/components/deleteannotationqueueresponse.js +48 -0
  200. package/models/components/deleteannotationqueueresponse.js.map +1 -0
  201. package/models/components/deleteevaluatorresponse.d.ts +8 -0
  202. package/models/components/deleteevaluatorresponse.d.ts.map +1 -0
  203. package/models/components/deleteevaluatorresponse.js +48 -0
  204. package/models/components/deleteevaluatorresponse.js.map +1 -0
  205. package/models/components/evaluationcontext.d.ts +6 -6
  206. package/models/components/evaluationcontext.d.ts.map +1 -1
  207. package/models/components/evaluationcontext.js +6 -7
  208. package/models/components/evaluationcontext.js.map +1 -1
  209. package/models/components/evaluatordocumentresponse.d.ts +14 -0
  210. package/models/components/evaluatordocumentresponse.d.ts.map +1 -0
  211. package/models/components/evaluatordocumentresponse.js +56 -0
  212. package/models/components/evaluatordocumentresponse.js.map +1 -0
  213. package/models/components/filesystemtoolinput.d.ts +39 -9
  214. package/models/components/filesystemtoolinput.d.ts.map +1 -1
  215. package/models/components/filesystemtoolinput.js +28 -2
  216. package/models/components/filesystemtoolinput.js.map +1 -1
  217. package/models/components/getevaluatorversionresponse.d.ts +20 -0
  218. package/models/components/getevaluatorversionresponse.d.ts.map +1 -0
  219. package/models/components/getevaluatorversionresponse.js +57 -0
  220. package/models/components/getevaluatorversionresponse.js.map +1 -0
  221. package/models/components/getuploadfileurlresponse.d.ts +4 -0
  222. package/models/components/getuploadfileurlresponse.d.ts.map +1 -1
  223. package/models/components/getuploadfileurlresponse.js +1 -0
  224. package/models/components/getuploadfileurlresponse.js.map +1 -1
  225. package/models/components/getworkspaceresponse.d.ts +11 -0
  226. package/models/components/getworkspaceresponse.d.ts.map +1 -0
  227. package/models/components/getworkspaceresponse.js +51 -0
  228. package/models/components/getworkspaceresponse.js.map +1 -0
  229. package/models/components/index.d.ts +41 -9
  230. package/models/components/index.d.ts.map +1 -1
  231. package/models/components/index.js +41 -9
  232. package/models/components/index.js.map +1 -1
  233. package/models/components/listannotationqueueitemsresponse.d.ts +22 -0
  234. package/models/components/listannotationqueueitemsresponse.d.ts.map +1 -0
  235. package/models/components/{evaluatorresponsetypescript.js → listannotationqueueitemsresponse.js} +11 -20
  236. package/models/components/listannotationqueueitemsresponse.js.map +1 -0
  237. package/models/components/listannotationqueuesresponse.d.ts +22 -0
  238. package/models/components/listannotationqueuesresponse.d.ts.map +1 -0
  239. package/models/components/listannotationqueuesresponse.js +58 -0
  240. package/models/components/listannotationqueuesresponse.js.map +1 -0
  241. package/models/components/listevaluatorsresponse.d.ts +16 -0
  242. package/models/components/listevaluatorsresponse.d.ts.map +1 -0
  243. package/models/components/listevaluatorsresponse.js +63 -0
  244. package/models/components/listevaluatorsresponse.js.map +1 -0
  245. package/models/components/listevaluatorversionsresponse.d.ts +16 -0
  246. package/models/components/listevaluatorversionsresponse.d.ts.map +1 -0
  247. package/models/components/listevaluatorversionsresponse.js +63 -0
  248. package/models/components/listevaluatorversionsresponse.js.map +1 -0
  249. package/models/{operations/listlogfacets.d.ts → components/listlogfacetsrequest.d.ts} +8 -1
  250. package/models/components/listlogfacetsrequest.d.ts.map +1 -0
  251. package/models/{operations/listlogfacets.js → components/listlogfacetsrequest.js} +6 -1
  252. package/models/components/listlogfacetsrequest.js.map +1 -0
  253. package/models/components/listworkspacesresponse.d.ts +13 -0
  254. package/models/components/listworkspacesresponse.d.ts.map +1 -0
  255. package/models/components/listworkspacesresponse.js +58 -0
  256. package/models/components/listworkspacesresponse.js.map +1 -0
  257. package/models/components/mcpgateway.d.ts +5 -0
  258. package/models/components/mcpgateway.d.ts.map +1 -1
  259. package/models/components/mcpgateway.js +2 -0
  260. package/models/components/mcpgateway.js.map +1 -1
  261. package/models/components/mcpgatewayplugin.d.ts +30 -0
  262. package/models/components/mcpgatewayplugin.d.ts.map +1 -0
  263. package/models/components/mcpgatewayplugin.js +77 -0
  264. package/models/components/mcpgatewayplugin.js.map +1 -0
  265. package/models/components/modelmetadata.d.ts +2 -0
  266. package/models/components/modelmetadata.d.ts.map +1 -1
  267. package/models/components/modelmetadata.js +4 -0
  268. package/models/components/modelmetadata.js.map +1 -1
  269. package/models/components/modelsconfig.d.ts +5 -5
  270. package/models/components/modelsconfig.d.ts.map +1 -1
  271. package/models/components/modelsconfig.js +6 -6
  272. package/models/components/modelsconfig.js.map +1 -1
  273. package/models/components/monitorfilter.d.ts +8 -0
  274. package/models/components/monitorfilter.d.ts.map +1 -1
  275. package/models/components/monitorfilter.js +8 -0
  276. package/models/components/monitorfilter.js.map +1 -1
  277. package/models/components/piiredactionconfig.d.ts +7 -9
  278. package/models/components/piiredactionconfig.d.ts.map +1 -1
  279. package/models/components/piiredactionconfig.js.map +1 -1
  280. package/models/components/previewchunk.d.ts +11 -0
  281. package/models/components/previewchunk.d.ts.map +1 -0
  282. package/models/components/previewchunk.js +56 -0
  283. package/models/components/previewchunk.js.map +1 -0
  284. package/models/components/previewchunksmetadata.d.ts +15 -0
  285. package/models/components/previewchunksmetadata.d.ts.map +1 -0
  286. package/models/components/previewchunksmetadata.js +65 -0
  287. package/models/components/previewchunksmetadata.js.map +1 -0
  288. package/models/components/pricing.d.ts +4 -0
  289. package/models/components/pricing.d.ts.map +1 -1
  290. package/models/components/pricing.js +8 -0
  291. package/models/components/pricing.js.map +1 -1
  292. package/models/components/pricingvariant.d.ts +4 -0
  293. package/models/components/pricingvariant.d.ts.map +1 -1
  294. package/models/components/pricingvariant.js +8 -0
  295. package/models/components/pricingvariant.js.map +1 -1
  296. package/models/components/queryauditlogsrequest.d.ts +31 -0
  297. package/models/components/queryauditlogsrequest.d.ts.map +1 -0
  298. package/models/components/queryauditlogsrequest.js +54 -0
  299. package/models/components/queryauditlogsrequest.js.map +1 -0
  300. package/models/components/queryauditlogsresponse.d.ts +25 -0
  301. package/models/components/queryauditlogsresponse.d.ts.map +1 -0
  302. package/models/components/queryauditlogsresponse.js +60 -0
  303. package/models/components/queryauditlogsresponse.js.map +1 -0
  304. package/models/components/reasoningpart.js +1 -1
  305. package/models/components/removeannotationqueueitemsrequest.d.ts +15 -0
  306. package/models/components/removeannotationqueueitemsrequest.d.ts.map +1 -0
  307. package/models/components/removeannotationqueueitemsrequest.js +54 -0
  308. package/models/components/removeannotationqueueitemsrequest.js.map +1 -0
  309. package/models/components/removeannotationqueueitemsresponse.d.ts +8 -0
  310. package/models/components/removeannotationqueueitemsresponse.d.ts.map +1 -0
  311. package/models/{errors/updateeval.js → components/removeannotationqueueitemsresponse.js} +8 -28
  312. package/models/components/removeannotationqueueitemsresponse.js.map +1 -0
  313. package/models/components/searchknowledgerequest.d.ts +184 -184
  314. package/models/components/searchknowledgerequest.d.ts.map +1 -1
  315. package/models/components/searchknowledgerequest.js +229 -217
  316. package/models/components/searchknowledgerequest.js.map +1 -1
  317. package/models/components/textcontentpartschema.d.ts +10 -10
  318. package/models/components/textcontentpartschema.d.ts.map +1 -1
  319. package/models/components/textcontentpartschema.js +11 -11
  320. package/models/components/textcontentpartschema.js.map +1 -1
  321. package/models/components/updateannotationqueuerequest.d.ts +30 -0
  322. package/models/components/updateannotationqueuerequest.d.ts.map +1 -0
  323. package/models/components/updateannotationqueuerequest.js +59 -0
  324. package/models/components/updateannotationqueuerequest.js.map +1 -0
  325. package/models/components/updatemcpgatewayrequest.d.ts +6 -0
  326. package/models/components/updatemcpgatewayrequest.d.ts.map +1 -1
  327. package/models/components/updatemcpgatewayrequest.js +2 -0
  328. package/models/components/updatemcpgatewayrequest.js.map +1 -1
  329. package/models/components/updateworkspacerequest.d.ts +29 -0
  330. package/models/components/updateworkspacerequest.d.ts.map +1 -0
  331. package/models/components/updateworkspacerequest.js +69 -0
  332. package/models/components/updateworkspacerequest.js.map +1 -0
  333. package/models/components/updateworkspaceresponse.d.ts +11 -0
  334. package/models/components/updateworkspaceresponse.d.ts.map +1 -0
  335. package/models/components/updateworkspaceresponse.js +51 -0
  336. package/models/components/updateworkspaceresponse.js.map +1 -0
  337. package/models/components/upsertchunk.d.ts +5 -0
  338. package/models/components/upsertchunk.d.ts.map +1 -1
  339. package/models/components/upsertchunk.js +6 -0
  340. package/models/components/upsertchunk.js.map +1 -1
  341. package/models/components/value.d.ts +17 -0
  342. package/models/components/value.d.ts.map +1 -0
  343. package/models/components/value.js +54 -0
  344. package/models/components/value.js.map +1 -0
  345. package/models/components/workspace.d.ts +33 -0
  346. package/models/components/workspace.d.ts.map +1 -0
  347. package/models/components/workspace.js +88 -0
  348. package/models/components/workspace.js.map +1 -0
  349. package/models/components/workspacecapabilities.d.ts +11 -0
  350. package/models/components/workspacecapabilities.d.ts.map +1 -0
  351. package/models/components/workspacecapabilities.js +51 -0
  352. package/models/components/workspacecapabilities.js.map +1 -0
  353. package/models/components/workspaceorganization.d.ts +11 -0
  354. package/models/components/workspaceorganization.d.ts.map +1 -0
  355. package/models/components/workspaceorganization.js +51 -0
  356. package/models/components/workspaceorganization.js.map +1 -0
  357. package/models/components/workspacesettingsfields.d.ts +39 -0
  358. package/models/components/workspacesettingsfields.d.ts.map +1 -0
  359. package/models/components/workspacesettingsfields.js +99 -0
  360. package/models/components/workspacesettingsfields.js.map +1 -0
  361. package/models/errors/index.d.ts +0 -6
  362. package/models/errors/index.d.ts.map +1 -1
  363. package/models/errors/index.js +0 -6
  364. package/models/errors/index.js.map +1 -1
  365. package/models/operations/addannotationqueueitems.d.ts +3 -60
  366. package/models/operations/addannotationqueueitems.d.ts.map +1 -1
  367. package/models/operations/addannotationqueueitems.js +4 -55
  368. package/models/operations/addannotationqueueitems.js.map +1 -1
  369. package/models/operations/createagentrequest.d.ts +12 -12
  370. package/models/operations/createagentrequest.d.ts.map +1 -1
  371. package/models/operations/createagentrequest.js +11 -12
  372. package/models/operations/createagentrequest.js.map +1 -1
  373. package/models/operations/createchatcompletion.d.ts +58 -58
  374. package/models/operations/createchatcompletion.d.ts.map +1 -1
  375. package/models/operations/createchatcompletion.js +80 -81
  376. package/models/operations/createchatcompletion.js.map +1 -1
  377. package/models/operations/createdataset.js +1 -1
  378. package/models/operations/createdatasetitem.js +5 -5
  379. package/models/operations/createeval.d.ts +2 -312
  380. package/models/operations/createeval.d.ts.map +1 -1
  381. package/models/operations/createeval.js +2 -264
  382. package/models/operations/createeval.js.map +1 -1
  383. package/models/operations/createprompt.d.ts +14 -12
  384. package/models/operations/createprompt.d.ts.map +1 -1
  385. package/models/operations/createprompt.js +16 -13
  386. package/models/operations/createprompt.js.map +1 -1
  387. package/models/operations/createtool.d.ts +24 -24
  388. package/models/operations/createtool.d.ts.map +1 -1
  389. package/models/operations/createtool.js +29 -29
  390. package/models/operations/createtool.js.map +1 -1
  391. package/models/operations/deploymentgetconfig.d.ts +8 -8
  392. package/models/operations/deploymentgetconfig.d.ts.map +1 -1
  393. package/models/operations/deploymentgetconfig.js +10 -10
  394. package/models/operations/deploymentgetconfig.js.map +1 -1
  395. package/models/operations/deployments.d.ts +18 -16
  396. package/models/operations/deployments.d.ts.map +1 -1
  397. package/models/operations/deployments.js +20 -16
  398. package/models/operations/deployments.js.map +1 -1
  399. package/models/operations/getallprompts.d.ts +2 -0
  400. package/models/operations/getallprompts.d.ts.map +1 -1
  401. package/models/operations/getallprompts.js +2 -0
  402. package/models/operations/getallprompts.js.map +1 -1
  403. package/models/operations/getalltools.js +4 -4
  404. package/models/operations/geteval.d.ts +0 -814
  405. package/models/operations/geteval.d.ts.map +1 -1
  406. package/models/operations/geteval.js +1 -1252
  407. package/models/operations/geteval.js.map +1 -1
  408. package/models/operations/getevals.d.ts +3 -41
  409. package/models/operations/getevals.d.ts.map +1 -1
  410. package/models/operations/getevals.js +3 -54
  411. package/models/operations/getevals.js.map +1 -1
  412. package/models/operations/getevalversion.d.ts +14 -0
  413. package/models/operations/getevalversion.d.ts.map +1 -0
  414. package/models/operations/getevalversion.js +55 -0
  415. package/models/operations/getevalversion.js.map +1 -0
  416. package/models/operations/getoneprompt.d.ts +2 -0
  417. package/models/operations/getoneprompt.d.ts.map +1 -1
  418. package/models/operations/getoneprompt.js +2 -0
  419. package/models/operations/getoneprompt.js.map +1 -1
  420. package/models/operations/getpromptversion.d.ts +2 -0
  421. package/models/operations/getpromptversion.d.ts.map +1 -1
  422. package/models/operations/getpromptversion.js +2 -0
  423. package/models/operations/getpromptversion.js.map +1 -1
  424. package/models/operations/getv2humanevalsets.js +2 -2
  425. package/models/operations/getv2humanevalsetsid.js +2 -2
  426. package/models/operations/index.d.ts +6 -5
  427. package/models/operations/index.d.ts.map +1 -1
  428. package/models/operations/index.js +6 -5
  429. package/models/operations/index.js.map +1 -1
  430. package/models/operations/listannotationqueueitems.d.ts +4 -72
  431. package/models/operations/listannotationqueueitems.d.ts.map +1 -1
  432. package/models/operations/listannotationqueueitems.js +2 -80
  433. package/models/operations/listannotationqueueitems.js.map +1 -1
  434. package/models/operations/listannotationqueues.d.ts +6 -81
  435. package/models/operations/listannotationqueues.d.ts.map +1 -1
  436. package/models/operations/listannotationqueues.js +2 -63
  437. package/models/operations/listannotationqueues.js.map +1 -1
  438. package/models/operations/listdatasetdatapoints.js +5 -5
  439. package/models/operations/listdatasets.js +1 -1
  440. package/models/operations/listevalversions.d.ts +21 -0
  441. package/models/operations/listevalversions.d.ts.map +1 -0
  442. package/models/operations/listevalversions.js +58 -0
  443. package/models/operations/listevalversions.js.map +1 -0
  444. package/models/operations/listpromptversions.d.ts +2 -0
  445. package/models/operations/listpromptversions.d.ts.map +1 -1
  446. package/models/operations/listpromptversions.js +2 -0
  447. package/models/operations/listpromptversions.js.map +1 -1
  448. package/models/operations/parse.d.ts +4 -4
  449. package/models/operations/parse.d.ts.map +1 -1
  450. package/models/operations/parse.js +4 -4
  451. package/models/operations/parse.js.map +1 -1
  452. package/models/operations/patchv2humanevalsetsid.js +2 -2
  453. package/models/operations/postv2feedbackevaluation.d.ts +6 -6
  454. package/models/operations/postv2feedbackevaluation.d.ts.map +1 -1
  455. package/models/operations/postv2feedbackevaluation.js +10 -10
  456. package/models/operations/postv2feedbackevaluation.js.map +1 -1
  457. package/models/operations/postv2humanevalsets.js +2 -2
  458. package/models/operations/previewdatasourcechunks.d.ts +15 -0
  459. package/models/operations/previewdatasourcechunks.d.ts.map +1 -0
  460. package/models/operations/previewdatasourcechunks.js +57 -0
  461. package/models/operations/previewdatasourcechunks.js.map +1 -0
  462. package/models/operations/removeannotationqueueitems.d.ts +3 -15
  463. package/models/operations/removeannotationqueueitems.d.ts.map +1 -1
  464. package/models/operations/removeannotationqueueitems.js +4 -15
  465. package/models/operations/removeannotationqueueitems.js.map +1 -1
  466. package/models/operations/retrieveannotationqueue.d.ts +0 -60
  467. package/models/operations/retrieveannotationqueue.d.ts.map +1 -1
  468. package/models/operations/retrieveannotationqueue.js +1 -43
  469. package/models/operations/retrieveannotationqueue.js.map +1 -1
  470. package/models/operations/retrieveannotationqueueitem.d.ts +9 -0
  471. package/models/operations/retrieveannotationqueueitem.d.ts.map +1 -1
  472. package/models/operations/retrieveannotationqueueitem.js +8 -1
  473. package/models/operations/retrieveannotationqueueitem.js.map +1 -1
  474. package/models/operations/retrievedatapoint.js +5 -5
  475. package/models/operations/retrievedataset.js +1 -1
  476. package/models/operations/retrievetool.js +4 -4
  477. package/models/operations/runagent.js +1 -1
  478. package/models/operations/streamrunagent.js +1 -1
  479. package/models/operations/updateagent.d.ts +16 -16
  480. package/models/operations/updateagent.d.ts.map +1 -1
  481. package/models/operations/updateagent.js +17 -17
  482. package/models/operations/updateagent.js.map +1 -1
  483. package/models/operations/updateannotationqueue.d.ts +3 -90
  484. package/models/operations/updateannotationqueue.d.ts.map +1 -1
  485. package/models/operations/updateannotationqueue.js +4 -63
  486. package/models/operations/updateannotationqueue.js.map +1 -1
  487. package/models/operations/updatedatapoint.js +5 -5
  488. package/models/operations/updatedataset.js +1 -1
  489. package/models/operations/updateeval.d.ts +4 -201
  490. package/models/operations/updateeval.d.ts.map +1 -1
  491. package/models/operations/updateeval.js +3 -160
  492. package/models/operations/updateeval.js.map +1 -1
  493. package/models/operations/updateprompt.d.ts +2 -0
  494. package/models/operations/updateprompt.d.ts.map +1 -1
  495. package/models/operations/updateprompt.js +2 -0
  496. package/models/operations/updateprompt.js.map +1 -1
  497. package/models/operations/updatetool.js +4 -4
  498. package/models/operations/workspaceget.d.ts +12 -0
  499. package/models/operations/workspaceget.d.ts.map +1 -0
  500. package/models/operations/workspaceget.js +49 -0
  501. package/models/operations/workspaceget.js.map +1 -0
  502. package/models/operations/workspacelist.d.ts +16 -0
  503. package/models/operations/workspacelist.d.ts.map +1 -0
  504. package/models/operations/workspacelist.js +57 -0
  505. package/models/operations/workspacelist.js.map +1 -0
  506. package/models/operations/workspaceupdate.d.ts +15 -0
  507. package/models/operations/workspaceupdate.d.ts.map +1 -0
  508. package/models/operations/workspaceupdate.js +56 -0
  509. package/models/operations/workspaceupdate.js.map +1 -0
  510. package/package.json +3 -3
  511. package/sdk/annotationqueues.d.ts +24 -24
  512. package/sdk/annotationqueues.d.ts.map +1 -1
  513. package/sdk/annotationqueues.js +18 -18
  514. package/sdk/annotationqueues.js.map +1 -1
  515. package/sdk/auditlogs.d.ts +12 -0
  516. package/sdk/auditlogs.d.ts.map +1 -0
  517. package/sdk/auditlogs.js +22 -0
  518. package/sdk/auditlogs.js.map +1 -0
  519. package/sdk/deployments.d.ts +0 -16
  520. package/sdk/deployments.d.ts.map +1 -1
  521. package/sdk/deployments.js +0 -20
  522. package/sdk/deployments.js.map +1 -1
  523. package/sdk/evals.d.ts +20 -13
  524. package/sdk/evals.d.ts.map +1 -1
  525. package/sdk/evals.js +22 -12
  526. package/sdk/evals.js.map +1 -1
  527. package/sdk/knowledge.d.ts +7 -0
  528. package/sdk/knowledge.d.ts.map +1 -1
  529. package/sdk/knowledge.js +10 -0
  530. package/sdk/knowledge.js.map +1 -1
  531. package/sdk/logs.d.ts +2 -2
  532. package/sdk/logs.d.ts.map +1 -1
  533. package/sdk/logs.js +1 -1
  534. package/sdk/logs.js.map +1 -1
  535. package/sdk/reporting.d.ts +1 -1
  536. package/sdk/reporting.js +1 -1
  537. package/sdk/sdk.d.ts +10 -4
  538. package/sdk/sdk.d.ts.map +1 -1
  539. package/sdk/sdk.js +14 -6
  540. package/sdk/sdk.js.map +1 -1
  541. package/sdk/traces.d.ts +1 -1
  542. package/sdk/traces.js +1 -1
  543. package/sdk/workspaces.d.ts +27 -0
  544. package/sdk/workspaces.d.ts.map +1 -0
  545. package/sdk/workspaces.js +42 -0
  546. package/sdk/workspaces.js.map +1 -0
  547. package/src/funcs/annotationQueuesAddItems.ts +9 -10
  548. package/src/funcs/annotationQueuesClear.ts +8 -8
  549. package/src/funcs/annotationQueuesCreate.ts +10 -13
  550. package/src/funcs/annotationQueuesDelete.ts +8 -8
  551. package/src/funcs/annotationQueuesList.ts +6 -5
  552. package/src/funcs/annotationQueuesListItems.ts +6 -5
  553. package/src/funcs/annotationQueuesRemoveItems.ts +12 -10
  554. package/src/funcs/annotationQueuesRetrieve.ts +6 -5
  555. package/src/funcs/annotationQueuesRetrieveItem.ts +8 -6
  556. package/src/funcs/annotationQueuesUpdate.ts +10 -7
  557. package/src/funcs/{deploymentsInvoke.ts → auditLogsQuery.ts} +12 -20
  558. package/src/funcs/evalsAll.ts +6 -14
  559. package/src/funcs/evalsCreate.ts +10 -35
  560. package/src/funcs/evalsDelete.ts +6 -19
  561. package/src/funcs/evalsGet.ts +6 -14
  562. package/src/funcs/evalsGetVersion.ts +174 -0
  563. package/src/funcs/evalsListVersions.ts +11 -20
  564. package/src/funcs/evalsUpdate.ts +6 -14
  565. package/src/funcs/{deploymentsStream.ts → knowledgePreviewChunks.ts} +29 -30
  566. package/src/funcs/logsListFacets.ts +8 -17
  567. package/src/funcs/reportingQuery.ts +1 -1
  568. package/src/funcs/tracesAggregate.ts +1 -1
  569. package/src/funcs/workspacesGet.ts +168 -0
  570. package/src/funcs/workspacesList.ts +170 -0
  571. package/src/funcs/workspacesUpdate.ts +171 -0
  572. package/src/lib/config.ts +3 -3
  573. package/src/lib/encodings.ts +58 -23
  574. package/src/models/components/addannotationqueueitemsrequest.ts +41 -0
  575. package/src/models/components/addannotationqueueitemsresponse.ts +38 -0
  576. package/src/models/components/agentresponserequest.ts +39 -41
  577. package/src/models/components/agentthoughtstreamingevent.ts +43 -55
  578. package/src/models/components/annotationqueue.ts +101 -0
  579. package/src/models/components/annotationqueueitem.ts +80 -0
  580. package/src/models/components/annotationqueueitemref.ts +43 -0
  581. package/src/models/components/annotationqueuemetadata.ts +42 -0
  582. package/src/models/components/auditlog.ts +122 -0
  583. package/src/models/components/auditlogfilter.ts +51 -0
  584. package/src/models/components/auditlogfilterquery.ts +54 -0
  585. package/src/models/components/auditlogpagination.ts +55 -0
  586. package/src/models/components/auditlogsort.ts +39 -0
  587. package/src/models/components/budgetmatch.ts +1 -7
  588. package/src/models/components/budgetscope.ts +1 -5
  589. package/src/models/components/budgetscoperestresponse.ts +1 -5
  590. package/src/models/components/chunkingconfiguration.ts +432 -4
  591. package/src/models/components/clearannotationqueueresponse.ts +27 -0
  592. package/src/models/components/createannotationqueuerequest.ts +54 -0
  593. package/src/models/components/createapikeyrequest.ts +9 -0
  594. package/src/models/components/createmcpgatewayrequest.ts +11 -0
  595. package/src/models/components/datasourcesservicepreviewchunksrequest.ts +48 -0
  596. package/src/models/components/datasourcesservicepreviewchunksresponse.ts +44 -0
  597. package/src/models/components/deleteannotationqueueresponse.ts +27 -0
  598. package/src/models/components/deleteevaluatorresponse.ts +27 -0
  599. package/src/models/components/evaluationcontext.ts +10 -15
  600. package/src/models/components/evaluatordocumentresponse.ts +50 -0
  601. package/src/models/components/filesystemtoolinput.ts +63 -6
  602. package/src/models/components/getevaluatorversionresponse.ts +58 -0
  603. package/src/models/components/getuploadfileurlresponse.ts +5 -0
  604. package/src/models/components/getworkspaceresponse.ts +32 -0
  605. package/src/models/components/index.ts +41 -9
  606. package/src/models/components/listannotationqueueitemsresponse.ts +53 -0
  607. package/src/models/components/listannotationqueuesresponse.ts +53 -0
  608. package/src/models/components/listevaluatorsresponse.ts +59 -0
  609. package/src/models/components/listevaluatorversionsresponse.ts +59 -0
  610. package/src/models/{operations/listlogfacets.ts → components/listlogfacetsrequest.ts} +15 -0
  611. package/src/models/components/listworkspacesresponse.ts +41 -0
  612. package/src/models/components/mcpgateway.ts +9 -0
  613. package/src/models/components/mcpgatewayplugin.ts +83 -0
  614. package/src/models/components/modelmetadata.ts +6 -0
  615. package/src/models/components/modelsconfig.ts +10 -11
  616. package/src/models/components/monitorfilter.ts +8 -0
  617. package/src/models/components/piiredactionconfig.ts +7 -9
  618. package/src/models/components/previewchunk.ts +38 -0
  619. package/src/models/components/previewchunksmetadata.ts +51 -0
  620. package/src/models/components/pricing.ts +12 -0
  621. package/src/models/components/pricingvariant.ts +12 -0
  622. package/src/models/components/queryauditlogsrequest.ts +64 -0
  623. package/src/models/components/queryauditlogsresponse.ts +55 -0
  624. package/src/models/components/reasoningpart.ts +1 -1
  625. package/src/models/components/removeannotationqueueitemsrequest.ts +41 -0
  626. package/src/models/components/removeannotationqueueitemsresponse.ts +28 -0
  627. package/src/models/components/searchknowledgerequest.ts +491 -711
  628. package/src/models/components/textcontentpartschema.ts +19 -23
  629. package/src/models/components/updateannotationqueuerequest.ts +61 -0
  630. package/src/models/components/updatemcpgatewayrequest.ts +11 -0
  631. package/src/models/components/updateworkspacerequest.ts +81 -0
  632. package/src/models/components/updateworkspaceresponse.ts +32 -0
  633. package/src/models/components/upsertchunk.ts +11 -0
  634. package/src/models/components/value.ts +24 -0
  635. package/src/models/components/workspace.ts +116 -0
  636. package/src/models/components/workspacecapabilities.ts +33 -0
  637. package/src/models/components/workspaceorganization.ts +33 -0
  638. package/src/models/components/workspacesettingsfields.ts +135 -0
  639. package/src/models/errors/index.ts +0 -6
  640. package/src/models/operations/addannotationqueueitems.ts +7 -139
  641. package/src/models/operations/createagentrequest.ts +20 -31
  642. package/src/models/operations/createchatcompletion.ts +248 -313
  643. package/src/models/operations/createdataset.ts +1 -1
  644. package/src/models/operations/createdatasetitem.ts +5 -5
  645. package/src/models/operations/createeval.ts +3 -644
  646. package/src/models/operations/createprompt.ts +26 -29
  647. package/src/models/operations/createtool.ts +55 -56
  648. package/src/models/operations/deploymentgetconfig.ts +16 -18
  649. package/src/models/operations/deployments.ts +44 -46
  650. package/src/models/operations/getallprompts.ts +2 -0
  651. package/src/models/operations/getalltools.ts +4 -4
  652. package/src/models/operations/geteval.ts +0 -2770
  653. package/src/models/operations/getevals.ts +5 -119
  654. package/src/models/operations/getevalversion.ts +39 -0
  655. package/src/models/operations/getoneprompt.ts +2 -0
  656. package/src/models/operations/getpromptversion.ts +2 -0
  657. package/src/models/operations/getv2humanevalsets.ts +2 -2
  658. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  659. package/src/models/operations/index.ts +6 -5
  660. package/src/models/operations/listannotationqueueitems.ts +5 -183
  661. package/src/models/operations/listannotationqueues.ts +7 -173
  662. package/src/models/operations/listdatasetdatapoints.ts +5 -5
  663. package/src/models/operations/listdatasets.ts +1 -1
  664. package/src/models/operations/listevalversions.ts +49 -0
  665. package/src/models/operations/listpromptversions.ts +2 -0
  666. package/src/models/operations/parse.ts +7 -7
  667. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  668. package/src/models/operations/postv2feedbackevaluation.ts +14 -20
  669. package/src/models/operations/postv2humanevalsets.ts +2 -2
  670. package/src/models/operations/previewdatasourcechunks.ts +47 -0
  671. package/src/models/operations/removeannotationqueueitems.ts +8 -41
  672. package/src/models/operations/retrieveannotationqueue.ts +0 -123
  673. package/src/models/operations/retrieveannotationqueueitem.ts +31 -0
  674. package/src/models/operations/retrievedatapoint.ts +5 -5
  675. package/src/models/operations/retrievedataset.ts +1 -1
  676. package/src/models/operations/retrievetool.ts +4 -4
  677. package/src/models/operations/runagent.ts +1 -1
  678. package/src/models/operations/streamrunagent.ts +1 -1
  679. package/src/models/operations/updateagent.ts +31 -40
  680. package/src/models/operations/updateannotationqueue.ts +7 -182
  681. package/src/models/operations/updatedatapoint.ts +5 -5
  682. package/src/models/operations/updatedataset.ts +1 -1
  683. package/src/models/operations/updateeval.ts +6 -404
  684. package/src/models/operations/updateprompt.ts +2 -0
  685. package/src/models/operations/updatetool.ts +4 -4
  686. package/src/models/operations/workspaceget.ts +31 -0
  687. package/src/models/operations/workspacelist.ts +43 -0
  688. package/src/models/operations/workspaceupdate.ts +40 -0
  689. package/src/sdk/annotationqueues.ts +31 -31
  690. package/src/sdk/auditlogs.ts +27 -0
  691. package/src/sdk/deployments.ts +0 -38
  692. package/src/sdk/evals.ts +41 -23
  693. package/src/sdk/knowledge.ts +18 -0
  694. package/src/sdk/logs.ts +2 -2
  695. package/src/sdk/reporting.ts +1 -1
  696. package/src/sdk/sdk.ts +22 -10
  697. package/src/sdk/traces.ts +1 -1
  698. package/src/sdk/workspaces.ts +64 -0
  699. package/funcs/deploymentsInvoke.d.ts.map +0 -1
  700. package/funcs/deploymentsInvoke.js.map +0 -1
  701. package/funcs/deploymentsStream.d.ts.map +0 -1
  702. package/funcs/deploymentsStream.js.map +0 -1
  703. package/models/components/evaluatorresponsefunction.d.ts +0 -230
  704. package/models/components/evaluatorresponsefunction.d.ts.map +0 -1
  705. package/models/components/evaluatorresponsefunction.js +0 -422
  706. package/models/components/evaluatorresponsefunction.js.map +0 -1
  707. package/models/components/evaluatorresponsehttp.d.ts +0 -37
  708. package/models/components/evaluatorresponsehttp.d.ts.map +0 -1
  709. package/models/components/evaluatorresponsehttp.js.map +0 -1
  710. package/models/components/evaluatorresponsejsonschema.d.ts +0 -22
  711. package/models/components/evaluatorresponsejsonschema.d.ts.map +0 -1
  712. package/models/components/evaluatorresponsejsonschema.js.map +0 -1
  713. package/models/components/evaluatorresponsellm.d.ts +0 -101
  714. package/models/components/evaluatorresponsellm.d.ts.map +0 -1
  715. package/models/components/evaluatorresponsellm.js +0 -181
  716. package/models/components/evaluatorresponsellm.js.map +0 -1
  717. package/models/components/evaluatorresponsepython.d.ts +0 -22
  718. package/models/components/evaluatorresponsepython.d.ts.map +0 -1
  719. package/models/components/evaluatorresponsepython.js.map +0 -1
  720. package/models/components/evaluatorresponseragas.d.ts +0 -41
  721. package/models/components/evaluatorresponseragas.d.ts.map +0 -1
  722. package/models/components/evaluatorresponseragas.js.map +0 -1
  723. package/models/components/evaluatorresponsetypescript.d.ts +0 -22
  724. package/models/components/evaluatorresponsetypescript.d.ts.map +0 -1
  725. package/models/components/evaluatorresponsetypescript.js.map +0 -1
  726. package/models/components/invokedeploymentrequest.d.ts +0 -1544
  727. package/models/components/invokedeploymentrequest.d.ts.map +0 -1
  728. package/models/components/invokedeploymentrequest.js +0 -1108
  729. package/models/components/invokedeploymentrequest.js.map +0 -1
  730. package/models/components/publicspan.d.ts +0 -68
  731. package/models/components/publicspan.d.ts.map +0 -1
  732. package/models/components/publicspan.js +0 -94
  733. package/models/components/publicspan.js.map +0 -1
  734. package/models/errors/createeval.d.ts +0 -23
  735. package/models/errors/createeval.d.ts.map +0 -1
  736. package/models/errors/createeval.js.map +0 -1
  737. package/models/errors/deleteeval.d.ts +0 -43
  738. package/models/errors/deleteeval.d.ts.map +0 -1
  739. package/models/errors/deleteeval.js +0 -94
  740. package/models/errors/deleteeval.js.map +0 -1
  741. package/models/errors/geteval.d.ts +0 -23
  742. package/models/errors/geteval.d.ts.map +0 -1
  743. package/models/errors/geteval.js.map +0 -1
  744. package/models/errors/getevals.d.ts +0 -23
  745. package/models/errors/getevals.d.ts.map +0 -1
  746. package/models/errors/getevals.js.map +0 -1
  747. package/models/errors/getv2evaluatorsidversions.d.ts +0 -23
  748. package/models/errors/getv2evaluatorsidversions.d.ts.map +0 -1
  749. package/models/errors/getv2evaluatorsidversions.js +0 -68
  750. package/models/errors/getv2evaluatorsidversions.js.map +0 -1
  751. package/models/errors/updateeval.d.ts +0 -23
  752. package/models/errors/updateeval.d.ts.map +0 -1
  753. package/models/errors/updateeval.js.map +0 -1
  754. package/models/operations/createannotationqueue.d.ts +0 -85
  755. package/models/operations/createannotationqueue.d.ts.map +0 -1
  756. package/models/operations/createannotationqueue.js +0 -99
  757. package/models/operations/createannotationqueue.js.map +0 -1
  758. package/models/operations/deploymentinvoke.d.ts +0 -365
  759. package/models/operations/deploymentinvoke.d.ts.map +0 -1
  760. package/models/operations/deploymentinvoke.js +0 -370
  761. package/models/operations/deploymentinvoke.js.map +0 -1
  762. package/models/operations/deploymentstream.d.ts +0 -1897
  763. package/models/operations/deploymentstream.d.ts.map +0 -1
  764. package/models/operations/deploymentstream.js +0 -1483
  765. package/models/operations/deploymentstream.js.map +0 -1
  766. package/models/operations/getv2evaluatorsidversions.d.ts +0 -66
  767. package/models/operations/getv2evaluatorsidversions.d.ts.map +0 -1
  768. package/models/operations/getv2evaluatorsidversions.js +0 -106
  769. package/models/operations/getv2evaluatorsidversions.js.map +0 -1
  770. package/models/operations/listlogfacets.d.ts.map +0 -1
  771. package/models/operations/listlogfacets.js.map +0 -1
  772. package/src/models/components/evaluatorresponsefunction.ts +0 -922
  773. package/src/models/components/evaluatorresponsehttp.ts +0 -77
  774. package/src/models/components/evaluatorresponsejsonschema.ts +0 -60
  775. package/src/models/components/evaluatorresponsellm.ts +0 -310
  776. package/src/models/components/evaluatorresponsepython.ts +0 -60
  777. package/src/models/components/evaluatorresponseragas.ts +0 -84
  778. package/src/models/components/evaluatorresponsetypescript.ts +0 -60
  779. package/src/models/components/invokedeploymentrequest.ts +0 -3446
  780. package/src/models/components/publicspan.ts +0 -135
  781. package/src/models/errors/createeval.ts +0 -51
  782. package/src/models/errors/deleteeval.ts +0 -96
  783. package/src/models/errors/geteval.ts +0 -51
  784. package/src/models/errors/getevals.ts +0 -51
  785. package/src/models/errors/getv2evaluatorsidversions.ts +0 -51
  786. package/src/models/errors/updateeval.ts +0 -51
  787. package/src/models/operations/createannotationqueue.ts +0 -176
  788. package/src/models/operations/deploymentinvoke.ts +0 -731
  789. package/src/models/operations/deploymentstream.ts +0 -4562
  790. package/src/models/operations/getv2evaluatorsidversions.ts +0 -162
@@ -1,4562 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod/v3";
6
- import { remap as remap$ } from "../../lib/primitives.js";
7
- import { safeParse } from "../../lib/schemas.js";
8
- import { ClosedEnum } from "../../types/enums.js";
9
- import { Result as SafeParseResult } from "../../types/fp.js";
10
- import * as components from "../components/index.js";
11
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
12
-
13
- export type DeploymentStreamContentDeploymentsRequest2 =
14
- components.TextContentPartSchema;
15
-
16
- /**
17
- * The contents of the tool message.
18
- */
19
- export type DeploymentStreamPrefixMessagesDeploymentsRequestRequestBody5Content =
20
- | string
21
- | Array<components.TextContentPartSchema>;
22
-
23
- /**
24
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
25
- */
26
- export const DeploymentStreamPrefixMessagesDeploymentsType = {
27
- Ephemeral: "ephemeral",
28
- } as const;
29
- /**
30
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
31
- */
32
- export type DeploymentStreamPrefixMessagesDeploymentsType = ClosedEnum<
33
- typeof DeploymentStreamPrefixMessagesDeploymentsType
34
- >;
35
-
36
- /**
37
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
38
- *
39
- * @remarks
40
- *
41
- * - `5m`: 5 minutes
42
- * - `1h`: 1 hour
43
- *
44
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
45
- */
46
- export const DeploymentStreamPrefixMessagesTtl = {
47
- Fivem: "5m",
48
- Oneh: "1h",
49
- } as const;
50
- /**
51
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
52
- *
53
- * @remarks
54
- *
55
- * - `5m`: 5 minutes
56
- * - `1h`: 1 hour
57
- *
58
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
59
- */
60
- export type DeploymentStreamPrefixMessagesTtl = ClosedEnum<
61
- typeof DeploymentStreamPrefixMessagesTtl
62
- >;
63
-
64
- export type DeploymentStreamPrefixMessagesCacheControl = {
65
- /**
66
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
67
- */
68
- type: DeploymentStreamPrefixMessagesDeploymentsType;
69
- /**
70
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
71
- *
72
- * @remarks
73
- *
74
- * - `5m`: 5 minutes
75
- * - `1h`: 1 hour
76
- *
77
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
78
- */
79
- ttl?: DeploymentStreamPrefixMessagesTtl | undefined;
80
- };
81
-
82
- export type PrefixMessagesToolMessage = {
83
- /**
84
- * The role of the messages author, in this case tool.
85
- */
86
- role: "tool";
87
- /**
88
- * The contents of the tool message.
89
- */
90
- content: string | Array<components.TextContentPartSchema>;
91
- /**
92
- * Tool call that this message is responding to.
93
- */
94
- toolCallId: string | null;
95
- cacheControl?: DeploymentStreamPrefixMessagesCacheControl | undefined;
96
- };
97
-
98
- export type DeploymentStreamContentDeployments2 =
99
- | (components.TextContentPartSchema & { type: "text" })
100
- | components.RefusalPartSchema
101
- | components.ReasoningPartSchema
102
- | components.RedactedReasoningPartSchema;
103
-
104
- /**
105
- * The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
106
- */
107
- export type DeploymentStreamPrefixMessagesDeploymentsRequestRequestBodyContent =
108
- | string
109
- | Array<
110
- | (components.TextContentPartSchema & { type: "text" })
111
- | components.RefusalPartSchema
112
- | components.ReasoningPartSchema
113
- | components.RedactedReasoningPartSchema
114
- >;
115
-
116
- /**
117
- * Data about a previous audio response from the model.
118
- */
119
- export type PrefixMessagesAudio = {
120
- /**
121
- * Unique identifier for a previous audio response from the model.
122
- */
123
- id: string;
124
- };
125
-
126
- /**
127
- * The type of the tool. Currently, only `function` is supported.
128
- */
129
- export const DeploymentStreamPrefixMessagesType = {
130
- Function: "function",
131
- } as const;
132
- /**
133
- * The type of the tool. Currently, only `function` is supported.
134
- */
135
- export type DeploymentStreamPrefixMessagesType = ClosedEnum<
136
- typeof DeploymentStreamPrefixMessagesType
137
- >;
138
-
139
- export type PrefixMessagesFunction = {
140
- /**
141
- * The name of the function to call.
142
- */
143
- name?: string | undefined;
144
- /**
145
- * The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function.
146
- */
147
- arguments?: string | undefined;
148
- };
149
-
150
- export type PrefixMessagesToolCalls = {
151
- /**
152
- * The ID of the tool call.
153
- */
154
- id: string;
155
- /**
156
- * The type of the tool. Currently, only `function` is supported.
157
- */
158
- type: DeploymentStreamPrefixMessagesType;
159
- function: PrefixMessagesFunction;
160
- /**
161
- * Encrypted representation of the model internal reasoning state during function calling. Required by Gemini 3 models when continuing a conversation after a tool call.
162
- */
163
- thoughtSignature?: string | undefined;
164
- };
165
-
166
- export type PrefixMessagesAssistantMessage = {
167
- /**
168
- * Provider reasoning content that must be replayed with assistant tool calls when continuing a reasoning-model conversation.
169
- */
170
- reasoningContent?: string | undefined;
171
- /**
172
- * The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
173
- */
174
- content?:
175
- | string
176
- | Array<
177
- | (components.TextContentPartSchema & { type: "text" })
178
- | components.RefusalPartSchema
179
- | components.ReasoningPartSchema
180
- | components.RedactedReasoningPartSchema
181
- >
182
- | null
183
- | undefined;
184
- /**
185
- * The refusal message by the assistant.
186
- */
187
- refusal?: string | null | undefined;
188
- /**
189
- * The role of the messages author, in this case `assistant`.
190
- */
191
- role: "assistant";
192
- /**
193
- * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
194
- */
195
- name?: string | undefined;
196
- /**
197
- * Data about a previous audio response from the model.
198
- */
199
- audio?: PrefixMessagesAudio | null | undefined;
200
- /**
201
- * The tool calls generated by the model, such as function calls.
202
- */
203
- toolCalls?: Array<PrefixMessagesToolCalls> | undefined;
204
- };
205
-
206
- /**
207
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
208
- */
209
- export const DeploymentStream2DeploymentsType = {
210
- Ephemeral: "ephemeral",
211
- } as const;
212
- /**
213
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
214
- */
215
- export type DeploymentStream2DeploymentsType = ClosedEnum<
216
- typeof DeploymentStream2DeploymentsType
217
- >;
218
-
219
- /**
220
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
221
- *
222
- * @remarks
223
- *
224
- * - `5m`: 5 minutes
225
- * - `1h`: 1 hour
226
- *
227
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
228
- */
229
- export const DeploymentStream2Ttl = {
230
- Fivem: "5m",
231
- Oneh: "1h",
232
- } as const;
233
- /**
234
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
235
- *
236
- * @remarks
237
- *
238
- * - `5m`: 5 minutes
239
- * - `1h`: 1 hour
240
- *
241
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
242
- */
243
- export type DeploymentStream2Ttl = ClosedEnum<typeof DeploymentStream2Ttl>;
244
-
245
- export type DeploymentStream2CacheControl = {
246
- /**
247
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
248
- */
249
- type: DeploymentStream2DeploymentsType;
250
- /**
251
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
252
- *
253
- * @remarks
254
- *
255
- * - `5m`: 5 minutes
256
- * - `1h`: 1 hour
257
- *
258
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
259
- */
260
- ttl?: DeploymentStream2Ttl | undefined;
261
- };
262
-
263
- export type DeploymentStream24 = {
264
- /**
265
- * The type of the content part. Always `file`.
266
- */
267
- type: "file";
268
- cacheControl?: DeploymentStream2CacheControl | undefined;
269
- /**
270
- * File data for the content part. Must contain either file_data or uri, but not both.
271
- */
272
- file: components.FileContentPartSchema;
273
- };
274
-
275
- export type DeploymentStreamContent2 =
276
- | (components.TextContentPartSchema & { type: "text" })
277
- | components.ImageContentPartSchema
278
- | components.AudioContentPartSchema
279
- | DeploymentStream24;
280
-
281
- /**
282
- * The contents of the user message.
283
- */
284
- export type DeploymentStreamPrefixMessagesDeploymentsRequestContent =
285
- | string
286
- | Array<
287
- | (components.TextContentPartSchema & { type: "text" })
288
- | components.ImageContentPartSchema
289
- | components.AudioContentPartSchema
290
- | DeploymentStream24
291
- >;
292
-
293
- export type PrefixMessagesUserMessage = {
294
- /**
295
- * The role of the messages author, in this case `user`.
296
- */
297
- role: "user";
298
- /**
299
- * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
300
- */
301
- name?: string | undefined;
302
- /**
303
- * The contents of the user message.
304
- */
305
- content:
306
- | string
307
- | Array<
308
- | (components.TextContentPartSchema & { type: "text" })
309
- | components.ImageContentPartSchema
310
- | components.AudioContentPartSchema
311
- | DeploymentStream24
312
- >;
313
- };
314
-
315
- /**
316
- * The contents of the developer message.
317
- */
318
- export type DeploymentStreamPrefixMessagesDeploymentsContent =
319
- | string
320
- | Array<components.TextContentPartSchema>;
321
-
322
- export type PrefixMessagesDeveloperMessage = {
323
- /**
324
- * The role of the messages author, in this case `developer`.
325
- */
326
- role: "developer";
327
- /**
328
- * The contents of the developer message.
329
- */
330
- content: string | Array<components.TextContentPartSchema>;
331
- /**
332
- * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
333
- */
334
- name?: string | undefined;
335
- };
336
-
337
- /**
338
- * The contents of the system message.
339
- */
340
- export type DeploymentStreamPrefixMessagesContent =
341
- | string
342
- | Array<components.TextContentPartSchema>;
343
-
344
- /**
345
- * Developer-provided instructions that the model should follow, regardless of messages sent by the user.
346
- */
347
- export type PrefixMessagesSystemMessage = {
348
- /**
349
- * The role of the messages author, in this case `system`.
350
- */
351
- role: "system";
352
- /**
353
- * The contents of the system message.
354
- */
355
- content: string | Array<components.TextContentPartSchema>;
356
- /**
357
- * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
358
- */
359
- name?: string | undefined;
360
- };
361
-
362
- export type DeploymentStreamPrefixMessages =
363
- | PrefixMessagesSystemMessage
364
- | PrefixMessagesDeveloperMessage
365
- | PrefixMessagesUserMessage
366
- | PrefixMessagesAssistantMessage
367
- | PrefixMessagesToolMessage;
368
-
369
- export type DeploymentStreamContentDeploymentsRequestRequestBodyMessages52 =
370
- components.TextContentPartSchema;
371
-
372
- /**
373
- * The contents of the tool message.
374
- */
375
- export type DeploymentStreamMessagesDeploymentsRequestRequestBody5Content =
376
- | string
377
- | Array<components.TextContentPartSchema>;
378
-
379
- /**
380
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
381
- */
382
- export const DeploymentStreamMessagesDeploymentsType = {
383
- Ephemeral: "ephemeral",
384
- } as const;
385
- /**
386
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
387
- */
388
- export type DeploymentStreamMessagesDeploymentsType = ClosedEnum<
389
- typeof DeploymentStreamMessagesDeploymentsType
390
- >;
391
-
392
- /**
393
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
394
- *
395
- * @remarks
396
- *
397
- * - `5m`: 5 minutes
398
- * - `1h`: 1 hour
399
- *
400
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
401
- */
402
- export const DeploymentStreamMessagesTtl = {
403
- Fivem: "5m",
404
- Oneh: "1h",
405
- } as const;
406
- /**
407
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
408
- *
409
- * @remarks
410
- *
411
- * - `5m`: 5 minutes
412
- * - `1h`: 1 hour
413
- *
414
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
415
- */
416
- export type DeploymentStreamMessagesTtl = ClosedEnum<
417
- typeof DeploymentStreamMessagesTtl
418
- >;
419
-
420
- export type DeploymentStreamMessagesCacheControl = {
421
- /**
422
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
423
- */
424
- type: DeploymentStreamMessagesDeploymentsType;
425
- /**
426
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
427
- *
428
- * @remarks
429
- *
430
- * - `5m`: 5 minutes
431
- * - `1h`: 1 hour
432
- *
433
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
434
- */
435
- ttl?: DeploymentStreamMessagesTtl | undefined;
436
- };
437
-
438
- export type DeploymentStreamMessagesToolMessage = {
439
- /**
440
- * The role of the messages author, in this case tool.
441
- */
442
- role: "tool";
443
- /**
444
- * The contents of the tool message.
445
- */
446
- content: string | Array<components.TextContentPartSchema>;
447
- /**
448
- * Tool call that this message is responding to.
449
- */
450
- toolCallId: string | null;
451
- cacheControl?: DeploymentStreamMessagesCacheControl | undefined;
452
- };
453
-
454
- export type DeploymentStreamContentDeploymentsRequestRequestBodyMessages2 =
455
- | (components.TextContentPartSchema & { type: "text" })
456
- | components.RefusalPartSchema
457
- | components.ReasoningPartSchema
458
- | components.RedactedReasoningPartSchema;
459
-
460
- /**
461
- * The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
462
- */
463
- export type DeploymentStreamMessagesDeploymentsRequestRequestBodyContent =
464
- | string
465
- | Array<
466
- | (components.TextContentPartSchema & { type: "text" })
467
- | components.RefusalPartSchema
468
- | components.ReasoningPartSchema
469
- | components.RedactedReasoningPartSchema
470
- >;
471
-
472
- /**
473
- * Data about a previous audio response from the model.
474
- */
475
- export type DeploymentStreamMessagesAudio = {
476
- /**
477
- * Unique identifier for a previous audio response from the model.
478
- */
479
- id: string;
480
- };
481
-
482
- /**
483
- * The type of the tool. Currently, only `function` is supported.
484
- */
485
- export const DeploymentStreamMessagesType = {
486
- Function: "function",
487
- } as const;
488
- /**
489
- * The type of the tool. Currently, only `function` is supported.
490
- */
491
- export type DeploymentStreamMessagesType = ClosedEnum<
492
- typeof DeploymentStreamMessagesType
493
- >;
494
-
495
- export type DeploymentStreamMessagesFunction = {
496
- /**
497
- * The name of the function to call.
498
- */
499
- name?: string | undefined;
500
- /**
501
- * The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function.
502
- */
503
- arguments?: string | undefined;
504
- };
505
-
506
- export type DeploymentStreamMessagesToolCalls = {
507
- /**
508
- * The ID of the tool call.
509
- */
510
- id: string;
511
- /**
512
- * The type of the tool. Currently, only `function` is supported.
513
- */
514
- type: DeploymentStreamMessagesType;
515
- function: DeploymentStreamMessagesFunction;
516
- /**
517
- * Encrypted representation of the model internal reasoning state during function calling. Required by Gemini 3 models when continuing a conversation after a tool call.
518
- */
519
- thoughtSignature?: string | undefined;
520
- };
521
-
522
- export type DeploymentStreamMessagesAssistantMessage = {
523
- /**
524
- * Provider reasoning content that must be replayed with assistant tool calls when continuing a reasoning-model conversation.
525
- */
526
- reasoningContent?: string | undefined;
527
- /**
528
- * The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
529
- */
530
- content?:
531
- | string
532
- | Array<
533
- | (components.TextContentPartSchema & { type: "text" })
534
- | components.RefusalPartSchema
535
- | components.ReasoningPartSchema
536
- | components.RedactedReasoningPartSchema
537
- >
538
- | null
539
- | undefined;
540
- /**
541
- * The refusal message by the assistant.
542
- */
543
- refusal?: string | null | undefined;
544
- /**
545
- * The role of the messages author, in this case `assistant`.
546
- */
547
- role: "assistant";
548
- /**
549
- * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
550
- */
551
- name?: string | undefined;
552
- /**
553
- * Data about a previous audio response from the model.
554
- */
555
- audio?: DeploymentStreamMessagesAudio | null | undefined;
556
- /**
557
- * The tool calls generated by the model, such as function calls.
558
- */
559
- toolCalls?: Array<DeploymentStreamMessagesToolCalls> | undefined;
560
- };
561
-
562
- /**
563
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
564
- */
565
- export const DeploymentStream2DeploymentsRequestRequestBodyType = {
566
- Ephemeral: "ephemeral",
567
- } as const;
568
- /**
569
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
570
- */
571
- export type DeploymentStream2DeploymentsRequestRequestBodyType = ClosedEnum<
572
- typeof DeploymentStream2DeploymentsRequestRequestBodyType
573
- >;
574
-
575
- /**
576
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
577
- *
578
- * @remarks
579
- *
580
- * - `5m`: 5 minutes
581
- * - `1h`: 1 hour
582
- *
583
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
584
- */
585
- export const DeploymentStream2DeploymentsTtl = {
586
- Fivem: "5m",
587
- Oneh: "1h",
588
- } as const;
589
- /**
590
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
591
- *
592
- * @remarks
593
- *
594
- * - `5m`: 5 minutes
595
- * - `1h`: 1 hour
596
- *
597
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
598
- */
599
- export type DeploymentStream2DeploymentsTtl = ClosedEnum<
600
- typeof DeploymentStream2DeploymentsTtl
601
- >;
602
-
603
- export type DeploymentStream2DeploymentsCacheControl = {
604
- /**
605
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
606
- */
607
- type: DeploymentStream2DeploymentsRequestRequestBodyType;
608
- /**
609
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
610
- *
611
- * @remarks
612
- *
613
- * - `5m`: 5 minutes
614
- * - `1h`: 1 hour
615
- *
616
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
617
- */
618
- ttl?: DeploymentStream2DeploymentsTtl | undefined;
619
- };
620
-
621
- export type DeploymentStream2Deployments4 = {
622
- /**
623
- * The type of the content part. Always `file`.
624
- */
625
- type: "file";
626
- cacheControl?: DeploymentStream2DeploymentsCacheControl | undefined;
627
- /**
628
- * File data for the content part. Must contain either file_data or uri, but not both.
629
- */
630
- file: components.FileContentPartSchema;
631
- };
632
-
633
- export type DeploymentStreamContentDeploymentsRequestRequestBody2 =
634
- | (components.TextContentPartSchema & { type: "text" })
635
- | components.ImageContentPartSchema
636
- | components.AudioContentPartSchema
637
- | DeploymentStream2Deployments4;
638
-
639
- /**
640
- * The contents of the user message.
641
- */
642
- export type DeploymentStreamMessagesDeploymentsRequestContent =
643
- | string
644
- | Array<
645
- | (components.TextContentPartSchema & { type: "text" })
646
- | components.ImageContentPartSchema
647
- | components.AudioContentPartSchema
648
- | DeploymentStream2Deployments4
649
- >;
650
-
651
- export type DeploymentStreamMessagesUserMessage = {
652
- /**
653
- * The role of the messages author, in this case `user`.
654
- */
655
- role: "user";
656
- /**
657
- * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
658
- */
659
- name?: string | undefined;
660
- /**
661
- * The contents of the user message.
662
- */
663
- content:
664
- | string
665
- | Array<
666
- | (components.TextContentPartSchema & { type: "text" })
667
- | components.ImageContentPartSchema
668
- | components.AudioContentPartSchema
669
- | DeploymentStream2Deployments4
670
- >;
671
- };
672
-
673
- /**
674
- * The contents of the developer message.
675
- */
676
- export type DeploymentStreamMessagesDeploymentsContent =
677
- | string
678
- | Array<components.TextContentPartSchema>;
679
-
680
- export type DeploymentStreamMessagesDeveloperMessage = {
681
- /**
682
- * The role of the messages author, in this case `developer`.
683
- */
684
- role: "developer";
685
- /**
686
- * The contents of the developer message.
687
- */
688
- content: string | Array<components.TextContentPartSchema>;
689
- /**
690
- * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
691
- */
692
- name?: string | undefined;
693
- };
694
-
695
- /**
696
- * The contents of the system message.
697
- */
698
- export type DeploymentStreamMessagesContent =
699
- | string
700
- | Array<components.TextContentPartSchema>;
701
-
702
- /**
703
- * Developer-provided instructions that the model should follow, regardless of messages sent by the user.
704
- */
705
- export type DeploymentStreamMessagesSystemMessage = {
706
- /**
707
- * The role of the messages author, in this case `system`.
708
- */
709
- role: "system";
710
- /**
711
- * The contents of the system message.
712
- */
713
- content: string | Array<components.TextContentPartSchema>;
714
- /**
715
- * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
716
- */
717
- name?: string | undefined;
718
- };
719
-
720
- export type DeploymentStreamMessages =
721
- | DeploymentStreamMessagesSystemMessage
722
- | DeploymentStreamMessagesDeveloperMessage
723
- | DeploymentStreamMessagesUserMessage
724
- | DeploymentStreamMessagesAssistantMessage
725
- | DeploymentStreamMessagesToolMessage;
726
-
727
- /**
728
- * Metadata about the document
729
- */
730
- export type DeploymentStreamMetadata = {
731
- /**
732
- * Name of the file the text is from.
733
- */
734
- fileName?: string | undefined;
735
- /**
736
- * Content type of the file the text is from.
737
- */
738
- fileType?: string | undefined;
739
- /**
740
- * The page number the text is from.
741
- */
742
- pageNumber?: number | undefined;
743
- };
744
-
745
- export type DeploymentStreamDocuments = {
746
- /**
747
- * The text content of the document
748
- */
749
- text: string;
750
- /**
751
- * Metadata about the document
752
- */
753
- metadata?: DeploymentStreamMetadata | undefined;
754
- };
755
-
756
- export type DeploymentStreamInvokeOptions = {
757
- /**
758
- * Whether to include the retrieved knowledge chunks in the response.
759
- */
760
- includeRetrievals?: boolean | undefined;
761
- /**
762
- * Whether to include the usage metrics in the response.
763
- */
764
- includeUsage?: boolean | undefined;
765
- /**
766
- * A mock response to use instead of calling the LLM API. This is useful for testing purposes. When provided, the system will return a response object with this content as the completion, without making an actual API call to the LLM provider. This works for both streaming and non-streaming requests. Mock responses will not generate logs, traces or be counted for your plan usage.
767
- */
768
- mockResponse?: string | undefined;
769
- };
770
-
771
- export type DeploymentStreamThread = {
772
- /**
773
- * Unique thread identifier to group related invocations.
774
- */
775
- id: string;
776
- /**
777
- * Optional tags to differentiate or categorize threads
778
- */
779
- tags?: Array<string> | undefined;
780
- };
781
-
782
- export type DeploymentStreamOrDeploymentsNin = string | number | boolean;
783
-
784
- /**
785
- * Not in
786
- */
787
- export type DeploymentStreamOrNin = {
788
- nin: Array<string | number | boolean>;
789
- };
790
-
791
- export type DeploymentStreamOrDeploymentsIn = string | number | boolean;
792
-
793
- /**
794
- * In
795
- */
796
- export type DeploymentStreamOrIn = {
797
- in: Array<string | number | boolean>;
798
- };
799
-
800
- /**
801
- * Less than or equal to
802
- */
803
- export type DeploymentStreamOrLte = {
804
- lte: number;
805
- };
806
-
807
- /**
808
- * Less than
809
- */
810
- export type DeploymentStreamOrLt = {
811
- lt: number;
812
- };
813
-
814
- /**
815
- * Greater than or equal to
816
- */
817
- export type DeploymentStreamOrGte = {
818
- gte: number;
819
- };
820
-
821
- /**
822
- * Greater than
823
- */
824
- export type DeploymentStreamOrGt = {
825
- gt: number;
826
- };
827
-
828
- export type DeploymentStreamOrDeploymentsNe = string | number | boolean;
829
-
830
- /**
831
- * Not equal to
832
- */
833
- export type DeploymentStreamOrNe = {
834
- ne: string | number | boolean;
835
- };
836
-
837
- export type DeploymentStreamOrDeploymentsEq = string | number | boolean;
838
-
839
- /**
840
- * Equal to
841
- */
842
- export type DeploymentStreamOrEq = {
843
- eq: string | number | boolean;
844
- };
845
-
846
- export type DeploymentStreamKnowledgeFilterDeploymentsOr =
847
- | DeploymentStreamOrEq
848
- | DeploymentStreamOrNe
849
- | DeploymentStreamOrGt
850
- | DeploymentStreamOrGte
851
- | DeploymentStreamOrLt
852
- | DeploymentStreamOrLte
853
- | DeploymentStreamOrIn
854
- | DeploymentStreamOrNin;
855
-
856
- /**
857
- * Or
858
- */
859
- export type DeploymentStreamKnowledgeFilterOr = {
860
- or: Array<
861
- {
862
- [k: string]:
863
- | DeploymentStreamOrEq
864
- | DeploymentStreamOrNe
865
- | DeploymentStreamOrGt
866
- | DeploymentStreamOrGte
867
- | DeploymentStreamOrLt
868
- | DeploymentStreamOrLte
869
- | DeploymentStreamOrIn
870
- | DeploymentStreamOrNin;
871
- }
872
- >;
873
- };
874
-
875
- export type DeploymentStreamAndDeploymentsNin = string | number | boolean;
876
-
877
- /**
878
- * Not in
879
- */
880
- export type DeploymentStreamAndNin = {
881
- nin: Array<string | number | boolean>;
882
- };
883
-
884
- export type DeploymentStreamAndDeploymentsIn = string | number | boolean;
885
-
886
- /**
887
- * In
888
- */
889
- export type DeploymentStreamAndIn = {
890
- in: Array<string | number | boolean>;
891
- };
892
-
893
- /**
894
- * Less than or equal to
895
- */
896
- export type DeploymentStreamAndLte = {
897
- lte: number;
898
- };
899
-
900
- /**
901
- * Less than
902
- */
903
- export type DeploymentStreamAndLt = {
904
- lt: number;
905
- };
906
-
907
- /**
908
- * Greater than or equal to
909
- */
910
- export type DeploymentStreamAndGte = {
911
- gte: number;
912
- };
913
-
914
- /**
915
- * Greater than
916
- */
917
- export type DeploymentStreamAndGt = {
918
- gt: number;
919
- };
920
-
921
- export type DeploymentStreamAndDeploymentsNe = string | number | boolean;
922
-
923
- /**
924
- * Not equal to
925
- */
926
- export type DeploymentStreamAndNe = {
927
- ne: string | number | boolean;
928
- };
929
-
930
- export type DeploymentStreamAndDeploymentsEq = string | number | boolean;
931
-
932
- /**
933
- * Equal to
934
- */
935
- export type DeploymentStreamAndEq = {
936
- eq: string | number | boolean;
937
- };
938
-
939
- export type DeploymentStreamKnowledgeFilterDeploymentsAnd =
940
- | DeploymentStreamAndEq
941
- | DeploymentStreamAndNe
942
- | DeploymentStreamAndGt
943
- | DeploymentStreamAndGte
944
- | DeploymentStreamAndLt
945
- | DeploymentStreamAndLte
946
- | DeploymentStreamAndIn
947
- | DeploymentStreamAndNin;
948
-
949
- /**
950
- * And
951
- */
952
- export type DeploymentStreamKnowledgeFilterAnd = {
953
- and: Array<
954
- {
955
- [k: string]:
956
- | DeploymentStreamAndEq
957
- | DeploymentStreamAndNe
958
- | DeploymentStreamAndGt
959
- | DeploymentStreamAndGte
960
- | DeploymentStreamAndLt
961
- | DeploymentStreamAndLte
962
- | DeploymentStreamAndIn
963
- | DeploymentStreamAndNin;
964
- }
965
- >;
966
- };
967
-
968
- export type DeploymentStream1DeploymentsNin = string | number | boolean;
969
-
970
- /**
971
- * Not in
972
- */
973
- export type DeploymentStream1Nin = {
974
- nin: Array<string | number | boolean>;
975
- };
976
-
977
- export type DeploymentStream1DeploymentsIn = string | number | boolean;
978
-
979
- /**
980
- * In
981
- */
982
- export type DeploymentStream1In = {
983
- in: Array<string | number | boolean>;
984
- };
985
-
986
- /**
987
- * Less than or equal to
988
- */
989
- export type OneLte = {
990
- lte: number;
991
- };
992
-
993
- /**
994
- * Less than
995
- */
996
- export type OneLt = {
997
- lt: number;
998
- };
999
-
1000
- /**
1001
- * Greater than or equal to
1002
- */
1003
- export type OneGte = {
1004
- gte: number;
1005
- };
1006
-
1007
- /**
1008
- * Greater than
1009
- */
1010
- export type OneGt = {
1011
- gt: number;
1012
- };
1013
-
1014
- export type DeploymentStream1DeploymentsNe = string | number | boolean;
1015
-
1016
- /**
1017
- * Not equal to
1018
- */
1019
- export type DeploymentStream1Ne = {
1020
- ne: string | number | boolean;
1021
- };
1022
-
1023
- export type DeploymentStream1DeploymentsEq = string | number | boolean;
1024
-
1025
- /**
1026
- * Equal to
1027
- */
1028
- export type DeploymentStream1Eq = {
1029
- eq: string | number | boolean;
1030
- };
1031
-
1032
- export type KnowledgeFilter1 =
1033
- | DeploymentStream1Eq
1034
- | DeploymentStream1Ne
1035
- | OneGt
1036
- | OneGte
1037
- | OneLt
1038
- | OneLte
1039
- | DeploymentStream1In
1040
- | DeploymentStream1Nin;
1041
-
1042
- /**
1043
- * A filter to apply to the knowledge base chunk metadata when using knowledge bases in the deployment.
1044
- */
1045
- export type DeploymentStreamKnowledgeFilter =
1046
- | DeploymentStreamKnowledgeFilterAnd
1047
- | DeploymentStreamKnowledgeFilterOr
1048
- | {
1049
- [k: string]:
1050
- | DeploymentStream1Eq
1051
- | DeploymentStream1Ne
1052
- | OneGt
1053
- | OneGte
1054
- | OneLt
1055
- | OneLte
1056
- | DeploymentStream1In
1057
- | DeploymentStream1Nin;
1058
- };
1059
-
1060
- export type DeploymentStreamRequestBody = {
1061
- /**
1062
- * The deployment key to invoke
1063
- */
1064
- key: string;
1065
- /**
1066
- * Key-value pairs variables to replace in your prompts. If a variable is not provided that is defined in the prompt, the default variables are used.
1067
- */
1068
- inputs?: { [k: string]: any } | undefined;
1069
- /**
1070
- * Key-value pairs that match your data model and fields declared in your deployment routing configuration
1071
- */
1072
- context?: { [k: string]: any } | undefined;
1073
- /**
1074
- * A list of messages to include after the `System` message, but before the `User` and `Assistant` pairs configured in your deployment.
1075
- */
1076
- prefixMessages?:
1077
- | Array<
1078
- | PrefixMessagesSystemMessage
1079
- | PrefixMessagesDeveloperMessage
1080
- | PrefixMessagesUserMessage
1081
- | PrefixMessagesAssistantMessage
1082
- | PrefixMessagesToolMessage
1083
- >
1084
- | undefined;
1085
- /**
1086
- * A list of messages to send to the deployment.
1087
- */
1088
- messages?:
1089
- | Array<
1090
- | DeploymentStreamMessagesSystemMessage
1091
- | DeploymentStreamMessagesDeveloperMessage
1092
- | DeploymentStreamMessagesUserMessage
1093
- | DeploymentStreamMessagesAssistantMessage
1094
- | DeploymentStreamMessagesToolMessage
1095
- >
1096
- | undefined;
1097
- /**
1098
- * Information about the identity making the request. If the identity does not exist, it will be created automatically.
1099
- */
1100
- identity?: components.PublicIdentity | undefined;
1101
- /**
1102
- * A list of file IDs that are associated with the deployment request.
1103
- */
1104
- fileIds?: Array<string> | undefined;
1105
- /**
1106
- * Key-value pairs that you want to attach to the log generated by this request.
1107
- */
1108
- metadata?: { [k: string]: any } | undefined;
1109
- /**
1110
- * Utilized for passing additional parameters to the model provider. Exercise caution when using this feature, as the included parameters will overwrite any parameters specified in the deployment prompt configuration.
1111
- */
1112
- extraParams?: { [k: string]: any } | undefined;
1113
- /**
1114
- * A list of documents from your external knowledge base (e.g., chunks retrieved from your own vector database or RAG pipeline) that provide context for the model response. These documents can be used by evaluators and guardrails to assess the relevance and accuracy of the model output against the provided context.
1115
- */
1116
- documents?: Array<DeploymentStreamDocuments> | undefined;
1117
- invokeOptions?: DeploymentStreamInvokeOptions | undefined;
1118
- thread?: DeploymentStreamThread | undefined;
1119
- /**
1120
- * A filter to apply to the knowledge base chunk metadata when using knowledge bases in the deployment.
1121
- */
1122
- knowledgeFilter?:
1123
- | DeploymentStreamKnowledgeFilterAnd
1124
- | DeploymentStreamKnowledgeFilterOr
1125
- | {
1126
- [k: string]:
1127
- | DeploymentStream1Eq
1128
- | DeploymentStream1Ne
1129
- | OneGt
1130
- | OneGte
1131
- | OneLt
1132
- | OneLte
1133
- | DeploymentStream1In
1134
- | DeploymentStream1Nin;
1135
- }
1136
- | undefined;
1137
- };
1138
-
1139
- /**
1140
- * Indicates the type of model used to generate the response
1141
- */
1142
- export const DeploymentStreamObject = {
1143
- Chat: "chat",
1144
- Completion: "completion",
1145
- Image: "image",
1146
- } as const;
1147
- /**
1148
- * Indicates the type of model used to generate the response
1149
- */
1150
- export type DeploymentStreamObject = ClosedEnum<typeof DeploymentStreamObject>;
1151
-
1152
- /**
1153
- * The provider used to generate the response
1154
- */
1155
- export const DeploymentStreamProvider = {
1156
- Openai: "openai",
1157
- Groq: "groq",
1158
- Cohere: "cohere",
1159
- Azure: "azure",
1160
- Aws: "aws",
1161
- Google: "google",
1162
- GoogleAi: "google-ai",
1163
- Huggingface: "huggingface",
1164
- Togetherai: "togetherai",
1165
- Perplexity: "perplexity",
1166
- Anthropic: "anthropic",
1167
- Leonardoai: "leonardoai",
1168
- Fal: "fal",
1169
- Nvidia: "nvidia",
1170
- Jina: "jina",
1171
- Elevenlabs: "elevenlabs",
1172
- Litellm: "litellm",
1173
- Cerebras: "cerebras",
1174
- Openailike: "openailike",
1175
- Bytedance: "bytedance",
1176
- Mistral: "mistral",
1177
- Deepseek: "deepseek",
1178
- Moonshotai: "moonshotai",
1179
- Zai: "zai",
1180
- Minimax: "minimax",
1181
- Xai: "xai",
1182
- Alibaba: "alibaba",
1183
- Tensorix: "tensorix",
1184
- Scaleway: "scaleway",
1185
- Hcompany: "hcompany",
1186
- Inceptron: "inceptron",
1187
- Wafer: "wafer",
1188
- Poolside: "poolside",
1189
- Tencent: "tencent",
1190
- Nebius: "nebius",
1191
- Fireworks: "fireworks",
1192
- Baseten: "baseten",
1193
- Reson8: "reson8",
1194
- Slack: "slack",
1195
- Orq: "orq",
1196
- } as const;
1197
- /**
1198
- * The provider used to generate the response
1199
- */
1200
- export type DeploymentStreamProvider = ClosedEnum<
1201
- typeof DeploymentStreamProvider
1202
- >;
1203
-
1204
- export type DeploymentStreamTelemetry = {
1205
- /**
1206
- * The trace id for the request that generated this response
1207
- */
1208
- traceId: string;
1209
- /**
1210
- * The span id for the request that generated this response
1211
- */
1212
- spanId: string;
1213
- };
1214
-
1215
- /**
1216
- * Metadata of the retrieved chunk from the knowledge base
1217
- */
1218
- export type DeploymentStreamDeploymentsMetadata = {
1219
- /**
1220
- * Name of the file
1221
- */
1222
- fileName: string;
1223
- /**
1224
- * Page number of the chunk
1225
- */
1226
- pageNumber: number | null;
1227
- /**
1228
- * Type of the file
1229
- */
1230
- fileType: string;
1231
- /**
1232
- * Rerank scores are normalized to be in the range [0, 1]. Scores close to 1 indicate a high relevance to the query, and scores closer to 0 indicate low relevance. It is not accurate to assume a score of 0.9 means the document is 2x more relevant than a document with a score of 0.45
1233
- */
1234
- rerankScore?: number | undefined;
1235
- /**
1236
- * Search scores are normalized to be in the range [0, 1]. Search score is calculated based on `[Cosine Similarity](https://en.wikipedia.org/wiki/Cosine_similarity)` algorithm. Scores close to 1 indicate the document is closer to the query, and scores closer to 0 indicate the document is farther from the query.
1237
- */
1238
- searchScore: number;
1239
- };
1240
-
1241
- export type DeploymentStreamRetrievals = {
1242
- /**
1243
- * Content of the retrieved chunk from the knowledge base
1244
- */
1245
- document: string;
1246
- /**
1247
- * Metadata of the retrieved chunk from the knowledge base
1248
- */
1249
- metadata: DeploymentStreamDeploymentsMetadata;
1250
- };
1251
-
1252
- export type DeploymentStreamPromptTokensDetails = {
1253
- cachedTokens?: number | null | undefined;
1254
- };
1255
-
1256
- export type DeploymentStreamCompletionTokensDetails = {
1257
- reasoningTokens?: number | null | undefined;
1258
- };
1259
-
1260
- /**
1261
- * Usage metrics for the response
1262
- */
1263
- export type DeploymentStreamUsage = {
1264
- totalTokens?: number | undefined;
1265
- promptTokens?: number | undefined;
1266
- completionTokens?: number | undefined;
1267
- promptTokensDetails?: DeploymentStreamPromptTokensDetails | undefined;
1268
- completionTokensDetails?:
1269
- | DeploymentStreamCompletionTokensDetails
1270
- | null
1271
- | undefined;
1272
- };
1273
-
1274
- /**
1275
- * The role of the prompt message
1276
- */
1277
- export const DeploymentStreamMessageDeploymentsResponseRole = {
1278
- System: "system",
1279
- Developer: "developer",
1280
- Assistant: "assistant",
1281
- User: "user",
1282
- Exception: "exception",
1283
- Tool: "tool",
1284
- Prompt: "prompt",
1285
- Correction: "correction",
1286
- ExpectedOutput: "expected_output",
1287
- } as const;
1288
- /**
1289
- * The role of the prompt message
1290
- */
1291
- export type DeploymentStreamMessageDeploymentsResponseRole = ClosedEnum<
1292
- typeof DeploymentStreamMessageDeploymentsResponseRole
1293
- >;
1294
-
1295
- export type DeploymentStreamMessage3 = {
1296
- type: "image";
1297
- /**
1298
- * The role of the prompt message
1299
- */
1300
- role: DeploymentStreamMessageDeploymentsResponseRole;
1301
- url: string;
1302
- };
1303
-
1304
- /**
1305
- * The role of the prompt message
1306
- */
1307
- export const DeploymentStreamMessageDeploymentsRole = {
1308
- System: "system",
1309
- Developer: "developer",
1310
- Assistant: "assistant",
1311
- User: "user",
1312
- Exception: "exception",
1313
- Tool: "tool",
1314
- Prompt: "prompt",
1315
- Correction: "correction",
1316
- ExpectedOutput: "expected_output",
1317
- } as const;
1318
- /**
1319
- * The role of the prompt message
1320
- */
1321
- export type DeploymentStreamMessageDeploymentsRole = ClosedEnum<
1322
- typeof DeploymentStreamMessageDeploymentsRole
1323
- >;
1324
-
1325
- export type DeploymentStreamMessage2 = {
1326
- type: "content";
1327
- /**
1328
- * The role of the prompt message
1329
- */
1330
- role: DeploymentStreamMessageDeploymentsRole;
1331
- content: string | null;
1332
- /**
1333
- * Internal thought process of the model
1334
- */
1335
- reasoning?: string | undefined;
1336
- /**
1337
- * The signature holds a cryptographic token which verifies that the thinking block was generated by the model, and is verified when thinking is part of a multiturn conversation. This value should not be modified and should always be sent to the API when the reasoning is redacted. Currently only supported by `Anthropic`.
1338
- */
1339
- reasoningSignature?: string | undefined;
1340
- /**
1341
- * Occasionally the model's internal reasoning will be flagged by the safety systems of the provider. When this occurs, the provider will encrypt the reasoning. These redacted reasoning is decrypted when passed back to the API, allowing the model to continue its response without losing context.
1342
- */
1343
- redactedReasoning?: string | undefined;
1344
- };
1345
-
1346
- /**
1347
- * The role of the prompt message
1348
- */
1349
- export const DeploymentStreamMessageRole = {
1350
- System: "system",
1351
- Developer: "developer",
1352
- Assistant: "assistant",
1353
- User: "user",
1354
- Exception: "exception",
1355
- Tool: "tool",
1356
- Prompt: "prompt",
1357
- Correction: "correction",
1358
- ExpectedOutput: "expected_output",
1359
- } as const;
1360
- /**
1361
- * The role of the prompt message
1362
- */
1363
- export type DeploymentStreamMessageRole = ClosedEnum<
1364
- typeof DeploymentStreamMessageRole
1365
- >;
1366
-
1367
- export const DeploymentStreamMessageDeploymentsResponse200Type = {
1368
- Function: "function",
1369
- } as const;
1370
- export type DeploymentStreamMessageDeploymentsResponse200Type = ClosedEnum<
1371
- typeof DeploymentStreamMessageDeploymentsResponse200Type
1372
- >;
1373
-
1374
- export type DeploymentStreamMessageFunction = {
1375
- name: string;
1376
- /**
1377
- * JSON string arguments for the functions
1378
- */
1379
- arguments: string;
1380
- };
1381
-
1382
- export type DeploymentStreamMessageToolCalls = {
1383
- id?: string | undefined;
1384
- index?: number | undefined;
1385
- type: DeploymentStreamMessageDeploymentsResponse200Type;
1386
- function: DeploymentStreamMessageFunction;
1387
- };
1388
-
1389
- export type DeploymentStreamMessage1 = {
1390
- type: "tool_calls";
1391
- /**
1392
- * The role of the prompt message
1393
- */
1394
- role: DeploymentStreamMessageRole;
1395
- content?: string | null | undefined;
1396
- toolCalls: Array<DeploymentStreamMessageToolCalls>;
1397
- /**
1398
- * Internal thought process of the model
1399
- */
1400
- reasoning?: string | undefined;
1401
- /**
1402
- * The signature holds a cryptographic token which verifies that the thinking block was generated by the model, and is verified when thinking is part of a multiturn conversation. This value should not be modified and should always be sent to the API when the reasoning is redacted. Currently only supported by `Anthropic`.
1403
- */
1404
- reasoningSignature?: string | undefined;
1405
- /**
1406
- * Occasionally the model's internal reasoning will be flagged by the safety systems of the provider. When this occurs, the provider will encrypt the reasoning. These redacted reasoning is decrypted when passed back to the API, allowing the model to continue its response without losing context.
1407
- */
1408
- redactedReasoning?: string | undefined;
1409
- };
1410
-
1411
- export type DeploymentStreamMessage =
1412
- | DeploymentStreamMessage1
1413
- | DeploymentStreamMessage2
1414
- | DeploymentStreamMessage3;
1415
-
1416
- export type DeploymentStreamChoices = {
1417
- index: number;
1418
- message:
1419
- | DeploymentStreamMessage1
1420
- | DeploymentStreamMessage2
1421
- | DeploymentStreamMessage3;
1422
- finishReason?: string | null | undefined;
1423
- };
1424
-
1425
- export type DeploymentStreamData = {
1426
- /**
1427
- * A unique identifier for the response. Can be used to add metrics to the transaction.
1428
- */
1429
- id: string;
1430
- /**
1431
- * A timestamp indicating when the object was created. Usually in a standardized format like ISO 8601
1432
- */
1433
- created: Date;
1434
- /**
1435
- * Indicates the type of model used to generate the response
1436
- */
1437
- object: DeploymentStreamObject;
1438
- /**
1439
- * The model used to generate the response
1440
- */
1441
- model: string;
1442
- /**
1443
- * The provider used to generate the response
1444
- */
1445
- provider: DeploymentStreamProvider;
1446
- /**
1447
- * Indicates if the response is the final response
1448
- */
1449
- isFinal: boolean;
1450
- /**
1451
- * Indicates integration id used to generate the response
1452
- */
1453
- integrationId?: string | undefined;
1454
- telemetry: DeploymentStreamTelemetry;
1455
- /**
1456
- * A timestamp indicating when the object was finalized. Usually in a standardized format like ISO 8601
1457
- */
1458
- finalized?: Date | undefined;
1459
- /**
1460
- * Provider backed system fingerprint.
1461
- */
1462
- systemFingerprint?: string | null | undefined;
1463
- /**
1464
- * List of documents retrieved from the knowledge base. This property is only available when the `include_retrievals` flag is set to `true` in the invoke settings. When stream is set to true, the `retrievals` property will be returned in the last streamed chunk where the property `is_final` is set to `true`.
1465
- */
1466
- retrievals?: Array<DeploymentStreamRetrievals> | undefined;
1467
- /**
1468
- * Response returned by the model provider. This functionality is only supported when streaming is not used. If streaming is used, the `provider_response` property will be set to `null`.
1469
- */
1470
- providerResponse?: any | undefined;
1471
- /**
1472
- * Usage metrics for the response
1473
- */
1474
- usage?: DeploymentStreamUsage | null | undefined;
1475
- /**
1476
- * A list of choices generated by the model
1477
- */
1478
- choices: Array<DeploymentStreamChoices>;
1479
- };
1480
-
1481
- /**
1482
- * Successful operation
1483
- */
1484
- export type DeploymentStreamResponseBody = {
1485
- data?: DeploymentStreamData | undefined;
1486
- };
1487
-
1488
- /** @internal */
1489
- export type DeploymentStreamContentDeploymentsRequest2$Outbound =
1490
- components.TextContentPartSchema$Outbound;
1491
-
1492
- /** @internal */
1493
- export const DeploymentStreamContentDeploymentsRequest2$outboundSchema:
1494
- z.ZodType<
1495
- DeploymentStreamContentDeploymentsRequest2$Outbound,
1496
- z.ZodTypeDef,
1497
- DeploymentStreamContentDeploymentsRequest2
1498
- > = components.TextContentPartSchema$outboundSchema;
1499
-
1500
- export function deploymentStreamContentDeploymentsRequest2ToJSON(
1501
- deploymentStreamContentDeploymentsRequest2:
1502
- DeploymentStreamContentDeploymentsRequest2,
1503
- ): string {
1504
- return JSON.stringify(
1505
- DeploymentStreamContentDeploymentsRequest2$outboundSchema.parse(
1506
- deploymentStreamContentDeploymentsRequest2,
1507
- ),
1508
- );
1509
- }
1510
-
1511
- /** @internal */
1512
- export type DeploymentStreamPrefixMessagesDeploymentsRequestRequestBody5Content$Outbound =
1513
- | string
1514
- | Array<components.TextContentPartSchema$Outbound>;
1515
-
1516
- /** @internal */
1517
- export const DeploymentStreamPrefixMessagesDeploymentsRequestRequestBody5Content$outboundSchema:
1518
- z.ZodType<
1519
- DeploymentStreamPrefixMessagesDeploymentsRequestRequestBody5Content$Outbound,
1520
- z.ZodTypeDef,
1521
- DeploymentStreamPrefixMessagesDeploymentsRequestRequestBody5Content
1522
- > = z.union([
1523
- z.string(),
1524
- z.array(components.TextContentPartSchema$outboundSchema),
1525
- ]);
1526
-
1527
- export function deploymentStreamPrefixMessagesDeploymentsRequestRequestBody5ContentToJSON(
1528
- deploymentStreamPrefixMessagesDeploymentsRequestRequestBody5Content:
1529
- DeploymentStreamPrefixMessagesDeploymentsRequestRequestBody5Content,
1530
- ): string {
1531
- return JSON.stringify(
1532
- DeploymentStreamPrefixMessagesDeploymentsRequestRequestBody5Content$outboundSchema
1533
- .parse(
1534
- deploymentStreamPrefixMessagesDeploymentsRequestRequestBody5Content,
1535
- ),
1536
- );
1537
- }
1538
-
1539
- /** @internal */
1540
- export const DeploymentStreamPrefixMessagesDeploymentsType$outboundSchema:
1541
- z.ZodNativeEnum<typeof DeploymentStreamPrefixMessagesDeploymentsType> = z
1542
- .nativeEnum(DeploymentStreamPrefixMessagesDeploymentsType);
1543
-
1544
- /** @internal */
1545
- export const DeploymentStreamPrefixMessagesTtl$outboundSchema: z.ZodNativeEnum<
1546
- typeof DeploymentStreamPrefixMessagesTtl
1547
- > = z.nativeEnum(DeploymentStreamPrefixMessagesTtl);
1548
-
1549
- /** @internal */
1550
- export type DeploymentStreamPrefixMessagesCacheControl$Outbound = {
1551
- type: string;
1552
- ttl: string;
1553
- };
1554
-
1555
- /** @internal */
1556
- export const DeploymentStreamPrefixMessagesCacheControl$outboundSchema:
1557
- z.ZodType<
1558
- DeploymentStreamPrefixMessagesCacheControl$Outbound,
1559
- z.ZodTypeDef,
1560
- DeploymentStreamPrefixMessagesCacheControl
1561
- > = z.object({
1562
- type: DeploymentStreamPrefixMessagesDeploymentsType$outboundSchema,
1563
- ttl: DeploymentStreamPrefixMessagesTtl$outboundSchema.default("5m"),
1564
- });
1565
-
1566
- export function deploymentStreamPrefixMessagesCacheControlToJSON(
1567
- deploymentStreamPrefixMessagesCacheControl:
1568
- DeploymentStreamPrefixMessagesCacheControl,
1569
- ): string {
1570
- return JSON.stringify(
1571
- DeploymentStreamPrefixMessagesCacheControl$outboundSchema.parse(
1572
- deploymentStreamPrefixMessagesCacheControl,
1573
- ),
1574
- );
1575
- }
1576
-
1577
- /** @internal */
1578
- export type PrefixMessagesToolMessage$Outbound = {
1579
- role: "tool";
1580
- content: string | Array<components.TextContentPartSchema$Outbound>;
1581
- tool_call_id: string | null;
1582
- cache_control?:
1583
- | DeploymentStreamPrefixMessagesCacheControl$Outbound
1584
- | undefined;
1585
- };
1586
-
1587
- /** @internal */
1588
- export const PrefixMessagesToolMessage$outboundSchema: z.ZodType<
1589
- PrefixMessagesToolMessage$Outbound,
1590
- z.ZodTypeDef,
1591
- PrefixMessagesToolMessage
1592
- > = z.object({
1593
- role: z.literal("tool"),
1594
- content: z.union([
1595
- z.string(),
1596
- z.array(components.TextContentPartSchema$outboundSchema),
1597
- ]),
1598
- toolCallId: z.nullable(z.string()),
1599
- cacheControl: z.lazy(() =>
1600
- DeploymentStreamPrefixMessagesCacheControl$outboundSchema
1601
- ).optional(),
1602
- }).transform((v) => {
1603
- return remap$(v, {
1604
- toolCallId: "tool_call_id",
1605
- cacheControl: "cache_control",
1606
- });
1607
- });
1608
-
1609
- export function prefixMessagesToolMessageToJSON(
1610
- prefixMessagesToolMessage: PrefixMessagesToolMessage,
1611
- ): string {
1612
- return JSON.stringify(
1613
- PrefixMessagesToolMessage$outboundSchema.parse(prefixMessagesToolMessage),
1614
- );
1615
- }
1616
-
1617
- /** @internal */
1618
- export type DeploymentStreamContentDeployments2$Outbound =
1619
- | (components.TextContentPartSchema$Outbound & { type: "text" })
1620
- | components.RefusalPartSchema$Outbound
1621
- | components.ReasoningPartSchema$Outbound
1622
- | components.RedactedReasoningPartSchema$Outbound;
1623
-
1624
- /** @internal */
1625
- export const DeploymentStreamContentDeployments2$outboundSchema: z.ZodType<
1626
- DeploymentStreamContentDeployments2$Outbound,
1627
- z.ZodTypeDef,
1628
- DeploymentStreamContentDeployments2
1629
- > = z.union([
1630
- components.TextContentPartSchema$outboundSchema.and(
1631
- z.object({ type: z.literal("text") }),
1632
- ),
1633
- components.RefusalPartSchema$outboundSchema,
1634
- components.ReasoningPartSchema$outboundSchema,
1635
- components.RedactedReasoningPartSchema$outboundSchema,
1636
- ]);
1637
-
1638
- export function deploymentStreamContentDeployments2ToJSON(
1639
- deploymentStreamContentDeployments2: DeploymentStreamContentDeployments2,
1640
- ): string {
1641
- return JSON.stringify(
1642
- DeploymentStreamContentDeployments2$outboundSchema.parse(
1643
- deploymentStreamContentDeployments2,
1644
- ),
1645
- );
1646
- }
1647
-
1648
- /** @internal */
1649
- export type DeploymentStreamPrefixMessagesDeploymentsRequestRequestBodyContent$Outbound =
1650
- | string
1651
- | Array<
1652
- | (components.TextContentPartSchema$Outbound & { type: "text" })
1653
- | components.RefusalPartSchema$Outbound
1654
- | components.ReasoningPartSchema$Outbound
1655
- | components.RedactedReasoningPartSchema$Outbound
1656
- >;
1657
-
1658
- /** @internal */
1659
- export const DeploymentStreamPrefixMessagesDeploymentsRequestRequestBodyContent$outboundSchema:
1660
- z.ZodType<
1661
- DeploymentStreamPrefixMessagesDeploymentsRequestRequestBodyContent$Outbound,
1662
- z.ZodTypeDef,
1663
- DeploymentStreamPrefixMessagesDeploymentsRequestRequestBodyContent
1664
- > = z.union([
1665
- z.string(),
1666
- z.array(
1667
- z.union([
1668
- components.TextContentPartSchema$outboundSchema.and(
1669
- z.object({ type: z.literal("text") }),
1670
- ),
1671
- components.RefusalPartSchema$outboundSchema,
1672
- components.ReasoningPartSchema$outboundSchema,
1673
- components.RedactedReasoningPartSchema$outboundSchema,
1674
- ]),
1675
- ),
1676
- ]);
1677
-
1678
- export function deploymentStreamPrefixMessagesDeploymentsRequestRequestBodyContentToJSON(
1679
- deploymentStreamPrefixMessagesDeploymentsRequestRequestBodyContent:
1680
- DeploymentStreamPrefixMessagesDeploymentsRequestRequestBodyContent,
1681
- ): string {
1682
- return JSON.stringify(
1683
- DeploymentStreamPrefixMessagesDeploymentsRequestRequestBodyContent$outboundSchema
1684
- .parse(
1685
- deploymentStreamPrefixMessagesDeploymentsRequestRequestBodyContent,
1686
- ),
1687
- );
1688
- }
1689
-
1690
- /** @internal */
1691
- export type PrefixMessagesAudio$Outbound = {
1692
- id: string;
1693
- };
1694
-
1695
- /** @internal */
1696
- export const PrefixMessagesAudio$outboundSchema: z.ZodType<
1697
- PrefixMessagesAudio$Outbound,
1698
- z.ZodTypeDef,
1699
- PrefixMessagesAudio
1700
- > = z.object({
1701
- id: z.string(),
1702
- });
1703
-
1704
- export function prefixMessagesAudioToJSON(
1705
- prefixMessagesAudio: PrefixMessagesAudio,
1706
- ): string {
1707
- return JSON.stringify(
1708
- PrefixMessagesAudio$outboundSchema.parse(prefixMessagesAudio),
1709
- );
1710
- }
1711
-
1712
- /** @internal */
1713
- export const DeploymentStreamPrefixMessagesType$outboundSchema: z.ZodNativeEnum<
1714
- typeof DeploymentStreamPrefixMessagesType
1715
- > = z.nativeEnum(DeploymentStreamPrefixMessagesType);
1716
-
1717
- /** @internal */
1718
- export type PrefixMessagesFunction$Outbound = {
1719
- name?: string | undefined;
1720
- arguments?: string | undefined;
1721
- };
1722
-
1723
- /** @internal */
1724
- export const PrefixMessagesFunction$outboundSchema: z.ZodType<
1725
- PrefixMessagesFunction$Outbound,
1726
- z.ZodTypeDef,
1727
- PrefixMessagesFunction
1728
- > = z.object({
1729
- name: z.string().optional(),
1730
- arguments: z.string().optional(),
1731
- });
1732
-
1733
- export function prefixMessagesFunctionToJSON(
1734
- prefixMessagesFunction: PrefixMessagesFunction,
1735
- ): string {
1736
- return JSON.stringify(
1737
- PrefixMessagesFunction$outboundSchema.parse(prefixMessagesFunction),
1738
- );
1739
- }
1740
-
1741
- /** @internal */
1742
- export type PrefixMessagesToolCalls$Outbound = {
1743
- id: string;
1744
- type: string;
1745
- function: PrefixMessagesFunction$Outbound;
1746
- thought_signature?: string | undefined;
1747
- };
1748
-
1749
- /** @internal */
1750
- export const PrefixMessagesToolCalls$outboundSchema: z.ZodType<
1751
- PrefixMessagesToolCalls$Outbound,
1752
- z.ZodTypeDef,
1753
- PrefixMessagesToolCalls
1754
- > = z.object({
1755
- id: z.string(),
1756
- type: DeploymentStreamPrefixMessagesType$outboundSchema,
1757
- function: z.lazy(() => PrefixMessagesFunction$outboundSchema),
1758
- thoughtSignature: z.string().optional(),
1759
- }).transform((v) => {
1760
- return remap$(v, {
1761
- thoughtSignature: "thought_signature",
1762
- });
1763
- });
1764
-
1765
- export function prefixMessagesToolCallsToJSON(
1766
- prefixMessagesToolCalls: PrefixMessagesToolCalls,
1767
- ): string {
1768
- return JSON.stringify(
1769
- PrefixMessagesToolCalls$outboundSchema.parse(prefixMessagesToolCalls),
1770
- );
1771
- }
1772
-
1773
- /** @internal */
1774
- export type PrefixMessagesAssistantMessage$Outbound = {
1775
- reasoning_content?: string | undefined;
1776
- content?:
1777
- | string
1778
- | Array<
1779
- | (components.TextContentPartSchema$Outbound & { type: "text" })
1780
- | components.RefusalPartSchema$Outbound
1781
- | components.ReasoningPartSchema$Outbound
1782
- | components.RedactedReasoningPartSchema$Outbound
1783
- >
1784
- | null
1785
- | undefined;
1786
- refusal?: string | null | undefined;
1787
- role: "assistant";
1788
- name?: string | undefined;
1789
- audio?: PrefixMessagesAudio$Outbound | null | undefined;
1790
- tool_calls?: Array<PrefixMessagesToolCalls$Outbound> | undefined;
1791
- };
1792
-
1793
- /** @internal */
1794
- export const PrefixMessagesAssistantMessage$outboundSchema: z.ZodType<
1795
- PrefixMessagesAssistantMessage$Outbound,
1796
- z.ZodTypeDef,
1797
- PrefixMessagesAssistantMessage
1798
- > = z.object({
1799
- reasoningContent: z.string().optional(),
1800
- content: z.nullable(
1801
- z.union([
1802
- z.string(),
1803
- z.array(
1804
- z.union([
1805
- components.TextContentPartSchema$outboundSchema.and(
1806
- z.object({ type: z.literal("text") }),
1807
- ),
1808
- components.RefusalPartSchema$outboundSchema,
1809
- components.ReasoningPartSchema$outboundSchema,
1810
- components.RedactedReasoningPartSchema$outboundSchema,
1811
- ]),
1812
- ),
1813
- ]),
1814
- ).optional(),
1815
- refusal: z.nullable(z.string()).optional(),
1816
- role: z.literal("assistant"),
1817
- name: z.string().optional(),
1818
- audio: z.nullable(z.lazy(() => PrefixMessagesAudio$outboundSchema))
1819
- .optional(),
1820
- toolCalls: z.array(z.lazy(() => PrefixMessagesToolCalls$outboundSchema))
1821
- .optional(),
1822
- }).transform((v) => {
1823
- return remap$(v, {
1824
- reasoningContent: "reasoning_content",
1825
- toolCalls: "tool_calls",
1826
- });
1827
- });
1828
-
1829
- export function prefixMessagesAssistantMessageToJSON(
1830
- prefixMessagesAssistantMessage: PrefixMessagesAssistantMessage,
1831
- ): string {
1832
- return JSON.stringify(
1833
- PrefixMessagesAssistantMessage$outboundSchema.parse(
1834
- prefixMessagesAssistantMessage,
1835
- ),
1836
- );
1837
- }
1838
-
1839
- /** @internal */
1840
- export const DeploymentStream2DeploymentsType$outboundSchema: z.ZodNativeEnum<
1841
- typeof DeploymentStream2DeploymentsType
1842
- > = z.nativeEnum(DeploymentStream2DeploymentsType);
1843
-
1844
- /** @internal */
1845
- export const DeploymentStream2Ttl$outboundSchema: z.ZodNativeEnum<
1846
- typeof DeploymentStream2Ttl
1847
- > = z.nativeEnum(DeploymentStream2Ttl);
1848
-
1849
- /** @internal */
1850
- export type DeploymentStream2CacheControl$Outbound = {
1851
- type: string;
1852
- ttl: string;
1853
- };
1854
-
1855
- /** @internal */
1856
- export const DeploymentStream2CacheControl$outboundSchema: z.ZodType<
1857
- DeploymentStream2CacheControl$Outbound,
1858
- z.ZodTypeDef,
1859
- DeploymentStream2CacheControl
1860
- > = z.object({
1861
- type: DeploymentStream2DeploymentsType$outboundSchema,
1862
- ttl: DeploymentStream2Ttl$outboundSchema.default("5m"),
1863
- });
1864
-
1865
- export function deploymentStream2CacheControlToJSON(
1866
- deploymentStream2CacheControl: DeploymentStream2CacheControl,
1867
- ): string {
1868
- return JSON.stringify(
1869
- DeploymentStream2CacheControl$outboundSchema.parse(
1870
- deploymentStream2CacheControl,
1871
- ),
1872
- );
1873
- }
1874
-
1875
- /** @internal */
1876
- export type DeploymentStream24$Outbound = {
1877
- type: "file";
1878
- cache_control?: DeploymentStream2CacheControl$Outbound | undefined;
1879
- file: components.FileContentPartSchema$Outbound;
1880
- };
1881
-
1882
- /** @internal */
1883
- export const DeploymentStream24$outboundSchema: z.ZodType<
1884
- DeploymentStream24$Outbound,
1885
- z.ZodTypeDef,
1886
- DeploymentStream24
1887
- > = z.object({
1888
- type: z.literal("file"),
1889
- cacheControl: z.lazy(() => DeploymentStream2CacheControl$outboundSchema)
1890
- .optional(),
1891
- file: components.FileContentPartSchema$outboundSchema,
1892
- }).transform((v) => {
1893
- return remap$(v, {
1894
- cacheControl: "cache_control",
1895
- });
1896
- });
1897
-
1898
- export function deploymentStream24ToJSON(
1899
- deploymentStream24: DeploymentStream24,
1900
- ): string {
1901
- return JSON.stringify(
1902
- DeploymentStream24$outboundSchema.parse(deploymentStream24),
1903
- );
1904
- }
1905
-
1906
- /** @internal */
1907
- export type DeploymentStreamContent2$Outbound =
1908
- | (components.TextContentPartSchema$Outbound & { type: "text" })
1909
- | components.ImageContentPartSchema$Outbound
1910
- | components.AudioContentPartSchema$Outbound
1911
- | DeploymentStream24$Outbound;
1912
-
1913
- /** @internal */
1914
- export const DeploymentStreamContent2$outboundSchema: z.ZodType<
1915
- DeploymentStreamContent2$Outbound,
1916
- z.ZodTypeDef,
1917
- DeploymentStreamContent2
1918
- > = z.union([
1919
- components.TextContentPartSchema$outboundSchema.and(
1920
- z.object({ type: z.literal("text") }),
1921
- ),
1922
- components.ImageContentPartSchema$outboundSchema,
1923
- components.AudioContentPartSchema$outboundSchema,
1924
- z.lazy(() => DeploymentStream24$outboundSchema),
1925
- ]);
1926
-
1927
- export function deploymentStreamContent2ToJSON(
1928
- deploymentStreamContent2: DeploymentStreamContent2,
1929
- ): string {
1930
- return JSON.stringify(
1931
- DeploymentStreamContent2$outboundSchema.parse(deploymentStreamContent2),
1932
- );
1933
- }
1934
-
1935
- /** @internal */
1936
- export type DeploymentStreamPrefixMessagesDeploymentsRequestContent$Outbound =
1937
- | string
1938
- | Array<
1939
- | (components.TextContentPartSchema$Outbound & { type: "text" })
1940
- | components.ImageContentPartSchema$Outbound
1941
- | components.AudioContentPartSchema$Outbound
1942
- | DeploymentStream24$Outbound
1943
- >;
1944
-
1945
- /** @internal */
1946
- export const DeploymentStreamPrefixMessagesDeploymentsRequestContent$outboundSchema:
1947
- z.ZodType<
1948
- DeploymentStreamPrefixMessagesDeploymentsRequestContent$Outbound,
1949
- z.ZodTypeDef,
1950
- DeploymentStreamPrefixMessagesDeploymentsRequestContent
1951
- > = z.union([
1952
- z.string(),
1953
- z.array(
1954
- z.union([
1955
- components.TextContentPartSchema$outboundSchema.and(
1956
- z.object({ type: z.literal("text") }),
1957
- ),
1958
- components.ImageContentPartSchema$outboundSchema,
1959
- components.AudioContentPartSchema$outboundSchema,
1960
- z.lazy(() => DeploymentStream24$outboundSchema),
1961
- ]),
1962
- ),
1963
- ]);
1964
-
1965
- export function deploymentStreamPrefixMessagesDeploymentsRequestContentToJSON(
1966
- deploymentStreamPrefixMessagesDeploymentsRequestContent:
1967
- DeploymentStreamPrefixMessagesDeploymentsRequestContent,
1968
- ): string {
1969
- return JSON.stringify(
1970
- DeploymentStreamPrefixMessagesDeploymentsRequestContent$outboundSchema
1971
- .parse(deploymentStreamPrefixMessagesDeploymentsRequestContent),
1972
- );
1973
- }
1974
-
1975
- /** @internal */
1976
- export type PrefixMessagesUserMessage$Outbound = {
1977
- role: "user";
1978
- name?: string | undefined;
1979
- content:
1980
- | string
1981
- | Array<
1982
- | (components.TextContentPartSchema$Outbound & { type: "text" })
1983
- | components.ImageContentPartSchema$Outbound
1984
- | components.AudioContentPartSchema$Outbound
1985
- | DeploymentStream24$Outbound
1986
- >;
1987
- };
1988
-
1989
- /** @internal */
1990
- export const PrefixMessagesUserMessage$outboundSchema: z.ZodType<
1991
- PrefixMessagesUserMessage$Outbound,
1992
- z.ZodTypeDef,
1993
- PrefixMessagesUserMessage
1994
- > = z.object({
1995
- role: z.literal("user"),
1996
- name: z.string().optional(),
1997
- content: z.union([
1998
- z.string(),
1999
- z.array(
2000
- z.union([
2001
- components.TextContentPartSchema$outboundSchema.and(
2002
- z.object({ type: z.literal("text") }),
2003
- ),
2004
- components.ImageContentPartSchema$outboundSchema,
2005
- components.AudioContentPartSchema$outboundSchema,
2006
- z.lazy(() => DeploymentStream24$outboundSchema),
2007
- ]),
2008
- ),
2009
- ]),
2010
- });
2011
-
2012
- export function prefixMessagesUserMessageToJSON(
2013
- prefixMessagesUserMessage: PrefixMessagesUserMessage,
2014
- ): string {
2015
- return JSON.stringify(
2016
- PrefixMessagesUserMessage$outboundSchema.parse(prefixMessagesUserMessage),
2017
- );
2018
- }
2019
-
2020
- /** @internal */
2021
- export type DeploymentStreamPrefixMessagesDeploymentsContent$Outbound =
2022
- | string
2023
- | Array<components.TextContentPartSchema$Outbound>;
2024
-
2025
- /** @internal */
2026
- export const DeploymentStreamPrefixMessagesDeploymentsContent$outboundSchema:
2027
- z.ZodType<
2028
- DeploymentStreamPrefixMessagesDeploymentsContent$Outbound,
2029
- z.ZodTypeDef,
2030
- DeploymentStreamPrefixMessagesDeploymentsContent
2031
- > = z.union([
2032
- z.string(),
2033
- z.array(components.TextContentPartSchema$outboundSchema),
2034
- ]);
2035
-
2036
- export function deploymentStreamPrefixMessagesDeploymentsContentToJSON(
2037
- deploymentStreamPrefixMessagesDeploymentsContent:
2038
- DeploymentStreamPrefixMessagesDeploymentsContent,
2039
- ): string {
2040
- return JSON.stringify(
2041
- DeploymentStreamPrefixMessagesDeploymentsContent$outboundSchema.parse(
2042
- deploymentStreamPrefixMessagesDeploymentsContent,
2043
- ),
2044
- );
2045
- }
2046
-
2047
- /** @internal */
2048
- export type PrefixMessagesDeveloperMessage$Outbound = {
2049
- role: "developer";
2050
- content: string | Array<components.TextContentPartSchema$Outbound>;
2051
- name?: string | undefined;
2052
- };
2053
-
2054
- /** @internal */
2055
- export const PrefixMessagesDeveloperMessage$outboundSchema: z.ZodType<
2056
- PrefixMessagesDeveloperMessage$Outbound,
2057
- z.ZodTypeDef,
2058
- PrefixMessagesDeveloperMessage
2059
- > = z.object({
2060
- role: z.literal("developer"),
2061
- content: z.union([
2062
- z.string(),
2063
- z.array(components.TextContentPartSchema$outboundSchema),
2064
- ]),
2065
- name: z.string().optional(),
2066
- });
2067
-
2068
- export function prefixMessagesDeveloperMessageToJSON(
2069
- prefixMessagesDeveloperMessage: PrefixMessagesDeveloperMessage,
2070
- ): string {
2071
- return JSON.stringify(
2072
- PrefixMessagesDeveloperMessage$outboundSchema.parse(
2073
- prefixMessagesDeveloperMessage,
2074
- ),
2075
- );
2076
- }
2077
-
2078
- /** @internal */
2079
- export type DeploymentStreamPrefixMessagesContent$Outbound =
2080
- | string
2081
- | Array<components.TextContentPartSchema$Outbound>;
2082
-
2083
- /** @internal */
2084
- export const DeploymentStreamPrefixMessagesContent$outboundSchema: z.ZodType<
2085
- DeploymentStreamPrefixMessagesContent$Outbound,
2086
- z.ZodTypeDef,
2087
- DeploymentStreamPrefixMessagesContent
2088
- > = z.union([
2089
- z.string(),
2090
- z.array(components.TextContentPartSchema$outboundSchema),
2091
- ]);
2092
-
2093
- export function deploymentStreamPrefixMessagesContentToJSON(
2094
- deploymentStreamPrefixMessagesContent: DeploymentStreamPrefixMessagesContent,
2095
- ): string {
2096
- return JSON.stringify(
2097
- DeploymentStreamPrefixMessagesContent$outboundSchema.parse(
2098
- deploymentStreamPrefixMessagesContent,
2099
- ),
2100
- );
2101
- }
2102
-
2103
- /** @internal */
2104
- export type PrefixMessagesSystemMessage$Outbound = {
2105
- role: "system";
2106
- content: string | Array<components.TextContentPartSchema$Outbound>;
2107
- name?: string | undefined;
2108
- };
2109
-
2110
- /** @internal */
2111
- export const PrefixMessagesSystemMessage$outboundSchema: z.ZodType<
2112
- PrefixMessagesSystemMessage$Outbound,
2113
- z.ZodTypeDef,
2114
- PrefixMessagesSystemMessage
2115
- > = z.object({
2116
- role: z.literal("system"),
2117
- content: z.union([
2118
- z.string(),
2119
- z.array(components.TextContentPartSchema$outboundSchema),
2120
- ]),
2121
- name: z.string().optional(),
2122
- });
2123
-
2124
- export function prefixMessagesSystemMessageToJSON(
2125
- prefixMessagesSystemMessage: PrefixMessagesSystemMessage,
2126
- ): string {
2127
- return JSON.stringify(
2128
- PrefixMessagesSystemMessage$outboundSchema.parse(
2129
- prefixMessagesSystemMessage,
2130
- ),
2131
- );
2132
- }
2133
-
2134
- /** @internal */
2135
- export type DeploymentStreamPrefixMessages$Outbound =
2136
- | PrefixMessagesSystemMessage$Outbound
2137
- | PrefixMessagesDeveloperMessage$Outbound
2138
- | PrefixMessagesUserMessage$Outbound
2139
- | PrefixMessagesAssistantMessage$Outbound
2140
- | PrefixMessagesToolMessage$Outbound;
2141
-
2142
- /** @internal */
2143
- export const DeploymentStreamPrefixMessages$outboundSchema: z.ZodType<
2144
- DeploymentStreamPrefixMessages$Outbound,
2145
- z.ZodTypeDef,
2146
- DeploymentStreamPrefixMessages
2147
- > = z.union([
2148
- z.lazy(() => PrefixMessagesSystemMessage$outboundSchema),
2149
- z.lazy(() => PrefixMessagesDeveloperMessage$outboundSchema),
2150
- z.lazy(() => PrefixMessagesUserMessage$outboundSchema),
2151
- z.lazy(() => PrefixMessagesAssistantMessage$outboundSchema),
2152
- z.lazy(() => PrefixMessagesToolMessage$outboundSchema),
2153
- ]);
2154
-
2155
- export function deploymentStreamPrefixMessagesToJSON(
2156
- deploymentStreamPrefixMessages: DeploymentStreamPrefixMessages,
2157
- ): string {
2158
- return JSON.stringify(
2159
- DeploymentStreamPrefixMessages$outboundSchema.parse(
2160
- deploymentStreamPrefixMessages,
2161
- ),
2162
- );
2163
- }
2164
-
2165
- /** @internal */
2166
- export type DeploymentStreamContentDeploymentsRequestRequestBodyMessages52$Outbound =
2167
- components.TextContentPartSchema$Outbound;
2168
-
2169
- /** @internal */
2170
- export const DeploymentStreamContentDeploymentsRequestRequestBodyMessages52$outboundSchema:
2171
- z.ZodType<
2172
- DeploymentStreamContentDeploymentsRequestRequestBodyMessages52$Outbound,
2173
- z.ZodTypeDef,
2174
- DeploymentStreamContentDeploymentsRequestRequestBodyMessages52
2175
- > = components.TextContentPartSchema$outboundSchema;
2176
-
2177
- export function deploymentStreamContentDeploymentsRequestRequestBodyMessages52ToJSON(
2178
- deploymentStreamContentDeploymentsRequestRequestBodyMessages52:
2179
- DeploymentStreamContentDeploymentsRequestRequestBodyMessages52,
2180
- ): string {
2181
- return JSON.stringify(
2182
- DeploymentStreamContentDeploymentsRequestRequestBodyMessages52$outboundSchema
2183
- .parse(deploymentStreamContentDeploymentsRequestRequestBodyMessages52),
2184
- );
2185
- }
2186
-
2187
- /** @internal */
2188
- export type DeploymentStreamMessagesDeploymentsRequestRequestBody5Content$Outbound =
2189
- | string
2190
- | Array<components.TextContentPartSchema$Outbound>;
2191
-
2192
- /** @internal */
2193
- export const DeploymentStreamMessagesDeploymentsRequestRequestBody5Content$outboundSchema:
2194
- z.ZodType<
2195
- DeploymentStreamMessagesDeploymentsRequestRequestBody5Content$Outbound,
2196
- z.ZodTypeDef,
2197
- DeploymentStreamMessagesDeploymentsRequestRequestBody5Content
2198
- > = z.union([
2199
- z.string(),
2200
- z.array(components.TextContentPartSchema$outboundSchema),
2201
- ]);
2202
-
2203
- export function deploymentStreamMessagesDeploymentsRequestRequestBody5ContentToJSON(
2204
- deploymentStreamMessagesDeploymentsRequestRequestBody5Content:
2205
- DeploymentStreamMessagesDeploymentsRequestRequestBody5Content,
2206
- ): string {
2207
- return JSON.stringify(
2208
- DeploymentStreamMessagesDeploymentsRequestRequestBody5Content$outboundSchema
2209
- .parse(deploymentStreamMessagesDeploymentsRequestRequestBody5Content),
2210
- );
2211
- }
2212
-
2213
- /** @internal */
2214
- export const DeploymentStreamMessagesDeploymentsType$outboundSchema:
2215
- z.ZodNativeEnum<typeof DeploymentStreamMessagesDeploymentsType> = z
2216
- .nativeEnum(DeploymentStreamMessagesDeploymentsType);
2217
-
2218
- /** @internal */
2219
- export const DeploymentStreamMessagesTtl$outboundSchema: z.ZodNativeEnum<
2220
- typeof DeploymentStreamMessagesTtl
2221
- > = z.nativeEnum(DeploymentStreamMessagesTtl);
2222
-
2223
- /** @internal */
2224
- export type DeploymentStreamMessagesCacheControl$Outbound = {
2225
- type: string;
2226
- ttl: string;
2227
- };
2228
-
2229
- /** @internal */
2230
- export const DeploymentStreamMessagesCacheControl$outboundSchema: z.ZodType<
2231
- DeploymentStreamMessagesCacheControl$Outbound,
2232
- z.ZodTypeDef,
2233
- DeploymentStreamMessagesCacheControl
2234
- > = z.object({
2235
- type: DeploymentStreamMessagesDeploymentsType$outboundSchema,
2236
- ttl: DeploymentStreamMessagesTtl$outboundSchema.default("5m"),
2237
- });
2238
-
2239
- export function deploymentStreamMessagesCacheControlToJSON(
2240
- deploymentStreamMessagesCacheControl: DeploymentStreamMessagesCacheControl,
2241
- ): string {
2242
- return JSON.stringify(
2243
- DeploymentStreamMessagesCacheControl$outboundSchema.parse(
2244
- deploymentStreamMessagesCacheControl,
2245
- ),
2246
- );
2247
- }
2248
-
2249
- /** @internal */
2250
- export type DeploymentStreamMessagesToolMessage$Outbound = {
2251
- role: "tool";
2252
- content: string | Array<components.TextContentPartSchema$Outbound>;
2253
- tool_call_id: string | null;
2254
- cache_control?: DeploymentStreamMessagesCacheControl$Outbound | undefined;
2255
- };
2256
-
2257
- /** @internal */
2258
- export const DeploymentStreamMessagesToolMessage$outboundSchema: z.ZodType<
2259
- DeploymentStreamMessagesToolMessage$Outbound,
2260
- z.ZodTypeDef,
2261
- DeploymentStreamMessagesToolMessage
2262
- > = z.object({
2263
- role: z.literal("tool"),
2264
- content: z.union([
2265
- z.string(),
2266
- z.array(components.TextContentPartSchema$outboundSchema),
2267
- ]),
2268
- toolCallId: z.nullable(z.string()),
2269
- cacheControl: z.lazy(() =>
2270
- DeploymentStreamMessagesCacheControl$outboundSchema
2271
- ).optional(),
2272
- }).transform((v) => {
2273
- return remap$(v, {
2274
- toolCallId: "tool_call_id",
2275
- cacheControl: "cache_control",
2276
- });
2277
- });
2278
-
2279
- export function deploymentStreamMessagesToolMessageToJSON(
2280
- deploymentStreamMessagesToolMessage: DeploymentStreamMessagesToolMessage,
2281
- ): string {
2282
- return JSON.stringify(
2283
- DeploymentStreamMessagesToolMessage$outboundSchema.parse(
2284
- deploymentStreamMessagesToolMessage,
2285
- ),
2286
- );
2287
- }
2288
-
2289
- /** @internal */
2290
- export type DeploymentStreamContentDeploymentsRequestRequestBodyMessages2$Outbound =
2291
- | (components.TextContentPartSchema$Outbound & { type: "text" })
2292
- | components.RefusalPartSchema$Outbound
2293
- | components.ReasoningPartSchema$Outbound
2294
- | components.RedactedReasoningPartSchema$Outbound;
2295
-
2296
- /** @internal */
2297
- export const DeploymentStreamContentDeploymentsRequestRequestBodyMessages2$outboundSchema:
2298
- z.ZodType<
2299
- DeploymentStreamContentDeploymentsRequestRequestBodyMessages2$Outbound,
2300
- z.ZodTypeDef,
2301
- DeploymentStreamContentDeploymentsRequestRequestBodyMessages2
2302
- > = z.union([
2303
- components.TextContentPartSchema$outboundSchema.and(
2304
- z.object({ type: z.literal("text") }),
2305
- ),
2306
- components.RefusalPartSchema$outboundSchema,
2307
- components.ReasoningPartSchema$outboundSchema,
2308
- components.RedactedReasoningPartSchema$outboundSchema,
2309
- ]);
2310
-
2311
- export function deploymentStreamContentDeploymentsRequestRequestBodyMessages2ToJSON(
2312
- deploymentStreamContentDeploymentsRequestRequestBodyMessages2:
2313
- DeploymentStreamContentDeploymentsRequestRequestBodyMessages2,
2314
- ): string {
2315
- return JSON.stringify(
2316
- DeploymentStreamContentDeploymentsRequestRequestBodyMessages2$outboundSchema
2317
- .parse(deploymentStreamContentDeploymentsRequestRequestBodyMessages2),
2318
- );
2319
- }
2320
-
2321
- /** @internal */
2322
- export type DeploymentStreamMessagesDeploymentsRequestRequestBodyContent$Outbound =
2323
- | string
2324
- | Array<
2325
- | (components.TextContentPartSchema$Outbound & { type: "text" })
2326
- | components.RefusalPartSchema$Outbound
2327
- | components.ReasoningPartSchema$Outbound
2328
- | components.RedactedReasoningPartSchema$Outbound
2329
- >;
2330
-
2331
- /** @internal */
2332
- export const DeploymentStreamMessagesDeploymentsRequestRequestBodyContent$outboundSchema:
2333
- z.ZodType<
2334
- DeploymentStreamMessagesDeploymentsRequestRequestBodyContent$Outbound,
2335
- z.ZodTypeDef,
2336
- DeploymentStreamMessagesDeploymentsRequestRequestBodyContent
2337
- > = z.union([
2338
- z.string(),
2339
- z.array(
2340
- z.union([
2341
- components.TextContentPartSchema$outboundSchema.and(
2342
- z.object({ type: z.literal("text") }),
2343
- ),
2344
- components.RefusalPartSchema$outboundSchema,
2345
- components.ReasoningPartSchema$outboundSchema,
2346
- components.RedactedReasoningPartSchema$outboundSchema,
2347
- ]),
2348
- ),
2349
- ]);
2350
-
2351
- export function deploymentStreamMessagesDeploymentsRequestRequestBodyContentToJSON(
2352
- deploymentStreamMessagesDeploymentsRequestRequestBodyContent:
2353
- DeploymentStreamMessagesDeploymentsRequestRequestBodyContent,
2354
- ): string {
2355
- return JSON.stringify(
2356
- DeploymentStreamMessagesDeploymentsRequestRequestBodyContent$outboundSchema
2357
- .parse(deploymentStreamMessagesDeploymentsRequestRequestBodyContent),
2358
- );
2359
- }
2360
-
2361
- /** @internal */
2362
- export type DeploymentStreamMessagesAudio$Outbound = {
2363
- id: string;
2364
- };
2365
-
2366
- /** @internal */
2367
- export const DeploymentStreamMessagesAudio$outboundSchema: z.ZodType<
2368
- DeploymentStreamMessagesAudio$Outbound,
2369
- z.ZodTypeDef,
2370
- DeploymentStreamMessagesAudio
2371
- > = z.object({
2372
- id: z.string(),
2373
- });
2374
-
2375
- export function deploymentStreamMessagesAudioToJSON(
2376
- deploymentStreamMessagesAudio: DeploymentStreamMessagesAudio,
2377
- ): string {
2378
- return JSON.stringify(
2379
- DeploymentStreamMessagesAudio$outboundSchema.parse(
2380
- deploymentStreamMessagesAudio,
2381
- ),
2382
- );
2383
- }
2384
-
2385
- /** @internal */
2386
- export const DeploymentStreamMessagesType$outboundSchema: z.ZodNativeEnum<
2387
- typeof DeploymentStreamMessagesType
2388
- > = z.nativeEnum(DeploymentStreamMessagesType);
2389
-
2390
- /** @internal */
2391
- export type DeploymentStreamMessagesFunction$Outbound = {
2392
- name?: string | undefined;
2393
- arguments?: string | undefined;
2394
- };
2395
-
2396
- /** @internal */
2397
- export const DeploymentStreamMessagesFunction$outboundSchema: z.ZodType<
2398
- DeploymentStreamMessagesFunction$Outbound,
2399
- z.ZodTypeDef,
2400
- DeploymentStreamMessagesFunction
2401
- > = z.object({
2402
- name: z.string().optional(),
2403
- arguments: z.string().optional(),
2404
- });
2405
-
2406
- export function deploymentStreamMessagesFunctionToJSON(
2407
- deploymentStreamMessagesFunction: DeploymentStreamMessagesFunction,
2408
- ): string {
2409
- return JSON.stringify(
2410
- DeploymentStreamMessagesFunction$outboundSchema.parse(
2411
- deploymentStreamMessagesFunction,
2412
- ),
2413
- );
2414
- }
2415
-
2416
- /** @internal */
2417
- export type DeploymentStreamMessagesToolCalls$Outbound = {
2418
- id: string;
2419
- type: string;
2420
- function: DeploymentStreamMessagesFunction$Outbound;
2421
- thought_signature?: string | undefined;
2422
- };
2423
-
2424
- /** @internal */
2425
- export const DeploymentStreamMessagesToolCalls$outboundSchema: z.ZodType<
2426
- DeploymentStreamMessagesToolCalls$Outbound,
2427
- z.ZodTypeDef,
2428
- DeploymentStreamMessagesToolCalls
2429
- > = z.object({
2430
- id: z.string(),
2431
- type: DeploymentStreamMessagesType$outboundSchema,
2432
- function: z.lazy(() => DeploymentStreamMessagesFunction$outboundSchema),
2433
- thoughtSignature: z.string().optional(),
2434
- }).transform((v) => {
2435
- return remap$(v, {
2436
- thoughtSignature: "thought_signature",
2437
- });
2438
- });
2439
-
2440
- export function deploymentStreamMessagesToolCallsToJSON(
2441
- deploymentStreamMessagesToolCalls: DeploymentStreamMessagesToolCalls,
2442
- ): string {
2443
- return JSON.stringify(
2444
- DeploymentStreamMessagesToolCalls$outboundSchema.parse(
2445
- deploymentStreamMessagesToolCalls,
2446
- ),
2447
- );
2448
- }
2449
-
2450
- /** @internal */
2451
- export type DeploymentStreamMessagesAssistantMessage$Outbound = {
2452
- reasoning_content?: string | undefined;
2453
- content?:
2454
- | string
2455
- | Array<
2456
- | (components.TextContentPartSchema$Outbound & { type: "text" })
2457
- | components.RefusalPartSchema$Outbound
2458
- | components.ReasoningPartSchema$Outbound
2459
- | components.RedactedReasoningPartSchema$Outbound
2460
- >
2461
- | null
2462
- | undefined;
2463
- refusal?: string | null | undefined;
2464
- role: "assistant";
2465
- name?: string | undefined;
2466
- audio?: DeploymentStreamMessagesAudio$Outbound | null | undefined;
2467
- tool_calls?: Array<DeploymentStreamMessagesToolCalls$Outbound> | undefined;
2468
- };
2469
-
2470
- /** @internal */
2471
- export const DeploymentStreamMessagesAssistantMessage$outboundSchema: z.ZodType<
2472
- DeploymentStreamMessagesAssistantMessage$Outbound,
2473
- z.ZodTypeDef,
2474
- DeploymentStreamMessagesAssistantMessage
2475
- > = z.object({
2476
- reasoningContent: z.string().optional(),
2477
- content: z.nullable(
2478
- z.union([
2479
- z.string(),
2480
- z.array(
2481
- z.union([
2482
- components.TextContentPartSchema$outboundSchema.and(
2483
- z.object({ type: z.literal("text") }),
2484
- ),
2485
- components.RefusalPartSchema$outboundSchema,
2486
- components.ReasoningPartSchema$outboundSchema,
2487
- components.RedactedReasoningPartSchema$outboundSchema,
2488
- ]),
2489
- ),
2490
- ]),
2491
- ).optional(),
2492
- refusal: z.nullable(z.string()).optional(),
2493
- role: z.literal("assistant"),
2494
- name: z.string().optional(),
2495
- audio: z.nullable(z.lazy(() => DeploymentStreamMessagesAudio$outboundSchema))
2496
- .optional(),
2497
- toolCalls: z.array(
2498
- z.lazy(() => DeploymentStreamMessagesToolCalls$outboundSchema),
2499
- ).optional(),
2500
- }).transform((v) => {
2501
- return remap$(v, {
2502
- reasoningContent: "reasoning_content",
2503
- toolCalls: "tool_calls",
2504
- });
2505
- });
2506
-
2507
- export function deploymentStreamMessagesAssistantMessageToJSON(
2508
- deploymentStreamMessagesAssistantMessage:
2509
- DeploymentStreamMessagesAssistantMessage,
2510
- ): string {
2511
- return JSON.stringify(
2512
- DeploymentStreamMessagesAssistantMessage$outboundSchema.parse(
2513
- deploymentStreamMessagesAssistantMessage,
2514
- ),
2515
- );
2516
- }
2517
-
2518
- /** @internal */
2519
- export const DeploymentStream2DeploymentsRequestRequestBodyType$outboundSchema:
2520
- z.ZodNativeEnum<typeof DeploymentStream2DeploymentsRequestRequestBodyType> = z
2521
- .nativeEnum(DeploymentStream2DeploymentsRequestRequestBodyType);
2522
-
2523
- /** @internal */
2524
- export const DeploymentStream2DeploymentsTtl$outboundSchema: z.ZodNativeEnum<
2525
- typeof DeploymentStream2DeploymentsTtl
2526
- > = z.nativeEnum(DeploymentStream2DeploymentsTtl);
2527
-
2528
- /** @internal */
2529
- export type DeploymentStream2DeploymentsCacheControl$Outbound = {
2530
- type: string;
2531
- ttl: string;
2532
- };
2533
-
2534
- /** @internal */
2535
- export const DeploymentStream2DeploymentsCacheControl$outboundSchema: z.ZodType<
2536
- DeploymentStream2DeploymentsCacheControl$Outbound,
2537
- z.ZodTypeDef,
2538
- DeploymentStream2DeploymentsCacheControl
2539
- > = z.object({
2540
- type: DeploymentStream2DeploymentsRequestRequestBodyType$outboundSchema,
2541
- ttl: DeploymentStream2DeploymentsTtl$outboundSchema.default("5m"),
2542
- });
2543
-
2544
- export function deploymentStream2DeploymentsCacheControlToJSON(
2545
- deploymentStream2DeploymentsCacheControl:
2546
- DeploymentStream2DeploymentsCacheControl,
2547
- ): string {
2548
- return JSON.stringify(
2549
- DeploymentStream2DeploymentsCacheControl$outboundSchema.parse(
2550
- deploymentStream2DeploymentsCacheControl,
2551
- ),
2552
- );
2553
- }
2554
-
2555
- /** @internal */
2556
- export type DeploymentStream2Deployments4$Outbound = {
2557
- type: "file";
2558
- cache_control?: DeploymentStream2DeploymentsCacheControl$Outbound | undefined;
2559
- file: components.FileContentPartSchema$Outbound;
2560
- };
2561
-
2562
- /** @internal */
2563
- export const DeploymentStream2Deployments4$outboundSchema: z.ZodType<
2564
- DeploymentStream2Deployments4$Outbound,
2565
- z.ZodTypeDef,
2566
- DeploymentStream2Deployments4
2567
- > = z.object({
2568
- type: z.literal("file"),
2569
- cacheControl: z.lazy(() =>
2570
- DeploymentStream2DeploymentsCacheControl$outboundSchema
2571
- ).optional(),
2572
- file: components.FileContentPartSchema$outboundSchema,
2573
- }).transform((v) => {
2574
- return remap$(v, {
2575
- cacheControl: "cache_control",
2576
- });
2577
- });
2578
-
2579
- export function deploymentStream2Deployments4ToJSON(
2580
- deploymentStream2Deployments4: DeploymentStream2Deployments4,
2581
- ): string {
2582
- return JSON.stringify(
2583
- DeploymentStream2Deployments4$outboundSchema.parse(
2584
- deploymentStream2Deployments4,
2585
- ),
2586
- );
2587
- }
2588
-
2589
- /** @internal */
2590
- export type DeploymentStreamContentDeploymentsRequestRequestBody2$Outbound =
2591
- | (components.TextContentPartSchema$Outbound & { type: "text" })
2592
- | components.ImageContentPartSchema$Outbound
2593
- | components.AudioContentPartSchema$Outbound
2594
- | DeploymentStream2Deployments4$Outbound;
2595
-
2596
- /** @internal */
2597
- export const DeploymentStreamContentDeploymentsRequestRequestBody2$outboundSchema:
2598
- z.ZodType<
2599
- DeploymentStreamContentDeploymentsRequestRequestBody2$Outbound,
2600
- z.ZodTypeDef,
2601
- DeploymentStreamContentDeploymentsRequestRequestBody2
2602
- > = z.union([
2603
- components.TextContentPartSchema$outboundSchema.and(
2604
- z.object({ type: z.literal("text") }),
2605
- ),
2606
- components.ImageContentPartSchema$outboundSchema,
2607
- components.AudioContentPartSchema$outboundSchema,
2608
- z.lazy(() => DeploymentStream2Deployments4$outboundSchema),
2609
- ]);
2610
-
2611
- export function deploymentStreamContentDeploymentsRequestRequestBody2ToJSON(
2612
- deploymentStreamContentDeploymentsRequestRequestBody2:
2613
- DeploymentStreamContentDeploymentsRequestRequestBody2,
2614
- ): string {
2615
- return JSON.stringify(
2616
- DeploymentStreamContentDeploymentsRequestRequestBody2$outboundSchema.parse(
2617
- deploymentStreamContentDeploymentsRequestRequestBody2,
2618
- ),
2619
- );
2620
- }
2621
-
2622
- /** @internal */
2623
- export type DeploymentStreamMessagesDeploymentsRequestContent$Outbound =
2624
- | string
2625
- | Array<
2626
- | (components.TextContentPartSchema$Outbound & { type: "text" })
2627
- | components.ImageContentPartSchema$Outbound
2628
- | components.AudioContentPartSchema$Outbound
2629
- | DeploymentStream2Deployments4$Outbound
2630
- >;
2631
-
2632
- /** @internal */
2633
- export const DeploymentStreamMessagesDeploymentsRequestContent$outboundSchema:
2634
- z.ZodType<
2635
- DeploymentStreamMessagesDeploymentsRequestContent$Outbound,
2636
- z.ZodTypeDef,
2637
- DeploymentStreamMessagesDeploymentsRequestContent
2638
- > = z.union([
2639
- z.string(),
2640
- z.array(
2641
- z.union([
2642
- components.TextContentPartSchema$outboundSchema.and(
2643
- z.object({ type: z.literal("text") }),
2644
- ),
2645
- components.ImageContentPartSchema$outboundSchema,
2646
- components.AudioContentPartSchema$outboundSchema,
2647
- z.lazy(() => DeploymentStream2Deployments4$outboundSchema),
2648
- ]),
2649
- ),
2650
- ]);
2651
-
2652
- export function deploymentStreamMessagesDeploymentsRequestContentToJSON(
2653
- deploymentStreamMessagesDeploymentsRequestContent:
2654
- DeploymentStreamMessagesDeploymentsRequestContent,
2655
- ): string {
2656
- return JSON.stringify(
2657
- DeploymentStreamMessagesDeploymentsRequestContent$outboundSchema.parse(
2658
- deploymentStreamMessagesDeploymentsRequestContent,
2659
- ),
2660
- );
2661
- }
2662
-
2663
- /** @internal */
2664
- export type DeploymentStreamMessagesUserMessage$Outbound = {
2665
- role: "user";
2666
- name?: string | undefined;
2667
- content:
2668
- | string
2669
- | Array<
2670
- | (components.TextContentPartSchema$Outbound & { type: "text" })
2671
- | components.ImageContentPartSchema$Outbound
2672
- | components.AudioContentPartSchema$Outbound
2673
- | DeploymentStream2Deployments4$Outbound
2674
- >;
2675
- };
2676
-
2677
- /** @internal */
2678
- export const DeploymentStreamMessagesUserMessage$outboundSchema: z.ZodType<
2679
- DeploymentStreamMessagesUserMessage$Outbound,
2680
- z.ZodTypeDef,
2681
- DeploymentStreamMessagesUserMessage
2682
- > = z.object({
2683
- role: z.literal("user"),
2684
- name: z.string().optional(),
2685
- content: z.union([
2686
- z.string(),
2687
- z.array(
2688
- z.union([
2689
- components.TextContentPartSchema$outboundSchema.and(
2690
- z.object({ type: z.literal("text") }),
2691
- ),
2692
- components.ImageContentPartSchema$outboundSchema,
2693
- components.AudioContentPartSchema$outboundSchema,
2694
- z.lazy(() => DeploymentStream2Deployments4$outboundSchema),
2695
- ]),
2696
- ),
2697
- ]),
2698
- });
2699
-
2700
- export function deploymentStreamMessagesUserMessageToJSON(
2701
- deploymentStreamMessagesUserMessage: DeploymentStreamMessagesUserMessage,
2702
- ): string {
2703
- return JSON.stringify(
2704
- DeploymentStreamMessagesUserMessage$outboundSchema.parse(
2705
- deploymentStreamMessagesUserMessage,
2706
- ),
2707
- );
2708
- }
2709
-
2710
- /** @internal */
2711
- export type DeploymentStreamMessagesDeploymentsContent$Outbound =
2712
- | string
2713
- | Array<components.TextContentPartSchema$Outbound>;
2714
-
2715
- /** @internal */
2716
- export const DeploymentStreamMessagesDeploymentsContent$outboundSchema:
2717
- z.ZodType<
2718
- DeploymentStreamMessagesDeploymentsContent$Outbound,
2719
- z.ZodTypeDef,
2720
- DeploymentStreamMessagesDeploymentsContent
2721
- > = z.union([
2722
- z.string(),
2723
- z.array(components.TextContentPartSchema$outboundSchema),
2724
- ]);
2725
-
2726
- export function deploymentStreamMessagesDeploymentsContentToJSON(
2727
- deploymentStreamMessagesDeploymentsContent:
2728
- DeploymentStreamMessagesDeploymentsContent,
2729
- ): string {
2730
- return JSON.stringify(
2731
- DeploymentStreamMessagesDeploymentsContent$outboundSchema.parse(
2732
- deploymentStreamMessagesDeploymentsContent,
2733
- ),
2734
- );
2735
- }
2736
-
2737
- /** @internal */
2738
- export type DeploymentStreamMessagesDeveloperMessage$Outbound = {
2739
- role: "developer";
2740
- content: string | Array<components.TextContentPartSchema$Outbound>;
2741
- name?: string | undefined;
2742
- };
2743
-
2744
- /** @internal */
2745
- export const DeploymentStreamMessagesDeveloperMessage$outboundSchema: z.ZodType<
2746
- DeploymentStreamMessagesDeveloperMessage$Outbound,
2747
- z.ZodTypeDef,
2748
- DeploymentStreamMessagesDeveloperMessage
2749
- > = z.object({
2750
- role: z.literal("developer"),
2751
- content: z.union([
2752
- z.string(),
2753
- z.array(components.TextContentPartSchema$outboundSchema),
2754
- ]),
2755
- name: z.string().optional(),
2756
- });
2757
-
2758
- export function deploymentStreamMessagesDeveloperMessageToJSON(
2759
- deploymentStreamMessagesDeveloperMessage:
2760
- DeploymentStreamMessagesDeveloperMessage,
2761
- ): string {
2762
- return JSON.stringify(
2763
- DeploymentStreamMessagesDeveloperMessage$outboundSchema.parse(
2764
- deploymentStreamMessagesDeveloperMessage,
2765
- ),
2766
- );
2767
- }
2768
-
2769
- /** @internal */
2770
- export type DeploymentStreamMessagesContent$Outbound =
2771
- | string
2772
- | Array<components.TextContentPartSchema$Outbound>;
2773
-
2774
- /** @internal */
2775
- export const DeploymentStreamMessagesContent$outboundSchema: z.ZodType<
2776
- DeploymentStreamMessagesContent$Outbound,
2777
- z.ZodTypeDef,
2778
- DeploymentStreamMessagesContent
2779
- > = z.union([
2780
- z.string(),
2781
- z.array(components.TextContentPartSchema$outboundSchema),
2782
- ]);
2783
-
2784
- export function deploymentStreamMessagesContentToJSON(
2785
- deploymentStreamMessagesContent: DeploymentStreamMessagesContent,
2786
- ): string {
2787
- return JSON.stringify(
2788
- DeploymentStreamMessagesContent$outboundSchema.parse(
2789
- deploymentStreamMessagesContent,
2790
- ),
2791
- );
2792
- }
2793
-
2794
- /** @internal */
2795
- export type DeploymentStreamMessagesSystemMessage$Outbound = {
2796
- role: "system";
2797
- content: string | Array<components.TextContentPartSchema$Outbound>;
2798
- name?: string | undefined;
2799
- };
2800
-
2801
- /** @internal */
2802
- export const DeploymentStreamMessagesSystemMessage$outboundSchema: z.ZodType<
2803
- DeploymentStreamMessagesSystemMessage$Outbound,
2804
- z.ZodTypeDef,
2805
- DeploymentStreamMessagesSystemMessage
2806
- > = z.object({
2807
- role: z.literal("system"),
2808
- content: z.union([
2809
- z.string(),
2810
- z.array(components.TextContentPartSchema$outboundSchema),
2811
- ]),
2812
- name: z.string().optional(),
2813
- });
2814
-
2815
- export function deploymentStreamMessagesSystemMessageToJSON(
2816
- deploymentStreamMessagesSystemMessage: DeploymentStreamMessagesSystemMessage,
2817
- ): string {
2818
- return JSON.stringify(
2819
- DeploymentStreamMessagesSystemMessage$outboundSchema.parse(
2820
- deploymentStreamMessagesSystemMessage,
2821
- ),
2822
- );
2823
- }
2824
-
2825
- /** @internal */
2826
- export type DeploymentStreamMessages$Outbound =
2827
- | DeploymentStreamMessagesSystemMessage$Outbound
2828
- | DeploymentStreamMessagesDeveloperMessage$Outbound
2829
- | DeploymentStreamMessagesUserMessage$Outbound
2830
- | DeploymentStreamMessagesAssistantMessage$Outbound
2831
- | DeploymentStreamMessagesToolMessage$Outbound;
2832
-
2833
- /** @internal */
2834
- export const DeploymentStreamMessages$outboundSchema: z.ZodType<
2835
- DeploymentStreamMessages$Outbound,
2836
- z.ZodTypeDef,
2837
- DeploymentStreamMessages
2838
- > = z.union([
2839
- z.lazy(() => DeploymentStreamMessagesSystemMessage$outboundSchema),
2840
- z.lazy(() => DeploymentStreamMessagesDeveloperMessage$outboundSchema),
2841
- z.lazy(() => DeploymentStreamMessagesUserMessage$outboundSchema),
2842
- z.lazy(() => DeploymentStreamMessagesAssistantMessage$outboundSchema),
2843
- z.lazy(() => DeploymentStreamMessagesToolMessage$outboundSchema),
2844
- ]);
2845
-
2846
- export function deploymentStreamMessagesToJSON(
2847
- deploymentStreamMessages: DeploymentStreamMessages,
2848
- ): string {
2849
- return JSON.stringify(
2850
- DeploymentStreamMessages$outboundSchema.parse(deploymentStreamMessages),
2851
- );
2852
- }
2853
-
2854
- /** @internal */
2855
- export type DeploymentStreamMetadata$Outbound = {
2856
- file_name?: string | undefined;
2857
- file_type?: string | undefined;
2858
- page_number?: number | undefined;
2859
- };
2860
-
2861
- /** @internal */
2862
- export const DeploymentStreamMetadata$outboundSchema: z.ZodType<
2863
- DeploymentStreamMetadata$Outbound,
2864
- z.ZodTypeDef,
2865
- DeploymentStreamMetadata
2866
- > = z.object({
2867
- fileName: z.string().optional(),
2868
- fileType: z.string().optional(),
2869
- pageNumber: z.number().optional(),
2870
- }).transform((v) => {
2871
- return remap$(v, {
2872
- fileName: "file_name",
2873
- fileType: "file_type",
2874
- pageNumber: "page_number",
2875
- });
2876
- });
2877
-
2878
- export function deploymentStreamMetadataToJSON(
2879
- deploymentStreamMetadata: DeploymentStreamMetadata,
2880
- ): string {
2881
- return JSON.stringify(
2882
- DeploymentStreamMetadata$outboundSchema.parse(deploymentStreamMetadata),
2883
- );
2884
- }
2885
-
2886
- /** @internal */
2887
- export type DeploymentStreamDocuments$Outbound = {
2888
- text: string;
2889
- metadata?: DeploymentStreamMetadata$Outbound | undefined;
2890
- };
2891
-
2892
- /** @internal */
2893
- export const DeploymentStreamDocuments$outboundSchema: z.ZodType<
2894
- DeploymentStreamDocuments$Outbound,
2895
- z.ZodTypeDef,
2896
- DeploymentStreamDocuments
2897
- > = z.object({
2898
- text: z.string(),
2899
- metadata: z.lazy(() => DeploymentStreamMetadata$outboundSchema).optional(),
2900
- });
2901
-
2902
- export function deploymentStreamDocumentsToJSON(
2903
- deploymentStreamDocuments: DeploymentStreamDocuments,
2904
- ): string {
2905
- return JSON.stringify(
2906
- DeploymentStreamDocuments$outboundSchema.parse(deploymentStreamDocuments),
2907
- );
2908
- }
2909
-
2910
- /** @internal */
2911
- export type DeploymentStreamInvokeOptions$Outbound = {
2912
- include_retrievals: boolean;
2913
- include_usage: boolean;
2914
- mock_response?: string | undefined;
2915
- };
2916
-
2917
- /** @internal */
2918
- export const DeploymentStreamInvokeOptions$outboundSchema: z.ZodType<
2919
- DeploymentStreamInvokeOptions$Outbound,
2920
- z.ZodTypeDef,
2921
- DeploymentStreamInvokeOptions
2922
- > = z.object({
2923
- includeRetrievals: z.boolean().default(false),
2924
- includeUsage: z.boolean().default(false),
2925
- mockResponse: z.string().optional(),
2926
- }).transform((v) => {
2927
- return remap$(v, {
2928
- includeRetrievals: "include_retrievals",
2929
- includeUsage: "include_usage",
2930
- mockResponse: "mock_response",
2931
- });
2932
- });
2933
-
2934
- export function deploymentStreamInvokeOptionsToJSON(
2935
- deploymentStreamInvokeOptions: DeploymentStreamInvokeOptions,
2936
- ): string {
2937
- return JSON.stringify(
2938
- DeploymentStreamInvokeOptions$outboundSchema.parse(
2939
- deploymentStreamInvokeOptions,
2940
- ),
2941
- );
2942
- }
2943
-
2944
- /** @internal */
2945
- export type DeploymentStreamThread$Outbound = {
2946
- id: string;
2947
- tags?: Array<string> | undefined;
2948
- };
2949
-
2950
- /** @internal */
2951
- export const DeploymentStreamThread$outboundSchema: z.ZodType<
2952
- DeploymentStreamThread$Outbound,
2953
- z.ZodTypeDef,
2954
- DeploymentStreamThread
2955
- > = z.object({
2956
- id: z.string(),
2957
- tags: z.array(z.string()).optional(),
2958
- });
2959
-
2960
- export function deploymentStreamThreadToJSON(
2961
- deploymentStreamThread: DeploymentStreamThread,
2962
- ): string {
2963
- return JSON.stringify(
2964
- DeploymentStreamThread$outboundSchema.parse(deploymentStreamThread),
2965
- );
2966
- }
2967
-
2968
- /** @internal */
2969
- export type DeploymentStreamOrDeploymentsNin$Outbound =
2970
- | string
2971
- | number
2972
- | boolean;
2973
-
2974
- /** @internal */
2975
- export const DeploymentStreamOrDeploymentsNin$outboundSchema: z.ZodType<
2976
- DeploymentStreamOrDeploymentsNin$Outbound,
2977
- z.ZodTypeDef,
2978
- DeploymentStreamOrDeploymentsNin
2979
- > = z.union([z.string(), z.number(), z.boolean()]);
2980
-
2981
- export function deploymentStreamOrDeploymentsNinToJSON(
2982
- deploymentStreamOrDeploymentsNin: DeploymentStreamOrDeploymentsNin,
2983
- ): string {
2984
- return JSON.stringify(
2985
- DeploymentStreamOrDeploymentsNin$outboundSchema.parse(
2986
- deploymentStreamOrDeploymentsNin,
2987
- ),
2988
- );
2989
- }
2990
-
2991
- /** @internal */
2992
- export type DeploymentStreamOrNin$Outbound = {
2993
- nin: Array<string | number | boolean>;
2994
- };
2995
-
2996
- /** @internal */
2997
- export const DeploymentStreamOrNin$outboundSchema: z.ZodType<
2998
- DeploymentStreamOrNin$Outbound,
2999
- z.ZodTypeDef,
3000
- DeploymentStreamOrNin
3001
- > = z.object({
3002
- nin: z.array(z.union([z.string(), z.number(), z.boolean()])),
3003
- });
3004
-
3005
- export function deploymentStreamOrNinToJSON(
3006
- deploymentStreamOrNin: DeploymentStreamOrNin,
3007
- ): string {
3008
- return JSON.stringify(
3009
- DeploymentStreamOrNin$outboundSchema.parse(deploymentStreamOrNin),
3010
- );
3011
- }
3012
-
3013
- /** @internal */
3014
- export type DeploymentStreamOrDeploymentsIn$Outbound =
3015
- | string
3016
- | number
3017
- | boolean;
3018
-
3019
- /** @internal */
3020
- export const DeploymentStreamOrDeploymentsIn$outboundSchema: z.ZodType<
3021
- DeploymentStreamOrDeploymentsIn$Outbound,
3022
- z.ZodTypeDef,
3023
- DeploymentStreamOrDeploymentsIn
3024
- > = z.union([z.string(), z.number(), z.boolean()]);
3025
-
3026
- export function deploymentStreamOrDeploymentsInToJSON(
3027
- deploymentStreamOrDeploymentsIn: DeploymentStreamOrDeploymentsIn,
3028
- ): string {
3029
- return JSON.stringify(
3030
- DeploymentStreamOrDeploymentsIn$outboundSchema.parse(
3031
- deploymentStreamOrDeploymentsIn,
3032
- ),
3033
- );
3034
- }
3035
-
3036
- /** @internal */
3037
- export type DeploymentStreamOrIn$Outbound = {
3038
- in: Array<string | number | boolean>;
3039
- };
3040
-
3041
- /** @internal */
3042
- export const DeploymentStreamOrIn$outboundSchema: z.ZodType<
3043
- DeploymentStreamOrIn$Outbound,
3044
- z.ZodTypeDef,
3045
- DeploymentStreamOrIn
3046
- > = z.object({
3047
- in: z.array(z.union([z.string(), z.number(), z.boolean()])),
3048
- });
3049
-
3050
- export function deploymentStreamOrInToJSON(
3051
- deploymentStreamOrIn: DeploymentStreamOrIn,
3052
- ): string {
3053
- return JSON.stringify(
3054
- DeploymentStreamOrIn$outboundSchema.parse(deploymentStreamOrIn),
3055
- );
3056
- }
3057
-
3058
- /** @internal */
3059
- export type DeploymentStreamOrLte$Outbound = {
3060
- lte: number;
3061
- };
3062
-
3063
- /** @internal */
3064
- export const DeploymentStreamOrLte$outboundSchema: z.ZodType<
3065
- DeploymentStreamOrLte$Outbound,
3066
- z.ZodTypeDef,
3067
- DeploymentStreamOrLte
3068
- > = z.object({
3069
- lte: z.number(),
3070
- });
3071
-
3072
- export function deploymentStreamOrLteToJSON(
3073
- deploymentStreamOrLte: DeploymentStreamOrLte,
3074
- ): string {
3075
- return JSON.stringify(
3076
- DeploymentStreamOrLte$outboundSchema.parse(deploymentStreamOrLte),
3077
- );
3078
- }
3079
-
3080
- /** @internal */
3081
- export type DeploymentStreamOrLt$Outbound = {
3082
- lt: number;
3083
- };
3084
-
3085
- /** @internal */
3086
- export const DeploymentStreamOrLt$outboundSchema: z.ZodType<
3087
- DeploymentStreamOrLt$Outbound,
3088
- z.ZodTypeDef,
3089
- DeploymentStreamOrLt
3090
- > = z.object({
3091
- lt: z.number(),
3092
- });
3093
-
3094
- export function deploymentStreamOrLtToJSON(
3095
- deploymentStreamOrLt: DeploymentStreamOrLt,
3096
- ): string {
3097
- return JSON.stringify(
3098
- DeploymentStreamOrLt$outboundSchema.parse(deploymentStreamOrLt),
3099
- );
3100
- }
3101
-
3102
- /** @internal */
3103
- export type DeploymentStreamOrGte$Outbound = {
3104
- gte: number;
3105
- };
3106
-
3107
- /** @internal */
3108
- export const DeploymentStreamOrGte$outboundSchema: z.ZodType<
3109
- DeploymentStreamOrGte$Outbound,
3110
- z.ZodTypeDef,
3111
- DeploymentStreamOrGte
3112
- > = z.object({
3113
- gte: z.number(),
3114
- });
3115
-
3116
- export function deploymentStreamOrGteToJSON(
3117
- deploymentStreamOrGte: DeploymentStreamOrGte,
3118
- ): string {
3119
- return JSON.stringify(
3120
- DeploymentStreamOrGte$outboundSchema.parse(deploymentStreamOrGte),
3121
- );
3122
- }
3123
-
3124
- /** @internal */
3125
- export type DeploymentStreamOrGt$Outbound = {
3126
- gt: number;
3127
- };
3128
-
3129
- /** @internal */
3130
- export const DeploymentStreamOrGt$outboundSchema: z.ZodType<
3131
- DeploymentStreamOrGt$Outbound,
3132
- z.ZodTypeDef,
3133
- DeploymentStreamOrGt
3134
- > = z.object({
3135
- gt: z.number(),
3136
- });
3137
-
3138
- export function deploymentStreamOrGtToJSON(
3139
- deploymentStreamOrGt: DeploymentStreamOrGt,
3140
- ): string {
3141
- return JSON.stringify(
3142
- DeploymentStreamOrGt$outboundSchema.parse(deploymentStreamOrGt),
3143
- );
3144
- }
3145
-
3146
- /** @internal */
3147
- export type DeploymentStreamOrDeploymentsNe$Outbound =
3148
- | string
3149
- | number
3150
- | boolean;
3151
-
3152
- /** @internal */
3153
- export const DeploymentStreamOrDeploymentsNe$outboundSchema: z.ZodType<
3154
- DeploymentStreamOrDeploymentsNe$Outbound,
3155
- z.ZodTypeDef,
3156
- DeploymentStreamOrDeploymentsNe
3157
- > = z.union([z.string(), z.number(), z.boolean()]);
3158
-
3159
- export function deploymentStreamOrDeploymentsNeToJSON(
3160
- deploymentStreamOrDeploymentsNe: DeploymentStreamOrDeploymentsNe,
3161
- ): string {
3162
- return JSON.stringify(
3163
- DeploymentStreamOrDeploymentsNe$outboundSchema.parse(
3164
- deploymentStreamOrDeploymentsNe,
3165
- ),
3166
- );
3167
- }
3168
-
3169
- /** @internal */
3170
- export type DeploymentStreamOrNe$Outbound = {
3171
- ne: string | number | boolean;
3172
- };
3173
-
3174
- /** @internal */
3175
- export const DeploymentStreamOrNe$outboundSchema: z.ZodType<
3176
- DeploymentStreamOrNe$Outbound,
3177
- z.ZodTypeDef,
3178
- DeploymentStreamOrNe
3179
- > = z.object({
3180
- ne: z.union([z.string(), z.number(), z.boolean()]),
3181
- });
3182
-
3183
- export function deploymentStreamOrNeToJSON(
3184
- deploymentStreamOrNe: DeploymentStreamOrNe,
3185
- ): string {
3186
- return JSON.stringify(
3187
- DeploymentStreamOrNe$outboundSchema.parse(deploymentStreamOrNe),
3188
- );
3189
- }
3190
-
3191
- /** @internal */
3192
- export type DeploymentStreamOrDeploymentsEq$Outbound =
3193
- | string
3194
- | number
3195
- | boolean;
3196
-
3197
- /** @internal */
3198
- export const DeploymentStreamOrDeploymentsEq$outboundSchema: z.ZodType<
3199
- DeploymentStreamOrDeploymentsEq$Outbound,
3200
- z.ZodTypeDef,
3201
- DeploymentStreamOrDeploymentsEq
3202
- > = z.union([z.string(), z.number(), z.boolean()]);
3203
-
3204
- export function deploymentStreamOrDeploymentsEqToJSON(
3205
- deploymentStreamOrDeploymentsEq: DeploymentStreamOrDeploymentsEq,
3206
- ): string {
3207
- return JSON.stringify(
3208
- DeploymentStreamOrDeploymentsEq$outboundSchema.parse(
3209
- deploymentStreamOrDeploymentsEq,
3210
- ),
3211
- );
3212
- }
3213
-
3214
- /** @internal */
3215
- export type DeploymentStreamOrEq$Outbound = {
3216
- eq: string | number | boolean;
3217
- };
3218
-
3219
- /** @internal */
3220
- export const DeploymentStreamOrEq$outboundSchema: z.ZodType<
3221
- DeploymentStreamOrEq$Outbound,
3222
- z.ZodTypeDef,
3223
- DeploymentStreamOrEq
3224
- > = z.object({
3225
- eq: z.union([z.string(), z.number(), z.boolean()]),
3226
- });
3227
-
3228
- export function deploymentStreamOrEqToJSON(
3229
- deploymentStreamOrEq: DeploymentStreamOrEq,
3230
- ): string {
3231
- return JSON.stringify(
3232
- DeploymentStreamOrEq$outboundSchema.parse(deploymentStreamOrEq),
3233
- );
3234
- }
3235
-
3236
- /** @internal */
3237
- export type DeploymentStreamKnowledgeFilterDeploymentsOr$Outbound =
3238
- | DeploymentStreamOrEq$Outbound
3239
- | DeploymentStreamOrNe$Outbound
3240
- | DeploymentStreamOrGt$Outbound
3241
- | DeploymentStreamOrGte$Outbound
3242
- | DeploymentStreamOrLt$Outbound
3243
- | DeploymentStreamOrLte$Outbound
3244
- | DeploymentStreamOrIn$Outbound
3245
- | DeploymentStreamOrNin$Outbound;
3246
-
3247
- /** @internal */
3248
- export const DeploymentStreamKnowledgeFilterDeploymentsOr$outboundSchema:
3249
- z.ZodType<
3250
- DeploymentStreamKnowledgeFilterDeploymentsOr$Outbound,
3251
- z.ZodTypeDef,
3252
- DeploymentStreamKnowledgeFilterDeploymentsOr
3253
- > = z.union([
3254
- z.lazy(() => DeploymentStreamOrEq$outboundSchema),
3255
- z.lazy(() => DeploymentStreamOrNe$outboundSchema),
3256
- z.lazy(() => DeploymentStreamOrGt$outboundSchema),
3257
- z.lazy(() => DeploymentStreamOrGte$outboundSchema),
3258
- z.lazy(() => DeploymentStreamOrLt$outboundSchema),
3259
- z.lazy(() => DeploymentStreamOrLte$outboundSchema),
3260
- z.lazy(() => DeploymentStreamOrIn$outboundSchema),
3261
- z.lazy(() => DeploymentStreamOrNin$outboundSchema),
3262
- ]);
3263
-
3264
- export function deploymentStreamKnowledgeFilterDeploymentsOrToJSON(
3265
- deploymentStreamKnowledgeFilterDeploymentsOr:
3266
- DeploymentStreamKnowledgeFilterDeploymentsOr,
3267
- ): string {
3268
- return JSON.stringify(
3269
- DeploymentStreamKnowledgeFilterDeploymentsOr$outboundSchema.parse(
3270
- deploymentStreamKnowledgeFilterDeploymentsOr,
3271
- ),
3272
- );
3273
- }
3274
-
3275
- /** @internal */
3276
- export type DeploymentStreamKnowledgeFilterOr$Outbound = {
3277
- or: Array<
3278
- {
3279
- [k: string]:
3280
- | DeploymentStreamOrEq$Outbound
3281
- | DeploymentStreamOrNe$Outbound
3282
- | DeploymentStreamOrGt$Outbound
3283
- | DeploymentStreamOrGte$Outbound
3284
- | DeploymentStreamOrLt$Outbound
3285
- | DeploymentStreamOrLte$Outbound
3286
- | DeploymentStreamOrIn$Outbound
3287
- | DeploymentStreamOrNin$Outbound;
3288
- }
3289
- >;
3290
- };
3291
-
3292
- /** @internal */
3293
- export const DeploymentStreamKnowledgeFilterOr$outboundSchema: z.ZodType<
3294
- DeploymentStreamKnowledgeFilterOr$Outbound,
3295
- z.ZodTypeDef,
3296
- DeploymentStreamKnowledgeFilterOr
3297
- > = z.object({
3298
- or: z.array(
3299
- z.record(z.union([
3300
- z.lazy(() => DeploymentStreamOrEq$outboundSchema),
3301
- z.lazy(() =>
3302
- DeploymentStreamOrNe$outboundSchema
3303
- ),
3304
- z.lazy(() => DeploymentStreamOrGt$outboundSchema),
3305
- z.lazy(() => DeploymentStreamOrGte$outboundSchema),
3306
- z.lazy(() => DeploymentStreamOrLt$outboundSchema),
3307
- z.lazy(() => DeploymentStreamOrLte$outboundSchema),
3308
- z.lazy(() => DeploymentStreamOrIn$outboundSchema),
3309
- z.lazy(() => DeploymentStreamOrNin$outboundSchema),
3310
- ])),
3311
- ),
3312
- });
3313
-
3314
- export function deploymentStreamKnowledgeFilterOrToJSON(
3315
- deploymentStreamKnowledgeFilterOr: DeploymentStreamKnowledgeFilterOr,
3316
- ): string {
3317
- return JSON.stringify(
3318
- DeploymentStreamKnowledgeFilterOr$outboundSchema.parse(
3319
- deploymentStreamKnowledgeFilterOr,
3320
- ),
3321
- );
3322
- }
3323
-
3324
- /** @internal */
3325
- export type DeploymentStreamAndDeploymentsNin$Outbound =
3326
- | string
3327
- | number
3328
- | boolean;
3329
-
3330
- /** @internal */
3331
- export const DeploymentStreamAndDeploymentsNin$outboundSchema: z.ZodType<
3332
- DeploymentStreamAndDeploymentsNin$Outbound,
3333
- z.ZodTypeDef,
3334
- DeploymentStreamAndDeploymentsNin
3335
- > = z.union([z.string(), z.number(), z.boolean()]);
3336
-
3337
- export function deploymentStreamAndDeploymentsNinToJSON(
3338
- deploymentStreamAndDeploymentsNin: DeploymentStreamAndDeploymentsNin,
3339
- ): string {
3340
- return JSON.stringify(
3341
- DeploymentStreamAndDeploymentsNin$outboundSchema.parse(
3342
- deploymentStreamAndDeploymentsNin,
3343
- ),
3344
- );
3345
- }
3346
-
3347
- /** @internal */
3348
- export type DeploymentStreamAndNin$Outbound = {
3349
- nin: Array<string | number | boolean>;
3350
- };
3351
-
3352
- /** @internal */
3353
- export const DeploymentStreamAndNin$outboundSchema: z.ZodType<
3354
- DeploymentStreamAndNin$Outbound,
3355
- z.ZodTypeDef,
3356
- DeploymentStreamAndNin
3357
- > = z.object({
3358
- nin: z.array(z.union([z.string(), z.number(), z.boolean()])),
3359
- });
3360
-
3361
- export function deploymentStreamAndNinToJSON(
3362
- deploymentStreamAndNin: DeploymentStreamAndNin,
3363
- ): string {
3364
- return JSON.stringify(
3365
- DeploymentStreamAndNin$outboundSchema.parse(deploymentStreamAndNin),
3366
- );
3367
- }
3368
-
3369
- /** @internal */
3370
- export type DeploymentStreamAndDeploymentsIn$Outbound =
3371
- | string
3372
- | number
3373
- | boolean;
3374
-
3375
- /** @internal */
3376
- export const DeploymentStreamAndDeploymentsIn$outboundSchema: z.ZodType<
3377
- DeploymentStreamAndDeploymentsIn$Outbound,
3378
- z.ZodTypeDef,
3379
- DeploymentStreamAndDeploymentsIn
3380
- > = z.union([z.string(), z.number(), z.boolean()]);
3381
-
3382
- export function deploymentStreamAndDeploymentsInToJSON(
3383
- deploymentStreamAndDeploymentsIn: DeploymentStreamAndDeploymentsIn,
3384
- ): string {
3385
- return JSON.stringify(
3386
- DeploymentStreamAndDeploymentsIn$outboundSchema.parse(
3387
- deploymentStreamAndDeploymentsIn,
3388
- ),
3389
- );
3390
- }
3391
-
3392
- /** @internal */
3393
- export type DeploymentStreamAndIn$Outbound = {
3394
- in: Array<string | number | boolean>;
3395
- };
3396
-
3397
- /** @internal */
3398
- export const DeploymentStreamAndIn$outboundSchema: z.ZodType<
3399
- DeploymentStreamAndIn$Outbound,
3400
- z.ZodTypeDef,
3401
- DeploymentStreamAndIn
3402
- > = z.object({
3403
- in: z.array(z.union([z.string(), z.number(), z.boolean()])),
3404
- });
3405
-
3406
- export function deploymentStreamAndInToJSON(
3407
- deploymentStreamAndIn: DeploymentStreamAndIn,
3408
- ): string {
3409
- return JSON.stringify(
3410
- DeploymentStreamAndIn$outboundSchema.parse(deploymentStreamAndIn),
3411
- );
3412
- }
3413
-
3414
- /** @internal */
3415
- export type DeploymentStreamAndLte$Outbound = {
3416
- lte: number;
3417
- };
3418
-
3419
- /** @internal */
3420
- export const DeploymentStreamAndLte$outboundSchema: z.ZodType<
3421
- DeploymentStreamAndLte$Outbound,
3422
- z.ZodTypeDef,
3423
- DeploymentStreamAndLte
3424
- > = z.object({
3425
- lte: z.number(),
3426
- });
3427
-
3428
- export function deploymentStreamAndLteToJSON(
3429
- deploymentStreamAndLte: DeploymentStreamAndLte,
3430
- ): string {
3431
- return JSON.stringify(
3432
- DeploymentStreamAndLte$outboundSchema.parse(deploymentStreamAndLte),
3433
- );
3434
- }
3435
-
3436
- /** @internal */
3437
- export type DeploymentStreamAndLt$Outbound = {
3438
- lt: number;
3439
- };
3440
-
3441
- /** @internal */
3442
- export const DeploymentStreamAndLt$outboundSchema: z.ZodType<
3443
- DeploymentStreamAndLt$Outbound,
3444
- z.ZodTypeDef,
3445
- DeploymentStreamAndLt
3446
- > = z.object({
3447
- lt: z.number(),
3448
- });
3449
-
3450
- export function deploymentStreamAndLtToJSON(
3451
- deploymentStreamAndLt: DeploymentStreamAndLt,
3452
- ): string {
3453
- return JSON.stringify(
3454
- DeploymentStreamAndLt$outboundSchema.parse(deploymentStreamAndLt),
3455
- );
3456
- }
3457
-
3458
- /** @internal */
3459
- export type DeploymentStreamAndGte$Outbound = {
3460
- gte: number;
3461
- };
3462
-
3463
- /** @internal */
3464
- export const DeploymentStreamAndGte$outboundSchema: z.ZodType<
3465
- DeploymentStreamAndGte$Outbound,
3466
- z.ZodTypeDef,
3467
- DeploymentStreamAndGte
3468
- > = z.object({
3469
- gte: z.number(),
3470
- });
3471
-
3472
- export function deploymentStreamAndGteToJSON(
3473
- deploymentStreamAndGte: DeploymentStreamAndGte,
3474
- ): string {
3475
- return JSON.stringify(
3476
- DeploymentStreamAndGte$outboundSchema.parse(deploymentStreamAndGte),
3477
- );
3478
- }
3479
-
3480
- /** @internal */
3481
- export type DeploymentStreamAndGt$Outbound = {
3482
- gt: number;
3483
- };
3484
-
3485
- /** @internal */
3486
- export const DeploymentStreamAndGt$outboundSchema: z.ZodType<
3487
- DeploymentStreamAndGt$Outbound,
3488
- z.ZodTypeDef,
3489
- DeploymentStreamAndGt
3490
- > = z.object({
3491
- gt: z.number(),
3492
- });
3493
-
3494
- export function deploymentStreamAndGtToJSON(
3495
- deploymentStreamAndGt: DeploymentStreamAndGt,
3496
- ): string {
3497
- return JSON.stringify(
3498
- DeploymentStreamAndGt$outboundSchema.parse(deploymentStreamAndGt),
3499
- );
3500
- }
3501
-
3502
- /** @internal */
3503
- export type DeploymentStreamAndDeploymentsNe$Outbound =
3504
- | string
3505
- | number
3506
- | boolean;
3507
-
3508
- /** @internal */
3509
- export const DeploymentStreamAndDeploymentsNe$outboundSchema: z.ZodType<
3510
- DeploymentStreamAndDeploymentsNe$Outbound,
3511
- z.ZodTypeDef,
3512
- DeploymentStreamAndDeploymentsNe
3513
- > = z.union([z.string(), z.number(), z.boolean()]);
3514
-
3515
- export function deploymentStreamAndDeploymentsNeToJSON(
3516
- deploymentStreamAndDeploymentsNe: DeploymentStreamAndDeploymentsNe,
3517
- ): string {
3518
- return JSON.stringify(
3519
- DeploymentStreamAndDeploymentsNe$outboundSchema.parse(
3520
- deploymentStreamAndDeploymentsNe,
3521
- ),
3522
- );
3523
- }
3524
-
3525
- /** @internal */
3526
- export type DeploymentStreamAndNe$Outbound = {
3527
- ne: string | number | boolean;
3528
- };
3529
-
3530
- /** @internal */
3531
- export const DeploymentStreamAndNe$outboundSchema: z.ZodType<
3532
- DeploymentStreamAndNe$Outbound,
3533
- z.ZodTypeDef,
3534
- DeploymentStreamAndNe
3535
- > = z.object({
3536
- ne: z.union([z.string(), z.number(), z.boolean()]),
3537
- });
3538
-
3539
- export function deploymentStreamAndNeToJSON(
3540
- deploymentStreamAndNe: DeploymentStreamAndNe,
3541
- ): string {
3542
- return JSON.stringify(
3543
- DeploymentStreamAndNe$outboundSchema.parse(deploymentStreamAndNe),
3544
- );
3545
- }
3546
-
3547
- /** @internal */
3548
- export type DeploymentStreamAndDeploymentsEq$Outbound =
3549
- | string
3550
- | number
3551
- | boolean;
3552
-
3553
- /** @internal */
3554
- export const DeploymentStreamAndDeploymentsEq$outboundSchema: z.ZodType<
3555
- DeploymentStreamAndDeploymentsEq$Outbound,
3556
- z.ZodTypeDef,
3557
- DeploymentStreamAndDeploymentsEq
3558
- > = z.union([z.string(), z.number(), z.boolean()]);
3559
-
3560
- export function deploymentStreamAndDeploymentsEqToJSON(
3561
- deploymentStreamAndDeploymentsEq: DeploymentStreamAndDeploymentsEq,
3562
- ): string {
3563
- return JSON.stringify(
3564
- DeploymentStreamAndDeploymentsEq$outboundSchema.parse(
3565
- deploymentStreamAndDeploymentsEq,
3566
- ),
3567
- );
3568
- }
3569
-
3570
- /** @internal */
3571
- export type DeploymentStreamAndEq$Outbound = {
3572
- eq: string | number | boolean;
3573
- };
3574
-
3575
- /** @internal */
3576
- export const DeploymentStreamAndEq$outboundSchema: z.ZodType<
3577
- DeploymentStreamAndEq$Outbound,
3578
- z.ZodTypeDef,
3579
- DeploymentStreamAndEq
3580
- > = z.object({
3581
- eq: z.union([z.string(), z.number(), z.boolean()]),
3582
- });
3583
-
3584
- export function deploymentStreamAndEqToJSON(
3585
- deploymentStreamAndEq: DeploymentStreamAndEq,
3586
- ): string {
3587
- return JSON.stringify(
3588
- DeploymentStreamAndEq$outboundSchema.parse(deploymentStreamAndEq),
3589
- );
3590
- }
3591
-
3592
- /** @internal */
3593
- export type DeploymentStreamKnowledgeFilterDeploymentsAnd$Outbound =
3594
- | DeploymentStreamAndEq$Outbound
3595
- | DeploymentStreamAndNe$Outbound
3596
- | DeploymentStreamAndGt$Outbound
3597
- | DeploymentStreamAndGte$Outbound
3598
- | DeploymentStreamAndLt$Outbound
3599
- | DeploymentStreamAndLte$Outbound
3600
- | DeploymentStreamAndIn$Outbound
3601
- | DeploymentStreamAndNin$Outbound;
3602
-
3603
- /** @internal */
3604
- export const DeploymentStreamKnowledgeFilterDeploymentsAnd$outboundSchema:
3605
- z.ZodType<
3606
- DeploymentStreamKnowledgeFilterDeploymentsAnd$Outbound,
3607
- z.ZodTypeDef,
3608
- DeploymentStreamKnowledgeFilterDeploymentsAnd
3609
- > = z.union([
3610
- z.lazy(() => DeploymentStreamAndEq$outboundSchema),
3611
- z.lazy(() => DeploymentStreamAndNe$outboundSchema),
3612
- z.lazy(() => DeploymentStreamAndGt$outboundSchema),
3613
- z.lazy(() => DeploymentStreamAndGte$outboundSchema),
3614
- z.lazy(() => DeploymentStreamAndLt$outboundSchema),
3615
- z.lazy(() => DeploymentStreamAndLte$outboundSchema),
3616
- z.lazy(() => DeploymentStreamAndIn$outboundSchema),
3617
- z.lazy(() => DeploymentStreamAndNin$outboundSchema),
3618
- ]);
3619
-
3620
- export function deploymentStreamKnowledgeFilterDeploymentsAndToJSON(
3621
- deploymentStreamKnowledgeFilterDeploymentsAnd:
3622
- DeploymentStreamKnowledgeFilterDeploymentsAnd,
3623
- ): string {
3624
- return JSON.stringify(
3625
- DeploymentStreamKnowledgeFilterDeploymentsAnd$outboundSchema.parse(
3626
- deploymentStreamKnowledgeFilterDeploymentsAnd,
3627
- ),
3628
- );
3629
- }
3630
-
3631
- /** @internal */
3632
- export type DeploymentStreamKnowledgeFilterAnd$Outbound = {
3633
- and: Array<
3634
- {
3635
- [k: string]:
3636
- | DeploymentStreamAndEq$Outbound
3637
- | DeploymentStreamAndNe$Outbound
3638
- | DeploymentStreamAndGt$Outbound
3639
- | DeploymentStreamAndGte$Outbound
3640
- | DeploymentStreamAndLt$Outbound
3641
- | DeploymentStreamAndLte$Outbound
3642
- | DeploymentStreamAndIn$Outbound
3643
- | DeploymentStreamAndNin$Outbound;
3644
- }
3645
- >;
3646
- };
3647
-
3648
- /** @internal */
3649
- export const DeploymentStreamKnowledgeFilterAnd$outboundSchema: z.ZodType<
3650
- DeploymentStreamKnowledgeFilterAnd$Outbound,
3651
- z.ZodTypeDef,
3652
- DeploymentStreamKnowledgeFilterAnd
3653
- > = z.object({
3654
- and: z.array(
3655
- z.record(z.union([
3656
- z.lazy(() => DeploymentStreamAndEq$outboundSchema),
3657
- z.lazy(() =>
3658
- DeploymentStreamAndNe$outboundSchema
3659
- ),
3660
- z.lazy(() => DeploymentStreamAndGt$outboundSchema),
3661
- z.lazy(() => DeploymentStreamAndGte$outboundSchema),
3662
- z.lazy(() => DeploymentStreamAndLt$outboundSchema),
3663
- z.lazy(() => DeploymentStreamAndLte$outboundSchema),
3664
- z.lazy(() => DeploymentStreamAndIn$outboundSchema),
3665
- z.lazy(() => DeploymentStreamAndNin$outboundSchema),
3666
- ])),
3667
- ),
3668
- });
3669
-
3670
- export function deploymentStreamKnowledgeFilterAndToJSON(
3671
- deploymentStreamKnowledgeFilterAnd: DeploymentStreamKnowledgeFilterAnd,
3672
- ): string {
3673
- return JSON.stringify(
3674
- DeploymentStreamKnowledgeFilterAnd$outboundSchema.parse(
3675
- deploymentStreamKnowledgeFilterAnd,
3676
- ),
3677
- );
3678
- }
3679
-
3680
- /** @internal */
3681
- export type DeploymentStream1DeploymentsNin$Outbound =
3682
- | string
3683
- | number
3684
- | boolean;
3685
-
3686
- /** @internal */
3687
- export const DeploymentStream1DeploymentsNin$outboundSchema: z.ZodType<
3688
- DeploymentStream1DeploymentsNin$Outbound,
3689
- z.ZodTypeDef,
3690
- DeploymentStream1DeploymentsNin
3691
- > = z.union([z.string(), z.number(), z.boolean()]);
3692
-
3693
- export function deploymentStream1DeploymentsNinToJSON(
3694
- deploymentStream1DeploymentsNin: DeploymentStream1DeploymentsNin,
3695
- ): string {
3696
- return JSON.stringify(
3697
- DeploymentStream1DeploymentsNin$outboundSchema.parse(
3698
- deploymentStream1DeploymentsNin,
3699
- ),
3700
- );
3701
- }
3702
-
3703
- /** @internal */
3704
- export type DeploymentStream1Nin$Outbound = {
3705
- nin: Array<string | number | boolean>;
3706
- };
3707
-
3708
- /** @internal */
3709
- export const DeploymentStream1Nin$outboundSchema: z.ZodType<
3710
- DeploymentStream1Nin$Outbound,
3711
- z.ZodTypeDef,
3712
- DeploymentStream1Nin
3713
- > = z.object({
3714
- nin: z.array(z.union([z.string(), z.number(), z.boolean()])),
3715
- });
3716
-
3717
- export function deploymentStream1NinToJSON(
3718
- deploymentStream1Nin: DeploymentStream1Nin,
3719
- ): string {
3720
- return JSON.stringify(
3721
- DeploymentStream1Nin$outboundSchema.parse(deploymentStream1Nin),
3722
- );
3723
- }
3724
-
3725
- /** @internal */
3726
- export type DeploymentStream1DeploymentsIn$Outbound = string | number | boolean;
3727
-
3728
- /** @internal */
3729
- export const DeploymentStream1DeploymentsIn$outboundSchema: z.ZodType<
3730
- DeploymentStream1DeploymentsIn$Outbound,
3731
- z.ZodTypeDef,
3732
- DeploymentStream1DeploymentsIn
3733
- > = z.union([z.string(), z.number(), z.boolean()]);
3734
-
3735
- export function deploymentStream1DeploymentsInToJSON(
3736
- deploymentStream1DeploymentsIn: DeploymentStream1DeploymentsIn,
3737
- ): string {
3738
- return JSON.stringify(
3739
- DeploymentStream1DeploymentsIn$outboundSchema.parse(
3740
- deploymentStream1DeploymentsIn,
3741
- ),
3742
- );
3743
- }
3744
-
3745
- /** @internal */
3746
- export type DeploymentStream1In$Outbound = {
3747
- in: Array<string | number | boolean>;
3748
- };
3749
-
3750
- /** @internal */
3751
- export const DeploymentStream1In$outboundSchema: z.ZodType<
3752
- DeploymentStream1In$Outbound,
3753
- z.ZodTypeDef,
3754
- DeploymentStream1In
3755
- > = z.object({
3756
- in: z.array(z.union([z.string(), z.number(), z.boolean()])),
3757
- });
3758
-
3759
- export function deploymentStream1InToJSON(
3760
- deploymentStream1In: DeploymentStream1In,
3761
- ): string {
3762
- return JSON.stringify(
3763
- DeploymentStream1In$outboundSchema.parse(deploymentStream1In),
3764
- );
3765
- }
3766
-
3767
- /** @internal */
3768
- export type OneLte$Outbound = {
3769
- lte: number;
3770
- };
3771
-
3772
- /** @internal */
3773
- export const OneLte$outboundSchema: z.ZodType<
3774
- OneLte$Outbound,
3775
- z.ZodTypeDef,
3776
- OneLte
3777
- > = z.object({
3778
- lte: z.number(),
3779
- });
3780
-
3781
- export function oneLteToJSON(oneLte: OneLte): string {
3782
- return JSON.stringify(OneLte$outboundSchema.parse(oneLte));
3783
- }
3784
-
3785
- /** @internal */
3786
- export type OneLt$Outbound = {
3787
- lt: number;
3788
- };
3789
-
3790
- /** @internal */
3791
- export const OneLt$outboundSchema: z.ZodType<
3792
- OneLt$Outbound,
3793
- z.ZodTypeDef,
3794
- OneLt
3795
- > = z.object({
3796
- lt: z.number(),
3797
- });
3798
-
3799
- export function oneLtToJSON(oneLt: OneLt): string {
3800
- return JSON.stringify(OneLt$outboundSchema.parse(oneLt));
3801
- }
3802
-
3803
- /** @internal */
3804
- export type OneGte$Outbound = {
3805
- gte: number;
3806
- };
3807
-
3808
- /** @internal */
3809
- export const OneGte$outboundSchema: z.ZodType<
3810
- OneGte$Outbound,
3811
- z.ZodTypeDef,
3812
- OneGte
3813
- > = z.object({
3814
- gte: z.number(),
3815
- });
3816
-
3817
- export function oneGteToJSON(oneGte: OneGte): string {
3818
- return JSON.stringify(OneGte$outboundSchema.parse(oneGte));
3819
- }
3820
-
3821
- /** @internal */
3822
- export type OneGt$Outbound = {
3823
- gt: number;
3824
- };
3825
-
3826
- /** @internal */
3827
- export const OneGt$outboundSchema: z.ZodType<
3828
- OneGt$Outbound,
3829
- z.ZodTypeDef,
3830
- OneGt
3831
- > = z.object({
3832
- gt: z.number(),
3833
- });
3834
-
3835
- export function oneGtToJSON(oneGt: OneGt): string {
3836
- return JSON.stringify(OneGt$outboundSchema.parse(oneGt));
3837
- }
3838
-
3839
- /** @internal */
3840
- export type DeploymentStream1DeploymentsNe$Outbound = string | number | boolean;
3841
-
3842
- /** @internal */
3843
- export const DeploymentStream1DeploymentsNe$outboundSchema: z.ZodType<
3844
- DeploymentStream1DeploymentsNe$Outbound,
3845
- z.ZodTypeDef,
3846
- DeploymentStream1DeploymentsNe
3847
- > = z.union([z.string(), z.number(), z.boolean()]);
3848
-
3849
- export function deploymentStream1DeploymentsNeToJSON(
3850
- deploymentStream1DeploymentsNe: DeploymentStream1DeploymentsNe,
3851
- ): string {
3852
- return JSON.stringify(
3853
- DeploymentStream1DeploymentsNe$outboundSchema.parse(
3854
- deploymentStream1DeploymentsNe,
3855
- ),
3856
- );
3857
- }
3858
-
3859
- /** @internal */
3860
- export type DeploymentStream1Ne$Outbound = {
3861
- ne: string | number | boolean;
3862
- };
3863
-
3864
- /** @internal */
3865
- export const DeploymentStream1Ne$outboundSchema: z.ZodType<
3866
- DeploymentStream1Ne$Outbound,
3867
- z.ZodTypeDef,
3868
- DeploymentStream1Ne
3869
- > = z.object({
3870
- ne: z.union([z.string(), z.number(), z.boolean()]),
3871
- });
3872
-
3873
- export function deploymentStream1NeToJSON(
3874
- deploymentStream1Ne: DeploymentStream1Ne,
3875
- ): string {
3876
- return JSON.stringify(
3877
- DeploymentStream1Ne$outboundSchema.parse(deploymentStream1Ne),
3878
- );
3879
- }
3880
-
3881
- /** @internal */
3882
- export type DeploymentStream1DeploymentsEq$Outbound = string | number | boolean;
3883
-
3884
- /** @internal */
3885
- export const DeploymentStream1DeploymentsEq$outboundSchema: z.ZodType<
3886
- DeploymentStream1DeploymentsEq$Outbound,
3887
- z.ZodTypeDef,
3888
- DeploymentStream1DeploymentsEq
3889
- > = z.union([z.string(), z.number(), z.boolean()]);
3890
-
3891
- export function deploymentStream1DeploymentsEqToJSON(
3892
- deploymentStream1DeploymentsEq: DeploymentStream1DeploymentsEq,
3893
- ): string {
3894
- return JSON.stringify(
3895
- DeploymentStream1DeploymentsEq$outboundSchema.parse(
3896
- deploymentStream1DeploymentsEq,
3897
- ),
3898
- );
3899
- }
3900
-
3901
- /** @internal */
3902
- export type DeploymentStream1Eq$Outbound = {
3903
- eq: string | number | boolean;
3904
- };
3905
-
3906
- /** @internal */
3907
- export const DeploymentStream1Eq$outboundSchema: z.ZodType<
3908
- DeploymentStream1Eq$Outbound,
3909
- z.ZodTypeDef,
3910
- DeploymentStream1Eq
3911
- > = z.object({
3912
- eq: z.union([z.string(), z.number(), z.boolean()]),
3913
- });
3914
-
3915
- export function deploymentStream1EqToJSON(
3916
- deploymentStream1Eq: DeploymentStream1Eq,
3917
- ): string {
3918
- return JSON.stringify(
3919
- DeploymentStream1Eq$outboundSchema.parse(deploymentStream1Eq),
3920
- );
3921
- }
3922
-
3923
- /** @internal */
3924
- export type KnowledgeFilter1$Outbound =
3925
- | DeploymentStream1Eq$Outbound
3926
- | DeploymentStream1Ne$Outbound
3927
- | OneGt$Outbound
3928
- | OneGte$Outbound
3929
- | OneLt$Outbound
3930
- | OneLte$Outbound
3931
- | DeploymentStream1In$Outbound
3932
- | DeploymentStream1Nin$Outbound;
3933
-
3934
- /** @internal */
3935
- export const KnowledgeFilter1$outboundSchema: z.ZodType<
3936
- KnowledgeFilter1$Outbound,
3937
- z.ZodTypeDef,
3938
- KnowledgeFilter1
3939
- > = z.union([
3940
- z.lazy(() => DeploymentStream1Eq$outboundSchema),
3941
- z.lazy(() => DeploymentStream1Ne$outboundSchema),
3942
- z.lazy(() => OneGt$outboundSchema),
3943
- z.lazy(() => OneGte$outboundSchema),
3944
- z.lazy(() => OneLt$outboundSchema),
3945
- z.lazy(() => OneLte$outboundSchema),
3946
- z.lazy(() => DeploymentStream1In$outboundSchema),
3947
- z.lazy(() => DeploymentStream1Nin$outboundSchema),
3948
- ]);
3949
-
3950
- export function knowledgeFilter1ToJSON(
3951
- knowledgeFilter1: KnowledgeFilter1,
3952
- ): string {
3953
- return JSON.stringify(
3954
- KnowledgeFilter1$outboundSchema.parse(knowledgeFilter1),
3955
- );
3956
- }
3957
-
3958
- /** @internal */
3959
- export type DeploymentStreamKnowledgeFilter$Outbound =
3960
- | DeploymentStreamKnowledgeFilterAnd$Outbound
3961
- | DeploymentStreamKnowledgeFilterOr$Outbound
3962
- | {
3963
- [k: string]:
3964
- | DeploymentStream1Eq$Outbound
3965
- | DeploymentStream1Ne$Outbound
3966
- | OneGt$Outbound
3967
- | OneGte$Outbound
3968
- | OneLt$Outbound
3969
- | OneLte$Outbound
3970
- | DeploymentStream1In$Outbound
3971
- | DeploymentStream1Nin$Outbound;
3972
- };
3973
-
3974
- /** @internal */
3975
- export const DeploymentStreamKnowledgeFilter$outboundSchema: z.ZodType<
3976
- DeploymentStreamKnowledgeFilter$Outbound,
3977
- z.ZodTypeDef,
3978
- DeploymentStreamKnowledgeFilter
3979
- > = z.union([
3980
- z.lazy(() => DeploymentStreamKnowledgeFilterAnd$outboundSchema),
3981
- z.lazy(() => DeploymentStreamKnowledgeFilterOr$outboundSchema),
3982
- z.record(z.union([
3983
- z.lazy(() => DeploymentStream1Eq$outboundSchema),
3984
- z.lazy(() => DeploymentStream1Ne$outboundSchema),
3985
- z.lazy(() => OneGt$outboundSchema),
3986
- z.lazy(() => OneGte$outboundSchema),
3987
- z.lazy(() => OneLt$outboundSchema),
3988
- z.lazy(() => OneLte$outboundSchema),
3989
- z.lazy(() => DeploymentStream1In$outboundSchema),
3990
- z.lazy(() => DeploymentStream1Nin$outboundSchema),
3991
- ])),
3992
- ]);
3993
-
3994
- export function deploymentStreamKnowledgeFilterToJSON(
3995
- deploymentStreamKnowledgeFilter: DeploymentStreamKnowledgeFilter,
3996
- ): string {
3997
- return JSON.stringify(
3998
- DeploymentStreamKnowledgeFilter$outboundSchema.parse(
3999
- deploymentStreamKnowledgeFilter,
4000
- ),
4001
- );
4002
- }
4003
-
4004
- /** @internal */
4005
- export type DeploymentStreamRequestBody$Outbound = {
4006
- key: string;
4007
- inputs?: { [k: string]: any } | undefined;
4008
- context?: { [k: string]: any } | undefined;
4009
- prefix_messages?:
4010
- | Array<
4011
- | PrefixMessagesSystemMessage$Outbound
4012
- | PrefixMessagesDeveloperMessage$Outbound
4013
- | PrefixMessagesUserMessage$Outbound
4014
- | PrefixMessagesAssistantMessage$Outbound
4015
- | PrefixMessagesToolMessage$Outbound
4016
- >
4017
- | undefined;
4018
- messages?:
4019
- | Array<
4020
- | DeploymentStreamMessagesSystemMessage$Outbound
4021
- | DeploymentStreamMessagesDeveloperMessage$Outbound
4022
- | DeploymentStreamMessagesUserMessage$Outbound
4023
- | DeploymentStreamMessagesAssistantMessage$Outbound
4024
- | DeploymentStreamMessagesToolMessage$Outbound
4025
- >
4026
- | undefined;
4027
- identity?: components.PublicIdentity$Outbound | undefined;
4028
- file_ids?: Array<string> | undefined;
4029
- metadata?: { [k: string]: any } | undefined;
4030
- extra_params?: { [k: string]: any } | undefined;
4031
- documents?: Array<DeploymentStreamDocuments$Outbound> | undefined;
4032
- invoke_options?: DeploymentStreamInvokeOptions$Outbound | undefined;
4033
- thread?: DeploymentStreamThread$Outbound | undefined;
4034
- knowledge_filter?:
4035
- | DeploymentStreamKnowledgeFilterAnd$Outbound
4036
- | DeploymentStreamKnowledgeFilterOr$Outbound
4037
- | {
4038
- [k: string]:
4039
- | DeploymentStream1Eq$Outbound
4040
- | DeploymentStream1Ne$Outbound
4041
- | OneGt$Outbound
4042
- | OneGte$Outbound
4043
- | OneLt$Outbound
4044
- | OneLte$Outbound
4045
- | DeploymentStream1In$Outbound
4046
- | DeploymentStream1Nin$Outbound;
4047
- }
4048
- | undefined;
4049
- };
4050
-
4051
- /** @internal */
4052
- export const DeploymentStreamRequestBody$outboundSchema: z.ZodType<
4053
- DeploymentStreamRequestBody$Outbound,
4054
- z.ZodTypeDef,
4055
- DeploymentStreamRequestBody
4056
- > = z.object({
4057
- key: z.string(),
4058
- inputs: z.record(z.any()).optional(),
4059
- context: z.record(z.any()).optional(),
4060
- prefixMessages: z.array(
4061
- z.union([
4062
- z.lazy(() => PrefixMessagesSystemMessage$outboundSchema),
4063
- z.lazy(() => PrefixMessagesDeveloperMessage$outboundSchema),
4064
- z.lazy(() => PrefixMessagesUserMessage$outboundSchema),
4065
- z.lazy(() => PrefixMessagesAssistantMessage$outboundSchema),
4066
- z.lazy(() => PrefixMessagesToolMessage$outboundSchema),
4067
- ]),
4068
- ).optional(),
4069
- messages: z.array(
4070
- z.union([
4071
- z.lazy(() => DeploymentStreamMessagesSystemMessage$outboundSchema),
4072
- z.lazy(() => DeploymentStreamMessagesDeveloperMessage$outboundSchema),
4073
- z.lazy(() => DeploymentStreamMessagesUserMessage$outboundSchema),
4074
- z.lazy(() => DeploymentStreamMessagesAssistantMessage$outboundSchema),
4075
- z.lazy(() => DeploymentStreamMessagesToolMessage$outboundSchema),
4076
- ]),
4077
- ).optional(),
4078
- identity: components.PublicIdentity$outboundSchema.optional(),
4079
- fileIds: z.array(z.string()).optional(),
4080
- metadata: z.record(z.any()).optional(),
4081
- extraParams: z.record(z.any()).optional(),
4082
- documents: z.array(z.lazy(() => DeploymentStreamDocuments$outboundSchema))
4083
- .optional(),
4084
- invokeOptions: z.lazy(() => DeploymentStreamInvokeOptions$outboundSchema)
4085
- .optional(),
4086
- thread: z.lazy(() => DeploymentStreamThread$outboundSchema).optional(),
4087
- knowledgeFilter: z.union([
4088
- z.lazy(() => DeploymentStreamKnowledgeFilterAnd$outboundSchema),
4089
- z.lazy(() => DeploymentStreamKnowledgeFilterOr$outboundSchema),
4090
- z.record(
4091
- z.union([
4092
- z.lazy(() => DeploymentStream1Eq$outboundSchema),
4093
- z.lazy(() => DeploymentStream1Ne$outboundSchema),
4094
- z.lazy(() => OneGt$outboundSchema),
4095
- z.lazy(() => OneGte$outboundSchema),
4096
- z.lazy(() => OneLt$outboundSchema),
4097
- z.lazy(() => OneLte$outboundSchema),
4098
- z.lazy(() => DeploymentStream1In$outboundSchema),
4099
- z.lazy(() => DeploymentStream1Nin$outboundSchema),
4100
- ]),
4101
- ),
4102
- ]).optional(),
4103
- }).transform((v) => {
4104
- return remap$(v, {
4105
- prefixMessages: "prefix_messages",
4106
- fileIds: "file_ids",
4107
- extraParams: "extra_params",
4108
- invokeOptions: "invoke_options",
4109
- knowledgeFilter: "knowledge_filter",
4110
- });
4111
- });
4112
-
4113
- export function deploymentStreamRequestBodyToJSON(
4114
- deploymentStreamRequestBody: DeploymentStreamRequestBody,
4115
- ): string {
4116
- return JSON.stringify(
4117
- DeploymentStreamRequestBody$outboundSchema.parse(
4118
- deploymentStreamRequestBody,
4119
- ),
4120
- );
4121
- }
4122
-
4123
- /** @internal */
4124
- export const DeploymentStreamObject$inboundSchema: z.ZodNativeEnum<
4125
- typeof DeploymentStreamObject
4126
- > = z.nativeEnum(DeploymentStreamObject);
4127
-
4128
- /** @internal */
4129
- export const DeploymentStreamProvider$inboundSchema: z.ZodNativeEnum<
4130
- typeof DeploymentStreamProvider
4131
- > = z.nativeEnum(DeploymentStreamProvider);
4132
-
4133
- /** @internal */
4134
- export const DeploymentStreamTelemetry$inboundSchema: z.ZodType<
4135
- DeploymentStreamTelemetry,
4136
- z.ZodTypeDef,
4137
- unknown
4138
- > = z.object({
4139
- trace_id: z.string(),
4140
- span_id: z.string(),
4141
- }).transform((v) => {
4142
- return remap$(v, {
4143
- "trace_id": "traceId",
4144
- "span_id": "spanId",
4145
- });
4146
- });
4147
-
4148
- export function deploymentStreamTelemetryFromJSON(
4149
- jsonString: string,
4150
- ): SafeParseResult<DeploymentStreamTelemetry, SDKValidationError> {
4151
- return safeParse(
4152
- jsonString,
4153
- (x) => DeploymentStreamTelemetry$inboundSchema.parse(JSON.parse(x)),
4154
- `Failed to parse 'DeploymentStreamTelemetry' from JSON`,
4155
- );
4156
- }
4157
-
4158
- /** @internal */
4159
- export const DeploymentStreamDeploymentsMetadata$inboundSchema: z.ZodType<
4160
- DeploymentStreamDeploymentsMetadata,
4161
- z.ZodTypeDef,
4162
- unknown
4163
- > = z.object({
4164
- file_name: z.string(),
4165
- page_number: z.nullable(z.number()),
4166
- file_type: z.string(),
4167
- rerank_score: z.number().optional(),
4168
- search_score: z.number(),
4169
- }).transform((v) => {
4170
- return remap$(v, {
4171
- "file_name": "fileName",
4172
- "page_number": "pageNumber",
4173
- "file_type": "fileType",
4174
- "rerank_score": "rerankScore",
4175
- "search_score": "searchScore",
4176
- });
4177
- });
4178
-
4179
- export function deploymentStreamDeploymentsMetadataFromJSON(
4180
- jsonString: string,
4181
- ): SafeParseResult<DeploymentStreamDeploymentsMetadata, SDKValidationError> {
4182
- return safeParse(
4183
- jsonString,
4184
- (x) =>
4185
- DeploymentStreamDeploymentsMetadata$inboundSchema.parse(JSON.parse(x)),
4186
- `Failed to parse 'DeploymentStreamDeploymentsMetadata' from JSON`,
4187
- );
4188
- }
4189
-
4190
- /** @internal */
4191
- export const DeploymentStreamRetrievals$inboundSchema: z.ZodType<
4192
- DeploymentStreamRetrievals,
4193
- z.ZodTypeDef,
4194
- unknown
4195
- > = z.object({
4196
- document: z.string(),
4197
- metadata: z.lazy(() => DeploymentStreamDeploymentsMetadata$inboundSchema),
4198
- });
4199
-
4200
- export function deploymentStreamRetrievalsFromJSON(
4201
- jsonString: string,
4202
- ): SafeParseResult<DeploymentStreamRetrievals, SDKValidationError> {
4203
- return safeParse(
4204
- jsonString,
4205
- (x) => DeploymentStreamRetrievals$inboundSchema.parse(JSON.parse(x)),
4206
- `Failed to parse 'DeploymentStreamRetrievals' from JSON`,
4207
- );
4208
- }
4209
-
4210
- /** @internal */
4211
- export const DeploymentStreamPromptTokensDetails$inboundSchema: z.ZodType<
4212
- DeploymentStreamPromptTokensDetails,
4213
- z.ZodTypeDef,
4214
- unknown
4215
- > = z.object({
4216
- cached_tokens: z.nullable(z.number()).optional(),
4217
- }).transform((v) => {
4218
- return remap$(v, {
4219
- "cached_tokens": "cachedTokens",
4220
- });
4221
- });
4222
-
4223
- export function deploymentStreamPromptTokensDetailsFromJSON(
4224
- jsonString: string,
4225
- ): SafeParseResult<DeploymentStreamPromptTokensDetails, SDKValidationError> {
4226
- return safeParse(
4227
- jsonString,
4228
- (x) =>
4229
- DeploymentStreamPromptTokensDetails$inboundSchema.parse(JSON.parse(x)),
4230
- `Failed to parse 'DeploymentStreamPromptTokensDetails' from JSON`,
4231
- );
4232
- }
4233
-
4234
- /** @internal */
4235
- export const DeploymentStreamCompletionTokensDetails$inboundSchema: z.ZodType<
4236
- DeploymentStreamCompletionTokensDetails,
4237
- z.ZodTypeDef,
4238
- unknown
4239
- > = z.object({
4240
- reasoning_tokens: z.nullable(z.number()).optional(),
4241
- }).transform((v) => {
4242
- return remap$(v, {
4243
- "reasoning_tokens": "reasoningTokens",
4244
- });
4245
- });
4246
-
4247
- export function deploymentStreamCompletionTokensDetailsFromJSON(
4248
- jsonString: string,
4249
- ): SafeParseResult<
4250
- DeploymentStreamCompletionTokensDetails,
4251
- SDKValidationError
4252
- > {
4253
- return safeParse(
4254
- jsonString,
4255
- (x) =>
4256
- DeploymentStreamCompletionTokensDetails$inboundSchema.parse(
4257
- JSON.parse(x),
4258
- ),
4259
- `Failed to parse 'DeploymentStreamCompletionTokensDetails' from JSON`,
4260
- );
4261
- }
4262
-
4263
- /** @internal */
4264
- export const DeploymentStreamUsage$inboundSchema: z.ZodType<
4265
- DeploymentStreamUsage,
4266
- z.ZodTypeDef,
4267
- unknown
4268
- > = z.object({
4269
- total_tokens: z.number().optional(),
4270
- prompt_tokens: z.number().optional(),
4271
- completion_tokens: z.number().optional(),
4272
- prompt_tokens_details: z.lazy(() =>
4273
- DeploymentStreamPromptTokensDetails$inboundSchema
4274
- ).optional(),
4275
- completion_tokens_details: z.nullable(
4276
- z.lazy(() => DeploymentStreamCompletionTokensDetails$inboundSchema),
4277
- ).optional(),
4278
- }).transform((v) => {
4279
- return remap$(v, {
4280
- "total_tokens": "totalTokens",
4281
- "prompt_tokens": "promptTokens",
4282
- "completion_tokens": "completionTokens",
4283
- "prompt_tokens_details": "promptTokensDetails",
4284
- "completion_tokens_details": "completionTokensDetails",
4285
- });
4286
- });
4287
-
4288
- export function deploymentStreamUsageFromJSON(
4289
- jsonString: string,
4290
- ): SafeParseResult<DeploymentStreamUsage, SDKValidationError> {
4291
- return safeParse(
4292
- jsonString,
4293
- (x) => DeploymentStreamUsage$inboundSchema.parse(JSON.parse(x)),
4294
- `Failed to parse 'DeploymentStreamUsage' from JSON`,
4295
- );
4296
- }
4297
-
4298
- /** @internal */
4299
- export const DeploymentStreamMessageDeploymentsResponseRole$inboundSchema:
4300
- z.ZodNativeEnum<typeof DeploymentStreamMessageDeploymentsResponseRole> = z
4301
- .nativeEnum(DeploymentStreamMessageDeploymentsResponseRole);
4302
-
4303
- /** @internal */
4304
- export const DeploymentStreamMessage3$inboundSchema: z.ZodType<
4305
- DeploymentStreamMessage3,
4306
- z.ZodTypeDef,
4307
- unknown
4308
- > = z.object({
4309
- type: z.literal("image"),
4310
- role: DeploymentStreamMessageDeploymentsResponseRole$inboundSchema,
4311
- url: z.string(),
4312
- });
4313
-
4314
- export function deploymentStreamMessage3FromJSON(
4315
- jsonString: string,
4316
- ): SafeParseResult<DeploymentStreamMessage3, SDKValidationError> {
4317
- return safeParse(
4318
- jsonString,
4319
- (x) => DeploymentStreamMessage3$inboundSchema.parse(JSON.parse(x)),
4320
- `Failed to parse 'DeploymentStreamMessage3' from JSON`,
4321
- );
4322
- }
4323
-
4324
- /** @internal */
4325
- export const DeploymentStreamMessageDeploymentsRole$inboundSchema:
4326
- z.ZodNativeEnum<typeof DeploymentStreamMessageDeploymentsRole> = z.nativeEnum(
4327
- DeploymentStreamMessageDeploymentsRole,
4328
- );
4329
-
4330
- /** @internal */
4331
- export const DeploymentStreamMessage2$inboundSchema: z.ZodType<
4332
- DeploymentStreamMessage2,
4333
- z.ZodTypeDef,
4334
- unknown
4335
- > = z.object({
4336
- type: z.literal("content"),
4337
- role: DeploymentStreamMessageDeploymentsRole$inboundSchema,
4338
- content: z.nullable(z.string()),
4339
- reasoning: z.string().optional(),
4340
- reasoning_signature: z.string().optional(),
4341
- redacted_reasoning: z.string().optional(),
4342
- }).transform((v) => {
4343
- return remap$(v, {
4344
- "reasoning_signature": "reasoningSignature",
4345
- "redacted_reasoning": "redactedReasoning",
4346
- });
4347
- });
4348
-
4349
- export function deploymentStreamMessage2FromJSON(
4350
- jsonString: string,
4351
- ): SafeParseResult<DeploymentStreamMessage2, SDKValidationError> {
4352
- return safeParse(
4353
- jsonString,
4354
- (x) => DeploymentStreamMessage2$inboundSchema.parse(JSON.parse(x)),
4355
- `Failed to parse 'DeploymentStreamMessage2' from JSON`,
4356
- );
4357
- }
4358
-
4359
- /** @internal */
4360
- export const DeploymentStreamMessageRole$inboundSchema: z.ZodNativeEnum<
4361
- typeof DeploymentStreamMessageRole
4362
- > = z.nativeEnum(DeploymentStreamMessageRole);
4363
-
4364
- /** @internal */
4365
- export const DeploymentStreamMessageDeploymentsResponse200Type$inboundSchema:
4366
- z.ZodNativeEnum<typeof DeploymentStreamMessageDeploymentsResponse200Type> = z
4367
- .nativeEnum(DeploymentStreamMessageDeploymentsResponse200Type);
4368
-
4369
- /** @internal */
4370
- export const DeploymentStreamMessageFunction$inboundSchema: z.ZodType<
4371
- DeploymentStreamMessageFunction,
4372
- z.ZodTypeDef,
4373
- unknown
4374
- > = z.object({
4375
- name: z.string(),
4376
- arguments: z.string(),
4377
- });
4378
-
4379
- export function deploymentStreamMessageFunctionFromJSON(
4380
- jsonString: string,
4381
- ): SafeParseResult<DeploymentStreamMessageFunction, SDKValidationError> {
4382
- return safeParse(
4383
- jsonString,
4384
- (x) => DeploymentStreamMessageFunction$inboundSchema.parse(JSON.parse(x)),
4385
- `Failed to parse 'DeploymentStreamMessageFunction' from JSON`,
4386
- );
4387
- }
4388
-
4389
- /** @internal */
4390
- export const DeploymentStreamMessageToolCalls$inboundSchema: z.ZodType<
4391
- DeploymentStreamMessageToolCalls,
4392
- z.ZodTypeDef,
4393
- unknown
4394
- > = z.object({
4395
- id: z.string().optional(),
4396
- index: z.number().optional(),
4397
- type: DeploymentStreamMessageDeploymentsResponse200Type$inboundSchema,
4398
- function: z.lazy(() => DeploymentStreamMessageFunction$inboundSchema),
4399
- });
4400
-
4401
- export function deploymentStreamMessageToolCallsFromJSON(
4402
- jsonString: string,
4403
- ): SafeParseResult<DeploymentStreamMessageToolCalls, SDKValidationError> {
4404
- return safeParse(
4405
- jsonString,
4406
- (x) => DeploymentStreamMessageToolCalls$inboundSchema.parse(JSON.parse(x)),
4407
- `Failed to parse 'DeploymentStreamMessageToolCalls' from JSON`,
4408
- );
4409
- }
4410
-
4411
- /** @internal */
4412
- export const DeploymentStreamMessage1$inboundSchema: z.ZodType<
4413
- DeploymentStreamMessage1,
4414
- z.ZodTypeDef,
4415
- unknown
4416
- > = z.object({
4417
- type: z.literal("tool_calls"),
4418
- role: DeploymentStreamMessageRole$inboundSchema,
4419
- content: z.nullable(z.string()).optional(),
4420
- tool_calls: z.array(
4421
- z.lazy(() => DeploymentStreamMessageToolCalls$inboundSchema),
4422
- ),
4423
- reasoning: z.string().optional(),
4424
- reasoning_signature: z.string().optional(),
4425
- redacted_reasoning: z.string().optional(),
4426
- }).transform((v) => {
4427
- return remap$(v, {
4428
- "tool_calls": "toolCalls",
4429
- "reasoning_signature": "reasoningSignature",
4430
- "redacted_reasoning": "redactedReasoning",
4431
- });
4432
- });
4433
-
4434
- export function deploymentStreamMessage1FromJSON(
4435
- jsonString: string,
4436
- ): SafeParseResult<DeploymentStreamMessage1, SDKValidationError> {
4437
- return safeParse(
4438
- jsonString,
4439
- (x) => DeploymentStreamMessage1$inboundSchema.parse(JSON.parse(x)),
4440
- `Failed to parse 'DeploymentStreamMessage1' from JSON`,
4441
- );
4442
- }
4443
-
4444
- /** @internal */
4445
- export const DeploymentStreamMessage$inboundSchema: z.ZodType<
4446
- DeploymentStreamMessage,
4447
- z.ZodTypeDef,
4448
- unknown
4449
- > = z.union([
4450
- z.lazy(() => DeploymentStreamMessage1$inboundSchema),
4451
- z.lazy(() => DeploymentStreamMessage2$inboundSchema),
4452
- z.lazy(() => DeploymentStreamMessage3$inboundSchema),
4453
- ]);
4454
-
4455
- export function deploymentStreamMessageFromJSON(
4456
- jsonString: string,
4457
- ): SafeParseResult<DeploymentStreamMessage, SDKValidationError> {
4458
- return safeParse(
4459
- jsonString,
4460
- (x) => DeploymentStreamMessage$inboundSchema.parse(JSON.parse(x)),
4461
- `Failed to parse 'DeploymentStreamMessage' from JSON`,
4462
- );
4463
- }
4464
-
4465
- /** @internal */
4466
- export const DeploymentStreamChoices$inboundSchema: z.ZodType<
4467
- DeploymentStreamChoices,
4468
- z.ZodTypeDef,
4469
- unknown
4470
- > = z.object({
4471
- index: z.number(),
4472
- message: z.union([
4473
- z.lazy(() => DeploymentStreamMessage1$inboundSchema),
4474
- z.lazy(() => DeploymentStreamMessage2$inboundSchema),
4475
- z.lazy(() => DeploymentStreamMessage3$inboundSchema),
4476
- ]),
4477
- finish_reason: z.nullable(z.string()).optional(),
4478
- }).transform((v) => {
4479
- return remap$(v, {
4480
- "finish_reason": "finishReason",
4481
- });
4482
- });
4483
-
4484
- export function deploymentStreamChoicesFromJSON(
4485
- jsonString: string,
4486
- ): SafeParseResult<DeploymentStreamChoices, SDKValidationError> {
4487
- return safeParse(
4488
- jsonString,
4489
- (x) => DeploymentStreamChoices$inboundSchema.parse(JSON.parse(x)),
4490
- `Failed to parse 'DeploymentStreamChoices' from JSON`,
4491
- );
4492
- }
4493
-
4494
- /** @internal */
4495
- export const DeploymentStreamData$inboundSchema: z.ZodType<
4496
- DeploymentStreamData,
4497
- z.ZodTypeDef,
4498
- unknown
4499
- > = z.object({
4500
- id: z.string(),
4501
- created: z.string().datetime({ offset: true }).transform(v => new Date(v)),
4502
- object: DeploymentStreamObject$inboundSchema,
4503
- model: z.string(),
4504
- provider: DeploymentStreamProvider$inboundSchema,
4505
- is_final: z.boolean(),
4506
- integration_id: z.string().optional(),
4507
- telemetry: z.lazy(() => DeploymentStreamTelemetry$inboundSchema),
4508
- finalized: z.string().datetime({ offset: true }).transform(v => new Date(v))
4509
- .optional(),
4510
- system_fingerprint: z.nullable(z.string()).optional(),
4511
- retrievals: z.array(z.lazy(() => DeploymentStreamRetrievals$inboundSchema))
4512
- .optional(),
4513
- provider_response: z.any().optional(),
4514
- usage: z.nullable(z.lazy(() => DeploymentStreamUsage$inboundSchema))
4515
- .optional(),
4516
- choices: z.array(z.lazy(() => DeploymentStreamChoices$inboundSchema)),
4517
- }).transform((v) => {
4518
- return remap$(v, {
4519
- "is_final": "isFinal",
4520
- "integration_id": "integrationId",
4521
- "system_fingerprint": "systemFingerprint",
4522
- "provider_response": "providerResponse",
4523
- });
4524
- });
4525
-
4526
- export function deploymentStreamDataFromJSON(
4527
- jsonString: string,
4528
- ): SafeParseResult<DeploymentStreamData, SDKValidationError> {
4529
- return safeParse(
4530
- jsonString,
4531
- (x) => DeploymentStreamData$inboundSchema.parse(JSON.parse(x)),
4532
- `Failed to parse 'DeploymentStreamData' from JSON`,
4533
- );
4534
- }
4535
-
4536
- /** @internal */
4537
- export const DeploymentStreamResponseBody$inboundSchema: z.ZodType<
4538
- DeploymentStreamResponseBody,
4539
- z.ZodTypeDef,
4540
- unknown
4541
- > = z.object({
4542
- data: z.unknown().optional().transform((v, ctx) => {
4543
- if (v === undefined) return undefined;
4544
- if (typeof v !== "string") return v;
4545
- try {
4546
- return JSON.parse(v);
4547
- } catch (err) {
4548
- ctx.addIssue({ code: "custom", message: `malformed json: ${err}` });
4549
- return z.NEVER;
4550
- }
4551
- }).pipe(z.lazy(() => DeploymentStreamData$inboundSchema).optional()),
4552
- });
4553
-
4554
- export function deploymentStreamResponseBodyFromJSON(
4555
- jsonString: string,
4556
- ): SafeParseResult<DeploymentStreamResponseBody, SDKValidationError> {
4557
- return safeParse(
4558
- jsonString,
4559
- (x) => DeploymentStreamResponseBody$inboundSchema.parse(JSON.parse(x)),
4560
- `Failed to parse 'DeploymentStreamResponseBody' from JSON`,
4561
- );
4562
- }