@orq-ai/node 4.10.8 → 4.11.0-rc.2

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