@orq-ai/node 3.14.5-rc.1 → 3.14.5

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 (494) hide show
  1. package/bin/mcp-server.js +213 -210
  2. package/bin/mcp-server.js.map +38 -38
  3. package/docs/sdks/agents/README.md +4 -8
  4. package/docs/sdks/budgets/README.md +2 -4
  5. package/docs/sdks/tools/README.md +2 -4
  6. package/examples/package-lock.json +6 -5
  7. package/jsr.json +1 -1
  8. package/lib/config.d.ts +2 -2
  9. package/lib/config.js +2 -2
  10. package/lib/config.js.map +1 -1
  11. package/mcp-server/mcp-server.js +1 -1
  12. package/mcp-server/mcp-server.js.map +1 -1
  13. package/mcp-server/server.js +1 -1
  14. package/mcp-server/server.js.map +1 -1
  15. package/models/operations/createbudget.js +2 -2
  16. package/models/operations/createcontact.js +2 -2
  17. package/models/operations/createdataset.js +2 -2
  18. package/models/operations/createdatasetitem.js +8 -8
  19. package/models/operations/createdatasource.js +2 -2
  20. package/models/operations/createeval.js +28 -28
  21. package/models/operations/createtool.js +10 -10
  22. package/models/operations/duplicatetool.js +10 -10
  23. package/models/operations/fileget.js +2 -2
  24. package/models/operations/filelist.js +2 -2
  25. package/models/operations/fileupload.js +2 -2
  26. package/models/operations/getalltools.js +10 -10
  27. package/models/operations/getbudget.js +2 -2
  28. package/models/operations/getevals.js +28 -28
  29. package/models/operations/listbudgets.js +2 -2
  30. package/models/operations/listcontacts.js +2 -2
  31. package/models/operations/listdatasetdatapoints.js +8 -8
  32. package/models/operations/listdatasets.js +2 -2
  33. package/models/operations/listdatasources.js +2 -2
  34. package/models/operations/retrievecontact.js +2 -2
  35. package/models/operations/retrievedatapoint.js +8 -8
  36. package/models/operations/retrievedataset.js +2 -2
  37. package/models/operations/retrievedatasource.js +2 -2
  38. package/models/operations/retrievetool.js +10 -10
  39. package/models/operations/updatebudget.js +2 -2
  40. package/models/operations/updatecontact.js +2 -2
  41. package/models/operations/updatedatapoint.js +8 -8
  42. package/models/operations/updatedataset.js +2 -2
  43. package/models/operations/updatedatasource.js +2 -2
  44. package/models/operations/updateeval.js +28 -28
  45. package/models/operations/updatetool.js +10 -10
  46. package/package.json +4 -4
  47. package/packages/orq-rc/FUNCTIONS.md +103 -0
  48. package/packages/orq-rc/README.md +909 -0
  49. package/packages/orq-rc/RUNTIMES.md +48 -0
  50. package/packages/orq-rc/docs/sdks/agents/README.md +1319 -0
  51. package/packages/orq-rc/docs/sdks/budgets/README.md +401 -0
  52. package/packages/orq-rc/docs/sdks/chunking/README.md +95 -0
  53. package/packages/orq-rc/docs/sdks/contacts/README.md +450 -0
  54. package/packages/orq-rc/docs/sdks/datasets/README.md +836 -0
  55. package/packages/orq-rc/docs/sdks/deployments/README.md +312 -0
  56. package/packages/orq-rc/docs/sdks/evals/README.md +339 -0
  57. package/packages/orq-rc/docs/sdks/feedback/README.md +89 -0
  58. package/packages/orq-rc/docs/sdks/files/README.md +301 -0
  59. package/packages/orq-rc/docs/sdks/knowledge/README.md +1489 -0
  60. package/packages/orq-rc/docs/sdks/memorystores/README.md +1172 -0
  61. package/packages/orq-rc/docs/sdks/metrics/README.md +83 -0
  62. package/packages/orq-rc/docs/sdks/models/README.md +76 -0
  63. package/packages/orq-rc/docs/sdks/prompts/README.md +591 -0
  64. package/packages/orq-rc/docs/sdks/remoteconfigs/README.md +77 -0
  65. package/packages/orq-rc/docs/sdks/tools/README.md +490 -0
  66. package/packages/orq-rc/examples/README.md +31 -0
  67. package/packages/orq-rc/examples/contactsCreate.example.ts +42 -0
  68. package/packages/orq-rc/examples/package-lock.json +627 -0
  69. package/packages/orq-rc/examples/package.json +18 -0
  70. package/packages/orq-rc/jsr.json +28 -0
  71. package/packages/orq-rc/package-lock.json +3071 -0
  72. package/packages/orq-rc/package.json +43 -0
  73. package/packages/orq-rc/src/core.ts +13 -0
  74. package/packages/orq-rc/src/funcs/agentsCreate.ts +172 -0
  75. package/packages/orq-rc/src/funcs/agentsDelete.ts +176 -0
  76. package/packages/orq-rc/src/funcs/agentsInvoke.ts +167 -0
  77. package/packages/orq-rc/src/funcs/agentsList.ts +167 -0
  78. package/packages/orq-rc/src/funcs/agentsListActions.ts +169 -0
  79. package/packages/orq-rc/src/funcs/agentsListTasks.ts +183 -0
  80. package/packages/orq-rc/src/funcs/agentsRetrieve.ts +175 -0
  81. package/packages/orq-rc/src/funcs/agentsRetrieveAction.ts +173 -0
  82. package/packages/orq-rc/src/funcs/agentsRetrieveTask.ts +179 -0
  83. package/packages/orq-rc/src/funcs/agentsRun.ts +163 -0
  84. package/packages/orq-rc/src/funcs/agentsStream.ts +190 -0
  85. package/packages/orq-rc/src/funcs/agentsStreamRun.ts +188 -0
  86. package/packages/orq-rc/src/funcs/agentsUpdate.ts +176 -0
  87. package/packages/orq-rc/src/funcs/budgetsCreate.ts +160 -0
  88. package/packages/orq-rc/src/funcs/budgetsDelete.ts +167 -0
  89. package/packages/orq-rc/src/funcs/budgetsGet.ts +166 -0
  90. package/packages/orq-rc/src/funcs/budgetsList.ts +170 -0
  91. package/packages/orq-rc/src/funcs/budgetsUpdate.ts +167 -0
  92. package/packages/orq-rc/src/funcs/chunkingParse.ts +160 -0
  93. package/packages/orq-rc/src/funcs/contactsCreate.ts +165 -0
  94. package/packages/orq-rc/src/funcs/contactsDelete.ts +176 -0
  95. package/packages/orq-rc/src/funcs/contactsList.ts +169 -0
  96. package/packages/orq-rc/src/funcs/contactsRetrieve.ts +175 -0
  97. package/packages/orq-rc/src/funcs/contactsUpdate.ts +176 -0
  98. package/packages/orq-rc/src/funcs/datasetsClear.ts +167 -0
  99. package/packages/orq-rc/src/funcs/datasetsCreate.ts +165 -0
  100. package/packages/orq-rc/src/funcs/datasetsCreateDatapoint.ts +171 -0
  101. package/packages/orq-rc/src/funcs/datasetsDelete.ts +167 -0
  102. package/packages/orq-rc/src/funcs/datasetsDeleteDatapoint.ts +182 -0
  103. package/packages/orq-rc/src/funcs/datasetsList.ts +167 -0
  104. package/packages/orq-rc/src/funcs/datasetsListDatapoints.ts +174 -0
  105. package/packages/orq-rc/src/funcs/datasetsRetrieve.ts +175 -0
  106. package/packages/orq-rc/src/funcs/datasetsRetrieveDatapoint.ts +181 -0
  107. package/packages/orq-rc/src/funcs/datasetsUpdate.ts +176 -0
  108. package/packages/orq-rc/src/funcs/datasetsUpdateDatapoint.ts +179 -0
  109. package/packages/orq-rc/src/funcs/deploymentsGetConfig.ts +168 -0
  110. package/packages/orq-rc/src/funcs/deploymentsInvoke.ts +176 -0
  111. package/packages/orq-rc/src/funcs/deploymentsList.ts +176 -0
  112. package/packages/orq-rc/src/funcs/deploymentsMetricsCreate.ts +168 -0
  113. package/packages/orq-rc/src/funcs/deploymentsStream.ts +183 -0
  114. package/packages/orq-rc/src/funcs/evalsAll.ts +173 -0
  115. package/packages/orq-rc/src/funcs/evalsCreate.ts +169 -0
  116. package/packages/orq-rc/src/funcs/evalsDelete.ts +173 -0
  117. package/packages/orq-rc/src/funcs/evalsUpdate.ts +173 -0
  118. package/packages/orq-rc/src/funcs/feedbackCreate.ts +160 -0
  119. package/packages/orq-rc/src/funcs/filesCreate.ts +187 -0
  120. package/packages/orq-rc/src/funcs/filesDelete.ts +164 -0
  121. package/packages/orq-rc/src/funcs/filesGet.ts +166 -0
  122. package/packages/orq-rc/src/funcs/filesList.ts +167 -0
  123. package/packages/orq-rc/src/funcs/knowledgeCreate.ts +158 -0
  124. package/packages/orq-rc/src/funcs/knowledgeCreateChunks.ts +171 -0
  125. package/packages/orq-rc/src/funcs/knowledgeCreateDatasource.ts +166 -0
  126. package/packages/orq-rc/src/funcs/knowledgeDelete.ts +167 -0
  127. package/packages/orq-rc/src/funcs/knowledgeDeleteChunk.ts +174 -0
  128. package/packages/orq-rc/src/funcs/knowledgeDeleteChunks.ts +170 -0
  129. package/packages/orq-rc/src/funcs/knowledgeDeleteDatasource.ts +173 -0
  130. package/packages/orq-rc/src/funcs/knowledgeGetChunksCount.ts +170 -0
  131. package/packages/orq-rc/src/funcs/knowledgeList.ts +169 -0
  132. package/packages/orq-rc/src/funcs/knowledgeListChunks.ts +178 -0
  133. package/packages/orq-rc/src/funcs/knowledgeListChunksPaginated.ts +171 -0
  134. package/packages/orq-rc/src/funcs/knowledgeListDatasources.ts +174 -0
  135. package/packages/orq-rc/src/funcs/knowledgeRetrieve.ts +166 -0
  136. package/packages/orq-rc/src/funcs/knowledgeRetrieveChunk.ts +173 -0
  137. package/packages/orq-rc/src/funcs/knowledgeRetrieveDatasource.ts +169 -0
  138. package/packages/orq-rc/src/funcs/knowledgeSearch.ts +167 -0
  139. package/packages/orq-rc/src/funcs/knowledgeUpdate.ts +164 -0
  140. package/packages/orq-rc/src/funcs/knowledgeUpdateChunk.ts +174 -0
  141. package/packages/orq-rc/src/funcs/knowledgeUpdateDatasource.ts +170 -0
  142. package/packages/orq-rc/src/funcs/memoryStoresCreate.ts +171 -0
  143. package/packages/orq-rc/src/funcs/memoryStoresCreateDocument.ts +175 -0
  144. package/packages/orq-rc/src/funcs/memoryStoresCreateMemory.ts +170 -0
  145. package/packages/orq-rc/src/funcs/memoryStoresDelete.ts +168 -0
  146. package/packages/orq-rc/src/funcs/memoryStoresDeleteDocument.ts +184 -0
  147. package/packages/orq-rc/src/funcs/memoryStoresDeleteMemory.ts +179 -0
  148. package/packages/orq-rc/src/funcs/memoryStoresList.ts +178 -0
  149. package/packages/orq-rc/src/funcs/memoryStoresListDocuments.ts +181 -0
  150. package/packages/orq-rc/src/funcs/memoryStoresListMemories.ts +176 -0
  151. package/packages/orq-rc/src/funcs/memoryStoresRetrieve.ts +177 -0
  152. package/packages/orq-rc/src/funcs/memoryStoresRetrieveDocument.ts +178 -0
  153. package/packages/orq-rc/src/funcs/memoryStoresRetrieveMemory.ts +173 -0
  154. package/packages/orq-rc/src/funcs/memoryStoresUpdate.ts +168 -0
  155. package/packages/orq-rc/src/funcs/memoryStoresUpdateDocument.ts +179 -0
  156. package/packages/orq-rc/src/funcs/memoryStoresUpdateMemory.ts +174 -0
  157. package/packages/orq-rc/src/funcs/modelsList.ts +142 -0
  158. package/packages/orq-rc/src/funcs/promptsCreate.ts +160 -0
  159. package/packages/orq-rc/src/funcs/promptsDelete.ts +164 -0
  160. package/packages/orq-rc/src/funcs/promptsGetVersion.ts +181 -0
  161. package/packages/orq-rc/src/funcs/promptsList.ts +167 -0
  162. package/packages/orq-rc/src/funcs/promptsListVersions.ts +173 -0
  163. package/packages/orq-rc/src/funcs/promptsRetrieve.ts +166 -0
  164. package/packages/orq-rc/src/funcs/promptsUpdate.ts +173 -0
  165. package/packages/orq-rc/src/funcs/remoteconfigsRetrieve.ts +161 -0
  166. package/packages/orq-rc/src/funcs/toolsCreate.ts +163 -0
  167. package/packages/orq-rc/src/funcs/toolsDelete.ts +167 -0
  168. package/packages/orq-rc/src/funcs/toolsDuplicate.ts +175 -0
  169. package/packages/orq-rc/src/funcs/toolsList.ts +176 -0
  170. package/packages/orq-rc/src/funcs/toolsRetrieve.ts +166 -0
  171. package/packages/orq-rc/src/funcs/toolsUpdate.ts +176 -0
  172. package/packages/orq-rc/src/hooks/global.ts +44 -0
  173. package/packages/orq-rc/src/hooks/hooks.ts +132 -0
  174. package/packages/orq-rc/src/hooks/index.ts +6 -0
  175. package/packages/orq-rc/src/hooks/registration.ts +15 -0
  176. package/packages/orq-rc/src/hooks/types.ts +112 -0
  177. package/packages/orq-rc/src/index.ts +9 -0
  178. package/packages/orq-rc/src/lib/base64.ts +37 -0
  179. package/packages/orq-rc/src/lib/config.ts +74 -0
  180. package/packages/orq-rc/src/lib/dlv.ts +53 -0
  181. package/packages/orq-rc/src/lib/encodings.ts +483 -0
  182. package/packages/orq-rc/src/lib/env.ts +89 -0
  183. package/packages/orq-rc/src/lib/event-streams.ts +135 -0
  184. package/packages/orq-rc/src/lib/files.ts +82 -0
  185. package/packages/orq-rc/src/lib/http.ts +323 -0
  186. package/packages/orq-rc/src/lib/is-plain-object.ts +43 -0
  187. package/packages/orq-rc/src/lib/logger.ts +9 -0
  188. package/packages/orq-rc/src/lib/matchers.ts +345 -0
  189. package/packages/orq-rc/src/lib/primitives.ts +150 -0
  190. package/packages/orq-rc/src/lib/retries.ts +218 -0
  191. package/packages/orq-rc/src/lib/schemas.ts +91 -0
  192. package/packages/orq-rc/src/lib/sdks.ts +407 -0
  193. package/packages/orq-rc/src/lib/security.ts +264 -0
  194. package/packages/orq-rc/src/lib/url.ts +33 -0
  195. package/packages/orq-rc/src/mcp-server/cli/start/command.ts +111 -0
  196. package/packages/orq-rc/src/mcp-server/cli/start/impl.ts +136 -0
  197. package/packages/orq-rc/src/mcp-server/cli.ts +13 -0
  198. package/packages/orq-rc/src/mcp-server/console-logger.ts +71 -0
  199. package/packages/orq-rc/src/mcp-server/extensions.ts +17 -0
  200. package/packages/orq-rc/src/mcp-server/mcp-server.ts +26 -0
  201. package/packages/orq-rc/src/mcp-server/prompts.ts +117 -0
  202. package/packages/orq-rc/src/mcp-server/resources.ts +172 -0
  203. package/packages/orq-rc/src/mcp-server/scopes.ts +7 -0
  204. package/packages/orq-rc/src/mcp-server/server.ts +259 -0
  205. package/packages/orq-rc/src/mcp-server/shared.ts +74 -0
  206. package/packages/orq-rc/src/mcp-server/tools/agentsCreate.ts +37 -0
  207. package/packages/orq-rc/src/mcp-server/tools/agentsDelete.ts +35 -0
  208. package/packages/orq-rc/src/mcp-server/tools/agentsInvoke.ts +37 -0
  209. package/packages/orq-rc/src/mcp-server/tools/agentsList.ts +37 -0
  210. package/packages/orq-rc/src/mcp-server/tools/agentsListActions.ts +35 -0
  211. package/packages/orq-rc/src/mcp-server/tools/agentsListTasks.ts +37 -0
  212. package/packages/orq-rc/src/mcp-server/tools/agentsRetrieve.ts +37 -0
  213. package/packages/orq-rc/src/mcp-server/tools/agentsRetrieveAction.ts +35 -0
  214. package/packages/orq-rc/src/mcp-server/tools/agentsRetrieveTask.ts +37 -0
  215. package/packages/orq-rc/src/mcp-server/tools/agentsRun.ts +37 -0
  216. package/packages/orq-rc/src/mcp-server/tools/agentsStream.ts +37 -0
  217. package/packages/orq-rc/src/mcp-server/tools/agentsStreamRun.ts +37 -0
  218. package/packages/orq-rc/src/mcp-server/tools/agentsUpdate.ts +37 -0
  219. package/packages/orq-rc/src/mcp-server/tools/budgetsCreate.ts +37 -0
  220. package/packages/orq-rc/src/mcp-server/tools/budgetsDelete.ts +35 -0
  221. package/packages/orq-rc/src/mcp-server/tools/budgetsGet.ts +37 -0
  222. package/packages/orq-rc/src/mcp-server/tools/budgetsList.ts +37 -0
  223. package/packages/orq-rc/src/mcp-server/tools/budgetsUpdate.ts +37 -0
  224. package/packages/orq-rc/src/mcp-server/tools/chunkingParse.ts +37 -0
  225. package/packages/orq-rc/src/mcp-server/tools/contactsCreate.ts +37 -0
  226. package/packages/orq-rc/src/mcp-server/tools/contactsDelete.ts +35 -0
  227. package/packages/orq-rc/src/mcp-server/tools/contactsList.ts +37 -0
  228. package/packages/orq-rc/src/mcp-server/tools/contactsRetrieve.ts +37 -0
  229. package/packages/orq-rc/src/mcp-server/tools/contactsUpdate.ts +37 -0
  230. package/packages/orq-rc/src/mcp-server/tools/datasetsClear.ts +35 -0
  231. package/packages/orq-rc/src/mcp-server/tools/datasetsCreate.ts +37 -0
  232. package/packages/orq-rc/src/mcp-server/tools/datasetsCreateDatapoint.ts +37 -0
  233. package/packages/orq-rc/src/mcp-server/tools/datasetsDelete.ts +35 -0
  234. package/packages/orq-rc/src/mcp-server/tools/datasetsDeleteDatapoint.ts +35 -0
  235. package/packages/orq-rc/src/mcp-server/tools/datasetsList.ts +37 -0
  236. package/packages/orq-rc/src/mcp-server/tools/datasetsListDatapoints.ts +37 -0
  237. package/packages/orq-rc/src/mcp-server/tools/datasetsRetrieve.ts +37 -0
  238. package/packages/orq-rc/src/mcp-server/tools/datasetsRetrieveDatapoint.ts +37 -0
  239. package/packages/orq-rc/src/mcp-server/tools/datasetsUpdate.ts +37 -0
  240. package/packages/orq-rc/src/mcp-server/tools/datasetsUpdateDatapoint.ts +35 -0
  241. package/packages/orq-rc/src/mcp-server/tools/deploymentsGetConfig.ts +37 -0
  242. package/packages/orq-rc/src/mcp-server/tools/deploymentsInvoke.ts +37 -0
  243. package/packages/orq-rc/src/mcp-server/tools/deploymentsList.ts +37 -0
  244. package/packages/orq-rc/src/mcp-server/tools/deploymentsMetricsCreate.ts +37 -0
  245. package/packages/orq-rc/src/mcp-server/tools/deploymentsStream.ts +37 -0
  246. package/packages/orq-rc/src/mcp-server/tools/evalsAll.ts +35 -0
  247. package/packages/orq-rc/src/mcp-server/tools/evalsCreate.ts +35 -0
  248. package/packages/orq-rc/src/mcp-server/tools/evalsDelete.ts +33 -0
  249. package/packages/orq-rc/src/mcp-server/tools/evalsUpdate.ts +35 -0
  250. package/packages/orq-rc/src/mcp-server/tools/feedbackCreate.ts +37 -0
  251. package/packages/orq-rc/src/mcp-server/tools/filesCreate.ts +37 -0
  252. package/packages/orq-rc/src/mcp-server/tools/filesDelete.ts +33 -0
  253. package/packages/orq-rc/src/mcp-server/tools/filesGet.ts +37 -0
  254. package/packages/orq-rc/src/mcp-server/tools/filesList.ts +37 -0
  255. package/packages/orq-rc/src/mcp-server/tools/knowledgeCreate.ts +35 -0
  256. package/packages/orq-rc/src/mcp-server/tools/knowledgeCreateChunks.ts +35 -0
  257. package/packages/orq-rc/src/mcp-server/tools/knowledgeCreateDatasource.ts +35 -0
  258. package/packages/orq-rc/src/mcp-server/tools/knowledgeDelete.ts +35 -0
  259. package/packages/orq-rc/src/mcp-server/tools/knowledgeDeleteChunk.ts +33 -0
  260. package/packages/orq-rc/src/mcp-server/tools/knowledgeDeleteChunks.ts +35 -0
  261. package/packages/orq-rc/src/mcp-server/tools/knowledgeDeleteDatasource.ts +35 -0
  262. package/packages/orq-rc/src/mcp-server/tools/knowledgeGetChunksCount.ts +35 -0
  263. package/packages/orq-rc/src/mcp-server/tools/knowledgeList.ts +37 -0
  264. package/packages/orq-rc/src/mcp-server/tools/knowledgeListChunks.ts +35 -0
  265. package/packages/orq-rc/src/mcp-server/tools/knowledgeListChunksPaginated.ts +35 -0
  266. package/packages/orq-rc/src/mcp-server/tools/knowledgeListDatasources.ts +35 -0
  267. package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieve.ts +37 -0
  268. package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieveChunk.ts +35 -0
  269. package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieveDatasource.ts +35 -0
  270. package/packages/orq-rc/src/mcp-server/tools/knowledgeSearch.ts +37 -0
  271. package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdate.ts +35 -0
  272. package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdateChunk.ts +35 -0
  273. package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdateDatasource.ts +35 -0
  274. package/packages/orq-rc/src/mcp-server/tools/memoryStoresCreate.ts +35 -0
  275. package/packages/orq-rc/src/mcp-server/tools/memoryStoresCreateDocument.ts +37 -0
  276. package/packages/orq-rc/src/mcp-server/tools/memoryStoresCreateMemory.ts +37 -0
  277. package/packages/orq-rc/src/mcp-server/tools/memoryStoresDelete.ts +35 -0
  278. package/packages/orq-rc/src/mcp-server/tools/memoryStoresDeleteDocument.ts +40 -0
  279. package/packages/orq-rc/src/mcp-server/tools/memoryStoresDeleteMemory.ts +40 -0
  280. package/packages/orq-rc/src/mcp-server/tools/memoryStoresList.ts +37 -0
  281. package/packages/orq-rc/src/mcp-server/tools/memoryStoresListDocuments.ts +37 -0
  282. package/packages/orq-rc/src/mcp-server/tools/memoryStoresListMemories.ts +37 -0
  283. package/packages/orq-rc/src/mcp-server/tools/memoryStoresRetrieve.ts +37 -0
  284. package/packages/orq-rc/src/mcp-server/tools/memoryStoresRetrieveDocument.ts +37 -0
  285. package/packages/orq-rc/src/mcp-server/tools/memoryStoresRetrieveMemory.ts +37 -0
  286. package/packages/orq-rc/src/mcp-server/tools/memoryStoresUpdate.ts +37 -0
  287. package/packages/orq-rc/src/mcp-server/tools/memoryStoresUpdateDocument.ts +37 -0
  288. package/packages/orq-rc/src/mcp-server/tools/memoryStoresUpdateMemory.ts +37 -0
  289. package/packages/orq-rc/src/mcp-server/tools/modelsList.ts +30 -0
  290. package/packages/orq-rc/src/mcp-server/tools/promptsCreate.ts +35 -0
  291. package/packages/orq-rc/src/mcp-server/tools/promptsDelete.ts +33 -0
  292. package/packages/orq-rc/src/mcp-server/tools/promptsGetVersion.ts +37 -0
  293. package/packages/orq-rc/src/mcp-server/tools/promptsList.ts +37 -0
  294. package/packages/orq-rc/src/mcp-server/tools/promptsListVersions.ts +37 -0
  295. package/packages/orq-rc/src/mcp-server/tools/promptsRetrieve.ts +37 -0
  296. package/packages/orq-rc/src/mcp-server/tools/promptsUpdate.ts +35 -0
  297. package/packages/orq-rc/src/mcp-server/tools/remoteconfigsRetrieve.ts +36 -0
  298. package/packages/orq-rc/src/mcp-server/tools/toolsCreate.ts +37 -0
  299. package/packages/orq-rc/src/mcp-server/tools/toolsDelete.ts +35 -0
  300. package/packages/orq-rc/src/mcp-server/tools/toolsDuplicate.ts +37 -0
  301. package/packages/orq-rc/src/mcp-server/tools/toolsList.ts +37 -0
  302. package/packages/orq-rc/src/mcp-server/tools/toolsRetrieve.ts +37 -0
  303. package/packages/orq-rc/src/mcp-server/tools/toolsUpdate.ts +37 -0
  304. package/packages/orq-rc/src/mcp-server/tools.ts +129 -0
  305. package/packages/orq-rc/src/models/components/deployments.ts +8147 -0
  306. package/packages/orq-rc/src/models/components/index.ts +6 -0
  307. package/packages/orq-rc/src/models/components/security.ts +71 -0
  308. package/packages/orq-rc/src/models/errors/apierror.ts +40 -0
  309. package/packages/orq-rc/src/models/errors/createagent.ts +80 -0
  310. package/packages/orq-rc/src/models/errors/createeval.ts +80 -0
  311. package/packages/orq-rc/src/models/errors/deleteagent.ts +80 -0
  312. package/packages/orq-rc/src/models/errors/deletecontact.ts +91 -0
  313. package/packages/orq-rc/src/models/errors/deleteeval.ts +80 -0
  314. package/packages/orq-rc/src/models/errors/duplicatetool.ts +91 -0
  315. package/packages/orq-rc/src/models/errors/getagent.ts +80 -0
  316. package/packages/orq-rc/src/models/errors/getagenttask.ts +80 -0
  317. package/packages/orq-rc/src/models/errors/getevals.ts +80 -0
  318. package/packages/orq-rc/src/models/errors/getpromptversion.ts +80 -0
  319. package/packages/orq-rc/src/models/errors/honoapierror.ts +90 -0
  320. package/packages/orq-rc/src/models/errors/httpclienterrors.ts +62 -0
  321. package/packages/orq-rc/src/models/errors/index.ts +29 -0
  322. package/packages/orq-rc/src/models/errors/listagenttasks.ts +80 -0
  323. package/packages/orq-rc/src/models/errors/orqerror.ts +35 -0
  324. package/packages/orq-rc/src/models/errors/responsevalidationerror.ts +50 -0
  325. package/packages/orq-rc/src/models/errors/retrievecontact.ts +91 -0
  326. package/packages/orq-rc/src/models/errors/sdkvalidationerror.ts +109 -0
  327. package/packages/orq-rc/src/models/errors/streamagent.ts +80 -0
  328. package/packages/orq-rc/src/models/errors/streamrunagent.ts +80 -0
  329. package/packages/orq-rc/src/models/errors/updateagent.ts +80 -0
  330. package/packages/orq-rc/src/models/errors/updatecontact.ts +83 -0
  331. package/packages/orq-rc/src/models/errors/updateeval.ts +80 -0
  332. package/packages/orq-rc/src/models/errors/updateprompt.ts +80 -0
  333. package/packages/orq-rc/src/models/errors/updatetool.ts +91 -0
  334. package/packages/orq-rc/src/models/operations/cleardataset.ts +78 -0
  335. package/packages/orq-rc/src/models/operations/createagent.ts +3104 -0
  336. package/packages/orq-rc/src/models/operations/createbudget.ts +745 -0
  337. package/packages/orq-rc/src/models/operations/createchunk.ts +428 -0
  338. package/packages/orq-rc/src/models/operations/createcontact.ts +267 -0
  339. package/packages/orq-rc/src/models/operations/createdataset.ts +302 -0
  340. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +6943 -0
  341. package/packages/orq-rc/src/models/operations/createdatasource.ts +852 -0
  342. package/packages/orq-rc/src/models/operations/createeval.ts +9341 -0
  343. package/packages/orq-rc/src/models/operations/createfeedback.ts +286 -0
  344. package/packages/orq-rc/src/models/operations/createknowledge.ts +1850 -0
  345. package/packages/orq-rc/src/models/operations/creatememory.ts +274 -0
  346. package/packages/orq-rc/src/models/operations/creatememorydocument.ts +287 -0
  347. package/packages/orq-rc/src/models/operations/creatememorystore.ts +2032 -0
  348. package/packages/orq-rc/src/models/operations/createprompt.ts +7812 -0
  349. package/packages/orq-rc/src/models/operations/createtool.ts +4077 -0
  350. package/packages/orq-rc/src/models/operations/deleteagent.ts +78 -0
  351. package/packages/orq-rc/src/models/operations/deletebudget.ts +69 -0
  352. package/packages/orq-rc/src/models/operations/deletechunk.ts +96 -0
  353. package/packages/orq-rc/src/models/operations/deletechunks.ts +243 -0
  354. package/packages/orq-rc/src/models/operations/deletecontact.ts +69 -0
  355. package/packages/orq-rc/src/models/operations/deletedatapoint.ts +87 -0
  356. package/packages/orq-rc/src/models/operations/deletedataset.ts +78 -0
  357. package/packages/orq-rc/src/models/operations/deletedatasource.ts +87 -0
  358. package/packages/orq-rc/src/models/operations/deleteeval.ts +66 -0
  359. package/packages/orq-rc/src/models/operations/deleteknowledge.ts +78 -0
  360. package/packages/orq-rc/src/models/operations/deletememory.ts +87 -0
  361. package/packages/orq-rc/src/models/operations/deletememorydocument.ts +98 -0
  362. package/packages/orq-rc/src/models/operations/deletememorystore.ts +78 -0
  363. package/packages/orq-rc/src/models/operations/deleteprompt.ts +69 -0
  364. package/packages/orq-rc/src/models/operations/deletetool.ts +75 -0
  365. package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +6547 -0
  366. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +10532 -0
  367. package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +1266 -0
  368. package/packages/orq-rc/src/models/operations/deployments.ts +2606 -0
  369. package/packages/orq-rc/src/models/operations/deploymentstream.ts +10655 -0
  370. package/packages/orq-rc/src/models/operations/duplicatetool.ts +2349 -0
  371. package/packages/orq-rc/src/models/operations/filedelete.ts +78 -0
  372. package/packages/orq-rc/src/models/operations/fileget.ts +223 -0
  373. package/packages/orq-rc/src/models/operations/filelist.ts +337 -0
  374. package/packages/orq-rc/src/models/operations/fileupload.ts +327 -0
  375. package/packages/orq-rc/src/models/operations/getagent.ts +957 -0
  376. package/packages/orq-rc/src/models/operations/getagenttask.ts +259 -0
  377. package/packages/orq-rc/src/models/operations/getallmemories.ts +318 -0
  378. package/packages/orq-rc/src/models/operations/getallmemorydocuments.ts +338 -0
  379. package/packages/orq-rc/src/models/operations/getallmemorystores.ts +1277 -0
  380. package/packages/orq-rc/src/models/operations/getallprompts.ts +2572 -0
  381. package/packages/orq-rc/src/models/operations/getalltools.ts +2308 -0
  382. package/packages/orq-rc/src/models/operations/getbudget.ts +441 -0
  383. package/packages/orq-rc/src/models/operations/getchunkscount.ts +230 -0
  384. package/packages/orq-rc/src/models/operations/getevals.ts +7486 -0
  385. package/packages/orq-rc/src/models/operations/getonechunk.ts +315 -0
  386. package/packages/orq-rc/src/models/operations/getoneknowledge.ts +1292 -0
  387. package/packages/orq-rc/src/models/operations/getoneprompt.ts +2437 -0
  388. package/packages/orq-rc/src/models/operations/getpromptversion.ts +2444 -0
  389. package/packages/orq-rc/src/models/operations/index.ts +102 -0
  390. package/packages/orq-rc/src/models/operations/invokeagent.ts +1569 -0
  391. package/packages/orq-rc/src/models/operations/listactions.ts +526 -0
  392. package/packages/orq-rc/src/models/operations/listagents.ts +1077 -0
  393. package/packages/orq-rc/src/models/operations/listagenttasks.ts +1106 -0
  394. package/packages/orq-rc/src/models/operations/listbudgets.ts +617 -0
  395. package/packages/orq-rc/src/models/operations/listchunks.ts +494 -0
  396. package/packages/orq-rc/src/models/operations/listchunkspaginated.ts +507 -0
  397. package/packages/orq-rc/src/models/operations/listcontacts.ts +500 -0
  398. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +4086 -0
  399. package/packages/orq-rc/src/models/operations/listdatasets.ts +406 -0
  400. package/packages/orq-rc/src/models/operations/listdatasources.ts +454 -0
  401. package/packages/orq-rc/src/models/operations/listknowledgebases.ts +1303 -0
  402. package/packages/orq-rc/src/models/operations/listmodels.ts +273 -0
  403. package/packages/orq-rc/src/models/operations/listpromptversions.ts +2580 -0
  404. package/packages/orq-rc/src/models/operations/parse.ts +1295 -0
  405. package/packages/orq-rc/src/models/operations/remoteconfigsgetconfig.ts +190 -0
  406. package/packages/orq-rc/src/models/operations/retrieveaction.ts +426 -0
  407. package/packages/orq-rc/src/models/operations/retrievecontact.ts +210 -0
  408. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +3853 -0
  409. package/packages/orq-rc/src/models/operations/retrievedataset.ts +291 -0
  410. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +273 -0
  411. package/packages/orq-rc/src/models/operations/retrievememory.ts +201 -0
  412. package/packages/orq-rc/src/models/operations/retrievememorydocument.ts +220 -0
  413. package/packages/orq-rc/src/models/operations/retrievememorystore.ts +1160 -0
  414. package/packages/orq-rc/src/models/operations/retrievetool.ts +2333 -0
  415. package/packages/orq-rc/src/models/operations/runagent.ts +4342 -0
  416. package/packages/orq-rc/src/models/operations/searchknowledge.ts +3573 -0
  417. package/packages/orq-rc/src/models/operations/streamagent.ts +1367 -0
  418. package/packages/orq-rc/src/models/operations/streamrunagent.ts +4355 -0
  419. package/packages/orq-rc/src/models/operations/updateagent.ts +3321 -0
  420. package/packages/orq-rc/src/models/operations/updatebudget.ts +628 -0
  421. package/packages/orq-rc/src/models/operations/updatechunk.ts +448 -0
  422. package/packages/orq-rc/src/models/operations/updatecontact.ts +325 -0
  423. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +6934 -0
  424. package/packages/orq-rc/src/models/operations/updatedataset.ts +386 -0
  425. package/packages/orq-rc/src/models/operations/updatedatasource.ts +345 -0
  426. package/packages/orq-rc/src/models/operations/updateeval.ts +9704 -0
  427. package/packages/orq-rc/src/models/operations/updateknowledge.ts +2341 -0
  428. package/packages/orq-rc/src/models/operations/updatememory.ts +283 -0
  429. package/packages/orq-rc/src/models/operations/updatememorydocument.ts +296 -0
  430. package/packages/orq-rc/src/models/operations/updatememorystore.ts +1363 -0
  431. package/packages/orq-rc/src/models/operations/updateprompt.ts +8176 -0
  432. package/packages/orq-rc/src/models/operations/updatetool.ts +4288 -0
  433. package/packages/orq-rc/src/sdk/agents.ts +238 -0
  434. package/packages/orq-rc/src/sdk/budgets.ts +99 -0
  435. package/packages/orq-rc/src/sdk/chunking.ts +27 -0
  436. package/packages/orq-rc/src/sdk/contacts.ts +99 -0
  437. package/packages/orq-rc/src/sdk/datasets.ts +204 -0
  438. package/packages/orq-rc/src/sdk/deployments.ts +89 -0
  439. package/packages/orq-rc/src/sdk/evals.ts +69 -0
  440. package/packages/orq-rc/src/sdk/feedback.ts +27 -0
  441. package/packages/orq-rc/src/sdk/files.ts +78 -0
  442. package/packages/orq-rc/src/sdk/index.ts +5 -0
  443. package/packages/orq-rc/src/sdk/knowledge.ts +309 -0
  444. package/packages/orq-rc/src/sdk/memorystores.ts +286 -0
  445. package/packages/orq-rc/src/sdk/metrics.ts +27 -0
  446. package/packages/orq-rc/src/sdk/models.ts +25 -0
  447. package/packages/orq-rc/src/sdk/prompts.ts +126 -0
  448. package/packages/orq-rc/src/sdk/remoteconfigs.ts +24 -0
  449. package/packages/orq-rc/src/sdk/sdk.ts +97 -0
  450. package/packages/orq-rc/src/sdk/tools.ts +117 -0
  451. package/packages/orq-rc/src/types/async.ts +68 -0
  452. package/packages/orq-rc/src/types/blobs.ts +32 -0
  453. package/packages/orq-rc/src/types/constdatetime.ts +15 -0
  454. package/packages/orq-rc/src/types/enums.ts +16 -0
  455. package/packages/orq-rc/src/types/fp.ts +50 -0
  456. package/packages/orq-rc/src/types/index.ts +11 -0
  457. package/packages/orq-rc/src/types/operations.ts +105 -0
  458. package/packages/orq-rc/src/types/rfcdate.ts +54 -0
  459. package/packages/orq-rc/src/types/streams.ts +21 -0
  460. package/packages/orq-rc/tsconfig.json +41 -0
  461. package/src/lib/config.ts +2 -2
  462. package/src/mcp-server/mcp-server.ts +1 -1
  463. package/src/mcp-server/server.ts +1 -1
  464. package/src/models/operations/createbudget.ts +2 -2
  465. package/src/models/operations/createcontact.ts +2 -2
  466. package/src/models/operations/createdataset.ts +2 -2
  467. package/src/models/operations/createdatasetitem.ts +8 -8
  468. package/src/models/operations/createdatasource.ts +2 -2
  469. package/src/models/operations/createeval.ts +28 -28
  470. package/src/models/operations/createtool.ts +10 -10
  471. package/src/models/operations/duplicatetool.ts +10 -10
  472. package/src/models/operations/fileget.ts +2 -2
  473. package/src/models/operations/filelist.ts +2 -2
  474. package/src/models/operations/fileupload.ts +2 -2
  475. package/src/models/operations/getalltools.ts +10 -10
  476. package/src/models/operations/getbudget.ts +2 -2
  477. package/src/models/operations/getevals.ts +28 -28
  478. package/src/models/operations/listbudgets.ts +2 -2
  479. package/src/models/operations/listcontacts.ts +2 -2
  480. package/src/models/operations/listdatasetdatapoints.ts +8 -8
  481. package/src/models/operations/listdatasets.ts +2 -2
  482. package/src/models/operations/listdatasources.ts +2 -2
  483. package/src/models/operations/retrievecontact.ts +2 -2
  484. package/src/models/operations/retrievedatapoint.ts +8 -8
  485. package/src/models/operations/retrievedataset.ts +2 -2
  486. package/src/models/operations/retrievedatasource.ts +2 -2
  487. package/src/models/operations/retrievetool.ts +10 -10
  488. package/src/models/operations/updatebudget.ts +2 -2
  489. package/src/models/operations/updatecontact.ts +2 -2
  490. package/src/models/operations/updatedatapoint.ts +8 -8
  491. package/src/models/operations/updatedataset.ts +2 -2
  492. package/src/models/operations/updatedatasource.ts +2 -2
  493. package/src/models/operations/updateeval.ts +28 -28
  494. package/src/models/operations/updatetool.ts +10 -10
@@ -0,0 +1,2606 @@
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 { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
+
12
+ export type DeploymentsRequest = {
13
+ /**
14
+ * A limit on the number of objects to be returned. Limit can range between 1 and 50, and the default is 10
15
+ */
16
+ limit?: number | undefined;
17
+ /**
18
+ * A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 20 objects, ending with `01JJ1HDHN79XAS7A01WB3HYSDB`, your subsequent call can include `after=01JJ1HDHN79XAS7A01WB3HYSDB` in order to fetch the next page of the list.
19
+ */
20
+ startingAfter?: string | undefined;
21
+ /**
22
+ * A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 20 objects, starting with `01JJ1HDHN79XAS7A01WB3HYSDB`, your subsequent call can include `before=01JJ1HDHN79XAS7A01WB3HYSDB` in order to fetch the previous page of the list.
23
+ */
24
+ endingBefore?: string | undefined;
25
+ };
26
+
27
+ export const DeploymentsObject = {
28
+ List: "list",
29
+ } as const;
30
+ export type DeploymentsObject = ClosedEnum<typeof DeploymentsObject>;
31
+
32
+ /**
33
+ * The type of the tool. Currently, only `function` is supported.
34
+ */
35
+ export const DeploymentsType = {
36
+ Function: "function",
37
+ } as const;
38
+ /**
39
+ * The type of the tool. Currently, only `function` is supported.
40
+ */
41
+ export type DeploymentsType = ClosedEnum<typeof DeploymentsType>;
42
+
43
+ export const DeploymentsDeploymentsResponseType = {
44
+ Object: "object",
45
+ } as const;
46
+ export type DeploymentsDeploymentsResponseType = ClosedEnum<
47
+ typeof DeploymentsDeploymentsResponseType
48
+ >;
49
+
50
+ /**
51
+ * The parameters the functions accepts, described as a JSON Schema object.
52
+ *
53
+ * @remarks
54
+ *
55
+ * Omitting `parameters` defines a function with an empty parameter list.
56
+ */
57
+ export type DeploymentsParameters = {
58
+ type: DeploymentsDeploymentsResponseType;
59
+ properties: { [k: string]: any };
60
+ required?: Array<string> | undefined;
61
+ additionalProperties?: boolean | undefined;
62
+ };
63
+
64
+ export type DeploymentsFunction = {
65
+ /**
66
+ * 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.
67
+ */
68
+ name: string;
69
+ /**
70
+ * A description of what the function does, used by the model to choose when and how to call the function.
71
+ */
72
+ description?: string | undefined;
73
+ strict?: boolean | undefined;
74
+ /**
75
+ * The parameters the functions accepts, described as a JSON Schema object.
76
+ *
77
+ * @remarks
78
+ *
79
+ * Omitting `parameters` defines a function with an empty parameter list.
80
+ */
81
+ parameters: DeploymentsParameters;
82
+ };
83
+
84
+ export type DeploymentsTools = {
85
+ /**
86
+ * The type of the tool. Currently, only `function` is supported.
87
+ */
88
+ type: DeploymentsType;
89
+ function: DeploymentsFunction;
90
+ id?: number | undefined;
91
+ };
92
+
93
+ /**
94
+ * The modality of the model
95
+ */
96
+ export const DeploymentsModelType = {
97
+ Chat: "chat",
98
+ Completion: "completion",
99
+ Embedding: "embedding",
100
+ Image: "image",
101
+ Tts: "tts",
102
+ Stt: "stt",
103
+ Rerank: "rerank",
104
+ Moderation: "moderation",
105
+ Vision: "vision",
106
+ } as const;
107
+ /**
108
+ * The modality of the model
109
+ */
110
+ export type DeploymentsModelType = ClosedEnum<typeof DeploymentsModelType>;
111
+
112
+ /**
113
+ * Only supported on `image` models.
114
+ */
115
+ export const DeploymentsFormat = {
116
+ Url: "url",
117
+ B64Json: "b64_json",
118
+ Text: "text",
119
+ JsonObject: "json_object",
120
+ } as const;
121
+ /**
122
+ * Only supported on `image` models.
123
+ */
124
+ export type DeploymentsFormat = ClosedEnum<typeof DeploymentsFormat>;
125
+
126
+ export const DeploymentsResponseFormat6 = {
127
+ Json: "json",
128
+ Text: "text",
129
+ Srt: "srt",
130
+ VerboseJson: "verbose_json",
131
+ Vtt: "vtt",
132
+ } as const;
133
+ export type DeploymentsResponseFormat6 = ClosedEnum<
134
+ typeof DeploymentsResponseFormat6
135
+ >;
136
+
137
+ export const DeploymentsResponseFormat5 = {
138
+ Url: "url",
139
+ Base64Json: "base64_json",
140
+ } as const;
141
+ export type DeploymentsResponseFormat5 = ClosedEnum<
142
+ typeof DeploymentsResponseFormat5
143
+ >;
144
+
145
+ export const DeploymentsResponseFormat4 = {
146
+ Mp3: "mp3",
147
+ Opus: "opus",
148
+ Aac: "aac",
149
+ Flac: "flac",
150
+ Wav: "wav",
151
+ Pcm: "pcm",
152
+ } as const;
153
+ export type DeploymentsResponseFormat4 = ClosedEnum<
154
+ typeof DeploymentsResponseFormat4
155
+ >;
156
+
157
+ export const DeploymentsResponseFormatDeploymentsType = {
158
+ Text: "text",
159
+ } as const;
160
+ export type DeploymentsResponseFormatDeploymentsType = ClosedEnum<
161
+ typeof DeploymentsResponseFormatDeploymentsType
162
+ >;
163
+
164
+ export type DeploymentsResponseFormat3 = {
165
+ type: DeploymentsResponseFormatDeploymentsType;
166
+ };
167
+
168
+ export const DeploymentsResponseFormatType = {
169
+ JsonObject: "json_object",
170
+ } as const;
171
+ export type DeploymentsResponseFormatType = ClosedEnum<
172
+ typeof DeploymentsResponseFormatType
173
+ >;
174
+
175
+ export type DeploymentsResponseFormat2 = {
176
+ type: DeploymentsResponseFormatType;
177
+ };
178
+
179
+ export const DeploymentsResponseFormatDeploymentsResponseType = {
180
+ JsonSchema: "json_schema",
181
+ } as const;
182
+ export type DeploymentsResponseFormatDeploymentsResponseType = ClosedEnum<
183
+ typeof DeploymentsResponseFormatDeploymentsResponseType
184
+ >;
185
+
186
+ export type DeploymentsResponseFormatJsonSchema = {
187
+ name: string;
188
+ description?: string | undefined;
189
+ strict?: boolean | undefined;
190
+ schema: { [k: string]: any };
191
+ };
192
+
193
+ export type DeploymentsResponseFormat1 = {
194
+ type: DeploymentsResponseFormatDeploymentsResponseType;
195
+ jsonSchema: DeploymentsResponseFormatJsonSchema;
196
+ };
197
+
198
+ /**
199
+ * An object specifying the format that the model must output.
200
+ *
201
+ * @remarks
202
+ *
203
+ * Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
204
+ *
205
+ * Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
206
+ *
207
+ * 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.
208
+ */
209
+ export type DeploymentsResponseFormat =
210
+ | DeploymentsResponseFormat1
211
+ | DeploymentsResponseFormat2
212
+ | DeploymentsResponseFormat3
213
+ | DeploymentsResponseFormat4
214
+ | DeploymentsResponseFormat5
215
+ | DeploymentsResponseFormat6;
216
+
217
+ /**
218
+ * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
219
+ */
220
+ export const DeploymentsPhotoRealVersion = {
221
+ V1: "v1",
222
+ V2: "v2",
223
+ } as const;
224
+ /**
225
+ * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
226
+ */
227
+ export type DeploymentsPhotoRealVersion = ClosedEnum<
228
+ typeof DeploymentsPhotoRealVersion
229
+ >;
230
+
231
+ /**
232
+ * The format to return the embeddings
233
+ */
234
+ export const DeploymentsEncodingFormat = {
235
+ Float: "float",
236
+ Base64: "base64",
237
+ } as const;
238
+ /**
239
+ * The format to return the embeddings
240
+ */
241
+ export type DeploymentsEncodingFormat = ClosedEnum<
242
+ typeof DeploymentsEncodingFormat
243
+ >;
244
+
245
+ /**
246
+ * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
247
+ */
248
+ export const DeploymentsReasoningEffort = {
249
+ Disable: "disable",
250
+ Minimal: "minimal",
251
+ Low: "low",
252
+ Medium: "medium",
253
+ High: "high",
254
+ } as const;
255
+ /**
256
+ * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
257
+ */
258
+ export type DeploymentsReasoningEffort = ClosedEnum<
259
+ typeof DeploymentsReasoningEffort
260
+ >;
261
+
262
+ /**
263
+ * Controls the verbosity of the model output.
264
+ */
265
+ export const DeploymentsVerbosity = {
266
+ Low: "low",
267
+ Medium: "medium",
268
+ High: "high",
269
+ } as const;
270
+ /**
271
+ * Controls the verbosity of the model output.
272
+ */
273
+ export type DeploymentsVerbosity = ClosedEnum<typeof DeploymentsVerbosity>;
274
+
275
+ /**
276
+ * Model Parameters: Not all parameters apply to every model
277
+ */
278
+ export type DeploymentsModelParameters = {
279
+ /**
280
+ * Only supported on `chat` and `completion` models.
281
+ */
282
+ temperature?: number | undefined;
283
+ /**
284
+ * Only supported on `chat` and `completion` models.
285
+ */
286
+ maxTokens?: number | undefined;
287
+ /**
288
+ * Only supported on `chat` and `completion` models.
289
+ */
290
+ topK?: number | undefined;
291
+ /**
292
+ * Only supported on `chat` and `completion` models.
293
+ */
294
+ topP?: number | undefined;
295
+ /**
296
+ * Only supported on `chat` and `completion` models.
297
+ */
298
+ frequencyPenalty?: number | undefined;
299
+ /**
300
+ * Only supported on `chat` and `completion` models.
301
+ */
302
+ presencePenalty?: number | undefined;
303
+ /**
304
+ * Only supported on `image` models.
305
+ */
306
+ numImages?: number | undefined;
307
+ /**
308
+ * Best effort deterministic seed for the model. Currently only OpenAI models support these
309
+ */
310
+ seed?: number | undefined;
311
+ /**
312
+ * Only supported on `image` models.
313
+ */
314
+ format?: DeploymentsFormat | undefined;
315
+ /**
316
+ * Only supported on `image` models.
317
+ */
318
+ dimensions?: string | undefined;
319
+ /**
320
+ * Only supported on `image` models.
321
+ */
322
+ quality?: string | undefined;
323
+ /**
324
+ * Only supported on `image` models.
325
+ */
326
+ style?: string | undefined;
327
+ /**
328
+ * An object specifying the format that the model must output.
329
+ *
330
+ * @remarks
331
+ *
332
+ * Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
333
+ *
334
+ * Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
335
+ *
336
+ * 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.
337
+ */
338
+ responseFormat?:
339
+ | DeploymentsResponseFormat1
340
+ | DeploymentsResponseFormat2
341
+ | DeploymentsResponseFormat3
342
+ | DeploymentsResponseFormat4
343
+ | DeploymentsResponseFormat5
344
+ | DeploymentsResponseFormat6
345
+ | null
346
+ | undefined;
347
+ /**
348
+ * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
349
+ */
350
+ photoRealVersion?: DeploymentsPhotoRealVersion | undefined;
351
+ /**
352
+ * The format to return the embeddings
353
+ */
354
+ encodingFormat?: DeploymentsEncodingFormat | undefined;
355
+ /**
356
+ * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
357
+ */
358
+ reasoningEffort?: DeploymentsReasoningEffort | undefined;
359
+ /**
360
+ * 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`
361
+ */
362
+ budgetTokens?: number | undefined;
363
+ /**
364
+ * Controls the verbosity of the model output.
365
+ */
366
+ verbosity?: DeploymentsVerbosity | undefined;
367
+ };
368
+
369
+ export const DeploymentsProvider = {
370
+ Cohere: "cohere",
371
+ Openai: "openai",
372
+ Anthropic: "anthropic",
373
+ Huggingface: "huggingface",
374
+ Replicate: "replicate",
375
+ Google: "google",
376
+ GoogleAi: "google-ai",
377
+ Azure: "azure",
378
+ Aws: "aws",
379
+ Anyscale: "anyscale",
380
+ Perplexity: "perplexity",
381
+ Groq: "groq",
382
+ Fal: "fal",
383
+ Leonardoai: "leonardoai",
384
+ Nvidia: "nvidia",
385
+ Jina: "jina",
386
+ Togetherai: "togetherai",
387
+ Elevenlabs: "elevenlabs",
388
+ Litellm: "litellm",
389
+ Openailike: "openailike",
390
+ Cerebras: "cerebras",
391
+ Bytedance: "bytedance",
392
+ Mistral: "mistral",
393
+ } as const;
394
+ export type DeploymentsProvider = ClosedEnum<typeof DeploymentsProvider>;
395
+
396
+ /**
397
+ * The role of the prompt message
398
+ */
399
+ export const DeploymentsRole = {
400
+ System: "system",
401
+ Assistant: "assistant",
402
+ User: "user",
403
+ Exception: "exception",
404
+ Tool: "tool",
405
+ Prompt: "prompt",
406
+ Correction: "correction",
407
+ ExpectedOutput: "expected_output",
408
+ } as const;
409
+ /**
410
+ * The role of the prompt message
411
+ */
412
+ export type DeploymentsRole = ClosedEnum<typeof DeploymentsRole>;
413
+
414
+ /**
415
+ * The type of the content part. Always `file`.
416
+ */
417
+ export const Deployments2DeploymentsType = {
418
+ File: "file",
419
+ } as const;
420
+ /**
421
+ * The type of the content part. Always `file`.
422
+ */
423
+ export type Deployments2DeploymentsType = ClosedEnum<
424
+ typeof Deployments2DeploymentsType
425
+ >;
426
+
427
+ export type Deployments2File = {
428
+ /**
429
+ * The file data as a data URI string in the format 'data:<mime-type>;base64,<base64-encoded-data>'. Example: 'data:image/png;base64,iVBORw0KGgoAAAANS...'
430
+ */
431
+ fileData?: string | undefined;
432
+ /**
433
+ * URL to the file. Only supported by Anthropic Claude models for PDF files.
434
+ */
435
+ uri?: string | undefined;
436
+ /**
437
+ * MIME type of the file (e.g., application/pdf, image/png)
438
+ */
439
+ mimeType?: string | undefined;
440
+ /**
441
+ * The name of the file, used when passing the file to the model as a string.
442
+ */
443
+ filename?: string | undefined;
444
+ };
445
+
446
+ export type Deployments23 = {
447
+ /**
448
+ * The type of the content part. Always `file`.
449
+ */
450
+ type: Deployments2DeploymentsType;
451
+ file: Deployments2File;
452
+ };
453
+
454
+ export const Deployments2Type = {
455
+ ImageUrl: "image_url",
456
+ } as const;
457
+ export type Deployments2Type = ClosedEnum<typeof Deployments2Type>;
458
+
459
+ export type Deployments2ImageUrl = {
460
+ /**
461
+ * The orq.ai id of the image
462
+ */
463
+ id?: string | undefined;
464
+ /**
465
+ * Either a URL of the image or the base64 encoded data URI.
466
+ */
467
+ url: string;
468
+ /**
469
+ * Specifies the detail level of the image. Currently only supported with OpenAI models
470
+ */
471
+ detail?: string | undefined;
472
+ };
473
+
474
+ /**
475
+ * The image part of the prompt message. Only supported with vision models.
476
+ */
477
+ export type Deployments22 = {
478
+ type: Deployments2Type;
479
+ imageUrl: Deployments2ImageUrl;
480
+ };
481
+
482
+ export const Deployments2DeploymentsResponseType = {
483
+ Text: "text",
484
+ } as const;
485
+ export type Deployments2DeploymentsResponseType = ClosedEnum<
486
+ typeof Deployments2DeploymentsResponseType
487
+ >;
488
+
489
+ /**
490
+ * Text content part of a prompt message
491
+ */
492
+ export type Deployments21 = {
493
+ type: Deployments2DeploymentsResponseType;
494
+ text: string;
495
+ };
496
+
497
+ export type DeploymentsContent2 = Deployments21 | Deployments22 | Deployments23;
498
+
499
+ /**
500
+ * 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.
501
+ */
502
+ export type DeploymentsContent =
503
+ | string
504
+ | Array<Deployments21 | Deployments22 | Deployments23>;
505
+
506
+ export const DeploymentsDeploymentsType = {
507
+ Function: "function",
508
+ } as const;
509
+ export type DeploymentsDeploymentsType = ClosedEnum<
510
+ typeof DeploymentsDeploymentsType
511
+ >;
512
+
513
+ export type DeploymentsDeploymentsFunction = {
514
+ name: string;
515
+ /**
516
+ * JSON string arguments for the functions
517
+ */
518
+ arguments: string;
519
+ };
520
+
521
+ export type DeploymentsToolCalls = {
522
+ id?: string | undefined;
523
+ index?: number | undefined;
524
+ type: DeploymentsDeploymentsType;
525
+ function: DeploymentsDeploymentsFunction;
526
+ };
527
+
528
+ export type DeploymentsMessages = {
529
+ /**
530
+ * The role of the prompt message
531
+ */
532
+ role: DeploymentsRole;
533
+ /**
534
+ * 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.
535
+ */
536
+ content: string | Array<Deployments21 | Deployments22 | Deployments23>;
537
+ toolCalls?: Array<DeploymentsToolCalls> | undefined;
538
+ toolCallId?: string | undefined;
539
+ };
540
+
541
+ export type DeploymentsPromptConfig = {
542
+ tools: Array<DeploymentsTools>;
543
+ model: string;
544
+ /**
545
+ * The modality of the model
546
+ */
547
+ modelType: DeploymentsModelType;
548
+ /**
549
+ * Model Parameters: Not all parameters apply to every model
550
+ */
551
+ modelParameters: DeploymentsModelParameters;
552
+ provider: DeploymentsProvider;
553
+ messages: Array<DeploymentsMessages>;
554
+ };
555
+
556
+ export type DeploymentsData = {
557
+ /**
558
+ * Unique identifier for the object.
559
+ */
560
+ id: string;
561
+ /**
562
+ * Date in ISO 8601 format at which the object was created.
563
+ */
564
+ created: string;
565
+ /**
566
+ * Date in ISO 8601 format at which the object was last updated.
567
+ */
568
+ updated: string;
569
+ /**
570
+ * The deployment unique key
571
+ */
572
+ key: string;
573
+ /**
574
+ * An arbitrary string attached to the object. Often useful for displaying to users.
575
+ */
576
+ description: string;
577
+ promptConfig: DeploymentsPromptConfig;
578
+ /**
579
+ * THe version of the deployment
580
+ */
581
+ version: string;
582
+ };
583
+
584
+ /**
585
+ * List all deployments
586
+ */
587
+ export type DeploymentsResponseBody = {
588
+ object: DeploymentsObject;
589
+ data: Array<DeploymentsData>;
590
+ hasMore: boolean;
591
+ };
592
+
593
+ /** @internal */
594
+ export const DeploymentsRequest$inboundSchema: z.ZodType<
595
+ DeploymentsRequest,
596
+ z.ZodTypeDef,
597
+ unknown
598
+ > = z.object({
599
+ limit: z.number().default(10),
600
+ starting_after: z.string().optional(),
601
+ ending_before: z.string().optional(),
602
+ }).transform((v) => {
603
+ return remap$(v, {
604
+ "starting_after": "startingAfter",
605
+ "ending_before": "endingBefore",
606
+ });
607
+ });
608
+
609
+ /** @internal */
610
+ export type DeploymentsRequest$Outbound = {
611
+ limit: number;
612
+ starting_after?: string | undefined;
613
+ ending_before?: string | undefined;
614
+ };
615
+
616
+ /** @internal */
617
+ export const DeploymentsRequest$outboundSchema: z.ZodType<
618
+ DeploymentsRequest$Outbound,
619
+ z.ZodTypeDef,
620
+ DeploymentsRequest
621
+ > = z.object({
622
+ limit: z.number().default(10),
623
+ startingAfter: z.string().optional(),
624
+ endingBefore: z.string().optional(),
625
+ }).transform((v) => {
626
+ return remap$(v, {
627
+ startingAfter: "starting_after",
628
+ endingBefore: "ending_before",
629
+ });
630
+ });
631
+
632
+ /**
633
+ * @internal
634
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
635
+ */
636
+ export namespace DeploymentsRequest$ {
637
+ /** @deprecated use `DeploymentsRequest$inboundSchema` instead. */
638
+ export const inboundSchema = DeploymentsRequest$inboundSchema;
639
+ /** @deprecated use `DeploymentsRequest$outboundSchema` instead. */
640
+ export const outboundSchema = DeploymentsRequest$outboundSchema;
641
+ /** @deprecated use `DeploymentsRequest$Outbound` instead. */
642
+ export type Outbound = DeploymentsRequest$Outbound;
643
+ }
644
+
645
+ export function deploymentsRequestToJSON(
646
+ deploymentsRequest: DeploymentsRequest,
647
+ ): string {
648
+ return JSON.stringify(
649
+ DeploymentsRequest$outboundSchema.parse(deploymentsRequest),
650
+ );
651
+ }
652
+
653
+ export function deploymentsRequestFromJSON(
654
+ jsonString: string,
655
+ ): SafeParseResult<DeploymentsRequest, SDKValidationError> {
656
+ return safeParse(
657
+ jsonString,
658
+ (x) => DeploymentsRequest$inboundSchema.parse(JSON.parse(x)),
659
+ `Failed to parse 'DeploymentsRequest' from JSON`,
660
+ );
661
+ }
662
+
663
+ /** @internal */
664
+ export const DeploymentsObject$inboundSchema: z.ZodNativeEnum<
665
+ typeof DeploymentsObject
666
+ > = z.nativeEnum(DeploymentsObject);
667
+
668
+ /** @internal */
669
+ export const DeploymentsObject$outboundSchema: z.ZodNativeEnum<
670
+ typeof DeploymentsObject
671
+ > = DeploymentsObject$inboundSchema;
672
+
673
+ /**
674
+ * @internal
675
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
676
+ */
677
+ export namespace DeploymentsObject$ {
678
+ /** @deprecated use `DeploymentsObject$inboundSchema` instead. */
679
+ export const inboundSchema = DeploymentsObject$inboundSchema;
680
+ /** @deprecated use `DeploymentsObject$outboundSchema` instead. */
681
+ export const outboundSchema = DeploymentsObject$outboundSchema;
682
+ }
683
+
684
+ /** @internal */
685
+ export const DeploymentsType$inboundSchema: z.ZodNativeEnum<
686
+ typeof DeploymentsType
687
+ > = z.nativeEnum(DeploymentsType);
688
+
689
+ /** @internal */
690
+ export const DeploymentsType$outboundSchema: z.ZodNativeEnum<
691
+ typeof DeploymentsType
692
+ > = DeploymentsType$inboundSchema;
693
+
694
+ /**
695
+ * @internal
696
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
697
+ */
698
+ export namespace DeploymentsType$ {
699
+ /** @deprecated use `DeploymentsType$inboundSchema` instead. */
700
+ export const inboundSchema = DeploymentsType$inboundSchema;
701
+ /** @deprecated use `DeploymentsType$outboundSchema` instead. */
702
+ export const outboundSchema = DeploymentsType$outboundSchema;
703
+ }
704
+
705
+ /** @internal */
706
+ export const DeploymentsDeploymentsResponseType$inboundSchema: z.ZodNativeEnum<
707
+ typeof DeploymentsDeploymentsResponseType
708
+ > = z.nativeEnum(DeploymentsDeploymentsResponseType);
709
+
710
+ /** @internal */
711
+ export const DeploymentsDeploymentsResponseType$outboundSchema: z.ZodNativeEnum<
712
+ typeof DeploymentsDeploymentsResponseType
713
+ > = DeploymentsDeploymentsResponseType$inboundSchema;
714
+
715
+ /**
716
+ * @internal
717
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
718
+ */
719
+ export namespace DeploymentsDeploymentsResponseType$ {
720
+ /** @deprecated use `DeploymentsDeploymentsResponseType$inboundSchema` instead. */
721
+ export const inboundSchema = DeploymentsDeploymentsResponseType$inboundSchema;
722
+ /** @deprecated use `DeploymentsDeploymentsResponseType$outboundSchema` instead. */
723
+ export const outboundSchema =
724
+ DeploymentsDeploymentsResponseType$outboundSchema;
725
+ }
726
+
727
+ /** @internal */
728
+ export const DeploymentsParameters$inboundSchema: z.ZodType<
729
+ DeploymentsParameters,
730
+ z.ZodTypeDef,
731
+ unknown
732
+ > = z.object({
733
+ type: DeploymentsDeploymentsResponseType$inboundSchema,
734
+ properties: z.record(z.any()),
735
+ required: z.array(z.string()).optional(),
736
+ additionalProperties: z.boolean().optional(),
737
+ });
738
+
739
+ /** @internal */
740
+ export type DeploymentsParameters$Outbound = {
741
+ type: string;
742
+ properties: { [k: string]: any };
743
+ required?: Array<string> | undefined;
744
+ additionalProperties?: boolean | undefined;
745
+ };
746
+
747
+ /** @internal */
748
+ export const DeploymentsParameters$outboundSchema: z.ZodType<
749
+ DeploymentsParameters$Outbound,
750
+ z.ZodTypeDef,
751
+ DeploymentsParameters
752
+ > = z.object({
753
+ type: DeploymentsDeploymentsResponseType$outboundSchema,
754
+ properties: z.record(z.any()),
755
+ required: z.array(z.string()).optional(),
756
+ additionalProperties: z.boolean().optional(),
757
+ });
758
+
759
+ /**
760
+ * @internal
761
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
762
+ */
763
+ export namespace DeploymentsParameters$ {
764
+ /** @deprecated use `DeploymentsParameters$inboundSchema` instead. */
765
+ export const inboundSchema = DeploymentsParameters$inboundSchema;
766
+ /** @deprecated use `DeploymentsParameters$outboundSchema` instead. */
767
+ export const outboundSchema = DeploymentsParameters$outboundSchema;
768
+ /** @deprecated use `DeploymentsParameters$Outbound` instead. */
769
+ export type Outbound = DeploymentsParameters$Outbound;
770
+ }
771
+
772
+ export function deploymentsParametersToJSON(
773
+ deploymentsParameters: DeploymentsParameters,
774
+ ): string {
775
+ return JSON.stringify(
776
+ DeploymentsParameters$outboundSchema.parse(deploymentsParameters),
777
+ );
778
+ }
779
+
780
+ export function deploymentsParametersFromJSON(
781
+ jsonString: string,
782
+ ): SafeParseResult<DeploymentsParameters, SDKValidationError> {
783
+ return safeParse(
784
+ jsonString,
785
+ (x) => DeploymentsParameters$inboundSchema.parse(JSON.parse(x)),
786
+ `Failed to parse 'DeploymentsParameters' from JSON`,
787
+ );
788
+ }
789
+
790
+ /** @internal */
791
+ export const DeploymentsFunction$inboundSchema: z.ZodType<
792
+ DeploymentsFunction,
793
+ z.ZodTypeDef,
794
+ unknown
795
+ > = z.object({
796
+ name: z.string(),
797
+ description: z.string().optional(),
798
+ strict: z.boolean().optional(),
799
+ parameters: z.lazy(() => DeploymentsParameters$inboundSchema),
800
+ });
801
+
802
+ /** @internal */
803
+ export type DeploymentsFunction$Outbound = {
804
+ name: string;
805
+ description?: string | undefined;
806
+ strict?: boolean | undefined;
807
+ parameters: DeploymentsParameters$Outbound;
808
+ };
809
+
810
+ /** @internal */
811
+ export const DeploymentsFunction$outboundSchema: z.ZodType<
812
+ DeploymentsFunction$Outbound,
813
+ z.ZodTypeDef,
814
+ DeploymentsFunction
815
+ > = z.object({
816
+ name: z.string(),
817
+ description: z.string().optional(),
818
+ strict: z.boolean().optional(),
819
+ parameters: z.lazy(() => DeploymentsParameters$outboundSchema),
820
+ });
821
+
822
+ /**
823
+ * @internal
824
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
825
+ */
826
+ export namespace DeploymentsFunction$ {
827
+ /** @deprecated use `DeploymentsFunction$inboundSchema` instead. */
828
+ export const inboundSchema = DeploymentsFunction$inboundSchema;
829
+ /** @deprecated use `DeploymentsFunction$outboundSchema` instead. */
830
+ export const outboundSchema = DeploymentsFunction$outboundSchema;
831
+ /** @deprecated use `DeploymentsFunction$Outbound` instead. */
832
+ export type Outbound = DeploymentsFunction$Outbound;
833
+ }
834
+
835
+ export function deploymentsFunctionToJSON(
836
+ deploymentsFunction: DeploymentsFunction,
837
+ ): string {
838
+ return JSON.stringify(
839
+ DeploymentsFunction$outboundSchema.parse(deploymentsFunction),
840
+ );
841
+ }
842
+
843
+ export function deploymentsFunctionFromJSON(
844
+ jsonString: string,
845
+ ): SafeParseResult<DeploymentsFunction, SDKValidationError> {
846
+ return safeParse(
847
+ jsonString,
848
+ (x) => DeploymentsFunction$inboundSchema.parse(JSON.parse(x)),
849
+ `Failed to parse 'DeploymentsFunction' from JSON`,
850
+ );
851
+ }
852
+
853
+ /** @internal */
854
+ export const DeploymentsTools$inboundSchema: z.ZodType<
855
+ DeploymentsTools,
856
+ z.ZodTypeDef,
857
+ unknown
858
+ > = z.object({
859
+ type: DeploymentsType$inboundSchema,
860
+ function: z.lazy(() => DeploymentsFunction$inboundSchema),
861
+ id: z.number().optional(),
862
+ });
863
+
864
+ /** @internal */
865
+ export type DeploymentsTools$Outbound = {
866
+ type: string;
867
+ function: DeploymentsFunction$Outbound;
868
+ id?: number | undefined;
869
+ };
870
+
871
+ /** @internal */
872
+ export const DeploymentsTools$outboundSchema: z.ZodType<
873
+ DeploymentsTools$Outbound,
874
+ z.ZodTypeDef,
875
+ DeploymentsTools
876
+ > = z.object({
877
+ type: DeploymentsType$outboundSchema,
878
+ function: z.lazy(() => DeploymentsFunction$outboundSchema),
879
+ id: z.number().optional(),
880
+ });
881
+
882
+ /**
883
+ * @internal
884
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
885
+ */
886
+ export namespace DeploymentsTools$ {
887
+ /** @deprecated use `DeploymentsTools$inboundSchema` instead. */
888
+ export const inboundSchema = DeploymentsTools$inboundSchema;
889
+ /** @deprecated use `DeploymentsTools$outboundSchema` instead. */
890
+ export const outboundSchema = DeploymentsTools$outboundSchema;
891
+ /** @deprecated use `DeploymentsTools$Outbound` instead. */
892
+ export type Outbound = DeploymentsTools$Outbound;
893
+ }
894
+
895
+ export function deploymentsToolsToJSON(
896
+ deploymentsTools: DeploymentsTools,
897
+ ): string {
898
+ return JSON.stringify(
899
+ DeploymentsTools$outboundSchema.parse(deploymentsTools),
900
+ );
901
+ }
902
+
903
+ export function deploymentsToolsFromJSON(
904
+ jsonString: string,
905
+ ): SafeParseResult<DeploymentsTools, SDKValidationError> {
906
+ return safeParse(
907
+ jsonString,
908
+ (x) => DeploymentsTools$inboundSchema.parse(JSON.parse(x)),
909
+ `Failed to parse 'DeploymentsTools' from JSON`,
910
+ );
911
+ }
912
+
913
+ /** @internal */
914
+ export const DeploymentsModelType$inboundSchema: z.ZodNativeEnum<
915
+ typeof DeploymentsModelType
916
+ > = z.nativeEnum(DeploymentsModelType);
917
+
918
+ /** @internal */
919
+ export const DeploymentsModelType$outboundSchema: z.ZodNativeEnum<
920
+ typeof DeploymentsModelType
921
+ > = DeploymentsModelType$inboundSchema;
922
+
923
+ /**
924
+ * @internal
925
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
926
+ */
927
+ export namespace DeploymentsModelType$ {
928
+ /** @deprecated use `DeploymentsModelType$inboundSchema` instead. */
929
+ export const inboundSchema = DeploymentsModelType$inboundSchema;
930
+ /** @deprecated use `DeploymentsModelType$outboundSchema` instead. */
931
+ export const outboundSchema = DeploymentsModelType$outboundSchema;
932
+ }
933
+
934
+ /** @internal */
935
+ export const DeploymentsFormat$inboundSchema: z.ZodNativeEnum<
936
+ typeof DeploymentsFormat
937
+ > = z.nativeEnum(DeploymentsFormat);
938
+
939
+ /** @internal */
940
+ export const DeploymentsFormat$outboundSchema: z.ZodNativeEnum<
941
+ typeof DeploymentsFormat
942
+ > = DeploymentsFormat$inboundSchema;
943
+
944
+ /**
945
+ * @internal
946
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
947
+ */
948
+ export namespace DeploymentsFormat$ {
949
+ /** @deprecated use `DeploymentsFormat$inboundSchema` instead. */
950
+ export const inboundSchema = DeploymentsFormat$inboundSchema;
951
+ /** @deprecated use `DeploymentsFormat$outboundSchema` instead. */
952
+ export const outboundSchema = DeploymentsFormat$outboundSchema;
953
+ }
954
+
955
+ /** @internal */
956
+ export const DeploymentsResponseFormat6$inboundSchema: z.ZodNativeEnum<
957
+ typeof DeploymentsResponseFormat6
958
+ > = z.nativeEnum(DeploymentsResponseFormat6);
959
+
960
+ /** @internal */
961
+ export const DeploymentsResponseFormat6$outboundSchema: z.ZodNativeEnum<
962
+ typeof DeploymentsResponseFormat6
963
+ > = DeploymentsResponseFormat6$inboundSchema;
964
+
965
+ /**
966
+ * @internal
967
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
968
+ */
969
+ export namespace DeploymentsResponseFormat6$ {
970
+ /** @deprecated use `DeploymentsResponseFormat6$inboundSchema` instead. */
971
+ export const inboundSchema = DeploymentsResponseFormat6$inboundSchema;
972
+ /** @deprecated use `DeploymentsResponseFormat6$outboundSchema` instead. */
973
+ export const outboundSchema = DeploymentsResponseFormat6$outboundSchema;
974
+ }
975
+
976
+ /** @internal */
977
+ export const DeploymentsResponseFormat5$inboundSchema: z.ZodNativeEnum<
978
+ typeof DeploymentsResponseFormat5
979
+ > = z.nativeEnum(DeploymentsResponseFormat5);
980
+
981
+ /** @internal */
982
+ export const DeploymentsResponseFormat5$outboundSchema: z.ZodNativeEnum<
983
+ typeof DeploymentsResponseFormat5
984
+ > = DeploymentsResponseFormat5$inboundSchema;
985
+
986
+ /**
987
+ * @internal
988
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
989
+ */
990
+ export namespace DeploymentsResponseFormat5$ {
991
+ /** @deprecated use `DeploymentsResponseFormat5$inboundSchema` instead. */
992
+ export const inboundSchema = DeploymentsResponseFormat5$inboundSchema;
993
+ /** @deprecated use `DeploymentsResponseFormat5$outboundSchema` instead. */
994
+ export const outboundSchema = DeploymentsResponseFormat5$outboundSchema;
995
+ }
996
+
997
+ /** @internal */
998
+ export const DeploymentsResponseFormat4$inboundSchema: z.ZodNativeEnum<
999
+ typeof DeploymentsResponseFormat4
1000
+ > = z.nativeEnum(DeploymentsResponseFormat4);
1001
+
1002
+ /** @internal */
1003
+ export const DeploymentsResponseFormat4$outboundSchema: z.ZodNativeEnum<
1004
+ typeof DeploymentsResponseFormat4
1005
+ > = DeploymentsResponseFormat4$inboundSchema;
1006
+
1007
+ /**
1008
+ * @internal
1009
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1010
+ */
1011
+ export namespace DeploymentsResponseFormat4$ {
1012
+ /** @deprecated use `DeploymentsResponseFormat4$inboundSchema` instead. */
1013
+ export const inboundSchema = DeploymentsResponseFormat4$inboundSchema;
1014
+ /** @deprecated use `DeploymentsResponseFormat4$outboundSchema` instead. */
1015
+ export const outboundSchema = DeploymentsResponseFormat4$outboundSchema;
1016
+ }
1017
+
1018
+ /** @internal */
1019
+ export const DeploymentsResponseFormatDeploymentsType$inboundSchema:
1020
+ z.ZodNativeEnum<typeof DeploymentsResponseFormatDeploymentsType> = z
1021
+ .nativeEnum(DeploymentsResponseFormatDeploymentsType);
1022
+
1023
+ /** @internal */
1024
+ export const DeploymentsResponseFormatDeploymentsType$outboundSchema:
1025
+ z.ZodNativeEnum<typeof DeploymentsResponseFormatDeploymentsType> =
1026
+ DeploymentsResponseFormatDeploymentsType$inboundSchema;
1027
+
1028
+ /**
1029
+ * @internal
1030
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1031
+ */
1032
+ export namespace DeploymentsResponseFormatDeploymentsType$ {
1033
+ /** @deprecated use `DeploymentsResponseFormatDeploymentsType$inboundSchema` instead. */
1034
+ export const inboundSchema =
1035
+ DeploymentsResponseFormatDeploymentsType$inboundSchema;
1036
+ /** @deprecated use `DeploymentsResponseFormatDeploymentsType$outboundSchema` instead. */
1037
+ export const outboundSchema =
1038
+ DeploymentsResponseFormatDeploymentsType$outboundSchema;
1039
+ }
1040
+
1041
+ /** @internal */
1042
+ export const DeploymentsResponseFormat3$inboundSchema: z.ZodType<
1043
+ DeploymentsResponseFormat3,
1044
+ z.ZodTypeDef,
1045
+ unknown
1046
+ > = z.object({
1047
+ type: DeploymentsResponseFormatDeploymentsType$inboundSchema,
1048
+ });
1049
+
1050
+ /** @internal */
1051
+ export type DeploymentsResponseFormat3$Outbound = {
1052
+ type: string;
1053
+ };
1054
+
1055
+ /** @internal */
1056
+ export const DeploymentsResponseFormat3$outboundSchema: z.ZodType<
1057
+ DeploymentsResponseFormat3$Outbound,
1058
+ z.ZodTypeDef,
1059
+ DeploymentsResponseFormat3
1060
+ > = z.object({
1061
+ type: DeploymentsResponseFormatDeploymentsType$outboundSchema,
1062
+ });
1063
+
1064
+ /**
1065
+ * @internal
1066
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1067
+ */
1068
+ export namespace DeploymentsResponseFormat3$ {
1069
+ /** @deprecated use `DeploymentsResponseFormat3$inboundSchema` instead. */
1070
+ export const inboundSchema = DeploymentsResponseFormat3$inboundSchema;
1071
+ /** @deprecated use `DeploymentsResponseFormat3$outboundSchema` instead. */
1072
+ export const outboundSchema = DeploymentsResponseFormat3$outboundSchema;
1073
+ /** @deprecated use `DeploymentsResponseFormat3$Outbound` instead. */
1074
+ export type Outbound = DeploymentsResponseFormat3$Outbound;
1075
+ }
1076
+
1077
+ export function deploymentsResponseFormat3ToJSON(
1078
+ deploymentsResponseFormat3: DeploymentsResponseFormat3,
1079
+ ): string {
1080
+ return JSON.stringify(
1081
+ DeploymentsResponseFormat3$outboundSchema.parse(deploymentsResponseFormat3),
1082
+ );
1083
+ }
1084
+
1085
+ export function deploymentsResponseFormat3FromJSON(
1086
+ jsonString: string,
1087
+ ): SafeParseResult<DeploymentsResponseFormat3, SDKValidationError> {
1088
+ return safeParse(
1089
+ jsonString,
1090
+ (x) => DeploymentsResponseFormat3$inboundSchema.parse(JSON.parse(x)),
1091
+ `Failed to parse 'DeploymentsResponseFormat3' from JSON`,
1092
+ );
1093
+ }
1094
+
1095
+ /** @internal */
1096
+ export const DeploymentsResponseFormatType$inboundSchema: z.ZodNativeEnum<
1097
+ typeof DeploymentsResponseFormatType
1098
+ > = z.nativeEnum(DeploymentsResponseFormatType);
1099
+
1100
+ /** @internal */
1101
+ export const DeploymentsResponseFormatType$outboundSchema: z.ZodNativeEnum<
1102
+ typeof DeploymentsResponseFormatType
1103
+ > = DeploymentsResponseFormatType$inboundSchema;
1104
+
1105
+ /**
1106
+ * @internal
1107
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1108
+ */
1109
+ export namespace DeploymentsResponseFormatType$ {
1110
+ /** @deprecated use `DeploymentsResponseFormatType$inboundSchema` instead. */
1111
+ export const inboundSchema = DeploymentsResponseFormatType$inboundSchema;
1112
+ /** @deprecated use `DeploymentsResponseFormatType$outboundSchema` instead. */
1113
+ export const outboundSchema = DeploymentsResponseFormatType$outboundSchema;
1114
+ }
1115
+
1116
+ /** @internal */
1117
+ export const DeploymentsResponseFormat2$inboundSchema: z.ZodType<
1118
+ DeploymentsResponseFormat2,
1119
+ z.ZodTypeDef,
1120
+ unknown
1121
+ > = z.object({
1122
+ type: DeploymentsResponseFormatType$inboundSchema,
1123
+ });
1124
+
1125
+ /** @internal */
1126
+ export type DeploymentsResponseFormat2$Outbound = {
1127
+ type: string;
1128
+ };
1129
+
1130
+ /** @internal */
1131
+ export const DeploymentsResponseFormat2$outboundSchema: z.ZodType<
1132
+ DeploymentsResponseFormat2$Outbound,
1133
+ z.ZodTypeDef,
1134
+ DeploymentsResponseFormat2
1135
+ > = z.object({
1136
+ type: DeploymentsResponseFormatType$outboundSchema,
1137
+ });
1138
+
1139
+ /**
1140
+ * @internal
1141
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1142
+ */
1143
+ export namespace DeploymentsResponseFormat2$ {
1144
+ /** @deprecated use `DeploymentsResponseFormat2$inboundSchema` instead. */
1145
+ export const inboundSchema = DeploymentsResponseFormat2$inboundSchema;
1146
+ /** @deprecated use `DeploymentsResponseFormat2$outboundSchema` instead. */
1147
+ export const outboundSchema = DeploymentsResponseFormat2$outboundSchema;
1148
+ /** @deprecated use `DeploymentsResponseFormat2$Outbound` instead. */
1149
+ export type Outbound = DeploymentsResponseFormat2$Outbound;
1150
+ }
1151
+
1152
+ export function deploymentsResponseFormat2ToJSON(
1153
+ deploymentsResponseFormat2: DeploymentsResponseFormat2,
1154
+ ): string {
1155
+ return JSON.stringify(
1156
+ DeploymentsResponseFormat2$outboundSchema.parse(deploymentsResponseFormat2),
1157
+ );
1158
+ }
1159
+
1160
+ export function deploymentsResponseFormat2FromJSON(
1161
+ jsonString: string,
1162
+ ): SafeParseResult<DeploymentsResponseFormat2, SDKValidationError> {
1163
+ return safeParse(
1164
+ jsonString,
1165
+ (x) => DeploymentsResponseFormat2$inboundSchema.parse(JSON.parse(x)),
1166
+ `Failed to parse 'DeploymentsResponseFormat2' from JSON`,
1167
+ );
1168
+ }
1169
+
1170
+ /** @internal */
1171
+ export const DeploymentsResponseFormatDeploymentsResponseType$inboundSchema:
1172
+ z.ZodNativeEnum<typeof DeploymentsResponseFormatDeploymentsResponseType> = z
1173
+ .nativeEnum(DeploymentsResponseFormatDeploymentsResponseType);
1174
+
1175
+ /** @internal */
1176
+ export const DeploymentsResponseFormatDeploymentsResponseType$outboundSchema:
1177
+ z.ZodNativeEnum<typeof DeploymentsResponseFormatDeploymentsResponseType> =
1178
+ DeploymentsResponseFormatDeploymentsResponseType$inboundSchema;
1179
+
1180
+ /**
1181
+ * @internal
1182
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1183
+ */
1184
+ export namespace DeploymentsResponseFormatDeploymentsResponseType$ {
1185
+ /** @deprecated use `DeploymentsResponseFormatDeploymentsResponseType$inboundSchema` instead. */
1186
+ export const inboundSchema =
1187
+ DeploymentsResponseFormatDeploymentsResponseType$inboundSchema;
1188
+ /** @deprecated use `DeploymentsResponseFormatDeploymentsResponseType$outboundSchema` instead. */
1189
+ export const outboundSchema =
1190
+ DeploymentsResponseFormatDeploymentsResponseType$outboundSchema;
1191
+ }
1192
+
1193
+ /** @internal */
1194
+ export const DeploymentsResponseFormatJsonSchema$inboundSchema: z.ZodType<
1195
+ DeploymentsResponseFormatJsonSchema,
1196
+ z.ZodTypeDef,
1197
+ unknown
1198
+ > = z.object({
1199
+ name: z.string(),
1200
+ description: z.string().optional(),
1201
+ strict: z.boolean().optional(),
1202
+ schema: z.record(z.any()),
1203
+ });
1204
+
1205
+ /** @internal */
1206
+ export type DeploymentsResponseFormatJsonSchema$Outbound = {
1207
+ name: string;
1208
+ description?: string | undefined;
1209
+ strict?: boolean | undefined;
1210
+ schema: { [k: string]: any };
1211
+ };
1212
+
1213
+ /** @internal */
1214
+ export const DeploymentsResponseFormatJsonSchema$outboundSchema: z.ZodType<
1215
+ DeploymentsResponseFormatJsonSchema$Outbound,
1216
+ z.ZodTypeDef,
1217
+ DeploymentsResponseFormatJsonSchema
1218
+ > = z.object({
1219
+ name: z.string(),
1220
+ description: z.string().optional(),
1221
+ strict: z.boolean().optional(),
1222
+ schema: z.record(z.any()),
1223
+ });
1224
+
1225
+ /**
1226
+ * @internal
1227
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1228
+ */
1229
+ export namespace DeploymentsResponseFormatJsonSchema$ {
1230
+ /** @deprecated use `DeploymentsResponseFormatJsonSchema$inboundSchema` instead. */
1231
+ export const inboundSchema =
1232
+ DeploymentsResponseFormatJsonSchema$inboundSchema;
1233
+ /** @deprecated use `DeploymentsResponseFormatJsonSchema$outboundSchema` instead. */
1234
+ export const outboundSchema =
1235
+ DeploymentsResponseFormatJsonSchema$outboundSchema;
1236
+ /** @deprecated use `DeploymentsResponseFormatJsonSchema$Outbound` instead. */
1237
+ export type Outbound = DeploymentsResponseFormatJsonSchema$Outbound;
1238
+ }
1239
+
1240
+ export function deploymentsResponseFormatJsonSchemaToJSON(
1241
+ deploymentsResponseFormatJsonSchema: DeploymentsResponseFormatJsonSchema,
1242
+ ): string {
1243
+ return JSON.stringify(
1244
+ DeploymentsResponseFormatJsonSchema$outboundSchema.parse(
1245
+ deploymentsResponseFormatJsonSchema,
1246
+ ),
1247
+ );
1248
+ }
1249
+
1250
+ export function deploymentsResponseFormatJsonSchemaFromJSON(
1251
+ jsonString: string,
1252
+ ): SafeParseResult<DeploymentsResponseFormatJsonSchema, SDKValidationError> {
1253
+ return safeParse(
1254
+ jsonString,
1255
+ (x) =>
1256
+ DeploymentsResponseFormatJsonSchema$inboundSchema.parse(JSON.parse(x)),
1257
+ `Failed to parse 'DeploymentsResponseFormatJsonSchema' from JSON`,
1258
+ );
1259
+ }
1260
+
1261
+ /** @internal */
1262
+ export const DeploymentsResponseFormat1$inboundSchema: z.ZodType<
1263
+ DeploymentsResponseFormat1,
1264
+ z.ZodTypeDef,
1265
+ unknown
1266
+ > = z.object({
1267
+ type: DeploymentsResponseFormatDeploymentsResponseType$inboundSchema,
1268
+ json_schema: z.lazy(() => DeploymentsResponseFormatJsonSchema$inboundSchema),
1269
+ }).transform((v) => {
1270
+ return remap$(v, {
1271
+ "json_schema": "jsonSchema",
1272
+ });
1273
+ });
1274
+
1275
+ /** @internal */
1276
+ export type DeploymentsResponseFormat1$Outbound = {
1277
+ type: string;
1278
+ json_schema: DeploymentsResponseFormatJsonSchema$Outbound;
1279
+ };
1280
+
1281
+ /** @internal */
1282
+ export const DeploymentsResponseFormat1$outboundSchema: z.ZodType<
1283
+ DeploymentsResponseFormat1$Outbound,
1284
+ z.ZodTypeDef,
1285
+ DeploymentsResponseFormat1
1286
+ > = z.object({
1287
+ type: DeploymentsResponseFormatDeploymentsResponseType$outboundSchema,
1288
+ jsonSchema: z.lazy(() => DeploymentsResponseFormatJsonSchema$outboundSchema),
1289
+ }).transform((v) => {
1290
+ return remap$(v, {
1291
+ jsonSchema: "json_schema",
1292
+ });
1293
+ });
1294
+
1295
+ /**
1296
+ * @internal
1297
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1298
+ */
1299
+ export namespace DeploymentsResponseFormat1$ {
1300
+ /** @deprecated use `DeploymentsResponseFormat1$inboundSchema` instead. */
1301
+ export const inboundSchema = DeploymentsResponseFormat1$inboundSchema;
1302
+ /** @deprecated use `DeploymentsResponseFormat1$outboundSchema` instead. */
1303
+ export const outboundSchema = DeploymentsResponseFormat1$outboundSchema;
1304
+ /** @deprecated use `DeploymentsResponseFormat1$Outbound` instead. */
1305
+ export type Outbound = DeploymentsResponseFormat1$Outbound;
1306
+ }
1307
+
1308
+ export function deploymentsResponseFormat1ToJSON(
1309
+ deploymentsResponseFormat1: DeploymentsResponseFormat1,
1310
+ ): string {
1311
+ return JSON.stringify(
1312
+ DeploymentsResponseFormat1$outboundSchema.parse(deploymentsResponseFormat1),
1313
+ );
1314
+ }
1315
+
1316
+ export function deploymentsResponseFormat1FromJSON(
1317
+ jsonString: string,
1318
+ ): SafeParseResult<DeploymentsResponseFormat1, SDKValidationError> {
1319
+ return safeParse(
1320
+ jsonString,
1321
+ (x) => DeploymentsResponseFormat1$inboundSchema.parse(JSON.parse(x)),
1322
+ `Failed to parse 'DeploymentsResponseFormat1' from JSON`,
1323
+ );
1324
+ }
1325
+
1326
+ /** @internal */
1327
+ export const DeploymentsResponseFormat$inboundSchema: z.ZodType<
1328
+ DeploymentsResponseFormat,
1329
+ z.ZodTypeDef,
1330
+ unknown
1331
+ > = z.union([
1332
+ z.lazy(() => DeploymentsResponseFormat1$inboundSchema),
1333
+ z.lazy(() => DeploymentsResponseFormat2$inboundSchema),
1334
+ z.lazy(() => DeploymentsResponseFormat3$inboundSchema),
1335
+ DeploymentsResponseFormat4$inboundSchema,
1336
+ DeploymentsResponseFormat5$inboundSchema,
1337
+ DeploymentsResponseFormat6$inboundSchema,
1338
+ ]);
1339
+
1340
+ /** @internal */
1341
+ export type DeploymentsResponseFormat$Outbound =
1342
+ | DeploymentsResponseFormat1$Outbound
1343
+ | DeploymentsResponseFormat2$Outbound
1344
+ | DeploymentsResponseFormat3$Outbound
1345
+ | string
1346
+ | string
1347
+ | string;
1348
+
1349
+ /** @internal */
1350
+ export const DeploymentsResponseFormat$outboundSchema: z.ZodType<
1351
+ DeploymentsResponseFormat$Outbound,
1352
+ z.ZodTypeDef,
1353
+ DeploymentsResponseFormat
1354
+ > = z.union([
1355
+ z.lazy(() => DeploymentsResponseFormat1$outboundSchema),
1356
+ z.lazy(() => DeploymentsResponseFormat2$outboundSchema),
1357
+ z.lazy(() => DeploymentsResponseFormat3$outboundSchema),
1358
+ DeploymentsResponseFormat4$outboundSchema,
1359
+ DeploymentsResponseFormat5$outboundSchema,
1360
+ DeploymentsResponseFormat6$outboundSchema,
1361
+ ]);
1362
+
1363
+ /**
1364
+ * @internal
1365
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1366
+ */
1367
+ export namespace DeploymentsResponseFormat$ {
1368
+ /** @deprecated use `DeploymentsResponseFormat$inboundSchema` instead. */
1369
+ export const inboundSchema = DeploymentsResponseFormat$inboundSchema;
1370
+ /** @deprecated use `DeploymentsResponseFormat$outboundSchema` instead. */
1371
+ export const outboundSchema = DeploymentsResponseFormat$outboundSchema;
1372
+ /** @deprecated use `DeploymentsResponseFormat$Outbound` instead. */
1373
+ export type Outbound = DeploymentsResponseFormat$Outbound;
1374
+ }
1375
+
1376
+ export function deploymentsResponseFormatToJSON(
1377
+ deploymentsResponseFormat: DeploymentsResponseFormat,
1378
+ ): string {
1379
+ return JSON.stringify(
1380
+ DeploymentsResponseFormat$outboundSchema.parse(deploymentsResponseFormat),
1381
+ );
1382
+ }
1383
+
1384
+ export function deploymentsResponseFormatFromJSON(
1385
+ jsonString: string,
1386
+ ): SafeParseResult<DeploymentsResponseFormat, SDKValidationError> {
1387
+ return safeParse(
1388
+ jsonString,
1389
+ (x) => DeploymentsResponseFormat$inboundSchema.parse(JSON.parse(x)),
1390
+ `Failed to parse 'DeploymentsResponseFormat' from JSON`,
1391
+ );
1392
+ }
1393
+
1394
+ /** @internal */
1395
+ export const DeploymentsPhotoRealVersion$inboundSchema: z.ZodNativeEnum<
1396
+ typeof DeploymentsPhotoRealVersion
1397
+ > = z.nativeEnum(DeploymentsPhotoRealVersion);
1398
+
1399
+ /** @internal */
1400
+ export const DeploymentsPhotoRealVersion$outboundSchema: z.ZodNativeEnum<
1401
+ typeof DeploymentsPhotoRealVersion
1402
+ > = DeploymentsPhotoRealVersion$inboundSchema;
1403
+
1404
+ /**
1405
+ * @internal
1406
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1407
+ */
1408
+ export namespace DeploymentsPhotoRealVersion$ {
1409
+ /** @deprecated use `DeploymentsPhotoRealVersion$inboundSchema` instead. */
1410
+ export const inboundSchema = DeploymentsPhotoRealVersion$inboundSchema;
1411
+ /** @deprecated use `DeploymentsPhotoRealVersion$outboundSchema` instead. */
1412
+ export const outboundSchema = DeploymentsPhotoRealVersion$outboundSchema;
1413
+ }
1414
+
1415
+ /** @internal */
1416
+ export const DeploymentsEncodingFormat$inboundSchema: z.ZodNativeEnum<
1417
+ typeof DeploymentsEncodingFormat
1418
+ > = z.nativeEnum(DeploymentsEncodingFormat);
1419
+
1420
+ /** @internal */
1421
+ export const DeploymentsEncodingFormat$outboundSchema: z.ZodNativeEnum<
1422
+ typeof DeploymentsEncodingFormat
1423
+ > = DeploymentsEncodingFormat$inboundSchema;
1424
+
1425
+ /**
1426
+ * @internal
1427
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1428
+ */
1429
+ export namespace DeploymentsEncodingFormat$ {
1430
+ /** @deprecated use `DeploymentsEncodingFormat$inboundSchema` instead. */
1431
+ export const inboundSchema = DeploymentsEncodingFormat$inboundSchema;
1432
+ /** @deprecated use `DeploymentsEncodingFormat$outboundSchema` instead. */
1433
+ export const outboundSchema = DeploymentsEncodingFormat$outboundSchema;
1434
+ }
1435
+
1436
+ /** @internal */
1437
+ export const DeploymentsReasoningEffort$inboundSchema: z.ZodNativeEnum<
1438
+ typeof DeploymentsReasoningEffort
1439
+ > = z.nativeEnum(DeploymentsReasoningEffort);
1440
+
1441
+ /** @internal */
1442
+ export const DeploymentsReasoningEffort$outboundSchema: z.ZodNativeEnum<
1443
+ typeof DeploymentsReasoningEffort
1444
+ > = DeploymentsReasoningEffort$inboundSchema;
1445
+
1446
+ /**
1447
+ * @internal
1448
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1449
+ */
1450
+ export namespace DeploymentsReasoningEffort$ {
1451
+ /** @deprecated use `DeploymentsReasoningEffort$inboundSchema` instead. */
1452
+ export const inboundSchema = DeploymentsReasoningEffort$inboundSchema;
1453
+ /** @deprecated use `DeploymentsReasoningEffort$outboundSchema` instead. */
1454
+ export const outboundSchema = DeploymentsReasoningEffort$outboundSchema;
1455
+ }
1456
+
1457
+ /** @internal */
1458
+ export const DeploymentsVerbosity$inboundSchema: z.ZodNativeEnum<
1459
+ typeof DeploymentsVerbosity
1460
+ > = z.nativeEnum(DeploymentsVerbosity);
1461
+
1462
+ /** @internal */
1463
+ export const DeploymentsVerbosity$outboundSchema: z.ZodNativeEnum<
1464
+ typeof DeploymentsVerbosity
1465
+ > = DeploymentsVerbosity$inboundSchema;
1466
+
1467
+ /**
1468
+ * @internal
1469
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1470
+ */
1471
+ export namespace DeploymentsVerbosity$ {
1472
+ /** @deprecated use `DeploymentsVerbosity$inboundSchema` instead. */
1473
+ export const inboundSchema = DeploymentsVerbosity$inboundSchema;
1474
+ /** @deprecated use `DeploymentsVerbosity$outboundSchema` instead. */
1475
+ export const outboundSchema = DeploymentsVerbosity$outboundSchema;
1476
+ }
1477
+
1478
+ /** @internal */
1479
+ export const DeploymentsModelParameters$inboundSchema: z.ZodType<
1480
+ DeploymentsModelParameters,
1481
+ z.ZodTypeDef,
1482
+ unknown
1483
+ > = z.object({
1484
+ temperature: z.number().optional(),
1485
+ maxTokens: z.number().optional(),
1486
+ topK: z.number().optional(),
1487
+ topP: z.number().optional(),
1488
+ frequencyPenalty: z.number().optional(),
1489
+ presencePenalty: z.number().optional(),
1490
+ numImages: z.number().optional(),
1491
+ seed: z.number().optional(),
1492
+ format: DeploymentsFormat$inboundSchema.optional(),
1493
+ dimensions: z.string().optional(),
1494
+ quality: z.string().optional(),
1495
+ style: z.string().optional(),
1496
+ responseFormat: z.nullable(
1497
+ z.union([
1498
+ z.lazy(() => DeploymentsResponseFormat1$inboundSchema),
1499
+ z.lazy(() => DeploymentsResponseFormat2$inboundSchema),
1500
+ z.lazy(() => DeploymentsResponseFormat3$inboundSchema),
1501
+ DeploymentsResponseFormat4$inboundSchema,
1502
+ DeploymentsResponseFormat5$inboundSchema,
1503
+ DeploymentsResponseFormat6$inboundSchema,
1504
+ ]),
1505
+ ).optional(),
1506
+ photoRealVersion: DeploymentsPhotoRealVersion$inboundSchema.optional(),
1507
+ encoding_format: DeploymentsEncodingFormat$inboundSchema.optional(),
1508
+ reasoningEffort: DeploymentsReasoningEffort$inboundSchema.optional(),
1509
+ budgetTokens: z.number().optional(),
1510
+ verbosity: DeploymentsVerbosity$inboundSchema.optional(),
1511
+ }).transform((v) => {
1512
+ return remap$(v, {
1513
+ "encoding_format": "encodingFormat",
1514
+ });
1515
+ });
1516
+
1517
+ /** @internal */
1518
+ export type DeploymentsModelParameters$Outbound = {
1519
+ temperature?: number | undefined;
1520
+ maxTokens?: number | undefined;
1521
+ topK?: number | undefined;
1522
+ topP?: number | undefined;
1523
+ frequencyPenalty?: number | undefined;
1524
+ presencePenalty?: number | undefined;
1525
+ numImages?: number | undefined;
1526
+ seed?: number | undefined;
1527
+ format?: string | undefined;
1528
+ dimensions?: string | undefined;
1529
+ quality?: string | undefined;
1530
+ style?: string | undefined;
1531
+ responseFormat?:
1532
+ | DeploymentsResponseFormat1$Outbound
1533
+ | DeploymentsResponseFormat2$Outbound
1534
+ | DeploymentsResponseFormat3$Outbound
1535
+ | string
1536
+ | string
1537
+ | string
1538
+ | null
1539
+ | undefined;
1540
+ photoRealVersion?: string | undefined;
1541
+ encoding_format?: string | undefined;
1542
+ reasoningEffort?: string | undefined;
1543
+ budgetTokens?: number | undefined;
1544
+ verbosity?: string | undefined;
1545
+ };
1546
+
1547
+ /** @internal */
1548
+ export const DeploymentsModelParameters$outboundSchema: z.ZodType<
1549
+ DeploymentsModelParameters$Outbound,
1550
+ z.ZodTypeDef,
1551
+ DeploymentsModelParameters
1552
+ > = z.object({
1553
+ temperature: z.number().optional(),
1554
+ maxTokens: z.number().optional(),
1555
+ topK: z.number().optional(),
1556
+ topP: z.number().optional(),
1557
+ frequencyPenalty: z.number().optional(),
1558
+ presencePenalty: z.number().optional(),
1559
+ numImages: z.number().optional(),
1560
+ seed: z.number().optional(),
1561
+ format: DeploymentsFormat$outboundSchema.optional(),
1562
+ dimensions: z.string().optional(),
1563
+ quality: z.string().optional(),
1564
+ style: z.string().optional(),
1565
+ responseFormat: z.nullable(
1566
+ z.union([
1567
+ z.lazy(() => DeploymentsResponseFormat1$outboundSchema),
1568
+ z.lazy(() => DeploymentsResponseFormat2$outboundSchema),
1569
+ z.lazy(() => DeploymentsResponseFormat3$outboundSchema),
1570
+ DeploymentsResponseFormat4$outboundSchema,
1571
+ DeploymentsResponseFormat5$outboundSchema,
1572
+ DeploymentsResponseFormat6$outboundSchema,
1573
+ ]),
1574
+ ).optional(),
1575
+ photoRealVersion: DeploymentsPhotoRealVersion$outboundSchema.optional(),
1576
+ encodingFormat: DeploymentsEncodingFormat$outboundSchema.optional(),
1577
+ reasoningEffort: DeploymentsReasoningEffort$outboundSchema.optional(),
1578
+ budgetTokens: z.number().optional(),
1579
+ verbosity: DeploymentsVerbosity$outboundSchema.optional(),
1580
+ }).transform((v) => {
1581
+ return remap$(v, {
1582
+ encodingFormat: "encoding_format",
1583
+ });
1584
+ });
1585
+
1586
+ /**
1587
+ * @internal
1588
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1589
+ */
1590
+ export namespace DeploymentsModelParameters$ {
1591
+ /** @deprecated use `DeploymentsModelParameters$inboundSchema` instead. */
1592
+ export const inboundSchema = DeploymentsModelParameters$inboundSchema;
1593
+ /** @deprecated use `DeploymentsModelParameters$outboundSchema` instead. */
1594
+ export const outboundSchema = DeploymentsModelParameters$outboundSchema;
1595
+ /** @deprecated use `DeploymentsModelParameters$Outbound` instead. */
1596
+ export type Outbound = DeploymentsModelParameters$Outbound;
1597
+ }
1598
+
1599
+ export function deploymentsModelParametersToJSON(
1600
+ deploymentsModelParameters: DeploymentsModelParameters,
1601
+ ): string {
1602
+ return JSON.stringify(
1603
+ DeploymentsModelParameters$outboundSchema.parse(deploymentsModelParameters),
1604
+ );
1605
+ }
1606
+
1607
+ export function deploymentsModelParametersFromJSON(
1608
+ jsonString: string,
1609
+ ): SafeParseResult<DeploymentsModelParameters, SDKValidationError> {
1610
+ return safeParse(
1611
+ jsonString,
1612
+ (x) => DeploymentsModelParameters$inboundSchema.parse(JSON.parse(x)),
1613
+ `Failed to parse 'DeploymentsModelParameters' from JSON`,
1614
+ );
1615
+ }
1616
+
1617
+ /** @internal */
1618
+ export const DeploymentsProvider$inboundSchema: z.ZodNativeEnum<
1619
+ typeof DeploymentsProvider
1620
+ > = z.nativeEnum(DeploymentsProvider);
1621
+
1622
+ /** @internal */
1623
+ export const DeploymentsProvider$outboundSchema: z.ZodNativeEnum<
1624
+ typeof DeploymentsProvider
1625
+ > = DeploymentsProvider$inboundSchema;
1626
+
1627
+ /**
1628
+ * @internal
1629
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1630
+ */
1631
+ export namespace DeploymentsProvider$ {
1632
+ /** @deprecated use `DeploymentsProvider$inboundSchema` instead. */
1633
+ export const inboundSchema = DeploymentsProvider$inboundSchema;
1634
+ /** @deprecated use `DeploymentsProvider$outboundSchema` instead. */
1635
+ export const outboundSchema = DeploymentsProvider$outboundSchema;
1636
+ }
1637
+
1638
+ /** @internal */
1639
+ export const DeploymentsRole$inboundSchema: z.ZodNativeEnum<
1640
+ typeof DeploymentsRole
1641
+ > = z.nativeEnum(DeploymentsRole);
1642
+
1643
+ /** @internal */
1644
+ export const DeploymentsRole$outboundSchema: z.ZodNativeEnum<
1645
+ typeof DeploymentsRole
1646
+ > = DeploymentsRole$inboundSchema;
1647
+
1648
+ /**
1649
+ * @internal
1650
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1651
+ */
1652
+ export namespace DeploymentsRole$ {
1653
+ /** @deprecated use `DeploymentsRole$inboundSchema` instead. */
1654
+ export const inboundSchema = DeploymentsRole$inboundSchema;
1655
+ /** @deprecated use `DeploymentsRole$outboundSchema` instead. */
1656
+ export const outboundSchema = DeploymentsRole$outboundSchema;
1657
+ }
1658
+
1659
+ /** @internal */
1660
+ export const Deployments2DeploymentsType$inboundSchema: z.ZodNativeEnum<
1661
+ typeof Deployments2DeploymentsType
1662
+ > = z.nativeEnum(Deployments2DeploymentsType);
1663
+
1664
+ /** @internal */
1665
+ export const Deployments2DeploymentsType$outboundSchema: z.ZodNativeEnum<
1666
+ typeof Deployments2DeploymentsType
1667
+ > = Deployments2DeploymentsType$inboundSchema;
1668
+
1669
+ /**
1670
+ * @internal
1671
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1672
+ */
1673
+ export namespace Deployments2DeploymentsType$ {
1674
+ /** @deprecated use `Deployments2DeploymentsType$inboundSchema` instead. */
1675
+ export const inboundSchema = Deployments2DeploymentsType$inboundSchema;
1676
+ /** @deprecated use `Deployments2DeploymentsType$outboundSchema` instead. */
1677
+ export const outboundSchema = Deployments2DeploymentsType$outboundSchema;
1678
+ }
1679
+
1680
+ /** @internal */
1681
+ export const Deployments2File$inboundSchema: z.ZodType<
1682
+ Deployments2File,
1683
+ z.ZodTypeDef,
1684
+ unknown
1685
+ > = z.object({
1686
+ file_data: z.string().optional(),
1687
+ uri: z.string().optional(),
1688
+ mimeType: z.string().optional(),
1689
+ filename: z.string().optional(),
1690
+ }).transform((v) => {
1691
+ return remap$(v, {
1692
+ "file_data": "fileData",
1693
+ });
1694
+ });
1695
+
1696
+ /** @internal */
1697
+ export type Deployments2File$Outbound = {
1698
+ file_data?: string | undefined;
1699
+ uri?: string | undefined;
1700
+ mimeType?: string | undefined;
1701
+ filename?: string | undefined;
1702
+ };
1703
+
1704
+ /** @internal */
1705
+ export const Deployments2File$outboundSchema: z.ZodType<
1706
+ Deployments2File$Outbound,
1707
+ z.ZodTypeDef,
1708
+ Deployments2File
1709
+ > = z.object({
1710
+ fileData: z.string().optional(),
1711
+ uri: z.string().optional(),
1712
+ mimeType: z.string().optional(),
1713
+ filename: z.string().optional(),
1714
+ }).transform((v) => {
1715
+ return remap$(v, {
1716
+ fileData: "file_data",
1717
+ });
1718
+ });
1719
+
1720
+ /**
1721
+ * @internal
1722
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1723
+ */
1724
+ export namespace Deployments2File$ {
1725
+ /** @deprecated use `Deployments2File$inboundSchema` instead. */
1726
+ export const inboundSchema = Deployments2File$inboundSchema;
1727
+ /** @deprecated use `Deployments2File$outboundSchema` instead. */
1728
+ export const outboundSchema = Deployments2File$outboundSchema;
1729
+ /** @deprecated use `Deployments2File$Outbound` instead. */
1730
+ export type Outbound = Deployments2File$Outbound;
1731
+ }
1732
+
1733
+ export function deployments2FileToJSON(
1734
+ deployments2File: Deployments2File,
1735
+ ): string {
1736
+ return JSON.stringify(
1737
+ Deployments2File$outboundSchema.parse(deployments2File),
1738
+ );
1739
+ }
1740
+
1741
+ export function deployments2FileFromJSON(
1742
+ jsonString: string,
1743
+ ): SafeParseResult<Deployments2File, SDKValidationError> {
1744
+ return safeParse(
1745
+ jsonString,
1746
+ (x) => Deployments2File$inboundSchema.parse(JSON.parse(x)),
1747
+ `Failed to parse 'Deployments2File' from JSON`,
1748
+ );
1749
+ }
1750
+
1751
+ /** @internal */
1752
+ export const Deployments23$inboundSchema: z.ZodType<
1753
+ Deployments23,
1754
+ z.ZodTypeDef,
1755
+ unknown
1756
+ > = z.object({
1757
+ type: Deployments2DeploymentsType$inboundSchema,
1758
+ file: z.lazy(() => Deployments2File$inboundSchema),
1759
+ });
1760
+
1761
+ /** @internal */
1762
+ export type Deployments23$Outbound = {
1763
+ type: string;
1764
+ file: Deployments2File$Outbound;
1765
+ };
1766
+
1767
+ /** @internal */
1768
+ export const Deployments23$outboundSchema: z.ZodType<
1769
+ Deployments23$Outbound,
1770
+ z.ZodTypeDef,
1771
+ Deployments23
1772
+ > = z.object({
1773
+ type: Deployments2DeploymentsType$outboundSchema,
1774
+ file: z.lazy(() => Deployments2File$outboundSchema),
1775
+ });
1776
+
1777
+ /**
1778
+ * @internal
1779
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1780
+ */
1781
+ export namespace Deployments23$ {
1782
+ /** @deprecated use `Deployments23$inboundSchema` instead. */
1783
+ export const inboundSchema = Deployments23$inboundSchema;
1784
+ /** @deprecated use `Deployments23$outboundSchema` instead. */
1785
+ export const outboundSchema = Deployments23$outboundSchema;
1786
+ /** @deprecated use `Deployments23$Outbound` instead. */
1787
+ export type Outbound = Deployments23$Outbound;
1788
+ }
1789
+
1790
+ export function deployments23ToJSON(deployments23: Deployments23): string {
1791
+ return JSON.stringify(Deployments23$outboundSchema.parse(deployments23));
1792
+ }
1793
+
1794
+ export function deployments23FromJSON(
1795
+ jsonString: string,
1796
+ ): SafeParseResult<Deployments23, SDKValidationError> {
1797
+ return safeParse(
1798
+ jsonString,
1799
+ (x) => Deployments23$inboundSchema.parse(JSON.parse(x)),
1800
+ `Failed to parse 'Deployments23' from JSON`,
1801
+ );
1802
+ }
1803
+
1804
+ /** @internal */
1805
+ export const Deployments2Type$inboundSchema: z.ZodNativeEnum<
1806
+ typeof Deployments2Type
1807
+ > = z.nativeEnum(Deployments2Type);
1808
+
1809
+ /** @internal */
1810
+ export const Deployments2Type$outboundSchema: z.ZodNativeEnum<
1811
+ typeof Deployments2Type
1812
+ > = Deployments2Type$inboundSchema;
1813
+
1814
+ /**
1815
+ * @internal
1816
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1817
+ */
1818
+ export namespace Deployments2Type$ {
1819
+ /** @deprecated use `Deployments2Type$inboundSchema` instead. */
1820
+ export const inboundSchema = Deployments2Type$inboundSchema;
1821
+ /** @deprecated use `Deployments2Type$outboundSchema` instead. */
1822
+ export const outboundSchema = Deployments2Type$outboundSchema;
1823
+ }
1824
+
1825
+ /** @internal */
1826
+ export const Deployments2ImageUrl$inboundSchema: z.ZodType<
1827
+ Deployments2ImageUrl,
1828
+ z.ZodTypeDef,
1829
+ unknown
1830
+ > = z.object({
1831
+ id: z.string().optional(),
1832
+ url: z.string(),
1833
+ detail: z.string().optional(),
1834
+ });
1835
+
1836
+ /** @internal */
1837
+ export type Deployments2ImageUrl$Outbound = {
1838
+ id?: string | undefined;
1839
+ url: string;
1840
+ detail?: string | undefined;
1841
+ };
1842
+
1843
+ /** @internal */
1844
+ export const Deployments2ImageUrl$outboundSchema: z.ZodType<
1845
+ Deployments2ImageUrl$Outbound,
1846
+ z.ZodTypeDef,
1847
+ Deployments2ImageUrl
1848
+ > = z.object({
1849
+ id: z.string().optional(),
1850
+ url: z.string(),
1851
+ detail: z.string().optional(),
1852
+ });
1853
+
1854
+ /**
1855
+ * @internal
1856
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1857
+ */
1858
+ export namespace Deployments2ImageUrl$ {
1859
+ /** @deprecated use `Deployments2ImageUrl$inboundSchema` instead. */
1860
+ export const inboundSchema = Deployments2ImageUrl$inboundSchema;
1861
+ /** @deprecated use `Deployments2ImageUrl$outboundSchema` instead. */
1862
+ export const outboundSchema = Deployments2ImageUrl$outboundSchema;
1863
+ /** @deprecated use `Deployments2ImageUrl$Outbound` instead. */
1864
+ export type Outbound = Deployments2ImageUrl$Outbound;
1865
+ }
1866
+
1867
+ export function deployments2ImageUrlToJSON(
1868
+ deployments2ImageUrl: Deployments2ImageUrl,
1869
+ ): string {
1870
+ return JSON.stringify(
1871
+ Deployments2ImageUrl$outboundSchema.parse(deployments2ImageUrl),
1872
+ );
1873
+ }
1874
+
1875
+ export function deployments2ImageUrlFromJSON(
1876
+ jsonString: string,
1877
+ ): SafeParseResult<Deployments2ImageUrl, SDKValidationError> {
1878
+ return safeParse(
1879
+ jsonString,
1880
+ (x) => Deployments2ImageUrl$inboundSchema.parse(JSON.parse(x)),
1881
+ `Failed to parse 'Deployments2ImageUrl' from JSON`,
1882
+ );
1883
+ }
1884
+
1885
+ /** @internal */
1886
+ export const Deployments22$inboundSchema: z.ZodType<
1887
+ Deployments22,
1888
+ z.ZodTypeDef,
1889
+ unknown
1890
+ > = z.object({
1891
+ type: Deployments2Type$inboundSchema,
1892
+ image_url: z.lazy(() => Deployments2ImageUrl$inboundSchema),
1893
+ }).transform((v) => {
1894
+ return remap$(v, {
1895
+ "image_url": "imageUrl",
1896
+ });
1897
+ });
1898
+
1899
+ /** @internal */
1900
+ export type Deployments22$Outbound = {
1901
+ type: string;
1902
+ image_url: Deployments2ImageUrl$Outbound;
1903
+ };
1904
+
1905
+ /** @internal */
1906
+ export const Deployments22$outboundSchema: z.ZodType<
1907
+ Deployments22$Outbound,
1908
+ z.ZodTypeDef,
1909
+ Deployments22
1910
+ > = z.object({
1911
+ type: Deployments2Type$outboundSchema,
1912
+ imageUrl: z.lazy(() => Deployments2ImageUrl$outboundSchema),
1913
+ }).transform((v) => {
1914
+ return remap$(v, {
1915
+ imageUrl: "image_url",
1916
+ });
1917
+ });
1918
+
1919
+ /**
1920
+ * @internal
1921
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1922
+ */
1923
+ export namespace Deployments22$ {
1924
+ /** @deprecated use `Deployments22$inboundSchema` instead. */
1925
+ export const inboundSchema = Deployments22$inboundSchema;
1926
+ /** @deprecated use `Deployments22$outboundSchema` instead. */
1927
+ export const outboundSchema = Deployments22$outboundSchema;
1928
+ /** @deprecated use `Deployments22$Outbound` instead. */
1929
+ export type Outbound = Deployments22$Outbound;
1930
+ }
1931
+
1932
+ export function deployments22ToJSON(deployments22: Deployments22): string {
1933
+ return JSON.stringify(Deployments22$outboundSchema.parse(deployments22));
1934
+ }
1935
+
1936
+ export function deployments22FromJSON(
1937
+ jsonString: string,
1938
+ ): SafeParseResult<Deployments22, SDKValidationError> {
1939
+ return safeParse(
1940
+ jsonString,
1941
+ (x) => Deployments22$inboundSchema.parse(JSON.parse(x)),
1942
+ `Failed to parse 'Deployments22' from JSON`,
1943
+ );
1944
+ }
1945
+
1946
+ /** @internal */
1947
+ export const Deployments2DeploymentsResponseType$inboundSchema: z.ZodNativeEnum<
1948
+ typeof Deployments2DeploymentsResponseType
1949
+ > = z.nativeEnum(Deployments2DeploymentsResponseType);
1950
+
1951
+ /** @internal */
1952
+ export const Deployments2DeploymentsResponseType$outboundSchema:
1953
+ z.ZodNativeEnum<typeof Deployments2DeploymentsResponseType> =
1954
+ Deployments2DeploymentsResponseType$inboundSchema;
1955
+
1956
+ /**
1957
+ * @internal
1958
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1959
+ */
1960
+ export namespace Deployments2DeploymentsResponseType$ {
1961
+ /** @deprecated use `Deployments2DeploymentsResponseType$inboundSchema` instead. */
1962
+ export const inboundSchema =
1963
+ Deployments2DeploymentsResponseType$inboundSchema;
1964
+ /** @deprecated use `Deployments2DeploymentsResponseType$outboundSchema` instead. */
1965
+ export const outboundSchema =
1966
+ Deployments2DeploymentsResponseType$outboundSchema;
1967
+ }
1968
+
1969
+ /** @internal */
1970
+ export const Deployments21$inboundSchema: z.ZodType<
1971
+ Deployments21,
1972
+ z.ZodTypeDef,
1973
+ unknown
1974
+ > = z.object({
1975
+ type: Deployments2DeploymentsResponseType$inboundSchema,
1976
+ text: z.string(),
1977
+ });
1978
+
1979
+ /** @internal */
1980
+ export type Deployments21$Outbound = {
1981
+ type: string;
1982
+ text: string;
1983
+ };
1984
+
1985
+ /** @internal */
1986
+ export const Deployments21$outboundSchema: z.ZodType<
1987
+ Deployments21$Outbound,
1988
+ z.ZodTypeDef,
1989
+ Deployments21
1990
+ > = z.object({
1991
+ type: Deployments2DeploymentsResponseType$outboundSchema,
1992
+ text: z.string(),
1993
+ });
1994
+
1995
+ /**
1996
+ * @internal
1997
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1998
+ */
1999
+ export namespace Deployments21$ {
2000
+ /** @deprecated use `Deployments21$inboundSchema` instead. */
2001
+ export const inboundSchema = Deployments21$inboundSchema;
2002
+ /** @deprecated use `Deployments21$outboundSchema` instead. */
2003
+ export const outboundSchema = Deployments21$outboundSchema;
2004
+ /** @deprecated use `Deployments21$Outbound` instead. */
2005
+ export type Outbound = Deployments21$Outbound;
2006
+ }
2007
+
2008
+ export function deployments21ToJSON(deployments21: Deployments21): string {
2009
+ return JSON.stringify(Deployments21$outboundSchema.parse(deployments21));
2010
+ }
2011
+
2012
+ export function deployments21FromJSON(
2013
+ jsonString: string,
2014
+ ): SafeParseResult<Deployments21, SDKValidationError> {
2015
+ return safeParse(
2016
+ jsonString,
2017
+ (x) => Deployments21$inboundSchema.parse(JSON.parse(x)),
2018
+ `Failed to parse 'Deployments21' from JSON`,
2019
+ );
2020
+ }
2021
+
2022
+ /** @internal */
2023
+ export const DeploymentsContent2$inboundSchema: z.ZodType<
2024
+ DeploymentsContent2,
2025
+ z.ZodTypeDef,
2026
+ unknown
2027
+ > = z.union([
2028
+ z.lazy(() => Deployments21$inboundSchema),
2029
+ z.lazy(() => Deployments22$inboundSchema),
2030
+ z.lazy(() => Deployments23$inboundSchema),
2031
+ ]);
2032
+
2033
+ /** @internal */
2034
+ export type DeploymentsContent2$Outbound =
2035
+ | Deployments21$Outbound
2036
+ | Deployments22$Outbound
2037
+ | Deployments23$Outbound;
2038
+
2039
+ /** @internal */
2040
+ export const DeploymentsContent2$outboundSchema: z.ZodType<
2041
+ DeploymentsContent2$Outbound,
2042
+ z.ZodTypeDef,
2043
+ DeploymentsContent2
2044
+ > = z.union([
2045
+ z.lazy(() => Deployments21$outboundSchema),
2046
+ z.lazy(() => Deployments22$outboundSchema),
2047
+ z.lazy(() => Deployments23$outboundSchema),
2048
+ ]);
2049
+
2050
+ /**
2051
+ * @internal
2052
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2053
+ */
2054
+ export namespace DeploymentsContent2$ {
2055
+ /** @deprecated use `DeploymentsContent2$inboundSchema` instead. */
2056
+ export const inboundSchema = DeploymentsContent2$inboundSchema;
2057
+ /** @deprecated use `DeploymentsContent2$outboundSchema` instead. */
2058
+ export const outboundSchema = DeploymentsContent2$outboundSchema;
2059
+ /** @deprecated use `DeploymentsContent2$Outbound` instead. */
2060
+ export type Outbound = DeploymentsContent2$Outbound;
2061
+ }
2062
+
2063
+ export function deploymentsContent2ToJSON(
2064
+ deploymentsContent2: DeploymentsContent2,
2065
+ ): string {
2066
+ return JSON.stringify(
2067
+ DeploymentsContent2$outboundSchema.parse(deploymentsContent2),
2068
+ );
2069
+ }
2070
+
2071
+ export function deploymentsContent2FromJSON(
2072
+ jsonString: string,
2073
+ ): SafeParseResult<DeploymentsContent2, SDKValidationError> {
2074
+ return safeParse(
2075
+ jsonString,
2076
+ (x) => DeploymentsContent2$inboundSchema.parse(JSON.parse(x)),
2077
+ `Failed to parse 'DeploymentsContent2' from JSON`,
2078
+ );
2079
+ }
2080
+
2081
+ /** @internal */
2082
+ export const DeploymentsContent$inboundSchema: z.ZodType<
2083
+ DeploymentsContent,
2084
+ z.ZodTypeDef,
2085
+ unknown
2086
+ > = z.union([
2087
+ z.string(),
2088
+ z.array(z.union([
2089
+ z.lazy(() => Deployments21$inboundSchema),
2090
+ z.lazy(() => Deployments22$inboundSchema),
2091
+ z.lazy(() => Deployments23$inboundSchema),
2092
+ ])),
2093
+ ]);
2094
+
2095
+ /** @internal */
2096
+ export type DeploymentsContent$Outbound =
2097
+ | string
2098
+ | Array<
2099
+ Deployments21$Outbound | Deployments22$Outbound | Deployments23$Outbound
2100
+ >;
2101
+
2102
+ /** @internal */
2103
+ export const DeploymentsContent$outboundSchema: z.ZodType<
2104
+ DeploymentsContent$Outbound,
2105
+ z.ZodTypeDef,
2106
+ DeploymentsContent
2107
+ > = z.union([
2108
+ z.string(),
2109
+ z.array(z.union([
2110
+ z.lazy(() => Deployments21$outboundSchema),
2111
+ z.lazy(() => Deployments22$outboundSchema),
2112
+ z.lazy(() => Deployments23$outboundSchema),
2113
+ ])),
2114
+ ]);
2115
+
2116
+ /**
2117
+ * @internal
2118
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2119
+ */
2120
+ export namespace DeploymentsContent$ {
2121
+ /** @deprecated use `DeploymentsContent$inboundSchema` instead. */
2122
+ export const inboundSchema = DeploymentsContent$inboundSchema;
2123
+ /** @deprecated use `DeploymentsContent$outboundSchema` instead. */
2124
+ export const outboundSchema = DeploymentsContent$outboundSchema;
2125
+ /** @deprecated use `DeploymentsContent$Outbound` instead. */
2126
+ export type Outbound = DeploymentsContent$Outbound;
2127
+ }
2128
+
2129
+ export function deploymentsContentToJSON(
2130
+ deploymentsContent: DeploymentsContent,
2131
+ ): string {
2132
+ return JSON.stringify(
2133
+ DeploymentsContent$outboundSchema.parse(deploymentsContent),
2134
+ );
2135
+ }
2136
+
2137
+ export function deploymentsContentFromJSON(
2138
+ jsonString: string,
2139
+ ): SafeParseResult<DeploymentsContent, SDKValidationError> {
2140
+ return safeParse(
2141
+ jsonString,
2142
+ (x) => DeploymentsContent$inboundSchema.parse(JSON.parse(x)),
2143
+ `Failed to parse 'DeploymentsContent' from JSON`,
2144
+ );
2145
+ }
2146
+
2147
+ /** @internal */
2148
+ export const DeploymentsDeploymentsType$inboundSchema: z.ZodNativeEnum<
2149
+ typeof DeploymentsDeploymentsType
2150
+ > = z.nativeEnum(DeploymentsDeploymentsType);
2151
+
2152
+ /** @internal */
2153
+ export const DeploymentsDeploymentsType$outboundSchema: z.ZodNativeEnum<
2154
+ typeof DeploymentsDeploymentsType
2155
+ > = DeploymentsDeploymentsType$inboundSchema;
2156
+
2157
+ /**
2158
+ * @internal
2159
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2160
+ */
2161
+ export namespace DeploymentsDeploymentsType$ {
2162
+ /** @deprecated use `DeploymentsDeploymentsType$inboundSchema` instead. */
2163
+ export const inboundSchema = DeploymentsDeploymentsType$inboundSchema;
2164
+ /** @deprecated use `DeploymentsDeploymentsType$outboundSchema` instead. */
2165
+ export const outboundSchema = DeploymentsDeploymentsType$outboundSchema;
2166
+ }
2167
+
2168
+ /** @internal */
2169
+ export const DeploymentsDeploymentsFunction$inboundSchema: z.ZodType<
2170
+ DeploymentsDeploymentsFunction,
2171
+ z.ZodTypeDef,
2172
+ unknown
2173
+ > = z.object({
2174
+ name: z.string(),
2175
+ arguments: z.string(),
2176
+ });
2177
+
2178
+ /** @internal */
2179
+ export type DeploymentsDeploymentsFunction$Outbound = {
2180
+ name: string;
2181
+ arguments: string;
2182
+ };
2183
+
2184
+ /** @internal */
2185
+ export const DeploymentsDeploymentsFunction$outboundSchema: z.ZodType<
2186
+ DeploymentsDeploymentsFunction$Outbound,
2187
+ z.ZodTypeDef,
2188
+ DeploymentsDeploymentsFunction
2189
+ > = z.object({
2190
+ name: z.string(),
2191
+ arguments: z.string(),
2192
+ });
2193
+
2194
+ /**
2195
+ * @internal
2196
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2197
+ */
2198
+ export namespace DeploymentsDeploymentsFunction$ {
2199
+ /** @deprecated use `DeploymentsDeploymentsFunction$inboundSchema` instead. */
2200
+ export const inboundSchema = DeploymentsDeploymentsFunction$inboundSchema;
2201
+ /** @deprecated use `DeploymentsDeploymentsFunction$outboundSchema` instead. */
2202
+ export const outboundSchema = DeploymentsDeploymentsFunction$outboundSchema;
2203
+ /** @deprecated use `DeploymentsDeploymentsFunction$Outbound` instead. */
2204
+ export type Outbound = DeploymentsDeploymentsFunction$Outbound;
2205
+ }
2206
+
2207
+ export function deploymentsDeploymentsFunctionToJSON(
2208
+ deploymentsDeploymentsFunction: DeploymentsDeploymentsFunction,
2209
+ ): string {
2210
+ return JSON.stringify(
2211
+ DeploymentsDeploymentsFunction$outboundSchema.parse(
2212
+ deploymentsDeploymentsFunction,
2213
+ ),
2214
+ );
2215
+ }
2216
+
2217
+ export function deploymentsDeploymentsFunctionFromJSON(
2218
+ jsonString: string,
2219
+ ): SafeParseResult<DeploymentsDeploymentsFunction, SDKValidationError> {
2220
+ return safeParse(
2221
+ jsonString,
2222
+ (x) => DeploymentsDeploymentsFunction$inboundSchema.parse(JSON.parse(x)),
2223
+ `Failed to parse 'DeploymentsDeploymentsFunction' from JSON`,
2224
+ );
2225
+ }
2226
+
2227
+ /** @internal */
2228
+ export const DeploymentsToolCalls$inboundSchema: z.ZodType<
2229
+ DeploymentsToolCalls,
2230
+ z.ZodTypeDef,
2231
+ unknown
2232
+ > = z.object({
2233
+ id: z.string().optional(),
2234
+ index: z.number().optional(),
2235
+ type: DeploymentsDeploymentsType$inboundSchema,
2236
+ function: z.lazy(() => DeploymentsDeploymentsFunction$inboundSchema),
2237
+ });
2238
+
2239
+ /** @internal */
2240
+ export type DeploymentsToolCalls$Outbound = {
2241
+ id?: string | undefined;
2242
+ index?: number | undefined;
2243
+ type: string;
2244
+ function: DeploymentsDeploymentsFunction$Outbound;
2245
+ };
2246
+
2247
+ /** @internal */
2248
+ export const DeploymentsToolCalls$outboundSchema: z.ZodType<
2249
+ DeploymentsToolCalls$Outbound,
2250
+ z.ZodTypeDef,
2251
+ DeploymentsToolCalls
2252
+ > = z.object({
2253
+ id: z.string().optional(),
2254
+ index: z.number().optional(),
2255
+ type: DeploymentsDeploymentsType$outboundSchema,
2256
+ function: z.lazy(() => DeploymentsDeploymentsFunction$outboundSchema),
2257
+ });
2258
+
2259
+ /**
2260
+ * @internal
2261
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2262
+ */
2263
+ export namespace DeploymentsToolCalls$ {
2264
+ /** @deprecated use `DeploymentsToolCalls$inboundSchema` instead. */
2265
+ export const inboundSchema = DeploymentsToolCalls$inboundSchema;
2266
+ /** @deprecated use `DeploymentsToolCalls$outboundSchema` instead. */
2267
+ export const outboundSchema = DeploymentsToolCalls$outboundSchema;
2268
+ /** @deprecated use `DeploymentsToolCalls$Outbound` instead. */
2269
+ export type Outbound = DeploymentsToolCalls$Outbound;
2270
+ }
2271
+
2272
+ export function deploymentsToolCallsToJSON(
2273
+ deploymentsToolCalls: DeploymentsToolCalls,
2274
+ ): string {
2275
+ return JSON.stringify(
2276
+ DeploymentsToolCalls$outboundSchema.parse(deploymentsToolCalls),
2277
+ );
2278
+ }
2279
+
2280
+ export function deploymentsToolCallsFromJSON(
2281
+ jsonString: string,
2282
+ ): SafeParseResult<DeploymentsToolCalls, SDKValidationError> {
2283
+ return safeParse(
2284
+ jsonString,
2285
+ (x) => DeploymentsToolCalls$inboundSchema.parse(JSON.parse(x)),
2286
+ `Failed to parse 'DeploymentsToolCalls' from JSON`,
2287
+ );
2288
+ }
2289
+
2290
+ /** @internal */
2291
+ export const DeploymentsMessages$inboundSchema: z.ZodType<
2292
+ DeploymentsMessages,
2293
+ z.ZodTypeDef,
2294
+ unknown
2295
+ > = z.object({
2296
+ role: DeploymentsRole$inboundSchema,
2297
+ content: z.union([
2298
+ z.string(),
2299
+ z.array(z.union([
2300
+ z.lazy(() => Deployments21$inboundSchema),
2301
+ z.lazy(() => Deployments22$inboundSchema),
2302
+ z.lazy(() => Deployments23$inboundSchema),
2303
+ ])),
2304
+ ]),
2305
+ tool_calls: z.array(z.lazy(() => DeploymentsToolCalls$inboundSchema))
2306
+ .optional(),
2307
+ tool_call_id: z.string().optional(),
2308
+ }).transform((v) => {
2309
+ return remap$(v, {
2310
+ "tool_calls": "toolCalls",
2311
+ "tool_call_id": "toolCallId",
2312
+ });
2313
+ });
2314
+
2315
+ /** @internal */
2316
+ export type DeploymentsMessages$Outbound = {
2317
+ role: string;
2318
+ content:
2319
+ | string
2320
+ | Array<
2321
+ Deployments21$Outbound | Deployments22$Outbound | Deployments23$Outbound
2322
+ >;
2323
+ tool_calls?: Array<DeploymentsToolCalls$Outbound> | undefined;
2324
+ tool_call_id?: string | undefined;
2325
+ };
2326
+
2327
+ /** @internal */
2328
+ export const DeploymentsMessages$outboundSchema: z.ZodType<
2329
+ DeploymentsMessages$Outbound,
2330
+ z.ZodTypeDef,
2331
+ DeploymentsMessages
2332
+ > = z.object({
2333
+ role: DeploymentsRole$outboundSchema,
2334
+ content: z.union([
2335
+ z.string(),
2336
+ z.array(z.union([
2337
+ z.lazy(() => Deployments21$outboundSchema),
2338
+ z.lazy(() => Deployments22$outboundSchema),
2339
+ z.lazy(() => Deployments23$outboundSchema),
2340
+ ])),
2341
+ ]),
2342
+ toolCalls: z.array(z.lazy(() => DeploymentsToolCalls$outboundSchema))
2343
+ .optional(),
2344
+ toolCallId: z.string().optional(),
2345
+ }).transform((v) => {
2346
+ return remap$(v, {
2347
+ toolCalls: "tool_calls",
2348
+ toolCallId: "tool_call_id",
2349
+ });
2350
+ });
2351
+
2352
+ /**
2353
+ * @internal
2354
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2355
+ */
2356
+ export namespace DeploymentsMessages$ {
2357
+ /** @deprecated use `DeploymentsMessages$inboundSchema` instead. */
2358
+ export const inboundSchema = DeploymentsMessages$inboundSchema;
2359
+ /** @deprecated use `DeploymentsMessages$outboundSchema` instead. */
2360
+ export const outboundSchema = DeploymentsMessages$outboundSchema;
2361
+ /** @deprecated use `DeploymentsMessages$Outbound` instead. */
2362
+ export type Outbound = DeploymentsMessages$Outbound;
2363
+ }
2364
+
2365
+ export function deploymentsMessagesToJSON(
2366
+ deploymentsMessages: DeploymentsMessages,
2367
+ ): string {
2368
+ return JSON.stringify(
2369
+ DeploymentsMessages$outboundSchema.parse(deploymentsMessages),
2370
+ );
2371
+ }
2372
+
2373
+ export function deploymentsMessagesFromJSON(
2374
+ jsonString: string,
2375
+ ): SafeParseResult<DeploymentsMessages, SDKValidationError> {
2376
+ return safeParse(
2377
+ jsonString,
2378
+ (x) => DeploymentsMessages$inboundSchema.parse(JSON.parse(x)),
2379
+ `Failed to parse 'DeploymentsMessages' from JSON`,
2380
+ );
2381
+ }
2382
+
2383
+ /** @internal */
2384
+ export const DeploymentsPromptConfig$inboundSchema: z.ZodType<
2385
+ DeploymentsPromptConfig,
2386
+ z.ZodTypeDef,
2387
+ unknown
2388
+ > = z.object({
2389
+ tools: z.array(z.lazy(() => DeploymentsTools$inboundSchema)),
2390
+ model: z.string(),
2391
+ model_type: DeploymentsModelType$inboundSchema,
2392
+ model_parameters: z.lazy(() => DeploymentsModelParameters$inboundSchema),
2393
+ provider: DeploymentsProvider$inboundSchema,
2394
+ messages: z.array(z.lazy(() => DeploymentsMessages$inboundSchema)),
2395
+ }).transform((v) => {
2396
+ return remap$(v, {
2397
+ "model_type": "modelType",
2398
+ "model_parameters": "modelParameters",
2399
+ });
2400
+ });
2401
+
2402
+ /** @internal */
2403
+ export type DeploymentsPromptConfig$Outbound = {
2404
+ tools: Array<DeploymentsTools$Outbound>;
2405
+ model: string;
2406
+ model_type: string;
2407
+ model_parameters: DeploymentsModelParameters$Outbound;
2408
+ provider: string;
2409
+ messages: Array<DeploymentsMessages$Outbound>;
2410
+ };
2411
+
2412
+ /** @internal */
2413
+ export const DeploymentsPromptConfig$outboundSchema: z.ZodType<
2414
+ DeploymentsPromptConfig$Outbound,
2415
+ z.ZodTypeDef,
2416
+ DeploymentsPromptConfig
2417
+ > = z.object({
2418
+ tools: z.array(z.lazy(() => DeploymentsTools$outboundSchema)),
2419
+ model: z.string(),
2420
+ modelType: DeploymentsModelType$outboundSchema,
2421
+ modelParameters: z.lazy(() => DeploymentsModelParameters$outboundSchema),
2422
+ provider: DeploymentsProvider$outboundSchema,
2423
+ messages: z.array(z.lazy(() => DeploymentsMessages$outboundSchema)),
2424
+ }).transform((v) => {
2425
+ return remap$(v, {
2426
+ modelType: "model_type",
2427
+ modelParameters: "model_parameters",
2428
+ });
2429
+ });
2430
+
2431
+ /**
2432
+ * @internal
2433
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2434
+ */
2435
+ export namespace DeploymentsPromptConfig$ {
2436
+ /** @deprecated use `DeploymentsPromptConfig$inboundSchema` instead. */
2437
+ export const inboundSchema = DeploymentsPromptConfig$inboundSchema;
2438
+ /** @deprecated use `DeploymentsPromptConfig$outboundSchema` instead. */
2439
+ export const outboundSchema = DeploymentsPromptConfig$outboundSchema;
2440
+ /** @deprecated use `DeploymentsPromptConfig$Outbound` instead. */
2441
+ export type Outbound = DeploymentsPromptConfig$Outbound;
2442
+ }
2443
+
2444
+ export function deploymentsPromptConfigToJSON(
2445
+ deploymentsPromptConfig: DeploymentsPromptConfig,
2446
+ ): string {
2447
+ return JSON.stringify(
2448
+ DeploymentsPromptConfig$outboundSchema.parse(deploymentsPromptConfig),
2449
+ );
2450
+ }
2451
+
2452
+ export function deploymentsPromptConfigFromJSON(
2453
+ jsonString: string,
2454
+ ): SafeParseResult<DeploymentsPromptConfig, SDKValidationError> {
2455
+ return safeParse(
2456
+ jsonString,
2457
+ (x) => DeploymentsPromptConfig$inboundSchema.parse(JSON.parse(x)),
2458
+ `Failed to parse 'DeploymentsPromptConfig' from JSON`,
2459
+ );
2460
+ }
2461
+
2462
+ /** @internal */
2463
+ export const DeploymentsData$inboundSchema: z.ZodType<
2464
+ DeploymentsData,
2465
+ z.ZodTypeDef,
2466
+ unknown
2467
+ > = z.object({
2468
+ id: z.string(),
2469
+ created: z.string(),
2470
+ updated: z.string(),
2471
+ key: z.string(),
2472
+ description: z.string(),
2473
+ prompt_config: z.lazy(() => DeploymentsPromptConfig$inboundSchema),
2474
+ version: z.string(),
2475
+ }).transform((v) => {
2476
+ return remap$(v, {
2477
+ "prompt_config": "promptConfig",
2478
+ });
2479
+ });
2480
+
2481
+ /** @internal */
2482
+ export type DeploymentsData$Outbound = {
2483
+ id: string;
2484
+ created: string;
2485
+ updated: string;
2486
+ key: string;
2487
+ description: string;
2488
+ prompt_config: DeploymentsPromptConfig$Outbound;
2489
+ version: string;
2490
+ };
2491
+
2492
+ /** @internal */
2493
+ export const DeploymentsData$outboundSchema: z.ZodType<
2494
+ DeploymentsData$Outbound,
2495
+ z.ZodTypeDef,
2496
+ DeploymentsData
2497
+ > = z.object({
2498
+ id: z.string(),
2499
+ created: z.string(),
2500
+ updated: z.string(),
2501
+ key: z.string(),
2502
+ description: z.string(),
2503
+ promptConfig: z.lazy(() => DeploymentsPromptConfig$outboundSchema),
2504
+ version: z.string(),
2505
+ }).transform((v) => {
2506
+ return remap$(v, {
2507
+ promptConfig: "prompt_config",
2508
+ });
2509
+ });
2510
+
2511
+ /**
2512
+ * @internal
2513
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2514
+ */
2515
+ export namespace DeploymentsData$ {
2516
+ /** @deprecated use `DeploymentsData$inboundSchema` instead. */
2517
+ export const inboundSchema = DeploymentsData$inboundSchema;
2518
+ /** @deprecated use `DeploymentsData$outboundSchema` instead. */
2519
+ export const outboundSchema = DeploymentsData$outboundSchema;
2520
+ /** @deprecated use `DeploymentsData$Outbound` instead. */
2521
+ export type Outbound = DeploymentsData$Outbound;
2522
+ }
2523
+
2524
+ export function deploymentsDataToJSON(
2525
+ deploymentsData: DeploymentsData,
2526
+ ): string {
2527
+ return JSON.stringify(DeploymentsData$outboundSchema.parse(deploymentsData));
2528
+ }
2529
+
2530
+ export function deploymentsDataFromJSON(
2531
+ jsonString: string,
2532
+ ): SafeParseResult<DeploymentsData, SDKValidationError> {
2533
+ return safeParse(
2534
+ jsonString,
2535
+ (x) => DeploymentsData$inboundSchema.parse(JSON.parse(x)),
2536
+ `Failed to parse 'DeploymentsData' from JSON`,
2537
+ );
2538
+ }
2539
+
2540
+ /** @internal */
2541
+ export const DeploymentsResponseBody$inboundSchema: z.ZodType<
2542
+ DeploymentsResponseBody,
2543
+ z.ZodTypeDef,
2544
+ unknown
2545
+ > = z.object({
2546
+ object: DeploymentsObject$inboundSchema,
2547
+ data: z.array(z.lazy(() => DeploymentsData$inboundSchema)),
2548
+ has_more: z.boolean(),
2549
+ }).transform((v) => {
2550
+ return remap$(v, {
2551
+ "has_more": "hasMore",
2552
+ });
2553
+ });
2554
+
2555
+ /** @internal */
2556
+ export type DeploymentsResponseBody$Outbound = {
2557
+ object: string;
2558
+ data: Array<DeploymentsData$Outbound>;
2559
+ has_more: boolean;
2560
+ };
2561
+
2562
+ /** @internal */
2563
+ export const DeploymentsResponseBody$outboundSchema: z.ZodType<
2564
+ DeploymentsResponseBody$Outbound,
2565
+ z.ZodTypeDef,
2566
+ DeploymentsResponseBody
2567
+ > = z.object({
2568
+ object: DeploymentsObject$outboundSchema,
2569
+ data: z.array(z.lazy(() => DeploymentsData$outboundSchema)),
2570
+ hasMore: z.boolean(),
2571
+ }).transform((v) => {
2572
+ return remap$(v, {
2573
+ hasMore: "has_more",
2574
+ });
2575
+ });
2576
+
2577
+ /**
2578
+ * @internal
2579
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2580
+ */
2581
+ export namespace DeploymentsResponseBody$ {
2582
+ /** @deprecated use `DeploymentsResponseBody$inboundSchema` instead. */
2583
+ export const inboundSchema = DeploymentsResponseBody$inboundSchema;
2584
+ /** @deprecated use `DeploymentsResponseBody$outboundSchema` instead. */
2585
+ export const outboundSchema = DeploymentsResponseBody$outboundSchema;
2586
+ /** @deprecated use `DeploymentsResponseBody$Outbound` instead. */
2587
+ export type Outbound = DeploymentsResponseBody$Outbound;
2588
+ }
2589
+
2590
+ export function deploymentsResponseBodyToJSON(
2591
+ deploymentsResponseBody: DeploymentsResponseBody,
2592
+ ): string {
2593
+ return JSON.stringify(
2594
+ DeploymentsResponseBody$outboundSchema.parse(deploymentsResponseBody),
2595
+ );
2596
+ }
2597
+
2598
+ export function deploymentsResponseBodyFromJSON(
2599
+ jsonString: string,
2600
+ ): SafeParseResult<DeploymentsResponseBody, SDKValidationError> {
2601
+ return safeParse(
2602
+ jsonString,
2603
+ (x) => DeploymentsResponseBody$inboundSchema.parse(JSON.parse(x)),
2604
+ `Failed to parse 'DeploymentsResponseBody' from JSON`,
2605
+ );
2606
+ }