@orq-ai/node 4.10.2 → 4.11.0-rc.1

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