@orq-ai/node 3.6.2 → 3.7.0-rc.2

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