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