@orq-ai/node 3.11.2 → 3.12.0-rc.1

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