@orq-ai/node 3.6.0-rc.9 → 3.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (403) hide show
  1. package/README.md +2 -0
  2. package/bin/mcp-server.js +4598 -1269
  3. package/bin/mcp-server.js.map +55 -43
  4. package/docs/sdks/knowledge/README.md +93 -4
  5. package/funcs/knowledgeCreateDatasource.js +2 -2
  6. package/funcs/knowledgeCreateDatasource.js.map +1 -1
  7. package/funcs/knowledgeSearch.d.ts +16 -0
  8. package/funcs/knowledgeSearch.d.ts.map +1 -0
  9. package/funcs/knowledgeSearch.js +118 -0
  10. package/funcs/knowledgeSearch.js.map +1 -0
  11. package/jsr.json +1 -1
  12. package/lib/config.d.ts +3 -3
  13. package/lib/config.js +3 -3
  14. package/lib/config.js.map +1 -1
  15. package/mcp-server/cli/start/impl.js +2 -2
  16. package/mcp-server/cli/start/impl.js.map +1 -1
  17. package/mcp-server/mcp-server.js +1 -1
  18. package/mcp-server/mcp-server.js.map +1 -1
  19. package/mcp-server/server.d.ts.map +1 -1
  20. package/mcp-server/server.js +3 -1
  21. package/mcp-server/server.js.map +1 -1
  22. package/mcp-server/tools/knowledgeSearch.d.ts +8 -0
  23. package/mcp-server/tools/knowledgeSearch.d.ts.map +1 -0
  24. package/mcp-server/tools/knowledgeSearch.js +64 -0
  25. package/mcp-server/tools/knowledgeSearch.js.map +1 -0
  26. package/models/components/deployments.d.ts +1216 -53
  27. package/models/components/deployments.d.ts.map +1 -1
  28. package/models/components/deployments.js +1461 -103
  29. package/models/components/deployments.js.map +1 -1
  30. package/models/operations/bulkcreatedatapoints.d.ts +194 -12
  31. package/models/operations/bulkcreatedatapoints.d.ts.map +1 -1
  32. package/models/operations/bulkcreatedatapoints.js +192 -4
  33. package/models/operations/bulkcreatedatapoints.js.map +1 -1
  34. package/models/operations/createchunk.d.ts +32 -17
  35. package/models/operations/createchunk.d.ts.map +1 -1
  36. package/models/operations/createchunk.js +30 -19
  37. package/models/operations/createchunk.js.map +1 -1
  38. package/models/operations/createcontact.js +2 -2
  39. package/models/operations/createdataset.js +2 -2
  40. package/models/operations/createdatasetitem.d.ts +194 -12
  41. package/models/operations/createdatasetitem.d.ts.map +1 -1
  42. package/models/operations/createdatasetitem.js +191 -4
  43. package/models/operations/createdatasetitem.js.map +1 -1
  44. package/models/operations/createdatasource.js +2 -2
  45. package/models/operations/createprompt.d.ts +194 -12
  46. package/models/operations/createprompt.d.ts.map +1 -1
  47. package/models/operations/createprompt.js +192 -5
  48. package/models/operations/createprompt.js.map +1 -1
  49. package/models/operations/deploymentgetconfig.d.ts +1343 -89
  50. package/models/operations/deploymentgetconfig.d.ts.map +1 -1
  51. package/models/operations/deploymentgetconfig.js +1451 -8
  52. package/models/operations/deploymentgetconfig.js.map +1 -1
  53. package/models/operations/deployments.d.ts +105 -14
  54. package/models/operations/deployments.d.ts.map +1 -1
  55. package/models/operations/deployments.js +108 -15
  56. package/models/operations/deployments.js.map +1 -1
  57. package/models/operations/deploymentstream.d.ts +1163 -0
  58. package/models/operations/deploymentstream.d.ts.map +1 -1
  59. package/models/operations/deploymentstream.js +1319 -2
  60. package/models/operations/deploymentstream.js.map +1 -1
  61. package/models/operations/fileget.js +2 -2
  62. package/models/operations/filelist.js +2 -2
  63. package/models/operations/fileupload.js +2 -2
  64. package/models/operations/getallprompts.d.ts +97 -6
  65. package/models/operations/getallprompts.d.ts.map +1 -1
  66. package/models/operations/getallprompts.js +96 -3
  67. package/models/operations/getallprompts.js.map +1 -1
  68. package/models/operations/getonechunk.d.ts +24 -3
  69. package/models/operations/getonechunk.d.ts.map +1 -1
  70. package/models/operations/getonechunk.js +26 -3
  71. package/models/operations/getonechunk.js.map +1 -1
  72. package/models/operations/getoneprompt.d.ts +97 -6
  73. package/models/operations/getoneprompt.d.ts.map +1 -1
  74. package/models/operations/getoneprompt.js +96 -3
  75. package/models/operations/getoneprompt.js.map +1 -1
  76. package/models/operations/getpromptversion.d.ts +97 -6
  77. package/models/operations/getpromptversion.d.ts.map +1 -1
  78. package/models/operations/getpromptversion.js +96 -3
  79. package/models/operations/getpromptversion.js.map +1 -1
  80. package/models/operations/index.d.ts +1 -0
  81. package/models/operations/index.d.ts.map +1 -1
  82. package/models/operations/index.js +1 -0
  83. package/models/operations/index.js.map +1 -1
  84. package/models/operations/listchunks.d.ts +24 -3
  85. package/models/operations/listchunks.d.ts.map +1 -1
  86. package/models/operations/listchunks.js +26 -3
  87. package/models/operations/listchunks.js.map +1 -1
  88. package/models/operations/listdatasetdatapoints.d.ts +97 -6
  89. package/models/operations/listdatasetdatapoints.d.ts.map +1 -1
  90. package/models/operations/listdatasetdatapoints.js +98 -4
  91. package/models/operations/listdatasetdatapoints.js.map +1 -1
  92. package/models/operations/listdatasets.js +2 -2
  93. package/models/operations/listdatasources.js +2 -2
  94. package/models/operations/listpromptversions.d.ts +97 -6
  95. package/models/operations/listpromptversions.d.ts.map +1 -1
  96. package/models/operations/listpromptversions.js +96 -3
  97. package/models/operations/listpromptversions.js.map +1 -1
  98. package/models/operations/retrievedatapoint.d.ts +97 -6
  99. package/models/operations/retrievedatapoint.d.ts.map +1 -1
  100. package/models/operations/retrievedatapoint.js +97 -3
  101. package/models/operations/retrievedatapoint.js.map +1 -1
  102. package/models/operations/retrievedataset.js +2 -2
  103. package/models/operations/retrievedatasource.js +2 -2
  104. package/models/operations/searchknowledge.d.ts +1379 -0
  105. package/models/operations/searchknowledge.d.ts.map +1 -0
  106. package/models/operations/searchknowledge.js +1586 -0
  107. package/models/operations/searchknowledge.js.map +1 -0
  108. package/models/operations/updatechunk.d.ts +32 -17
  109. package/models/operations/updatechunk.d.ts.map +1 -1
  110. package/models/operations/updatechunk.js +30 -19
  111. package/models/operations/updatechunk.js.map +1 -1
  112. package/models/operations/updatedatapoint.d.ts +194 -12
  113. package/models/operations/updatedatapoint.d.ts.map +1 -1
  114. package/models/operations/updatedatapoint.js +191 -4
  115. package/models/operations/updatedatapoint.js.map +1 -1
  116. package/models/operations/updatedataset.js +2 -2
  117. package/models/operations/updatedatasource.js +2 -2
  118. package/models/operations/updateprompt.d.ts +194 -12
  119. package/models/operations/updateprompt.d.ts.map +1 -1
  120. package/models/operations/updateprompt.js +192 -5
  121. package/models/operations/updateprompt.js.map +1 -1
  122. package/package.json +3 -4
  123. package/packages/orq-rc/FUNCTIONS.md +106 -0
  124. package/packages/orq-rc/README.md +707 -0
  125. package/packages/orq-rc/RUNTIMES.md +48 -0
  126. package/packages/orq-rc/docs/sdks/contacts/README.md +84 -0
  127. package/packages/orq-rc/docs/sdks/datasets/README.md +1027 -0
  128. package/packages/orq-rc/docs/sdks/deployments/README.md +405 -0
  129. package/packages/orq-rc/docs/sdks/feedback/README.md +92 -0
  130. package/packages/orq-rc/docs/sdks/files/README.md +311 -0
  131. package/packages/orq-rc/docs/sdks/knowledge/README.md +1285 -0
  132. package/packages/orq-rc/docs/sdks/metrics/README.md +86 -0
  133. package/packages/orq-rc/docs/sdks/models/README.md +79 -0
  134. package/packages/orq-rc/docs/sdks/orq/README.md +10 -0
  135. package/packages/orq-rc/docs/sdks/prompts/README.md +576 -0
  136. package/packages/orq-rc/docs/sdks/remoteconfigs/README.md +80 -0
  137. package/packages/orq-rc/jsr.json +28 -0
  138. package/packages/orq-rc/package-lock.json +3217 -0
  139. package/packages/orq-rc/package.json +45 -0
  140. package/packages/orq-rc/src/core.ts +13 -0
  141. package/packages/orq-rc/src/funcs/contactsCreate.ts +154 -0
  142. package/packages/orq-rc/src/funcs/datasetsClear.ts +161 -0
  143. package/packages/orq-rc/src/funcs/datasetsCreate.ts +159 -0
  144. package/packages/orq-rc/src/funcs/datasetsCreateDatapoint.ts +161 -0
  145. package/packages/orq-rc/src/funcs/datasetsCreateDatapoints.ts +165 -0
  146. package/packages/orq-rc/src/funcs/datasetsCreateExperiment.ts +162 -0
  147. package/packages/orq-rc/src/funcs/datasetsDelete.ts +161 -0
  148. package/packages/orq-rc/src/funcs/datasetsDeleteDatapoint.ts +176 -0
  149. package/packages/orq-rc/src/funcs/datasetsList.ts +161 -0
  150. package/packages/orq-rc/src/funcs/datasetsListDatapoints.ts +168 -0
  151. package/packages/orq-rc/src/funcs/datasetsRetrieve.ts +169 -0
  152. package/packages/orq-rc/src/funcs/datasetsRetrieveDatapoint.ts +175 -0
  153. package/packages/orq-rc/src/funcs/datasetsUpdate.ts +170 -0
  154. package/packages/orq-rc/src/funcs/datasetsUpdateDatapoint.ts +173 -0
  155. package/packages/orq-rc/src/funcs/deploymentsCreateExperiment.ts +167 -0
  156. package/packages/orq-rc/src/funcs/deploymentsGetConfig.ts +162 -0
  157. package/packages/orq-rc/src/funcs/deploymentsInvoke.ts +170 -0
  158. package/packages/orq-rc/src/funcs/deploymentsList.ts +170 -0
  159. package/packages/orq-rc/src/funcs/deploymentsMetricsCreate.ts +162 -0
  160. package/packages/orq-rc/src/funcs/deploymentsStream.ts +178 -0
  161. package/packages/orq-rc/src/funcs/feedbackCreate.ts +154 -0
  162. package/packages/orq-rc/src/funcs/filesCreate.ts +174 -0
  163. package/packages/orq-rc/src/funcs/filesDelete.ts +158 -0
  164. package/packages/orq-rc/src/funcs/filesGet.ts +160 -0
  165. package/packages/orq-rc/src/funcs/filesList.ts +161 -0
  166. package/packages/orq-rc/src/funcs/knowledgeCreate.ts +152 -0
  167. package/packages/orq-rc/src/funcs/knowledgeCreateChunks.ts +165 -0
  168. package/packages/orq-rc/src/funcs/knowledgeCreateDatasource.ts +160 -0
  169. package/packages/orq-rc/src/funcs/knowledgeDelete.ts +161 -0
  170. package/packages/orq-rc/src/funcs/knowledgeDeleteChunk.ts +168 -0
  171. package/packages/orq-rc/src/funcs/knowledgeDeleteDatasource.ts +167 -0
  172. package/packages/orq-rc/src/funcs/knowledgeList.ts +163 -0
  173. package/packages/orq-rc/src/funcs/knowledgeListChunks.ts +172 -0
  174. package/packages/orq-rc/src/funcs/knowledgeListDatasources.ts +168 -0
  175. package/packages/orq-rc/src/funcs/knowledgeRetrieve.ts +160 -0
  176. package/packages/orq-rc/src/funcs/knowledgeRetrieveChunk.ts +167 -0
  177. package/packages/orq-rc/src/funcs/knowledgeRetrieveDatasource.ts +163 -0
  178. package/packages/orq-rc/src/funcs/knowledgeSearch.ts +161 -0
  179. package/packages/orq-rc/src/funcs/knowledgeUpdate.ts +158 -0
  180. package/packages/orq-rc/src/funcs/knowledgeUpdateChunk.ts +168 -0
  181. package/packages/orq-rc/src/funcs/knowledgeUpdateDatasource.ts +164 -0
  182. package/packages/orq-rc/src/funcs/modelsList.ts +136 -0
  183. package/packages/orq-rc/src/funcs/promptsCreate.ts +154 -0
  184. package/packages/orq-rc/src/funcs/promptsDelete.ts +158 -0
  185. package/packages/orq-rc/src/funcs/promptsGetVersion.ts +175 -0
  186. package/packages/orq-rc/src/funcs/promptsList.ts +161 -0
  187. package/packages/orq-rc/src/funcs/promptsListVersions.ts +167 -0
  188. package/packages/orq-rc/src/funcs/promptsRetrieve.ts +160 -0
  189. package/packages/orq-rc/src/funcs/promptsUpdate.ts +167 -0
  190. package/packages/orq-rc/src/funcs/remoteconfigsRetrieve.ts +155 -0
  191. package/packages/orq-rc/src/hooks/global.ts +44 -0
  192. package/packages/orq-rc/src/hooks/hooks.ts +132 -0
  193. package/packages/orq-rc/src/hooks/index.ts +6 -0
  194. package/packages/orq-rc/src/hooks/registration.ts +15 -0
  195. package/packages/orq-rc/src/hooks/types.ts +110 -0
  196. package/packages/orq-rc/src/index.ts +7 -0
  197. package/packages/orq-rc/src/lib/base64.ts +37 -0
  198. package/packages/orq-rc/src/lib/config.ts +70 -0
  199. package/packages/orq-rc/src/lib/dlv.ts +53 -0
  200. package/packages/orq-rc/src/lib/encodings.ts +483 -0
  201. package/packages/orq-rc/src/lib/env.ts +73 -0
  202. package/packages/orq-rc/src/lib/event-streams.ts +264 -0
  203. package/packages/orq-rc/src/lib/files.ts +40 -0
  204. package/packages/orq-rc/src/lib/http.ts +323 -0
  205. package/packages/orq-rc/src/lib/is-plain-object.ts +43 -0
  206. package/packages/orq-rc/src/lib/logger.ts +9 -0
  207. package/packages/orq-rc/src/lib/matchers.ts +345 -0
  208. package/packages/orq-rc/src/lib/primitives.ts +150 -0
  209. package/packages/orq-rc/src/lib/retries.ts +218 -0
  210. package/packages/orq-rc/src/lib/schemas.ts +91 -0
  211. package/packages/orq-rc/src/lib/sdks.ts +401 -0
  212. package/packages/orq-rc/src/lib/security.ts +261 -0
  213. package/packages/orq-rc/src/lib/url.ts +33 -0
  214. package/packages/orq-rc/src/mcp-server/cli/start/command.ts +125 -0
  215. package/packages/orq-rc/src/mcp-server/cli/start/impl.ts +140 -0
  216. package/packages/orq-rc/src/mcp-server/cli.ts +13 -0
  217. package/packages/orq-rc/src/mcp-server/console-logger.ts +71 -0
  218. package/packages/orq-rc/src/mcp-server/extensions.ts +17 -0
  219. package/packages/orq-rc/src/mcp-server/mcp-server.ts +26 -0
  220. package/packages/orq-rc/src/mcp-server/prompts.ts +117 -0
  221. package/packages/orq-rc/src/mcp-server/resources.ts +172 -0
  222. package/packages/orq-rc/src/mcp-server/scopes.ts +7 -0
  223. package/packages/orq-rc/src/mcp-server/server.ts +163 -0
  224. package/packages/orq-rc/src/mcp-server/shared.ts +75 -0
  225. package/packages/orq-rc/src/mcp-server/tools/contactsCreate.ts +37 -0
  226. package/packages/orq-rc/src/mcp-server/tools/datasetsClear.ts +35 -0
  227. package/packages/orq-rc/src/mcp-server/tools/datasetsCreate.ts +37 -0
  228. package/packages/orq-rc/src/mcp-server/tools/datasetsCreateDatapoint.ts +37 -0
  229. package/packages/orq-rc/src/mcp-server/tools/datasetsCreateDatapoints.ts +37 -0
  230. package/packages/orq-rc/src/mcp-server/tools/datasetsCreateExperiment.ts +37 -0
  231. package/packages/orq-rc/src/mcp-server/tools/datasetsDelete.ts +35 -0
  232. package/packages/orq-rc/src/mcp-server/tools/datasetsDeleteDatapoint.ts +35 -0
  233. package/packages/orq-rc/src/mcp-server/tools/datasetsList.ts +37 -0
  234. package/packages/orq-rc/src/mcp-server/tools/datasetsListDatapoints.ts +37 -0
  235. package/packages/orq-rc/src/mcp-server/tools/datasetsRetrieve.ts +37 -0
  236. package/packages/orq-rc/src/mcp-server/tools/datasetsRetrieveDatapoint.ts +37 -0
  237. package/packages/orq-rc/src/mcp-server/tools/datasetsUpdate.ts +37 -0
  238. package/packages/orq-rc/src/mcp-server/tools/datasetsUpdateDatapoint.ts +35 -0
  239. package/packages/orq-rc/src/mcp-server/tools/deploymentsCreateExperiment.ts +37 -0
  240. package/packages/orq-rc/src/mcp-server/tools/deploymentsGetConfig.ts +37 -0
  241. package/packages/orq-rc/src/mcp-server/tools/deploymentsInvoke.ts +37 -0
  242. package/packages/orq-rc/src/mcp-server/tools/deploymentsList.ts +37 -0
  243. package/packages/orq-rc/src/mcp-server/tools/deploymentsMetricsCreate.ts +37 -0
  244. package/packages/orq-rc/src/mcp-server/tools/deploymentsStream.ts +37 -0
  245. package/packages/orq-rc/src/mcp-server/tools/feedbackCreate.ts +37 -0
  246. package/packages/orq-rc/src/mcp-server/tools/filesCreate.ts +37 -0
  247. package/packages/orq-rc/src/mcp-server/tools/filesDelete.ts +33 -0
  248. package/packages/orq-rc/src/mcp-server/tools/filesGet.ts +37 -0
  249. package/packages/orq-rc/src/mcp-server/tools/filesList.ts +37 -0
  250. package/packages/orq-rc/src/mcp-server/tools/knowledgeCreate.ts +35 -0
  251. package/packages/orq-rc/src/mcp-server/tools/knowledgeCreateChunks.ts +35 -0
  252. package/packages/orq-rc/src/mcp-server/tools/knowledgeCreateDatasource.ts +35 -0
  253. package/packages/orq-rc/src/mcp-server/tools/knowledgeDelete.ts +35 -0
  254. package/packages/orq-rc/src/mcp-server/tools/knowledgeDeleteChunk.ts +33 -0
  255. package/packages/orq-rc/src/mcp-server/tools/knowledgeDeleteDatasource.ts +35 -0
  256. package/packages/orq-rc/src/mcp-server/tools/knowledgeList.ts +37 -0
  257. package/packages/orq-rc/src/mcp-server/tools/knowledgeListChunks.ts +35 -0
  258. package/packages/orq-rc/src/mcp-server/tools/knowledgeListDatasources.ts +35 -0
  259. package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieve.ts +37 -0
  260. package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieveChunk.ts +35 -0
  261. package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieveDatasource.ts +35 -0
  262. package/packages/orq-rc/src/mcp-server/tools/knowledgeSearch.ts +37 -0
  263. package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdate.ts +35 -0
  264. package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdateChunk.ts +35 -0
  265. package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdateDatasource.ts +35 -0
  266. package/packages/orq-rc/src/mcp-server/tools/modelsList.ts +30 -0
  267. package/packages/orq-rc/src/mcp-server/tools/promptsCreate.ts +35 -0
  268. package/packages/orq-rc/src/mcp-server/tools/promptsDelete.ts +33 -0
  269. package/packages/orq-rc/src/mcp-server/tools/promptsGetVersion.ts +37 -0
  270. package/packages/orq-rc/src/mcp-server/tools/promptsList.ts +37 -0
  271. package/packages/orq-rc/src/mcp-server/tools/promptsListVersions.ts +37 -0
  272. package/packages/orq-rc/src/mcp-server/tools/promptsRetrieve.ts +37 -0
  273. package/packages/orq-rc/src/mcp-server/tools/promptsUpdate.ts +35 -0
  274. package/packages/orq-rc/src/mcp-server/tools/remoteconfigsRetrieve.ts +36 -0
  275. package/packages/orq-rc/src/mcp-server/tools.ts +129 -0
  276. package/packages/orq-rc/src/models/components/deployments.ts +7289 -0
  277. package/packages/orq-rc/src/models/components/index.ts +6 -0
  278. package/packages/orq-rc/src/models/components/security.ts +71 -0
  279. package/packages/orq-rc/src/models/errors/apierror.ts +27 -0
  280. package/packages/orq-rc/src/models/errors/getpromptversion.ts +71 -0
  281. package/packages/orq-rc/src/models/errors/honoapierror.ts +82 -0
  282. package/packages/orq-rc/src/models/errors/httpclienterrors.ts +62 -0
  283. package/packages/orq-rc/src/models/errors/index.ts +10 -0
  284. package/packages/orq-rc/src/models/errors/sdkvalidationerror.ts +97 -0
  285. package/packages/orq-rc/src/models/errors/updateprompt.ts +71 -0
  286. package/packages/orq-rc/src/models/operations/bulkcreatedatapoints.ts +2232 -0
  287. package/packages/orq-rc/src/models/operations/cleardataset.ts +75 -0
  288. package/packages/orq-rc/src/models/operations/createchunk.ts +432 -0
  289. package/packages/orq-rc/src/models/operations/createcontact.ts +256 -0
  290. package/packages/orq-rc/src/models/operations/createdataset.ts +296 -0
  291. package/packages/orq-rc/src/models/operations/createdatasetexperiment.ts +307 -0
  292. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +2149 -0
  293. package/packages/orq-rc/src/models/operations/createdatasource.ts +852 -0
  294. package/packages/orq-rc/src/models/operations/createdeploymentexperiment.ts +321 -0
  295. package/packages/orq-rc/src/models/operations/createfeedback.ts +286 -0
  296. package/packages/orq-rc/src/models/operations/createknowledge.ts +846 -0
  297. package/packages/orq-rc/src/models/operations/createprompt.ts +4079 -0
  298. package/packages/orq-rc/src/models/operations/deletechunk.ts +96 -0
  299. package/packages/orq-rc/src/models/operations/deletedatapoint.ts +81 -0
  300. package/packages/orq-rc/src/models/operations/deletedataset.ts +75 -0
  301. package/packages/orq-rc/src/models/operations/deletedatasource.ts +87 -0
  302. package/packages/orq-rc/src/models/operations/deleteknowledge.ts +78 -0
  303. package/packages/orq-rc/src/models/operations/deleteprompt.ts +69 -0
  304. package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +5435 -0
  305. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +9378 -0
  306. package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +1255 -0
  307. package/packages/orq-rc/src/models/operations/deployments.ts +2316 -0
  308. package/packages/orq-rc/src/models/operations/deploymentstream.ts +9499 -0
  309. package/packages/orq-rc/src/models/operations/filedelete.ts +78 -0
  310. package/packages/orq-rc/src/models/operations/fileget.ts +223 -0
  311. package/packages/orq-rc/src/models/operations/filelist.ts +337 -0
  312. package/packages/orq-rc/src/models/operations/fileupload.ts +327 -0
  313. package/packages/orq-rc/src/models/operations/getallprompts.ts +2294 -0
  314. package/packages/orq-rc/src/models/operations/getonechunk.ts +315 -0
  315. package/packages/orq-rc/src/models/operations/getoneknowledge.ts +537 -0
  316. package/packages/orq-rc/src/models/operations/getoneprompt.ts +2155 -0
  317. package/packages/orq-rc/src/models/operations/getpromptversion.ts +2160 -0
  318. package/packages/orq-rc/src/models/operations/index.ts +54 -0
  319. package/packages/orq-rc/src/models/operations/listchunks.ts +494 -0
  320. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +1276 -0
  321. package/packages/orq-rc/src/models/operations/listdatasets.ts +406 -0
  322. package/packages/orq-rc/src/models/operations/listdatasources.ts +447 -0
  323. package/packages/orq-rc/src/models/operations/listknowledgebases.ts +663 -0
  324. package/packages/orq-rc/src/models/operations/listmodels.ts +273 -0
  325. package/packages/orq-rc/src/models/operations/listpromptversions.ts +2292 -0
  326. package/packages/orq-rc/src/models/operations/remoteconfigsgetconfig.ts +190 -0
  327. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +1126 -0
  328. package/packages/orq-rc/src/models/operations/retrievedataset.ts +288 -0
  329. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +273 -0
  330. package/packages/orq-rc/src/models/operations/searchknowledge.ts +3367 -0
  331. package/packages/orq-rc/src/models/operations/updatechunk.ts +448 -0
  332. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +2139 -0
  333. package/packages/orq-rc/src/models/operations/updatedataset.ts +393 -0
  334. package/packages/orq-rc/src/models/operations/updatedatasource.ts +345 -0
  335. package/packages/orq-rc/src/models/operations/updateknowledge.ts +980 -0
  336. package/packages/orq-rc/src/models/operations/updateprompt.ts +4261 -0
  337. package/packages/orq-rc/src/sdk/contacts.ts +27 -0
  338. package/packages/orq-rc/src/sdk/datasets.ts +240 -0
  339. package/packages/orq-rc/src/sdk/deployments.ts +107 -0
  340. package/packages/orq-rc/src/sdk/feedback.ts +27 -0
  341. package/packages/orq-rc/src/sdk/files.ts +78 -0
  342. package/packages/orq-rc/src/sdk/index.ts +5 -0
  343. package/packages/orq-rc/src/sdk/knowledge.ts +264 -0
  344. package/packages/orq-rc/src/sdk/metrics.ts +27 -0
  345. package/packages/orq-rc/src/sdk/models.ts +25 -0
  346. package/packages/orq-rc/src/sdk/prompts.ts +126 -0
  347. package/packages/orq-rc/src/sdk/remoteconfigs.ts +24 -0
  348. package/packages/orq-rc/src/sdk/sdk.ts +61 -0
  349. package/packages/orq-rc/src/types/async.ts +68 -0
  350. package/packages/orq-rc/src/types/blobs.ts +31 -0
  351. package/packages/orq-rc/src/types/constdatetime.ts +15 -0
  352. package/packages/orq-rc/src/types/enums.ts +16 -0
  353. package/packages/orq-rc/src/types/fp.ts +50 -0
  354. package/packages/orq-rc/src/types/index.ts +11 -0
  355. package/packages/orq-rc/src/types/operations.ts +105 -0
  356. package/packages/orq-rc/src/types/rfcdate.ts +54 -0
  357. package/packages/orq-rc/src/types/streams.ts +21 -0
  358. package/packages/orq-rc/tsconfig.json +41 -0
  359. package/sdk/knowledge.d.ts +7 -0
  360. package/sdk/knowledge.d.ts.map +1 -1
  361. package/sdk/knowledge.js +10 -0
  362. package/sdk/knowledge.js.map +1 -1
  363. package/src/funcs/knowledgeCreateDatasource.ts +2 -2
  364. package/src/funcs/knowledgeSearch.ts +161 -0
  365. package/src/lib/config.ts +3 -3
  366. package/src/mcp-server/cli/start/impl.ts +2 -2
  367. package/src/mcp-server/mcp-server.ts +1 -1
  368. package/src/mcp-server/server.ts +3 -1
  369. package/src/mcp-server/tools/knowledgeSearch.ts +37 -0
  370. package/src/models/components/deployments.ts +2762 -127
  371. package/src/models/operations/bulkcreatedatapoints.ts +416 -12
  372. package/src/models/operations/createchunk.ts +65 -35
  373. package/src/models/operations/createcontact.ts +2 -2
  374. package/src/models/operations/createdataset.ts +2 -2
  375. package/src/models/operations/createdatasetitem.ts +410 -13
  376. package/src/models/operations/createdatasource.ts +2 -2
  377. package/src/models/operations/createprompt.ts +400 -12
  378. package/src/models/operations/deploymentgetconfig.ts +2906 -105
  379. package/src/models/operations/deployments.ts +211 -23
  380. package/src/models/operations/deploymentstream.ts +3074 -98
  381. package/src/models/operations/fileget.ts +2 -2
  382. package/src/models/operations/filelist.ts +2 -2
  383. package/src/models/operations/fileupload.ts +2 -2
  384. package/src/models/operations/getallprompts.ts +200 -6
  385. package/src/models/operations/getonechunk.ts +55 -5
  386. package/src/models/operations/getoneprompt.ts +195 -6
  387. package/src/models/operations/getpromptversion.ts +204 -6
  388. package/src/models/operations/index.ts +1 -0
  389. package/src/models/operations/listchunks.ts +55 -5
  390. package/src/models/operations/listdatasetdatapoints.ts +207 -8
  391. package/src/models/operations/listdatasets.ts +2 -2
  392. package/src/models/operations/listdatasources.ts +2 -2
  393. package/src/models/operations/listpromptversions.ts +202 -6
  394. package/src/models/operations/retrievedatapoint.ts +204 -8
  395. package/src/models/operations/retrievedataset.ts +2 -2
  396. package/src/models/operations/retrievedatasource.ts +2 -2
  397. package/src/models/operations/searchknowledge.ts +3367 -0
  398. package/src/models/operations/updatechunk.ts +65 -35
  399. package/src/models/operations/updatedatapoint.ts +412 -14
  400. package/src/models/operations/updatedataset.ts +2 -2
  401. package/src/models/operations/updatedatasource.ts +2 -2
  402. package/src/models/operations/updateprompt.ts +400 -12
  403. package/src/sdk/knowledge.ts +18 -0
@@ -877,6 +877,290 @@ export type Thread = {
877
877
  tags?: Array<string> | undefined;
878
878
  };
879
879
 
880
+ /**
881
+ * Exists
882
+ */
883
+ export type OrExists = {
884
+ exists: boolean;
885
+ };
886
+
887
+ export type DeploymentGetConfigOrNin = string | number | boolean;
888
+
889
+ /**
890
+ * Not in
891
+ */
892
+ export type OrNin = {
893
+ nin: Array<string | number | boolean>;
894
+ };
895
+
896
+ export type DeploymentGetConfigOrIn = string | number | boolean;
897
+
898
+ /**
899
+ * In
900
+ */
901
+ export type OrIn = {
902
+ in: Array<string | number | boolean>;
903
+ };
904
+
905
+ /**
906
+ * Less than or equal to
907
+ */
908
+ export type OrLte = {
909
+ lte: number;
910
+ };
911
+
912
+ /**
913
+ * Less than
914
+ */
915
+ export type OrLt = {
916
+ lt: number;
917
+ };
918
+
919
+ /**
920
+ * Greater than or equal to
921
+ */
922
+ export type OrGte = {
923
+ gte: number;
924
+ };
925
+
926
+ export type Or3 = {
927
+ gt: number;
928
+ };
929
+
930
+ export type DeploymentGetConfigOrNe = string | number | boolean;
931
+
932
+ /**
933
+ * Not equal to
934
+ */
935
+ export type OrNe = {
936
+ ne: string | number | boolean;
937
+ };
938
+
939
+ export type DeploymentGetConfigOrEq = string | number | boolean;
940
+
941
+ /**
942
+ * Equal to
943
+ */
944
+ export type OrEq = {
945
+ eq: string | number | boolean;
946
+ };
947
+
948
+ export type KnowledgeFilterOr =
949
+ | OrEq
950
+ | OrNe
951
+ | Or3
952
+ | OrGte
953
+ | OrLt
954
+ | OrLte
955
+ | OrIn
956
+ | OrNin
957
+ | OrExists;
958
+
959
+ /**
960
+ * Or
961
+ */
962
+ export type Or = {
963
+ or: Array<
964
+ {
965
+ [k: string]:
966
+ | OrEq
967
+ | OrNe
968
+ | Or3
969
+ | OrGte
970
+ | OrLt
971
+ | OrLte
972
+ | OrIn
973
+ | OrNin
974
+ | OrExists;
975
+ }
976
+ >;
977
+ };
978
+
979
+ /**
980
+ * Exists
981
+ */
982
+ export type AndExists = {
983
+ exists: boolean;
984
+ };
985
+
986
+ export type DeploymentGetConfigAndNin = string | number | boolean;
987
+
988
+ /**
989
+ * Not in
990
+ */
991
+ export type AndNin = {
992
+ nin: Array<string | number | boolean>;
993
+ };
994
+
995
+ export type DeploymentGetConfigAndIn = string | number | boolean;
996
+
997
+ /**
998
+ * In
999
+ */
1000
+ export type AndIn = {
1001
+ in: Array<string | number | boolean>;
1002
+ };
1003
+
1004
+ /**
1005
+ * Less than or equal to
1006
+ */
1007
+ export type AndLte = {
1008
+ lte: number;
1009
+ };
1010
+
1011
+ /**
1012
+ * Less than
1013
+ */
1014
+ export type AndLt = {
1015
+ lt: number;
1016
+ };
1017
+
1018
+ /**
1019
+ * Greater than or equal to
1020
+ */
1021
+ export type AndGte = {
1022
+ gte: number;
1023
+ };
1024
+
1025
+ export type And3 = {
1026
+ gt: number;
1027
+ };
1028
+
1029
+ export type DeploymentGetConfigAndNe = string | number | boolean;
1030
+
1031
+ /**
1032
+ * Not equal to
1033
+ */
1034
+ export type AndNe = {
1035
+ ne: string | number | boolean;
1036
+ };
1037
+
1038
+ export type DeploymentGetConfigAndEq = string | number | boolean;
1039
+
1040
+ /**
1041
+ * Equal to
1042
+ */
1043
+ export type AndEq = {
1044
+ eq: string | number | boolean;
1045
+ };
1046
+
1047
+ export type KnowledgeFilterAnd =
1048
+ | AndEq
1049
+ | AndNe
1050
+ | And3
1051
+ | AndGte
1052
+ | AndLt
1053
+ | AndLte
1054
+ | AndIn
1055
+ | AndNin
1056
+ | AndExists;
1057
+
1058
+ /**
1059
+ * And
1060
+ */
1061
+ export type And = {
1062
+ and: Array<
1063
+ {
1064
+ [k: string]:
1065
+ | AndEq
1066
+ | AndNe
1067
+ | And3
1068
+ | AndGte
1069
+ | AndLt
1070
+ | AndLte
1071
+ | AndIn
1072
+ | AndNin
1073
+ | AndExists;
1074
+ }
1075
+ >;
1076
+ };
1077
+
1078
+ /**
1079
+ * Exists
1080
+ */
1081
+ export type Exists = {
1082
+ exists: boolean;
1083
+ };
1084
+
1085
+ export type OneNin = string | number | boolean;
1086
+
1087
+ /**
1088
+ * Not in
1089
+ */
1090
+ export type Nin = {
1091
+ nin: Array<string | number | boolean>;
1092
+ };
1093
+
1094
+ export type OneIn = string | number | boolean;
1095
+
1096
+ /**
1097
+ * In
1098
+ */
1099
+ export type In = {
1100
+ in: Array<string | number | boolean>;
1101
+ };
1102
+
1103
+ /**
1104
+ * Less than or equal to
1105
+ */
1106
+ export type Lte = {
1107
+ lte: number;
1108
+ };
1109
+
1110
+ /**
1111
+ * Less than
1112
+ */
1113
+ export type Lt = {
1114
+ lt: number;
1115
+ };
1116
+
1117
+ /**
1118
+ * Greater than or equal to
1119
+ */
1120
+ export type Gte = {
1121
+ gte: number;
1122
+ };
1123
+
1124
+ export type One3 = {
1125
+ gt: number;
1126
+ };
1127
+
1128
+ export type OneNe = string | number | boolean;
1129
+
1130
+ /**
1131
+ * Not equal to
1132
+ */
1133
+ export type Ne = {
1134
+ ne: string | number | boolean;
1135
+ };
1136
+
1137
+ export type OneEq = string | number | boolean;
1138
+
1139
+ /**
1140
+ * Equal to
1141
+ */
1142
+ export type Eq = {
1143
+ eq: string | number | boolean;
1144
+ };
1145
+
1146
+ export type KnowledgeFilter1 =
1147
+ | Eq
1148
+ | Ne
1149
+ | One3
1150
+ | Gte
1151
+ | Lt
1152
+ | Lte
1153
+ | In
1154
+ | Nin
1155
+ | Exists;
1156
+
1157
+ /**
1158
+ * A filter to apply to the knowledge base chunk metadata when using knowledge bases in the deployment.
1159
+ */
1160
+ export type KnowledgeFilter = And | Or | {
1161
+ [k: string]: Eq | Ne | One3 | Gte | Lt | Lte | In | Nin | Exists;
1162
+ };
1163
+
880
1164
  export type DeploymentGetConfigRequestBody = {
881
1165
  /**
882
1166
  * The deployment key to invoke
@@ -932,6 +1216,12 @@ export type DeploymentGetConfigRequestBody = {
932
1216
  documents?: Array<Documents> | undefined;
933
1217
  invokeOptions?: InvokeOptions | undefined;
934
1218
  thread?: Thread | undefined;
1219
+ /**
1220
+ * A filter to apply to the knowledge base chunk metadata when using knowledge bases in the deployment.
1221
+ */
1222
+ knowledgeFilter?: And | Or | {
1223
+ [k: string]: Eq | Ne | One3 | Gte | Lt | Lte | In | Nin | Exists;
1224
+ } | undefined;
935
1225
  };
936
1226
 
937
1227
  /**
@@ -975,6 +1265,39 @@ export type DeploymentGetConfigRole = ClosedEnum<
975
1265
  typeof DeploymentGetConfigRole
976
1266
  >;
977
1267
 
1268
+ /**
1269
+ * The type of the content part. Always `file`.
1270
+ */
1271
+ export const DeploymentGetConfig2DeploymentsResponse200ApplicationJSONType = {
1272
+ File: "file",
1273
+ } as const;
1274
+ /**
1275
+ * The type of the content part. Always `file`.
1276
+ */
1277
+ export type DeploymentGetConfig2DeploymentsResponse200ApplicationJSONType =
1278
+ ClosedEnum<
1279
+ typeof DeploymentGetConfig2DeploymentsResponse200ApplicationJSONType
1280
+ >;
1281
+
1282
+ export type DeploymentGetConfig2File = {
1283
+ /**
1284
+ * The base64 encoded file data, used when passing the file to the model as a string.
1285
+ */
1286
+ fileData: string;
1287
+ /**
1288
+ * The name of the file, used when passing the file to the model as a string.
1289
+ */
1290
+ filename?: string | undefined;
1291
+ };
1292
+
1293
+ export type DeploymentGetConfig23 = {
1294
+ /**
1295
+ * The type of the content part. Always `file`.
1296
+ */
1297
+ type: DeploymentGetConfig2DeploymentsResponse200ApplicationJSONType;
1298
+ file: DeploymentGetConfig2File;
1299
+ };
1300
+
978
1301
  export const DeploymentGetConfig2DeploymentsResponse200Type = {
979
1302
  ImageUrl: "image_url",
980
1303
  } as const;
@@ -1022,14 +1345,19 @@ export type DeploymentGetConfig21 = {
1022
1345
 
1023
1346
  export type DeploymentGetConfigContentDeploymentsResponse2 =
1024
1347
  | DeploymentGetConfig21
1025
- | DeploymentGetConfig2Deployments2;
1348
+ | DeploymentGetConfig2Deployments2
1349
+ | DeploymentGetConfig23;
1026
1350
 
1027
1351
  /**
1028
1352
  * 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.
1029
1353
  */
1030
1354
  export type DeploymentGetConfigContent =
1031
1355
  | string
1032
- | Array<DeploymentGetConfig21 | DeploymentGetConfig2Deployments2>;
1356
+ | Array<
1357
+ | DeploymentGetConfig21
1358
+ | DeploymentGetConfig2Deployments2
1359
+ | DeploymentGetConfig23
1360
+ >;
1033
1361
 
1034
1362
  export const DeploymentGetConfigDeploymentsResponseType = {
1035
1363
  Function: "function",
@@ -1063,7 +1391,11 @@ export type DeploymentGetConfigMessages = {
1063
1391
  */
1064
1392
  content:
1065
1393
  | string
1066
- | Array<DeploymentGetConfig21 | DeploymentGetConfig2Deployments2>;
1394
+ | Array<
1395
+ | DeploymentGetConfig21
1396
+ | DeploymentGetConfig2Deployments2
1397
+ | DeploymentGetConfig23
1398
+ >;
1067
1399
  toolCalls?: Array<DeploymentGetConfigToolCalls> | undefined;
1068
1400
  toolCallId?: string | undefined;
1069
1401
  };
@@ -5046,117 +5378,2423 @@ export function threadFromJSON(
5046
5378
  }
5047
5379
 
5048
5380
  /** @internal */
5049
- export const DeploymentGetConfigRequestBody$inboundSchema: z.ZodType<
5050
- DeploymentGetConfigRequestBody,
5381
+ export const OrExists$inboundSchema: z.ZodType<
5382
+ OrExists,
5051
5383
  z.ZodTypeDef,
5052
5384
  unknown
5053
5385
  > = z.object({
5054
- key: z.string(),
5055
- inputs: z.record(z.union([z.string(), z.number(), z.boolean()])).optional(),
5056
- context: z.record(z.any()).optional(),
5057
- prefix_messages: z.array(
5058
- z.union([
5059
- z.lazy(() => DeveloperMessage$inboundSchema),
5060
- z.lazy(() => SystemMessage$inboundSchema),
5061
- z.lazy(() => UserMessage$inboundSchema),
5062
- z.lazy(() => ToolMessage$inboundSchema),
5063
- z.lazy(() => AssistantMessage$inboundSchema),
5064
- ]),
5065
- ).optional(),
5066
- messages: z.array(
5067
- z.union([
5068
- z.lazy(() => MessagesDeveloperMessage$inboundSchema),
5069
- z.lazy(() => MessagesSystemMessage$inboundSchema),
5070
- z.lazy(() => MessagesUserMessage$inboundSchema),
5071
- z.lazy(() => MessagesToolMessage$inboundSchema),
5072
- z.lazy(() => MessagesAssistantMessage$inboundSchema),
5073
- ]),
5074
- ).optional(),
5075
- file_ids: z.array(z.string()).optional(),
5076
- metadata: z.record(z.any()).optional(),
5077
- extra_params: z.record(z.any()).optional(),
5078
- documents: z.array(z.lazy(() => Documents$inboundSchema)).optional(),
5079
- invoke_options: z.lazy(() => InvokeOptions$inboundSchema).optional(),
5080
- thread: z.lazy(() => Thread$inboundSchema).optional(),
5081
- }).transform((v) => {
5082
- return remap$(v, {
5083
- "prefix_messages": "prefixMessages",
5084
- "file_ids": "fileIds",
5085
- "extra_params": "extraParams",
5086
- "invoke_options": "invokeOptions",
5087
- });
5386
+ exists: z.boolean(),
5088
5387
  });
5089
5388
 
5090
5389
  /** @internal */
5091
- export type DeploymentGetConfigRequestBody$Outbound = {
5092
- key: string;
5093
- inputs?: { [k: string]: string | number | boolean } | undefined;
5094
- context?: { [k: string]: any } | undefined;
5095
- prefix_messages?:
5096
- | Array<
5097
- | DeveloperMessage$Outbound
5098
- | SystemMessage$Outbound
5099
- | UserMessage$Outbound
5100
- | ToolMessage$Outbound
5101
- | AssistantMessage$Outbound
5102
- >
5103
- | undefined;
5104
- messages?:
5105
- | Array<
5106
- | MessagesDeveloperMessage$Outbound
5107
- | MessagesSystemMessage$Outbound
5108
- | MessagesUserMessage$Outbound
5109
- | MessagesToolMessage$Outbound
5110
- | MessagesAssistantMessage$Outbound
5111
- >
5112
- | undefined;
5113
- file_ids?: Array<string> | undefined;
5114
- metadata?: { [k: string]: any } | undefined;
5115
- extra_params?: { [k: string]: any } | undefined;
5116
- documents?: Array<Documents$Outbound> | undefined;
5117
- invoke_options?: InvokeOptions$Outbound | undefined;
5118
- thread?: Thread$Outbound | undefined;
5390
+ export type OrExists$Outbound = {
5391
+ exists: boolean;
5119
5392
  };
5120
5393
 
5121
5394
  /** @internal */
5122
- export const DeploymentGetConfigRequestBody$outboundSchema: z.ZodType<
5123
- DeploymentGetConfigRequestBody$Outbound,
5395
+ export const OrExists$outboundSchema: z.ZodType<
5396
+ OrExists$Outbound,
5124
5397
  z.ZodTypeDef,
5125
- DeploymentGetConfigRequestBody
5398
+ OrExists
5126
5399
  > = z.object({
5127
- key: z.string(),
5128
- inputs: z.record(z.union([z.string(), z.number(), z.boolean()])).optional(),
5129
- context: z.record(z.any()).optional(),
5130
- prefixMessages: z.array(
5131
- z.union([
5132
- z.lazy(() => DeveloperMessage$outboundSchema),
5133
- z.lazy(() => SystemMessage$outboundSchema),
5134
- z.lazy(() => UserMessage$outboundSchema),
5135
- z.lazy(() => ToolMessage$outboundSchema),
5136
- z.lazy(() => AssistantMessage$outboundSchema),
5137
- ]),
5138
- ).optional(),
5139
- messages: z.array(
5140
- z.union([
5141
- z.lazy(() => MessagesDeveloperMessage$outboundSchema),
5142
- z.lazy(() => MessagesSystemMessage$outboundSchema),
5143
- z.lazy(() => MessagesUserMessage$outboundSchema),
5144
- z.lazy(() => MessagesToolMessage$outboundSchema),
5145
- z.lazy(() => MessagesAssistantMessage$outboundSchema),
5146
- ]),
5147
- ).optional(),
5148
- fileIds: z.array(z.string()).optional(),
5149
- metadata: z.record(z.any()).optional(),
5150
- extraParams: z.record(z.any()).optional(),
5151
- documents: z.array(z.lazy(() => Documents$outboundSchema)).optional(),
5152
- invokeOptions: z.lazy(() => InvokeOptions$outboundSchema).optional(),
5153
- thread: z.lazy(() => Thread$outboundSchema).optional(),
5154
- }).transform((v) => {
5155
- return remap$(v, {
5156
- prefixMessages: "prefix_messages",
5157
- fileIds: "file_ids",
5158
- extraParams: "extra_params",
5400
+ exists: z.boolean(),
5401
+ });
5402
+
5403
+ /**
5404
+ * @internal
5405
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
5406
+ */
5407
+ export namespace OrExists$ {
5408
+ /** @deprecated use `OrExists$inboundSchema` instead. */
5409
+ export const inboundSchema = OrExists$inboundSchema;
5410
+ /** @deprecated use `OrExists$outboundSchema` instead. */
5411
+ export const outboundSchema = OrExists$outboundSchema;
5412
+ /** @deprecated use `OrExists$Outbound` instead. */
5413
+ export type Outbound = OrExists$Outbound;
5414
+ }
5415
+
5416
+ export function orExistsToJSON(orExists: OrExists): string {
5417
+ return JSON.stringify(OrExists$outboundSchema.parse(orExists));
5418
+ }
5419
+
5420
+ export function orExistsFromJSON(
5421
+ jsonString: string,
5422
+ ): SafeParseResult<OrExists, SDKValidationError> {
5423
+ return safeParse(
5424
+ jsonString,
5425
+ (x) => OrExists$inboundSchema.parse(JSON.parse(x)),
5426
+ `Failed to parse 'OrExists' from JSON`,
5427
+ );
5428
+ }
5429
+
5430
+ /** @internal */
5431
+ export const DeploymentGetConfigOrNin$inboundSchema: z.ZodType<
5432
+ DeploymentGetConfigOrNin,
5433
+ z.ZodTypeDef,
5434
+ unknown
5435
+ > = z.union([z.string(), z.number(), z.boolean()]);
5436
+
5437
+ /** @internal */
5438
+ export type DeploymentGetConfigOrNin$Outbound = string | number | boolean;
5439
+
5440
+ /** @internal */
5441
+ export const DeploymentGetConfigOrNin$outboundSchema: z.ZodType<
5442
+ DeploymentGetConfigOrNin$Outbound,
5443
+ z.ZodTypeDef,
5444
+ DeploymentGetConfigOrNin
5445
+ > = z.union([z.string(), z.number(), z.boolean()]);
5446
+
5447
+ /**
5448
+ * @internal
5449
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
5450
+ */
5451
+ export namespace DeploymentGetConfigOrNin$ {
5452
+ /** @deprecated use `DeploymentGetConfigOrNin$inboundSchema` instead. */
5453
+ export const inboundSchema = DeploymentGetConfigOrNin$inboundSchema;
5454
+ /** @deprecated use `DeploymentGetConfigOrNin$outboundSchema` instead. */
5455
+ export const outboundSchema = DeploymentGetConfigOrNin$outboundSchema;
5456
+ /** @deprecated use `DeploymentGetConfigOrNin$Outbound` instead. */
5457
+ export type Outbound = DeploymentGetConfigOrNin$Outbound;
5458
+ }
5459
+
5460
+ export function deploymentGetConfigOrNinToJSON(
5461
+ deploymentGetConfigOrNin: DeploymentGetConfigOrNin,
5462
+ ): string {
5463
+ return JSON.stringify(
5464
+ DeploymentGetConfigOrNin$outboundSchema.parse(deploymentGetConfigOrNin),
5465
+ );
5466
+ }
5467
+
5468
+ export function deploymentGetConfigOrNinFromJSON(
5469
+ jsonString: string,
5470
+ ): SafeParseResult<DeploymentGetConfigOrNin, SDKValidationError> {
5471
+ return safeParse(
5472
+ jsonString,
5473
+ (x) => DeploymentGetConfigOrNin$inboundSchema.parse(JSON.parse(x)),
5474
+ `Failed to parse 'DeploymentGetConfigOrNin' from JSON`,
5475
+ );
5476
+ }
5477
+
5478
+ /** @internal */
5479
+ export const OrNin$inboundSchema: z.ZodType<OrNin, z.ZodTypeDef, unknown> = z
5480
+ .object({
5481
+ nin: z.array(z.union([z.string(), z.number(), z.boolean()])),
5482
+ });
5483
+
5484
+ /** @internal */
5485
+ export type OrNin$Outbound = {
5486
+ nin: Array<string | number | boolean>;
5487
+ };
5488
+
5489
+ /** @internal */
5490
+ export const OrNin$outboundSchema: z.ZodType<
5491
+ OrNin$Outbound,
5492
+ z.ZodTypeDef,
5493
+ OrNin
5494
+ > = z.object({
5495
+ nin: z.array(z.union([z.string(), z.number(), z.boolean()])),
5496
+ });
5497
+
5498
+ /**
5499
+ * @internal
5500
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
5501
+ */
5502
+ export namespace OrNin$ {
5503
+ /** @deprecated use `OrNin$inboundSchema` instead. */
5504
+ export const inboundSchema = OrNin$inboundSchema;
5505
+ /** @deprecated use `OrNin$outboundSchema` instead. */
5506
+ export const outboundSchema = OrNin$outboundSchema;
5507
+ /** @deprecated use `OrNin$Outbound` instead. */
5508
+ export type Outbound = OrNin$Outbound;
5509
+ }
5510
+
5511
+ export function orNinToJSON(orNin: OrNin): string {
5512
+ return JSON.stringify(OrNin$outboundSchema.parse(orNin));
5513
+ }
5514
+
5515
+ export function orNinFromJSON(
5516
+ jsonString: string,
5517
+ ): SafeParseResult<OrNin, SDKValidationError> {
5518
+ return safeParse(
5519
+ jsonString,
5520
+ (x) => OrNin$inboundSchema.parse(JSON.parse(x)),
5521
+ `Failed to parse 'OrNin' from JSON`,
5522
+ );
5523
+ }
5524
+
5525
+ /** @internal */
5526
+ export const DeploymentGetConfigOrIn$inboundSchema: z.ZodType<
5527
+ DeploymentGetConfigOrIn,
5528
+ z.ZodTypeDef,
5529
+ unknown
5530
+ > = z.union([z.string(), z.number(), z.boolean()]);
5531
+
5532
+ /** @internal */
5533
+ export type DeploymentGetConfigOrIn$Outbound = string | number | boolean;
5534
+
5535
+ /** @internal */
5536
+ export const DeploymentGetConfigOrIn$outboundSchema: z.ZodType<
5537
+ DeploymentGetConfigOrIn$Outbound,
5538
+ z.ZodTypeDef,
5539
+ DeploymentGetConfigOrIn
5540
+ > = z.union([z.string(), z.number(), z.boolean()]);
5541
+
5542
+ /**
5543
+ * @internal
5544
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
5545
+ */
5546
+ export namespace DeploymentGetConfigOrIn$ {
5547
+ /** @deprecated use `DeploymentGetConfigOrIn$inboundSchema` instead. */
5548
+ export const inboundSchema = DeploymentGetConfigOrIn$inboundSchema;
5549
+ /** @deprecated use `DeploymentGetConfigOrIn$outboundSchema` instead. */
5550
+ export const outboundSchema = DeploymentGetConfigOrIn$outboundSchema;
5551
+ /** @deprecated use `DeploymentGetConfigOrIn$Outbound` instead. */
5552
+ export type Outbound = DeploymentGetConfigOrIn$Outbound;
5553
+ }
5554
+
5555
+ export function deploymentGetConfigOrInToJSON(
5556
+ deploymentGetConfigOrIn: DeploymentGetConfigOrIn,
5557
+ ): string {
5558
+ return JSON.stringify(
5559
+ DeploymentGetConfigOrIn$outboundSchema.parse(deploymentGetConfigOrIn),
5560
+ );
5561
+ }
5562
+
5563
+ export function deploymentGetConfigOrInFromJSON(
5564
+ jsonString: string,
5565
+ ): SafeParseResult<DeploymentGetConfigOrIn, SDKValidationError> {
5566
+ return safeParse(
5567
+ jsonString,
5568
+ (x) => DeploymentGetConfigOrIn$inboundSchema.parse(JSON.parse(x)),
5569
+ `Failed to parse 'DeploymentGetConfigOrIn' from JSON`,
5570
+ );
5571
+ }
5572
+
5573
+ /** @internal */
5574
+ export const OrIn$inboundSchema: z.ZodType<OrIn, z.ZodTypeDef, unknown> = z
5575
+ .object({
5576
+ in: z.array(z.union([z.string(), z.number(), z.boolean()])),
5577
+ });
5578
+
5579
+ /** @internal */
5580
+ export type OrIn$Outbound = {
5581
+ in: Array<string | number | boolean>;
5582
+ };
5583
+
5584
+ /** @internal */
5585
+ export const OrIn$outboundSchema: z.ZodType<OrIn$Outbound, z.ZodTypeDef, OrIn> =
5586
+ z.object({
5587
+ in: z.array(z.union([z.string(), z.number(), z.boolean()])),
5588
+ });
5589
+
5590
+ /**
5591
+ * @internal
5592
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
5593
+ */
5594
+ export namespace OrIn$ {
5595
+ /** @deprecated use `OrIn$inboundSchema` instead. */
5596
+ export const inboundSchema = OrIn$inboundSchema;
5597
+ /** @deprecated use `OrIn$outboundSchema` instead. */
5598
+ export const outboundSchema = OrIn$outboundSchema;
5599
+ /** @deprecated use `OrIn$Outbound` instead. */
5600
+ export type Outbound = OrIn$Outbound;
5601
+ }
5602
+
5603
+ export function orInToJSON(orIn: OrIn): string {
5604
+ return JSON.stringify(OrIn$outboundSchema.parse(orIn));
5605
+ }
5606
+
5607
+ export function orInFromJSON(
5608
+ jsonString: string,
5609
+ ): SafeParseResult<OrIn, SDKValidationError> {
5610
+ return safeParse(
5611
+ jsonString,
5612
+ (x) => OrIn$inboundSchema.parse(JSON.parse(x)),
5613
+ `Failed to parse 'OrIn' from JSON`,
5614
+ );
5615
+ }
5616
+
5617
+ /** @internal */
5618
+ export const OrLte$inboundSchema: z.ZodType<OrLte, z.ZodTypeDef, unknown> = z
5619
+ .object({
5620
+ lte: z.number(),
5621
+ });
5622
+
5623
+ /** @internal */
5624
+ export type OrLte$Outbound = {
5625
+ lte: number;
5626
+ };
5627
+
5628
+ /** @internal */
5629
+ export const OrLte$outboundSchema: z.ZodType<
5630
+ OrLte$Outbound,
5631
+ z.ZodTypeDef,
5632
+ OrLte
5633
+ > = z.object({
5634
+ lte: z.number(),
5635
+ });
5636
+
5637
+ /**
5638
+ * @internal
5639
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
5640
+ */
5641
+ export namespace OrLte$ {
5642
+ /** @deprecated use `OrLte$inboundSchema` instead. */
5643
+ export const inboundSchema = OrLte$inboundSchema;
5644
+ /** @deprecated use `OrLte$outboundSchema` instead. */
5645
+ export const outboundSchema = OrLte$outboundSchema;
5646
+ /** @deprecated use `OrLte$Outbound` instead. */
5647
+ export type Outbound = OrLte$Outbound;
5648
+ }
5649
+
5650
+ export function orLteToJSON(orLte: OrLte): string {
5651
+ return JSON.stringify(OrLte$outboundSchema.parse(orLte));
5652
+ }
5653
+
5654
+ export function orLteFromJSON(
5655
+ jsonString: string,
5656
+ ): SafeParseResult<OrLte, SDKValidationError> {
5657
+ return safeParse(
5658
+ jsonString,
5659
+ (x) => OrLte$inboundSchema.parse(JSON.parse(x)),
5660
+ `Failed to parse 'OrLte' from JSON`,
5661
+ );
5662
+ }
5663
+
5664
+ /** @internal */
5665
+ export const OrLt$inboundSchema: z.ZodType<OrLt, z.ZodTypeDef, unknown> = z
5666
+ .object({
5667
+ lt: z.number(),
5668
+ });
5669
+
5670
+ /** @internal */
5671
+ export type OrLt$Outbound = {
5672
+ lt: number;
5673
+ };
5674
+
5675
+ /** @internal */
5676
+ export const OrLt$outboundSchema: z.ZodType<OrLt$Outbound, z.ZodTypeDef, OrLt> =
5677
+ z.object({
5678
+ lt: z.number(),
5679
+ });
5680
+
5681
+ /**
5682
+ * @internal
5683
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
5684
+ */
5685
+ export namespace OrLt$ {
5686
+ /** @deprecated use `OrLt$inboundSchema` instead. */
5687
+ export const inboundSchema = OrLt$inboundSchema;
5688
+ /** @deprecated use `OrLt$outboundSchema` instead. */
5689
+ export const outboundSchema = OrLt$outboundSchema;
5690
+ /** @deprecated use `OrLt$Outbound` instead. */
5691
+ export type Outbound = OrLt$Outbound;
5692
+ }
5693
+
5694
+ export function orLtToJSON(orLt: OrLt): string {
5695
+ return JSON.stringify(OrLt$outboundSchema.parse(orLt));
5696
+ }
5697
+
5698
+ export function orLtFromJSON(
5699
+ jsonString: string,
5700
+ ): SafeParseResult<OrLt, SDKValidationError> {
5701
+ return safeParse(
5702
+ jsonString,
5703
+ (x) => OrLt$inboundSchema.parse(JSON.parse(x)),
5704
+ `Failed to parse 'OrLt' from JSON`,
5705
+ );
5706
+ }
5707
+
5708
+ /** @internal */
5709
+ export const OrGte$inboundSchema: z.ZodType<OrGte, z.ZodTypeDef, unknown> = z
5710
+ .object({
5711
+ gte: z.number(),
5712
+ });
5713
+
5714
+ /** @internal */
5715
+ export type OrGte$Outbound = {
5716
+ gte: number;
5717
+ };
5718
+
5719
+ /** @internal */
5720
+ export const OrGte$outboundSchema: z.ZodType<
5721
+ OrGte$Outbound,
5722
+ z.ZodTypeDef,
5723
+ OrGte
5724
+ > = z.object({
5725
+ gte: z.number(),
5726
+ });
5727
+
5728
+ /**
5729
+ * @internal
5730
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
5731
+ */
5732
+ export namespace OrGte$ {
5733
+ /** @deprecated use `OrGte$inboundSchema` instead. */
5734
+ export const inboundSchema = OrGte$inboundSchema;
5735
+ /** @deprecated use `OrGte$outboundSchema` instead. */
5736
+ export const outboundSchema = OrGte$outboundSchema;
5737
+ /** @deprecated use `OrGte$Outbound` instead. */
5738
+ export type Outbound = OrGte$Outbound;
5739
+ }
5740
+
5741
+ export function orGteToJSON(orGte: OrGte): string {
5742
+ return JSON.stringify(OrGte$outboundSchema.parse(orGte));
5743
+ }
5744
+
5745
+ export function orGteFromJSON(
5746
+ jsonString: string,
5747
+ ): SafeParseResult<OrGte, SDKValidationError> {
5748
+ return safeParse(
5749
+ jsonString,
5750
+ (x) => OrGte$inboundSchema.parse(JSON.parse(x)),
5751
+ `Failed to parse 'OrGte' from JSON`,
5752
+ );
5753
+ }
5754
+
5755
+ /** @internal */
5756
+ export const Or3$inboundSchema: z.ZodType<Or3, z.ZodTypeDef, unknown> = z
5757
+ .object({
5758
+ gt: z.number(),
5759
+ });
5760
+
5761
+ /** @internal */
5762
+ export type Or3$Outbound = {
5763
+ gt: number;
5764
+ };
5765
+
5766
+ /** @internal */
5767
+ export const Or3$outboundSchema: z.ZodType<Or3$Outbound, z.ZodTypeDef, Or3> = z
5768
+ .object({
5769
+ gt: z.number(),
5770
+ });
5771
+
5772
+ /**
5773
+ * @internal
5774
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
5775
+ */
5776
+ export namespace Or3$ {
5777
+ /** @deprecated use `Or3$inboundSchema` instead. */
5778
+ export const inboundSchema = Or3$inboundSchema;
5779
+ /** @deprecated use `Or3$outboundSchema` instead. */
5780
+ export const outboundSchema = Or3$outboundSchema;
5781
+ /** @deprecated use `Or3$Outbound` instead. */
5782
+ export type Outbound = Or3$Outbound;
5783
+ }
5784
+
5785
+ export function or3ToJSON(or3: Or3): string {
5786
+ return JSON.stringify(Or3$outboundSchema.parse(or3));
5787
+ }
5788
+
5789
+ export function or3FromJSON(
5790
+ jsonString: string,
5791
+ ): SafeParseResult<Or3, SDKValidationError> {
5792
+ return safeParse(
5793
+ jsonString,
5794
+ (x) => Or3$inboundSchema.parse(JSON.parse(x)),
5795
+ `Failed to parse 'Or3' from JSON`,
5796
+ );
5797
+ }
5798
+
5799
+ /** @internal */
5800
+ export const DeploymentGetConfigOrNe$inboundSchema: z.ZodType<
5801
+ DeploymentGetConfigOrNe,
5802
+ z.ZodTypeDef,
5803
+ unknown
5804
+ > = z.union([z.string(), z.number(), z.boolean()]);
5805
+
5806
+ /** @internal */
5807
+ export type DeploymentGetConfigOrNe$Outbound = string | number | boolean;
5808
+
5809
+ /** @internal */
5810
+ export const DeploymentGetConfigOrNe$outboundSchema: z.ZodType<
5811
+ DeploymentGetConfigOrNe$Outbound,
5812
+ z.ZodTypeDef,
5813
+ DeploymentGetConfigOrNe
5814
+ > = z.union([z.string(), z.number(), z.boolean()]);
5815
+
5816
+ /**
5817
+ * @internal
5818
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
5819
+ */
5820
+ export namespace DeploymentGetConfigOrNe$ {
5821
+ /** @deprecated use `DeploymentGetConfigOrNe$inboundSchema` instead. */
5822
+ export const inboundSchema = DeploymentGetConfigOrNe$inboundSchema;
5823
+ /** @deprecated use `DeploymentGetConfigOrNe$outboundSchema` instead. */
5824
+ export const outboundSchema = DeploymentGetConfigOrNe$outboundSchema;
5825
+ /** @deprecated use `DeploymentGetConfigOrNe$Outbound` instead. */
5826
+ export type Outbound = DeploymentGetConfigOrNe$Outbound;
5827
+ }
5828
+
5829
+ export function deploymentGetConfigOrNeToJSON(
5830
+ deploymentGetConfigOrNe: DeploymentGetConfigOrNe,
5831
+ ): string {
5832
+ return JSON.stringify(
5833
+ DeploymentGetConfigOrNe$outboundSchema.parse(deploymentGetConfigOrNe),
5834
+ );
5835
+ }
5836
+
5837
+ export function deploymentGetConfigOrNeFromJSON(
5838
+ jsonString: string,
5839
+ ): SafeParseResult<DeploymentGetConfigOrNe, SDKValidationError> {
5840
+ return safeParse(
5841
+ jsonString,
5842
+ (x) => DeploymentGetConfigOrNe$inboundSchema.parse(JSON.parse(x)),
5843
+ `Failed to parse 'DeploymentGetConfigOrNe' from JSON`,
5844
+ );
5845
+ }
5846
+
5847
+ /** @internal */
5848
+ export const OrNe$inboundSchema: z.ZodType<OrNe, z.ZodTypeDef, unknown> = z
5849
+ .object({
5850
+ ne: z.union([z.string(), z.number(), z.boolean()]),
5851
+ });
5852
+
5853
+ /** @internal */
5854
+ export type OrNe$Outbound = {
5855
+ ne: string | number | boolean;
5856
+ };
5857
+
5858
+ /** @internal */
5859
+ export const OrNe$outboundSchema: z.ZodType<OrNe$Outbound, z.ZodTypeDef, OrNe> =
5860
+ z.object({
5861
+ ne: z.union([z.string(), z.number(), z.boolean()]),
5862
+ });
5863
+
5864
+ /**
5865
+ * @internal
5866
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
5867
+ */
5868
+ export namespace OrNe$ {
5869
+ /** @deprecated use `OrNe$inboundSchema` instead. */
5870
+ export const inboundSchema = OrNe$inboundSchema;
5871
+ /** @deprecated use `OrNe$outboundSchema` instead. */
5872
+ export const outboundSchema = OrNe$outboundSchema;
5873
+ /** @deprecated use `OrNe$Outbound` instead. */
5874
+ export type Outbound = OrNe$Outbound;
5875
+ }
5876
+
5877
+ export function orNeToJSON(orNe: OrNe): string {
5878
+ return JSON.stringify(OrNe$outboundSchema.parse(orNe));
5879
+ }
5880
+
5881
+ export function orNeFromJSON(
5882
+ jsonString: string,
5883
+ ): SafeParseResult<OrNe, SDKValidationError> {
5884
+ return safeParse(
5885
+ jsonString,
5886
+ (x) => OrNe$inboundSchema.parse(JSON.parse(x)),
5887
+ `Failed to parse 'OrNe' from JSON`,
5888
+ );
5889
+ }
5890
+
5891
+ /** @internal */
5892
+ export const DeploymentGetConfigOrEq$inboundSchema: z.ZodType<
5893
+ DeploymentGetConfigOrEq,
5894
+ z.ZodTypeDef,
5895
+ unknown
5896
+ > = z.union([z.string(), z.number(), z.boolean()]);
5897
+
5898
+ /** @internal */
5899
+ export type DeploymentGetConfigOrEq$Outbound = string | number | boolean;
5900
+
5901
+ /** @internal */
5902
+ export const DeploymentGetConfigOrEq$outboundSchema: z.ZodType<
5903
+ DeploymentGetConfigOrEq$Outbound,
5904
+ z.ZodTypeDef,
5905
+ DeploymentGetConfigOrEq
5906
+ > = z.union([z.string(), z.number(), z.boolean()]);
5907
+
5908
+ /**
5909
+ * @internal
5910
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
5911
+ */
5912
+ export namespace DeploymentGetConfigOrEq$ {
5913
+ /** @deprecated use `DeploymentGetConfigOrEq$inboundSchema` instead. */
5914
+ export const inboundSchema = DeploymentGetConfigOrEq$inboundSchema;
5915
+ /** @deprecated use `DeploymentGetConfigOrEq$outboundSchema` instead. */
5916
+ export const outboundSchema = DeploymentGetConfigOrEq$outboundSchema;
5917
+ /** @deprecated use `DeploymentGetConfigOrEq$Outbound` instead. */
5918
+ export type Outbound = DeploymentGetConfigOrEq$Outbound;
5919
+ }
5920
+
5921
+ export function deploymentGetConfigOrEqToJSON(
5922
+ deploymentGetConfigOrEq: DeploymentGetConfigOrEq,
5923
+ ): string {
5924
+ return JSON.stringify(
5925
+ DeploymentGetConfigOrEq$outboundSchema.parse(deploymentGetConfigOrEq),
5926
+ );
5927
+ }
5928
+
5929
+ export function deploymentGetConfigOrEqFromJSON(
5930
+ jsonString: string,
5931
+ ): SafeParseResult<DeploymentGetConfigOrEq, SDKValidationError> {
5932
+ return safeParse(
5933
+ jsonString,
5934
+ (x) => DeploymentGetConfigOrEq$inboundSchema.parse(JSON.parse(x)),
5935
+ `Failed to parse 'DeploymentGetConfigOrEq' from JSON`,
5936
+ );
5937
+ }
5938
+
5939
+ /** @internal */
5940
+ export const OrEq$inboundSchema: z.ZodType<OrEq, z.ZodTypeDef, unknown> = z
5941
+ .object({
5942
+ eq: z.union([z.string(), z.number(), z.boolean()]),
5943
+ });
5944
+
5945
+ /** @internal */
5946
+ export type OrEq$Outbound = {
5947
+ eq: string | number | boolean;
5948
+ };
5949
+
5950
+ /** @internal */
5951
+ export const OrEq$outboundSchema: z.ZodType<OrEq$Outbound, z.ZodTypeDef, OrEq> =
5952
+ z.object({
5953
+ eq: z.union([z.string(), z.number(), z.boolean()]),
5954
+ });
5955
+
5956
+ /**
5957
+ * @internal
5958
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
5959
+ */
5960
+ export namespace OrEq$ {
5961
+ /** @deprecated use `OrEq$inboundSchema` instead. */
5962
+ export const inboundSchema = OrEq$inboundSchema;
5963
+ /** @deprecated use `OrEq$outboundSchema` instead. */
5964
+ export const outboundSchema = OrEq$outboundSchema;
5965
+ /** @deprecated use `OrEq$Outbound` instead. */
5966
+ export type Outbound = OrEq$Outbound;
5967
+ }
5968
+
5969
+ export function orEqToJSON(orEq: OrEq): string {
5970
+ return JSON.stringify(OrEq$outboundSchema.parse(orEq));
5971
+ }
5972
+
5973
+ export function orEqFromJSON(
5974
+ jsonString: string,
5975
+ ): SafeParseResult<OrEq, SDKValidationError> {
5976
+ return safeParse(
5977
+ jsonString,
5978
+ (x) => OrEq$inboundSchema.parse(JSON.parse(x)),
5979
+ `Failed to parse 'OrEq' from JSON`,
5980
+ );
5981
+ }
5982
+
5983
+ /** @internal */
5984
+ export const KnowledgeFilterOr$inboundSchema: z.ZodType<
5985
+ KnowledgeFilterOr,
5986
+ z.ZodTypeDef,
5987
+ unknown
5988
+ > = z.union([
5989
+ z.lazy(() => OrEq$inboundSchema),
5990
+ z.lazy(() => OrNe$inboundSchema),
5991
+ z.lazy(() => Or3$inboundSchema),
5992
+ z.lazy(() => OrGte$inboundSchema),
5993
+ z.lazy(() => OrLt$inboundSchema),
5994
+ z.lazy(() => OrLte$inboundSchema),
5995
+ z.lazy(() => OrIn$inboundSchema),
5996
+ z.lazy(() => OrNin$inboundSchema),
5997
+ z.lazy(() => OrExists$inboundSchema),
5998
+ ]);
5999
+
6000
+ /** @internal */
6001
+ export type KnowledgeFilterOr$Outbound =
6002
+ | OrEq$Outbound
6003
+ | OrNe$Outbound
6004
+ | Or3$Outbound
6005
+ | OrGte$Outbound
6006
+ | OrLt$Outbound
6007
+ | OrLte$Outbound
6008
+ | OrIn$Outbound
6009
+ | OrNin$Outbound
6010
+ | OrExists$Outbound;
6011
+
6012
+ /** @internal */
6013
+ export const KnowledgeFilterOr$outboundSchema: z.ZodType<
6014
+ KnowledgeFilterOr$Outbound,
6015
+ z.ZodTypeDef,
6016
+ KnowledgeFilterOr
6017
+ > = z.union([
6018
+ z.lazy(() => OrEq$outboundSchema),
6019
+ z.lazy(() => OrNe$outboundSchema),
6020
+ z.lazy(() => Or3$outboundSchema),
6021
+ z.lazy(() => OrGte$outboundSchema),
6022
+ z.lazy(() => OrLt$outboundSchema),
6023
+ z.lazy(() => OrLte$outboundSchema),
6024
+ z.lazy(() => OrIn$outboundSchema),
6025
+ z.lazy(() => OrNin$outboundSchema),
6026
+ z.lazy(() => OrExists$outboundSchema),
6027
+ ]);
6028
+
6029
+ /**
6030
+ * @internal
6031
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6032
+ */
6033
+ export namespace KnowledgeFilterOr$ {
6034
+ /** @deprecated use `KnowledgeFilterOr$inboundSchema` instead. */
6035
+ export const inboundSchema = KnowledgeFilterOr$inboundSchema;
6036
+ /** @deprecated use `KnowledgeFilterOr$outboundSchema` instead. */
6037
+ export const outboundSchema = KnowledgeFilterOr$outboundSchema;
6038
+ /** @deprecated use `KnowledgeFilterOr$Outbound` instead. */
6039
+ export type Outbound = KnowledgeFilterOr$Outbound;
6040
+ }
6041
+
6042
+ export function knowledgeFilterOrToJSON(
6043
+ knowledgeFilterOr: KnowledgeFilterOr,
6044
+ ): string {
6045
+ return JSON.stringify(
6046
+ KnowledgeFilterOr$outboundSchema.parse(knowledgeFilterOr),
6047
+ );
6048
+ }
6049
+
6050
+ export function knowledgeFilterOrFromJSON(
6051
+ jsonString: string,
6052
+ ): SafeParseResult<KnowledgeFilterOr, SDKValidationError> {
6053
+ return safeParse(
6054
+ jsonString,
6055
+ (x) => KnowledgeFilterOr$inboundSchema.parse(JSON.parse(x)),
6056
+ `Failed to parse 'KnowledgeFilterOr' from JSON`,
6057
+ );
6058
+ }
6059
+
6060
+ /** @internal */
6061
+ export const Or$inboundSchema: z.ZodType<Or, z.ZodTypeDef, unknown> = z.object({
6062
+ or: z.array(
6063
+ z.record(z.union([
6064
+ z.lazy(() => OrEq$inboundSchema),
6065
+ z.lazy(() =>
6066
+ OrNe$inboundSchema
6067
+ ),
6068
+ z.lazy(() => Or3$inboundSchema),
6069
+ z.lazy(() => OrGte$inboundSchema),
6070
+ z.lazy(() => OrLt$inboundSchema),
6071
+ z.lazy(() => OrLte$inboundSchema),
6072
+ z.lazy(() => OrIn$inboundSchema),
6073
+ z.lazy(() => OrNin$inboundSchema),
6074
+ z.lazy(() => OrExists$inboundSchema),
6075
+ ])),
6076
+ ),
6077
+ });
6078
+
6079
+ /** @internal */
6080
+ export type Or$Outbound = {
6081
+ or: Array<
6082
+ {
6083
+ [k: string]:
6084
+ | OrEq$Outbound
6085
+ | OrNe$Outbound
6086
+ | Or3$Outbound
6087
+ | OrGte$Outbound
6088
+ | OrLt$Outbound
6089
+ | OrLte$Outbound
6090
+ | OrIn$Outbound
6091
+ | OrNin$Outbound
6092
+ | OrExists$Outbound;
6093
+ }
6094
+ >;
6095
+ };
6096
+
6097
+ /** @internal */
6098
+ export const Or$outboundSchema: z.ZodType<Or$Outbound, z.ZodTypeDef, Or> = z
6099
+ .object({
6100
+ or: z.array(
6101
+ z.record(z.union([
6102
+ z.lazy(() => OrEq$outboundSchema),
6103
+ z.lazy(() =>
6104
+ OrNe$outboundSchema
6105
+ ),
6106
+ z.lazy(() => Or3$outboundSchema),
6107
+ z.lazy(() => OrGte$outboundSchema),
6108
+ z.lazy(() => OrLt$outboundSchema),
6109
+ z.lazy(() => OrLte$outboundSchema),
6110
+ z.lazy(() => OrIn$outboundSchema),
6111
+ z.lazy(() => OrNin$outboundSchema),
6112
+ z.lazy(() => OrExists$outboundSchema),
6113
+ ])),
6114
+ ),
6115
+ });
6116
+
6117
+ /**
6118
+ * @internal
6119
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6120
+ */
6121
+ export namespace Or$ {
6122
+ /** @deprecated use `Or$inboundSchema` instead. */
6123
+ export const inboundSchema = Or$inboundSchema;
6124
+ /** @deprecated use `Or$outboundSchema` instead. */
6125
+ export const outboundSchema = Or$outboundSchema;
6126
+ /** @deprecated use `Or$Outbound` instead. */
6127
+ export type Outbound = Or$Outbound;
6128
+ }
6129
+
6130
+ export function orToJSON(or: Or): string {
6131
+ return JSON.stringify(Or$outboundSchema.parse(or));
6132
+ }
6133
+
6134
+ export function orFromJSON(
6135
+ jsonString: string,
6136
+ ): SafeParseResult<Or, SDKValidationError> {
6137
+ return safeParse(
6138
+ jsonString,
6139
+ (x) => Or$inboundSchema.parse(JSON.parse(x)),
6140
+ `Failed to parse 'Or' from JSON`,
6141
+ );
6142
+ }
6143
+
6144
+ /** @internal */
6145
+ export const AndExists$inboundSchema: z.ZodType<
6146
+ AndExists,
6147
+ z.ZodTypeDef,
6148
+ unknown
6149
+ > = z.object({
6150
+ exists: z.boolean(),
6151
+ });
6152
+
6153
+ /** @internal */
6154
+ export type AndExists$Outbound = {
6155
+ exists: boolean;
6156
+ };
6157
+
6158
+ /** @internal */
6159
+ export const AndExists$outboundSchema: z.ZodType<
6160
+ AndExists$Outbound,
6161
+ z.ZodTypeDef,
6162
+ AndExists
6163
+ > = z.object({
6164
+ exists: z.boolean(),
6165
+ });
6166
+
6167
+ /**
6168
+ * @internal
6169
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6170
+ */
6171
+ export namespace AndExists$ {
6172
+ /** @deprecated use `AndExists$inboundSchema` instead. */
6173
+ export const inboundSchema = AndExists$inboundSchema;
6174
+ /** @deprecated use `AndExists$outboundSchema` instead. */
6175
+ export const outboundSchema = AndExists$outboundSchema;
6176
+ /** @deprecated use `AndExists$Outbound` instead. */
6177
+ export type Outbound = AndExists$Outbound;
6178
+ }
6179
+
6180
+ export function andExistsToJSON(andExists: AndExists): string {
6181
+ return JSON.stringify(AndExists$outboundSchema.parse(andExists));
6182
+ }
6183
+
6184
+ export function andExistsFromJSON(
6185
+ jsonString: string,
6186
+ ): SafeParseResult<AndExists, SDKValidationError> {
6187
+ return safeParse(
6188
+ jsonString,
6189
+ (x) => AndExists$inboundSchema.parse(JSON.parse(x)),
6190
+ `Failed to parse 'AndExists' from JSON`,
6191
+ );
6192
+ }
6193
+
6194
+ /** @internal */
6195
+ export const DeploymentGetConfigAndNin$inboundSchema: z.ZodType<
6196
+ DeploymentGetConfigAndNin,
6197
+ z.ZodTypeDef,
6198
+ unknown
6199
+ > = z.union([z.string(), z.number(), z.boolean()]);
6200
+
6201
+ /** @internal */
6202
+ export type DeploymentGetConfigAndNin$Outbound = string | number | boolean;
6203
+
6204
+ /** @internal */
6205
+ export const DeploymentGetConfigAndNin$outboundSchema: z.ZodType<
6206
+ DeploymentGetConfigAndNin$Outbound,
6207
+ z.ZodTypeDef,
6208
+ DeploymentGetConfigAndNin
6209
+ > = z.union([z.string(), z.number(), z.boolean()]);
6210
+
6211
+ /**
6212
+ * @internal
6213
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6214
+ */
6215
+ export namespace DeploymentGetConfigAndNin$ {
6216
+ /** @deprecated use `DeploymentGetConfigAndNin$inboundSchema` instead. */
6217
+ export const inboundSchema = DeploymentGetConfigAndNin$inboundSchema;
6218
+ /** @deprecated use `DeploymentGetConfigAndNin$outboundSchema` instead. */
6219
+ export const outboundSchema = DeploymentGetConfigAndNin$outboundSchema;
6220
+ /** @deprecated use `DeploymentGetConfigAndNin$Outbound` instead. */
6221
+ export type Outbound = DeploymentGetConfigAndNin$Outbound;
6222
+ }
6223
+
6224
+ export function deploymentGetConfigAndNinToJSON(
6225
+ deploymentGetConfigAndNin: DeploymentGetConfigAndNin,
6226
+ ): string {
6227
+ return JSON.stringify(
6228
+ DeploymentGetConfigAndNin$outboundSchema.parse(deploymentGetConfigAndNin),
6229
+ );
6230
+ }
6231
+
6232
+ export function deploymentGetConfigAndNinFromJSON(
6233
+ jsonString: string,
6234
+ ): SafeParseResult<DeploymentGetConfigAndNin, SDKValidationError> {
6235
+ return safeParse(
6236
+ jsonString,
6237
+ (x) => DeploymentGetConfigAndNin$inboundSchema.parse(JSON.parse(x)),
6238
+ `Failed to parse 'DeploymentGetConfigAndNin' from JSON`,
6239
+ );
6240
+ }
6241
+
6242
+ /** @internal */
6243
+ export const AndNin$inboundSchema: z.ZodType<AndNin, z.ZodTypeDef, unknown> = z
6244
+ .object({
6245
+ nin: z.array(z.union([z.string(), z.number(), z.boolean()])),
6246
+ });
6247
+
6248
+ /** @internal */
6249
+ export type AndNin$Outbound = {
6250
+ nin: Array<string | number | boolean>;
6251
+ };
6252
+
6253
+ /** @internal */
6254
+ export const AndNin$outboundSchema: z.ZodType<
6255
+ AndNin$Outbound,
6256
+ z.ZodTypeDef,
6257
+ AndNin
6258
+ > = z.object({
6259
+ nin: z.array(z.union([z.string(), z.number(), z.boolean()])),
6260
+ });
6261
+
6262
+ /**
6263
+ * @internal
6264
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6265
+ */
6266
+ export namespace AndNin$ {
6267
+ /** @deprecated use `AndNin$inboundSchema` instead. */
6268
+ export const inboundSchema = AndNin$inboundSchema;
6269
+ /** @deprecated use `AndNin$outboundSchema` instead. */
6270
+ export const outboundSchema = AndNin$outboundSchema;
6271
+ /** @deprecated use `AndNin$Outbound` instead. */
6272
+ export type Outbound = AndNin$Outbound;
6273
+ }
6274
+
6275
+ export function andNinToJSON(andNin: AndNin): string {
6276
+ return JSON.stringify(AndNin$outboundSchema.parse(andNin));
6277
+ }
6278
+
6279
+ export function andNinFromJSON(
6280
+ jsonString: string,
6281
+ ): SafeParseResult<AndNin, SDKValidationError> {
6282
+ return safeParse(
6283
+ jsonString,
6284
+ (x) => AndNin$inboundSchema.parse(JSON.parse(x)),
6285
+ `Failed to parse 'AndNin' from JSON`,
6286
+ );
6287
+ }
6288
+
6289
+ /** @internal */
6290
+ export const DeploymentGetConfigAndIn$inboundSchema: z.ZodType<
6291
+ DeploymentGetConfigAndIn,
6292
+ z.ZodTypeDef,
6293
+ unknown
6294
+ > = z.union([z.string(), z.number(), z.boolean()]);
6295
+
6296
+ /** @internal */
6297
+ export type DeploymentGetConfigAndIn$Outbound = string | number | boolean;
6298
+
6299
+ /** @internal */
6300
+ export const DeploymentGetConfigAndIn$outboundSchema: z.ZodType<
6301
+ DeploymentGetConfigAndIn$Outbound,
6302
+ z.ZodTypeDef,
6303
+ DeploymentGetConfigAndIn
6304
+ > = z.union([z.string(), z.number(), z.boolean()]);
6305
+
6306
+ /**
6307
+ * @internal
6308
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6309
+ */
6310
+ export namespace DeploymentGetConfigAndIn$ {
6311
+ /** @deprecated use `DeploymentGetConfigAndIn$inboundSchema` instead. */
6312
+ export const inboundSchema = DeploymentGetConfigAndIn$inboundSchema;
6313
+ /** @deprecated use `DeploymentGetConfigAndIn$outboundSchema` instead. */
6314
+ export const outboundSchema = DeploymentGetConfigAndIn$outboundSchema;
6315
+ /** @deprecated use `DeploymentGetConfigAndIn$Outbound` instead. */
6316
+ export type Outbound = DeploymentGetConfigAndIn$Outbound;
6317
+ }
6318
+
6319
+ export function deploymentGetConfigAndInToJSON(
6320
+ deploymentGetConfigAndIn: DeploymentGetConfigAndIn,
6321
+ ): string {
6322
+ return JSON.stringify(
6323
+ DeploymentGetConfigAndIn$outboundSchema.parse(deploymentGetConfigAndIn),
6324
+ );
6325
+ }
6326
+
6327
+ export function deploymentGetConfigAndInFromJSON(
6328
+ jsonString: string,
6329
+ ): SafeParseResult<DeploymentGetConfigAndIn, SDKValidationError> {
6330
+ return safeParse(
6331
+ jsonString,
6332
+ (x) => DeploymentGetConfigAndIn$inboundSchema.parse(JSON.parse(x)),
6333
+ `Failed to parse 'DeploymentGetConfigAndIn' from JSON`,
6334
+ );
6335
+ }
6336
+
6337
+ /** @internal */
6338
+ export const AndIn$inboundSchema: z.ZodType<AndIn, z.ZodTypeDef, unknown> = z
6339
+ .object({
6340
+ in: z.array(z.union([z.string(), z.number(), z.boolean()])),
6341
+ });
6342
+
6343
+ /** @internal */
6344
+ export type AndIn$Outbound = {
6345
+ in: Array<string | number | boolean>;
6346
+ };
6347
+
6348
+ /** @internal */
6349
+ export const AndIn$outboundSchema: z.ZodType<
6350
+ AndIn$Outbound,
6351
+ z.ZodTypeDef,
6352
+ AndIn
6353
+ > = z.object({
6354
+ in: z.array(z.union([z.string(), z.number(), z.boolean()])),
6355
+ });
6356
+
6357
+ /**
6358
+ * @internal
6359
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6360
+ */
6361
+ export namespace AndIn$ {
6362
+ /** @deprecated use `AndIn$inboundSchema` instead. */
6363
+ export const inboundSchema = AndIn$inboundSchema;
6364
+ /** @deprecated use `AndIn$outboundSchema` instead. */
6365
+ export const outboundSchema = AndIn$outboundSchema;
6366
+ /** @deprecated use `AndIn$Outbound` instead. */
6367
+ export type Outbound = AndIn$Outbound;
6368
+ }
6369
+
6370
+ export function andInToJSON(andIn: AndIn): string {
6371
+ return JSON.stringify(AndIn$outboundSchema.parse(andIn));
6372
+ }
6373
+
6374
+ export function andInFromJSON(
6375
+ jsonString: string,
6376
+ ): SafeParseResult<AndIn, SDKValidationError> {
6377
+ return safeParse(
6378
+ jsonString,
6379
+ (x) => AndIn$inboundSchema.parse(JSON.parse(x)),
6380
+ `Failed to parse 'AndIn' from JSON`,
6381
+ );
6382
+ }
6383
+
6384
+ /** @internal */
6385
+ export const AndLte$inboundSchema: z.ZodType<AndLte, z.ZodTypeDef, unknown> = z
6386
+ .object({
6387
+ lte: z.number(),
6388
+ });
6389
+
6390
+ /** @internal */
6391
+ export type AndLte$Outbound = {
6392
+ lte: number;
6393
+ };
6394
+
6395
+ /** @internal */
6396
+ export const AndLte$outboundSchema: z.ZodType<
6397
+ AndLte$Outbound,
6398
+ z.ZodTypeDef,
6399
+ AndLte
6400
+ > = z.object({
6401
+ lte: z.number(),
6402
+ });
6403
+
6404
+ /**
6405
+ * @internal
6406
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6407
+ */
6408
+ export namespace AndLte$ {
6409
+ /** @deprecated use `AndLte$inboundSchema` instead. */
6410
+ export const inboundSchema = AndLte$inboundSchema;
6411
+ /** @deprecated use `AndLte$outboundSchema` instead. */
6412
+ export const outboundSchema = AndLte$outboundSchema;
6413
+ /** @deprecated use `AndLte$Outbound` instead. */
6414
+ export type Outbound = AndLte$Outbound;
6415
+ }
6416
+
6417
+ export function andLteToJSON(andLte: AndLte): string {
6418
+ return JSON.stringify(AndLte$outboundSchema.parse(andLte));
6419
+ }
6420
+
6421
+ export function andLteFromJSON(
6422
+ jsonString: string,
6423
+ ): SafeParseResult<AndLte, SDKValidationError> {
6424
+ return safeParse(
6425
+ jsonString,
6426
+ (x) => AndLte$inboundSchema.parse(JSON.parse(x)),
6427
+ `Failed to parse 'AndLte' from JSON`,
6428
+ );
6429
+ }
6430
+
6431
+ /** @internal */
6432
+ export const AndLt$inboundSchema: z.ZodType<AndLt, z.ZodTypeDef, unknown> = z
6433
+ .object({
6434
+ lt: z.number(),
6435
+ });
6436
+
6437
+ /** @internal */
6438
+ export type AndLt$Outbound = {
6439
+ lt: number;
6440
+ };
6441
+
6442
+ /** @internal */
6443
+ export const AndLt$outboundSchema: z.ZodType<
6444
+ AndLt$Outbound,
6445
+ z.ZodTypeDef,
6446
+ AndLt
6447
+ > = z.object({
6448
+ lt: z.number(),
6449
+ });
6450
+
6451
+ /**
6452
+ * @internal
6453
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6454
+ */
6455
+ export namespace AndLt$ {
6456
+ /** @deprecated use `AndLt$inboundSchema` instead. */
6457
+ export const inboundSchema = AndLt$inboundSchema;
6458
+ /** @deprecated use `AndLt$outboundSchema` instead. */
6459
+ export const outboundSchema = AndLt$outboundSchema;
6460
+ /** @deprecated use `AndLt$Outbound` instead. */
6461
+ export type Outbound = AndLt$Outbound;
6462
+ }
6463
+
6464
+ export function andLtToJSON(andLt: AndLt): string {
6465
+ return JSON.stringify(AndLt$outboundSchema.parse(andLt));
6466
+ }
6467
+
6468
+ export function andLtFromJSON(
6469
+ jsonString: string,
6470
+ ): SafeParseResult<AndLt, SDKValidationError> {
6471
+ return safeParse(
6472
+ jsonString,
6473
+ (x) => AndLt$inboundSchema.parse(JSON.parse(x)),
6474
+ `Failed to parse 'AndLt' from JSON`,
6475
+ );
6476
+ }
6477
+
6478
+ /** @internal */
6479
+ export const AndGte$inboundSchema: z.ZodType<AndGte, z.ZodTypeDef, unknown> = z
6480
+ .object({
6481
+ gte: z.number(),
6482
+ });
6483
+
6484
+ /** @internal */
6485
+ export type AndGte$Outbound = {
6486
+ gte: number;
6487
+ };
6488
+
6489
+ /** @internal */
6490
+ export const AndGte$outboundSchema: z.ZodType<
6491
+ AndGte$Outbound,
6492
+ z.ZodTypeDef,
6493
+ AndGte
6494
+ > = z.object({
6495
+ gte: z.number(),
6496
+ });
6497
+
6498
+ /**
6499
+ * @internal
6500
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6501
+ */
6502
+ export namespace AndGte$ {
6503
+ /** @deprecated use `AndGte$inboundSchema` instead. */
6504
+ export const inboundSchema = AndGte$inboundSchema;
6505
+ /** @deprecated use `AndGte$outboundSchema` instead. */
6506
+ export const outboundSchema = AndGte$outboundSchema;
6507
+ /** @deprecated use `AndGte$Outbound` instead. */
6508
+ export type Outbound = AndGte$Outbound;
6509
+ }
6510
+
6511
+ export function andGteToJSON(andGte: AndGte): string {
6512
+ return JSON.stringify(AndGte$outboundSchema.parse(andGte));
6513
+ }
6514
+
6515
+ export function andGteFromJSON(
6516
+ jsonString: string,
6517
+ ): SafeParseResult<AndGte, SDKValidationError> {
6518
+ return safeParse(
6519
+ jsonString,
6520
+ (x) => AndGte$inboundSchema.parse(JSON.parse(x)),
6521
+ `Failed to parse 'AndGte' from JSON`,
6522
+ );
6523
+ }
6524
+
6525
+ /** @internal */
6526
+ export const And3$inboundSchema: z.ZodType<And3, z.ZodTypeDef, unknown> = z
6527
+ .object({
6528
+ gt: z.number(),
6529
+ });
6530
+
6531
+ /** @internal */
6532
+ export type And3$Outbound = {
6533
+ gt: number;
6534
+ };
6535
+
6536
+ /** @internal */
6537
+ export const And3$outboundSchema: z.ZodType<And3$Outbound, z.ZodTypeDef, And3> =
6538
+ z.object({
6539
+ gt: z.number(),
6540
+ });
6541
+
6542
+ /**
6543
+ * @internal
6544
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6545
+ */
6546
+ export namespace And3$ {
6547
+ /** @deprecated use `And3$inboundSchema` instead. */
6548
+ export const inboundSchema = And3$inboundSchema;
6549
+ /** @deprecated use `And3$outboundSchema` instead. */
6550
+ export const outboundSchema = And3$outboundSchema;
6551
+ /** @deprecated use `And3$Outbound` instead. */
6552
+ export type Outbound = And3$Outbound;
6553
+ }
6554
+
6555
+ export function and3ToJSON(and3: And3): string {
6556
+ return JSON.stringify(And3$outboundSchema.parse(and3));
6557
+ }
6558
+
6559
+ export function and3FromJSON(
6560
+ jsonString: string,
6561
+ ): SafeParseResult<And3, SDKValidationError> {
6562
+ return safeParse(
6563
+ jsonString,
6564
+ (x) => And3$inboundSchema.parse(JSON.parse(x)),
6565
+ `Failed to parse 'And3' from JSON`,
6566
+ );
6567
+ }
6568
+
6569
+ /** @internal */
6570
+ export const DeploymentGetConfigAndNe$inboundSchema: z.ZodType<
6571
+ DeploymentGetConfigAndNe,
6572
+ z.ZodTypeDef,
6573
+ unknown
6574
+ > = z.union([z.string(), z.number(), z.boolean()]);
6575
+
6576
+ /** @internal */
6577
+ export type DeploymentGetConfigAndNe$Outbound = string | number | boolean;
6578
+
6579
+ /** @internal */
6580
+ export const DeploymentGetConfigAndNe$outboundSchema: z.ZodType<
6581
+ DeploymentGetConfigAndNe$Outbound,
6582
+ z.ZodTypeDef,
6583
+ DeploymentGetConfigAndNe
6584
+ > = z.union([z.string(), z.number(), z.boolean()]);
6585
+
6586
+ /**
6587
+ * @internal
6588
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6589
+ */
6590
+ export namespace DeploymentGetConfigAndNe$ {
6591
+ /** @deprecated use `DeploymentGetConfigAndNe$inboundSchema` instead. */
6592
+ export const inboundSchema = DeploymentGetConfigAndNe$inboundSchema;
6593
+ /** @deprecated use `DeploymentGetConfigAndNe$outboundSchema` instead. */
6594
+ export const outboundSchema = DeploymentGetConfigAndNe$outboundSchema;
6595
+ /** @deprecated use `DeploymentGetConfigAndNe$Outbound` instead. */
6596
+ export type Outbound = DeploymentGetConfigAndNe$Outbound;
6597
+ }
6598
+
6599
+ export function deploymentGetConfigAndNeToJSON(
6600
+ deploymentGetConfigAndNe: DeploymentGetConfigAndNe,
6601
+ ): string {
6602
+ return JSON.stringify(
6603
+ DeploymentGetConfigAndNe$outboundSchema.parse(deploymentGetConfigAndNe),
6604
+ );
6605
+ }
6606
+
6607
+ export function deploymentGetConfigAndNeFromJSON(
6608
+ jsonString: string,
6609
+ ): SafeParseResult<DeploymentGetConfigAndNe, SDKValidationError> {
6610
+ return safeParse(
6611
+ jsonString,
6612
+ (x) => DeploymentGetConfigAndNe$inboundSchema.parse(JSON.parse(x)),
6613
+ `Failed to parse 'DeploymentGetConfigAndNe' from JSON`,
6614
+ );
6615
+ }
6616
+
6617
+ /** @internal */
6618
+ export const AndNe$inboundSchema: z.ZodType<AndNe, z.ZodTypeDef, unknown> = z
6619
+ .object({
6620
+ ne: z.union([z.string(), z.number(), z.boolean()]),
6621
+ });
6622
+
6623
+ /** @internal */
6624
+ export type AndNe$Outbound = {
6625
+ ne: string | number | boolean;
6626
+ };
6627
+
6628
+ /** @internal */
6629
+ export const AndNe$outboundSchema: z.ZodType<
6630
+ AndNe$Outbound,
6631
+ z.ZodTypeDef,
6632
+ AndNe
6633
+ > = z.object({
6634
+ ne: z.union([z.string(), z.number(), z.boolean()]),
6635
+ });
6636
+
6637
+ /**
6638
+ * @internal
6639
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6640
+ */
6641
+ export namespace AndNe$ {
6642
+ /** @deprecated use `AndNe$inboundSchema` instead. */
6643
+ export const inboundSchema = AndNe$inboundSchema;
6644
+ /** @deprecated use `AndNe$outboundSchema` instead. */
6645
+ export const outboundSchema = AndNe$outboundSchema;
6646
+ /** @deprecated use `AndNe$Outbound` instead. */
6647
+ export type Outbound = AndNe$Outbound;
6648
+ }
6649
+
6650
+ export function andNeToJSON(andNe: AndNe): string {
6651
+ return JSON.stringify(AndNe$outboundSchema.parse(andNe));
6652
+ }
6653
+
6654
+ export function andNeFromJSON(
6655
+ jsonString: string,
6656
+ ): SafeParseResult<AndNe, SDKValidationError> {
6657
+ return safeParse(
6658
+ jsonString,
6659
+ (x) => AndNe$inboundSchema.parse(JSON.parse(x)),
6660
+ `Failed to parse 'AndNe' from JSON`,
6661
+ );
6662
+ }
6663
+
6664
+ /** @internal */
6665
+ export const DeploymentGetConfigAndEq$inboundSchema: z.ZodType<
6666
+ DeploymentGetConfigAndEq,
6667
+ z.ZodTypeDef,
6668
+ unknown
6669
+ > = z.union([z.string(), z.number(), z.boolean()]);
6670
+
6671
+ /** @internal */
6672
+ export type DeploymentGetConfigAndEq$Outbound = string | number | boolean;
6673
+
6674
+ /** @internal */
6675
+ export const DeploymentGetConfigAndEq$outboundSchema: z.ZodType<
6676
+ DeploymentGetConfigAndEq$Outbound,
6677
+ z.ZodTypeDef,
6678
+ DeploymentGetConfigAndEq
6679
+ > = z.union([z.string(), z.number(), z.boolean()]);
6680
+
6681
+ /**
6682
+ * @internal
6683
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6684
+ */
6685
+ export namespace DeploymentGetConfigAndEq$ {
6686
+ /** @deprecated use `DeploymentGetConfigAndEq$inboundSchema` instead. */
6687
+ export const inboundSchema = DeploymentGetConfigAndEq$inboundSchema;
6688
+ /** @deprecated use `DeploymentGetConfigAndEq$outboundSchema` instead. */
6689
+ export const outboundSchema = DeploymentGetConfigAndEq$outboundSchema;
6690
+ /** @deprecated use `DeploymentGetConfigAndEq$Outbound` instead. */
6691
+ export type Outbound = DeploymentGetConfigAndEq$Outbound;
6692
+ }
6693
+
6694
+ export function deploymentGetConfigAndEqToJSON(
6695
+ deploymentGetConfigAndEq: DeploymentGetConfigAndEq,
6696
+ ): string {
6697
+ return JSON.stringify(
6698
+ DeploymentGetConfigAndEq$outboundSchema.parse(deploymentGetConfigAndEq),
6699
+ );
6700
+ }
6701
+
6702
+ export function deploymentGetConfigAndEqFromJSON(
6703
+ jsonString: string,
6704
+ ): SafeParseResult<DeploymentGetConfigAndEq, SDKValidationError> {
6705
+ return safeParse(
6706
+ jsonString,
6707
+ (x) => DeploymentGetConfigAndEq$inboundSchema.parse(JSON.parse(x)),
6708
+ `Failed to parse 'DeploymentGetConfigAndEq' from JSON`,
6709
+ );
6710
+ }
6711
+
6712
+ /** @internal */
6713
+ export const AndEq$inboundSchema: z.ZodType<AndEq, z.ZodTypeDef, unknown> = z
6714
+ .object({
6715
+ eq: z.union([z.string(), z.number(), z.boolean()]),
6716
+ });
6717
+
6718
+ /** @internal */
6719
+ export type AndEq$Outbound = {
6720
+ eq: string | number | boolean;
6721
+ };
6722
+
6723
+ /** @internal */
6724
+ export const AndEq$outboundSchema: z.ZodType<
6725
+ AndEq$Outbound,
6726
+ z.ZodTypeDef,
6727
+ AndEq
6728
+ > = z.object({
6729
+ eq: z.union([z.string(), z.number(), z.boolean()]),
6730
+ });
6731
+
6732
+ /**
6733
+ * @internal
6734
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6735
+ */
6736
+ export namespace AndEq$ {
6737
+ /** @deprecated use `AndEq$inboundSchema` instead. */
6738
+ export const inboundSchema = AndEq$inboundSchema;
6739
+ /** @deprecated use `AndEq$outboundSchema` instead. */
6740
+ export const outboundSchema = AndEq$outboundSchema;
6741
+ /** @deprecated use `AndEq$Outbound` instead. */
6742
+ export type Outbound = AndEq$Outbound;
6743
+ }
6744
+
6745
+ export function andEqToJSON(andEq: AndEq): string {
6746
+ return JSON.stringify(AndEq$outboundSchema.parse(andEq));
6747
+ }
6748
+
6749
+ export function andEqFromJSON(
6750
+ jsonString: string,
6751
+ ): SafeParseResult<AndEq, SDKValidationError> {
6752
+ return safeParse(
6753
+ jsonString,
6754
+ (x) => AndEq$inboundSchema.parse(JSON.parse(x)),
6755
+ `Failed to parse 'AndEq' from JSON`,
6756
+ );
6757
+ }
6758
+
6759
+ /** @internal */
6760
+ export const KnowledgeFilterAnd$inboundSchema: z.ZodType<
6761
+ KnowledgeFilterAnd,
6762
+ z.ZodTypeDef,
6763
+ unknown
6764
+ > = z.union([
6765
+ z.lazy(() => AndEq$inboundSchema),
6766
+ z.lazy(() => AndNe$inboundSchema),
6767
+ z.lazy(() => And3$inboundSchema),
6768
+ z.lazy(() => AndGte$inboundSchema),
6769
+ z.lazy(() => AndLt$inboundSchema),
6770
+ z.lazy(() => AndLte$inboundSchema),
6771
+ z.lazy(() => AndIn$inboundSchema),
6772
+ z.lazy(() => AndNin$inboundSchema),
6773
+ z.lazy(() => AndExists$inboundSchema),
6774
+ ]);
6775
+
6776
+ /** @internal */
6777
+ export type KnowledgeFilterAnd$Outbound =
6778
+ | AndEq$Outbound
6779
+ | AndNe$Outbound
6780
+ | And3$Outbound
6781
+ | AndGte$Outbound
6782
+ | AndLt$Outbound
6783
+ | AndLte$Outbound
6784
+ | AndIn$Outbound
6785
+ | AndNin$Outbound
6786
+ | AndExists$Outbound;
6787
+
6788
+ /** @internal */
6789
+ export const KnowledgeFilterAnd$outboundSchema: z.ZodType<
6790
+ KnowledgeFilterAnd$Outbound,
6791
+ z.ZodTypeDef,
6792
+ KnowledgeFilterAnd
6793
+ > = z.union([
6794
+ z.lazy(() => AndEq$outboundSchema),
6795
+ z.lazy(() => AndNe$outboundSchema),
6796
+ z.lazy(() => And3$outboundSchema),
6797
+ z.lazy(() => AndGte$outboundSchema),
6798
+ z.lazy(() => AndLt$outboundSchema),
6799
+ z.lazy(() => AndLte$outboundSchema),
6800
+ z.lazy(() => AndIn$outboundSchema),
6801
+ z.lazy(() => AndNin$outboundSchema),
6802
+ z.lazy(() => AndExists$outboundSchema),
6803
+ ]);
6804
+
6805
+ /**
6806
+ * @internal
6807
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6808
+ */
6809
+ export namespace KnowledgeFilterAnd$ {
6810
+ /** @deprecated use `KnowledgeFilterAnd$inboundSchema` instead. */
6811
+ export const inboundSchema = KnowledgeFilterAnd$inboundSchema;
6812
+ /** @deprecated use `KnowledgeFilterAnd$outboundSchema` instead. */
6813
+ export const outboundSchema = KnowledgeFilterAnd$outboundSchema;
6814
+ /** @deprecated use `KnowledgeFilterAnd$Outbound` instead. */
6815
+ export type Outbound = KnowledgeFilterAnd$Outbound;
6816
+ }
6817
+
6818
+ export function knowledgeFilterAndToJSON(
6819
+ knowledgeFilterAnd: KnowledgeFilterAnd,
6820
+ ): string {
6821
+ return JSON.stringify(
6822
+ KnowledgeFilterAnd$outboundSchema.parse(knowledgeFilterAnd),
6823
+ );
6824
+ }
6825
+
6826
+ export function knowledgeFilterAndFromJSON(
6827
+ jsonString: string,
6828
+ ): SafeParseResult<KnowledgeFilterAnd, SDKValidationError> {
6829
+ return safeParse(
6830
+ jsonString,
6831
+ (x) => KnowledgeFilterAnd$inboundSchema.parse(JSON.parse(x)),
6832
+ `Failed to parse 'KnowledgeFilterAnd' from JSON`,
6833
+ );
6834
+ }
6835
+
6836
+ /** @internal */
6837
+ export const And$inboundSchema: z.ZodType<And, z.ZodTypeDef, unknown> = z
6838
+ .object({
6839
+ and: z.array(
6840
+ z.record(z.union([
6841
+ z.lazy(() => AndEq$inboundSchema),
6842
+ z.lazy(() =>
6843
+ AndNe$inboundSchema
6844
+ ),
6845
+ z.lazy(() => And3$inboundSchema),
6846
+ z.lazy(() => AndGte$inboundSchema),
6847
+ z.lazy(() => AndLt$inboundSchema),
6848
+ z.lazy(() => AndLte$inboundSchema),
6849
+ z.lazy(() => AndIn$inboundSchema),
6850
+ z.lazy(() => AndNin$inboundSchema),
6851
+ z.lazy(() => AndExists$inboundSchema),
6852
+ ])),
6853
+ ),
6854
+ });
6855
+
6856
+ /** @internal */
6857
+ export type And$Outbound = {
6858
+ and: Array<
6859
+ {
6860
+ [k: string]:
6861
+ | AndEq$Outbound
6862
+ | AndNe$Outbound
6863
+ | And3$Outbound
6864
+ | AndGte$Outbound
6865
+ | AndLt$Outbound
6866
+ | AndLte$Outbound
6867
+ | AndIn$Outbound
6868
+ | AndNin$Outbound
6869
+ | AndExists$Outbound;
6870
+ }
6871
+ >;
6872
+ };
6873
+
6874
+ /** @internal */
6875
+ export const And$outboundSchema: z.ZodType<And$Outbound, z.ZodTypeDef, And> = z
6876
+ .object({
6877
+ and: z.array(
6878
+ z.record(z.union([
6879
+ z.lazy(() => AndEq$outboundSchema),
6880
+ z.lazy(() =>
6881
+ AndNe$outboundSchema
6882
+ ),
6883
+ z.lazy(() => And3$outboundSchema),
6884
+ z.lazy(() => AndGte$outboundSchema),
6885
+ z.lazy(() => AndLt$outboundSchema),
6886
+ z.lazy(() => AndLte$outboundSchema),
6887
+ z.lazy(() => AndIn$outboundSchema),
6888
+ z.lazy(() => AndNin$outboundSchema),
6889
+ z.lazy(() => AndExists$outboundSchema),
6890
+ ])),
6891
+ ),
6892
+ });
6893
+
6894
+ /**
6895
+ * @internal
6896
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6897
+ */
6898
+ export namespace And$ {
6899
+ /** @deprecated use `And$inboundSchema` instead. */
6900
+ export const inboundSchema = And$inboundSchema;
6901
+ /** @deprecated use `And$outboundSchema` instead. */
6902
+ export const outboundSchema = And$outboundSchema;
6903
+ /** @deprecated use `And$Outbound` instead. */
6904
+ export type Outbound = And$Outbound;
6905
+ }
6906
+
6907
+ export function andToJSON(and: And): string {
6908
+ return JSON.stringify(And$outboundSchema.parse(and));
6909
+ }
6910
+
6911
+ export function andFromJSON(
6912
+ jsonString: string,
6913
+ ): SafeParseResult<And, SDKValidationError> {
6914
+ return safeParse(
6915
+ jsonString,
6916
+ (x) => And$inboundSchema.parse(JSON.parse(x)),
6917
+ `Failed to parse 'And' from JSON`,
6918
+ );
6919
+ }
6920
+
6921
+ /** @internal */
6922
+ export const Exists$inboundSchema: z.ZodType<Exists, z.ZodTypeDef, unknown> = z
6923
+ .object({
6924
+ exists: z.boolean(),
6925
+ });
6926
+
6927
+ /** @internal */
6928
+ export type Exists$Outbound = {
6929
+ exists: boolean;
6930
+ };
6931
+
6932
+ /** @internal */
6933
+ export const Exists$outboundSchema: z.ZodType<
6934
+ Exists$Outbound,
6935
+ z.ZodTypeDef,
6936
+ Exists
6937
+ > = z.object({
6938
+ exists: z.boolean(),
6939
+ });
6940
+
6941
+ /**
6942
+ * @internal
6943
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6944
+ */
6945
+ export namespace Exists$ {
6946
+ /** @deprecated use `Exists$inboundSchema` instead. */
6947
+ export const inboundSchema = Exists$inboundSchema;
6948
+ /** @deprecated use `Exists$outboundSchema` instead. */
6949
+ export const outboundSchema = Exists$outboundSchema;
6950
+ /** @deprecated use `Exists$Outbound` instead. */
6951
+ export type Outbound = Exists$Outbound;
6952
+ }
6953
+
6954
+ export function existsToJSON(exists: Exists): string {
6955
+ return JSON.stringify(Exists$outboundSchema.parse(exists));
6956
+ }
6957
+
6958
+ export function existsFromJSON(
6959
+ jsonString: string,
6960
+ ): SafeParseResult<Exists, SDKValidationError> {
6961
+ return safeParse(
6962
+ jsonString,
6963
+ (x) => Exists$inboundSchema.parse(JSON.parse(x)),
6964
+ `Failed to parse 'Exists' from JSON`,
6965
+ );
6966
+ }
6967
+
6968
+ /** @internal */
6969
+ export const OneNin$inboundSchema: z.ZodType<OneNin, z.ZodTypeDef, unknown> = z
6970
+ .union([z.string(), z.number(), z.boolean()]);
6971
+
6972
+ /** @internal */
6973
+ export type OneNin$Outbound = string | number | boolean;
6974
+
6975
+ /** @internal */
6976
+ export const OneNin$outboundSchema: z.ZodType<
6977
+ OneNin$Outbound,
6978
+ z.ZodTypeDef,
6979
+ OneNin
6980
+ > = z.union([z.string(), z.number(), z.boolean()]);
6981
+
6982
+ /**
6983
+ * @internal
6984
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6985
+ */
6986
+ export namespace OneNin$ {
6987
+ /** @deprecated use `OneNin$inboundSchema` instead. */
6988
+ export const inboundSchema = OneNin$inboundSchema;
6989
+ /** @deprecated use `OneNin$outboundSchema` instead. */
6990
+ export const outboundSchema = OneNin$outboundSchema;
6991
+ /** @deprecated use `OneNin$Outbound` instead. */
6992
+ export type Outbound = OneNin$Outbound;
6993
+ }
6994
+
6995
+ export function oneNinToJSON(oneNin: OneNin): string {
6996
+ return JSON.stringify(OneNin$outboundSchema.parse(oneNin));
6997
+ }
6998
+
6999
+ export function oneNinFromJSON(
7000
+ jsonString: string,
7001
+ ): SafeParseResult<OneNin, SDKValidationError> {
7002
+ return safeParse(
7003
+ jsonString,
7004
+ (x) => OneNin$inboundSchema.parse(JSON.parse(x)),
7005
+ `Failed to parse 'OneNin' from JSON`,
7006
+ );
7007
+ }
7008
+
7009
+ /** @internal */
7010
+ export const Nin$inboundSchema: z.ZodType<Nin, z.ZodTypeDef, unknown> = z
7011
+ .object({
7012
+ nin: z.array(z.union([z.string(), z.number(), z.boolean()])),
7013
+ });
7014
+
7015
+ /** @internal */
7016
+ export type Nin$Outbound = {
7017
+ nin: Array<string | number | boolean>;
7018
+ };
7019
+
7020
+ /** @internal */
7021
+ export const Nin$outboundSchema: z.ZodType<Nin$Outbound, z.ZodTypeDef, Nin> = z
7022
+ .object({
7023
+ nin: z.array(z.union([z.string(), z.number(), z.boolean()])),
7024
+ });
7025
+
7026
+ /**
7027
+ * @internal
7028
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
7029
+ */
7030
+ export namespace Nin$ {
7031
+ /** @deprecated use `Nin$inboundSchema` instead. */
7032
+ export const inboundSchema = Nin$inboundSchema;
7033
+ /** @deprecated use `Nin$outboundSchema` instead. */
7034
+ export const outboundSchema = Nin$outboundSchema;
7035
+ /** @deprecated use `Nin$Outbound` instead. */
7036
+ export type Outbound = Nin$Outbound;
7037
+ }
7038
+
7039
+ export function ninToJSON(nin: Nin): string {
7040
+ return JSON.stringify(Nin$outboundSchema.parse(nin));
7041
+ }
7042
+
7043
+ export function ninFromJSON(
7044
+ jsonString: string,
7045
+ ): SafeParseResult<Nin, SDKValidationError> {
7046
+ return safeParse(
7047
+ jsonString,
7048
+ (x) => Nin$inboundSchema.parse(JSON.parse(x)),
7049
+ `Failed to parse 'Nin' from JSON`,
7050
+ );
7051
+ }
7052
+
7053
+ /** @internal */
7054
+ export const OneIn$inboundSchema: z.ZodType<OneIn, z.ZodTypeDef, unknown> = z
7055
+ .union([z.string(), z.number(), z.boolean()]);
7056
+
7057
+ /** @internal */
7058
+ export type OneIn$Outbound = string | number | boolean;
7059
+
7060
+ /** @internal */
7061
+ export const OneIn$outboundSchema: z.ZodType<
7062
+ OneIn$Outbound,
7063
+ z.ZodTypeDef,
7064
+ OneIn
7065
+ > = z.union([z.string(), z.number(), z.boolean()]);
7066
+
7067
+ /**
7068
+ * @internal
7069
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
7070
+ */
7071
+ export namespace OneIn$ {
7072
+ /** @deprecated use `OneIn$inboundSchema` instead. */
7073
+ export const inboundSchema = OneIn$inboundSchema;
7074
+ /** @deprecated use `OneIn$outboundSchema` instead. */
7075
+ export const outboundSchema = OneIn$outboundSchema;
7076
+ /** @deprecated use `OneIn$Outbound` instead. */
7077
+ export type Outbound = OneIn$Outbound;
7078
+ }
7079
+
7080
+ export function oneInToJSON(oneIn: OneIn): string {
7081
+ return JSON.stringify(OneIn$outboundSchema.parse(oneIn));
7082
+ }
7083
+
7084
+ export function oneInFromJSON(
7085
+ jsonString: string,
7086
+ ): SafeParseResult<OneIn, SDKValidationError> {
7087
+ return safeParse(
7088
+ jsonString,
7089
+ (x) => OneIn$inboundSchema.parse(JSON.parse(x)),
7090
+ `Failed to parse 'OneIn' from JSON`,
7091
+ );
7092
+ }
7093
+
7094
+ /** @internal */
7095
+ export const In$inboundSchema: z.ZodType<In, z.ZodTypeDef, unknown> = z.object({
7096
+ in: z.array(z.union([z.string(), z.number(), z.boolean()])),
7097
+ });
7098
+
7099
+ /** @internal */
7100
+ export type In$Outbound = {
7101
+ in: Array<string | number | boolean>;
7102
+ };
7103
+
7104
+ /** @internal */
7105
+ export const In$outboundSchema: z.ZodType<In$Outbound, z.ZodTypeDef, In> = z
7106
+ .object({
7107
+ in: z.array(z.union([z.string(), z.number(), z.boolean()])),
7108
+ });
7109
+
7110
+ /**
7111
+ * @internal
7112
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
7113
+ */
7114
+ export namespace In$ {
7115
+ /** @deprecated use `In$inboundSchema` instead. */
7116
+ export const inboundSchema = In$inboundSchema;
7117
+ /** @deprecated use `In$outboundSchema` instead. */
7118
+ export const outboundSchema = In$outboundSchema;
7119
+ /** @deprecated use `In$Outbound` instead. */
7120
+ export type Outbound = In$Outbound;
7121
+ }
7122
+
7123
+ export function inToJSON(value: In): string {
7124
+ return JSON.stringify(In$outboundSchema.parse(value));
7125
+ }
7126
+
7127
+ export function inFromJSON(
7128
+ jsonString: string,
7129
+ ): SafeParseResult<In, SDKValidationError> {
7130
+ return safeParse(
7131
+ jsonString,
7132
+ (x) => In$inboundSchema.parse(JSON.parse(x)),
7133
+ `Failed to parse 'In' from JSON`,
7134
+ );
7135
+ }
7136
+
7137
+ /** @internal */
7138
+ export const Lte$inboundSchema: z.ZodType<Lte, z.ZodTypeDef, unknown> = z
7139
+ .object({
7140
+ lte: z.number(),
7141
+ });
7142
+
7143
+ /** @internal */
7144
+ export type Lte$Outbound = {
7145
+ lte: number;
7146
+ };
7147
+
7148
+ /** @internal */
7149
+ export const Lte$outboundSchema: z.ZodType<Lte$Outbound, z.ZodTypeDef, Lte> = z
7150
+ .object({
7151
+ lte: z.number(),
7152
+ });
7153
+
7154
+ /**
7155
+ * @internal
7156
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
7157
+ */
7158
+ export namespace Lte$ {
7159
+ /** @deprecated use `Lte$inboundSchema` instead. */
7160
+ export const inboundSchema = Lte$inboundSchema;
7161
+ /** @deprecated use `Lte$outboundSchema` instead. */
7162
+ export const outboundSchema = Lte$outboundSchema;
7163
+ /** @deprecated use `Lte$Outbound` instead. */
7164
+ export type Outbound = Lte$Outbound;
7165
+ }
7166
+
7167
+ export function lteToJSON(lte: Lte): string {
7168
+ return JSON.stringify(Lte$outboundSchema.parse(lte));
7169
+ }
7170
+
7171
+ export function lteFromJSON(
7172
+ jsonString: string,
7173
+ ): SafeParseResult<Lte, SDKValidationError> {
7174
+ return safeParse(
7175
+ jsonString,
7176
+ (x) => Lte$inboundSchema.parse(JSON.parse(x)),
7177
+ `Failed to parse 'Lte' from JSON`,
7178
+ );
7179
+ }
7180
+
7181
+ /** @internal */
7182
+ export const Lt$inboundSchema: z.ZodType<Lt, z.ZodTypeDef, unknown> = z.object({
7183
+ lt: z.number(),
7184
+ });
7185
+
7186
+ /** @internal */
7187
+ export type Lt$Outbound = {
7188
+ lt: number;
7189
+ };
7190
+
7191
+ /** @internal */
7192
+ export const Lt$outboundSchema: z.ZodType<Lt$Outbound, z.ZodTypeDef, Lt> = z
7193
+ .object({
7194
+ lt: z.number(),
7195
+ });
7196
+
7197
+ /**
7198
+ * @internal
7199
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
7200
+ */
7201
+ export namespace Lt$ {
7202
+ /** @deprecated use `Lt$inboundSchema` instead. */
7203
+ export const inboundSchema = Lt$inboundSchema;
7204
+ /** @deprecated use `Lt$outboundSchema` instead. */
7205
+ export const outboundSchema = Lt$outboundSchema;
7206
+ /** @deprecated use `Lt$Outbound` instead. */
7207
+ export type Outbound = Lt$Outbound;
7208
+ }
7209
+
7210
+ export function ltToJSON(lt: Lt): string {
7211
+ return JSON.stringify(Lt$outboundSchema.parse(lt));
7212
+ }
7213
+
7214
+ export function ltFromJSON(
7215
+ jsonString: string,
7216
+ ): SafeParseResult<Lt, SDKValidationError> {
7217
+ return safeParse(
7218
+ jsonString,
7219
+ (x) => Lt$inboundSchema.parse(JSON.parse(x)),
7220
+ `Failed to parse 'Lt' from JSON`,
7221
+ );
7222
+ }
7223
+
7224
+ /** @internal */
7225
+ export const Gte$inboundSchema: z.ZodType<Gte, z.ZodTypeDef, unknown> = z
7226
+ .object({
7227
+ gte: z.number(),
7228
+ });
7229
+
7230
+ /** @internal */
7231
+ export type Gte$Outbound = {
7232
+ gte: number;
7233
+ };
7234
+
7235
+ /** @internal */
7236
+ export const Gte$outboundSchema: z.ZodType<Gte$Outbound, z.ZodTypeDef, Gte> = z
7237
+ .object({
7238
+ gte: z.number(),
7239
+ });
7240
+
7241
+ /**
7242
+ * @internal
7243
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
7244
+ */
7245
+ export namespace Gte$ {
7246
+ /** @deprecated use `Gte$inboundSchema` instead. */
7247
+ export const inboundSchema = Gte$inboundSchema;
7248
+ /** @deprecated use `Gte$outboundSchema` instead. */
7249
+ export const outboundSchema = Gte$outboundSchema;
7250
+ /** @deprecated use `Gte$Outbound` instead. */
7251
+ export type Outbound = Gte$Outbound;
7252
+ }
7253
+
7254
+ export function gteToJSON(gte: Gte): string {
7255
+ return JSON.stringify(Gte$outboundSchema.parse(gte));
7256
+ }
7257
+
7258
+ export function gteFromJSON(
7259
+ jsonString: string,
7260
+ ): SafeParseResult<Gte, SDKValidationError> {
7261
+ return safeParse(
7262
+ jsonString,
7263
+ (x) => Gte$inboundSchema.parse(JSON.parse(x)),
7264
+ `Failed to parse 'Gte' from JSON`,
7265
+ );
7266
+ }
7267
+
7268
+ /** @internal */
7269
+ export const One3$inboundSchema: z.ZodType<One3, z.ZodTypeDef, unknown> = z
7270
+ .object({
7271
+ gt: z.number(),
7272
+ });
7273
+
7274
+ /** @internal */
7275
+ export type One3$Outbound = {
7276
+ gt: number;
7277
+ };
7278
+
7279
+ /** @internal */
7280
+ export const One3$outboundSchema: z.ZodType<One3$Outbound, z.ZodTypeDef, One3> =
7281
+ z.object({
7282
+ gt: z.number(),
7283
+ });
7284
+
7285
+ /**
7286
+ * @internal
7287
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
7288
+ */
7289
+ export namespace One3$ {
7290
+ /** @deprecated use `One3$inboundSchema` instead. */
7291
+ export const inboundSchema = One3$inboundSchema;
7292
+ /** @deprecated use `One3$outboundSchema` instead. */
7293
+ export const outboundSchema = One3$outboundSchema;
7294
+ /** @deprecated use `One3$Outbound` instead. */
7295
+ export type Outbound = One3$Outbound;
7296
+ }
7297
+
7298
+ export function one3ToJSON(one3: One3): string {
7299
+ return JSON.stringify(One3$outboundSchema.parse(one3));
7300
+ }
7301
+
7302
+ export function one3FromJSON(
7303
+ jsonString: string,
7304
+ ): SafeParseResult<One3, SDKValidationError> {
7305
+ return safeParse(
7306
+ jsonString,
7307
+ (x) => One3$inboundSchema.parse(JSON.parse(x)),
7308
+ `Failed to parse 'One3' from JSON`,
7309
+ );
7310
+ }
7311
+
7312
+ /** @internal */
7313
+ export const OneNe$inboundSchema: z.ZodType<OneNe, z.ZodTypeDef, unknown> = z
7314
+ .union([z.string(), z.number(), z.boolean()]);
7315
+
7316
+ /** @internal */
7317
+ export type OneNe$Outbound = string | number | boolean;
7318
+
7319
+ /** @internal */
7320
+ export const OneNe$outboundSchema: z.ZodType<
7321
+ OneNe$Outbound,
7322
+ z.ZodTypeDef,
7323
+ OneNe
7324
+ > = z.union([z.string(), z.number(), z.boolean()]);
7325
+
7326
+ /**
7327
+ * @internal
7328
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
7329
+ */
7330
+ export namespace OneNe$ {
7331
+ /** @deprecated use `OneNe$inboundSchema` instead. */
7332
+ export const inboundSchema = OneNe$inboundSchema;
7333
+ /** @deprecated use `OneNe$outboundSchema` instead. */
7334
+ export const outboundSchema = OneNe$outboundSchema;
7335
+ /** @deprecated use `OneNe$Outbound` instead. */
7336
+ export type Outbound = OneNe$Outbound;
7337
+ }
7338
+
7339
+ export function oneNeToJSON(oneNe: OneNe): string {
7340
+ return JSON.stringify(OneNe$outboundSchema.parse(oneNe));
7341
+ }
7342
+
7343
+ export function oneNeFromJSON(
7344
+ jsonString: string,
7345
+ ): SafeParseResult<OneNe, SDKValidationError> {
7346
+ return safeParse(
7347
+ jsonString,
7348
+ (x) => OneNe$inboundSchema.parse(JSON.parse(x)),
7349
+ `Failed to parse 'OneNe' from JSON`,
7350
+ );
7351
+ }
7352
+
7353
+ /** @internal */
7354
+ export const Ne$inboundSchema: z.ZodType<Ne, z.ZodTypeDef, unknown> = z.object({
7355
+ ne: z.union([z.string(), z.number(), z.boolean()]),
7356
+ });
7357
+
7358
+ /** @internal */
7359
+ export type Ne$Outbound = {
7360
+ ne: string | number | boolean;
7361
+ };
7362
+
7363
+ /** @internal */
7364
+ export const Ne$outboundSchema: z.ZodType<Ne$Outbound, z.ZodTypeDef, Ne> = z
7365
+ .object({
7366
+ ne: z.union([z.string(), z.number(), z.boolean()]),
7367
+ });
7368
+
7369
+ /**
7370
+ * @internal
7371
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
7372
+ */
7373
+ export namespace Ne$ {
7374
+ /** @deprecated use `Ne$inboundSchema` instead. */
7375
+ export const inboundSchema = Ne$inboundSchema;
7376
+ /** @deprecated use `Ne$outboundSchema` instead. */
7377
+ export const outboundSchema = Ne$outboundSchema;
7378
+ /** @deprecated use `Ne$Outbound` instead. */
7379
+ export type Outbound = Ne$Outbound;
7380
+ }
7381
+
7382
+ export function neToJSON(ne: Ne): string {
7383
+ return JSON.stringify(Ne$outboundSchema.parse(ne));
7384
+ }
7385
+
7386
+ export function neFromJSON(
7387
+ jsonString: string,
7388
+ ): SafeParseResult<Ne, SDKValidationError> {
7389
+ return safeParse(
7390
+ jsonString,
7391
+ (x) => Ne$inboundSchema.parse(JSON.parse(x)),
7392
+ `Failed to parse 'Ne' from JSON`,
7393
+ );
7394
+ }
7395
+
7396
+ /** @internal */
7397
+ export const OneEq$inboundSchema: z.ZodType<OneEq, z.ZodTypeDef, unknown> = z
7398
+ .union([z.string(), z.number(), z.boolean()]);
7399
+
7400
+ /** @internal */
7401
+ export type OneEq$Outbound = string | number | boolean;
7402
+
7403
+ /** @internal */
7404
+ export const OneEq$outboundSchema: z.ZodType<
7405
+ OneEq$Outbound,
7406
+ z.ZodTypeDef,
7407
+ OneEq
7408
+ > = z.union([z.string(), z.number(), z.boolean()]);
7409
+
7410
+ /**
7411
+ * @internal
7412
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
7413
+ */
7414
+ export namespace OneEq$ {
7415
+ /** @deprecated use `OneEq$inboundSchema` instead. */
7416
+ export const inboundSchema = OneEq$inboundSchema;
7417
+ /** @deprecated use `OneEq$outboundSchema` instead. */
7418
+ export const outboundSchema = OneEq$outboundSchema;
7419
+ /** @deprecated use `OneEq$Outbound` instead. */
7420
+ export type Outbound = OneEq$Outbound;
7421
+ }
7422
+
7423
+ export function oneEqToJSON(oneEq: OneEq): string {
7424
+ return JSON.stringify(OneEq$outboundSchema.parse(oneEq));
7425
+ }
7426
+
7427
+ export function oneEqFromJSON(
7428
+ jsonString: string,
7429
+ ): SafeParseResult<OneEq, SDKValidationError> {
7430
+ return safeParse(
7431
+ jsonString,
7432
+ (x) => OneEq$inboundSchema.parse(JSON.parse(x)),
7433
+ `Failed to parse 'OneEq' from JSON`,
7434
+ );
7435
+ }
7436
+
7437
+ /** @internal */
7438
+ export const Eq$inboundSchema: z.ZodType<Eq, z.ZodTypeDef, unknown> = z.object({
7439
+ eq: z.union([z.string(), z.number(), z.boolean()]),
7440
+ });
7441
+
7442
+ /** @internal */
7443
+ export type Eq$Outbound = {
7444
+ eq: string | number | boolean;
7445
+ };
7446
+
7447
+ /** @internal */
7448
+ export const Eq$outboundSchema: z.ZodType<Eq$Outbound, z.ZodTypeDef, Eq> = z
7449
+ .object({
7450
+ eq: z.union([z.string(), z.number(), z.boolean()]),
7451
+ });
7452
+
7453
+ /**
7454
+ * @internal
7455
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
7456
+ */
7457
+ export namespace Eq$ {
7458
+ /** @deprecated use `Eq$inboundSchema` instead. */
7459
+ export const inboundSchema = Eq$inboundSchema;
7460
+ /** @deprecated use `Eq$outboundSchema` instead. */
7461
+ export const outboundSchema = Eq$outboundSchema;
7462
+ /** @deprecated use `Eq$Outbound` instead. */
7463
+ export type Outbound = Eq$Outbound;
7464
+ }
7465
+
7466
+ export function eqToJSON(eq: Eq): string {
7467
+ return JSON.stringify(Eq$outboundSchema.parse(eq));
7468
+ }
7469
+
7470
+ export function eqFromJSON(
7471
+ jsonString: string,
7472
+ ): SafeParseResult<Eq, SDKValidationError> {
7473
+ return safeParse(
7474
+ jsonString,
7475
+ (x) => Eq$inboundSchema.parse(JSON.parse(x)),
7476
+ `Failed to parse 'Eq' from JSON`,
7477
+ );
7478
+ }
7479
+
7480
+ /** @internal */
7481
+ export const KnowledgeFilter1$inboundSchema: z.ZodType<
7482
+ KnowledgeFilter1,
7483
+ z.ZodTypeDef,
7484
+ unknown
7485
+ > = z.union([
7486
+ z.lazy(() => Eq$inboundSchema),
7487
+ z.lazy(() => Ne$inboundSchema),
7488
+ z.lazy(() => One3$inboundSchema),
7489
+ z.lazy(() => Gte$inboundSchema),
7490
+ z.lazy(() => Lt$inboundSchema),
7491
+ z.lazy(() => Lte$inboundSchema),
7492
+ z.lazy(() => In$inboundSchema),
7493
+ z.lazy(() => Nin$inboundSchema),
7494
+ z.lazy(() => Exists$inboundSchema),
7495
+ ]);
7496
+
7497
+ /** @internal */
7498
+ export type KnowledgeFilter1$Outbound =
7499
+ | Eq$Outbound
7500
+ | Ne$Outbound
7501
+ | One3$Outbound
7502
+ | Gte$Outbound
7503
+ | Lt$Outbound
7504
+ | Lte$Outbound
7505
+ | In$Outbound
7506
+ | Nin$Outbound
7507
+ | Exists$Outbound;
7508
+
7509
+ /** @internal */
7510
+ export const KnowledgeFilter1$outboundSchema: z.ZodType<
7511
+ KnowledgeFilter1$Outbound,
7512
+ z.ZodTypeDef,
7513
+ KnowledgeFilter1
7514
+ > = z.union([
7515
+ z.lazy(() => Eq$outboundSchema),
7516
+ z.lazy(() => Ne$outboundSchema),
7517
+ z.lazy(() => One3$outboundSchema),
7518
+ z.lazy(() => Gte$outboundSchema),
7519
+ z.lazy(() => Lt$outboundSchema),
7520
+ z.lazy(() => Lte$outboundSchema),
7521
+ z.lazy(() => In$outboundSchema),
7522
+ z.lazy(() => Nin$outboundSchema),
7523
+ z.lazy(() => Exists$outboundSchema),
7524
+ ]);
7525
+
7526
+ /**
7527
+ * @internal
7528
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
7529
+ */
7530
+ export namespace KnowledgeFilter1$ {
7531
+ /** @deprecated use `KnowledgeFilter1$inboundSchema` instead. */
7532
+ export const inboundSchema = KnowledgeFilter1$inboundSchema;
7533
+ /** @deprecated use `KnowledgeFilter1$outboundSchema` instead. */
7534
+ export const outboundSchema = KnowledgeFilter1$outboundSchema;
7535
+ /** @deprecated use `KnowledgeFilter1$Outbound` instead. */
7536
+ export type Outbound = KnowledgeFilter1$Outbound;
7537
+ }
7538
+
7539
+ export function knowledgeFilter1ToJSON(
7540
+ knowledgeFilter1: KnowledgeFilter1,
7541
+ ): string {
7542
+ return JSON.stringify(
7543
+ KnowledgeFilter1$outboundSchema.parse(knowledgeFilter1),
7544
+ );
7545
+ }
7546
+
7547
+ export function knowledgeFilter1FromJSON(
7548
+ jsonString: string,
7549
+ ): SafeParseResult<KnowledgeFilter1, SDKValidationError> {
7550
+ return safeParse(
7551
+ jsonString,
7552
+ (x) => KnowledgeFilter1$inboundSchema.parse(JSON.parse(x)),
7553
+ `Failed to parse 'KnowledgeFilter1' from JSON`,
7554
+ );
7555
+ }
7556
+
7557
+ /** @internal */
7558
+ export const KnowledgeFilter$inboundSchema: z.ZodType<
7559
+ KnowledgeFilter,
7560
+ z.ZodTypeDef,
7561
+ unknown
7562
+ > = z.union([
7563
+ z.lazy(() => And$inboundSchema),
7564
+ z.lazy(() => Or$inboundSchema),
7565
+ z.record(z.union([
7566
+ z.lazy(() => Eq$inboundSchema),
7567
+ z.lazy(() => Ne$inboundSchema),
7568
+ z.lazy(() => One3$inboundSchema),
7569
+ z.lazy(() => Gte$inboundSchema),
7570
+ z.lazy(() => Lt$inboundSchema),
7571
+ z.lazy(() => Lte$inboundSchema),
7572
+ z.lazy(() => In$inboundSchema),
7573
+ z.lazy(() => Nin$inboundSchema),
7574
+ z.lazy(() => Exists$inboundSchema),
7575
+ ])),
7576
+ ]);
7577
+
7578
+ /** @internal */
7579
+ export type KnowledgeFilter$Outbound = And$Outbound | Or$Outbound | {
7580
+ [k: string]:
7581
+ | Eq$Outbound
7582
+ | Ne$Outbound
7583
+ | One3$Outbound
7584
+ | Gte$Outbound
7585
+ | Lt$Outbound
7586
+ | Lte$Outbound
7587
+ | In$Outbound
7588
+ | Nin$Outbound
7589
+ | Exists$Outbound;
7590
+ };
7591
+
7592
+ /** @internal */
7593
+ export const KnowledgeFilter$outboundSchema: z.ZodType<
7594
+ KnowledgeFilter$Outbound,
7595
+ z.ZodTypeDef,
7596
+ KnowledgeFilter
7597
+ > = z.union([
7598
+ z.lazy(() => And$outboundSchema),
7599
+ z.lazy(() => Or$outboundSchema),
7600
+ z.record(z.union([
7601
+ z.lazy(() => Eq$outboundSchema),
7602
+ z.lazy(() => Ne$outboundSchema),
7603
+ z.lazy(() => One3$outboundSchema),
7604
+ z.lazy(() => Gte$outboundSchema),
7605
+ z.lazy(() => Lt$outboundSchema),
7606
+ z.lazy(() => Lte$outboundSchema),
7607
+ z.lazy(() => In$outboundSchema),
7608
+ z.lazy(() => Nin$outboundSchema),
7609
+ z.lazy(() => Exists$outboundSchema),
7610
+ ])),
7611
+ ]);
7612
+
7613
+ /**
7614
+ * @internal
7615
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
7616
+ */
7617
+ export namespace KnowledgeFilter$ {
7618
+ /** @deprecated use `KnowledgeFilter$inboundSchema` instead. */
7619
+ export const inboundSchema = KnowledgeFilter$inboundSchema;
7620
+ /** @deprecated use `KnowledgeFilter$outboundSchema` instead. */
7621
+ export const outboundSchema = KnowledgeFilter$outboundSchema;
7622
+ /** @deprecated use `KnowledgeFilter$Outbound` instead. */
7623
+ export type Outbound = KnowledgeFilter$Outbound;
7624
+ }
7625
+
7626
+ export function knowledgeFilterToJSON(
7627
+ knowledgeFilter: KnowledgeFilter,
7628
+ ): string {
7629
+ return JSON.stringify(KnowledgeFilter$outboundSchema.parse(knowledgeFilter));
7630
+ }
7631
+
7632
+ export function knowledgeFilterFromJSON(
7633
+ jsonString: string,
7634
+ ): SafeParseResult<KnowledgeFilter, SDKValidationError> {
7635
+ return safeParse(
7636
+ jsonString,
7637
+ (x) => KnowledgeFilter$inboundSchema.parse(JSON.parse(x)),
7638
+ `Failed to parse 'KnowledgeFilter' from JSON`,
7639
+ );
7640
+ }
7641
+
7642
+ /** @internal */
7643
+ export const DeploymentGetConfigRequestBody$inboundSchema: z.ZodType<
7644
+ DeploymentGetConfigRequestBody,
7645
+ z.ZodTypeDef,
7646
+ unknown
7647
+ > = z.object({
7648
+ key: z.string(),
7649
+ inputs: z.record(z.union([z.string(), z.number(), z.boolean()])).optional(),
7650
+ context: z.record(z.any()).optional(),
7651
+ prefix_messages: z.array(
7652
+ z.union([
7653
+ z.lazy(() => DeveloperMessage$inboundSchema),
7654
+ z.lazy(() => SystemMessage$inboundSchema),
7655
+ z.lazy(() => UserMessage$inboundSchema),
7656
+ z.lazy(() => ToolMessage$inboundSchema),
7657
+ z.lazy(() => AssistantMessage$inboundSchema),
7658
+ ]),
7659
+ ).optional(),
7660
+ messages: z.array(
7661
+ z.union([
7662
+ z.lazy(() => MessagesDeveloperMessage$inboundSchema),
7663
+ z.lazy(() => MessagesSystemMessage$inboundSchema),
7664
+ z.lazy(() => MessagesUserMessage$inboundSchema),
7665
+ z.lazy(() => MessagesToolMessage$inboundSchema),
7666
+ z.lazy(() => MessagesAssistantMessage$inboundSchema),
7667
+ ]),
7668
+ ).optional(),
7669
+ file_ids: z.array(z.string()).optional(),
7670
+ metadata: z.record(z.any()).optional(),
7671
+ extra_params: z.record(z.any()).optional(),
7672
+ documents: z.array(z.lazy(() => Documents$inboundSchema)).optional(),
7673
+ invoke_options: z.lazy(() => InvokeOptions$inboundSchema).optional(),
7674
+ thread: z.lazy(() => Thread$inboundSchema).optional(),
7675
+ knowledge_filter: z.union([
7676
+ z.lazy(() => And$inboundSchema),
7677
+ z.lazy(() => Or$inboundSchema),
7678
+ z.record(z.union([
7679
+ z.lazy(() => Eq$inboundSchema),
7680
+ z.lazy(() => Ne$inboundSchema),
7681
+ z.lazy(() => One3$inboundSchema),
7682
+ z.lazy(() => Gte$inboundSchema),
7683
+ z.lazy(() => Lt$inboundSchema),
7684
+ z.lazy(() => Lte$inboundSchema),
7685
+ z.lazy(() => In$inboundSchema),
7686
+ z.lazy(() => Nin$inboundSchema),
7687
+ z.lazy(() => Exists$inboundSchema),
7688
+ ])),
7689
+ ]).optional(),
7690
+ }).transform((v) => {
7691
+ return remap$(v, {
7692
+ "prefix_messages": "prefixMessages",
7693
+ "file_ids": "fileIds",
7694
+ "extra_params": "extraParams",
7695
+ "invoke_options": "invokeOptions",
7696
+ "knowledge_filter": "knowledgeFilter",
7697
+ });
7698
+ });
7699
+
7700
+ /** @internal */
7701
+ export type DeploymentGetConfigRequestBody$Outbound = {
7702
+ key: string;
7703
+ inputs?: { [k: string]: string | number | boolean } | undefined;
7704
+ context?: { [k: string]: any } | undefined;
7705
+ prefix_messages?:
7706
+ | Array<
7707
+ | DeveloperMessage$Outbound
7708
+ | SystemMessage$Outbound
7709
+ | UserMessage$Outbound
7710
+ | ToolMessage$Outbound
7711
+ | AssistantMessage$Outbound
7712
+ >
7713
+ | undefined;
7714
+ messages?:
7715
+ | Array<
7716
+ | MessagesDeveloperMessage$Outbound
7717
+ | MessagesSystemMessage$Outbound
7718
+ | MessagesUserMessage$Outbound
7719
+ | MessagesToolMessage$Outbound
7720
+ | MessagesAssistantMessage$Outbound
7721
+ >
7722
+ | undefined;
7723
+ file_ids?: Array<string> | undefined;
7724
+ metadata?: { [k: string]: any } | undefined;
7725
+ extra_params?: { [k: string]: any } | undefined;
7726
+ documents?: Array<Documents$Outbound> | undefined;
7727
+ invoke_options?: InvokeOptions$Outbound | undefined;
7728
+ thread?: Thread$Outbound | undefined;
7729
+ knowledge_filter?: And$Outbound | Or$Outbound | {
7730
+ [k: string]:
7731
+ | Eq$Outbound
7732
+ | Ne$Outbound
7733
+ | One3$Outbound
7734
+ | Gte$Outbound
7735
+ | Lt$Outbound
7736
+ | Lte$Outbound
7737
+ | In$Outbound
7738
+ | Nin$Outbound
7739
+ | Exists$Outbound;
7740
+ } | undefined;
7741
+ };
7742
+
7743
+ /** @internal */
7744
+ export const DeploymentGetConfigRequestBody$outboundSchema: z.ZodType<
7745
+ DeploymentGetConfigRequestBody$Outbound,
7746
+ z.ZodTypeDef,
7747
+ DeploymentGetConfigRequestBody
7748
+ > = z.object({
7749
+ key: z.string(),
7750
+ inputs: z.record(z.union([z.string(), z.number(), z.boolean()])).optional(),
7751
+ context: z.record(z.any()).optional(),
7752
+ prefixMessages: z.array(
7753
+ z.union([
7754
+ z.lazy(() => DeveloperMessage$outboundSchema),
7755
+ z.lazy(() => SystemMessage$outboundSchema),
7756
+ z.lazy(() => UserMessage$outboundSchema),
7757
+ z.lazy(() => ToolMessage$outboundSchema),
7758
+ z.lazy(() => AssistantMessage$outboundSchema),
7759
+ ]),
7760
+ ).optional(),
7761
+ messages: z.array(
7762
+ z.union([
7763
+ z.lazy(() => MessagesDeveloperMessage$outboundSchema),
7764
+ z.lazy(() => MessagesSystemMessage$outboundSchema),
7765
+ z.lazy(() => MessagesUserMessage$outboundSchema),
7766
+ z.lazy(() => MessagesToolMessage$outboundSchema),
7767
+ z.lazy(() => MessagesAssistantMessage$outboundSchema),
7768
+ ]),
7769
+ ).optional(),
7770
+ fileIds: z.array(z.string()).optional(),
7771
+ metadata: z.record(z.any()).optional(),
7772
+ extraParams: z.record(z.any()).optional(),
7773
+ documents: z.array(z.lazy(() => Documents$outboundSchema)).optional(),
7774
+ invokeOptions: z.lazy(() => InvokeOptions$outboundSchema).optional(),
7775
+ thread: z.lazy(() => Thread$outboundSchema).optional(),
7776
+ knowledgeFilter: z.union([
7777
+ z.lazy(() => And$outboundSchema),
7778
+ z.lazy(() => Or$outboundSchema),
7779
+ z.record(z.union([
7780
+ z.lazy(() => Eq$outboundSchema),
7781
+ z.lazy(() => Ne$outboundSchema),
7782
+ z.lazy(() => One3$outboundSchema),
7783
+ z.lazy(() => Gte$outboundSchema),
7784
+ z.lazy(() => Lt$outboundSchema),
7785
+ z.lazy(() => Lte$outboundSchema),
7786
+ z.lazy(() => In$outboundSchema),
7787
+ z.lazy(() => Nin$outboundSchema),
7788
+ z.lazy(() => Exists$outboundSchema),
7789
+ ])),
7790
+ ]).optional(),
7791
+ }).transform((v) => {
7792
+ return remap$(v, {
7793
+ prefixMessages: "prefix_messages",
7794
+ fileIds: "file_ids",
7795
+ extraParams: "extra_params",
5159
7796
  invokeOptions: "invoke_options",
7797
+ knowledgeFilter: "knowledge_filter",
5160
7798
  });
5161
7799
  });
5162
7800
 
@@ -5235,6 +7873,158 @@ export namespace DeploymentGetConfigRole$ {
5235
7873
  export const outboundSchema = DeploymentGetConfigRole$outboundSchema;
5236
7874
  }
5237
7875
 
7876
+ /** @internal */
7877
+ export const DeploymentGetConfig2DeploymentsResponse200ApplicationJSONType$inboundSchema:
7878
+ z.ZodNativeEnum<
7879
+ typeof DeploymentGetConfig2DeploymentsResponse200ApplicationJSONType
7880
+ > = z.nativeEnum(
7881
+ DeploymentGetConfig2DeploymentsResponse200ApplicationJSONType,
7882
+ );
7883
+
7884
+ /** @internal */
7885
+ export const DeploymentGetConfig2DeploymentsResponse200ApplicationJSONType$outboundSchema:
7886
+ z.ZodNativeEnum<
7887
+ typeof DeploymentGetConfig2DeploymentsResponse200ApplicationJSONType
7888
+ > =
7889
+ DeploymentGetConfig2DeploymentsResponse200ApplicationJSONType$inboundSchema;
7890
+
7891
+ /**
7892
+ * @internal
7893
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
7894
+ */
7895
+ export namespace DeploymentGetConfig2DeploymentsResponse200ApplicationJSONType$ {
7896
+ /** @deprecated use `DeploymentGetConfig2DeploymentsResponse200ApplicationJSONType$inboundSchema` instead. */
7897
+ export const inboundSchema =
7898
+ DeploymentGetConfig2DeploymentsResponse200ApplicationJSONType$inboundSchema;
7899
+ /** @deprecated use `DeploymentGetConfig2DeploymentsResponse200ApplicationJSONType$outboundSchema` instead. */
7900
+ export const outboundSchema =
7901
+ DeploymentGetConfig2DeploymentsResponse200ApplicationJSONType$outboundSchema;
7902
+ }
7903
+
7904
+ /** @internal */
7905
+ export const DeploymentGetConfig2File$inboundSchema: z.ZodType<
7906
+ DeploymentGetConfig2File,
7907
+ z.ZodTypeDef,
7908
+ unknown
7909
+ > = z.object({
7910
+ file_data: z.string(),
7911
+ filename: z.string().optional(),
7912
+ }).transform((v) => {
7913
+ return remap$(v, {
7914
+ "file_data": "fileData",
7915
+ });
7916
+ });
7917
+
7918
+ /** @internal */
7919
+ export type DeploymentGetConfig2File$Outbound = {
7920
+ file_data: string;
7921
+ filename?: string | undefined;
7922
+ };
7923
+
7924
+ /** @internal */
7925
+ export const DeploymentGetConfig2File$outboundSchema: z.ZodType<
7926
+ DeploymentGetConfig2File$Outbound,
7927
+ z.ZodTypeDef,
7928
+ DeploymentGetConfig2File
7929
+ > = z.object({
7930
+ fileData: z.string(),
7931
+ filename: z.string().optional(),
7932
+ }).transform((v) => {
7933
+ return remap$(v, {
7934
+ fileData: "file_data",
7935
+ });
7936
+ });
7937
+
7938
+ /**
7939
+ * @internal
7940
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
7941
+ */
7942
+ export namespace DeploymentGetConfig2File$ {
7943
+ /** @deprecated use `DeploymentGetConfig2File$inboundSchema` instead. */
7944
+ export const inboundSchema = DeploymentGetConfig2File$inboundSchema;
7945
+ /** @deprecated use `DeploymentGetConfig2File$outboundSchema` instead. */
7946
+ export const outboundSchema = DeploymentGetConfig2File$outboundSchema;
7947
+ /** @deprecated use `DeploymentGetConfig2File$Outbound` instead. */
7948
+ export type Outbound = DeploymentGetConfig2File$Outbound;
7949
+ }
7950
+
7951
+ export function deploymentGetConfig2FileToJSON(
7952
+ deploymentGetConfig2File: DeploymentGetConfig2File,
7953
+ ): string {
7954
+ return JSON.stringify(
7955
+ DeploymentGetConfig2File$outboundSchema.parse(deploymentGetConfig2File),
7956
+ );
7957
+ }
7958
+
7959
+ export function deploymentGetConfig2FileFromJSON(
7960
+ jsonString: string,
7961
+ ): SafeParseResult<DeploymentGetConfig2File, SDKValidationError> {
7962
+ return safeParse(
7963
+ jsonString,
7964
+ (x) => DeploymentGetConfig2File$inboundSchema.parse(JSON.parse(x)),
7965
+ `Failed to parse 'DeploymentGetConfig2File' from JSON`,
7966
+ );
7967
+ }
7968
+
7969
+ /** @internal */
7970
+ export const DeploymentGetConfig23$inboundSchema: z.ZodType<
7971
+ DeploymentGetConfig23,
7972
+ z.ZodTypeDef,
7973
+ unknown
7974
+ > = z.object({
7975
+ type:
7976
+ DeploymentGetConfig2DeploymentsResponse200ApplicationJSONType$inboundSchema,
7977
+ file: z.lazy(() => DeploymentGetConfig2File$inboundSchema),
7978
+ });
7979
+
7980
+ /** @internal */
7981
+ export type DeploymentGetConfig23$Outbound = {
7982
+ type: string;
7983
+ file: DeploymentGetConfig2File$Outbound;
7984
+ };
7985
+
7986
+ /** @internal */
7987
+ export const DeploymentGetConfig23$outboundSchema: z.ZodType<
7988
+ DeploymentGetConfig23$Outbound,
7989
+ z.ZodTypeDef,
7990
+ DeploymentGetConfig23
7991
+ > = z.object({
7992
+ type:
7993
+ DeploymentGetConfig2DeploymentsResponse200ApplicationJSONType$outboundSchema,
7994
+ file: z.lazy(() => DeploymentGetConfig2File$outboundSchema),
7995
+ });
7996
+
7997
+ /**
7998
+ * @internal
7999
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
8000
+ */
8001
+ export namespace DeploymentGetConfig23$ {
8002
+ /** @deprecated use `DeploymentGetConfig23$inboundSchema` instead. */
8003
+ export const inboundSchema = DeploymentGetConfig23$inboundSchema;
8004
+ /** @deprecated use `DeploymentGetConfig23$outboundSchema` instead. */
8005
+ export const outboundSchema = DeploymentGetConfig23$outboundSchema;
8006
+ /** @deprecated use `DeploymentGetConfig23$Outbound` instead. */
8007
+ export type Outbound = DeploymentGetConfig23$Outbound;
8008
+ }
8009
+
8010
+ export function deploymentGetConfig23ToJSON(
8011
+ deploymentGetConfig23: DeploymentGetConfig23,
8012
+ ): string {
8013
+ return JSON.stringify(
8014
+ DeploymentGetConfig23$outboundSchema.parse(deploymentGetConfig23),
8015
+ );
8016
+ }
8017
+
8018
+ export function deploymentGetConfig23FromJSON(
8019
+ jsonString: string,
8020
+ ): SafeParseResult<DeploymentGetConfig23, SDKValidationError> {
8021
+ return safeParse(
8022
+ jsonString,
8023
+ (x) => DeploymentGetConfig23$inboundSchema.parse(JSON.parse(x)),
8024
+ `Failed to parse 'DeploymentGetConfig23' from JSON`,
8025
+ );
8026
+ }
8027
+
5238
8028
  /** @internal */
5239
8029
  export const DeploymentGetConfig2DeploymentsResponse200Type$inboundSchema:
5240
8030
  z.ZodNativeEnum<typeof DeploymentGetConfig2DeploymentsResponse200Type> = z
@@ -5476,12 +8266,14 @@ export const DeploymentGetConfigContentDeploymentsResponse2$inboundSchema:
5476
8266
  > = z.union([
5477
8267
  z.lazy(() => DeploymentGetConfig21$inboundSchema),
5478
8268
  z.lazy(() => DeploymentGetConfig2Deployments2$inboundSchema),
8269
+ z.lazy(() => DeploymentGetConfig23$inboundSchema),
5479
8270
  ]);
5480
8271
 
5481
8272
  /** @internal */
5482
8273
  export type DeploymentGetConfigContentDeploymentsResponse2$Outbound =
5483
8274
  | DeploymentGetConfig21$Outbound
5484
- | DeploymentGetConfig2Deployments2$Outbound;
8275
+ | DeploymentGetConfig2Deployments2$Outbound
8276
+ | DeploymentGetConfig23$Outbound;
5485
8277
 
5486
8278
  /** @internal */
5487
8279
  export const DeploymentGetConfigContentDeploymentsResponse2$outboundSchema:
@@ -5492,6 +8284,7 @@ export const DeploymentGetConfigContentDeploymentsResponse2$outboundSchema:
5492
8284
  > = z.union([
5493
8285
  z.lazy(() => DeploymentGetConfig21$outboundSchema),
5494
8286
  z.lazy(() => DeploymentGetConfig2Deployments2$outboundSchema),
8287
+ z.lazy(() => DeploymentGetConfig23$outboundSchema),
5495
8288
  ]);
5496
8289
 
5497
8290
  /**
@@ -5547,6 +8340,7 @@ export const DeploymentGetConfigContent$inboundSchema: z.ZodType<
5547
8340
  z.array(z.union([
5548
8341
  z.lazy(() => DeploymentGetConfig21$inboundSchema),
5549
8342
  z.lazy(() => DeploymentGetConfig2Deployments2$inboundSchema),
8343
+ z.lazy(() => DeploymentGetConfig23$inboundSchema),
5550
8344
  ])),
5551
8345
  ]);
5552
8346
 
@@ -5554,7 +8348,9 @@ export const DeploymentGetConfigContent$inboundSchema: z.ZodType<
5554
8348
  export type DeploymentGetConfigContent$Outbound =
5555
8349
  | string
5556
8350
  | Array<
5557
- DeploymentGetConfig21$Outbound | DeploymentGetConfig2Deployments2$Outbound
8351
+ | DeploymentGetConfig21$Outbound
8352
+ | DeploymentGetConfig2Deployments2$Outbound
8353
+ | DeploymentGetConfig23$Outbound
5558
8354
  >;
5559
8355
 
5560
8356
  /** @internal */
@@ -5567,6 +8363,7 @@ export const DeploymentGetConfigContent$outboundSchema: z.ZodType<
5567
8363
  z.array(z.union([
5568
8364
  z.lazy(() => DeploymentGetConfig21$outboundSchema),
5569
8365
  z.lazy(() => DeploymentGetConfig2Deployments2$outboundSchema),
8366
+ z.lazy(() => DeploymentGetConfig23$outboundSchema),
5570
8367
  ])),
5571
8368
  ]);
5572
8369
 
@@ -5764,6 +8561,7 @@ export const DeploymentGetConfigMessages$inboundSchema: z.ZodType<
5764
8561
  z.array(z.union([
5765
8562
  z.lazy(() => DeploymentGetConfig21$inboundSchema),
5766
8563
  z.lazy(() => DeploymentGetConfig2Deployments2$inboundSchema),
8564
+ z.lazy(() => DeploymentGetConfig23$inboundSchema),
5767
8565
  ])),
5768
8566
  ]),
5769
8567
  tool_calls: z.array(z.lazy(() => DeploymentGetConfigToolCalls$inboundSchema))
@@ -5782,7 +8580,9 @@ export type DeploymentGetConfigMessages$Outbound = {
5782
8580
  content:
5783
8581
  | string
5784
8582
  | Array<
5785
- DeploymentGetConfig21$Outbound | DeploymentGetConfig2Deployments2$Outbound
8583
+ | DeploymentGetConfig21$Outbound
8584
+ | DeploymentGetConfig2Deployments2$Outbound
8585
+ | DeploymentGetConfig23$Outbound
5786
8586
  >;
5787
8587
  tool_calls?: Array<DeploymentGetConfigToolCalls$Outbound> | undefined;
5788
8588
  tool_call_id?: string | undefined;
@@ -5800,6 +8600,7 @@ export const DeploymentGetConfigMessages$outboundSchema: z.ZodType<
5800
8600
  z.array(z.union([
5801
8601
  z.lazy(() => DeploymentGetConfig21$outboundSchema),
5802
8602
  z.lazy(() => DeploymentGetConfig2Deployments2$outboundSchema),
8603
+ z.lazy(() => DeploymentGetConfig23$outboundSchema),
5803
8604
  ])),
5804
8605
  ]),
5805
8606
  toolCalls: z.array(z.lazy(() => DeploymentGetConfigToolCalls$outboundSchema))