@orq-ai/node 3.5.13 → 3.6.0-rc.11

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