@orq-ai/node 4.9.0 → 4.10.0-rc.0

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 +8 -7
  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,4518 +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 DeploymentGetConfigContentDeployments2 =
14
- components.TextContentPartSchema;
15
-
16
- /**
17
- * The contents of the tool message.
18
- */
19
- export type DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent =
20
- | string
21
- | Array<components.TextContentPartSchema>;
22
-
23
- /**
24
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
25
- */
26
- export const DeploymentGetConfigPrefixMessagesType = {
27
- Ephemeral: "ephemeral",
28
- } as const;
29
- /**
30
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
31
- */
32
- export type DeploymentGetConfigPrefixMessagesType = ClosedEnum<
33
- typeof DeploymentGetConfigPrefixMessagesType
34
- >;
35
-
36
- /**
37
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
38
- *
39
- * @remarks
40
- *
41
- * - `5m`: 5 minutes
42
- * - `1h`: 1 hour
43
- *
44
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
45
- */
46
- export const PrefixMessagesTtl = {
47
- Fivem: "5m",
48
- Oneh: "1h",
49
- } as const;
50
- /**
51
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
52
- *
53
- * @remarks
54
- *
55
- * - `5m`: 5 minutes
56
- * - `1h`: 1 hour
57
- *
58
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
59
- */
60
- export type PrefixMessagesTtl = ClosedEnum<typeof PrefixMessagesTtl>;
61
-
62
- export type PrefixMessagesCacheControl = {
63
- /**
64
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
65
- */
66
- type: DeploymentGetConfigPrefixMessagesType;
67
- /**
68
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
69
- *
70
- * @remarks
71
- *
72
- * - `5m`: 5 minutes
73
- * - `1h`: 1 hour
74
- *
75
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
76
- */
77
- ttl?: PrefixMessagesTtl | undefined;
78
- };
79
-
80
- export type ToolMessage = {
81
- /**
82
- * The role of the messages author, in this case tool.
83
- */
84
- role: "tool";
85
- /**
86
- * The contents of the tool message.
87
- */
88
- content: string | Array<components.TextContentPartSchema>;
89
- /**
90
- * Tool call that this message is responding to.
91
- */
92
- toolCallId: string | null;
93
- cacheControl?: PrefixMessagesCacheControl | undefined;
94
- };
95
-
96
- export type DeploymentGetConfigContent2 =
97
- | (components.TextContentPartSchema & { type: "text" })
98
- | components.RefusalPartSchema
99
- | components.ReasoningPartSchema
100
- | components.RedactedReasoningPartSchema;
101
-
102
- /**
103
- * The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
104
- */
105
- export type DeploymentGetConfigPrefixMessagesDeploymentsRequestContent =
106
- | string
107
- | Array<
108
- | (components.TextContentPartSchema & { type: "text" })
109
- | components.RefusalPartSchema
110
- | components.ReasoningPartSchema
111
- | components.RedactedReasoningPartSchema
112
- >;
113
-
114
- /**
115
- * Data about a previous audio response from the model.
116
- */
117
- export type Audio = {
118
- /**
119
- * Unique identifier for a previous audio response from the model.
120
- */
121
- id: string;
122
- };
123
-
124
- /**
125
- * The type of the tool. Currently, only `function` is supported.
126
- */
127
- export const PrefixMessagesType = {
128
- Function: "function",
129
- } as const;
130
- /**
131
- * The type of the tool. Currently, only `function` is supported.
132
- */
133
- export type PrefixMessagesType = ClosedEnum<typeof PrefixMessagesType>;
134
-
135
- export type PrefixMessagesFunction = {
136
- /**
137
- * The name of the function to call.
138
- */
139
- name?: string | undefined;
140
- /**
141
- * 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.
142
- */
143
- arguments?: string | undefined;
144
- };
145
-
146
- export type PrefixMessagesToolCalls = {
147
- /**
148
- * The ID of the tool call.
149
- */
150
- id: string;
151
- /**
152
- * The type of the tool. Currently, only `function` is supported.
153
- */
154
- type: PrefixMessagesType;
155
- function: PrefixMessagesFunction;
156
- /**
157
- * Encrypted representation of the model internal reasoning state during function calling. Required by Gemini 3 models when continuing a conversation after a tool call.
158
- */
159
- thoughtSignature?: string | undefined;
160
- };
161
-
162
- export type AssistantMessage = {
163
- /**
164
- * The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
165
- */
166
- content?:
167
- | string
168
- | Array<
169
- | (components.TextContentPartSchema & { type: "text" })
170
- | components.RefusalPartSchema
171
- | components.ReasoningPartSchema
172
- | components.RedactedReasoningPartSchema
173
- >
174
- | null
175
- | undefined;
176
- /**
177
- * The refusal message by the assistant.
178
- */
179
- refusal?: string | null | undefined;
180
- /**
181
- * The role of the messages author, in this case `assistant`.
182
- */
183
- role: "assistant";
184
- /**
185
- * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
186
- */
187
- name?: string | undefined;
188
- /**
189
- * Data about a previous audio response from the model.
190
- */
191
- audio?: Audio | null | undefined;
192
- /**
193
- * The tool calls generated by the model, such as function calls.
194
- */
195
- toolCalls?: Array<PrefixMessagesToolCalls> | undefined;
196
- };
197
-
198
- /**
199
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
200
- */
201
- export const DeploymentGetConfig2DeploymentsType = {
202
- Ephemeral: "ephemeral",
203
- } as const;
204
- /**
205
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
206
- */
207
- export type DeploymentGetConfig2DeploymentsType = ClosedEnum<
208
- typeof DeploymentGetConfig2DeploymentsType
209
- >;
210
-
211
- /**
212
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
213
- *
214
- * @remarks
215
- *
216
- * - `5m`: 5 minutes
217
- * - `1h`: 1 hour
218
- *
219
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
220
- */
221
- export const Ttl = {
222
- Fivem: "5m",
223
- Oneh: "1h",
224
- } as const;
225
- /**
226
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
227
- *
228
- * @remarks
229
- *
230
- * - `5m`: 5 minutes
231
- * - `1h`: 1 hour
232
- *
233
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
234
- */
235
- export type Ttl = ClosedEnum<typeof Ttl>;
236
-
237
- export type CacheControl = {
238
- /**
239
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
240
- */
241
- type: DeploymentGetConfig2DeploymentsType;
242
- /**
243
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
244
- *
245
- * @remarks
246
- *
247
- * - `5m`: 5 minutes
248
- * - `1h`: 1 hour
249
- *
250
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
251
- */
252
- ttl?: Ttl | undefined;
253
- };
254
-
255
- export type Four = {
256
- /**
257
- * The type of the content part. Always `file`.
258
- */
259
- type: "file";
260
- cacheControl?: CacheControl | undefined;
261
- /**
262
- * File data for the content part. Must contain either file_data or uri, but not both.
263
- */
264
- file: components.FileContentPartSchema;
265
- };
266
-
267
- export type Content2 =
268
- | (components.TextContentPartSchema & { type: "text" })
269
- | components.ImageContentPartSchema
270
- | components.AudioContentPartSchema
271
- | Four;
272
-
273
- /**
274
- * The contents of the user message.
275
- */
276
- export type DeploymentGetConfigPrefixMessagesDeploymentsContent =
277
- | string
278
- | Array<
279
- | (components.TextContentPartSchema & { type: "text" })
280
- | components.ImageContentPartSchema
281
- | components.AudioContentPartSchema
282
- | Four
283
- >;
284
-
285
- export type UserMessage = {
286
- /**
287
- * The role of the messages author, in this case `user`.
288
- */
289
- role: "user";
290
- /**
291
- * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
292
- */
293
- name?: string | undefined;
294
- /**
295
- * The contents of the user message.
296
- */
297
- content:
298
- | string
299
- | Array<
300
- | (components.TextContentPartSchema & { type: "text" })
301
- | components.ImageContentPartSchema
302
- | components.AudioContentPartSchema
303
- | Four
304
- >;
305
- };
306
-
307
- /**
308
- * The contents of the developer message.
309
- */
310
- export type DeploymentGetConfigPrefixMessagesContent =
311
- | string
312
- | Array<components.TextContentPartSchema>;
313
-
314
- export type DeveloperMessage = {
315
- /**
316
- * The role of the messages author, in this case `developer`.
317
- */
318
- role: "developer";
319
- /**
320
- * The contents of the developer message.
321
- */
322
- content: string | Array<components.TextContentPartSchema>;
323
- /**
324
- * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
325
- */
326
- name?: string | undefined;
327
- };
328
-
329
- /**
330
- * The contents of the system message.
331
- */
332
- export type PrefixMessagesContent =
333
- | string
334
- | Array<components.TextContentPartSchema>;
335
-
336
- /**
337
- * Developer-provided instructions that the model should follow, regardless of messages sent by the user.
338
- */
339
- export type SystemMessage = {
340
- /**
341
- * The role of the messages author, in this case `system`.
342
- */
343
- role: "system";
344
- /**
345
- * The contents of the system message.
346
- */
347
- content: string | Array<components.TextContentPartSchema>;
348
- /**
349
- * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
350
- */
351
- name?: string | undefined;
352
- };
353
-
354
- export type PrefixMessages =
355
- | SystemMessage
356
- | DeveloperMessage
357
- | UserMessage
358
- | AssistantMessage
359
- | ToolMessage;
360
-
361
- export type DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2 =
362
- components.TextContentPartSchema;
363
-
364
- /**
365
- * The contents of the tool message.
366
- */
367
- export type DeploymentGetConfigMessagesDeploymentsRequestRequestBodyContent =
368
- | string
369
- | Array<components.TextContentPartSchema>;
370
-
371
- /**
372
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
373
- */
374
- export const DeploymentGetConfigMessagesType = {
375
- Ephemeral: "ephemeral",
376
- } as const;
377
- /**
378
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
379
- */
380
- export type DeploymentGetConfigMessagesType = ClosedEnum<
381
- typeof DeploymentGetConfigMessagesType
382
- >;
383
-
384
- /**
385
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
386
- *
387
- * @remarks
388
- *
389
- * - `5m`: 5 minutes
390
- * - `1h`: 1 hour
391
- *
392
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
393
- */
394
- export const MessagesTtl = {
395
- Fivem: "5m",
396
- Oneh: "1h",
397
- } as const;
398
- /**
399
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
400
- *
401
- * @remarks
402
- *
403
- * - `5m`: 5 minutes
404
- * - `1h`: 1 hour
405
- *
406
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
407
- */
408
- export type MessagesTtl = ClosedEnum<typeof MessagesTtl>;
409
-
410
- export type MessagesCacheControl = {
411
- /**
412
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
413
- */
414
- type: DeploymentGetConfigMessagesType;
415
- /**
416
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
417
- *
418
- * @remarks
419
- *
420
- * - `5m`: 5 minutes
421
- * - `1h`: 1 hour
422
- *
423
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
424
- */
425
- ttl?: MessagesTtl | undefined;
426
- };
427
-
428
- export type MessagesToolMessage = {
429
- /**
430
- * The role of the messages author, in this case tool.
431
- */
432
- role: "tool";
433
- /**
434
- * The contents of the tool message.
435
- */
436
- content: string | Array<components.TextContentPartSchema>;
437
- /**
438
- * Tool call that this message is responding to.
439
- */
440
- toolCallId: string | null;
441
- cacheControl?: MessagesCacheControl | undefined;
442
- };
443
-
444
- export type DeploymentGetConfigContentDeploymentsRequestRequestBody2 =
445
- | (components.TextContentPartSchema & { type: "text" })
446
- | components.RefusalPartSchema
447
- | components.ReasoningPartSchema
448
- | components.RedactedReasoningPartSchema;
449
-
450
- /**
451
- * The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
452
- */
453
- export type DeploymentGetConfigMessagesDeploymentsRequestContent =
454
- | string
455
- | Array<
456
- | (components.TextContentPartSchema & { type: "text" })
457
- | components.RefusalPartSchema
458
- | components.ReasoningPartSchema
459
- | components.RedactedReasoningPartSchema
460
- >;
461
-
462
- /**
463
- * Data about a previous audio response from the model.
464
- */
465
- export type MessagesAudio = {
466
- /**
467
- * Unique identifier for a previous audio response from the model.
468
- */
469
- id: string;
470
- };
471
-
472
- /**
473
- * The type of the tool. Currently, only `function` is supported.
474
- */
475
- export const MessagesType = {
476
- Function: "function",
477
- } as const;
478
- /**
479
- * The type of the tool. Currently, only `function` is supported.
480
- */
481
- export type MessagesType = ClosedEnum<typeof MessagesType>;
482
-
483
- export type MessagesFunction = {
484
- /**
485
- * The name of the function to call.
486
- */
487
- name?: string | undefined;
488
- /**
489
- * 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.
490
- */
491
- arguments?: string | undefined;
492
- };
493
-
494
- export type MessagesToolCalls = {
495
- /**
496
- * The ID of the tool call.
497
- */
498
- id: string;
499
- /**
500
- * The type of the tool. Currently, only `function` is supported.
501
- */
502
- type: MessagesType;
503
- function: MessagesFunction;
504
- /**
505
- * Encrypted representation of the model internal reasoning state during function calling. Required by Gemini 3 models when continuing a conversation after a tool call.
506
- */
507
- thoughtSignature?: string | undefined;
508
- };
509
-
510
- export type MessagesAssistantMessage = {
511
- /**
512
- * The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
513
- */
514
- content?:
515
- | string
516
- | Array<
517
- | (components.TextContentPartSchema & { type: "text" })
518
- | components.RefusalPartSchema
519
- | components.ReasoningPartSchema
520
- | components.RedactedReasoningPartSchema
521
- >
522
- | null
523
- | undefined;
524
- /**
525
- * The refusal message by the assistant.
526
- */
527
- refusal?: string | null | undefined;
528
- /**
529
- * The role of the messages author, in this case `assistant`.
530
- */
531
- role: "assistant";
532
- /**
533
- * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
534
- */
535
- name?: string | undefined;
536
- /**
537
- * Data about a previous audio response from the model.
538
- */
539
- audio?: MessagesAudio | null | undefined;
540
- /**
541
- * The tool calls generated by the model, such as function calls.
542
- */
543
- toolCalls?: Array<MessagesToolCalls> | undefined;
544
- };
545
-
546
- /**
547
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
548
- */
549
- export const DeploymentGetConfig2DeploymentsRequestRequestBodyType = {
550
- Ephemeral: "ephemeral",
551
- } as const;
552
- /**
553
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
554
- */
555
- export type DeploymentGetConfig2DeploymentsRequestRequestBodyType = ClosedEnum<
556
- typeof DeploymentGetConfig2DeploymentsRequestRequestBodyType
557
- >;
558
-
559
- /**
560
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
561
- *
562
- * @remarks
563
- *
564
- * - `5m`: 5 minutes
565
- * - `1h`: 1 hour
566
- *
567
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
568
- */
569
- export const TwoTtl = {
570
- Fivem: "5m",
571
- Oneh: "1h",
572
- } as const;
573
- /**
574
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
575
- *
576
- * @remarks
577
- *
578
- * - `5m`: 5 minutes
579
- * - `1h`: 1 hour
580
- *
581
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
582
- */
583
- export type TwoTtl = ClosedEnum<typeof TwoTtl>;
584
-
585
- export type TwoCacheControl = {
586
- /**
587
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
588
- */
589
- type: DeploymentGetConfig2DeploymentsRequestRequestBodyType;
590
- /**
591
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
592
- *
593
- * @remarks
594
- *
595
- * - `5m`: 5 minutes
596
- * - `1h`: 1 hour
597
- *
598
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
599
- */
600
- ttl?: TwoTtl | undefined;
601
- };
602
-
603
- export type Two4 = {
604
- /**
605
- * The type of the content part. Always `file`.
606
- */
607
- type: "file";
608
- cacheControl?: TwoCacheControl | undefined;
609
- /**
610
- * File data for the content part. Must contain either file_data or uri, but not both.
611
- */
612
- file: components.FileContentPartSchema;
613
- };
614
-
615
- export type DeploymentGetConfigContentDeploymentsRequest2 =
616
- | (components.TextContentPartSchema & { type: "text" })
617
- | components.ImageContentPartSchema
618
- | components.AudioContentPartSchema
619
- | Two4;
620
-
621
- /**
622
- * The contents of the user message.
623
- */
624
- export type DeploymentGetConfigMessagesDeploymentsContent =
625
- | string
626
- | Array<
627
- | (components.TextContentPartSchema & { type: "text" })
628
- | components.ImageContentPartSchema
629
- | components.AudioContentPartSchema
630
- | Two4
631
- >;
632
-
633
- export type MessagesUserMessage = {
634
- /**
635
- * The role of the messages author, in this case `user`.
636
- */
637
- role: "user";
638
- /**
639
- * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
640
- */
641
- name?: string | undefined;
642
- /**
643
- * The contents of the user message.
644
- */
645
- content:
646
- | string
647
- | Array<
648
- | (components.TextContentPartSchema & { type: "text" })
649
- | components.ImageContentPartSchema
650
- | components.AudioContentPartSchema
651
- | Two4
652
- >;
653
- };
654
-
655
- /**
656
- * The contents of the developer message.
657
- */
658
- export type DeploymentGetConfigMessagesContent =
659
- | string
660
- | Array<components.TextContentPartSchema>;
661
-
662
- export type MessagesDeveloperMessage = {
663
- /**
664
- * The role of the messages author, in this case `developer`.
665
- */
666
- role: "developer";
667
- /**
668
- * The contents of the developer message.
669
- */
670
- content: string | Array<components.TextContentPartSchema>;
671
- /**
672
- * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
673
- */
674
- name?: string | undefined;
675
- };
676
-
677
- /**
678
- * The contents of the system message.
679
- */
680
- export type MessagesContent = string | Array<components.TextContentPartSchema>;
681
-
682
- /**
683
- * Developer-provided instructions that the model should follow, regardless of messages sent by the user.
684
- */
685
- export type MessagesSystemMessage = {
686
- /**
687
- * The role of the messages author, in this case `system`.
688
- */
689
- role: "system";
690
- /**
691
- * The contents of the system message.
692
- */
693
- content: string | Array<components.TextContentPartSchema>;
694
- /**
695
- * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
696
- */
697
- name?: string | undefined;
698
- };
699
-
700
- export type DeploymentGetConfigMessages =
701
- | MessagesSystemMessage
702
- | MessagesDeveloperMessage
703
- | MessagesUserMessage
704
- | MessagesAssistantMessage
705
- | MessagesToolMessage;
706
-
707
- /**
708
- * Metadata about the document
709
- */
710
- export type Metadata = {
711
- /**
712
- * Name of the file the text is from.
713
- */
714
- fileName?: string | undefined;
715
- /**
716
- * Content type of the file the text is from.
717
- */
718
- fileType?: string | undefined;
719
- /**
720
- * The page number the text is from.
721
- */
722
- pageNumber?: number | undefined;
723
- };
724
-
725
- export type Documents = {
726
- /**
727
- * The text content of the document
728
- */
729
- text: string;
730
- /**
731
- * Metadata about the document
732
- */
733
- metadata?: Metadata | undefined;
734
- };
735
-
736
- export type InvokeOptions = {
737
- /**
738
- * Whether to include the retrieved knowledge chunks in the response.
739
- */
740
- includeRetrievals?: boolean | undefined;
741
- /**
742
- * Whether to include the usage metrics in the response.
743
- */
744
- includeUsage?: boolean | undefined;
745
- /**
746
- * 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.
747
- */
748
- mockResponse?: string | undefined;
749
- };
750
-
751
- export type Thread = {
752
- /**
753
- * Unique thread identifier to group related invocations.
754
- */
755
- id: string;
756
- /**
757
- * Optional tags to differentiate or categorize threads
758
- */
759
- tags?: Array<string> | undefined;
760
- };
761
-
762
- /**
763
- * Exists
764
- */
765
- export type OrExists = {
766
- exists: boolean;
767
- };
768
-
769
- export type DeploymentGetConfigOrNin = string | number | boolean;
770
-
771
- /**
772
- * Not in
773
- */
774
- export type OrNin = {
775
- nin: Array<string | number | boolean>;
776
- };
777
-
778
- export type DeploymentGetConfigOrIn = string | number | boolean;
779
-
780
- /**
781
- * In
782
- */
783
- export type OrIn = {
784
- in: Array<string | number | boolean>;
785
- };
786
-
787
- /**
788
- * Less than or equal to
789
- */
790
- export type OrLte = {
791
- lte: number;
792
- };
793
-
794
- /**
795
- * Less than
796
- */
797
- export type OrLt = {
798
- lt: number;
799
- };
800
-
801
- /**
802
- * Greater than or equal to
803
- */
804
- export type OrGte = {
805
- gte: number;
806
- };
807
-
808
- /**
809
- * Greater than
810
- */
811
- export type OrGt = {
812
- gt: number;
813
- };
814
-
815
- export type DeploymentGetConfigOrNe = string | number | boolean;
816
-
817
- /**
818
- * Not equal to
819
- */
820
- export type OrNe = {
821
- ne: string | number | boolean;
822
- };
823
-
824
- export type DeploymentGetConfigOrEq = string | number | boolean;
825
-
826
- /**
827
- * Equal to
828
- */
829
- export type OrEq = {
830
- eq: string | number | boolean;
831
- };
832
-
833
- export type KnowledgeFilterOr =
834
- | OrEq
835
- | OrNe
836
- | OrGt
837
- | OrGte
838
- | OrLt
839
- | OrLte
840
- | OrIn
841
- | OrNin
842
- | OrExists;
843
-
844
- /**
845
- * Or
846
- */
847
- export type Or = {
848
- or: Array<
849
- {
850
- [k: string]:
851
- | OrEq
852
- | OrNe
853
- | OrGt
854
- | OrGte
855
- | OrLt
856
- | OrLte
857
- | OrIn
858
- | OrNin
859
- | OrExists;
860
- }
861
- >;
862
- };
863
-
864
- /**
865
- * Exists
866
- */
867
- export type AndExists = {
868
- exists: boolean;
869
- };
870
-
871
- export type DeploymentGetConfigAndNin = string | number | boolean;
872
-
873
- /**
874
- * Not in
875
- */
876
- export type AndNin = {
877
- nin: Array<string | number | boolean>;
878
- };
879
-
880
- export type DeploymentGetConfigAndIn = string | number | boolean;
881
-
882
- /**
883
- * In
884
- */
885
- export type AndIn = {
886
- in: Array<string | number | boolean>;
887
- };
888
-
889
- /**
890
- * Less than or equal to
891
- */
892
- export type AndLte = {
893
- lte: number;
894
- };
895
-
896
- /**
897
- * Less than
898
- */
899
- export type AndLt = {
900
- lt: number;
901
- };
902
-
903
- /**
904
- * Greater than or equal to
905
- */
906
- export type AndGte = {
907
- gte: number;
908
- };
909
-
910
- /**
911
- * Greater than
912
- */
913
- export type AndGt = {
914
- gt: number;
915
- };
916
-
917
- export type DeploymentGetConfigAndNe = string | number | boolean;
918
-
919
- /**
920
- * Not equal to
921
- */
922
- export type AndNe = {
923
- ne: string | number | boolean;
924
- };
925
-
926
- export type DeploymentGetConfigAndEq = string | number | boolean;
927
-
928
- /**
929
- * Equal to
930
- */
931
- export type AndEq = {
932
- eq: string | number | boolean;
933
- };
934
-
935
- export type KnowledgeFilterAnd =
936
- | AndEq
937
- | AndNe
938
- | AndGt
939
- | AndGte
940
- | AndLt
941
- | AndLte
942
- | AndIn
943
- | AndNin
944
- | AndExists;
945
-
946
- /**
947
- * And
948
- */
949
- export type And = {
950
- and: Array<
951
- {
952
- [k: string]:
953
- | AndEq
954
- | AndNe
955
- | AndGt
956
- | AndGte
957
- | AndLt
958
- | AndLte
959
- | AndIn
960
- | AndNin
961
- | AndExists;
962
- }
963
- >;
964
- };
965
-
966
- /**
967
- * Exists
968
- */
969
- export type Exists = {
970
- exists: boolean;
971
- };
972
-
973
- export type OneNin = string | number | boolean;
974
-
975
- /**
976
- * Not in
977
- */
978
- export type Nin = {
979
- nin: Array<string | number | boolean>;
980
- };
981
-
982
- export type OneIn = string | number | boolean;
983
-
984
- /**
985
- * In
986
- */
987
- export type In = {
988
- in: Array<string | number | boolean>;
989
- };
990
-
991
- /**
992
- * Less than or equal to
993
- */
994
- export type Lte = {
995
- lte: number;
996
- };
997
-
998
- /**
999
- * Less than
1000
- */
1001
- export type Lt = {
1002
- lt: number;
1003
- };
1004
-
1005
- /**
1006
- * Greater than or equal to
1007
- */
1008
- export type Gte = {
1009
- gte: number;
1010
- };
1011
-
1012
- /**
1013
- * Greater than
1014
- */
1015
- export type Gt = {
1016
- gt: number;
1017
- };
1018
-
1019
- export type OneNe = string | number | boolean;
1020
-
1021
- /**
1022
- * Not equal to
1023
- */
1024
- export type Ne = {
1025
- ne: string | number | boolean;
1026
- };
1027
-
1028
- export type OneEq = string | number | boolean;
1029
-
1030
- /**
1031
- * Equal to
1032
- */
1033
- export type Eq = {
1034
- eq: string | number | boolean;
1035
- };
1036
-
1037
- export type KnowledgeFilter1 =
1038
- | Eq
1039
- | Ne
1040
- | Gt
1041
- | Gte
1042
- | Lt
1043
- | Lte
1044
- | In
1045
- | Nin
1046
- | Exists;
1047
-
1048
- /**
1049
- * A filter to apply to the knowledge base chunk metadata when using knowledge bases in the deployment.
1050
- */
1051
- export type KnowledgeFilter = And | Or | {
1052
- [k: string]: Eq | Ne | Gt | Gte | Lt | Lte | In | Nin | Exists;
1053
- };
1054
-
1055
- export type DeploymentGetConfigRequestBody = {
1056
- /**
1057
- * The deployment key to invoke
1058
- */
1059
- key: string;
1060
- /**
1061
- * 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.
1062
- */
1063
- inputs?: { [k: string]: any } | undefined;
1064
- /**
1065
- * Key-value pairs that match your data model and fields declared in your deployment routing configuration
1066
- */
1067
- context?: { [k: string]: any } | undefined;
1068
- /**
1069
- * A list of messages to include after the `System` message, but before the `User` and `Assistant` pairs configured in your deployment.
1070
- */
1071
- prefixMessages?:
1072
- | Array<
1073
- | SystemMessage
1074
- | DeveloperMessage
1075
- | UserMessage
1076
- | AssistantMessage
1077
- | ToolMessage
1078
- >
1079
- | undefined;
1080
- /**
1081
- * A list of messages to send to the deployment.
1082
- */
1083
- messages?:
1084
- | Array<
1085
- | MessagesSystemMessage
1086
- | MessagesDeveloperMessage
1087
- | MessagesUserMessage
1088
- | MessagesAssistantMessage
1089
- | MessagesToolMessage
1090
- >
1091
- | undefined;
1092
- /**
1093
- * Information about the identity making the request. If the identity does not exist, it will be created automatically.
1094
- */
1095
- identity?: components.PublicIdentity | undefined;
1096
- /**
1097
- * A list of file IDs that are associated with the deployment request.
1098
- */
1099
- fileIds?: Array<string> | undefined;
1100
- /**
1101
- * Key-value pairs that you want to attach to the log generated by this request.
1102
- */
1103
- metadata?: { [k: string]: any } | undefined;
1104
- /**
1105
- * 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.
1106
- */
1107
- extraParams?: { [k: string]: any } | undefined;
1108
- /**
1109
- * 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.
1110
- */
1111
- documents?: Array<Documents> | undefined;
1112
- invokeOptions?: InvokeOptions | undefined;
1113
- thread?: Thread | undefined;
1114
- /**
1115
- * A filter to apply to the knowledge base chunk metadata when using knowledge bases in the deployment.
1116
- */
1117
- knowledgeFilter?: And | Or | {
1118
- [k: string]: Eq | Ne | Gt | Gte | Lt | Lte | In | Nin | Exists;
1119
- } | undefined;
1120
- };
1121
-
1122
- /**
1123
- * The type of the model. Current `chat`,`completion` and `image` are supported
1124
- */
1125
- export const DeploymentGetConfigType = {
1126
- Chat: "chat",
1127
- Completion: "completion",
1128
- Embedding: "embedding",
1129
- Image: "image",
1130
- Tts: "tts",
1131
- Stt: "stt",
1132
- Rerank: "rerank",
1133
- Ocr: "ocr",
1134
- Moderation: "moderation",
1135
- Vision: "vision",
1136
- } as const;
1137
- /**
1138
- * The type of the model. Current `chat`,`completion` and `image` are supported
1139
- */
1140
- export type DeploymentGetConfigType = ClosedEnum<
1141
- typeof DeploymentGetConfigType
1142
- >;
1143
-
1144
- /**
1145
- * The role of the prompt message
1146
- */
1147
- export const DeploymentGetConfigRole = {
1148
- System: "system",
1149
- Developer: "developer",
1150
- Assistant: "assistant",
1151
- User: "user",
1152
- Exception: "exception",
1153
- Tool: "tool",
1154
- Prompt: "prompt",
1155
- Correction: "correction",
1156
- ExpectedOutput: "expected_output",
1157
- } as const;
1158
- /**
1159
- * The role of the prompt message
1160
- */
1161
- export type DeploymentGetConfigRole = ClosedEnum<
1162
- typeof DeploymentGetConfigRole
1163
- >;
1164
-
1165
- export type DeploymentGetConfig2File = {
1166
- /**
1167
- * The file data as a data URI string in the format 'data:<mime-type>;base64,<base64-encoded-data>'. Example: 'data:image/png;base64,iVBORw0KGgoAAAANS...'
1168
- */
1169
- fileData?: string | undefined;
1170
- /**
1171
- * URL to the file. Only supported by Anthropic Claude models for PDF files.
1172
- */
1173
- uri?: string | undefined;
1174
- /**
1175
- * MIME type of the file (e.g., application/pdf, image/png)
1176
- */
1177
- mimeType?: string | undefined;
1178
- /**
1179
- * The name of the file, used when passing the file to the model as a string.
1180
- */
1181
- filename?: string | undefined;
1182
- };
1183
-
1184
- export type Two3 = {
1185
- /**
1186
- * The type of the content part. Always `file`.
1187
- */
1188
- type: "file";
1189
- file: DeploymentGetConfig2File;
1190
- };
1191
-
1192
- export type TwoImageUrl = {
1193
- /**
1194
- * The orq.ai id of the image
1195
- */
1196
- id?: string | undefined;
1197
- /**
1198
- * Either a URL of the image or the base64 encoded data URI.
1199
- */
1200
- url: string;
1201
- /**
1202
- * Specifies the detail level of the image. Currently only supported with OpenAI models
1203
- */
1204
- detail?: string | undefined;
1205
- };
1206
-
1207
- /**
1208
- * The image part of the prompt message. Only supported with vision models.
1209
- */
1210
- export type DeploymentGetConfig22 = {
1211
- type: "image_url";
1212
- imageUrl: TwoImageUrl;
1213
- };
1214
-
1215
- /**
1216
- * Text content part of a prompt message
1217
- */
1218
- export type Two1 = {
1219
- type: "text";
1220
- text: string;
1221
- };
1222
-
1223
- export type DeploymentGetConfigContentDeploymentsResponse2 =
1224
- | Two1
1225
- | DeploymentGetConfig22
1226
- | Two3;
1227
-
1228
- /**
1229
- * The contents of the user message. Either the text content of the message or an array of content parts with a defined type, each can be of type `text` or `image_url` when passing in images. You can pass multiple images by adding multiple `image_url` content parts. Can be null for tool messages in certain scenarios.
1230
- */
1231
- export type DeploymentGetConfigContent =
1232
- | string
1233
- | Array<Two1 | DeploymentGetConfig22 | Two3>;
1234
-
1235
- export const DeploymentGetConfigDeploymentsResponseType = {
1236
- Function: "function",
1237
- } as const;
1238
- export type DeploymentGetConfigDeploymentsResponseType = ClosedEnum<
1239
- typeof DeploymentGetConfigDeploymentsResponseType
1240
- >;
1241
-
1242
- export type DeploymentGetConfigDeploymentsFunction = {
1243
- name: string;
1244
- /**
1245
- * JSON string arguments for the functions
1246
- */
1247
- arguments: string;
1248
- };
1249
-
1250
- export type DeploymentGetConfigToolCalls = {
1251
- id?: string | undefined;
1252
- index?: number | undefined;
1253
- type: DeploymentGetConfigDeploymentsResponseType;
1254
- function: DeploymentGetConfigDeploymentsFunction;
1255
- };
1256
-
1257
- export type DeploymentGetConfigDeploymentsMessages = {
1258
- /**
1259
- * The role of the prompt message
1260
- */
1261
- role: DeploymentGetConfigRole;
1262
- /**
1263
- * The contents of the user message. Either the text content of the message or an array of content parts with a defined type, each can be of type `text` or `image_url` when passing in images. You can pass multiple images by adding multiple `image_url` content parts. Can be null for tool messages in certain scenarios.
1264
- */
1265
- content: string | Array<Two1 | DeploymentGetConfig22 | Two3> | null;
1266
- toolCalls?: Array<DeploymentGetConfigToolCalls> | undefined;
1267
- toolCallId?: string | null | undefined;
1268
- };
1269
-
1270
- /**
1271
- * Only supported on `image` models.
1272
- */
1273
- export const DeploymentGetConfigFormat = {
1274
- Url: "url",
1275
- B64Json: "b64_json",
1276
- Text: "text",
1277
- JsonObject: "json_object",
1278
- } as const;
1279
- /**
1280
- * Only supported on `image` models.
1281
- */
1282
- export type DeploymentGetConfigFormat = ClosedEnum<
1283
- typeof DeploymentGetConfigFormat
1284
- >;
1285
-
1286
- export const ResponseFormat6 = {
1287
- Json: "json",
1288
- Text: "text",
1289
- Srt: "srt",
1290
- VerboseJson: "verbose_json",
1291
- Vtt: "vtt",
1292
- } as const;
1293
- export type ResponseFormat6 = ClosedEnum<typeof ResponseFormat6>;
1294
-
1295
- export const ResponseFormat5 = {
1296
- Url: "url",
1297
- Base64Json: "base64_json",
1298
- } as const;
1299
- export type ResponseFormat5 = ClosedEnum<typeof ResponseFormat5>;
1300
-
1301
- export const ResponseFormat4 = {
1302
- Mp3: "mp3",
1303
- Opus: "opus",
1304
- Aac: "aac",
1305
- Flac: "flac",
1306
- Wav: "wav",
1307
- Pcm: "pcm",
1308
- } as const;
1309
- export type ResponseFormat4 = ClosedEnum<typeof ResponseFormat4>;
1310
-
1311
- export const DeploymentGetConfigResponseFormatDeploymentsType = {
1312
- Text: "text",
1313
- } as const;
1314
- export type DeploymentGetConfigResponseFormatDeploymentsType = ClosedEnum<
1315
- typeof DeploymentGetConfigResponseFormatDeploymentsType
1316
- >;
1317
-
1318
- export type ResponseFormat3 = {
1319
- type: DeploymentGetConfigResponseFormatDeploymentsType;
1320
- };
1321
-
1322
- export const DeploymentGetConfigResponseFormatType = {
1323
- JsonObject: "json_object",
1324
- } as const;
1325
- export type DeploymentGetConfigResponseFormatType = ClosedEnum<
1326
- typeof DeploymentGetConfigResponseFormatType
1327
- >;
1328
-
1329
- export type ResponseFormat2 = {
1330
- type: DeploymentGetConfigResponseFormatType;
1331
- };
1332
-
1333
- export const DeploymentGetConfigResponseFormatDeploymentsResponseType = {
1334
- JsonSchema: "json_schema",
1335
- } as const;
1336
- export type DeploymentGetConfigResponseFormatDeploymentsResponseType =
1337
- ClosedEnum<typeof DeploymentGetConfigResponseFormatDeploymentsResponseType>;
1338
-
1339
- export type DeploymentGetConfigResponseFormatJsonSchema = {
1340
- name: string;
1341
- description?: string | undefined;
1342
- strict?: boolean | undefined;
1343
- schema: { [k: string]: any };
1344
- };
1345
-
1346
- export type ResponseFormat1 = {
1347
- type: DeploymentGetConfigResponseFormatDeploymentsResponseType;
1348
- displayName?: string | undefined;
1349
- jsonSchema: DeploymentGetConfigResponseFormatJsonSchema;
1350
- };
1351
-
1352
- /**
1353
- * An object specifying the format that the model must output.
1354
- *
1355
- * @remarks
1356
- *
1357
- * Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
1358
- *
1359
- * Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
1360
- *
1361
- * Important: when using JSON mode, you must also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if finish_reason="length", which indicates the generation exceeded max_tokens or the conversation exceeded the max context length.
1362
- */
1363
- export type DeploymentGetConfigResponseFormat =
1364
- | ResponseFormat1
1365
- | ResponseFormat2
1366
- | ResponseFormat3
1367
- | ResponseFormat4
1368
- | ResponseFormat5
1369
- | ResponseFormat6;
1370
-
1371
- /**
1372
- * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
1373
- */
1374
- export const PhotoRealVersion = {
1375
- V1: "v1",
1376
- V2: "v2",
1377
- } as const;
1378
- /**
1379
- * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
1380
- */
1381
- export type PhotoRealVersion = ClosedEnum<typeof PhotoRealVersion>;
1382
-
1383
- /**
1384
- * The format to return the embeddings
1385
- */
1386
- export const DeploymentGetConfigEncodingFormat = {
1387
- Float: "float",
1388
- Base64: "base64",
1389
- } as const;
1390
- /**
1391
- * The format to return the embeddings
1392
- */
1393
- export type DeploymentGetConfigEncodingFormat = ClosedEnum<
1394
- typeof DeploymentGetConfigEncodingFormat
1395
- >;
1396
-
1397
- /**
1398
- * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
1399
- */
1400
- export const DeploymentGetConfigReasoningEffort = {
1401
- None: "none",
1402
- Disable: "disable",
1403
- Minimal: "minimal",
1404
- Low: "low",
1405
- Medium: "medium",
1406
- High: "high",
1407
- } as const;
1408
- /**
1409
- * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
1410
- */
1411
- export type DeploymentGetConfigReasoningEffort = ClosedEnum<
1412
- typeof DeploymentGetConfigReasoningEffort
1413
- >;
1414
-
1415
- /**
1416
- * Controls the verbosity of the model output.
1417
- */
1418
- export const DeploymentGetConfigVerbosity = {
1419
- Low: "low",
1420
- Medium: "medium",
1421
- High: "high",
1422
- } as const;
1423
- /**
1424
- * Controls the verbosity of the model output.
1425
- */
1426
- export type DeploymentGetConfigVerbosity = ClosedEnum<
1427
- typeof DeploymentGetConfigVerbosity
1428
- >;
1429
-
1430
- /**
1431
- * The level of thinking to use for the model. Only supported by `Google AI`
1432
- */
1433
- export const ThinkingLevel = {
1434
- Low: "low",
1435
- Medium: "medium",
1436
- High: "high",
1437
- } as const;
1438
- /**
1439
- * The level of thinking to use for the model. Only supported by `Google AI`
1440
- */
1441
- export type ThinkingLevel = ClosedEnum<typeof ThinkingLevel>;
1442
-
1443
- /**
1444
- * Model Parameters: Not all parameters apply to every model
1445
- */
1446
- export type DeploymentGetConfigParameters = {
1447
- /**
1448
- * Only supported on `chat` and `completion` models.
1449
- */
1450
- temperature?: number | undefined;
1451
- /**
1452
- * Only supported on `chat` and `completion` models.
1453
- */
1454
- maxTokens?: number | undefined;
1455
- /**
1456
- * Only supported on `chat` and `completion` models.
1457
- */
1458
- topK?: number | undefined;
1459
- /**
1460
- * Only supported on `chat` and `completion` models.
1461
- */
1462
- topP?: number | undefined;
1463
- /**
1464
- * Only supported on `chat` and `completion` models.
1465
- */
1466
- frequencyPenalty?: number | undefined;
1467
- /**
1468
- * Only supported on `chat` and `completion` models.
1469
- */
1470
- presencePenalty?: number | undefined;
1471
- /**
1472
- * Only supported on `image` models.
1473
- */
1474
- numImages?: number | undefined;
1475
- /**
1476
- * Best effort deterministic seed for the model. Currently only OpenAI models support these
1477
- */
1478
- seed?: number | undefined;
1479
- /**
1480
- * Only supported on `image` models.
1481
- */
1482
- format?: DeploymentGetConfigFormat | undefined;
1483
- /**
1484
- * Only supported on `image` models.
1485
- */
1486
- dimensions?: string | undefined;
1487
- /**
1488
- * Only supported on `image` models.
1489
- */
1490
- quality?: string | undefined;
1491
- /**
1492
- * Only supported on `image` models.
1493
- */
1494
- style?: string | undefined;
1495
- /**
1496
- * An object specifying the format that the model must output.
1497
- *
1498
- * @remarks
1499
- *
1500
- * Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
1501
- *
1502
- * Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
1503
- *
1504
- * Important: when using JSON mode, you must also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if finish_reason="length", which indicates the generation exceeded max_tokens or the conversation exceeded the max context length.
1505
- */
1506
- responseFormat?:
1507
- | ResponseFormat1
1508
- | ResponseFormat2
1509
- | ResponseFormat3
1510
- | ResponseFormat4
1511
- | ResponseFormat5
1512
- | ResponseFormat6
1513
- | null
1514
- | undefined;
1515
- /**
1516
- * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
1517
- */
1518
- photoRealVersion?: PhotoRealVersion | undefined;
1519
- /**
1520
- * The format to return the embeddings
1521
- */
1522
- encodingFormat?: DeploymentGetConfigEncodingFormat | undefined;
1523
- /**
1524
- * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
1525
- */
1526
- reasoningEffort?: DeploymentGetConfigReasoningEffort | undefined;
1527
- /**
1528
- * Gives the model enhanced reasoning capabilities for complex tasks. A value of 0 disables thinking. The minimum budget tokens for thinking are 1024. The Budget Tokens should never exceed the Max Tokens parameter. Only supported by `Anthropic`
1529
- */
1530
- budgetTokens?: number | undefined;
1531
- /**
1532
- * Controls the verbosity of the model output.
1533
- */
1534
- verbosity?: DeploymentGetConfigVerbosity | undefined;
1535
- /**
1536
- * The level of thinking to use for the model. Only supported by `Google AI`
1537
- */
1538
- thinkingLevel?: ThinkingLevel | undefined;
1539
- };
1540
-
1541
- /**
1542
- * The type of the tool. Currently, only `function` is supported.
1543
- */
1544
- export const DeploymentGetConfigDeploymentsType = {
1545
- Function: "function",
1546
- } as const;
1547
- /**
1548
- * The type of the tool. Currently, only `function` is supported.
1549
- */
1550
- export type DeploymentGetConfigDeploymentsType = ClosedEnum<
1551
- typeof DeploymentGetConfigDeploymentsType
1552
- >;
1553
-
1554
- export type DeploymentGetConfigFunction = {
1555
- /**
1556
- * The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
1557
- */
1558
- name: string;
1559
- /**
1560
- * A description of what the function does, used by the model to choose when and how to call the function.
1561
- */
1562
- description?: string | undefined;
1563
- /**
1564
- * The parameters the functions accepts, described as a JSON Schema object.
1565
- *
1566
- * @remarks
1567
- *
1568
- * Omitting `parameters` defines a function with an empty parameter list.
1569
- */
1570
- parameters?: { [k: string]: any } | undefined;
1571
- };
1572
-
1573
- export type DeploymentGetConfigTools = {
1574
- /**
1575
- * The type of the tool. Currently, only `function` is supported.
1576
- */
1577
- type: DeploymentGetConfigDeploymentsType;
1578
- function: DeploymentGetConfigFunction;
1579
- };
1580
-
1581
- /**
1582
- * The deployment configuration
1583
- */
1584
- export type DeploymentGetConfigResponseBody = {
1585
- /**
1586
- * A unique identifier for the response. Can be used to add metrics to the transaction.
1587
- */
1588
- id: string;
1589
- /**
1590
- * The provider of the model
1591
- */
1592
- provider: string;
1593
- /**
1594
- * The model of the configuration
1595
- */
1596
- model: string;
1597
- /**
1598
- * The type of the model. Current `chat`,`completion` and `image` are supported
1599
- */
1600
- type?: DeploymentGetConfigType | undefined;
1601
- /**
1602
- * The current version of the deployment
1603
- */
1604
- version: string;
1605
- messages: Array<DeploymentGetConfigDeploymentsMessages>;
1606
- /**
1607
- * Model Parameters: Not all parameters apply to every model
1608
- */
1609
- parameters: DeploymentGetConfigParameters;
1610
- /**
1611
- * A list of tools the model may call. Currently, only functions are supported as a tool. Use this to provide a list of functions the model may generate JSON inputs for.
1612
- */
1613
- tools?: Array<DeploymentGetConfigTools> | undefined;
1614
- };
1615
-
1616
- /** @internal */
1617
- export type DeploymentGetConfigContentDeployments2$Outbound =
1618
- components.TextContentPartSchema$Outbound;
1619
-
1620
- /** @internal */
1621
- export const DeploymentGetConfigContentDeployments2$outboundSchema: z.ZodType<
1622
- DeploymentGetConfigContentDeployments2$Outbound,
1623
- z.ZodTypeDef,
1624
- DeploymentGetConfigContentDeployments2
1625
- > = components.TextContentPartSchema$outboundSchema;
1626
-
1627
- export function deploymentGetConfigContentDeployments2ToJSON(
1628
- deploymentGetConfigContentDeployments2:
1629
- DeploymentGetConfigContentDeployments2,
1630
- ): string {
1631
- return JSON.stringify(
1632
- DeploymentGetConfigContentDeployments2$outboundSchema.parse(
1633
- deploymentGetConfigContentDeployments2,
1634
- ),
1635
- );
1636
- }
1637
-
1638
- /** @internal */
1639
- export type DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent$Outbound =
1640
- | string
1641
- | Array<components.TextContentPartSchema$Outbound>;
1642
-
1643
- /** @internal */
1644
- export const DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent$outboundSchema:
1645
- z.ZodType<
1646
- DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent$Outbound,
1647
- z.ZodTypeDef,
1648
- DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent
1649
- > = z.union([
1650
- z.string(),
1651
- z.array(components.TextContentPartSchema$outboundSchema),
1652
- ]);
1653
-
1654
- export function deploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContentToJSON(
1655
- deploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent:
1656
- DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent,
1657
- ): string {
1658
- return JSON.stringify(
1659
- DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent$outboundSchema
1660
- .parse(
1661
- deploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent,
1662
- ),
1663
- );
1664
- }
1665
-
1666
- /** @internal */
1667
- export const DeploymentGetConfigPrefixMessagesType$outboundSchema:
1668
- z.ZodNativeEnum<typeof DeploymentGetConfigPrefixMessagesType> = z.nativeEnum(
1669
- DeploymentGetConfigPrefixMessagesType,
1670
- );
1671
-
1672
- /** @internal */
1673
- export const PrefixMessagesTtl$outboundSchema: z.ZodNativeEnum<
1674
- typeof PrefixMessagesTtl
1675
- > = z.nativeEnum(PrefixMessagesTtl);
1676
-
1677
- /** @internal */
1678
- export type PrefixMessagesCacheControl$Outbound = {
1679
- type: string;
1680
- ttl: string;
1681
- };
1682
-
1683
- /** @internal */
1684
- export const PrefixMessagesCacheControl$outboundSchema: z.ZodType<
1685
- PrefixMessagesCacheControl$Outbound,
1686
- z.ZodTypeDef,
1687
- PrefixMessagesCacheControl
1688
- > = z.object({
1689
- type: DeploymentGetConfigPrefixMessagesType$outboundSchema,
1690
- ttl: PrefixMessagesTtl$outboundSchema.default("5m"),
1691
- });
1692
-
1693
- export function prefixMessagesCacheControlToJSON(
1694
- prefixMessagesCacheControl: PrefixMessagesCacheControl,
1695
- ): string {
1696
- return JSON.stringify(
1697
- PrefixMessagesCacheControl$outboundSchema.parse(prefixMessagesCacheControl),
1698
- );
1699
- }
1700
-
1701
- /** @internal */
1702
- export type ToolMessage$Outbound = {
1703
- role: "tool";
1704
- content: string | Array<components.TextContentPartSchema$Outbound>;
1705
- tool_call_id: string | null;
1706
- cache_control?: PrefixMessagesCacheControl$Outbound | undefined;
1707
- };
1708
-
1709
- /** @internal */
1710
- export const ToolMessage$outboundSchema: z.ZodType<
1711
- ToolMessage$Outbound,
1712
- z.ZodTypeDef,
1713
- ToolMessage
1714
- > = z.object({
1715
- role: z.literal("tool"),
1716
- content: z.union([
1717
- z.string(),
1718
- z.array(components.TextContentPartSchema$outboundSchema),
1719
- ]),
1720
- toolCallId: z.nullable(z.string()),
1721
- cacheControl: z.lazy(() => PrefixMessagesCacheControl$outboundSchema)
1722
- .optional(),
1723
- }).transform((v) => {
1724
- return remap$(v, {
1725
- toolCallId: "tool_call_id",
1726
- cacheControl: "cache_control",
1727
- });
1728
- });
1729
-
1730
- export function toolMessageToJSON(toolMessage: ToolMessage): string {
1731
- return JSON.stringify(ToolMessage$outboundSchema.parse(toolMessage));
1732
- }
1733
-
1734
- /** @internal */
1735
- export type DeploymentGetConfigContent2$Outbound =
1736
- | (components.TextContentPartSchema$Outbound & { type: "text" })
1737
- | components.RefusalPartSchema$Outbound
1738
- | components.ReasoningPartSchema$Outbound
1739
- | components.RedactedReasoningPartSchema$Outbound;
1740
-
1741
- /** @internal */
1742
- export const DeploymentGetConfigContent2$outboundSchema: z.ZodType<
1743
- DeploymentGetConfigContent2$Outbound,
1744
- z.ZodTypeDef,
1745
- DeploymentGetConfigContent2
1746
- > = z.union([
1747
- components.TextContentPartSchema$outboundSchema.and(
1748
- z.object({ type: z.literal("text") }),
1749
- ),
1750
- components.RefusalPartSchema$outboundSchema,
1751
- components.ReasoningPartSchema$outboundSchema,
1752
- components.RedactedReasoningPartSchema$outboundSchema,
1753
- ]);
1754
-
1755
- export function deploymentGetConfigContent2ToJSON(
1756
- deploymentGetConfigContent2: DeploymentGetConfigContent2,
1757
- ): string {
1758
- return JSON.stringify(
1759
- DeploymentGetConfigContent2$outboundSchema.parse(
1760
- deploymentGetConfigContent2,
1761
- ),
1762
- );
1763
- }
1764
-
1765
- /** @internal */
1766
- export type DeploymentGetConfigPrefixMessagesDeploymentsRequestContent$Outbound =
1767
- | string
1768
- | Array<
1769
- | (components.TextContentPartSchema$Outbound & { type: "text" })
1770
- | components.RefusalPartSchema$Outbound
1771
- | components.ReasoningPartSchema$Outbound
1772
- | components.RedactedReasoningPartSchema$Outbound
1773
- >;
1774
-
1775
- /** @internal */
1776
- export const DeploymentGetConfigPrefixMessagesDeploymentsRequestContent$outboundSchema:
1777
- z.ZodType<
1778
- DeploymentGetConfigPrefixMessagesDeploymentsRequestContent$Outbound,
1779
- z.ZodTypeDef,
1780
- DeploymentGetConfigPrefixMessagesDeploymentsRequestContent
1781
- > = z.union([
1782
- z.string(),
1783
- z.array(
1784
- z.union([
1785
- components.TextContentPartSchema$outboundSchema.and(
1786
- z.object({ type: z.literal("text") }),
1787
- ),
1788
- components.RefusalPartSchema$outboundSchema,
1789
- components.ReasoningPartSchema$outboundSchema,
1790
- components.RedactedReasoningPartSchema$outboundSchema,
1791
- ]),
1792
- ),
1793
- ]);
1794
-
1795
- export function deploymentGetConfigPrefixMessagesDeploymentsRequestContentToJSON(
1796
- deploymentGetConfigPrefixMessagesDeploymentsRequestContent:
1797
- DeploymentGetConfigPrefixMessagesDeploymentsRequestContent,
1798
- ): string {
1799
- return JSON.stringify(
1800
- DeploymentGetConfigPrefixMessagesDeploymentsRequestContent$outboundSchema
1801
- .parse(deploymentGetConfigPrefixMessagesDeploymentsRequestContent),
1802
- );
1803
- }
1804
-
1805
- /** @internal */
1806
- export type Audio$Outbound = {
1807
- id: string;
1808
- };
1809
-
1810
- /** @internal */
1811
- export const Audio$outboundSchema: z.ZodType<
1812
- Audio$Outbound,
1813
- z.ZodTypeDef,
1814
- Audio
1815
- > = z.object({
1816
- id: z.string(),
1817
- });
1818
-
1819
- export function audioToJSON(audio: Audio): string {
1820
- return JSON.stringify(Audio$outboundSchema.parse(audio));
1821
- }
1822
-
1823
- /** @internal */
1824
- export const PrefixMessagesType$outboundSchema: z.ZodNativeEnum<
1825
- typeof PrefixMessagesType
1826
- > = z.nativeEnum(PrefixMessagesType);
1827
-
1828
- /** @internal */
1829
- export type PrefixMessagesFunction$Outbound = {
1830
- name?: string | undefined;
1831
- arguments?: string | undefined;
1832
- };
1833
-
1834
- /** @internal */
1835
- export const PrefixMessagesFunction$outboundSchema: z.ZodType<
1836
- PrefixMessagesFunction$Outbound,
1837
- z.ZodTypeDef,
1838
- PrefixMessagesFunction
1839
- > = z.object({
1840
- name: z.string().optional(),
1841
- arguments: z.string().optional(),
1842
- });
1843
-
1844
- export function prefixMessagesFunctionToJSON(
1845
- prefixMessagesFunction: PrefixMessagesFunction,
1846
- ): string {
1847
- return JSON.stringify(
1848
- PrefixMessagesFunction$outboundSchema.parse(prefixMessagesFunction),
1849
- );
1850
- }
1851
-
1852
- /** @internal */
1853
- export type PrefixMessagesToolCalls$Outbound = {
1854
- id: string;
1855
- type: string;
1856
- function: PrefixMessagesFunction$Outbound;
1857
- thought_signature?: string | undefined;
1858
- };
1859
-
1860
- /** @internal */
1861
- export const PrefixMessagesToolCalls$outboundSchema: z.ZodType<
1862
- PrefixMessagesToolCalls$Outbound,
1863
- z.ZodTypeDef,
1864
- PrefixMessagesToolCalls
1865
- > = z.object({
1866
- id: z.string(),
1867
- type: PrefixMessagesType$outboundSchema,
1868
- function: z.lazy(() => PrefixMessagesFunction$outboundSchema),
1869
- thoughtSignature: z.string().optional(),
1870
- }).transform((v) => {
1871
- return remap$(v, {
1872
- thoughtSignature: "thought_signature",
1873
- });
1874
- });
1875
-
1876
- export function prefixMessagesToolCallsToJSON(
1877
- prefixMessagesToolCalls: PrefixMessagesToolCalls,
1878
- ): string {
1879
- return JSON.stringify(
1880
- PrefixMessagesToolCalls$outboundSchema.parse(prefixMessagesToolCalls),
1881
- );
1882
- }
1883
-
1884
- /** @internal */
1885
- export type AssistantMessage$Outbound = {
1886
- content?:
1887
- | string
1888
- | Array<
1889
- | (components.TextContentPartSchema$Outbound & { type: "text" })
1890
- | components.RefusalPartSchema$Outbound
1891
- | components.ReasoningPartSchema$Outbound
1892
- | components.RedactedReasoningPartSchema$Outbound
1893
- >
1894
- | null
1895
- | undefined;
1896
- refusal?: string | null | undefined;
1897
- role: "assistant";
1898
- name?: string | undefined;
1899
- audio?: Audio$Outbound | null | undefined;
1900
- tool_calls?: Array<PrefixMessagesToolCalls$Outbound> | undefined;
1901
- };
1902
-
1903
- /** @internal */
1904
- export const AssistantMessage$outboundSchema: z.ZodType<
1905
- AssistantMessage$Outbound,
1906
- z.ZodTypeDef,
1907
- AssistantMessage
1908
- > = z.object({
1909
- content: z.nullable(
1910
- z.union([
1911
- z.string(),
1912
- z.array(
1913
- z.union([
1914
- components.TextContentPartSchema$outboundSchema.and(
1915
- z.object({ type: z.literal("text") }),
1916
- ),
1917
- components.RefusalPartSchema$outboundSchema,
1918
- components.ReasoningPartSchema$outboundSchema,
1919
- components.RedactedReasoningPartSchema$outboundSchema,
1920
- ]),
1921
- ),
1922
- ]),
1923
- ).optional(),
1924
- refusal: z.nullable(z.string()).optional(),
1925
- role: z.literal("assistant"),
1926
- name: z.string().optional(),
1927
- audio: z.nullable(z.lazy(() => Audio$outboundSchema)).optional(),
1928
- toolCalls: z.array(z.lazy(() => PrefixMessagesToolCalls$outboundSchema))
1929
- .optional(),
1930
- }).transform((v) => {
1931
- return remap$(v, {
1932
- toolCalls: "tool_calls",
1933
- });
1934
- });
1935
-
1936
- export function assistantMessageToJSON(
1937
- assistantMessage: AssistantMessage,
1938
- ): string {
1939
- return JSON.stringify(
1940
- AssistantMessage$outboundSchema.parse(assistantMessage),
1941
- );
1942
- }
1943
-
1944
- /** @internal */
1945
- export const DeploymentGetConfig2DeploymentsType$outboundSchema:
1946
- z.ZodNativeEnum<typeof DeploymentGetConfig2DeploymentsType> = z.nativeEnum(
1947
- DeploymentGetConfig2DeploymentsType,
1948
- );
1949
-
1950
- /** @internal */
1951
- export const Ttl$outboundSchema: z.ZodNativeEnum<typeof Ttl> = z.nativeEnum(
1952
- Ttl,
1953
- );
1954
-
1955
- /** @internal */
1956
- export type CacheControl$Outbound = {
1957
- type: string;
1958
- ttl: string;
1959
- };
1960
-
1961
- /** @internal */
1962
- export const CacheControl$outboundSchema: z.ZodType<
1963
- CacheControl$Outbound,
1964
- z.ZodTypeDef,
1965
- CacheControl
1966
- > = z.object({
1967
- type: DeploymentGetConfig2DeploymentsType$outboundSchema,
1968
- ttl: Ttl$outboundSchema.default("5m"),
1969
- });
1970
-
1971
- export function cacheControlToJSON(cacheControl: CacheControl): string {
1972
- return JSON.stringify(CacheControl$outboundSchema.parse(cacheControl));
1973
- }
1974
-
1975
- /** @internal */
1976
- export type Four$Outbound = {
1977
- type: "file";
1978
- cache_control?: CacheControl$Outbound | undefined;
1979
- file: components.FileContentPartSchema$Outbound;
1980
- };
1981
-
1982
- /** @internal */
1983
- export const Four$outboundSchema: z.ZodType<Four$Outbound, z.ZodTypeDef, Four> =
1984
- z.object({
1985
- type: z.literal("file"),
1986
- cacheControl: z.lazy(() => CacheControl$outboundSchema).optional(),
1987
- file: components.FileContentPartSchema$outboundSchema,
1988
- }).transform((v) => {
1989
- return remap$(v, {
1990
- cacheControl: "cache_control",
1991
- });
1992
- });
1993
-
1994
- export function fourToJSON(four: Four): string {
1995
- return JSON.stringify(Four$outboundSchema.parse(four));
1996
- }
1997
-
1998
- /** @internal */
1999
- export type Content2$Outbound =
2000
- | (components.TextContentPartSchema$Outbound & { type: "text" })
2001
- | components.ImageContentPartSchema$Outbound
2002
- | components.AudioContentPartSchema$Outbound
2003
- | Four$Outbound;
2004
-
2005
- /** @internal */
2006
- export const Content2$outboundSchema: z.ZodType<
2007
- Content2$Outbound,
2008
- z.ZodTypeDef,
2009
- Content2
2010
- > = z.union([
2011
- components.TextContentPartSchema$outboundSchema.and(
2012
- z.object({ type: z.literal("text") }),
2013
- ),
2014
- components.ImageContentPartSchema$outboundSchema,
2015
- components.AudioContentPartSchema$outboundSchema,
2016
- z.lazy(() => Four$outboundSchema),
2017
- ]);
2018
-
2019
- export function content2ToJSON(content2: Content2): string {
2020
- return JSON.stringify(Content2$outboundSchema.parse(content2));
2021
- }
2022
-
2023
- /** @internal */
2024
- export type DeploymentGetConfigPrefixMessagesDeploymentsContent$Outbound =
2025
- | string
2026
- | Array<
2027
- | (components.TextContentPartSchema$Outbound & { type: "text" })
2028
- | components.ImageContentPartSchema$Outbound
2029
- | components.AudioContentPartSchema$Outbound
2030
- | Four$Outbound
2031
- >;
2032
-
2033
- /** @internal */
2034
- export const DeploymentGetConfigPrefixMessagesDeploymentsContent$outboundSchema:
2035
- z.ZodType<
2036
- DeploymentGetConfigPrefixMessagesDeploymentsContent$Outbound,
2037
- z.ZodTypeDef,
2038
- DeploymentGetConfigPrefixMessagesDeploymentsContent
2039
- > = z.union([
2040
- z.string(),
2041
- z.array(
2042
- z.union([
2043
- components.TextContentPartSchema$outboundSchema.and(
2044
- z.object({ type: z.literal("text") }),
2045
- ),
2046
- components.ImageContentPartSchema$outboundSchema,
2047
- components.AudioContentPartSchema$outboundSchema,
2048
- z.lazy(() => Four$outboundSchema),
2049
- ]),
2050
- ),
2051
- ]);
2052
-
2053
- export function deploymentGetConfigPrefixMessagesDeploymentsContentToJSON(
2054
- deploymentGetConfigPrefixMessagesDeploymentsContent:
2055
- DeploymentGetConfigPrefixMessagesDeploymentsContent,
2056
- ): string {
2057
- return JSON.stringify(
2058
- DeploymentGetConfigPrefixMessagesDeploymentsContent$outboundSchema.parse(
2059
- deploymentGetConfigPrefixMessagesDeploymentsContent,
2060
- ),
2061
- );
2062
- }
2063
-
2064
- /** @internal */
2065
- export type UserMessage$Outbound = {
2066
- role: "user";
2067
- name?: string | undefined;
2068
- content:
2069
- | string
2070
- | Array<
2071
- | (components.TextContentPartSchema$Outbound & { type: "text" })
2072
- | components.ImageContentPartSchema$Outbound
2073
- | components.AudioContentPartSchema$Outbound
2074
- | Four$Outbound
2075
- >;
2076
- };
2077
-
2078
- /** @internal */
2079
- export const UserMessage$outboundSchema: z.ZodType<
2080
- UserMessage$Outbound,
2081
- z.ZodTypeDef,
2082
- UserMessage
2083
- > = z.object({
2084
- role: z.literal("user"),
2085
- name: z.string().optional(),
2086
- content: z.union([
2087
- z.string(),
2088
- z.array(
2089
- z.union([
2090
- components.TextContentPartSchema$outboundSchema.and(
2091
- z.object({ type: z.literal("text") }),
2092
- ),
2093
- components.ImageContentPartSchema$outboundSchema,
2094
- components.AudioContentPartSchema$outboundSchema,
2095
- z.lazy(() => Four$outboundSchema),
2096
- ]),
2097
- ),
2098
- ]),
2099
- });
2100
-
2101
- export function userMessageToJSON(userMessage: UserMessage): string {
2102
- return JSON.stringify(UserMessage$outboundSchema.parse(userMessage));
2103
- }
2104
-
2105
- /** @internal */
2106
- export type DeploymentGetConfigPrefixMessagesContent$Outbound =
2107
- | string
2108
- | Array<components.TextContentPartSchema$Outbound>;
2109
-
2110
- /** @internal */
2111
- export const DeploymentGetConfigPrefixMessagesContent$outboundSchema: z.ZodType<
2112
- DeploymentGetConfigPrefixMessagesContent$Outbound,
2113
- z.ZodTypeDef,
2114
- DeploymentGetConfigPrefixMessagesContent
2115
- > = z.union([
2116
- z.string(),
2117
- z.array(components.TextContentPartSchema$outboundSchema),
2118
- ]);
2119
-
2120
- export function deploymentGetConfigPrefixMessagesContentToJSON(
2121
- deploymentGetConfigPrefixMessagesContent:
2122
- DeploymentGetConfigPrefixMessagesContent,
2123
- ): string {
2124
- return JSON.stringify(
2125
- DeploymentGetConfigPrefixMessagesContent$outboundSchema.parse(
2126
- deploymentGetConfigPrefixMessagesContent,
2127
- ),
2128
- );
2129
- }
2130
-
2131
- /** @internal */
2132
- export type DeveloperMessage$Outbound = {
2133
- role: "developer";
2134
- content: string | Array<components.TextContentPartSchema$Outbound>;
2135
- name?: string | undefined;
2136
- };
2137
-
2138
- /** @internal */
2139
- export const DeveloperMessage$outboundSchema: z.ZodType<
2140
- DeveloperMessage$Outbound,
2141
- z.ZodTypeDef,
2142
- DeveloperMessage
2143
- > = z.object({
2144
- role: z.literal("developer"),
2145
- content: z.union([
2146
- z.string(),
2147
- z.array(components.TextContentPartSchema$outboundSchema),
2148
- ]),
2149
- name: z.string().optional(),
2150
- });
2151
-
2152
- export function developerMessageToJSON(
2153
- developerMessage: DeveloperMessage,
2154
- ): string {
2155
- return JSON.stringify(
2156
- DeveloperMessage$outboundSchema.parse(developerMessage),
2157
- );
2158
- }
2159
-
2160
- /** @internal */
2161
- export type PrefixMessagesContent$Outbound =
2162
- | string
2163
- | Array<components.TextContentPartSchema$Outbound>;
2164
-
2165
- /** @internal */
2166
- export const PrefixMessagesContent$outboundSchema: z.ZodType<
2167
- PrefixMessagesContent$Outbound,
2168
- z.ZodTypeDef,
2169
- PrefixMessagesContent
2170
- > = z.union([
2171
- z.string(),
2172
- z.array(components.TextContentPartSchema$outboundSchema),
2173
- ]);
2174
-
2175
- export function prefixMessagesContentToJSON(
2176
- prefixMessagesContent: PrefixMessagesContent,
2177
- ): string {
2178
- return JSON.stringify(
2179
- PrefixMessagesContent$outboundSchema.parse(prefixMessagesContent),
2180
- );
2181
- }
2182
-
2183
- /** @internal */
2184
- export type SystemMessage$Outbound = {
2185
- role: "system";
2186
- content: string | Array<components.TextContentPartSchema$Outbound>;
2187
- name?: string | undefined;
2188
- };
2189
-
2190
- /** @internal */
2191
- export const SystemMessage$outboundSchema: z.ZodType<
2192
- SystemMessage$Outbound,
2193
- z.ZodTypeDef,
2194
- SystemMessage
2195
- > = z.object({
2196
- role: z.literal("system"),
2197
- content: z.union([
2198
- z.string(),
2199
- z.array(components.TextContentPartSchema$outboundSchema),
2200
- ]),
2201
- name: z.string().optional(),
2202
- });
2203
-
2204
- export function systemMessageToJSON(systemMessage: SystemMessage): string {
2205
- return JSON.stringify(SystemMessage$outboundSchema.parse(systemMessage));
2206
- }
2207
-
2208
- /** @internal */
2209
- export type PrefixMessages$Outbound =
2210
- | SystemMessage$Outbound
2211
- | DeveloperMessage$Outbound
2212
- | UserMessage$Outbound
2213
- | AssistantMessage$Outbound
2214
- | ToolMessage$Outbound;
2215
-
2216
- /** @internal */
2217
- export const PrefixMessages$outboundSchema: z.ZodType<
2218
- PrefixMessages$Outbound,
2219
- z.ZodTypeDef,
2220
- PrefixMessages
2221
- > = z.union([
2222
- z.lazy(() => SystemMessage$outboundSchema),
2223
- z.lazy(() => DeveloperMessage$outboundSchema),
2224
- z.lazy(() => UserMessage$outboundSchema),
2225
- z.lazy(() => AssistantMessage$outboundSchema),
2226
- z.lazy(() => ToolMessage$outboundSchema),
2227
- ]);
2228
-
2229
- export function prefixMessagesToJSON(prefixMessages: PrefixMessages): string {
2230
- return JSON.stringify(PrefixMessages$outboundSchema.parse(prefixMessages));
2231
- }
2232
-
2233
- /** @internal */
2234
- export type DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2$Outbound =
2235
- components.TextContentPartSchema$Outbound;
2236
-
2237
- /** @internal */
2238
- export const DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2$outboundSchema:
2239
- z.ZodType<
2240
- DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2$Outbound,
2241
- z.ZodTypeDef,
2242
- DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2
2243
- > = components.TextContentPartSchema$outboundSchema;
2244
-
2245
- export function deploymentGetConfigContentDeploymentsRequestRequestBodyMessages2ToJSON(
2246
- deploymentGetConfigContentDeploymentsRequestRequestBodyMessages2:
2247
- DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2,
2248
- ): string {
2249
- return JSON.stringify(
2250
- DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2$outboundSchema
2251
- .parse(deploymentGetConfigContentDeploymentsRequestRequestBodyMessages2),
2252
- );
2253
- }
2254
-
2255
- /** @internal */
2256
- export type DeploymentGetConfigMessagesDeploymentsRequestRequestBodyContent$Outbound =
2257
- | string
2258
- | Array<components.TextContentPartSchema$Outbound>;
2259
-
2260
- /** @internal */
2261
- export const DeploymentGetConfigMessagesDeploymentsRequestRequestBodyContent$outboundSchema:
2262
- z.ZodType<
2263
- DeploymentGetConfigMessagesDeploymentsRequestRequestBodyContent$Outbound,
2264
- z.ZodTypeDef,
2265
- DeploymentGetConfigMessagesDeploymentsRequestRequestBodyContent
2266
- > = z.union([
2267
- z.string(),
2268
- z.array(components.TextContentPartSchema$outboundSchema),
2269
- ]);
2270
-
2271
- export function deploymentGetConfigMessagesDeploymentsRequestRequestBodyContentToJSON(
2272
- deploymentGetConfigMessagesDeploymentsRequestRequestBodyContent:
2273
- DeploymentGetConfigMessagesDeploymentsRequestRequestBodyContent,
2274
- ): string {
2275
- return JSON.stringify(
2276
- DeploymentGetConfigMessagesDeploymentsRequestRequestBodyContent$outboundSchema
2277
- .parse(deploymentGetConfigMessagesDeploymentsRequestRequestBodyContent),
2278
- );
2279
- }
2280
-
2281
- /** @internal */
2282
- export const DeploymentGetConfigMessagesType$outboundSchema: z.ZodNativeEnum<
2283
- typeof DeploymentGetConfigMessagesType
2284
- > = z.nativeEnum(DeploymentGetConfigMessagesType);
2285
-
2286
- /** @internal */
2287
- export const MessagesTtl$outboundSchema: z.ZodNativeEnum<typeof MessagesTtl> = z
2288
- .nativeEnum(MessagesTtl);
2289
-
2290
- /** @internal */
2291
- export type MessagesCacheControl$Outbound = {
2292
- type: string;
2293
- ttl: string;
2294
- };
2295
-
2296
- /** @internal */
2297
- export const MessagesCacheControl$outboundSchema: z.ZodType<
2298
- MessagesCacheControl$Outbound,
2299
- z.ZodTypeDef,
2300
- MessagesCacheControl
2301
- > = z.object({
2302
- type: DeploymentGetConfigMessagesType$outboundSchema,
2303
- ttl: MessagesTtl$outboundSchema.default("5m"),
2304
- });
2305
-
2306
- export function messagesCacheControlToJSON(
2307
- messagesCacheControl: MessagesCacheControl,
2308
- ): string {
2309
- return JSON.stringify(
2310
- MessagesCacheControl$outboundSchema.parse(messagesCacheControl),
2311
- );
2312
- }
2313
-
2314
- /** @internal */
2315
- export type MessagesToolMessage$Outbound = {
2316
- role: "tool";
2317
- content: string | Array<components.TextContentPartSchema$Outbound>;
2318
- tool_call_id: string | null;
2319
- cache_control?: MessagesCacheControl$Outbound | undefined;
2320
- };
2321
-
2322
- /** @internal */
2323
- export const MessagesToolMessage$outboundSchema: z.ZodType<
2324
- MessagesToolMessage$Outbound,
2325
- z.ZodTypeDef,
2326
- MessagesToolMessage
2327
- > = z.object({
2328
- role: z.literal("tool"),
2329
- content: z.union([
2330
- z.string(),
2331
- z.array(components.TextContentPartSchema$outboundSchema),
2332
- ]),
2333
- toolCallId: z.nullable(z.string()),
2334
- cacheControl: z.lazy(() => MessagesCacheControl$outboundSchema).optional(),
2335
- }).transform((v) => {
2336
- return remap$(v, {
2337
- toolCallId: "tool_call_id",
2338
- cacheControl: "cache_control",
2339
- });
2340
- });
2341
-
2342
- export function messagesToolMessageToJSON(
2343
- messagesToolMessage: MessagesToolMessage,
2344
- ): string {
2345
- return JSON.stringify(
2346
- MessagesToolMessage$outboundSchema.parse(messagesToolMessage),
2347
- );
2348
- }
2349
-
2350
- /** @internal */
2351
- export type DeploymentGetConfigContentDeploymentsRequestRequestBody2$Outbound =
2352
- | (components.TextContentPartSchema$Outbound & { type: "text" })
2353
- | components.RefusalPartSchema$Outbound
2354
- | components.ReasoningPartSchema$Outbound
2355
- | components.RedactedReasoningPartSchema$Outbound;
2356
-
2357
- /** @internal */
2358
- export const DeploymentGetConfigContentDeploymentsRequestRequestBody2$outboundSchema:
2359
- z.ZodType<
2360
- DeploymentGetConfigContentDeploymentsRequestRequestBody2$Outbound,
2361
- z.ZodTypeDef,
2362
- DeploymentGetConfigContentDeploymentsRequestRequestBody2
2363
- > = z.union([
2364
- components.TextContentPartSchema$outboundSchema.and(
2365
- z.object({ type: z.literal("text") }),
2366
- ),
2367
- components.RefusalPartSchema$outboundSchema,
2368
- components.ReasoningPartSchema$outboundSchema,
2369
- components.RedactedReasoningPartSchema$outboundSchema,
2370
- ]);
2371
-
2372
- export function deploymentGetConfigContentDeploymentsRequestRequestBody2ToJSON(
2373
- deploymentGetConfigContentDeploymentsRequestRequestBody2:
2374
- DeploymentGetConfigContentDeploymentsRequestRequestBody2,
2375
- ): string {
2376
- return JSON.stringify(
2377
- DeploymentGetConfigContentDeploymentsRequestRequestBody2$outboundSchema
2378
- .parse(deploymentGetConfigContentDeploymentsRequestRequestBody2),
2379
- );
2380
- }
2381
-
2382
- /** @internal */
2383
- export type DeploymentGetConfigMessagesDeploymentsRequestContent$Outbound =
2384
- | string
2385
- | Array<
2386
- | (components.TextContentPartSchema$Outbound & { type: "text" })
2387
- | components.RefusalPartSchema$Outbound
2388
- | components.ReasoningPartSchema$Outbound
2389
- | components.RedactedReasoningPartSchema$Outbound
2390
- >;
2391
-
2392
- /** @internal */
2393
- export const DeploymentGetConfigMessagesDeploymentsRequestContent$outboundSchema:
2394
- z.ZodType<
2395
- DeploymentGetConfigMessagesDeploymentsRequestContent$Outbound,
2396
- z.ZodTypeDef,
2397
- DeploymentGetConfigMessagesDeploymentsRequestContent
2398
- > = z.union([
2399
- z.string(),
2400
- z.array(
2401
- z.union([
2402
- components.TextContentPartSchema$outboundSchema.and(
2403
- z.object({ type: z.literal("text") }),
2404
- ),
2405
- components.RefusalPartSchema$outboundSchema,
2406
- components.ReasoningPartSchema$outboundSchema,
2407
- components.RedactedReasoningPartSchema$outboundSchema,
2408
- ]),
2409
- ),
2410
- ]);
2411
-
2412
- export function deploymentGetConfigMessagesDeploymentsRequestContentToJSON(
2413
- deploymentGetConfigMessagesDeploymentsRequestContent:
2414
- DeploymentGetConfigMessagesDeploymentsRequestContent,
2415
- ): string {
2416
- return JSON.stringify(
2417
- DeploymentGetConfigMessagesDeploymentsRequestContent$outboundSchema.parse(
2418
- deploymentGetConfigMessagesDeploymentsRequestContent,
2419
- ),
2420
- );
2421
- }
2422
-
2423
- /** @internal */
2424
- export type MessagesAudio$Outbound = {
2425
- id: string;
2426
- };
2427
-
2428
- /** @internal */
2429
- export const MessagesAudio$outboundSchema: z.ZodType<
2430
- MessagesAudio$Outbound,
2431
- z.ZodTypeDef,
2432
- MessagesAudio
2433
- > = z.object({
2434
- id: z.string(),
2435
- });
2436
-
2437
- export function messagesAudioToJSON(messagesAudio: MessagesAudio): string {
2438
- return JSON.stringify(MessagesAudio$outboundSchema.parse(messagesAudio));
2439
- }
2440
-
2441
- /** @internal */
2442
- export const MessagesType$outboundSchema: z.ZodNativeEnum<typeof MessagesType> =
2443
- z.nativeEnum(MessagesType);
2444
-
2445
- /** @internal */
2446
- export type MessagesFunction$Outbound = {
2447
- name?: string | undefined;
2448
- arguments?: string | undefined;
2449
- };
2450
-
2451
- /** @internal */
2452
- export const MessagesFunction$outboundSchema: z.ZodType<
2453
- MessagesFunction$Outbound,
2454
- z.ZodTypeDef,
2455
- MessagesFunction
2456
- > = z.object({
2457
- name: z.string().optional(),
2458
- arguments: z.string().optional(),
2459
- });
2460
-
2461
- export function messagesFunctionToJSON(
2462
- messagesFunction: MessagesFunction,
2463
- ): string {
2464
- return JSON.stringify(
2465
- MessagesFunction$outboundSchema.parse(messagesFunction),
2466
- );
2467
- }
2468
-
2469
- /** @internal */
2470
- export type MessagesToolCalls$Outbound = {
2471
- id: string;
2472
- type: string;
2473
- function: MessagesFunction$Outbound;
2474
- thought_signature?: string | undefined;
2475
- };
2476
-
2477
- /** @internal */
2478
- export const MessagesToolCalls$outboundSchema: z.ZodType<
2479
- MessagesToolCalls$Outbound,
2480
- z.ZodTypeDef,
2481
- MessagesToolCalls
2482
- > = z.object({
2483
- id: z.string(),
2484
- type: MessagesType$outboundSchema,
2485
- function: z.lazy(() => MessagesFunction$outboundSchema),
2486
- thoughtSignature: z.string().optional(),
2487
- }).transform((v) => {
2488
- return remap$(v, {
2489
- thoughtSignature: "thought_signature",
2490
- });
2491
- });
2492
-
2493
- export function messagesToolCallsToJSON(
2494
- messagesToolCalls: MessagesToolCalls,
2495
- ): string {
2496
- return JSON.stringify(
2497
- MessagesToolCalls$outboundSchema.parse(messagesToolCalls),
2498
- );
2499
- }
2500
-
2501
- /** @internal */
2502
- export type MessagesAssistantMessage$Outbound = {
2503
- content?:
2504
- | string
2505
- | Array<
2506
- | (components.TextContentPartSchema$Outbound & { type: "text" })
2507
- | components.RefusalPartSchema$Outbound
2508
- | components.ReasoningPartSchema$Outbound
2509
- | components.RedactedReasoningPartSchema$Outbound
2510
- >
2511
- | null
2512
- | undefined;
2513
- refusal?: string | null | undefined;
2514
- role: "assistant";
2515
- name?: string | undefined;
2516
- audio?: MessagesAudio$Outbound | null | undefined;
2517
- tool_calls?: Array<MessagesToolCalls$Outbound> | undefined;
2518
- };
2519
-
2520
- /** @internal */
2521
- export const MessagesAssistantMessage$outboundSchema: z.ZodType<
2522
- MessagesAssistantMessage$Outbound,
2523
- z.ZodTypeDef,
2524
- MessagesAssistantMessage
2525
- > = z.object({
2526
- content: z.nullable(
2527
- z.union([
2528
- z.string(),
2529
- z.array(
2530
- z.union([
2531
- components.TextContentPartSchema$outboundSchema.and(
2532
- z.object({ type: z.literal("text") }),
2533
- ),
2534
- components.RefusalPartSchema$outboundSchema,
2535
- components.ReasoningPartSchema$outboundSchema,
2536
- components.RedactedReasoningPartSchema$outboundSchema,
2537
- ]),
2538
- ),
2539
- ]),
2540
- ).optional(),
2541
- refusal: z.nullable(z.string()).optional(),
2542
- role: z.literal("assistant"),
2543
- name: z.string().optional(),
2544
- audio: z.nullable(z.lazy(() => MessagesAudio$outboundSchema)).optional(),
2545
- toolCalls: z.array(z.lazy(() => MessagesToolCalls$outboundSchema)).optional(),
2546
- }).transform((v) => {
2547
- return remap$(v, {
2548
- toolCalls: "tool_calls",
2549
- });
2550
- });
2551
-
2552
- export function messagesAssistantMessageToJSON(
2553
- messagesAssistantMessage: MessagesAssistantMessage,
2554
- ): string {
2555
- return JSON.stringify(
2556
- MessagesAssistantMessage$outboundSchema.parse(messagesAssistantMessage),
2557
- );
2558
- }
2559
-
2560
- /** @internal */
2561
- export const DeploymentGetConfig2DeploymentsRequestRequestBodyType$outboundSchema:
2562
- z.ZodNativeEnum<
2563
- typeof DeploymentGetConfig2DeploymentsRequestRequestBodyType
2564
- > = z.nativeEnum(DeploymentGetConfig2DeploymentsRequestRequestBodyType);
2565
-
2566
- /** @internal */
2567
- export const TwoTtl$outboundSchema: z.ZodNativeEnum<typeof TwoTtl> = z
2568
- .nativeEnum(TwoTtl);
2569
-
2570
- /** @internal */
2571
- export type TwoCacheControl$Outbound = {
2572
- type: string;
2573
- ttl: string;
2574
- };
2575
-
2576
- /** @internal */
2577
- export const TwoCacheControl$outboundSchema: z.ZodType<
2578
- TwoCacheControl$Outbound,
2579
- z.ZodTypeDef,
2580
- TwoCacheControl
2581
- > = z.object({
2582
- type: DeploymentGetConfig2DeploymentsRequestRequestBodyType$outboundSchema,
2583
- ttl: TwoTtl$outboundSchema.default("5m"),
2584
- });
2585
-
2586
- export function twoCacheControlToJSON(
2587
- twoCacheControl: TwoCacheControl,
2588
- ): string {
2589
- return JSON.stringify(TwoCacheControl$outboundSchema.parse(twoCacheControl));
2590
- }
2591
-
2592
- /** @internal */
2593
- export type Two4$Outbound = {
2594
- type: "file";
2595
- cache_control?: TwoCacheControl$Outbound | undefined;
2596
- file: components.FileContentPartSchema$Outbound;
2597
- };
2598
-
2599
- /** @internal */
2600
- export const Two4$outboundSchema: z.ZodType<Two4$Outbound, z.ZodTypeDef, Two4> =
2601
- z.object({
2602
- type: z.literal("file"),
2603
- cacheControl: z.lazy(() => TwoCacheControl$outboundSchema).optional(),
2604
- file: components.FileContentPartSchema$outboundSchema,
2605
- }).transform((v) => {
2606
- return remap$(v, {
2607
- cacheControl: "cache_control",
2608
- });
2609
- });
2610
-
2611
- export function two4ToJSON(two4: Two4): string {
2612
- return JSON.stringify(Two4$outboundSchema.parse(two4));
2613
- }
2614
-
2615
- /** @internal */
2616
- export type DeploymentGetConfigContentDeploymentsRequest2$Outbound =
2617
- | (components.TextContentPartSchema$Outbound & { type: "text" })
2618
- | components.ImageContentPartSchema$Outbound
2619
- | components.AudioContentPartSchema$Outbound
2620
- | Two4$Outbound;
2621
-
2622
- /** @internal */
2623
- export const DeploymentGetConfigContentDeploymentsRequest2$outboundSchema:
2624
- z.ZodType<
2625
- DeploymentGetConfigContentDeploymentsRequest2$Outbound,
2626
- z.ZodTypeDef,
2627
- DeploymentGetConfigContentDeploymentsRequest2
2628
- > = z.union([
2629
- components.TextContentPartSchema$outboundSchema.and(
2630
- z.object({ type: z.literal("text") }),
2631
- ),
2632
- components.ImageContentPartSchema$outboundSchema,
2633
- components.AudioContentPartSchema$outboundSchema,
2634
- z.lazy(() => Two4$outboundSchema),
2635
- ]);
2636
-
2637
- export function deploymentGetConfigContentDeploymentsRequest2ToJSON(
2638
- deploymentGetConfigContentDeploymentsRequest2:
2639
- DeploymentGetConfigContentDeploymentsRequest2,
2640
- ): string {
2641
- return JSON.stringify(
2642
- DeploymentGetConfigContentDeploymentsRequest2$outboundSchema.parse(
2643
- deploymentGetConfigContentDeploymentsRequest2,
2644
- ),
2645
- );
2646
- }
2647
-
2648
- /** @internal */
2649
- export type DeploymentGetConfigMessagesDeploymentsContent$Outbound =
2650
- | string
2651
- | Array<
2652
- | (components.TextContentPartSchema$Outbound & { type: "text" })
2653
- | components.ImageContentPartSchema$Outbound
2654
- | components.AudioContentPartSchema$Outbound
2655
- | Two4$Outbound
2656
- >;
2657
-
2658
- /** @internal */
2659
- export const DeploymentGetConfigMessagesDeploymentsContent$outboundSchema:
2660
- z.ZodType<
2661
- DeploymentGetConfigMessagesDeploymentsContent$Outbound,
2662
- z.ZodTypeDef,
2663
- DeploymentGetConfigMessagesDeploymentsContent
2664
- > = z.union([
2665
- z.string(),
2666
- z.array(
2667
- z.union([
2668
- components.TextContentPartSchema$outboundSchema.and(
2669
- z.object({ type: z.literal("text") }),
2670
- ),
2671
- components.ImageContentPartSchema$outboundSchema,
2672
- components.AudioContentPartSchema$outboundSchema,
2673
- z.lazy(() => Two4$outboundSchema),
2674
- ]),
2675
- ),
2676
- ]);
2677
-
2678
- export function deploymentGetConfigMessagesDeploymentsContentToJSON(
2679
- deploymentGetConfigMessagesDeploymentsContent:
2680
- DeploymentGetConfigMessagesDeploymentsContent,
2681
- ): string {
2682
- return JSON.stringify(
2683
- DeploymentGetConfigMessagesDeploymentsContent$outboundSchema.parse(
2684
- deploymentGetConfigMessagesDeploymentsContent,
2685
- ),
2686
- );
2687
- }
2688
-
2689
- /** @internal */
2690
- export type MessagesUserMessage$Outbound = {
2691
- role: "user";
2692
- name?: string | undefined;
2693
- content:
2694
- | string
2695
- | Array<
2696
- | (components.TextContentPartSchema$Outbound & { type: "text" })
2697
- | components.ImageContentPartSchema$Outbound
2698
- | components.AudioContentPartSchema$Outbound
2699
- | Two4$Outbound
2700
- >;
2701
- };
2702
-
2703
- /** @internal */
2704
- export const MessagesUserMessage$outboundSchema: z.ZodType<
2705
- MessagesUserMessage$Outbound,
2706
- z.ZodTypeDef,
2707
- MessagesUserMessage
2708
- > = z.object({
2709
- role: z.literal("user"),
2710
- name: z.string().optional(),
2711
- content: z.union([
2712
- z.string(),
2713
- z.array(
2714
- z.union([
2715
- components.TextContentPartSchema$outboundSchema.and(
2716
- z.object({ type: z.literal("text") }),
2717
- ),
2718
- components.ImageContentPartSchema$outboundSchema,
2719
- components.AudioContentPartSchema$outboundSchema,
2720
- z.lazy(() => Two4$outboundSchema),
2721
- ]),
2722
- ),
2723
- ]),
2724
- });
2725
-
2726
- export function messagesUserMessageToJSON(
2727
- messagesUserMessage: MessagesUserMessage,
2728
- ): string {
2729
- return JSON.stringify(
2730
- MessagesUserMessage$outboundSchema.parse(messagesUserMessage),
2731
- );
2732
- }
2733
-
2734
- /** @internal */
2735
- export type DeploymentGetConfigMessagesContent$Outbound =
2736
- | string
2737
- | Array<components.TextContentPartSchema$Outbound>;
2738
-
2739
- /** @internal */
2740
- export const DeploymentGetConfigMessagesContent$outboundSchema: z.ZodType<
2741
- DeploymentGetConfigMessagesContent$Outbound,
2742
- z.ZodTypeDef,
2743
- DeploymentGetConfigMessagesContent
2744
- > = z.union([
2745
- z.string(),
2746
- z.array(components.TextContentPartSchema$outboundSchema),
2747
- ]);
2748
-
2749
- export function deploymentGetConfigMessagesContentToJSON(
2750
- deploymentGetConfigMessagesContent: DeploymentGetConfigMessagesContent,
2751
- ): string {
2752
- return JSON.stringify(
2753
- DeploymentGetConfigMessagesContent$outboundSchema.parse(
2754
- deploymentGetConfigMessagesContent,
2755
- ),
2756
- );
2757
- }
2758
-
2759
- /** @internal */
2760
- export type MessagesDeveloperMessage$Outbound = {
2761
- role: "developer";
2762
- content: string | Array<components.TextContentPartSchema$Outbound>;
2763
- name?: string | undefined;
2764
- };
2765
-
2766
- /** @internal */
2767
- export const MessagesDeveloperMessage$outboundSchema: z.ZodType<
2768
- MessagesDeveloperMessage$Outbound,
2769
- z.ZodTypeDef,
2770
- MessagesDeveloperMessage
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 messagesDeveloperMessageToJSON(
2781
- messagesDeveloperMessage: MessagesDeveloperMessage,
2782
- ): string {
2783
- return JSON.stringify(
2784
- MessagesDeveloperMessage$outboundSchema.parse(messagesDeveloperMessage),
2785
- );
2786
- }
2787
-
2788
- /** @internal */
2789
- export type MessagesContent$Outbound =
2790
- | string
2791
- | Array<components.TextContentPartSchema$Outbound>;
2792
-
2793
- /** @internal */
2794
- export const MessagesContent$outboundSchema: z.ZodType<
2795
- MessagesContent$Outbound,
2796
- z.ZodTypeDef,
2797
- MessagesContent
2798
- > = z.union([
2799
- z.string(),
2800
- z.array(components.TextContentPartSchema$outboundSchema),
2801
- ]);
2802
-
2803
- export function messagesContentToJSON(
2804
- messagesContent: MessagesContent,
2805
- ): string {
2806
- return JSON.stringify(MessagesContent$outboundSchema.parse(messagesContent));
2807
- }
2808
-
2809
- /** @internal */
2810
- export type MessagesSystemMessage$Outbound = {
2811
- role: "system";
2812
- content: string | Array<components.TextContentPartSchema$Outbound>;
2813
- name?: string | undefined;
2814
- };
2815
-
2816
- /** @internal */
2817
- export const MessagesSystemMessage$outboundSchema: z.ZodType<
2818
- MessagesSystemMessage$Outbound,
2819
- z.ZodTypeDef,
2820
- MessagesSystemMessage
2821
- > = z.object({
2822
- role: z.literal("system"),
2823
- content: z.union([
2824
- z.string(),
2825
- z.array(components.TextContentPartSchema$outboundSchema),
2826
- ]),
2827
- name: z.string().optional(),
2828
- });
2829
-
2830
- export function messagesSystemMessageToJSON(
2831
- messagesSystemMessage: MessagesSystemMessage,
2832
- ): string {
2833
- return JSON.stringify(
2834
- MessagesSystemMessage$outboundSchema.parse(messagesSystemMessage),
2835
- );
2836
- }
2837
-
2838
- /** @internal */
2839
- export type DeploymentGetConfigMessages$Outbound =
2840
- | MessagesSystemMessage$Outbound
2841
- | MessagesDeveloperMessage$Outbound
2842
- | MessagesUserMessage$Outbound
2843
- | MessagesAssistantMessage$Outbound
2844
- | MessagesToolMessage$Outbound;
2845
-
2846
- /** @internal */
2847
- export const DeploymentGetConfigMessages$outboundSchema: z.ZodType<
2848
- DeploymentGetConfigMessages$Outbound,
2849
- z.ZodTypeDef,
2850
- DeploymentGetConfigMessages
2851
- > = z.union([
2852
- z.lazy(() => MessagesSystemMessage$outboundSchema),
2853
- z.lazy(() => MessagesDeveloperMessage$outboundSchema),
2854
- z.lazy(() => MessagesUserMessage$outboundSchema),
2855
- z.lazy(() => MessagesAssistantMessage$outboundSchema),
2856
- z.lazy(() => MessagesToolMessage$outboundSchema),
2857
- ]);
2858
-
2859
- export function deploymentGetConfigMessagesToJSON(
2860
- deploymentGetConfigMessages: DeploymentGetConfigMessages,
2861
- ): string {
2862
- return JSON.stringify(
2863
- DeploymentGetConfigMessages$outboundSchema.parse(
2864
- deploymentGetConfigMessages,
2865
- ),
2866
- );
2867
- }
2868
-
2869
- /** @internal */
2870
- export type Metadata$Outbound = {
2871
- file_name?: string | undefined;
2872
- file_type?: string | undefined;
2873
- page_number?: number | undefined;
2874
- };
2875
-
2876
- /** @internal */
2877
- export const Metadata$outboundSchema: z.ZodType<
2878
- Metadata$Outbound,
2879
- z.ZodTypeDef,
2880
- Metadata
2881
- > = z.object({
2882
- fileName: z.string().optional(),
2883
- fileType: z.string().optional(),
2884
- pageNumber: z.number().optional(),
2885
- }).transform((v) => {
2886
- return remap$(v, {
2887
- fileName: "file_name",
2888
- fileType: "file_type",
2889
- pageNumber: "page_number",
2890
- });
2891
- });
2892
-
2893
- export function metadataToJSON(metadata: Metadata): string {
2894
- return JSON.stringify(Metadata$outboundSchema.parse(metadata));
2895
- }
2896
-
2897
- /** @internal */
2898
- export type Documents$Outbound = {
2899
- text: string;
2900
- metadata?: Metadata$Outbound | undefined;
2901
- };
2902
-
2903
- /** @internal */
2904
- export const Documents$outboundSchema: z.ZodType<
2905
- Documents$Outbound,
2906
- z.ZodTypeDef,
2907
- Documents
2908
- > = z.object({
2909
- text: z.string(),
2910
- metadata: z.lazy(() => Metadata$outboundSchema).optional(),
2911
- });
2912
-
2913
- export function documentsToJSON(documents: Documents): string {
2914
- return JSON.stringify(Documents$outboundSchema.parse(documents));
2915
- }
2916
-
2917
- /** @internal */
2918
- export type InvokeOptions$Outbound = {
2919
- include_retrievals: boolean;
2920
- include_usage: boolean;
2921
- mock_response?: string | undefined;
2922
- };
2923
-
2924
- /** @internal */
2925
- export const InvokeOptions$outboundSchema: z.ZodType<
2926
- InvokeOptions$Outbound,
2927
- z.ZodTypeDef,
2928
- InvokeOptions
2929
- > = z.object({
2930
- includeRetrievals: z.boolean().default(false),
2931
- includeUsage: z.boolean().default(false),
2932
- mockResponse: z.string().optional(),
2933
- }).transform((v) => {
2934
- return remap$(v, {
2935
- includeRetrievals: "include_retrievals",
2936
- includeUsage: "include_usage",
2937
- mockResponse: "mock_response",
2938
- });
2939
- });
2940
-
2941
- export function invokeOptionsToJSON(invokeOptions: InvokeOptions): string {
2942
- return JSON.stringify(InvokeOptions$outboundSchema.parse(invokeOptions));
2943
- }
2944
-
2945
- /** @internal */
2946
- export type Thread$Outbound = {
2947
- id: string;
2948
- tags?: Array<string> | undefined;
2949
- };
2950
-
2951
- /** @internal */
2952
- export const Thread$outboundSchema: z.ZodType<
2953
- Thread$Outbound,
2954
- z.ZodTypeDef,
2955
- Thread
2956
- > = z.object({
2957
- id: z.string(),
2958
- tags: z.array(z.string()).optional(),
2959
- });
2960
-
2961
- export function threadToJSON(thread: Thread): string {
2962
- return JSON.stringify(Thread$outboundSchema.parse(thread));
2963
- }
2964
-
2965
- /** @internal */
2966
- export type OrExists$Outbound = {
2967
- exists: boolean;
2968
- };
2969
-
2970
- /** @internal */
2971
- export const OrExists$outboundSchema: z.ZodType<
2972
- OrExists$Outbound,
2973
- z.ZodTypeDef,
2974
- OrExists
2975
- > = z.object({
2976
- exists: z.boolean(),
2977
- });
2978
-
2979
- export function orExistsToJSON(orExists: OrExists): string {
2980
- return JSON.stringify(OrExists$outboundSchema.parse(orExists));
2981
- }
2982
-
2983
- /** @internal */
2984
- export type DeploymentGetConfigOrNin$Outbound = string | number | boolean;
2985
-
2986
- /** @internal */
2987
- export const DeploymentGetConfigOrNin$outboundSchema: z.ZodType<
2988
- DeploymentGetConfigOrNin$Outbound,
2989
- z.ZodTypeDef,
2990
- DeploymentGetConfigOrNin
2991
- > = z.union([z.string(), z.number(), z.boolean()]);
2992
-
2993
- export function deploymentGetConfigOrNinToJSON(
2994
- deploymentGetConfigOrNin: DeploymentGetConfigOrNin,
2995
- ): string {
2996
- return JSON.stringify(
2997
- DeploymentGetConfigOrNin$outboundSchema.parse(deploymentGetConfigOrNin),
2998
- );
2999
- }
3000
-
3001
- /** @internal */
3002
- export type OrNin$Outbound = {
3003
- nin: Array<string | number | boolean>;
3004
- };
3005
-
3006
- /** @internal */
3007
- export const OrNin$outboundSchema: z.ZodType<
3008
- OrNin$Outbound,
3009
- z.ZodTypeDef,
3010
- OrNin
3011
- > = z.object({
3012
- nin: z.array(z.union([z.string(), z.number(), z.boolean()])),
3013
- });
3014
-
3015
- export function orNinToJSON(orNin: OrNin): string {
3016
- return JSON.stringify(OrNin$outboundSchema.parse(orNin));
3017
- }
3018
-
3019
- /** @internal */
3020
- export type DeploymentGetConfigOrIn$Outbound = string | number | boolean;
3021
-
3022
- /** @internal */
3023
- export const DeploymentGetConfigOrIn$outboundSchema: z.ZodType<
3024
- DeploymentGetConfigOrIn$Outbound,
3025
- z.ZodTypeDef,
3026
- DeploymentGetConfigOrIn
3027
- > = z.union([z.string(), z.number(), z.boolean()]);
3028
-
3029
- export function deploymentGetConfigOrInToJSON(
3030
- deploymentGetConfigOrIn: DeploymentGetConfigOrIn,
3031
- ): string {
3032
- return JSON.stringify(
3033
- DeploymentGetConfigOrIn$outboundSchema.parse(deploymentGetConfigOrIn),
3034
- );
3035
- }
3036
-
3037
- /** @internal */
3038
- export type OrIn$Outbound = {
3039
- in: Array<string | number | boolean>;
3040
- };
3041
-
3042
- /** @internal */
3043
- export const OrIn$outboundSchema: z.ZodType<OrIn$Outbound, z.ZodTypeDef, OrIn> =
3044
- z.object({
3045
- in: z.array(z.union([z.string(), z.number(), z.boolean()])),
3046
- });
3047
-
3048
- export function orInToJSON(orIn: OrIn): string {
3049
- return JSON.stringify(OrIn$outboundSchema.parse(orIn));
3050
- }
3051
-
3052
- /** @internal */
3053
- export type OrLte$Outbound = {
3054
- lte: number;
3055
- };
3056
-
3057
- /** @internal */
3058
- export const OrLte$outboundSchema: z.ZodType<
3059
- OrLte$Outbound,
3060
- z.ZodTypeDef,
3061
- OrLte
3062
- > = z.object({
3063
- lte: z.number(),
3064
- });
3065
-
3066
- export function orLteToJSON(orLte: OrLte): string {
3067
- return JSON.stringify(OrLte$outboundSchema.parse(orLte));
3068
- }
3069
-
3070
- /** @internal */
3071
- export type OrLt$Outbound = {
3072
- lt: number;
3073
- };
3074
-
3075
- /** @internal */
3076
- export const OrLt$outboundSchema: z.ZodType<OrLt$Outbound, z.ZodTypeDef, OrLt> =
3077
- z.object({
3078
- lt: z.number(),
3079
- });
3080
-
3081
- export function orLtToJSON(orLt: OrLt): string {
3082
- return JSON.stringify(OrLt$outboundSchema.parse(orLt));
3083
- }
3084
-
3085
- /** @internal */
3086
- export type OrGte$Outbound = {
3087
- gte: number;
3088
- };
3089
-
3090
- /** @internal */
3091
- export const OrGte$outboundSchema: z.ZodType<
3092
- OrGte$Outbound,
3093
- z.ZodTypeDef,
3094
- OrGte
3095
- > = z.object({
3096
- gte: z.number(),
3097
- });
3098
-
3099
- export function orGteToJSON(orGte: OrGte): string {
3100
- return JSON.stringify(OrGte$outboundSchema.parse(orGte));
3101
- }
3102
-
3103
- /** @internal */
3104
- export type OrGt$Outbound = {
3105
- gt: number;
3106
- };
3107
-
3108
- /** @internal */
3109
- export const OrGt$outboundSchema: z.ZodType<OrGt$Outbound, z.ZodTypeDef, OrGt> =
3110
- z.object({
3111
- gt: z.number(),
3112
- });
3113
-
3114
- export function orGtToJSON(orGt: OrGt): string {
3115
- return JSON.stringify(OrGt$outboundSchema.parse(orGt));
3116
- }
3117
-
3118
- /** @internal */
3119
- export type DeploymentGetConfigOrNe$Outbound = string | number | boolean;
3120
-
3121
- /** @internal */
3122
- export const DeploymentGetConfigOrNe$outboundSchema: z.ZodType<
3123
- DeploymentGetConfigOrNe$Outbound,
3124
- z.ZodTypeDef,
3125
- DeploymentGetConfigOrNe
3126
- > = z.union([z.string(), z.number(), z.boolean()]);
3127
-
3128
- export function deploymentGetConfigOrNeToJSON(
3129
- deploymentGetConfigOrNe: DeploymentGetConfigOrNe,
3130
- ): string {
3131
- return JSON.stringify(
3132
- DeploymentGetConfigOrNe$outboundSchema.parse(deploymentGetConfigOrNe),
3133
- );
3134
- }
3135
-
3136
- /** @internal */
3137
- export type OrNe$Outbound = {
3138
- ne: string | number | boolean;
3139
- };
3140
-
3141
- /** @internal */
3142
- export const OrNe$outboundSchema: z.ZodType<OrNe$Outbound, z.ZodTypeDef, OrNe> =
3143
- z.object({
3144
- ne: z.union([z.string(), z.number(), z.boolean()]),
3145
- });
3146
-
3147
- export function orNeToJSON(orNe: OrNe): string {
3148
- return JSON.stringify(OrNe$outboundSchema.parse(orNe));
3149
- }
3150
-
3151
- /** @internal */
3152
- export type DeploymentGetConfigOrEq$Outbound = string | number | boolean;
3153
-
3154
- /** @internal */
3155
- export const DeploymentGetConfigOrEq$outboundSchema: z.ZodType<
3156
- DeploymentGetConfigOrEq$Outbound,
3157
- z.ZodTypeDef,
3158
- DeploymentGetConfigOrEq
3159
- > = z.union([z.string(), z.number(), z.boolean()]);
3160
-
3161
- export function deploymentGetConfigOrEqToJSON(
3162
- deploymentGetConfigOrEq: DeploymentGetConfigOrEq,
3163
- ): string {
3164
- return JSON.stringify(
3165
- DeploymentGetConfigOrEq$outboundSchema.parse(deploymentGetConfigOrEq),
3166
- );
3167
- }
3168
-
3169
- /** @internal */
3170
- export type OrEq$Outbound = {
3171
- eq: string | number | boolean;
3172
- };
3173
-
3174
- /** @internal */
3175
- export const OrEq$outboundSchema: z.ZodType<OrEq$Outbound, z.ZodTypeDef, OrEq> =
3176
- z.object({
3177
- eq: z.union([z.string(), z.number(), z.boolean()]),
3178
- });
3179
-
3180
- export function orEqToJSON(orEq: OrEq): string {
3181
- return JSON.stringify(OrEq$outboundSchema.parse(orEq));
3182
- }
3183
-
3184
- /** @internal */
3185
- export type KnowledgeFilterOr$Outbound =
3186
- | OrEq$Outbound
3187
- | OrNe$Outbound
3188
- | OrGt$Outbound
3189
- | OrGte$Outbound
3190
- | OrLt$Outbound
3191
- | OrLte$Outbound
3192
- | OrIn$Outbound
3193
- | OrNin$Outbound
3194
- | OrExists$Outbound;
3195
-
3196
- /** @internal */
3197
- export const KnowledgeFilterOr$outboundSchema: z.ZodType<
3198
- KnowledgeFilterOr$Outbound,
3199
- z.ZodTypeDef,
3200
- KnowledgeFilterOr
3201
- > = z.union([
3202
- z.lazy(() => OrEq$outboundSchema),
3203
- z.lazy(() => OrNe$outboundSchema),
3204
- z.lazy(() => OrGt$outboundSchema),
3205
- z.lazy(() => OrGte$outboundSchema),
3206
- z.lazy(() => OrLt$outboundSchema),
3207
- z.lazy(() => OrLte$outboundSchema),
3208
- z.lazy(() => OrIn$outboundSchema),
3209
- z.lazy(() => OrNin$outboundSchema),
3210
- z.lazy(() => OrExists$outboundSchema),
3211
- ]);
3212
-
3213
- export function knowledgeFilterOrToJSON(
3214
- knowledgeFilterOr: KnowledgeFilterOr,
3215
- ): string {
3216
- return JSON.stringify(
3217
- KnowledgeFilterOr$outboundSchema.parse(knowledgeFilterOr),
3218
- );
3219
- }
3220
-
3221
- /** @internal */
3222
- export type Or$Outbound = {
3223
- or: Array<
3224
- {
3225
- [k: string]:
3226
- | OrEq$Outbound
3227
- | OrNe$Outbound
3228
- | OrGt$Outbound
3229
- | OrGte$Outbound
3230
- | OrLt$Outbound
3231
- | OrLte$Outbound
3232
- | OrIn$Outbound
3233
- | OrNin$Outbound
3234
- | OrExists$Outbound;
3235
- }
3236
- >;
3237
- };
3238
-
3239
- /** @internal */
3240
- export const Or$outboundSchema: z.ZodType<Or$Outbound, z.ZodTypeDef, Or> = z
3241
- .object({
3242
- or: z.array(
3243
- z.record(z.union([
3244
- z.lazy(() => OrEq$outboundSchema),
3245
- z.lazy(() =>
3246
- OrNe$outboundSchema
3247
- ),
3248
- z.lazy(() => OrGt$outboundSchema),
3249
- z.lazy(() => OrGte$outboundSchema),
3250
- z.lazy(() => OrLt$outboundSchema),
3251
- z.lazy(() => OrLte$outboundSchema),
3252
- z.lazy(() => OrIn$outboundSchema),
3253
- z.lazy(() => OrNin$outboundSchema),
3254
- z.lazy(() => OrExists$outboundSchema),
3255
- ])),
3256
- ),
3257
- });
3258
-
3259
- export function orToJSON(or: Or): string {
3260
- return JSON.stringify(Or$outboundSchema.parse(or));
3261
- }
3262
-
3263
- /** @internal */
3264
- export type AndExists$Outbound = {
3265
- exists: boolean;
3266
- };
3267
-
3268
- /** @internal */
3269
- export const AndExists$outboundSchema: z.ZodType<
3270
- AndExists$Outbound,
3271
- z.ZodTypeDef,
3272
- AndExists
3273
- > = z.object({
3274
- exists: z.boolean(),
3275
- });
3276
-
3277
- export function andExistsToJSON(andExists: AndExists): string {
3278
- return JSON.stringify(AndExists$outboundSchema.parse(andExists));
3279
- }
3280
-
3281
- /** @internal */
3282
- export type DeploymentGetConfigAndNin$Outbound = string | number | boolean;
3283
-
3284
- /** @internal */
3285
- export const DeploymentGetConfigAndNin$outboundSchema: z.ZodType<
3286
- DeploymentGetConfigAndNin$Outbound,
3287
- z.ZodTypeDef,
3288
- DeploymentGetConfigAndNin
3289
- > = z.union([z.string(), z.number(), z.boolean()]);
3290
-
3291
- export function deploymentGetConfigAndNinToJSON(
3292
- deploymentGetConfigAndNin: DeploymentGetConfigAndNin,
3293
- ): string {
3294
- return JSON.stringify(
3295
- DeploymentGetConfigAndNin$outboundSchema.parse(deploymentGetConfigAndNin),
3296
- );
3297
- }
3298
-
3299
- /** @internal */
3300
- export type AndNin$Outbound = {
3301
- nin: Array<string | number | boolean>;
3302
- };
3303
-
3304
- /** @internal */
3305
- export const AndNin$outboundSchema: z.ZodType<
3306
- AndNin$Outbound,
3307
- z.ZodTypeDef,
3308
- AndNin
3309
- > = z.object({
3310
- nin: z.array(z.union([z.string(), z.number(), z.boolean()])),
3311
- });
3312
-
3313
- export function andNinToJSON(andNin: AndNin): string {
3314
- return JSON.stringify(AndNin$outboundSchema.parse(andNin));
3315
- }
3316
-
3317
- /** @internal */
3318
- export type DeploymentGetConfigAndIn$Outbound = string | number | boolean;
3319
-
3320
- /** @internal */
3321
- export const DeploymentGetConfigAndIn$outboundSchema: z.ZodType<
3322
- DeploymentGetConfigAndIn$Outbound,
3323
- z.ZodTypeDef,
3324
- DeploymentGetConfigAndIn
3325
- > = z.union([z.string(), z.number(), z.boolean()]);
3326
-
3327
- export function deploymentGetConfigAndInToJSON(
3328
- deploymentGetConfigAndIn: DeploymentGetConfigAndIn,
3329
- ): string {
3330
- return JSON.stringify(
3331
- DeploymentGetConfigAndIn$outboundSchema.parse(deploymentGetConfigAndIn),
3332
- );
3333
- }
3334
-
3335
- /** @internal */
3336
- export type AndIn$Outbound = {
3337
- in: Array<string | number | boolean>;
3338
- };
3339
-
3340
- /** @internal */
3341
- export const AndIn$outboundSchema: z.ZodType<
3342
- AndIn$Outbound,
3343
- z.ZodTypeDef,
3344
- AndIn
3345
- > = z.object({
3346
- in: z.array(z.union([z.string(), z.number(), z.boolean()])),
3347
- });
3348
-
3349
- export function andInToJSON(andIn: AndIn): string {
3350
- return JSON.stringify(AndIn$outboundSchema.parse(andIn));
3351
- }
3352
-
3353
- /** @internal */
3354
- export type AndLte$Outbound = {
3355
- lte: number;
3356
- };
3357
-
3358
- /** @internal */
3359
- export const AndLte$outboundSchema: z.ZodType<
3360
- AndLte$Outbound,
3361
- z.ZodTypeDef,
3362
- AndLte
3363
- > = z.object({
3364
- lte: z.number(),
3365
- });
3366
-
3367
- export function andLteToJSON(andLte: AndLte): string {
3368
- return JSON.stringify(AndLte$outboundSchema.parse(andLte));
3369
- }
3370
-
3371
- /** @internal */
3372
- export type AndLt$Outbound = {
3373
- lt: number;
3374
- };
3375
-
3376
- /** @internal */
3377
- export const AndLt$outboundSchema: z.ZodType<
3378
- AndLt$Outbound,
3379
- z.ZodTypeDef,
3380
- AndLt
3381
- > = z.object({
3382
- lt: z.number(),
3383
- });
3384
-
3385
- export function andLtToJSON(andLt: AndLt): string {
3386
- return JSON.stringify(AndLt$outboundSchema.parse(andLt));
3387
- }
3388
-
3389
- /** @internal */
3390
- export type AndGte$Outbound = {
3391
- gte: number;
3392
- };
3393
-
3394
- /** @internal */
3395
- export const AndGte$outboundSchema: z.ZodType<
3396
- AndGte$Outbound,
3397
- z.ZodTypeDef,
3398
- AndGte
3399
- > = z.object({
3400
- gte: z.number(),
3401
- });
3402
-
3403
- export function andGteToJSON(andGte: AndGte): string {
3404
- return JSON.stringify(AndGte$outboundSchema.parse(andGte));
3405
- }
3406
-
3407
- /** @internal */
3408
- export type AndGt$Outbound = {
3409
- gt: number;
3410
- };
3411
-
3412
- /** @internal */
3413
- export const AndGt$outboundSchema: z.ZodType<
3414
- AndGt$Outbound,
3415
- z.ZodTypeDef,
3416
- AndGt
3417
- > = z.object({
3418
- gt: z.number(),
3419
- });
3420
-
3421
- export function andGtToJSON(andGt: AndGt): string {
3422
- return JSON.stringify(AndGt$outboundSchema.parse(andGt));
3423
- }
3424
-
3425
- /** @internal */
3426
- export type DeploymentGetConfigAndNe$Outbound = string | number | boolean;
3427
-
3428
- /** @internal */
3429
- export const DeploymentGetConfigAndNe$outboundSchema: z.ZodType<
3430
- DeploymentGetConfigAndNe$Outbound,
3431
- z.ZodTypeDef,
3432
- DeploymentGetConfigAndNe
3433
- > = z.union([z.string(), z.number(), z.boolean()]);
3434
-
3435
- export function deploymentGetConfigAndNeToJSON(
3436
- deploymentGetConfigAndNe: DeploymentGetConfigAndNe,
3437
- ): string {
3438
- return JSON.stringify(
3439
- DeploymentGetConfigAndNe$outboundSchema.parse(deploymentGetConfigAndNe),
3440
- );
3441
- }
3442
-
3443
- /** @internal */
3444
- export type AndNe$Outbound = {
3445
- ne: string | number | boolean;
3446
- };
3447
-
3448
- /** @internal */
3449
- export const AndNe$outboundSchema: z.ZodType<
3450
- AndNe$Outbound,
3451
- z.ZodTypeDef,
3452
- AndNe
3453
- > = z.object({
3454
- ne: z.union([z.string(), z.number(), z.boolean()]),
3455
- });
3456
-
3457
- export function andNeToJSON(andNe: AndNe): string {
3458
- return JSON.stringify(AndNe$outboundSchema.parse(andNe));
3459
- }
3460
-
3461
- /** @internal */
3462
- export type DeploymentGetConfigAndEq$Outbound = string | number | boolean;
3463
-
3464
- /** @internal */
3465
- export const DeploymentGetConfigAndEq$outboundSchema: z.ZodType<
3466
- DeploymentGetConfigAndEq$Outbound,
3467
- z.ZodTypeDef,
3468
- DeploymentGetConfigAndEq
3469
- > = z.union([z.string(), z.number(), z.boolean()]);
3470
-
3471
- export function deploymentGetConfigAndEqToJSON(
3472
- deploymentGetConfigAndEq: DeploymentGetConfigAndEq,
3473
- ): string {
3474
- return JSON.stringify(
3475
- DeploymentGetConfigAndEq$outboundSchema.parse(deploymentGetConfigAndEq),
3476
- );
3477
- }
3478
-
3479
- /** @internal */
3480
- export type AndEq$Outbound = {
3481
- eq: string | number | boolean;
3482
- };
3483
-
3484
- /** @internal */
3485
- export const AndEq$outboundSchema: z.ZodType<
3486
- AndEq$Outbound,
3487
- z.ZodTypeDef,
3488
- AndEq
3489
- > = z.object({
3490
- eq: z.union([z.string(), z.number(), z.boolean()]),
3491
- });
3492
-
3493
- export function andEqToJSON(andEq: AndEq): string {
3494
- return JSON.stringify(AndEq$outboundSchema.parse(andEq));
3495
- }
3496
-
3497
- /** @internal */
3498
- export type KnowledgeFilterAnd$Outbound =
3499
- | AndEq$Outbound
3500
- | AndNe$Outbound
3501
- | AndGt$Outbound
3502
- | AndGte$Outbound
3503
- | AndLt$Outbound
3504
- | AndLte$Outbound
3505
- | AndIn$Outbound
3506
- | AndNin$Outbound
3507
- | AndExists$Outbound;
3508
-
3509
- /** @internal */
3510
- export const KnowledgeFilterAnd$outboundSchema: z.ZodType<
3511
- KnowledgeFilterAnd$Outbound,
3512
- z.ZodTypeDef,
3513
- KnowledgeFilterAnd
3514
- > = z.union([
3515
- z.lazy(() => AndEq$outboundSchema),
3516
- z.lazy(() => AndNe$outboundSchema),
3517
- z.lazy(() => AndGt$outboundSchema),
3518
- z.lazy(() => AndGte$outboundSchema),
3519
- z.lazy(() => AndLt$outboundSchema),
3520
- z.lazy(() => AndLte$outboundSchema),
3521
- z.lazy(() => AndIn$outboundSchema),
3522
- z.lazy(() => AndNin$outboundSchema),
3523
- z.lazy(() => AndExists$outboundSchema),
3524
- ]);
3525
-
3526
- export function knowledgeFilterAndToJSON(
3527
- knowledgeFilterAnd: KnowledgeFilterAnd,
3528
- ): string {
3529
- return JSON.stringify(
3530
- KnowledgeFilterAnd$outboundSchema.parse(knowledgeFilterAnd),
3531
- );
3532
- }
3533
-
3534
- /** @internal */
3535
- export type And$Outbound = {
3536
- and: Array<
3537
- {
3538
- [k: string]:
3539
- | AndEq$Outbound
3540
- | AndNe$Outbound
3541
- | AndGt$Outbound
3542
- | AndGte$Outbound
3543
- | AndLt$Outbound
3544
- | AndLte$Outbound
3545
- | AndIn$Outbound
3546
- | AndNin$Outbound
3547
- | AndExists$Outbound;
3548
- }
3549
- >;
3550
- };
3551
-
3552
- /** @internal */
3553
- export const And$outboundSchema: z.ZodType<And$Outbound, z.ZodTypeDef, And> = z
3554
- .object({
3555
- and: z.array(
3556
- z.record(z.union([
3557
- z.lazy(() => AndEq$outboundSchema),
3558
- z.lazy(() =>
3559
- AndNe$outboundSchema
3560
- ),
3561
- z.lazy(() => AndGt$outboundSchema),
3562
- z.lazy(() => AndGte$outboundSchema),
3563
- z.lazy(() => AndLt$outboundSchema),
3564
- z.lazy(() => AndLte$outboundSchema),
3565
- z.lazy(() => AndIn$outboundSchema),
3566
- z.lazy(() => AndNin$outboundSchema),
3567
- z.lazy(() => AndExists$outboundSchema),
3568
- ])),
3569
- ),
3570
- });
3571
-
3572
- export function andToJSON(and: And): string {
3573
- return JSON.stringify(And$outboundSchema.parse(and));
3574
- }
3575
-
3576
- /** @internal */
3577
- export type Exists$Outbound = {
3578
- exists: boolean;
3579
- };
3580
-
3581
- /** @internal */
3582
- export const Exists$outboundSchema: z.ZodType<
3583
- Exists$Outbound,
3584
- z.ZodTypeDef,
3585
- Exists
3586
- > = z.object({
3587
- exists: z.boolean(),
3588
- });
3589
-
3590
- export function existsToJSON(exists: Exists): string {
3591
- return JSON.stringify(Exists$outboundSchema.parse(exists));
3592
- }
3593
-
3594
- /** @internal */
3595
- export type OneNin$Outbound = string | number | boolean;
3596
-
3597
- /** @internal */
3598
- export const OneNin$outboundSchema: z.ZodType<
3599
- OneNin$Outbound,
3600
- z.ZodTypeDef,
3601
- OneNin
3602
- > = z.union([z.string(), z.number(), z.boolean()]);
3603
-
3604
- export function oneNinToJSON(oneNin: OneNin): string {
3605
- return JSON.stringify(OneNin$outboundSchema.parse(oneNin));
3606
- }
3607
-
3608
- /** @internal */
3609
- export type Nin$Outbound = {
3610
- nin: Array<string | number | boolean>;
3611
- };
3612
-
3613
- /** @internal */
3614
- export const Nin$outboundSchema: z.ZodType<Nin$Outbound, z.ZodTypeDef, Nin> = z
3615
- .object({
3616
- nin: z.array(z.union([z.string(), z.number(), z.boolean()])),
3617
- });
3618
-
3619
- export function ninToJSON(nin: Nin): string {
3620
- return JSON.stringify(Nin$outboundSchema.parse(nin));
3621
- }
3622
-
3623
- /** @internal */
3624
- export type OneIn$Outbound = string | number | boolean;
3625
-
3626
- /** @internal */
3627
- export const OneIn$outboundSchema: z.ZodType<
3628
- OneIn$Outbound,
3629
- z.ZodTypeDef,
3630
- OneIn
3631
- > = z.union([z.string(), z.number(), z.boolean()]);
3632
-
3633
- export function oneInToJSON(oneIn: OneIn): string {
3634
- return JSON.stringify(OneIn$outboundSchema.parse(oneIn));
3635
- }
3636
-
3637
- /** @internal */
3638
- export type In$Outbound = {
3639
- in: Array<string | number | boolean>;
3640
- };
3641
-
3642
- /** @internal */
3643
- export const In$outboundSchema: z.ZodType<In$Outbound, z.ZodTypeDef, In> = z
3644
- .object({
3645
- in: z.array(z.union([z.string(), z.number(), z.boolean()])),
3646
- });
3647
-
3648
- export function inToJSON(value: In): string {
3649
- return JSON.stringify(In$outboundSchema.parse(value));
3650
- }
3651
-
3652
- /** @internal */
3653
- export type Lte$Outbound = {
3654
- lte: number;
3655
- };
3656
-
3657
- /** @internal */
3658
- export const Lte$outboundSchema: z.ZodType<Lte$Outbound, z.ZodTypeDef, Lte> = z
3659
- .object({
3660
- lte: z.number(),
3661
- });
3662
-
3663
- export function lteToJSON(lte: Lte): string {
3664
- return JSON.stringify(Lte$outboundSchema.parse(lte));
3665
- }
3666
-
3667
- /** @internal */
3668
- export type Lt$Outbound = {
3669
- lt: number;
3670
- };
3671
-
3672
- /** @internal */
3673
- export const Lt$outboundSchema: z.ZodType<Lt$Outbound, z.ZodTypeDef, Lt> = z
3674
- .object({
3675
- lt: z.number(),
3676
- });
3677
-
3678
- export function ltToJSON(lt: Lt): string {
3679
- return JSON.stringify(Lt$outboundSchema.parse(lt));
3680
- }
3681
-
3682
- /** @internal */
3683
- export type Gte$Outbound = {
3684
- gte: number;
3685
- };
3686
-
3687
- /** @internal */
3688
- export const Gte$outboundSchema: z.ZodType<Gte$Outbound, z.ZodTypeDef, Gte> = z
3689
- .object({
3690
- gte: z.number(),
3691
- });
3692
-
3693
- export function gteToJSON(gte: Gte): string {
3694
- return JSON.stringify(Gte$outboundSchema.parse(gte));
3695
- }
3696
-
3697
- /** @internal */
3698
- export type Gt$Outbound = {
3699
- gt: number;
3700
- };
3701
-
3702
- /** @internal */
3703
- export const Gt$outboundSchema: z.ZodType<Gt$Outbound, z.ZodTypeDef, Gt> = z
3704
- .object({
3705
- gt: z.number(),
3706
- });
3707
-
3708
- export function gtToJSON(gt: Gt): string {
3709
- return JSON.stringify(Gt$outboundSchema.parse(gt));
3710
- }
3711
-
3712
- /** @internal */
3713
- export type OneNe$Outbound = string | number | boolean;
3714
-
3715
- /** @internal */
3716
- export const OneNe$outboundSchema: z.ZodType<
3717
- OneNe$Outbound,
3718
- z.ZodTypeDef,
3719
- OneNe
3720
- > = z.union([z.string(), z.number(), z.boolean()]);
3721
-
3722
- export function oneNeToJSON(oneNe: OneNe): string {
3723
- return JSON.stringify(OneNe$outboundSchema.parse(oneNe));
3724
- }
3725
-
3726
- /** @internal */
3727
- export type Ne$Outbound = {
3728
- ne: string | number | boolean;
3729
- };
3730
-
3731
- /** @internal */
3732
- export const Ne$outboundSchema: z.ZodType<Ne$Outbound, z.ZodTypeDef, Ne> = z
3733
- .object({
3734
- ne: z.union([z.string(), z.number(), z.boolean()]),
3735
- });
3736
-
3737
- export function neToJSON(ne: Ne): string {
3738
- return JSON.stringify(Ne$outboundSchema.parse(ne));
3739
- }
3740
-
3741
- /** @internal */
3742
- export type OneEq$Outbound = string | number | boolean;
3743
-
3744
- /** @internal */
3745
- export const OneEq$outboundSchema: z.ZodType<
3746
- OneEq$Outbound,
3747
- z.ZodTypeDef,
3748
- OneEq
3749
- > = z.union([z.string(), z.number(), z.boolean()]);
3750
-
3751
- export function oneEqToJSON(oneEq: OneEq): string {
3752
- return JSON.stringify(OneEq$outboundSchema.parse(oneEq));
3753
- }
3754
-
3755
- /** @internal */
3756
- export type Eq$Outbound = {
3757
- eq: string | number | boolean;
3758
- };
3759
-
3760
- /** @internal */
3761
- export const Eq$outboundSchema: z.ZodType<Eq$Outbound, z.ZodTypeDef, Eq> = z
3762
- .object({
3763
- eq: z.union([z.string(), z.number(), z.boolean()]),
3764
- });
3765
-
3766
- export function eqToJSON(eq: Eq): string {
3767
- return JSON.stringify(Eq$outboundSchema.parse(eq));
3768
- }
3769
-
3770
- /** @internal */
3771
- export type KnowledgeFilter1$Outbound =
3772
- | Eq$Outbound
3773
- | Ne$Outbound
3774
- | Gt$Outbound
3775
- | Gte$Outbound
3776
- | Lt$Outbound
3777
- | Lte$Outbound
3778
- | In$Outbound
3779
- | Nin$Outbound
3780
- | Exists$Outbound;
3781
-
3782
- /** @internal */
3783
- export const KnowledgeFilter1$outboundSchema: z.ZodType<
3784
- KnowledgeFilter1$Outbound,
3785
- z.ZodTypeDef,
3786
- KnowledgeFilter1
3787
- > = z.union([
3788
- z.lazy(() => Eq$outboundSchema),
3789
- z.lazy(() => Ne$outboundSchema),
3790
- z.lazy(() => Gt$outboundSchema),
3791
- z.lazy(() => Gte$outboundSchema),
3792
- z.lazy(() => Lt$outboundSchema),
3793
- z.lazy(() => Lte$outboundSchema),
3794
- z.lazy(() => In$outboundSchema),
3795
- z.lazy(() => Nin$outboundSchema),
3796
- z.lazy(() => Exists$outboundSchema),
3797
- ]);
3798
-
3799
- export function knowledgeFilter1ToJSON(
3800
- knowledgeFilter1: KnowledgeFilter1,
3801
- ): string {
3802
- return JSON.stringify(
3803
- KnowledgeFilter1$outboundSchema.parse(knowledgeFilter1),
3804
- );
3805
- }
3806
-
3807
- /** @internal */
3808
- export type KnowledgeFilter$Outbound = And$Outbound | Or$Outbound | {
3809
- [k: string]:
3810
- | Eq$Outbound
3811
- | Ne$Outbound
3812
- | Gt$Outbound
3813
- | Gte$Outbound
3814
- | Lt$Outbound
3815
- | Lte$Outbound
3816
- | In$Outbound
3817
- | Nin$Outbound
3818
- | Exists$Outbound;
3819
- };
3820
-
3821
- /** @internal */
3822
- export const KnowledgeFilter$outboundSchema: z.ZodType<
3823
- KnowledgeFilter$Outbound,
3824
- z.ZodTypeDef,
3825
- KnowledgeFilter
3826
- > = z.union([
3827
- z.lazy(() => And$outboundSchema),
3828
- z.lazy(() => Or$outboundSchema),
3829
- z.record(z.union([
3830
- z.lazy(() => Eq$outboundSchema),
3831
- z.lazy(() => Ne$outboundSchema),
3832
- z.lazy(() => Gt$outboundSchema),
3833
- z.lazy(() => Gte$outboundSchema),
3834
- z.lazy(() => Lt$outboundSchema),
3835
- z.lazy(() => Lte$outboundSchema),
3836
- z.lazy(() => In$outboundSchema),
3837
- z.lazy(() => Nin$outboundSchema),
3838
- z.lazy(() => Exists$outboundSchema),
3839
- ])),
3840
- ]);
3841
-
3842
- export function knowledgeFilterToJSON(
3843
- knowledgeFilter: KnowledgeFilter,
3844
- ): string {
3845
- return JSON.stringify(KnowledgeFilter$outboundSchema.parse(knowledgeFilter));
3846
- }
3847
-
3848
- /** @internal */
3849
- export type DeploymentGetConfigRequestBody$Outbound = {
3850
- key: string;
3851
- inputs?: { [k: string]: any } | undefined;
3852
- context?: { [k: string]: any } | undefined;
3853
- prefix_messages?:
3854
- | Array<
3855
- | SystemMessage$Outbound
3856
- | DeveloperMessage$Outbound
3857
- | UserMessage$Outbound
3858
- | AssistantMessage$Outbound
3859
- | ToolMessage$Outbound
3860
- >
3861
- | undefined;
3862
- messages?:
3863
- | Array<
3864
- | MessagesSystemMessage$Outbound
3865
- | MessagesDeveloperMessage$Outbound
3866
- | MessagesUserMessage$Outbound
3867
- | MessagesAssistantMessage$Outbound
3868
- | MessagesToolMessage$Outbound
3869
- >
3870
- | undefined;
3871
- identity?: components.PublicIdentity$Outbound | undefined;
3872
- file_ids?: Array<string> | undefined;
3873
- metadata?: { [k: string]: any } | undefined;
3874
- extra_params?: { [k: string]: any } | undefined;
3875
- documents?: Array<Documents$Outbound> | undefined;
3876
- invoke_options?: InvokeOptions$Outbound | undefined;
3877
- thread?: Thread$Outbound | undefined;
3878
- knowledge_filter?: And$Outbound | Or$Outbound | {
3879
- [k: string]:
3880
- | Eq$Outbound
3881
- | Ne$Outbound
3882
- | Gt$Outbound
3883
- | Gte$Outbound
3884
- | Lt$Outbound
3885
- | Lte$Outbound
3886
- | In$Outbound
3887
- | Nin$Outbound
3888
- | Exists$Outbound;
3889
- } | undefined;
3890
- };
3891
-
3892
- /** @internal */
3893
- export const DeploymentGetConfigRequestBody$outboundSchema: z.ZodType<
3894
- DeploymentGetConfigRequestBody$Outbound,
3895
- z.ZodTypeDef,
3896
- DeploymentGetConfigRequestBody
3897
- > = z.object({
3898
- key: z.string(),
3899
- inputs: z.record(z.any()).optional(),
3900
- context: z.record(z.any()).optional(),
3901
- prefixMessages: z.array(
3902
- z.union([
3903
- z.lazy(() => SystemMessage$outboundSchema),
3904
- z.lazy(() => DeveloperMessage$outboundSchema),
3905
- z.lazy(() => UserMessage$outboundSchema),
3906
- z.lazy(() => AssistantMessage$outboundSchema),
3907
- z.lazy(() => ToolMessage$outboundSchema),
3908
- ]),
3909
- ).optional(),
3910
- messages: z.array(
3911
- z.union([
3912
- z.lazy(() => MessagesSystemMessage$outboundSchema),
3913
- z.lazy(() => MessagesDeveloperMessage$outboundSchema),
3914
- z.lazy(() => MessagesUserMessage$outboundSchema),
3915
- z.lazy(() => MessagesAssistantMessage$outboundSchema),
3916
- z.lazy(() => MessagesToolMessage$outboundSchema),
3917
- ]),
3918
- ).optional(),
3919
- identity: components.PublicIdentity$outboundSchema.optional(),
3920
- fileIds: z.array(z.string()).optional(),
3921
- metadata: z.record(z.any()).optional(),
3922
- extraParams: z.record(z.any()).optional(),
3923
- documents: z.array(z.lazy(() => Documents$outboundSchema)).optional(),
3924
- invokeOptions: z.lazy(() => InvokeOptions$outboundSchema).optional(),
3925
- thread: z.lazy(() => Thread$outboundSchema).optional(),
3926
- knowledgeFilter: z.union([
3927
- z.lazy(() => And$outboundSchema),
3928
- z.lazy(() => Or$outboundSchema),
3929
- z.record(z.union([
3930
- z.lazy(() => Eq$outboundSchema),
3931
- z.lazy(() => Ne$outboundSchema),
3932
- z.lazy(() => Gt$outboundSchema),
3933
- z.lazy(() => Gte$outboundSchema),
3934
- z.lazy(() => Lt$outboundSchema),
3935
- z.lazy(() => Lte$outboundSchema),
3936
- z.lazy(() => In$outboundSchema),
3937
- z.lazy(() => Nin$outboundSchema),
3938
- z.lazy(() => Exists$outboundSchema),
3939
- ])),
3940
- ]).optional(),
3941
- }).transform((v) => {
3942
- return remap$(v, {
3943
- prefixMessages: "prefix_messages",
3944
- fileIds: "file_ids",
3945
- extraParams: "extra_params",
3946
- invokeOptions: "invoke_options",
3947
- knowledgeFilter: "knowledge_filter",
3948
- });
3949
- });
3950
-
3951
- export function deploymentGetConfigRequestBodyToJSON(
3952
- deploymentGetConfigRequestBody: DeploymentGetConfigRequestBody,
3953
- ): string {
3954
- return JSON.stringify(
3955
- DeploymentGetConfigRequestBody$outboundSchema.parse(
3956
- deploymentGetConfigRequestBody,
3957
- ),
3958
- );
3959
- }
3960
-
3961
- /** @internal */
3962
- export const DeploymentGetConfigType$inboundSchema: z.ZodNativeEnum<
3963
- typeof DeploymentGetConfigType
3964
- > = z.nativeEnum(DeploymentGetConfigType);
3965
-
3966
- /** @internal */
3967
- export const DeploymentGetConfigRole$inboundSchema: z.ZodNativeEnum<
3968
- typeof DeploymentGetConfigRole
3969
- > = z.nativeEnum(DeploymentGetConfigRole);
3970
-
3971
- /** @internal */
3972
- export const DeploymentGetConfig2File$inboundSchema: z.ZodType<
3973
- DeploymentGetConfig2File,
3974
- z.ZodTypeDef,
3975
- unknown
3976
- > = z.object({
3977
- file_data: z.string().optional(),
3978
- uri: z.string().optional(),
3979
- mimeType: z.string().optional(),
3980
- filename: z.string().optional(),
3981
- }).transform((v) => {
3982
- return remap$(v, {
3983
- "file_data": "fileData",
3984
- });
3985
- });
3986
-
3987
- export function deploymentGetConfig2FileFromJSON(
3988
- jsonString: string,
3989
- ): SafeParseResult<DeploymentGetConfig2File, SDKValidationError> {
3990
- return safeParse(
3991
- jsonString,
3992
- (x) => DeploymentGetConfig2File$inboundSchema.parse(JSON.parse(x)),
3993
- `Failed to parse 'DeploymentGetConfig2File' from JSON`,
3994
- );
3995
- }
3996
-
3997
- /** @internal */
3998
- export const Two3$inboundSchema: z.ZodType<Two3, z.ZodTypeDef, unknown> = z
3999
- .object({
4000
- type: z.literal("file"),
4001
- file: z.lazy(() => DeploymentGetConfig2File$inboundSchema),
4002
- });
4003
-
4004
- export function two3FromJSON(
4005
- jsonString: string,
4006
- ): SafeParseResult<Two3, SDKValidationError> {
4007
- return safeParse(
4008
- jsonString,
4009
- (x) => Two3$inboundSchema.parse(JSON.parse(x)),
4010
- `Failed to parse 'Two3' from JSON`,
4011
- );
4012
- }
4013
-
4014
- /** @internal */
4015
- export const TwoImageUrl$inboundSchema: z.ZodType<
4016
- TwoImageUrl,
4017
- z.ZodTypeDef,
4018
- unknown
4019
- > = z.object({
4020
- id: z.string().optional(),
4021
- url: z.string(),
4022
- detail: z.string().optional(),
4023
- });
4024
-
4025
- export function twoImageUrlFromJSON(
4026
- jsonString: string,
4027
- ): SafeParseResult<TwoImageUrl, SDKValidationError> {
4028
- return safeParse(
4029
- jsonString,
4030
- (x) => TwoImageUrl$inboundSchema.parse(JSON.parse(x)),
4031
- `Failed to parse 'TwoImageUrl' from JSON`,
4032
- );
4033
- }
4034
-
4035
- /** @internal */
4036
- export const DeploymentGetConfig22$inboundSchema: z.ZodType<
4037
- DeploymentGetConfig22,
4038
- z.ZodTypeDef,
4039
- unknown
4040
- > = z.object({
4041
- type: z.literal("image_url"),
4042
- image_url: z.lazy(() => TwoImageUrl$inboundSchema),
4043
- }).transform((v) => {
4044
- return remap$(v, {
4045
- "image_url": "imageUrl",
4046
- });
4047
- });
4048
-
4049
- export function deploymentGetConfig22FromJSON(
4050
- jsonString: string,
4051
- ): SafeParseResult<DeploymentGetConfig22, SDKValidationError> {
4052
- return safeParse(
4053
- jsonString,
4054
- (x) => DeploymentGetConfig22$inboundSchema.parse(JSON.parse(x)),
4055
- `Failed to parse 'DeploymentGetConfig22' from JSON`,
4056
- );
4057
- }
4058
-
4059
- /** @internal */
4060
- export const Two1$inboundSchema: z.ZodType<Two1, z.ZodTypeDef, unknown> = z
4061
- .object({
4062
- type: z.literal("text"),
4063
- text: z.string(),
4064
- });
4065
-
4066
- export function two1FromJSON(
4067
- jsonString: string,
4068
- ): SafeParseResult<Two1, SDKValidationError> {
4069
- return safeParse(
4070
- jsonString,
4071
- (x) => Two1$inboundSchema.parse(JSON.parse(x)),
4072
- `Failed to parse 'Two1' from JSON`,
4073
- );
4074
- }
4075
-
4076
- /** @internal */
4077
- export const DeploymentGetConfigContentDeploymentsResponse2$inboundSchema:
4078
- z.ZodType<
4079
- DeploymentGetConfigContentDeploymentsResponse2,
4080
- z.ZodTypeDef,
4081
- unknown
4082
- > = z.union([
4083
- z.lazy(() => Two1$inboundSchema),
4084
- z.lazy(() => DeploymentGetConfig22$inboundSchema),
4085
- z.lazy(() => Two3$inboundSchema),
4086
- ]);
4087
-
4088
- export function deploymentGetConfigContentDeploymentsResponse2FromJSON(
4089
- jsonString: string,
4090
- ): SafeParseResult<
4091
- DeploymentGetConfigContentDeploymentsResponse2,
4092
- SDKValidationError
4093
- > {
4094
- return safeParse(
4095
- jsonString,
4096
- (x) =>
4097
- DeploymentGetConfigContentDeploymentsResponse2$inboundSchema.parse(
4098
- JSON.parse(x),
4099
- ),
4100
- `Failed to parse 'DeploymentGetConfigContentDeploymentsResponse2' from JSON`,
4101
- );
4102
- }
4103
-
4104
- /** @internal */
4105
- export const DeploymentGetConfigContent$inboundSchema: z.ZodType<
4106
- DeploymentGetConfigContent,
4107
- z.ZodTypeDef,
4108
- unknown
4109
- > = z.union([
4110
- z.string(),
4111
- z.array(z.union([
4112
- z.lazy(() => Two1$inboundSchema),
4113
- z.lazy(() => DeploymentGetConfig22$inboundSchema),
4114
- z.lazy(() => Two3$inboundSchema),
4115
- ])),
4116
- ]);
4117
-
4118
- export function deploymentGetConfigContentFromJSON(
4119
- jsonString: string,
4120
- ): SafeParseResult<DeploymentGetConfigContent, SDKValidationError> {
4121
- return safeParse(
4122
- jsonString,
4123
- (x) => DeploymentGetConfigContent$inboundSchema.parse(JSON.parse(x)),
4124
- `Failed to parse 'DeploymentGetConfigContent' from JSON`,
4125
- );
4126
- }
4127
-
4128
- /** @internal */
4129
- export const DeploymentGetConfigDeploymentsResponseType$inboundSchema:
4130
- z.ZodNativeEnum<typeof DeploymentGetConfigDeploymentsResponseType> = z
4131
- .nativeEnum(DeploymentGetConfigDeploymentsResponseType);
4132
-
4133
- /** @internal */
4134
- export const DeploymentGetConfigDeploymentsFunction$inboundSchema: z.ZodType<
4135
- DeploymentGetConfigDeploymentsFunction,
4136
- z.ZodTypeDef,
4137
- unknown
4138
- > = z.object({
4139
- name: z.string(),
4140
- arguments: z.string(),
4141
- });
4142
-
4143
- export function deploymentGetConfigDeploymentsFunctionFromJSON(
4144
- jsonString: string,
4145
- ): SafeParseResult<DeploymentGetConfigDeploymentsFunction, SDKValidationError> {
4146
- return safeParse(
4147
- jsonString,
4148
- (x) =>
4149
- DeploymentGetConfigDeploymentsFunction$inboundSchema.parse(JSON.parse(x)),
4150
- `Failed to parse 'DeploymentGetConfigDeploymentsFunction' from JSON`,
4151
- );
4152
- }
4153
-
4154
- /** @internal */
4155
- export const DeploymentGetConfigToolCalls$inboundSchema: z.ZodType<
4156
- DeploymentGetConfigToolCalls,
4157
- z.ZodTypeDef,
4158
- unknown
4159
- > = z.object({
4160
- id: z.string().optional(),
4161
- index: z.number().optional(),
4162
- type: DeploymentGetConfigDeploymentsResponseType$inboundSchema,
4163
- function: z.lazy(() => DeploymentGetConfigDeploymentsFunction$inboundSchema),
4164
- });
4165
-
4166
- export function deploymentGetConfigToolCallsFromJSON(
4167
- jsonString: string,
4168
- ): SafeParseResult<DeploymentGetConfigToolCalls, SDKValidationError> {
4169
- return safeParse(
4170
- jsonString,
4171
- (x) => DeploymentGetConfigToolCalls$inboundSchema.parse(JSON.parse(x)),
4172
- `Failed to parse 'DeploymentGetConfigToolCalls' from JSON`,
4173
- );
4174
- }
4175
-
4176
- /** @internal */
4177
- export const DeploymentGetConfigDeploymentsMessages$inboundSchema: z.ZodType<
4178
- DeploymentGetConfigDeploymentsMessages,
4179
- z.ZodTypeDef,
4180
- unknown
4181
- > = z.object({
4182
- role: DeploymentGetConfigRole$inboundSchema,
4183
- content: z.nullable(
4184
- z.union([
4185
- z.string(),
4186
- z.array(z.union([
4187
- z.lazy(() => Two1$inboundSchema),
4188
- z.lazy(() => DeploymentGetConfig22$inboundSchema),
4189
- z.lazy(() => Two3$inboundSchema),
4190
- ])),
4191
- ]),
4192
- ),
4193
- tool_calls: z.array(z.lazy(() => DeploymentGetConfigToolCalls$inboundSchema))
4194
- .optional(),
4195
- tool_call_id: z.nullable(z.string()).optional(),
4196
- }).transform((v) => {
4197
- return remap$(v, {
4198
- "tool_calls": "toolCalls",
4199
- "tool_call_id": "toolCallId",
4200
- });
4201
- });
4202
-
4203
- export function deploymentGetConfigDeploymentsMessagesFromJSON(
4204
- jsonString: string,
4205
- ): SafeParseResult<DeploymentGetConfigDeploymentsMessages, SDKValidationError> {
4206
- return safeParse(
4207
- jsonString,
4208
- (x) =>
4209
- DeploymentGetConfigDeploymentsMessages$inboundSchema.parse(JSON.parse(x)),
4210
- `Failed to parse 'DeploymentGetConfigDeploymentsMessages' from JSON`,
4211
- );
4212
- }
4213
-
4214
- /** @internal */
4215
- export const DeploymentGetConfigFormat$inboundSchema: z.ZodNativeEnum<
4216
- typeof DeploymentGetConfigFormat
4217
- > = z.nativeEnum(DeploymentGetConfigFormat);
4218
-
4219
- /** @internal */
4220
- export const ResponseFormat6$inboundSchema: z.ZodNativeEnum<
4221
- typeof ResponseFormat6
4222
- > = z.nativeEnum(ResponseFormat6);
4223
-
4224
- /** @internal */
4225
- export const ResponseFormat5$inboundSchema: z.ZodNativeEnum<
4226
- typeof ResponseFormat5
4227
- > = z.nativeEnum(ResponseFormat5);
4228
-
4229
- /** @internal */
4230
- export const ResponseFormat4$inboundSchema: z.ZodNativeEnum<
4231
- typeof ResponseFormat4
4232
- > = z.nativeEnum(ResponseFormat4);
4233
-
4234
- /** @internal */
4235
- export const DeploymentGetConfigResponseFormatDeploymentsType$inboundSchema:
4236
- z.ZodNativeEnum<typeof DeploymentGetConfigResponseFormatDeploymentsType> = z
4237
- .nativeEnum(DeploymentGetConfigResponseFormatDeploymentsType);
4238
-
4239
- /** @internal */
4240
- export const ResponseFormat3$inboundSchema: z.ZodType<
4241
- ResponseFormat3,
4242
- z.ZodTypeDef,
4243
- unknown
4244
- > = z.object({
4245
- type: DeploymentGetConfigResponseFormatDeploymentsType$inboundSchema,
4246
- });
4247
-
4248
- export function responseFormat3FromJSON(
4249
- jsonString: string,
4250
- ): SafeParseResult<ResponseFormat3, SDKValidationError> {
4251
- return safeParse(
4252
- jsonString,
4253
- (x) => ResponseFormat3$inboundSchema.parse(JSON.parse(x)),
4254
- `Failed to parse 'ResponseFormat3' from JSON`,
4255
- );
4256
- }
4257
-
4258
- /** @internal */
4259
- export const DeploymentGetConfigResponseFormatType$inboundSchema:
4260
- z.ZodNativeEnum<typeof DeploymentGetConfigResponseFormatType> = z.nativeEnum(
4261
- DeploymentGetConfigResponseFormatType,
4262
- );
4263
-
4264
- /** @internal */
4265
- export const ResponseFormat2$inboundSchema: z.ZodType<
4266
- ResponseFormat2,
4267
- z.ZodTypeDef,
4268
- unknown
4269
- > = z.object({
4270
- type: DeploymentGetConfigResponseFormatType$inboundSchema,
4271
- });
4272
-
4273
- export function responseFormat2FromJSON(
4274
- jsonString: string,
4275
- ): SafeParseResult<ResponseFormat2, SDKValidationError> {
4276
- return safeParse(
4277
- jsonString,
4278
- (x) => ResponseFormat2$inboundSchema.parse(JSON.parse(x)),
4279
- `Failed to parse 'ResponseFormat2' from JSON`,
4280
- );
4281
- }
4282
-
4283
- /** @internal */
4284
- export const DeploymentGetConfigResponseFormatDeploymentsResponseType$inboundSchema:
4285
- z.ZodNativeEnum<
4286
- typeof DeploymentGetConfigResponseFormatDeploymentsResponseType
4287
- > = z.nativeEnum(DeploymentGetConfigResponseFormatDeploymentsResponseType);
4288
-
4289
- /** @internal */
4290
- export const DeploymentGetConfigResponseFormatJsonSchema$inboundSchema:
4291
- z.ZodType<
4292
- DeploymentGetConfigResponseFormatJsonSchema,
4293
- z.ZodTypeDef,
4294
- unknown
4295
- > = z.object({
4296
- name: z.string(),
4297
- description: z.string().optional(),
4298
- strict: z.boolean().optional(),
4299
- schema: z.record(z.any()),
4300
- });
4301
-
4302
- export function deploymentGetConfigResponseFormatJsonSchemaFromJSON(
4303
- jsonString: string,
4304
- ): SafeParseResult<
4305
- DeploymentGetConfigResponseFormatJsonSchema,
4306
- SDKValidationError
4307
- > {
4308
- return safeParse(
4309
- jsonString,
4310
- (x) =>
4311
- DeploymentGetConfigResponseFormatJsonSchema$inboundSchema.parse(
4312
- JSON.parse(x),
4313
- ),
4314
- `Failed to parse 'DeploymentGetConfigResponseFormatJsonSchema' from JSON`,
4315
- );
4316
- }
4317
-
4318
- /** @internal */
4319
- export const ResponseFormat1$inboundSchema: z.ZodType<
4320
- ResponseFormat1,
4321
- z.ZodTypeDef,
4322
- unknown
4323
- > = z.object({
4324
- type: DeploymentGetConfigResponseFormatDeploymentsResponseType$inboundSchema,
4325
- display_name: z.string().optional(),
4326
- json_schema: z.lazy(() =>
4327
- DeploymentGetConfigResponseFormatJsonSchema$inboundSchema
4328
- ),
4329
- }).transform((v) => {
4330
- return remap$(v, {
4331
- "display_name": "displayName",
4332
- "json_schema": "jsonSchema",
4333
- });
4334
- });
4335
-
4336
- export function responseFormat1FromJSON(
4337
- jsonString: string,
4338
- ): SafeParseResult<ResponseFormat1, SDKValidationError> {
4339
- return safeParse(
4340
- jsonString,
4341
- (x) => ResponseFormat1$inboundSchema.parse(JSON.parse(x)),
4342
- `Failed to parse 'ResponseFormat1' from JSON`,
4343
- );
4344
- }
4345
-
4346
- /** @internal */
4347
- export const DeploymentGetConfigResponseFormat$inboundSchema: z.ZodType<
4348
- DeploymentGetConfigResponseFormat,
4349
- z.ZodTypeDef,
4350
- unknown
4351
- > = z.union([
4352
- z.lazy(() => ResponseFormat1$inboundSchema),
4353
- z.lazy(() => ResponseFormat2$inboundSchema),
4354
- z.lazy(() => ResponseFormat3$inboundSchema),
4355
- ResponseFormat4$inboundSchema,
4356
- ResponseFormat5$inboundSchema,
4357
- ResponseFormat6$inboundSchema,
4358
- ]);
4359
-
4360
- export function deploymentGetConfigResponseFormatFromJSON(
4361
- jsonString: string,
4362
- ): SafeParseResult<DeploymentGetConfigResponseFormat, SDKValidationError> {
4363
- return safeParse(
4364
- jsonString,
4365
- (x) => DeploymentGetConfigResponseFormat$inboundSchema.parse(JSON.parse(x)),
4366
- `Failed to parse 'DeploymentGetConfigResponseFormat' from JSON`,
4367
- );
4368
- }
4369
-
4370
- /** @internal */
4371
- export const PhotoRealVersion$inboundSchema: z.ZodNativeEnum<
4372
- typeof PhotoRealVersion
4373
- > = z.nativeEnum(PhotoRealVersion);
4374
-
4375
- /** @internal */
4376
- export const DeploymentGetConfigEncodingFormat$inboundSchema: z.ZodNativeEnum<
4377
- typeof DeploymentGetConfigEncodingFormat
4378
- > = z.nativeEnum(DeploymentGetConfigEncodingFormat);
4379
-
4380
- /** @internal */
4381
- export const DeploymentGetConfigReasoningEffort$inboundSchema: z.ZodNativeEnum<
4382
- typeof DeploymentGetConfigReasoningEffort
4383
- > = z.nativeEnum(DeploymentGetConfigReasoningEffort);
4384
-
4385
- /** @internal */
4386
- export const DeploymentGetConfigVerbosity$inboundSchema: z.ZodNativeEnum<
4387
- typeof DeploymentGetConfigVerbosity
4388
- > = z.nativeEnum(DeploymentGetConfigVerbosity);
4389
-
4390
- /** @internal */
4391
- export const ThinkingLevel$inboundSchema: z.ZodNativeEnum<
4392
- typeof ThinkingLevel
4393
- > = z.nativeEnum(ThinkingLevel);
4394
-
4395
- /** @internal */
4396
- export const DeploymentGetConfigParameters$inboundSchema: z.ZodType<
4397
- DeploymentGetConfigParameters,
4398
- z.ZodTypeDef,
4399
- unknown
4400
- > = z.object({
4401
- temperature: z.number().optional(),
4402
- maxTokens: z.number().optional(),
4403
- topK: z.number().optional(),
4404
- topP: z.number().optional(),
4405
- frequencyPenalty: z.number().optional(),
4406
- presencePenalty: z.number().optional(),
4407
- numImages: z.number().optional(),
4408
- seed: z.number().optional(),
4409
- format: DeploymentGetConfigFormat$inboundSchema.optional(),
4410
- dimensions: z.string().optional(),
4411
- quality: z.string().optional(),
4412
- style: z.string().optional(),
4413
- responseFormat: z.nullable(
4414
- z.union([
4415
- z.lazy(() => ResponseFormat1$inboundSchema),
4416
- z.lazy(() => ResponseFormat2$inboundSchema),
4417
- z.lazy(() => ResponseFormat3$inboundSchema),
4418
- ResponseFormat4$inboundSchema,
4419
- ResponseFormat5$inboundSchema,
4420
- ResponseFormat6$inboundSchema,
4421
- ]),
4422
- ).optional(),
4423
- photoRealVersion: PhotoRealVersion$inboundSchema.optional(),
4424
- encoding_format: DeploymentGetConfigEncodingFormat$inboundSchema.optional(),
4425
- reasoningEffort: DeploymentGetConfigReasoningEffort$inboundSchema.optional(),
4426
- budgetTokens: z.number().optional(),
4427
- verbosity: DeploymentGetConfigVerbosity$inboundSchema.optional(),
4428
- thinkingLevel: ThinkingLevel$inboundSchema.optional(),
4429
- }).transform((v) => {
4430
- return remap$(v, {
4431
- "encoding_format": "encodingFormat",
4432
- });
4433
- });
4434
-
4435
- export function deploymentGetConfigParametersFromJSON(
4436
- jsonString: string,
4437
- ): SafeParseResult<DeploymentGetConfigParameters, SDKValidationError> {
4438
- return safeParse(
4439
- jsonString,
4440
- (x) => DeploymentGetConfigParameters$inboundSchema.parse(JSON.parse(x)),
4441
- `Failed to parse 'DeploymentGetConfigParameters' from JSON`,
4442
- );
4443
- }
4444
-
4445
- /** @internal */
4446
- export const DeploymentGetConfigDeploymentsType$inboundSchema: z.ZodNativeEnum<
4447
- typeof DeploymentGetConfigDeploymentsType
4448
- > = z.nativeEnum(DeploymentGetConfigDeploymentsType);
4449
-
4450
- /** @internal */
4451
- export const DeploymentGetConfigFunction$inboundSchema: z.ZodType<
4452
- DeploymentGetConfigFunction,
4453
- z.ZodTypeDef,
4454
- unknown
4455
- > = z.object({
4456
- name: z.string(),
4457
- description: z.string().optional(),
4458
- parameters: z.record(z.any()).optional(),
4459
- });
4460
-
4461
- export function deploymentGetConfigFunctionFromJSON(
4462
- jsonString: string,
4463
- ): SafeParseResult<DeploymentGetConfigFunction, SDKValidationError> {
4464
- return safeParse(
4465
- jsonString,
4466
- (x) => DeploymentGetConfigFunction$inboundSchema.parse(JSON.parse(x)),
4467
- `Failed to parse 'DeploymentGetConfigFunction' from JSON`,
4468
- );
4469
- }
4470
-
4471
- /** @internal */
4472
- export const DeploymentGetConfigTools$inboundSchema: z.ZodType<
4473
- DeploymentGetConfigTools,
4474
- z.ZodTypeDef,
4475
- unknown
4476
- > = z.object({
4477
- type: DeploymentGetConfigDeploymentsType$inboundSchema,
4478
- function: z.lazy(() => DeploymentGetConfigFunction$inboundSchema),
4479
- });
4480
-
4481
- export function deploymentGetConfigToolsFromJSON(
4482
- jsonString: string,
4483
- ): SafeParseResult<DeploymentGetConfigTools, SDKValidationError> {
4484
- return safeParse(
4485
- jsonString,
4486
- (x) => DeploymentGetConfigTools$inboundSchema.parse(JSON.parse(x)),
4487
- `Failed to parse 'DeploymentGetConfigTools' from JSON`,
4488
- );
4489
- }
4490
-
4491
- /** @internal */
4492
- export const DeploymentGetConfigResponseBody$inboundSchema: z.ZodType<
4493
- DeploymentGetConfigResponseBody,
4494
- z.ZodTypeDef,
4495
- unknown
4496
- > = z.object({
4497
- id: z.string(),
4498
- provider: z.string(),
4499
- model: z.string(),
4500
- type: DeploymentGetConfigType$inboundSchema.optional(),
4501
- version: z.string(),
4502
- messages: z.array(
4503
- z.lazy(() => DeploymentGetConfigDeploymentsMessages$inboundSchema),
4504
- ),
4505
- parameters: z.lazy(() => DeploymentGetConfigParameters$inboundSchema),
4506
- tools: z.array(z.lazy(() => DeploymentGetConfigTools$inboundSchema))
4507
- .optional(),
4508
- });
4509
-
4510
- export function deploymentGetConfigResponseBodyFromJSON(
4511
- jsonString: string,
4512
- ): SafeParseResult<DeploymentGetConfigResponseBody, SDKValidationError> {
4513
- return safeParse(
4514
- jsonString,
4515
- (x) => DeploymentGetConfigResponseBody$inboundSchema.parse(JSON.parse(x)),
4516
- `Failed to parse 'DeploymentGetConfigResponseBody' from JSON`,
4517
- );
4518
- }