@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,3446 +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 { ClosedEnum } from "../../types/enums.js";
8
- import {
9
- AudioContentPartSchema,
10
- AudioContentPartSchema$Outbound,
11
- AudioContentPartSchema$outboundSchema,
12
- } from "./audiocontentpartschema.js";
13
- import {
14
- FileContentPartSchema,
15
- FileContentPartSchema$Outbound,
16
- FileContentPartSchema$outboundSchema,
17
- } from "./filecontentpartschema.js";
18
- import {
19
- ImageContentPartSchema,
20
- ImageContentPartSchema$Outbound,
21
- ImageContentPartSchema$outboundSchema,
22
- } from "./imagecontentpartschema.js";
23
- import {
24
- PublicIdentity,
25
- PublicIdentity$Outbound,
26
- PublicIdentity$outboundSchema,
27
- } from "./publicidentity.js";
28
- import {
29
- ReasoningPartSchema,
30
- ReasoningPartSchema$Outbound,
31
- ReasoningPartSchema$outboundSchema,
32
- } from "./reasoningpartschema.js";
33
- import {
34
- RedactedReasoningPartSchema,
35
- RedactedReasoningPartSchema$Outbound,
36
- RedactedReasoningPartSchema$outboundSchema,
37
- } from "./redactedreasoningpartschema.js";
38
- import {
39
- RefusalPartSchema,
40
- RefusalPartSchema$Outbound,
41
- RefusalPartSchema$outboundSchema,
42
- } from "./refusalpartschema.js";
43
- import {
44
- TextContentPartSchema,
45
- TextContentPartSchema$Outbound,
46
- TextContentPartSchema$outboundSchema,
47
- } from "./textcontentpartschema.js";
48
-
49
- export type InvokeDeploymentRequestContentPrefixMessages2 =
50
- TextContentPartSchema;
51
-
52
- /**
53
- * The contents of the tool message.
54
- */
55
- export type InvokeDeploymentRequestPrefixMessages5Content =
56
- | string
57
- | Array<TextContentPartSchema>;
58
-
59
- /**
60
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
61
- */
62
- export const InvokeDeploymentRequestPrefixMessagesType = {
63
- Ephemeral: "ephemeral",
64
- } as const;
65
- /**
66
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
67
- */
68
- export type InvokeDeploymentRequestPrefixMessagesType = ClosedEnum<
69
- typeof InvokeDeploymentRequestPrefixMessagesType
70
- >;
71
-
72
- /**
73
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
74
- *
75
- * @remarks
76
- *
77
- * - `5m`: 5 minutes
78
- * - `1h`: 1 hour
79
- *
80
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
81
- */
82
- export const PrefixMessagesTtl = {
83
- Fivem: "5m",
84
- Oneh: "1h",
85
- } as const;
86
- /**
87
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
88
- *
89
- * @remarks
90
- *
91
- * - `5m`: 5 minutes
92
- * - `1h`: 1 hour
93
- *
94
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
95
- */
96
- export type PrefixMessagesTtl = ClosedEnum<typeof PrefixMessagesTtl>;
97
-
98
- export type PrefixMessagesCacheControl = {
99
- /**
100
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
101
- */
102
- type: InvokeDeploymentRequestPrefixMessagesType;
103
- /**
104
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
105
- *
106
- * @remarks
107
- *
108
- * - `5m`: 5 minutes
109
- * - `1h`: 1 hour
110
- *
111
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
112
- */
113
- ttl?: PrefixMessagesTtl | undefined;
114
- };
115
-
116
- export type ToolMessage = {
117
- /**
118
- * The role of the messages author, in this case tool.
119
- */
120
- role: "tool";
121
- /**
122
- * The contents of the tool message.
123
- */
124
- content: string | Array<TextContentPartSchema>;
125
- /**
126
- * Tool call that this message is responding to.
127
- */
128
- toolCallId: string | null;
129
- cacheControl?: PrefixMessagesCacheControl | undefined;
130
- };
131
-
132
- export type InvokeDeploymentRequestContent2 =
133
- | (TextContentPartSchema & { type: "text" })
134
- | RefusalPartSchema
135
- | ReasoningPartSchema
136
- | RedactedReasoningPartSchema;
137
-
138
- /**
139
- * The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
140
- */
141
- export type InvokeDeploymentRequestPrefixMessages4Content =
142
- | string
143
- | Array<
144
- | (TextContentPartSchema & { type: "text" })
145
- | RefusalPartSchema
146
- | ReasoningPartSchema
147
- | RedactedReasoningPartSchema
148
- >;
149
-
150
- /**
151
- * Data about a previous audio response from the model.
152
- */
153
- export type Audio = {
154
- /**
155
- * Unique identifier for a previous audio response from the model.
156
- */
157
- id: string;
158
- };
159
-
160
- /**
161
- * The type of the tool. Currently, only `function` is supported.
162
- */
163
- export const PrefixMessagesType = {
164
- Function: "function",
165
- } as const;
166
- /**
167
- * The type of the tool. Currently, only `function` is supported.
168
- */
169
- export type PrefixMessagesType = ClosedEnum<typeof PrefixMessagesType>;
170
-
171
- export type PrefixMessagesFunction = {
172
- /**
173
- * The name of the function to call.
174
- */
175
- name?: string | undefined;
176
- /**
177
- * 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.
178
- */
179
- arguments?: string | undefined;
180
- };
181
-
182
- export type ToolCalls = {
183
- /**
184
- * The ID of the tool call.
185
- */
186
- id: string;
187
- /**
188
- * The type of the tool. Currently, only `function` is supported.
189
- */
190
- type: PrefixMessagesType;
191
- function: PrefixMessagesFunction;
192
- /**
193
- * Encrypted representation of the model internal reasoning state during function calling. Required by Gemini 3 models when continuing a conversation after a tool call.
194
- */
195
- thoughtSignature?: string | undefined;
196
- };
197
-
198
- export type AssistantMessage = {
199
- /**
200
- * Provider reasoning content that must be replayed with assistant tool calls when continuing a reasoning-model conversation.
201
- */
202
- reasoningContent?: string | undefined;
203
- /**
204
- * The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
205
- */
206
- content?:
207
- | string
208
- | Array<
209
- | (TextContentPartSchema & { type: "text" })
210
- | RefusalPartSchema
211
- | ReasoningPartSchema
212
- | RedactedReasoningPartSchema
213
- >
214
- | null
215
- | undefined;
216
- /**
217
- * The refusal message by the assistant.
218
- */
219
- refusal?: string | null | undefined;
220
- /**
221
- * The role of the messages author, in this case `assistant`.
222
- */
223
- role: "assistant";
224
- /**
225
- * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
226
- */
227
- name?: string | undefined;
228
- /**
229
- * Data about a previous audio response from the model.
230
- */
231
- audio?: Audio | null | undefined;
232
- /**
233
- * The tool calls generated by the model, such as function calls.
234
- */
235
- toolCalls?: Array<ToolCalls> | undefined;
236
- };
237
-
238
- /**
239
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
240
- */
241
- export const InvokeDeploymentRequest2PrefixMessagesType = {
242
- Ephemeral: "ephemeral",
243
- } as const;
244
- /**
245
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
246
- */
247
- export type InvokeDeploymentRequest2PrefixMessagesType = ClosedEnum<
248
- typeof InvokeDeploymentRequest2PrefixMessagesType
249
- >;
250
-
251
- /**
252
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
253
- *
254
- * @remarks
255
- *
256
- * - `5m`: 5 minutes
257
- * - `1h`: 1 hour
258
- *
259
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
260
- */
261
- export const TwoTtl = {
262
- Fivem: "5m",
263
- Oneh: "1h",
264
- } as const;
265
- /**
266
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
267
- *
268
- * @remarks
269
- *
270
- * - `5m`: 5 minutes
271
- * - `1h`: 1 hour
272
- *
273
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
274
- */
275
- export type TwoTtl = ClosedEnum<typeof TwoTtl>;
276
-
277
- export type TwoCacheControl = {
278
- /**
279
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
280
- */
281
- type: InvokeDeploymentRequest2PrefixMessagesType;
282
- /**
283
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
284
- *
285
- * @remarks
286
- *
287
- * - `5m`: 5 minutes
288
- * - `1h`: 1 hour
289
- *
290
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
291
- */
292
- ttl?: TwoTtl | undefined;
293
- };
294
-
295
- export type Two4 = {
296
- /**
297
- * The type of the content part. Always `file`.
298
- */
299
- type: "file";
300
- cacheControl?: TwoCacheControl | undefined;
301
- /**
302
- * File data for the content part. Must contain either file_data or uri, but not both.
303
- */
304
- file: FileContentPartSchema;
305
- };
306
-
307
- export type Content2 =
308
- | (TextContentPartSchema & { type: "text" })
309
- | ImageContentPartSchema
310
- | AudioContentPartSchema
311
- | Two4;
312
-
313
- /**
314
- * The contents of the user message.
315
- */
316
- export type InvokeDeploymentRequestPrefixMessagesContent =
317
- | string
318
- | Array<
319
- | (TextContentPartSchema & { type: "text" })
320
- | ImageContentPartSchema
321
- | AudioContentPartSchema
322
- | Two4
323
- >;
324
-
325
- export type UserMessage = {
326
- /**
327
- * The role of the messages author, in this case `user`.
328
- */
329
- role: "user";
330
- /**
331
- * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
332
- */
333
- name?: string | undefined;
334
- /**
335
- * The contents of the user message.
336
- */
337
- content:
338
- | string
339
- | Array<
340
- | (TextContentPartSchema & { type: "text" })
341
- | ImageContentPartSchema
342
- | AudioContentPartSchema
343
- | Two4
344
- >;
345
- };
346
-
347
- /**
348
- * The contents of the developer message.
349
- */
350
- export type PrefixMessagesContent = string | Array<TextContentPartSchema>;
351
-
352
- export type DeveloperMessage = {
353
- /**
354
- * The role of the messages author, in this case `developer`.
355
- */
356
- role: "developer";
357
- /**
358
- * The contents of the developer message.
359
- */
360
- content: string | Array<TextContentPartSchema>;
361
- /**
362
- * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
363
- */
364
- name?: string | undefined;
365
- };
366
-
367
- /**
368
- * The contents of the system message.
369
- */
370
- export type Content = string | Array<TextContentPartSchema>;
371
-
372
- /**
373
- * Developer-provided instructions that the model should follow, regardless of messages sent by the user.
374
- */
375
- export type SystemMessage = {
376
- /**
377
- * The role of the messages author, in this case `system`.
378
- */
379
- role: "system";
380
- /**
381
- * The contents of the system message.
382
- */
383
- content: string | Array<TextContentPartSchema>;
384
- /**
385
- * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
386
- */
387
- name?: string | undefined;
388
- };
389
-
390
- export type PrefixMessages =
391
- | SystemMessage
392
- | DeveloperMessage
393
- | UserMessage
394
- | AssistantMessage
395
- | ToolMessage;
396
-
397
- export type InvokeDeploymentRequestContentMessages52 = TextContentPartSchema;
398
-
399
- /**
400
- * The contents of the tool message.
401
- */
402
- export type InvokeDeploymentRequestMessages5Content =
403
- | string
404
- | Array<TextContentPartSchema>;
405
-
406
- /**
407
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
408
- */
409
- export const InvokeDeploymentRequestMessagesType = {
410
- Ephemeral: "ephemeral",
411
- } as const;
412
- /**
413
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
414
- */
415
- export type InvokeDeploymentRequestMessagesType = ClosedEnum<
416
- typeof InvokeDeploymentRequestMessagesType
417
- >;
418
-
419
- /**
420
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
421
- *
422
- * @remarks
423
- *
424
- * - `5m`: 5 minutes
425
- * - `1h`: 1 hour
426
- *
427
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
428
- */
429
- export const MessagesTtl = {
430
- Fivem: "5m",
431
- Oneh: "1h",
432
- } as const;
433
- /**
434
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
435
- *
436
- * @remarks
437
- *
438
- * - `5m`: 5 minutes
439
- * - `1h`: 1 hour
440
- *
441
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
442
- */
443
- export type MessagesTtl = ClosedEnum<typeof MessagesTtl>;
444
-
445
- export type MessagesCacheControl = {
446
- /**
447
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
448
- */
449
- type: InvokeDeploymentRequestMessagesType;
450
- /**
451
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
452
- *
453
- * @remarks
454
- *
455
- * - `5m`: 5 minutes
456
- * - `1h`: 1 hour
457
- *
458
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
459
- */
460
- ttl?: MessagesTtl | undefined;
461
- };
462
-
463
- export type MessagesToolMessage = {
464
- /**
465
- * The role of the messages author, in this case tool.
466
- */
467
- role: "tool";
468
- /**
469
- * The contents of the tool message.
470
- */
471
- content: string | Array<TextContentPartSchema>;
472
- /**
473
- * Tool call that this message is responding to.
474
- */
475
- toolCallId: string | null;
476
- cacheControl?: MessagesCacheControl | undefined;
477
- };
478
-
479
- export type InvokeDeploymentRequestContentMessages42 =
480
- | (TextContentPartSchema & { type: "text" })
481
- | RefusalPartSchema
482
- | ReasoningPartSchema
483
- | RedactedReasoningPartSchema;
484
-
485
- /**
486
- * The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
487
- */
488
- export type InvokeDeploymentRequestMessages4Content =
489
- | string
490
- | Array<
491
- | (TextContentPartSchema & { type: "text" })
492
- | RefusalPartSchema
493
- | ReasoningPartSchema
494
- | RedactedReasoningPartSchema
495
- >;
496
-
497
- /**
498
- * Data about a previous audio response from the model.
499
- */
500
- export type MessagesAudio = {
501
- /**
502
- * Unique identifier for a previous audio response from the model.
503
- */
504
- id: string;
505
- };
506
-
507
- /**
508
- * The type of the tool. Currently, only `function` is supported.
509
- */
510
- export const MessagesType = {
511
- Function: "function",
512
- } as const;
513
- /**
514
- * The type of the tool. Currently, only `function` is supported.
515
- */
516
- export type MessagesType = ClosedEnum<typeof MessagesType>;
517
-
518
- export type MessagesFunction = {
519
- /**
520
- * The name of the function to call.
521
- */
522
- name?: string | undefined;
523
- /**
524
- * 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.
525
- */
526
- arguments?: string | undefined;
527
- };
528
-
529
- export type MessagesToolCalls = {
530
- /**
531
- * The ID of the tool call.
532
- */
533
- id: string;
534
- /**
535
- * The type of the tool. Currently, only `function` is supported.
536
- */
537
- type: MessagesType;
538
- function: MessagesFunction;
539
- /**
540
- * Encrypted representation of the model internal reasoning state during function calling. Required by Gemini 3 models when continuing a conversation after a tool call.
541
- */
542
- thoughtSignature?: string | undefined;
543
- };
544
-
545
- export type MessagesAssistantMessage = {
546
- /**
547
- * Provider reasoning content that must be replayed with assistant tool calls when continuing a reasoning-model conversation.
548
- */
549
- reasoningContent?: string | undefined;
550
- /**
551
- * The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
552
- */
553
- content?:
554
- | string
555
- | Array<
556
- | (TextContentPartSchema & { type: "text" })
557
- | RefusalPartSchema
558
- | ReasoningPartSchema
559
- | RedactedReasoningPartSchema
560
- >
561
- | null
562
- | undefined;
563
- /**
564
- * The refusal message by the assistant.
565
- */
566
- refusal?: string | null | undefined;
567
- /**
568
- * The role of the messages author, in this case `assistant`.
569
- */
570
- role: "assistant";
571
- /**
572
- * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
573
- */
574
- name?: string | undefined;
575
- /**
576
- * Data about a previous audio response from the model.
577
- */
578
- audio?: MessagesAudio | null | undefined;
579
- /**
580
- * The tool calls generated by the model, such as function calls.
581
- */
582
- toolCalls?: Array<MessagesToolCalls> | undefined;
583
- };
584
-
585
- /**
586
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
587
- */
588
- export const InvokeDeploymentRequest2MessagesType = {
589
- Ephemeral: "ephemeral",
590
- } as const;
591
- /**
592
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
593
- */
594
- export type InvokeDeploymentRequest2MessagesType = ClosedEnum<
595
- typeof InvokeDeploymentRequest2MessagesType
596
- >;
597
-
598
- /**
599
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
600
- *
601
- * @remarks
602
- *
603
- * - `5m`: 5 minutes
604
- * - `1h`: 1 hour
605
- *
606
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
607
- */
608
- export const InvokeDeploymentRequest2Ttl = {
609
- Fivem: "5m",
610
- Oneh: "1h",
611
- } as const;
612
- /**
613
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
614
- *
615
- * @remarks
616
- *
617
- * - `5m`: 5 minutes
618
- * - `1h`: 1 hour
619
- *
620
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
621
- */
622
- export type InvokeDeploymentRequest2Ttl = ClosedEnum<
623
- typeof InvokeDeploymentRequest2Ttl
624
- >;
625
-
626
- export type InvokeDeploymentRequest2CacheControl = {
627
- /**
628
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
629
- */
630
- type: InvokeDeploymentRequest2MessagesType;
631
- /**
632
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
633
- *
634
- * @remarks
635
- *
636
- * - `5m`: 5 minutes
637
- * - `1h`: 1 hour
638
- *
639
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
640
- */
641
- ttl?: InvokeDeploymentRequest2Ttl | undefined;
642
- };
643
-
644
- export type InvokeDeploymentRequest24 = {
645
- /**
646
- * The type of the content part. Always `file`.
647
- */
648
- type: "file";
649
- cacheControl?: InvokeDeploymentRequest2CacheControl | undefined;
650
- /**
651
- * File data for the content part. Must contain either file_data or uri, but not both.
652
- */
653
- file: FileContentPartSchema;
654
- };
655
-
656
- export type InvokeDeploymentRequestContentMessages2 =
657
- | (TextContentPartSchema & { type: "text" })
658
- | ImageContentPartSchema
659
- | AudioContentPartSchema
660
- | InvokeDeploymentRequest24;
661
-
662
- /**
663
- * The contents of the user message.
664
- */
665
- export type InvokeDeploymentRequestMessages3Content =
666
- | string
667
- | Array<
668
- | (TextContentPartSchema & { type: "text" })
669
- | ImageContentPartSchema
670
- | AudioContentPartSchema
671
- | InvokeDeploymentRequest24
672
- >;
673
-
674
- export type MessagesUserMessage = {
675
- /**
676
- * The role of the messages author, in this case `user`.
677
- */
678
- role: "user";
679
- /**
680
- * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
681
- */
682
- name?: string | undefined;
683
- /**
684
- * The contents of the user message.
685
- */
686
- content:
687
- | string
688
- | Array<
689
- | (TextContentPartSchema & { type: "text" })
690
- | ImageContentPartSchema
691
- | AudioContentPartSchema
692
- | InvokeDeploymentRequest24
693
- >;
694
- };
695
-
696
- /**
697
- * The contents of the developer message.
698
- */
699
- export type InvokeDeploymentRequestMessagesContent =
700
- | string
701
- | Array<TextContentPartSchema>;
702
-
703
- export type MessagesDeveloperMessage = {
704
- /**
705
- * The role of the messages author, in this case `developer`.
706
- */
707
- role: "developer";
708
- /**
709
- * The contents of the developer message.
710
- */
711
- content: string | Array<TextContentPartSchema>;
712
- /**
713
- * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
714
- */
715
- name?: string | undefined;
716
- };
717
-
718
- /**
719
- * The contents of the system message.
720
- */
721
- export type MessagesContent = string | Array<TextContentPartSchema>;
722
-
723
- /**
724
- * Developer-provided instructions that the model should follow, regardless of messages sent by the user.
725
- */
726
- export type MessagesSystemMessage = {
727
- /**
728
- * The role of the messages author, in this case `system`.
729
- */
730
- role: "system";
731
- /**
732
- * The contents of the system message.
733
- */
734
- content: string | Array<TextContentPartSchema>;
735
- /**
736
- * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
737
- */
738
- name?: string | undefined;
739
- };
740
-
741
- export type Messages =
742
- | MessagesSystemMessage
743
- | MessagesDeveloperMessage
744
- | MessagesUserMessage
745
- | MessagesAssistantMessage
746
- | MessagesToolMessage;
747
-
748
- /**
749
- * Metadata about the document
750
- */
751
- export type InvokeDeploymentRequestMetadata = {
752
- /**
753
- * Name of the file the text is from.
754
- */
755
- fileName?: string | undefined;
756
- /**
757
- * Content type of the file the text is from.
758
- */
759
- fileType?: string | undefined;
760
- /**
761
- * The page number the text is from.
762
- */
763
- pageNumber?: number | undefined;
764
- };
765
-
766
- export type Documents = {
767
- /**
768
- * The text content of the document
769
- */
770
- text: string;
771
- /**
772
- * Metadata about the document
773
- */
774
- metadata?: InvokeDeploymentRequestMetadata | undefined;
775
- };
776
-
777
- export type InvokeOptions = {
778
- /**
779
- * Whether to include the retrieved knowledge chunks in the response.
780
- */
781
- includeRetrievals?: boolean | undefined;
782
- /**
783
- * Whether to include the usage metrics in the response.
784
- */
785
- includeUsage?: boolean | undefined;
786
- /**
787
- * 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.
788
- */
789
- mockResponse?: string | undefined;
790
- };
791
-
792
- export type Thread = {
793
- /**
794
- * Unique thread identifier to group related invocations.
795
- */
796
- id: string;
797
- /**
798
- * Optional tags to differentiate or categorize threads
799
- */
800
- tags?: Array<string> | undefined;
801
- };
802
-
803
- export type OrNin = string | number | boolean;
804
-
805
- /**
806
- * Not in
807
- */
808
- export type InvokeDeploymentRequestOrNin = {
809
- nin: Array<string | number | boolean>;
810
- };
811
-
812
- export type OrIn = string | number | boolean;
813
-
814
- /**
815
- * In
816
- */
817
- export type InvokeDeploymentRequestOrIn = {
818
- in: Array<string | number | boolean>;
819
- };
820
-
821
- /**
822
- * Less than or equal to
823
- */
824
- export type OrLte = {
825
- lte: number;
826
- };
827
-
828
- /**
829
- * Less than
830
- */
831
- export type OrLt = {
832
- lt: number;
833
- };
834
-
835
- /**
836
- * Greater than or equal to
837
- */
838
- export type OrGte = {
839
- gte: number;
840
- };
841
-
842
- /**
843
- * Greater than
844
- */
845
- export type OrGt = {
846
- gt: number;
847
- };
848
-
849
- export type OrNe = string | number | boolean;
850
-
851
- /**
852
- * Not equal to
853
- */
854
- export type InvokeDeploymentRequestOrNe = {
855
- ne: string | number | boolean;
856
- };
857
-
858
- export type OrEq = string | number | boolean;
859
-
860
- /**
861
- * Equal to
862
- */
863
- export type InvokeDeploymentRequestOrEq = {
864
- eq: string | number | boolean;
865
- };
866
-
867
- export type Or =
868
- | InvokeDeploymentRequestOrEq
869
- | InvokeDeploymentRequestOrNe
870
- | OrGt
871
- | OrGte
872
- | OrLt
873
- | OrLte
874
- | InvokeDeploymentRequestOrIn
875
- | InvokeDeploymentRequestOrNin;
876
-
877
- /**
878
- * Or
879
- */
880
- export type KnowledgeFilterOr = {
881
- or: Array<
882
- {
883
- [k: string]:
884
- | InvokeDeploymentRequestOrEq
885
- | InvokeDeploymentRequestOrNe
886
- | OrGt
887
- | OrGte
888
- | OrLt
889
- | OrLte
890
- | InvokeDeploymentRequestOrIn
891
- | InvokeDeploymentRequestOrNin;
892
- }
893
- >;
894
- };
895
-
896
- export type AndNin = string | number | boolean;
897
-
898
- /**
899
- * Not in
900
- */
901
- export type InvokeDeploymentRequestAndNin = {
902
- nin: Array<string | number | boolean>;
903
- };
904
-
905
- export type AndIn = string | number | boolean;
906
-
907
- /**
908
- * In
909
- */
910
- export type InvokeDeploymentRequestAndIn = {
911
- in: Array<string | number | boolean>;
912
- };
913
-
914
- /**
915
- * Less than or equal to
916
- */
917
- export type AndLte = {
918
- lte: number;
919
- };
920
-
921
- /**
922
- * Less than
923
- */
924
- export type AndLt = {
925
- lt: number;
926
- };
927
-
928
- /**
929
- * Greater than or equal to
930
- */
931
- export type AndGte = {
932
- gte: number;
933
- };
934
-
935
- /**
936
- * Greater than
937
- */
938
- export type AndGt = {
939
- gt: number;
940
- };
941
-
942
- export type AndNe = string | number | boolean;
943
-
944
- /**
945
- * Not equal to
946
- */
947
- export type InvokeDeploymentRequestAndNe = {
948
- ne: string | number | boolean;
949
- };
950
-
951
- export type AndEq = string | number | boolean;
952
-
953
- /**
954
- * Equal to
955
- */
956
- export type InvokeDeploymentRequestAndEq = {
957
- eq: string | number | boolean;
958
- };
959
-
960
- export type And =
961
- | InvokeDeploymentRequestAndEq
962
- | InvokeDeploymentRequestAndNe
963
- | AndGt
964
- | AndGte
965
- | AndLt
966
- | AndLte
967
- | InvokeDeploymentRequestAndIn
968
- | InvokeDeploymentRequestAndNin;
969
-
970
- /**
971
- * And
972
- */
973
- export type KnowledgeFilterAnd = {
974
- and: Array<
975
- {
976
- [k: string]:
977
- | InvokeDeploymentRequestAndEq
978
- | InvokeDeploymentRequestAndNe
979
- | AndGt
980
- | AndGte
981
- | AndLt
982
- | AndLte
983
- | InvokeDeploymentRequestAndIn
984
- | InvokeDeploymentRequestAndNin;
985
- }
986
- >;
987
- };
988
-
989
- export type Nin = string | number | boolean;
990
-
991
- /**
992
- * Not in
993
- */
994
- export type InvokeDeploymentRequest1Nin = {
995
- nin: Array<string | number | boolean>;
996
- };
997
-
998
- export type In = string | number | boolean;
999
-
1000
- /**
1001
- * In
1002
- */
1003
- export type InvokeDeploymentRequest1In = {
1004
- in: Array<string | number | boolean>;
1005
- };
1006
-
1007
- /**
1008
- * Less than or equal to
1009
- */
1010
- export type Lte = {
1011
- lte: number;
1012
- };
1013
-
1014
- /**
1015
- * Less than
1016
- */
1017
- export type Lt = {
1018
- lt: number;
1019
- };
1020
-
1021
- /**
1022
- * Greater than or equal to
1023
- */
1024
- export type Gte = {
1025
- gte: number;
1026
- };
1027
-
1028
- /**
1029
- * Greater than
1030
- */
1031
- export type Gt = {
1032
- gt: number;
1033
- };
1034
-
1035
- export type Ne = string | number | boolean;
1036
-
1037
- /**
1038
- * Not equal to
1039
- */
1040
- export type InvokeDeploymentRequest1Ne = {
1041
- ne: string | number | boolean;
1042
- };
1043
-
1044
- export type Eq = string | number | boolean;
1045
-
1046
- /**
1047
- * Equal to
1048
- */
1049
- export type InvokeDeploymentRequest1Eq = {
1050
- eq: string | number | boolean;
1051
- };
1052
-
1053
- export type KnowledgeFilter1 =
1054
- | InvokeDeploymentRequest1Eq
1055
- | InvokeDeploymentRequest1Ne
1056
- | Gt
1057
- | Gte
1058
- | Lt
1059
- | Lte
1060
- | InvokeDeploymentRequest1In
1061
- | InvokeDeploymentRequest1Nin;
1062
-
1063
- /**
1064
- * A filter to apply to the knowledge base chunk metadata when using knowledge bases in the deployment.
1065
- */
1066
- export type KnowledgeFilter = KnowledgeFilterAnd | KnowledgeFilterOr | {
1067
- [k: string]:
1068
- | InvokeDeploymentRequest1Eq
1069
- | InvokeDeploymentRequest1Ne
1070
- | Gt
1071
- | Gte
1072
- | Lt
1073
- | Lte
1074
- | InvokeDeploymentRequest1In
1075
- | InvokeDeploymentRequest1Nin;
1076
- };
1077
-
1078
- /**
1079
- * The deployment request payload
1080
- */
1081
- export type InvokeDeploymentRequest = {
1082
- /**
1083
- * The deployment key to invoke
1084
- */
1085
- key: string;
1086
- /**
1087
- * If set, partial message content will be sent. Tokens will be sent as data-only `server-sent events` as they become available, with the stream terminated by a `data: [DONE]` message.
1088
- */
1089
- stream?: boolean | undefined;
1090
- /**
1091
- * 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.
1092
- */
1093
- inputs?: { [k: string]: any } | undefined;
1094
- /**
1095
- * Key-value pairs that match your data model and fields declared in your deployment routing configuration
1096
- */
1097
- context?: { [k: string]: any } | undefined;
1098
- /**
1099
- * A list of messages to include after the `System` message, but before the `User` and `Assistant` pairs configured in your deployment.
1100
- */
1101
- prefixMessages?:
1102
- | Array<
1103
- | SystemMessage
1104
- | DeveloperMessage
1105
- | UserMessage
1106
- | AssistantMessage
1107
- | ToolMessage
1108
- >
1109
- | undefined;
1110
- /**
1111
- * A list of messages to send to the deployment.
1112
- */
1113
- messages?:
1114
- | Array<
1115
- | MessagesSystemMessage
1116
- | MessagesDeveloperMessage
1117
- | MessagesUserMessage
1118
- | MessagesAssistantMessage
1119
- | MessagesToolMessage
1120
- >
1121
- | undefined;
1122
- /**
1123
- * Information about the identity making the request. If the identity does not exist, it will be created automatically.
1124
- */
1125
- identity?: PublicIdentity | undefined;
1126
- /**
1127
- * A list of file IDs that are associated with the deployment request.
1128
- */
1129
- fileIds?: Array<string> | undefined;
1130
- /**
1131
- * Key-value pairs that you want to attach to the log generated by this request.
1132
- */
1133
- metadata?: { [k: string]: any } | undefined;
1134
- /**
1135
- * 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.
1136
- */
1137
- extraParams?: { [k: string]: any } | undefined;
1138
- /**
1139
- * 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.
1140
- */
1141
- documents?: Array<Documents> | undefined;
1142
- invokeOptions?: InvokeOptions | undefined;
1143
- thread?: Thread | undefined;
1144
- /**
1145
- * A filter to apply to the knowledge base chunk metadata when using knowledge bases in the deployment.
1146
- */
1147
- knowledgeFilter?: KnowledgeFilterAnd | KnowledgeFilterOr | {
1148
- [k: string]:
1149
- | InvokeDeploymentRequest1Eq
1150
- | InvokeDeploymentRequest1Ne
1151
- | Gt
1152
- | Gte
1153
- | Lt
1154
- | Lte
1155
- | InvokeDeploymentRequest1In
1156
- | InvokeDeploymentRequest1Nin;
1157
- } | undefined;
1158
- };
1159
-
1160
- /** @internal */
1161
- export type InvokeDeploymentRequestContentPrefixMessages2$Outbound =
1162
- TextContentPartSchema$Outbound;
1163
-
1164
- /** @internal */
1165
- export const InvokeDeploymentRequestContentPrefixMessages2$outboundSchema:
1166
- z.ZodType<
1167
- InvokeDeploymentRequestContentPrefixMessages2$Outbound,
1168
- z.ZodTypeDef,
1169
- InvokeDeploymentRequestContentPrefixMessages2
1170
- > = TextContentPartSchema$outboundSchema;
1171
-
1172
- export function invokeDeploymentRequestContentPrefixMessages2ToJSON(
1173
- invokeDeploymentRequestContentPrefixMessages2:
1174
- InvokeDeploymentRequestContentPrefixMessages2,
1175
- ): string {
1176
- return JSON.stringify(
1177
- InvokeDeploymentRequestContentPrefixMessages2$outboundSchema.parse(
1178
- invokeDeploymentRequestContentPrefixMessages2,
1179
- ),
1180
- );
1181
- }
1182
-
1183
- /** @internal */
1184
- export type InvokeDeploymentRequestPrefixMessages5Content$Outbound =
1185
- | string
1186
- | Array<TextContentPartSchema$Outbound>;
1187
-
1188
- /** @internal */
1189
- export const InvokeDeploymentRequestPrefixMessages5Content$outboundSchema:
1190
- z.ZodType<
1191
- InvokeDeploymentRequestPrefixMessages5Content$Outbound,
1192
- z.ZodTypeDef,
1193
- InvokeDeploymentRequestPrefixMessages5Content
1194
- > = z.union([z.string(), z.array(TextContentPartSchema$outboundSchema)]);
1195
-
1196
- export function invokeDeploymentRequestPrefixMessages5ContentToJSON(
1197
- invokeDeploymentRequestPrefixMessages5Content:
1198
- InvokeDeploymentRequestPrefixMessages5Content,
1199
- ): string {
1200
- return JSON.stringify(
1201
- InvokeDeploymentRequestPrefixMessages5Content$outboundSchema.parse(
1202
- invokeDeploymentRequestPrefixMessages5Content,
1203
- ),
1204
- );
1205
- }
1206
-
1207
- /** @internal */
1208
- export const InvokeDeploymentRequestPrefixMessagesType$outboundSchema:
1209
- z.ZodNativeEnum<typeof InvokeDeploymentRequestPrefixMessagesType> = z
1210
- .nativeEnum(InvokeDeploymentRequestPrefixMessagesType);
1211
-
1212
- /** @internal */
1213
- export const PrefixMessagesTtl$outboundSchema: z.ZodNativeEnum<
1214
- typeof PrefixMessagesTtl
1215
- > = z.nativeEnum(PrefixMessagesTtl);
1216
-
1217
- /** @internal */
1218
- export type PrefixMessagesCacheControl$Outbound = {
1219
- type: string;
1220
- ttl: string;
1221
- };
1222
-
1223
- /** @internal */
1224
- export const PrefixMessagesCacheControl$outboundSchema: z.ZodType<
1225
- PrefixMessagesCacheControl$Outbound,
1226
- z.ZodTypeDef,
1227
- PrefixMessagesCacheControl
1228
- > = z.object({
1229
- type: InvokeDeploymentRequestPrefixMessagesType$outboundSchema,
1230
- ttl: PrefixMessagesTtl$outboundSchema.default("5m"),
1231
- });
1232
-
1233
- export function prefixMessagesCacheControlToJSON(
1234
- prefixMessagesCacheControl: PrefixMessagesCacheControl,
1235
- ): string {
1236
- return JSON.stringify(
1237
- PrefixMessagesCacheControl$outboundSchema.parse(prefixMessagesCacheControl),
1238
- );
1239
- }
1240
-
1241
- /** @internal */
1242
- export type ToolMessage$Outbound = {
1243
- role: "tool";
1244
- content: string | Array<TextContentPartSchema$Outbound>;
1245
- tool_call_id: string | null;
1246
- cache_control?: PrefixMessagesCacheControl$Outbound | undefined;
1247
- };
1248
-
1249
- /** @internal */
1250
- export const ToolMessage$outboundSchema: z.ZodType<
1251
- ToolMessage$Outbound,
1252
- z.ZodTypeDef,
1253
- ToolMessage
1254
- > = z.object({
1255
- role: z.literal("tool"),
1256
- content: z.union([z.string(), z.array(TextContentPartSchema$outboundSchema)]),
1257
- toolCallId: z.nullable(z.string()),
1258
- cacheControl: z.lazy(() => PrefixMessagesCacheControl$outboundSchema)
1259
- .optional(),
1260
- }).transform((v) => {
1261
- return remap$(v, {
1262
- toolCallId: "tool_call_id",
1263
- cacheControl: "cache_control",
1264
- });
1265
- });
1266
-
1267
- export function toolMessageToJSON(toolMessage: ToolMessage): string {
1268
- return JSON.stringify(ToolMessage$outboundSchema.parse(toolMessage));
1269
- }
1270
-
1271
- /** @internal */
1272
- export type InvokeDeploymentRequestContent2$Outbound =
1273
- | (TextContentPartSchema$Outbound & { type: "text" })
1274
- | RefusalPartSchema$Outbound
1275
- | ReasoningPartSchema$Outbound
1276
- | RedactedReasoningPartSchema$Outbound;
1277
-
1278
- /** @internal */
1279
- export const InvokeDeploymentRequestContent2$outboundSchema: z.ZodType<
1280
- InvokeDeploymentRequestContent2$Outbound,
1281
- z.ZodTypeDef,
1282
- InvokeDeploymentRequestContent2
1283
- > = z.union([
1284
- TextContentPartSchema$outboundSchema.and(
1285
- z.object({ type: z.literal("text") }),
1286
- ),
1287
- RefusalPartSchema$outboundSchema,
1288
- ReasoningPartSchema$outboundSchema,
1289
- RedactedReasoningPartSchema$outboundSchema,
1290
- ]);
1291
-
1292
- export function invokeDeploymentRequestContent2ToJSON(
1293
- invokeDeploymentRequestContent2: InvokeDeploymentRequestContent2,
1294
- ): string {
1295
- return JSON.stringify(
1296
- InvokeDeploymentRequestContent2$outboundSchema.parse(
1297
- invokeDeploymentRequestContent2,
1298
- ),
1299
- );
1300
- }
1301
-
1302
- /** @internal */
1303
- export type InvokeDeploymentRequestPrefixMessages4Content$Outbound =
1304
- | string
1305
- | Array<
1306
- | (TextContentPartSchema$Outbound & { type: "text" })
1307
- | RefusalPartSchema$Outbound
1308
- | ReasoningPartSchema$Outbound
1309
- | RedactedReasoningPartSchema$Outbound
1310
- >;
1311
-
1312
- /** @internal */
1313
- export const InvokeDeploymentRequestPrefixMessages4Content$outboundSchema:
1314
- z.ZodType<
1315
- InvokeDeploymentRequestPrefixMessages4Content$Outbound,
1316
- z.ZodTypeDef,
1317
- InvokeDeploymentRequestPrefixMessages4Content
1318
- > = z.union([
1319
- z.string(),
1320
- z.array(
1321
- z.union([
1322
- TextContentPartSchema$outboundSchema.and(
1323
- z.object({ type: z.literal("text") }),
1324
- ),
1325
- RefusalPartSchema$outboundSchema,
1326
- ReasoningPartSchema$outboundSchema,
1327
- RedactedReasoningPartSchema$outboundSchema,
1328
- ]),
1329
- ),
1330
- ]);
1331
-
1332
- export function invokeDeploymentRequestPrefixMessages4ContentToJSON(
1333
- invokeDeploymentRequestPrefixMessages4Content:
1334
- InvokeDeploymentRequestPrefixMessages4Content,
1335
- ): string {
1336
- return JSON.stringify(
1337
- InvokeDeploymentRequestPrefixMessages4Content$outboundSchema.parse(
1338
- invokeDeploymentRequestPrefixMessages4Content,
1339
- ),
1340
- );
1341
- }
1342
-
1343
- /** @internal */
1344
- export type Audio$Outbound = {
1345
- id: string;
1346
- };
1347
-
1348
- /** @internal */
1349
- export const Audio$outboundSchema: z.ZodType<
1350
- Audio$Outbound,
1351
- z.ZodTypeDef,
1352
- Audio
1353
- > = z.object({
1354
- id: z.string(),
1355
- });
1356
-
1357
- export function audioToJSON(audio: Audio): string {
1358
- return JSON.stringify(Audio$outboundSchema.parse(audio));
1359
- }
1360
-
1361
- /** @internal */
1362
- export const PrefixMessagesType$outboundSchema: z.ZodNativeEnum<
1363
- typeof PrefixMessagesType
1364
- > = z.nativeEnum(PrefixMessagesType);
1365
-
1366
- /** @internal */
1367
- export type PrefixMessagesFunction$Outbound = {
1368
- name?: string | undefined;
1369
- arguments?: string | undefined;
1370
- };
1371
-
1372
- /** @internal */
1373
- export const PrefixMessagesFunction$outboundSchema: z.ZodType<
1374
- PrefixMessagesFunction$Outbound,
1375
- z.ZodTypeDef,
1376
- PrefixMessagesFunction
1377
- > = z.object({
1378
- name: z.string().optional(),
1379
- arguments: z.string().optional(),
1380
- });
1381
-
1382
- export function prefixMessagesFunctionToJSON(
1383
- prefixMessagesFunction: PrefixMessagesFunction,
1384
- ): string {
1385
- return JSON.stringify(
1386
- PrefixMessagesFunction$outboundSchema.parse(prefixMessagesFunction),
1387
- );
1388
- }
1389
-
1390
- /** @internal */
1391
- export type ToolCalls$Outbound = {
1392
- id: string;
1393
- type: string;
1394
- function: PrefixMessagesFunction$Outbound;
1395
- thought_signature?: string | undefined;
1396
- };
1397
-
1398
- /** @internal */
1399
- export const ToolCalls$outboundSchema: z.ZodType<
1400
- ToolCalls$Outbound,
1401
- z.ZodTypeDef,
1402
- ToolCalls
1403
- > = z.object({
1404
- id: z.string(),
1405
- type: PrefixMessagesType$outboundSchema,
1406
- function: z.lazy(() => PrefixMessagesFunction$outboundSchema),
1407
- thoughtSignature: z.string().optional(),
1408
- }).transform((v) => {
1409
- return remap$(v, {
1410
- thoughtSignature: "thought_signature",
1411
- });
1412
- });
1413
-
1414
- export function toolCallsToJSON(toolCalls: ToolCalls): string {
1415
- return JSON.stringify(ToolCalls$outboundSchema.parse(toolCalls));
1416
- }
1417
-
1418
- /** @internal */
1419
- export type AssistantMessage$Outbound = {
1420
- reasoning_content?: string | undefined;
1421
- content?:
1422
- | string
1423
- | Array<
1424
- | (TextContentPartSchema$Outbound & { type: "text" })
1425
- | RefusalPartSchema$Outbound
1426
- | ReasoningPartSchema$Outbound
1427
- | RedactedReasoningPartSchema$Outbound
1428
- >
1429
- | null
1430
- | undefined;
1431
- refusal?: string | null | undefined;
1432
- role: "assistant";
1433
- name?: string | undefined;
1434
- audio?: Audio$Outbound | null | undefined;
1435
- tool_calls?: Array<ToolCalls$Outbound> | undefined;
1436
- };
1437
-
1438
- /** @internal */
1439
- export const AssistantMessage$outboundSchema: z.ZodType<
1440
- AssistantMessage$Outbound,
1441
- z.ZodTypeDef,
1442
- AssistantMessage
1443
- > = z.object({
1444
- reasoningContent: z.string().optional(),
1445
- content: z.nullable(
1446
- z.union([
1447
- z.string(),
1448
- z.array(
1449
- z.union([
1450
- TextContentPartSchema$outboundSchema.and(
1451
- z.object({ type: z.literal("text") }),
1452
- ),
1453
- RefusalPartSchema$outboundSchema,
1454
- ReasoningPartSchema$outboundSchema,
1455
- RedactedReasoningPartSchema$outboundSchema,
1456
- ]),
1457
- ),
1458
- ]),
1459
- ).optional(),
1460
- refusal: z.nullable(z.string()).optional(),
1461
- role: z.literal("assistant"),
1462
- name: z.string().optional(),
1463
- audio: z.nullable(z.lazy(() => Audio$outboundSchema)).optional(),
1464
- toolCalls: z.array(z.lazy(() => ToolCalls$outboundSchema)).optional(),
1465
- }).transform((v) => {
1466
- return remap$(v, {
1467
- reasoningContent: "reasoning_content",
1468
- toolCalls: "tool_calls",
1469
- });
1470
- });
1471
-
1472
- export function assistantMessageToJSON(
1473
- assistantMessage: AssistantMessage,
1474
- ): string {
1475
- return JSON.stringify(
1476
- AssistantMessage$outboundSchema.parse(assistantMessage),
1477
- );
1478
- }
1479
-
1480
- /** @internal */
1481
- export const InvokeDeploymentRequest2PrefixMessagesType$outboundSchema:
1482
- z.ZodNativeEnum<typeof InvokeDeploymentRequest2PrefixMessagesType> = z
1483
- .nativeEnum(InvokeDeploymentRequest2PrefixMessagesType);
1484
-
1485
- /** @internal */
1486
- export const TwoTtl$outboundSchema: z.ZodNativeEnum<typeof TwoTtl> = z
1487
- .nativeEnum(TwoTtl);
1488
-
1489
- /** @internal */
1490
- export type TwoCacheControl$Outbound = {
1491
- type: string;
1492
- ttl: string;
1493
- };
1494
-
1495
- /** @internal */
1496
- export const TwoCacheControl$outboundSchema: z.ZodType<
1497
- TwoCacheControl$Outbound,
1498
- z.ZodTypeDef,
1499
- TwoCacheControl
1500
- > = z.object({
1501
- type: InvokeDeploymentRequest2PrefixMessagesType$outboundSchema,
1502
- ttl: TwoTtl$outboundSchema.default("5m"),
1503
- });
1504
-
1505
- export function twoCacheControlToJSON(
1506
- twoCacheControl: TwoCacheControl,
1507
- ): string {
1508
- return JSON.stringify(TwoCacheControl$outboundSchema.parse(twoCacheControl));
1509
- }
1510
-
1511
- /** @internal */
1512
- export type Two4$Outbound = {
1513
- type: "file";
1514
- cache_control?: TwoCacheControl$Outbound | undefined;
1515
- file: FileContentPartSchema$Outbound;
1516
- };
1517
-
1518
- /** @internal */
1519
- export const Two4$outboundSchema: z.ZodType<Two4$Outbound, z.ZodTypeDef, Two4> =
1520
- z.object({
1521
- type: z.literal("file"),
1522
- cacheControl: z.lazy(() => TwoCacheControl$outboundSchema).optional(),
1523
- file: FileContentPartSchema$outboundSchema,
1524
- }).transform((v) => {
1525
- return remap$(v, {
1526
- cacheControl: "cache_control",
1527
- });
1528
- });
1529
-
1530
- export function two4ToJSON(two4: Two4): string {
1531
- return JSON.stringify(Two4$outboundSchema.parse(two4));
1532
- }
1533
-
1534
- /** @internal */
1535
- export type Content2$Outbound =
1536
- | (TextContentPartSchema$Outbound & { type: "text" })
1537
- | ImageContentPartSchema$Outbound
1538
- | AudioContentPartSchema$Outbound
1539
- | Two4$Outbound;
1540
-
1541
- /** @internal */
1542
- export const Content2$outboundSchema: z.ZodType<
1543
- Content2$Outbound,
1544
- z.ZodTypeDef,
1545
- Content2
1546
- > = z.union([
1547
- TextContentPartSchema$outboundSchema.and(
1548
- z.object({ type: z.literal("text") }),
1549
- ),
1550
- ImageContentPartSchema$outboundSchema,
1551
- AudioContentPartSchema$outboundSchema,
1552
- z.lazy(() => Two4$outboundSchema),
1553
- ]);
1554
-
1555
- export function content2ToJSON(content2: Content2): string {
1556
- return JSON.stringify(Content2$outboundSchema.parse(content2));
1557
- }
1558
-
1559
- /** @internal */
1560
- export type InvokeDeploymentRequestPrefixMessagesContent$Outbound =
1561
- | string
1562
- | Array<
1563
- | (TextContentPartSchema$Outbound & { type: "text" })
1564
- | ImageContentPartSchema$Outbound
1565
- | AudioContentPartSchema$Outbound
1566
- | Two4$Outbound
1567
- >;
1568
-
1569
- /** @internal */
1570
- export const InvokeDeploymentRequestPrefixMessagesContent$outboundSchema:
1571
- z.ZodType<
1572
- InvokeDeploymentRequestPrefixMessagesContent$Outbound,
1573
- z.ZodTypeDef,
1574
- InvokeDeploymentRequestPrefixMessagesContent
1575
- > = z.union([
1576
- z.string(),
1577
- z.array(
1578
- z.union([
1579
- TextContentPartSchema$outboundSchema.and(
1580
- z.object({ type: z.literal("text") }),
1581
- ),
1582
- ImageContentPartSchema$outboundSchema,
1583
- AudioContentPartSchema$outboundSchema,
1584
- z.lazy(() => Two4$outboundSchema),
1585
- ]),
1586
- ),
1587
- ]);
1588
-
1589
- export function invokeDeploymentRequestPrefixMessagesContentToJSON(
1590
- invokeDeploymentRequestPrefixMessagesContent:
1591
- InvokeDeploymentRequestPrefixMessagesContent,
1592
- ): string {
1593
- return JSON.stringify(
1594
- InvokeDeploymentRequestPrefixMessagesContent$outboundSchema.parse(
1595
- invokeDeploymentRequestPrefixMessagesContent,
1596
- ),
1597
- );
1598
- }
1599
-
1600
- /** @internal */
1601
- export type UserMessage$Outbound = {
1602
- role: "user";
1603
- name?: string | undefined;
1604
- content:
1605
- | string
1606
- | Array<
1607
- | (TextContentPartSchema$Outbound & { type: "text" })
1608
- | ImageContentPartSchema$Outbound
1609
- | AudioContentPartSchema$Outbound
1610
- | Two4$Outbound
1611
- >;
1612
- };
1613
-
1614
- /** @internal */
1615
- export const UserMessage$outboundSchema: z.ZodType<
1616
- UserMessage$Outbound,
1617
- z.ZodTypeDef,
1618
- UserMessage
1619
- > = z.object({
1620
- role: z.literal("user"),
1621
- name: z.string().optional(),
1622
- content: z.union([
1623
- z.string(),
1624
- z.array(
1625
- z.union([
1626
- TextContentPartSchema$outboundSchema.and(
1627
- z.object({ type: z.literal("text") }),
1628
- ),
1629
- ImageContentPartSchema$outboundSchema,
1630
- AudioContentPartSchema$outboundSchema,
1631
- z.lazy(() => Two4$outboundSchema),
1632
- ]),
1633
- ),
1634
- ]),
1635
- });
1636
-
1637
- export function userMessageToJSON(userMessage: UserMessage): string {
1638
- return JSON.stringify(UserMessage$outboundSchema.parse(userMessage));
1639
- }
1640
-
1641
- /** @internal */
1642
- export type PrefixMessagesContent$Outbound =
1643
- | string
1644
- | Array<TextContentPartSchema$Outbound>;
1645
-
1646
- /** @internal */
1647
- export const PrefixMessagesContent$outboundSchema: z.ZodType<
1648
- PrefixMessagesContent$Outbound,
1649
- z.ZodTypeDef,
1650
- PrefixMessagesContent
1651
- > = z.union([z.string(), z.array(TextContentPartSchema$outboundSchema)]);
1652
-
1653
- export function prefixMessagesContentToJSON(
1654
- prefixMessagesContent: PrefixMessagesContent,
1655
- ): string {
1656
- return JSON.stringify(
1657
- PrefixMessagesContent$outboundSchema.parse(prefixMessagesContent),
1658
- );
1659
- }
1660
-
1661
- /** @internal */
1662
- export type DeveloperMessage$Outbound = {
1663
- role: "developer";
1664
- content: string | Array<TextContentPartSchema$Outbound>;
1665
- name?: string | undefined;
1666
- };
1667
-
1668
- /** @internal */
1669
- export const DeveloperMessage$outboundSchema: z.ZodType<
1670
- DeveloperMessage$Outbound,
1671
- z.ZodTypeDef,
1672
- DeveloperMessage
1673
- > = z.object({
1674
- role: z.literal("developer"),
1675
- content: z.union([z.string(), z.array(TextContentPartSchema$outboundSchema)]),
1676
- name: z.string().optional(),
1677
- });
1678
-
1679
- export function developerMessageToJSON(
1680
- developerMessage: DeveloperMessage,
1681
- ): string {
1682
- return JSON.stringify(
1683
- DeveloperMessage$outboundSchema.parse(developerMessage),
1684
- );
1685
- }
1686
-
1687
- /** @internal */
1688
- export type Content$Outbound = string | Array<TextContentPartSchema$Outbound>;
1689
-
1690
- /** @internal */
1691
- export const Content$outboundSchema: z.ZodType<
1692
- Content$Outbound,
1693
- z.ZodTypeDef,
1694
- Content
1695
- > = z.union([z.string(), z.array(TextContentPartSchema$outboundSchema)]);
1696
-
1697
- export function contentToJSON(content: Content): string {
1698
- return JSON.stringify(Content$outboundSchema.parse(content));
1699
- }
1700
-
1701
- /** @internal */
1702
- export type SystemMessage$Outbound = {
1703
- role: "system";
1704
- content: string | Array<TextContentPartSchema$Outbound>;
1705
- name?: string | undefined;
1706
- };
1707
-
1708
- /** @internal */
1709
- export const SystemMessage$outboundSchema: z.ZodType<
1710
- SystemMessage$Outbound,
1711
- z.ZodTypeDef,
1712
- SystemMessage
1713
- > = z.object({
1714
- role: z.literal("system"),
1715
- content: z.union([z.string(), z.array(TextContentPartSchema$outboundSchema)]),
1716
- name: z.string().optional(),
1717
- });
1718
-
1719
- export function systemMessageToJSON(systemMessage: SystemMessage): string {
1720
- return JSON.stringify(SystemMessage$outboundSchema.parse(systemMessage));
1721
- }
1722
-
1723
- /** @internal */
1724
- export type PrefixMessages$Outbound =
1725
- | SystemMessage$Outbound
1726
- | DeveloperMessage$Outbound
1727
- | UserMessage$Outbound
1728
- | AssistantMessage$Outbound
1729
- | ToolMessage$Outbound;
1730
-
1731
- /** @internal */
1732
- export const PrefixMessages$outboundSchema: z.ZodType<
1733
- PrefixMessages$Outbound,
1734
- z.ZodTypeDef,
1735
- PrefixMessages
1736
- > = z.union([
1737
- z.lazy(() => SystemMessage$outboundSchema),
1738
- z.lazy(() => DeveloperMessage$outboundSchema),
1739
- z.lazy(() => UserMessage$outboundSchema),
1740
- z.lazy(() => AssistantMessage$outboundSchema),
1741
- z.lazy(() => ToolMessage$outboundSchema),
1742
- ]);
1743
-
1744
- export function prefixMessagesToJSON(prefixMessages: PrefixMessages): string {
1745
- return JSON.stringify(PrefixMessages$outboundSchema.parse(prefixMessages));
1746
- }
1747
-
1748
- /** @internal */
1749
- export type InvokeDeploymentRequestContentMessages52$Outbound =
1750
- TextContentPartSchema$Outbound;
1751
-
1752
- /** @internal */
1753
- export const InvokeDeploymentRequestContentMessages52$outboundSchema: z.ZodType<
1754
- InvokeDeploymentRequestContentMessages52$Outbound,
1755
- z.ZodTypeDef,
1756
- InvokeDeploymentRequestContentMessages52
1757
- > = TextContentPartSchema$outboundSchema;
1758
-
1759
- export function invokeDeploymentRequestContentMessages52ToJSON(
1760
- invokeDeploymentRequestContentMessages52:
1761
- InvokeDeploymentRequestContentMessages52,
1762
- ): string {
1763
- return JSON.stringify(
1764
- InvokeDeploymentRequestContentMessages52$outboundSchema.parse(
1765
- invokeDeploymentRequestContentMessages52,
1766
- ),
1767
- );
1768
- }
1769
-
1770
- /** @internal */
1771
- export type InvokeDeploymentRequestMessages5Content$Outbound =
1772
- | string
1773
- | Array<TextContentPartSchema$Outbound>;
1774
-
1775
- /** @internal */
1776
- export const InvokeDeploymentRequestMessages5Content$outboundSchema: z.ZodType<
1777
- InvokeDeploymentRequestMessages5Content$Outbound,
1778
- z.ZodTypeDef,
1779
- InvokeDeploymentRequestMessages5Content
1780
- > = z.union([z.string(), z.array(TextContentPartSchema$outboundSchema)]);
1781
-
1782
- export function invokeDeploymentRequestMessages5ContentToJSON(
1783
- invokeDeploymentRequestMessages5Content:
1784
- InvokeDeploymentRequestMessages5Content,
1785
- ): string {
1786
- return JSON.stringify(
1787
- InvokeDeploymentRequestMessages5Content$outboundSchema.parse(
1788
- invokeDeploymentRequestMessages5Content,
1789
- ),
1790
- );
1791
- }
1792
-
1793
- /** @internal */
1794
- export const InvokeDeploymentRequestMessagesType$outboundSchema:
1795
- z.ZodNativeEnum<typeof InvokeDeploymentRequestMessagesType> = z.nativeEnum(
1796
- InvokeDeploymentRequestMessagesType,
1797
- );
1798
-
1799
- /** @internal */
1800
- export const MessagesTtl$outboundSchema: z.ZodNativeEnum<typeof MessagesTtl> = z
1801
- .nativeEnum(MessagesTtl);
1802
-
1803
- /** @internal */
1804
- export type MessagesCacheControl$Outbound = {
1805
- type: string;
1806
- ttl: string;
1807
- };
1808
-
1809
- /** @internal */
1810
- export const MessagesCacheControl$outboundSchema: z.ZodType<
1811
- MessagesCacheControl$Outbound,
1812
- z.ZodTypeDef,
1813
- MessagesCacheControl
1814
- > = z.object({
1815
- type: InvokeDeploymentRequestMessagesType$outboundSchema,
1816
- ttl: MessagesTtl$outboundSchema.default("5m"),
1817
- });
1818
-
1819
- export function messagesCacheControlToJSON(
1820
- messagesCacheControl: MessagesCacheControl,
1821
- ): string {
1822
- return JSON.stringify(
1823
- MessagesCacheControl$outboundSchema.parse(messagesCacheControl),
1824
- );
1825
- }
1826
-
1827
- /** @internal */
1828
- export type MessagesToolMessage$Outbound = {
1829
- role: "tool";
1830
- content: string | Array<TextContentPartSchema$Outbound>;
1831
- tool_call_id: string | null;
1832
- cache_control?: MessagesCacheControl$Outbound | undefined;
1833
- };
1834
-
1835
- /** @internal */
1836
- export const MessagesToolMessage$outboundSchema: z.ZodType<
1837
- MessagesToolMessage$Outbound,
1838
- z.ZodTypeDef,
1839
- MessagesToolMessage
1840
- > = z.object({
1841
- role: z.literal("tool"),
1842
- content: z.union([z.string(), z.array(TextContentPartSchema$outboundSchema)]),
1843
- toolCallId: z.nullable(z.string()),
1844
- cacheControl: z.lazy(() => MessagesCacheControl$outboundSchema).optional(),
1845
- }).transform((v) => {
1846
- return remap$(v, {
1847
- toolCallId: "tool_call_id",
1848
- cacheControl: "cache_control",
1849
- });
1850
- });
1851
-
1852
- export function messagesToolMessageToJSON(
1853
- messagesToolMessage: MessagesToolMessage,
1854
- ): string {
1855
- return JSON.stringify(
1856
- MessagesToolMessage$outboundSchema.parse(messagesToolMessage),
1857
- );
1858
- }
1859
-
1860
- /** @internal */
1861
- export type InvokeDeploymentRequestContentMessages42$Outbound =
1862
- | (TextContentPartSchema$Outbound & { type: "text" })
1863
- | RefusalPartSchema$Outbound
1864
- | ReasoningPartSchema$Outbound
1865
- | RedactedReasoningPartSchema$Outbound;
1866
-
1867
- /** @internal */
1868
- export const InvokeDeploymentRequestContentMessages42$outboundSchema: z.ZodType<
1869
- InvokeDeploymentRequestContentMessages42$Outbound,
1870
- z.ZodTypeDef,
1871
- InvokeDeploymentRequestContentMessages42
1872
- > = z.union([
1873
- TextContentPartSchema$outboundSchema.and(
1874
- z.object({ type: z.literal("text") }),
1875
- ),
1876
- RefusalPartSchema$outboundSchema,
1877
- ReasoningPartSchema$outboundSchema,
1878
- RedactedReasoningPartSchema$outboundSchema,
1879
- ]);
1880
-
1881
- export function invokeDeploymentRequestContentMessages42ToJSON(
1882
- invokeDeploymentRequestContentMessages42:
1883
- InvokeDeploymentRequestContentMessages42,
1884
- ): string {
1885
- return JSON.stringify(
1886
- InvokeDeploymentRequestContentMessages42$outboundSchema.parse(
1887
- invokeDeploymentRequestContentMessages42,
1888
- ),
1889
- );
1890
- }
1891
-
1892
- /** @internal */
1893
- export type InvokeDeploymentRequestMessages4Content$Outbound =
1894
- | string
1895
- | Array<
1896
- | (TextContentPartSchema$Outbound & { type: "text" })
1897
- | RefusalPartSchema$Outbound
1898
- | ReasoningPartSchema$Outbound
1899
- | RedactedReasoningPartSchema$Outbound
1900
- >;
1901
-
1902
- /** @internal */
1903
- export const InvokeDeploymentRequestMessages4Content$outboundSchema: z.ZodType<
1904
- InvokeDeploymentRequestMessages4Content$Outbound,
1905
- z.ZodTypeDef,
1906
- InvokeDeploymentRequestMessages4Content
1907
- > = z.union([
1908
- z.string(),
1909
- z.array(
1910
- z.union([
1911
- TextContentPartSchema$outboundSchema.and(
1912
- z.object({ type: z.literal("text") }),
1913
- ),
1914
- RefusalPartSchema$outboundSchema,
1915
- ReasoningPartSchema$outboundSchema,
1916
- RedactedReasoningPartSchema$outboundSchema,
1917
- ]),
1918
- ),
1919
- ]);
1920
-
1921
- export function invokeDeploymentRequestMessages4ContentToJSON(
1922
- invokeDeploymentRequestMessages4Content:
1923
- InvokeDeploymentRequestMessages4Content,
1924
- ): string {
1925
- return JSON.stringify(
1926
- InvokeDeploymentRequestMessages4Content$outboundSchema.parse(
1927
- invokeDeploymentRequestMessages4Content,
1928
- ),
1929
- );
1930
- }
1931
-
1932
- /** @internal */
1933
- export type MessagesAudio$Outbound = {
1934
- id: string;
1935
- };
1936
-
1937
- /** @internal */
1938
- export const MessagesAudio$outboundSchema: z.ZodType<
1939
- MessagesAudio$Outbound,
1940
- z.ZodTypeDef,
1941
- MessagesAudio
1942
- > = z.object({
1943
- id: z.string(),
1944
- });
1945
-
1946
- export function messagesAudioToJSON(messagesAudio: MessagesAudio): string {
1947
- return JSON.stringify(MessagesAudio$outboundSchema.parse(messagesAudio));
1948
- }
1949
-
1950
- /** @internal */
1951
- export const MessagesType$outboundSchema: z.ZodNativeEnum<typeof MessagesType> =
1952
- z.nativeEnum(MessagesType);
1953
-
1954
- /** @internal */
1955
- export type MessagesFunction$Outbound = {
1956
- name?: string | undefined;
1957
- arguments?: string | undefined;
1958
- };
1959
-
1960
- /** @internal */
1961
- export const MessagesFunction$outboundSchema: z.ZodType<
1962
- MessagesFunction$Outbound,
1963
- z.ZodTypeDef,
1964
- MessagesFunction
1965
- > = z.object({
1966
- name: z.string().optional(),
1967
- arguments: z.string().optional(),
1968
- });
1969
-
1970
- export function messagesFunctionToJSON(
1971
- messagesFunction: MessagesFunction,
1972
- ): string {
1973
- return JSON.stringify(
1974
- MessagesFunction$outboundSchema.parse(messagesFunction),
1975
- );
1976
- }
1977
-
1978
- /** @internal */
1979
- export type MessagesToolCalls$Outbound = {
1980
- id: string;
1981
- type: string;
1982
- function: MessagesFunction$Outbound;
1983
- thought_signature?: string | undefined;
1984
- };
1985
-
1986
- /** @internal */
1987
- export const MessagesToolCalls$outboundSchema: z.ZodType<
1988
- MessagesToolCalls$Outbound,
1989
- z.ZodTypeDef,
1990
- MessagesToolCalls
1991
- > = z.object({
1992
- id: z.string(),
1993
- type: MessagesType$outboundSchema,
1994
- function: z.lazy(() => MessagesFunction$outboundSchema),
1995
- thoughtSignature: z.string().optional(),
1996
- }).transform((v) => {
1997
- return remap$(v, {
1998
- thoughtSignature: "thought_signature",
1999
- });
2000
- });
2001
-
2002
- export function messagesToolCallsToJSON(
2003
- messagesToolCalls: MessagesToolCalls,
2004
- ): string {
2005
- return JSON.stringify(
2006
- MessagesToolCalls$outboundSchema.parse(messagesToolCalls),
2007
- );
2008
- }
2009
-
2010
- /** @internal */
2011
- export type MessagesAssistantMessage$Outbound = {
2012
- reasoning_content?: string | undefined;
2013
- content?:
2014
- | string
2015
- | Array<
2016
- | (TextContentPartSchema$Outbound & { type: "text" })
2017
- | RefusalPartSchema$Outbound
2018
- | ReasoningPartSchema$Outbound
2019
- | RedactedReasoningPartSchema$Outbound
2020
- >
2021
- | null
2022
- | undefined;
2023
- refusal?: string | null | undefined;
2024
- role: "assistant";
2025
- name?: string | undefined;
2026
- audio?: MessagesAudio$Outbound | null | undefined;
2027
- tool_calls?: Array<MessagesToolCalls$Outbound> | undefined;
2028
- };
2029
-
2030
- /** @internal */
2031
- export const MessagesAssistantMessage$outboundSchema: z.ZodType<
2032
- MessagesAssistantMessage$Outbound,
2033
- z.ZodTypeDef,
2034
- MessagesAssistantMessage
2035
- > = z.object({
2036
- reasoningContent: z.string().optional(),
2037
- content: z.nullable(
2038
- z.union([
2039
- z.string(),
2040
- z.array(
2041
- z.union([
2042
- TextContentPartSchema$outboundSchema.and(
2043
- z.object({ type: z.literal("text") }),
2044
- ),
2045
- RefusalPartSchema$outboundSchema,
2046
- ReasoningPartSchema$outboundSchema,
2047
- RedactedReasoningPartSchema$outboundSchema,
2048
- ]),
2049
- ),
2050
- ]),
2051
- ).optional(),
2052
- refusal: z.nullable(z.string()).optional(),
2053
- role: z.literal("assistant"),
2054
- name: z.string().optional(),
2055
- audio: z.nullable(z.lazy(() => MessagesAudio$outboundSchema)).optional(),
2056
- toolCalls: z.array(z.lazy(() => MessagesToolCalls$outboundSchema)).optional(),
2057
- }).transform((v) => {
2058
- return remap$(v, {
2059
- reasoningContent: "reasoning_content",
2060
- toolCalls: "tool_calls",
2061
- });
2062
- });
2063
-
2064
- export function messagesAssistantMessageToJSON(
2065
- messagesAssistantMessage: MessagesAssistantMessage,
2066
- ): string {
2067
- return JSON.stringify(
2068
- MessagesAssistantMessage$outboundSchema.parse(messagesAssistantMessage),
2069
- );
2070
- }
2071
-
2072
- /** @internal */
2073
- export const InvokeDeploymentRequest2MessagesType$outboundSchema:
2074
- z.ZodNativeEnum<typeof InvokeDeploymentRequest2MessagesType> = z.nativeEnum(
2075
- InvokeDeploymentRequest2MessagesType,
2076
- );
2077
-
2078
- /** @internal */
2079
- export const InvokeDeploymentRequest2Ttl$outboundSchema: z.ZodNativeEnum<
2080
- typeof InvokeDeploymentRequest2Ttl
2081
- > = z.nativeEnum(InvokeDeploymentRequest2Ttl);
2082
-
2083
- /** @internal */
2084
- export type InvokeDeploymentRequest2CacheControl$Outbound = {
2085
- type: string;
2086
- ttl: string;
2087
- };
2088
-
2089
- /** @internal */
2090
- export const InvokeDeploymentRequest2CacheControl$outboundSchema: z.ZodType<
2091
- InvokeDeploymentRequest2CacheControl$Outbound,
2092
- z.ZodTypeDef,
2093
- InvokeDeploymentRequest2CacheControl
2094
- > = z.object({
2095
- type: InvokeDeploymentRequest2MessagesType$outboundSchema,
2096
- ttl: InvokeDeploymentRequest2Ttl$outboundSchema.default("5m"),
2097
- });
2098
-
2099
- export function invokeDeploymentRequest2CacheControlToJSON(
2100
- invokeDeploymentRequest2CacheControl: InvokeDeploymentRequest2CacheControl,
2101
- ): string {
2102
- return JSON.stringify(
2103
- InvokeDeploymentRequest2CacheControl$outboundSchema.parse(
2104
- invokeDeploymentRequest2CacheControl,
2105
- ),
2106
- );
2107
- }
2108
-
2109
- /** @internal */
2110
- export type InvokeDeploymentRequest24$Outbound = {
2111
- type: "file";
2112
- cache_control?: InvokeDeploymentRequest2CacheControl$Outbound | undefined;
2113
- file: FileContentPartSchema$Outbound;
2114
- };
2115
-
2116
- /** @internal */
2117
- export const InvokeDeploymentRequest24$outboundSchema: z.ZodType<
2118
- InvokeDeploymentRequest24$Outbound,
2119
- z.ZodTypeDef,
2120
- InvokeDeploymentRequest24
2121
- > = z.object({
2122
- type: z.literal("file"),
2123
- cacheControl: z.lazy(() =>
2124
- InvokeDeploymentRequest2CacheControl$outboundSchema
2125
- ).optional(),
2126
- file: FileContentPartSchema$outboundSchema,
2127
- }).transform((v) => {
2128
- return remap$(v, {
2129
- cacheControl: "cache_control",
2130
- });
2131
- });
2132
-
2133
- export function invokeDeploymentRequest24ToJSON(
2134
- invokeDeploymentRequest24: InvokeDeploymentRequest24,
2135
- ): string {
2136
- return JSON.stringify(
2137
- InvokeDeploymentRequest24$outboundSchema.parse(invokeDeploymentRequest24),
2138
- );
2139
- }
2140
-
2141
- /** @internal */
2142
- export type InvokeDeploymentRequestContentMessages2$Outbound =
2143
- | (TextContentPartSchema$Outbound & { type: "text" })
2144
- | ImageContentPartSchema$Outbound
2145
- | AudioContentPartSchema$Outbound
2146
- | InvokeDeploymentRequest24$Outbound;
2147
-
2148
- /** @internal */
2149
- export const InvokeDeploymentRequestContentMessages2$outboundSchema: z.ZodType<
2150
- InvokeDeploymentRequestContentMessages2$Outbound,
2151
- z.ZodTypeDef,
2152
- InvokeDeploymentRequestContentMessages2
2153
- > = z.union([
2154
- TextContentPartSchema$outboundSchema.and(
2155
- z.object({ type: z.literal("text") }),
2156
- ),
2157
- ImageContentPartSchema$outboundSchema,
2158
- AudioContentPartSchema$outboundSchema,
2159
- z.lazy(() => InvokeDeploymentRequest24$outboundSchema),
2160
- ]);
2161
-
2162
- export function invokeDeploymentRequestContentMessages2ToJSON(
2163
- invokeDeploymentRequestContentMessages2:
2164
- InvokeDeploymentRequestContentMessages2,
2165
- ): string {
2166
- return JSON.stringify(
2167
- InvokeDeploymentRequestContentMessages2$outboundSchema.parse(
2168
- invokeDeploymentRequestContentMessages2,
2169
- ),
2170
- );
2171
- }
2172
-
2173
- /** @internal */
2174
- export type InvokeDeploymentRequestMessages3Content$Outbound =
2175
- | string
2176
- | Array<
2177
- | (TextContentPartSchema$Outbound & { type: "text" })
2178
- | ImageContentPartSchema$Outbound
2179
- | AudioContentPartSchema$Outbound
2180
- | InvokeDeploymentRequest24$Outbound
2181
- >;
2182
-
2183
- /** @internal */
2184
- export const InvokeDeploymentRequestMessages3Content$outboundSchema: z.ZodType<
2185
- InvokeDeploymentRequestMessages3Content$Outbound,
2186
- z.ZodTypeDef,
2187
- InvokeDeploymentRequestMessages3Content
2188
- > = z.union([
2189
- z.string(),
2190
- z.array(
2191
- z.union([
2192
- TextContentPartSchema$outboundSchema.and(
2193
- z.object({ type: z.literal("text") }),
2194
- ),
2195
- ImageContentPartSchema$outboundSchema,
2196
- AudioContentPartSchema$outboundSchema,
2197
- z.lazy(() => InvokeDeploymentRequest24$outboundSchema),
2198
- ]),
2199
- ),
2200
- ]);
2201
-
2202
- export function invokeDeploymentRequestMessages3ContentToJSON(
2203
- invokeDeploymentRequestMessages3Content:
2204
- InvokeDeploymentRequestMessages3Content,
2205
- ): string {
2206
- return JSON.stringify(
2207
- InvokeDeploymentRequestMessages3Content$outboundSchema.parse(
2208
- invokeDeploymentRequestMessages3Content,
2209
- ),
2210
- );
2211
- }
2212
-
2213
- /** @internal */
2214
- export type MessagesUserMessage$Outbound = {
2215
- role: "user";
2216
- name?: string | undefined;
2217
- content:
2218
- | string
2219
- | Array<
2220
- | (TextContentPartSchema$Outbound & { type: "text" })
2221
- | ImageContentPartSchema$Outbound
2222
- | AudioContentPartSchema$Outbound
2223
- | InvokeDeploymentRequest24$Outbound
2224
- >;
2225
- };
2226
-
2227
- /** @internal */
2228
- export const MessagesUserMessage$outboundSchema: z.ZodType<
2229
- MessagesUserMessage$Outbound,
2230
- z.ZodTypeDef,
2231
- MessagesUserMessage
2232
- > = z.object({
2233
- role: z.literal("user"),
2234
- name: z.string().optional(),
2235
- content: z.union([
2236
- z.string(),
2237
- z.array(
2238
- z.union([
2239
- TextContentPartSchema$outboundSchema.and(
2240
- z.object({ type: z.literal("text") }),
2241
- ),
2242
- ImageContentPartSchema$outboundSchema,
2243
- AudioContentPartSchema$outboundSchema,
2244
- z.lazy(() => InvokeDeploymentRequest24$outboundSchema),
2245
- ]),
2246
- ),
2247
- ]),
2248
- });
2249
-
2250
- export function messagesUserMessageToJSON(
2251
- messagesUserMessage: MessagesUserMessage,
2252
- ): string {
2253
- return JSON.stringify(
2254
- MessagesUserMessage$outboundSchema.parse(messagesUserMessage),
2255
- );
2256
- }
2257
-
2258
- /** @internal */
2259
- export type InvokeDeploymentRequestMessagesContent$Outbound =
2260
- | string
2261
- | Array<TextContentPartSchema$Outbound>;
2262
-
2263
- /** @internal */
2264
- export const InvokeDeploymentRequestMessagesContent$outboundSchema: z.ZodType<
2265
- InvokeDeploymentRequestMessagesContent$Outbound,
2266
- z.ZodTypeDef,
2267
- InvokeDeploymentRequestMessagesContent
2268
- > = z.union([z.string(), z.array(TextContentPartSchema$outboundSchema)]);
2269
-
2270
- export function invokeDeploymentRequestMessagesContentToJSON(
2271
- invokeDeploymentRequestMessagesContent:
2272
- InvokeDeploymentRequestMessagesContent,
2273
- ): string {
2274
- return JSON.stringify(
2275
- InvokeDeploymentRequestMessagesContent$outboundSchema.parse(
2276
- invokeDeploymentRequestMessagesContent,
2277
- ),
2278
- );
2279
- }
2280
-
2281
- /** @internal */
2282
- export type MessagesDeveloperMessage$Outbound = {
2283
- role: "developer";
2284
- content: string | Array<TextContentPartSchema$Outbound>;
2285
- name?: string | undefined;
2286
- };
2287
-
2288
- /** @internal */
2289
- export const MessagesDeveloperMessage$outboundSchema: z.ZodType<
2290
- MessagesDeveloperMessage$Outbound,
2291
- z.ZodTypeDef,
2292
- MessagesDeveloperMessage
2293
- > = z.object({
2294
- role: z.literal("developer"),
2295
- content: z.union([z.string(), z.array(TextContentPartSchema$outboundSchema)]),
2296
- name: z.string().optional(),
2297
- });
2298
-
2299
- export function messagesDeveloperMessageToJSON(
2300
- messagesDeveloperMessage: MessagesDeveloperMessage,
2301
- ): string {
2302
- return JSON.stringify(
2303
- MessagesDeveloperMessage$outboundSchema.parse(messagesDeveloperMessage),
2304
- );
2305
- }
2306
-
2307
- /** @internal */
2308
- export type MessagesContent$Outbound =
2309
- | string
2310
- | Array<TextContentPartSchema$Outbound>;
2311
-
2312
- /** @internal */
2313
- export const MessagesContent$outboundSchema: z.ZodType<
2314
- MessagesContent$Outbound,
2315
- z.ZodTypeDef,
2316
- MessagesContent
2317
- > = z.union([z.string(), z.array(TextContentPartSchema$outboundSchema)]);
2318
-
2319
- export function messagesContentToJSON(
2320
- messagesContent: MessagesContent,
2321
- ): string {
2322
- return JSON.stringify(MessagesContent$outboundSchema.parse(messagesContent));
2323
- }
2324
-
2325
- /** @internal */
2326
- export type MessagesSystemMessage$Outbound = {
2327
- role: "system";
2328
- content: string | Array<TextContentPartSchema$Outbound>;
2329
- name?: string | undefined;
2330
- };
2331
-
2332
- /** @internal */
2333
- export const MessagesSystemMessage$outboundSchema: z.ZodType<
2334
- MessagesSystemMessage$Outbound,
2335
- z.ZodTypeDef,
2336
- MessagesSystemMessage
2337
- > = z.object({
2338
- role: z.literal("system"),
2339
- content: z.union([z.string(), z.array(TextContentPartSchema$outboundSchema)]),
2340
- name: z.string().optional(),
2341
- });
2342
-
2343
- export function messagesSystemMessageToJSON(
2344
- messagesSystemMessage: MessagesSystemMessage,
2345
- ): string {
2346
- return JSON.stringify(
2347
- MessagesSystemMessage$outboundSchema.parse(messagesSystemMessage),
2348
- );
2349
- }
2350
-
2351
- /** @internal */
2352
- export type Messages$Outbound =
2353
- | MessagesSystemMessage$Outbound
2354
- | MessagesDeveloperMessage$Outbound
2355
- | MessagesUserMessage$Outbound
2356
- | MessagesAssistantMessage$Outbound
2357
- | MessagesToolMessage$Outbound;
2358
-
2359
- /** @internal */
2360
- export const Messages$outboundSchema: z.ZodType<
2361
- Messages$Outbound,
2362
- z.ZodTypeDef,
2363
- Messages
2364
- > = z.union([
2365
- z.lazy(() => MessagesSystemMessage$outboundSchema),
2366
- z.lazy(() => MessagesDeveloperMessage$outboundSchema),
2367
- z.lazy(() => MessagesUserMessage$outboundSchema),
2368
- z.lazy(() => MessagesAssistantMessage$outboundSchema),
2369
- z.lazy(() => MessagesToolMessage$outboundSchema),
2370
- ]);
2371
-
2372
- export function messagesToJSON(messages: Messages): string {
2373
- return JSON.stringify(Messages$outboundSchema.parse(messages));
2374
- }
2375
-
2376
- /** @internal */
2377
- export type InvokeDeploymentRequestMetadata$Outbound = {
2378
- file_name?: string | undefined;
2379
- file_type?: string | undefined;
2380
- page_number?: number | undefined;
2381
- };
2382
-
2383
- /** @internal */
2384
- export const InvokeDeploymentRequestMetadata$outboundSchema: z.ZodType<
2385
- InvokeDeploymentRequestMetadata$Outbound,
2386
- z.ZodTypeDef,
2387
- InvokeDeploymentRequestMetadata
2388
- > = z.object({
2389
- fileName: z.string().optional(),
2390
- fileType: z.string().optional(),
2391
- pageNumber: z.number().optional(),
2392
- }).transform((v) => {
2393
- return remap$(v, {
2394
- fileName: "file_name",
2395
- fileType: "file_type",
2396
- pageNumber: "page_number",
2397
- });
2398
- });
2399
-
2400
- export function invokeDeploymentRequestMetadataToJSON(
2401
- invokeDeploymentRequestMetadata: InvokeDeploymentRequestMetadata,
2402
- ): string {
2403
- return JSON.stringify(
2404
- InvokeDeploymentRequestMetadata$outboundSchema.parse(
2405
- invokeDeploymentRequestMetadata,
2406
- ),
2407
- );
2408
- }
2409
-
2410
- /** @internal */
2411
- export type Documents$Outbound = {
2412
- text: string;
2413
- metadata?: InvokeDeploymentRequestMetadata$Outbound | undefined;
2414
- };
2415
-
2416
- /** @internal */
2417
- export const Documents$outboundSchema: z.ZodType<
2418
- Documents$Outbound,
2419
- z.ZodTypeDef,
2420
- Documents
2421
- > = z.object({
2422
- text: z.string(),
2423
- metadata: z.lazy(() => InvokeDeploymentRequestMetadata$outboundSchema)
2424
- .optional(),
2425
- });
2426
-
2427
- export function documentsToJSON(documents: Documents): string {
2428
- return JSON.stringify(Documents$outboundSchema.parse(documents));
2429
- }
2430
-
2431
- /** @internal */
2432
- export type InvokeOptions$Outbound = {
2433
- include_retrievals: boolean;
2434
- include_usage: boolean;
2435
- mock_response?: string | undefined;
2436
- };
2437
-
2438
- /** @internal */
2439
- export const InvokeOptions$outboundSchema: z.ZodType<
2440
- InvokeOptions$Outbound,
2441
- z.ZodTypeDef,
2442
- InvokeOptions
2443
- > = z.object({
2444
- includeRetrievals: z.boolean().default(false),
2445
- includeUsage: z.boolean().default(false),
2446
- mockResponse: z.string().optional(),
2447
- }).transform((v) => {
2448
- return remap$(v, {
2449
- includeRetrievals: "include_retrievals",
2450
- includeUsage: "include_usage",
2451
- mockResponse: "mock_response",
2452
- });
2453
- });
2454
-
2455
- export function invokeOptionsToJSON(invokeOptions: InvokeOptions): string {
2456
- return JSON.stringify(InvokeOptions$outboundSchema.parse(invokeOptions));
2457
- }
2458
-
2459
- /** @internal */
2460
- export type Thread$Outbound = {
2461
- id: string;
2462
- tags?: Array<string> | undefined;
2463
- };
2464
-
2465
- /** @internal */
2466
- export const Thread$outboundSchema: z.ZodType<
2467
- Thread$Outbound,
2468
- z.ZodTypeDef,
2469
- Thread
2470
- > = z.object({
2471
- id: z.string(),
2472
- tags: z.array(z.string()).optional(),
2473
- });
2474
-
2475
- export function threadToJSON(thread: Thread): string {
2476
- return JSON.stringify(Thread$outboundSchema.parse(thread));
2477
- }
2478
-
2479
- /** @internal */
2480
- export type OrNin$Outbound = string | number | boolean;
2481
-
2482
- /** @internal */
2483
- export const OrNin$outboundSchema: z.ZodType<
2484
- OrNin$Outbound,
2485
- z.ZodTypeDef,
2486
- OrNin
2487
- > = z.union([z.string(), z.number(), z.boolean()]);
2488
-
2489
- export function orNinToJSON(orNin: OrNin): string {
2490
- return JSON.stringify(OrNin$outboundSchema.parse(orNin));
2491
- }
2492
-
2493
- /** @internal */
2494
- export type InvokeDeploymentRequestOrNin$Outbound = {
2495
- nin: Array<string | number | boolean>;
2496
- };
2497
-
2498
- /** @internal */
2499
- export const InvokeDeploymentRequestOrNin$outboundSchema: z.ZodType<
2500
- InvokeDeploymentRequestOrNin$Outbound,
2501
- z.ZodTypeDef,
2502
- InvokeDeploymentRequestOrNin
2503
- > = z.object({
2504
- nin: z.array(z.union([z.string(), z.number(), z.boolean()])),
2505
- });
2506
-
2507
- export function invokeDeploymentRequestOrNinToJSON(
2508
- invokeDeploymentRequestOrNin: InvokeDeploymentRequestOrNin,
2509
- ): string {
2510
- return JSON.stringify(
2511
- InvokeDeploymentRequestOrNin$outboundSchema.parse(
2512
- invokeDeploymentRequestOrNin,
2513
- ),
2514
- );
2515
- }
2516
-
2517
- /** @internal */
2518
- export type OrIn$Outbound = string | number | boolean;
2519
-
2520
- /** @internal */
2521
- export const OrIn$outboundSchema: z.ZodType<OrIn$Outbound, z.ZodTypeDef, OrIn> =
2522
- z.union([z.string(), z.number(), z.boolean()]);
2523
-
2524
- export function orInToJSON(orIn: OrIn): string {
2525
- return JSON.stringify(OrIn$outboundSchema.parse(orIn));
2526
- }
2527
-
2528
- /** @internal */
2529
- export type InvokeDeploymentRequestOrIn$Outbound = {
2530
- in: Array<string | number | boolean>;
2531
- };
2532
-
2533
- /** @internal */
2534
- export const InvokeDeploymentRequestOrIn$outboundSchema: z.ZodType<
2535
- InvokeDeploymentRequestOrIn$Outbound,
2536
- z.ZodTypeDef,
2537
- InvokeDeploymentRequestOrIn
2538
- > = z.object({
2539
- in: z.array(z.union([z.string(), z.number(), z.boolean()])),
2540
- });
2541
-
2542
- export function invokeDeploymentRequestOrInToJSON(
2543
- invokeDeploymentRequestOrIn: InvokeDeploymentRequestOrIn,
2544
- ): string {
2545
- return JSON.stringify(
2546
- InvokeDeploymentRequestOrIn$outboundSchema.parse(
2547
- invokeDeploymentRequestOrIn,
2548
- ),
2549
- );
2550
- }
2551
-
2552
- /** @internal */
2553
- export type OrLte$Outbound = {
2554
- lte: number;
2555
- };
2556
-
2557
- /** @internal */
2558
- export const OrLte$outboundSchema: z.ZodType<
2559
- OrLte$Outbound,
2560
- z.ZodTypeDef,
2561
- OrLte
2562
- > = z.object({
2563
- lte: z.number(),
2564
- });
2565
-
2566
- export function orLteToJSON(orLte: OrLte): string {
2567
- return JSON.stringify(OrLte$outboundSchema.parse(orLte));
2568
- }
2569
-
2570
- /** @internal */
2571
- export type OrLt$Outbound = {
2572
- lt: number;
2573
- };
2574
-
2575
- /** @internal */
2576
- export const OrLt$outboundSchema: z.ZodType<OrLt$Outbound, z.ZodTypeDef, OrLt> =
2577
- z.object({
2578
- lt: z.number(),
2579
- });
2580
-
2581
- export function orLtToJSON(orLt: OrLt): string {
2582
- return JSON.stringify(OrLt$outboundSchema.parse(orLt));
2583
- }
2584
-
2585
- /** @internal */
2586
- export type OrGte$Outbound = {
2587
- gte: number;
2588
- };
2589
-
2590
- /** @internal */
2591
- export const OrGte$outboundSchema: z.ZodType<
2592
- OrGte$Outbound,
2593
- z.ZodTypeDef,
2594
- OrGte
2595
- > = z.object({
2596
- gte: z.number(),
2597
- });
2598
-
2599
- export function orGteToJSON(orGte: OrGte): string {
2600
- return JSON.stringify(OrGte$outboundSchema.parse(orGte));
2601
- }
2602
-
2603
- /** @internal */
2604
- export type OrGt$Outbound = {
2605
- gt: number;
2606
- };
2607
-
2608
- /** @internal */
2609
- export const OrGt$outboundSchema: z.ZodType<OrGt$Outbound, z.ZodTypeDef, OrGt> =
2610
- z.object({
2611
- gt: z.number(),
2612
- });
2613
-
2614
- export function orGtToJSON(orGt: OrGt): string {
2615
- return JSON.stringify(OrGt$outboundSchema.parse(orGt));
2616
- }
2617
-
2618
- /** @internal */
2619
- export type OrNe$Outbound = string | number | boolean;
2620
-
2621
- /** @internal */
2622
- export const OrNe$outboundSchema: z.ZodType<OrNe$Outbound, z.ZodTypeDef, OrNe> =
2623
- z.union([z.string(), z.number(), z.boolean()]);
2624
-
2625
- export function orNeToJSON(orNe: OrNe): string {
2626
- return JSON.stringify(OrNe$outboundSchema.parse(orNe));
2627
- }
2628
-
2629
- /** @internal */
2630
- export type InvokeDeploymentRequestOrNe$Outbound = {
2631
- ne: string | number | boolean;
2632
- };
2633
-
2634
- /** @internal */
2635
- export const InvokeDeploymentRequestOrNe$outboundSchema: z.ZodType<
2636
- InvokeDeploymentRequestOrNe$Outbound,
2637
- z.ZodTypeDef,
2638
- InvokeDeploymentRequestOrNe
2639
- > = z.object({
2640
- ne: z.union([z.string(), z.number(), z.boolean()]),
2641
- });
2642
-
2643
- export function invokeDeploymentRequestOrNeToJSON(
2644
- invokeDeploymentRequestOrNe: InvokeDeploymentRequestOrNe,
2645
- ): string {
2646
- return JSON.stringify(
2647
- InvokeDeploymentRequestOrNe$outboundSchema.parse(
2648
- invokeDeploymentRequestOrNe,
2649
- ),
2650
- );
2651
- }
2652
-
2653
- /** @internal */
2654
- export type OrEq$Outbound = string | number | boolean;
2655
-
2656
- /** @internal */
2657
- export const OrEq$outboundSchema: z.ZodType<OrEq$Outbound, z.ZodTypeDef, OrEq> =
2658
- z.union([z.string(), z.number(), z.boolean()]);
2659
-
2660
- export function orEqToJSON(orEq: OrEq): string {
2661
- return JSON.stringify(OrEq$outboundSchema.parse(orEq));
2662
- }
2663
-
2664
- /** @internal */
2665
- export type InvokeDeploymentRequestOrEq$Outbound = {
2666
- eq: string | number | boolean;
2667
- };
2668
-
2669
- /** @internal */
2670
- export const InvokeDeploymentRequestOrEq$outboundSchema: z.ZodType<
2671
- InvokeDeploymentRequestOrEq$Outbound,
2672
- z.ZodTypeDef,
2673
- InvokeDeploymentRequestOrEq
2674
- > = z.object({
2675
- eq: z.union([z.string(), z.number(), z.boolean()]),
2676
- });
2677
-
2678
- export function invokeDeploymentRequestOrEqToJSON(
2679
- invokeDeploymentRequestOrEq: InvokeDeploymentRequestOrEq,
2680
- ): string {
2681
- return JSON.stringify(
2682
- InvokeDeploymentRequestOrEq$outboundSchema.parse(
2683
- invokeDeploymentRequestOrEq,
2684
- ),
2685
- );
2686
- }
2687
-
2688
- /** @internal */
2689
- export type Or$Outbound =
2690
- | InvokeDeploymentRequestOrEq$Outbound
2691
- | InvokeDeploymentRequestOrNe$Outbound
2692
- | OrGt$Outbound
2693
- | OrGte$Outbound
2694
- | OrLt$Outbound
2695
- | OrLte$Outbound
2696
- | InvokeDeploymentRequestOrIn$Outbound
2697
- | InvokeDeploymentRequestOrNin$Outbound;
2698
-
2699
- /** @internal */
2700
- export const Or$outboundSchema: z.ZodType<Or$Outbound, z.ZodTypeDef, Or> = z
2701
- .union([
2702
- z.lazy(() => InvokeDeploymentRequestOrEq$outboundSchema),
2703
- z.lazy(() => InvokeDeploymentRequestOrNe$outboundSchema),
2704
- z.lazy(() => OrGt$outboundSchema),
2705
- z.lazy(() => OrGte$outboundSchema),
2706
- z.lazy(() => OrLt$outboundSchema),
2707
- z.lazy(() => OrLte$outboundSchema),
2708
- z.lazy(() => InvokeDeploymentRequestOrIn$outboundSchema),
2709
- z.lazy(() => InvokeDeploymentRequestOrNin$outboundSchema),
2710
- ]);
2711
-
2712
- export function orToJSON(or: Or): string {
2713
- return JSON.stringify(Or$outboundSchema.parse(or));
2714
- }
2715
-
2716
- /** @internal */
2717
- export type KnowledgeFilterOr$Outbound = {
2718
- or: Array<
2719
- {
2720
- [k: string]:
2721
- | InvokeDeploymentRequestOrEq$Outbound
2722
- | InvokeDeploymentRequestOrNe$Outbound
2723
- | OrGt$Outbound
2724
- | OrGte$Outbound
2725
- | OrLt$Outbound
2726
- | OrLte$Outbound
2727
- | InvokeDeploymentRequestOrIn$Outbound
2728
- | InvokeDeploymentRequestOrNin$Outbound;
2729
- }
2730
- >;
2731
- };
2732
-
2733
- /** @internal */
2734
- export const KnowledgeFilterOr$outboundSchema: z.ZodType<
2735
- KnowledgeFilterOr$Outbound,
2736
- z.ZodTypeDef,
2737
- KnowledgeFilterOr
2738
- > = z.object({
2739
- or: z.array(
2740
- z.record(z.union([
2741
- z.lazy(() => InvokeDeploymentRequestOrEq$outboundSchema),
2742
- z.lazy(() =>
2743
- InvokeDeploymentRequestOrNe$outboundSchema
2744
- ),
2745
- z.lazy(() => OrGt$outboundSchema),
2746
- z.lazy(() => OrGte$outboundSchema),
2747
- z.lazy(() => OrLt$outboundSchema),
2748
- z.lazy(() => OrLte$outboundSchema),
2749
- z.lazy(() => InvokeDeploymentRequestOrIn$outboundSchema),
2750
- z.lazy(() => InvokeDeploymentRequestOrNin$outboundSchema),
2751
- ])),
2752
- ),
2753
- });
2754
-
2755
- export function knowledgeFilterOrToJSON(
2756
- knowledgeFilterOr: KnowledgeFilterOr,
2757
- ): string {
2758
- return JSON.stringify(
2759
- KnowledgeFilterOr$outboundSchema.parse(knowledgeFilterOr),
2760
- );
2761
- }
2762
-
2763
- /** @internal */
2764
- export type AndNin$Outbound = string | number | boolean;
2765
-
2766
- /** @internal */
2767
- export const AndNin$outboundSchema: z.ZodType<
2768
- AndNin$Outbound,
2769
- z.ZodTypeDef,
2770
- AndNin
2771
- > = z.union([z.string(), z.number(), z.boolean()]);
2772
-
2773
- export function andNinToJSON(andNin: AndNin): string {
2774
- return JSON.stringify(AndNin$outboundSchema.parse(andNin));
2775
- }
2776
-
2777
- /** @internal */
2778
- export type InvokeDeploymentRequestAndNin$Outbound = {
2779
- nin: Array<string | number | boolean>;
2780
- };
2781
-
2782
- /** @internal */
2783
- export const InvokeDeploymentRequestAndNin$outboundSchema: z.ZodType<
2784
- InvokeDeploymentRequestAndNin$Outbound,
2785
- z.ZodTypeDef,
2786
- InvokeDeploymentRequestAndNin
2787
- > = z.object({
2788
- nin: z.array(z.union([z.string(), z.number(), z.boolean()])),
2789
- });
2790
-
2791
- export function invokeDeploymentRequestAndNinToJSON(
2792
- invokeDeploymentRequestAndNin: InvokeDeploymentRequestAndNin,
2793
- ): string {
2794
- return JSON.stringify(
2795
- InvokeDeploymentRequestAndNin$outboundSchema.parse(
2796
- invokeDeploymentRequestAndNin,
2797
- ),
2798
- );
2799
- }
2800
-
2801
- /** @internal */
2802
- export type AndIn$Outbound = string | number | boolean;
2803
-
2804
- /** @internal */
2805
- export const AndIn$outboundSchema: z.ZodType<
2806
- AndIn$Outbound,
2807
- z.ZodTypeDef,
2808
- AndIn
2809
- > = z.union([z.string(), z.number(), z.boolean()]);
2810
-
2811
- export function andInToJSON(andIn: AndIn): string {
2812
- return JSON.stringify(AndIn$outboundSchema.parse(andIn));
2813
- }
2814
-
2815
- /** @internal */
2816
- export type InvokeDeploymentRequestAndIn$Outbound = {
2817
- in: Array<string | number | boolean>;
2818
- };
2819
-
2820
- /** @internal */
2821
- export const InvokeDeploymentRequestAndIn$outboundSchema: z.ZodType<
2822
- InvokeDeploymentRequestAndIn$Outbound,
2823
- z.ZodTypeDef,
2824
- InvokeDeploymentRequestAndIn
2825
- > = z.object({
2826
- in: z.array(z.union([z.string(), z.number(), z.boolean()])),
2827
- });
2828
-
2829
- export function invokeDeploymentRequestAndInToJSON(
2830
- invokeDeploymentRequestAndIn: InvokeDeploymentRequestAndIn,
2831
- ): string {
2832
- return JSON.stringify(
2833
- InvokeDeploymentRequestAndIn$outboundSchema.parse(
2834
- invokeDeploymentRequestAndIn,
2835
- ),
2836
- );
2837
- }
2838
-
2839
- /** @internal */
2840
- export type AndLte$Outbound = {
2841
- lte: number;
2842
- };
2843
-
2844
- /** @internal */
2845
- export const AndLte$outboundSchema: z.ZodType<
2846
- AndLte$Outbound,
2847
- z.ZodTypeDef,
2848
- AndLte
2849
- > = z.object({
2850
- lte: z.number(),
2851
- });
2852
-
2853
- export function andLteToJSON(andLte: AndLte): string {
2854
- return JSON.stringify(AndLte$outboundSchema.parse(andLte));
2855
- }
2856
-
2857
- /** @internal */
2858
- export type AndLt$Outbound = {
2859
- lt: number;
2860
- };
2861
-
2862
- /** @internal */
2863
- export const AndLt$outboundSchema: z.ZodType<
2864
- AndLt$Outbound,
2865
- z.ZodTypeDef,
2866
- AndLt
2867
- > = z.object({
2868
- lt: z.number(),
2869
- });
2870
-
2871
- export function andLtToJSON(andLt: AndLt): string {
2872
- return JSON.stringify(AndLt$outboundSchema.parse(andLt));
2873
- }
2874
-
2875
- /** @internal */
2876
- export type AndGte$Outbound = {
2877
- gte: number;
2878
- };
2879
-
2880
- /** @internal */
2881
- export const AndGte$outboundSchema: z.ZodType<
2882
- AndGte$Outbound,
2883
- z.ZodTypeDef,
2884
- AndGte
2885
- > = z.object({
2886
- gte: z.number(),
2887
- });
2888
-
2889
- export function andGteToJSON(andGte: AndGte): string {
2890
- return JSON.stringify(AndGte$outboundSchema.parse(andGte));
2891
- }
2892
-
2893
- /** @internal */
2894
- export type AndGt$Outbound = {
2895
- gt: number;
2896
- };
2897
-
2898
- /** @internal */
2899
- export const AndGt$outboundSchema: z.ZodType<
2900
- AndGt$Outbound,
2901
- z.ZodTypeDef,
2902
- AndGt
2903
- > = z.object({
2904
- gt: z.number(),
2905
- });
2906
-
2907
- export function andGtToJSON(andGt: AndGt): string {
2908
- return JSON.stringify(AndGt$outboundSchema.parse(andGt));
2909
- }
2910
-
2911
- /** @internal */
2912
- export type AndNe$Outbound = string | number | boolean;
2913
-
2914
- /** @internal */
2915
- export const AndNe$outboundSchema: z.ZodType<
2916
- AndNe$Outbound,
2917
- z.ZodTypeDef,
2918
- AndNe
2919
- > = z.union([z.string(), z.number(), z.boolean()]);
2920
-
2921
- export function andNeToJSON(andNe: AndNe): string {
2922
- return JSON.stringify(AndNe$outboundSchema.parse(andNe));
2923
- }
2924
-
2925
- /** @internal */
2926
- export type InvokeDeploymentRequestAndNe$Outbound = {
2927
- ne: string | number | boolean;
2928
- };
2929
-
2930
- /** @internal */
2931
- export const InvokeDeploymentRequestAndNe$outboundSchema: z.ZodType<
2932
- InvokeDeploymentRequestAndNe$Outbound,
2933
- z.ZodTypeDef,
2934
- InvokeDeploymentRequestAndNe
2935
- > = z.object({
2936
- ne: z.union([z.string(), z.number(), z.boolean()]),
2937
- });
2938
-
2939
- export function invokeDeploymentRequestAndNeToJSON(
2940
- invokeDeploymentRequestAndNe: InvokeDeploymentRequestAndNe,
2941
- ): string {
2942
- return JSON.stringify(
2943
- InvokeDeploymentRequestAndNe$outboundSchema.parse(
2944
- invokeDeploymentRequestAndNe,
2945
- ),
2946
- );
2947
- }
2948
-
2949
- /** @internal */
2950
- export type AndEq$Outbound = string | number | boolean;
2951
-
2952
- /** @internal */
2953
- export const AndEq$outboundSchema: z.ZodType<
2954
- AndEq$Outbound,
2955
- z.ZodTypeDef,
2956
- AndEq
2957
- > = z.union([z.string(), z.number(), z.boolean()]);
2958
-
2959
- export function andEqToJSON(andEq: AndEq): string {
2960
- return JSON.stringify(AndEq$outboundSchema.parse(andEq));
2961
- }
2962
-
2963
- /** @internal */
2964
- export type InvokeDeploymentRequestAndEq$Outbound = {
2965
- eq: string | number | boolean;
2966
- };
2967
-
2968
- /** @internal */
2969
- export const InvokeDeploymentRequestAndEq$outboundSchema: z.ZodType<
2970
- InvokeDeploymentRequestAndEq$Outbound,
2971
- z.ZodTypeDef,
2972
- InvokeDeploymentRequestAndEq
2973
- > = z.object({
2974
- eq: z.union([z.string(), z.number(), z.boolean()]),
2975
- });
2976
-
2977
- export function invokeDeploymentRequestAndEqToJSON(
2978
- invokeDeploymentRequestAndEq: InvokeDeploymentRequestAndEq,
2979
- ): string {
2980
- return JSON.stringify(
2981
- InvokeDeploymentRequestAndEq$outboundSchema.parse(
2982
- invokeDeploymentRequestAndEq,
2983
- ),
2984
- );
2985
- }
2986
-
2987
- /** @internal */
2988
- export type And$Outbound =
2989
- | InvokeDeploymentRequestAndEq$Outbound
2990
- | InvokeDeploymentRequestAndNe$Outbound
2991
- | AndGt$Outbound
2992
- | AndGte$Outbound
2993
- | AndLt$Outbound
2994
- | AndLte$Outbound
2995
- | InvokeDeploymentRequestAndIn$Outbound
2996
- | InvokeDeploymentRequestAndNin$Outbound;
2997
-
2998
- /** @internal */
2999
- export const And$outboundSchema: z.ZodType<And$Outbound, z.ZodTypeDef, And> = z
3000
- .union([
3001
- z.lazy(() => InvokeDeploymentRequestAndEq$outboundSchema),
3002
- z.lazy(() => InvokeDeploymentRequestAndNe$outboundSchema),
3003
- z.lazy(() => AndGt$outboundSchema),
3004
- z.lazy(() => AndGte$outboundSchema),
3005
- z.lazy(() => AndLt$outboundSchema),
3006
- z.lazy(() => AndLte$outboundSchema),
3007
- z.lazy(() => InvokeDeploymentRequestAndIn$outboundSchema),
3008
- z.lazy(() => InvokeDeploymentRequestAndNin$outboundSchema),
3009
- ]);
3010
-
3011
- export function andToJSON(and: And): string {
3012
- return JSON.stringify(And$outboundSchema.parse(and));
3013
- }
3014
-
3015
- /** @internal */
3016
- export type KnowledgeFilterAnd$Outbound = {
3017
- and: Array<
3018
- {
3019
- [k: string]:
3020
- | InvokeDeploymentRequestAndEq$Outbound
3021
- | InvokeDeploymentRequestAndNe$Outbound
3022
- | AndGt$Outbound
3023
- | AndGte$Outbound
3024
- | AndLt$Outbound
3025
- | AndLte$Outbound
3026
- | InvokeDeploymentRequestAndIn$Outbound
3027
- | InvokeDeploymentRequestAndNin$Outbound;
3028
- }
3029
- >;
3030
- };
3031
-
3032
- /** @internal */
3033
- export const KnowledgeFilterAnd$outboundSchema: z.ZodType<
3034
- KnowledgeFilterAnd$Outbound,
3035
- z.ZodTypeDef,
3036
- KnowledgeFilterAnd
3037
- > = z.object({
3038
- and: z.array(
3039
- z.record(z.union([
3040
- z.lazy(() => InvokeDeploymentRequestAndEq$outboundSchema),
3041
- z.lazy(() =>
3042
- InvokeDeploymentRequestAndNe$outboundSchema
3043
- ),
3044
- z.lazy(() => AndGt$outboundSchema),
3045
- z.lazy(() => AndGte$outboundSchema),
3046
- z.lazy(() => AndLt$outboundSchema),
3047
- z.lazy(() => AndLte$outboundSchema),
3048
- z.lazy(() => InvokeDeploymentRequestAndIn$outboundSchema),
3049
- z.lazy(() => InvokeDeploymentRequestAndNin$outboundSchema),
3050
- ])),
3051
- ),
3052
- });
3053
-
3054
- export function knowledgeFilterAndToJSON(
3055
- knowledgeFilterAnd: KnowledgeFilterAnd,
3056
- ): string {
3057
- return JSON.stringify(
3058
- KnowledgeFilterAnd$outboundSchema.parse(knowledgeFilterAnd),
3059
- );
3060
- }
3061
-
3062
- /** @internal */
3063
- export type Nin$Outbound = string | number | boolean;
3064
-
3065
- /** @internal */
3066
- export const Nin$outboundSchema: z.ZodType<Nin$Outbound, z.ZodTypeDef, Nin> = z
3067
- .union([z.string(), z.number(), z.boolean()]);
3068
-
3069
- export function ninToJSON(nin: Nin): string {
3070
- return JSON.stringify(Nin$outboundSchema.parse(nin));
3071
- }
3072
-
3073
- /** @internal */
3074
- export type InvokeDeploymentRequest1Nin$Outbound = {
3075
- nin: Array<string | number | boolean>;
3076
- };
3077
-
3078
- /** @internal */
3079
- export const InvokeDeploymentRequest1Nin$outboundSchema: z.ZodType<
3080
- InvokeDeploymentRequest1Nin$Outbound,
3081
- z.ZodTypeDef,
3082
- InvokeDeploymentRequest1Nin
3083
- > = z.object({
3084
- nin: z.array(z.union([z.string(), z.number(), z.boolean()])),
3085
- });
3086
-
3087
- export function invokeDeploymentRequest1NinToJSON(
3088
- invokeDeploymentRequest1Nin: InvokeDeploymentRequest1Nin,
3089
- ): string {
3090
- return JSON.stringify(
3091
- InvokeDeploymentRequest1Nin$outboundSchema.parse(
3092
- invokeDeploymentRequest1Nin,
3093
- ),
3094
- );
3095
- }
3096
-
3097
- /** @internal */
3098
- export type In$Outbound = string | number | boolean;
3099
-
3100
- /** @internal */
3101
- export const In$outboundSchema: z.ZodType<In$Outbound, z.ZodTypeDef, In> = z
3102
- .union([z.string(), z.number(), z.boolean()]);
3103
-
3104
- export function inToJSON(value: In): string {
3105
- return JSON.stringify(In$outboundSchema.parse(value));
3106
- }
3107
-
3108
- /** @internal */
3109
- export type InvokeDeploymentRequest1In$Outbound = {
3110
- in: Array<string | number | boolean>;
3111
- };
3112
-
3113
- /** @internal */
3114
- export const InvokeDeploymentRequest1In$outboundSchema: z.ZodType<
3115
- InvokeDeploymentRequest1In$Outbound,
3116
- z.ZodTypeDef,
3117
- InvokeDeploymentRequest1In
3118
- > = z.object({
3119
- in: z.array(z.union([z.string(), z.number(), z.boolean()])),
3120
- });
3121
-
3122
- export function invokeDeploymentRequest1InToJSON(
3123
- invokeDeploymentRequest1In: InvokeDeploymentRequest1In,
3124
- ): string {
3125
- return JSON.stringify(
3126
- InvokeDeploymentRequest1In$outboundSchema.parse(invokeDeploymentRequest1In),
3127
- );
3128
- }
3129
-
3130
- /** @internal */
3131
- export type Lte$Outbound = {
3132
- lte: number;
3133
- };
3134
-
3135
- /** @internal */
3136
- export const Lte$outboundSchema: z.ZodType<Lte$Outbound, z.ZodTypeDef, Lte> = z
3137
- .object({
3138
- lte: z.number(),
3139
- });
3140
-
3141
- export function lteToJSON(lte: Lte): string {
3142
- return JSON.stringify(Lte$outboundSchema.parse(lte));
3143
- }
3144
-
3145
- /** @internal */
3146
- export type Lt$Outbound = {
3147
- lt: number;
3148
- };
3149
-
3150
- /** @internal */
3151
- export const Lt$outboundSchema: z.ZodType<Lt$Outbound, z.ZodTypeDef, Lt> = z
3152
- .object({
3153
- lt: z.number(),
3154
- });
3155
-
3156
- export function ltToJSON(lt: Lt): string {
3157
- return JSON.stringify(Lt$outboundSchema.parse(lt));
3158
- }
3159
-
3160
- /** @internal */
3161
- export type Gte$Outbound = {
3162
- gte: number;
3163
- };
3164
-
3165
- /** @internal */
3166
- export const Gte$outboundSchema: z.ZodType<Gte$Outbound, z.ZodTypeDef, Gte> = z
3167
- .object({
3168
- gte: z.number(),
3169
- });
3170
-
3171
- export function gteToJSON(gte: Gte): string {
3172
- return JSON.stringify(Gte$outboundSchema.parse(gte));
3173
- }
3174
-
3175
- /** @internal */
3176
- export type Gt$Outbound = {
3177
- gt: number;
3178
- };
3179
-
3180
- /** @internal */
3181
- export const Gt$outboundSchema: z.ZodType<Gt$Outbound, z.ZodTypeDef, Gt> = z
3182
- .object({
3183
- gt: z.number(),
3184
- });
3185
-
3186
- export function gtToJSON(gt: Gt): string {
3187
- return JSON.stringify(Gt$outboundSchema.parse(gt));
3188
- }
3189
-
3190
- /** @internal */
3191
- export type Ne$Outbound = string | number | boolean;
3192
-
3193
- /** @internal */
3194
- export const Ne$outboundSchema: z.ZodType<Ne$Outbound, z.ZodTypeDef, Ne> = z
3195
- .union([z.string(), z.number(), z.boolean()]);
3196
-
3197
- export function neToJSON(ne: Ne): string {
3198
- return JSON.stringify(Ne$outboundSchema.parse(ne));
3199
- }
3200
-
3201
- /** @internal */
3202
- export type InvokeDeploymentRequest1Ne$Outbound = {
3203
- ne: string | number | boolean;
3204
- };
3205
-
3206
- /** @internal */
3207
- export const InvokeDeploymentRequest1Ne$outboundSchema: z.ZodType<
3208
- InvokeDeploymentRequest1Ne$Outbound,
3209
- z.ZodTypeDef,
3210
- InvokeDeploymentRequest1Ne
3211
- > = z.object({
3212
- ne: z.union([z.string(), z.number(), z.boolean()]),
3213
- });
3214
-
3215
- export function invokeDeploymentRequest1NeToJSON(
3216
- invokeDeploymentRequest1Ne: InvokeDeploymentRequest1Ne,
3217
- ): string {
3218
- return JSON.stringify(
3219
- InvokeDeploymentRequest1Ne$outboundSchema.parse(invokeDeploymentRequest1Ne),
3220
- );
3221
- }
3222
-
3223
- /** @internal */
3224
- export type Eq$Outbound = string | number | boolean;
3225
-
3226
- /** @internal */
3227
- export const Eq$outboundSchema: z.ZodType<Eq$Outbound, z.ZodTypeDef, Eq> = z
3228
- .union([z.string(), z.number(), z.boolean()]);
3229
-
3230
- export function eqToJSON(eq: Eq): string {
3231
- return JSON.stringify(Eq$outboundSchema.parse(eq));
3232
- }
3233
-
3234
- /** @internal */
3235
- export type InvokeDeploymentRequest1Eq$Outbound = {
3236
- eq: string | number | boolean;
3237
- };
3238
-
3239
- /** @internal */
3240
- export const InvokeDeploymentRequest1Eq$outboundSchema: z.ZodType<
3241
- InvokeDeploymentRequest1Eq$Outbound,
3242
- z.ZodTypeDef,
3243
- InvokeDeploymentRequest1Eq
3244
- > = z.object({
3245
- eq: z.union([z.string(), z.number(), z.boolean()]),
3246
- });
3247
-
3248
- export function invokeDeploymentRequest1EqToJSON(
3249
- invokeDeploymentRequest1Eq: InvokeDeploymentRequest1Eq,
3250
- ): string {
3251
- return JSON.stringify(
3252
- InvokeDeploymentRequest1Eq$outboundSchema.parse(invokeDeploymentRequest1Eq),
3253
- );
3254
- }
3255
-
3256
- /** @internal */
3257
- export type KnowledgeFilter1$Outbound =
3258
- | InvokeDeploymentRequest1Eq$Outbound
3259
- | InvokeDeploymentRequest1Ne$Outbound
3260
- | Gt$Outbound
3261
- | Gte$Outbound
3262
- | Lt$Outbound
3263
- | Lte$Outbound
3264
- | InvokeDeploymentRequest1In$Outbound
3265
- | InvokeDeploymentRequest1Nin$Outbound;
3266
-
3267
- /** @internal */
3268
- export const KnowledgeFilter1$outboundSchema: z.ZodType<
3269
- KnowledgeFilter1$Outbound,
3270
- z.ZodTypeDef,
3271
- KnowledgeFilter1
3272
- > = z.union([
3273
- z.lazy(() => InvokeDeploymentRequest1Eq$outboundSchema),
3274
- z.lazy(() => InvokeDeploymentRequest1Ne$outboundSchema),
3275
- z.lazy(() => Gt$outboundSchema),
3276
- z.lazy(() => Gte$outboundSchema),
3277
- z.lazy(() => Lt$outboundSchema),
3278
- z.lazy(() => Lte$outboundSchema),
3279
- z.lazy(() => InvokeDeploymentRequest1In$outboundSchema),
3280
- z.lazy(() => InvokeDeploymentRequest1Nin$outboundSchema),
3281
- ]);
3282
-
3283
- export function knowledgeFilter1ToJSON(
3284
- knowledgeFilter1: KnowledgeFilter1,
3285
- ): string {
3286
- return JSON.stringify(
3287
- KnowledgeFilter1$outboundSchema.parse(knowledgeFilter1),
3288
- );
3289
- }
3290
-
3291
- /** @internal */
3292
- export type KnowledgeFilter$Outbound =
3293
- | KnowledgeFilterAnd$Outbound
3294
- | KnowledgeFilterOr$Outbound
3295
- | {
3296
- [k: string]:
3297
- | InvokeDeploymentRequest1Eq$Outbound
3298
- | InvokeDeploymentRequest1Ne$Outbound
3299
- | Gt$Outbound
3300
- | Gte$Outbound
3301
- | Lt$Outbound
3302
- | Lte$Outbound
3303
- | InvokeDeploymentRequest1In$Outbound
3304
- | InvokeDeploymentRequest1Nin$Outbound;
3305
- };
3306
-
3307
- /** @internal */
3308
- export const KnowledgeFilter$outboundSchema: z.ZodType<
3309
- KnowledgeFilter$Outbound,
3310
- z.ZodTypeDef,
3311
- KnowledgeFilter
3312
- > = z.union([
3313
- z.lazy(() => KnowledgeFilterAnd$outboundSchema),
3314
- z.lazy(() => KnowledgeFilterOr$outboundSchema),
3315
- z.record(z.union([
3316
- z.lazy(() => InvokeDeploymentRequest1Eq$outboundSchema),
3317
- z.lazy(() => InvokeDeploymentRequest1Ne$outboundSchema),
3318
- z.lazy(() => Gt$outboundSchema),
3319
- z.lazy(() => Gte$outboundSchema),
3320
- z.lazy(() => Lt$outboundSchema),
3321
- z.lazy(() => Lte$outboundSchema),
3322
- z.lazy(() => InvokeDeploymentRequest1In$outboundSchema),
3323
- z.lazy(() => InvokeDeploymentRequest1Nin$outboundSchema),
3324
- ])),
3325
- ]);
3326
-
3327
- export function knowledgeFilterToJSON(
3328
- knowledgeFilter: KnowledgeFilter,
3329
- ): string {
3330
- return JSON.stringify(KnowledgeFilter$outboundSchema.parse(knowledgeFilter));
3331
- }
3332
-
3333
- /** @internal */
3334
- export type InvokeDeploymentRequest$Outbound = {
3335
- key: string;
3336
- stream: boolean;
3337
- inputs?: { [k: string]: any } | undefined;
3338
- context?: { [k: string]: any } | undefined;
3339
- prefix_messages?:
3340
- | Array<
3341
- | SystemMessage$Outbound
3342
- | DeveloperMessage$Outbound
3343
- | UserMessage$Outbound
3344
- | AssistantMessage$Outbound
3345
- | ToolMessage$Outbound
3346
- >
3347
- | undefined;
3348
- messages?:
3349
- | Array<
3350
- | MessagesSystemMessage$Outbound
3351
- | MessagesDeveloperMessage$Outbound
3352
- | MessagesUserMessage$Outbound
3353
- | MessagesAssistantMessage$Outbound
3354
- | MessagesToolMessage$Outbound
3355
- >
3356
- | undefined;
3357
- identity?: PublicIdentity$Outbound | undefined;
3358
- file_ids?: Array<string> | undefined;
3359
- metadata?: { [k: string]: any } | undefined;
3360
- extra_params?: { [k: string]: any } | undefined;
3361
- documents?: Array<Documents$Outbound> | undefined;
3362
- invoke_options?: InvokeOptions$Outbound | undefined;
3363
- thread?: Thread$Outbound | undefined;
3364
- knowledge_filter?:
3365
- | KnowledgeFilterAnd$Outbound
3366
- | KnowledgeFilterOr$Outbound
3367
- | {
3368
- [k: string]:
3369
- | InvokeDeploymentRequest1Eq$Outbound
3370
- | InvokeDeploymentRequest1Ne$Outbound
3371
- | Gt$Outbound
3372
- | Gte$Outbound
3373
- | Lt$Outbound
3374
- | Lte$Outbound
3375
- | InvokeDeploymentRequest1In$Outbound
3376
- | InvokeDeploymentRequest1Nin$Outbound;
3377
- }
3378
- | undefined;
3379
- };
3380
-
3381
- /** @internal */
3382
- export const InvokeDeploymentRequest$outboundSchema: z.ZodType<
3383
- InvokeDeploymentRequest$Outbound,
3384
- z.ZodTypeDef,
3385
- InvokeDeploymentRequest
3386
- > = z.object({
3387
- key: z.string(),
3388
- stream: z.boolean().default(false),
3389
- inputs: z.record(z.any()).optional(),
3390
- context: z.record(z.any()).optional(),
3391
- prefixMessages: z.array(
3392
- z.union([
3393
- z.lazy(() => SystemMessage$outboundSchema),
3394
- z.lazy(() => DeveloperMessage$outboundSchema),
3395
- z.lazy(() => UserMessage$outboundSchema),
3396
- z.lazy(() => AssistantMessage$outboundSchema),
3397
- z.lazy(() => ToolMessage$outboundSchema),
3398
- ]),
3399
- ).optional(),
3400
- messages: z.array(
3401
- z.union([
3402
- z.lazy(() => MessagesSystemMessage$outboundSchema),
3403
- z.lazy(() => MessagesDeveloperMessage$outboundSchema),
3404
- z.lazy(() => MessagesUserMessage$outboundSchema),
3405
- z.lazy(() => MessagesAssistantMessage$outboundSchema),
3406
- z.lazy(() => MessagesToolMessage$outboundSchema),
3407
- ]),
3408
- ).optional(),
3409
- identity: PublicIdentity$outboundSchema.optional(),
3410
- fileIds: z.array(z.string()).optional(),
3411
- metadata: z.record(z.any()).optional(),
3412
- extraParams: z.record(z.any()).optional(),
3413
- documents: z.array(z.lazy(() => Documents$outboundSchema)).optional(),
3414
- invokeOptions: z.lazy(() => InvokeOptions$outboundSchema).optional(),
3415
- thread: z.lazy(() => Thread$outboundSchema).optional(),
3416
- knowledgeFilter: z.union([
3417
- z.lazy(() => KnowledgeFilterAnd$outboundSchema),
3418
- z.lazy(() => KnowledgeFilterOr$outboundSchema),
3419
- z.record(z.union([
3420
- z.lazy(() => InvokeDeploymentRequest1Eq$outboundSchema),
3421
- z.lazy(() => InvokeDeploymentRequest1Ne$outboundSchema),
3422
- z.lazy(() => Gt$outboundSchema),
3423
- z.lazy(() => Gte$outboundSchema),
3424
- z.lazy(() => Lt$outboundSchema),
3425
- z.lazy(() => Lte$outboundSchema),
3426
- z.lazy(() => InvokeDeploymentRequest1In$outboundSchema),
3427
- z.lazy(() => InvokeDeploymentRequest1Nin$outboundSchema),
3428
- ])),
3429
- ]).optional(),
3430
- }).transform((v) => {
3431
- return remap$(v, {
3432
- prefixMessages: "prefix_messages",
3433
- fileIds: "file_ids",
3434
- extraParams: "extra_params",
3435
- invokeOptions: "invoke_options",
3436
- knowledgeFilter: "knowledge_filter",
3437
- });
3438
- });
3439
-
3440
- export function invokeDeploymentRequestToJSON(
3441
- invokeDeploymentRequest: InvokeDeploymentRequest,
3442
- ): string {
3443
- return JSON.stringify(
3444
- InvokeDeploymentRequest$outboundSchema.parse(invokeDeploymentRequest),
3445
- );
3446
- }