@orq-ai/node 3.11.0-rc.8 → 3.11.1

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