@orq-ai/node 3.12.0-rc.49 → 3.12.0

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