@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
@@ -274,7 +274,7 @@ export type InputAudio = {
274
274
  format: Format;
275
275
  };
276
276
 
277
- export type Three = {
277
+ export type Deployments23 = {
278
278
  type: Deployments2Type;
279
279
  inputAudio: InputAudio;
280
280
  };
@@ -320,17 +320,19 @@ export type Deployments2PrefixMessages3Type = ClosedEnum<
320
320
  typeof Deployments2PrefixMessages3Type
321
321
  >;
322
322
 
323
- export type One = {
323
+ export type Deployments21 = {
324
324
  type: Deployments2PrefixMessages3Type;
325
325
  text: string;
326
326
  };
327
327
 
328
- export type Two = One | Two2 | Three | Four;
328
+ export type Two = Deployments21 | Two2 | Deployments23 | Four;
329
329
 
330
330
  /**
331
331
  * The contents of the user message.
332
332
  */
333
- export type Content = string | Array<One | Two2 | Three | Four>;
333
+ export type Content =
334
+ | string
335
+ | Array<Deployments21 | Two2 | Deployments23 | Four>;
334
336
 
335
337
  export type UserMessage = {
336
338
  /**
@@ -344,7 +346,7 @@ export type UserMessage = {
344
346
  /**
345
347
  * The contents of the user message.
346
348
  */
347
- content: string | Array<One | Two2 | Three | Four>;
349
+ content: string | Array<Deployments21 | Two2 | Deployments23 | Four>;
348
350
  };
349
351
 
350
352
  /**
@@ -862,6 +864,290 @@ export type Thread = {
862
864
  tags?: Array<string> | undefined;
863
865
  };
864
866
 
867
+ /**
868
+ * Exists
869
+ */
870
+ export type OrExists = {
871
+ exists: boolean;
872
+ };
873
+
874
+ export type OrNin = string | number | boolean;
875
+
876
+ /**
877
+ * Not in
878
+ */
879
+ export type DeploymentsOrNin = {
880
+ nin: Array<string | number | boolean>;
881
+ };
882
+
883
+ export type OrIn = string | number | boolean;
884
+
885
+ /**
886
+ * In
887
+ */
888
+ export type DeploymentsOrIn = {
889
+ in: Array<string | number | boolean>;
890
+ };
891
+
892
+ /**
893
+ * Less than or equal to
894
+ */
895
+ export type OrLte = {
896
+ lte: number;
897
+ };
898
+
899
+ /**
900
+ * Less than
901
+ */
902
+ export type OrLt = {
903
+ lt: number;
904
+ };
905
+
906
+ /**
907
+ * Greater than or equal to
908
+ */
909
+ export type OrGte = {
910
+ gte: number;
911
+ };
912
+
913
+ export type Or3 = {
914
+ gt: number;
915
+ };
916
+
917
+ export type OrNe = string | number | boolean;
918
+
919
+ /**
920
+ * Not equal to
921
+ */
922
+ export type DeploymentsOrNe = {
923
+ ne: string | number | boolean;
924
+ };
925
+
926
+ export type OrEq = string | number | boolean;
927
+
928
+ /**
929
+ * Equal to
930
+ */
931
+ export type DeploymentsOrEq = {
932
+ eq: string | number | boolean;
933
+ };
934
+
935
+ export type Or =
936
+ | DeploymentsOrEq
937
+ | DeploymentsOrNe
938
+ | Or3
939
+ | OrGte
940
+ | OrLt
941
+ | OrLte
942
+ | DeploymentsOrIn
943
+ | DeploymentsOrNin
944
+ | OrExists;
945
+
946
+ /**
947
+ * Or
948
+ */
949
+ export type KnowledgeFilterOr = {
950
+ or: Array<
951
+ {
952
+ [k: string]:
953
+ | DeploymentsOrEq
954
+ | DeploymentsOrNe
955
+ | Or3
956
+ | OrGte
957
+ | OrLt
958
+ | OrLte
959
+ | DeploymentsOrIn
960
+ | DeploymentsOrNin
961
+ | OrExists;
962
+ }
963
+ >;
964
+ };
965
+
966
+ /**
967
+ * Exists
968
+ */
969
+ export type AndExists = {
970
+ exists: boolean;
971
+ };
972
+
973
+ export type AndNin = string | number | boolean;
974
+
975
+ /**
976
+ * Not in
977
+ */
978
+ export type DeploymentsAndNin = {
979
+ nin: Array<string | number | boolean>;
980
+ };
981
+
982
+ export type AndIn = string | number | boolean;
983
+
984
+ /**
985
+ * In
986
+ */
987
+ export type DeploymentsAndIn = {
988
+ in: Array<string | number | boolean>;
989
+ };
990
+
991
+ /**
992
+ * Less than or equal to
993
+ */
994
+ export type AndLte = {
995
+ lte: number;
996
+ };
997
+
998
+ /**
999
+ * Less than
1000
+ */
1001
+ export type AndLt = {
1002
+ lt: number;
1003
+ };
1004
+
1005
+ /**
1006
+ * Greater than or equal to
1007
+ */
1008
+ export type AndGte = {
1009
+ gte: number;
1010
+ };
1011
+
1012
+ export type And3 = {
1013
+ gt: number;
1014
+ };
1015
+
1016
+ export type AndNe = string | number | boolean;
1017
+
1018
+ /**
1019
+ * Not equal to
1020
+ */
1021
+ export type DeploymentsAndNe = {
1022
+ ne: string | number | boolean;
1023
+ };
1024
+
1025
+ export type AndEq = string | number | boolean;
1026
+
1027
+ /**
1028
+ * Equal to
1029
+ */
1030
+ export type DeploymentsAndEq = {
1031
+ eq: string | number | boolean;
1032
+ };
1033
+
1034
+ export type And =
1035
+ | DeploymentsAndEq
1036
+ | DeploymentsAndNe
1037
+ | And3
1038
+ | AndGte
1039
+ | AndLt
1040
+ | AndLte
1041
+ | DeploymentsAndIn
1042
+ | DeploymentsAndNin
1043
+ | AndExists;
1044
+
1045
+ /**
1046
+ * And
1047
+ */
1048
+ export type KnowledgeFilterAnd = {
1049
+ and: Array<
1050
+ {
1051
+ [k: string]:
1052
+ | DeploymentsAndEq
1053
+ | DeploymentsAndNe
1054
+ | And3
1055
+ | AndGte
1056
+ | AndLt
1057
+ | AndLte
1058
+ | DeploymentsAndIn
1059
+ | DeploymentsAndNin
1060
+ | AndExists;
1061
+ }
1062
+ >;
1063
+ };
1064
+
1065
+ /**
1066
+ * Exists
1067
+ */
1068
+ export type Exists = {
1069
+ exists: boolean;
1070
+ };
1071
+
1072
+ export type Nin = string | number | boolean;
1073
+
1074
+ /**
1075
+ * Not in
1076
+ */
1077
+ export type OneNin = {
1078
+ nin: Array<string | number | boolean>;
1079
+ };
1080
+
1081
+ export type In = string | number | boolean;
1082
+
1083
+ /**
1084
+ * In
1085
+ */
1086
+ export type OneIn = {
1087
+ in: Array<string | number | boolean>;
1088
+ };
1089
+
1090
+ /**
1091
+ * Less than or equal to
1092
+ */
1093
+ export type Lte = {
1094
+ lte: number;
1095
+ };
1096
+
1097
+ /**
1098
+ * Less than
1099
+ */
1100
+ export type Lt = {
1101
+ lt: number;
1102
+ };
1103
+
1104
+ /**
1105
+ * Greater than or equal to
1106
+ */
1107
+ export type Gte = {
1108
+ gte: number;
1109
+ };
1110
+
1111
+ export type Three = {
1112
+ gt: number;
1113
+ };
1114
+
1115
+ export type Ne = string | number | boolean;
1116
+
1117
+ /**
1118
+ * Not equal to
1119
+ */
1120
+ export type OneNe = {
1121
+ ne: string | number | boolean;
1122
+ };
1123
+
1124
+ export type Eq = string | number | boolean;
1125
+
1126
+ /**
1127
+ * Equal to
1128
+ */
1129
+ export type OneEq = {
1130
+ eq: string | number | boolean;
1131
+ };
1132
+
1133
+ export type One =
1134
+ | OneEq
1135
+ | OneNe
1136
+ | Three
1137
+ | Gte
1138
+ | Lt
1139
+ | Lte
1140
+ | OneIn
1141
+ | OneNin
1142
+ | Exists;
1143
+
1144
+ /**
1145
+ * A filter to apply to the knowledge base chunk metadata when using knowledge bases in the deployment.
1146
+ */
1147
+ export type KnowledgeFilter = KnowledgeFilterAnd | KnowledgeFilterOr | {
1148
+ [k: string]: OneEq | OneNe | Three | Gte | Lt | Lte | OneIn | OneNin | Exists;
1149
+ };
1150
+
865
1151
  /**
866
1152
  * The deployment request payload
867
1153
  */
@@ -920,6 +1206,21 @@ export type Deployments = {
920
1206
  documents?: Array<Documents> | undefined;
921
1207
  invokeOptions?: InvokeOptions | undefined;
922
1208
  thread?: Thread | undefined;
1209
+ /**
1210
+ * A filter to apply to the knowledge base chunk metadata when using knowledge bases in the deployment.
1211
+ */
1212
+ knowledgeFilter?: KnowledgeFilterAnd | KnowledgeFilterOr | {
1213
+ [k: string]:
1214
+ | OneEq
1215
+ | OneNe
1216
+ | Three
1217
+ | Gte
1218
+ | Lt
1219
+ | Lte
1220
+ | OneIn
1221
+ | OneNin
1222
+ | Exists;
1223
+ } | undefined;
923
1224
  };
924
1225
 
925
1226
  /** @internal */
@@ -1919,27 +2220,30 @@ export function inputAudioFromJSON(
1919
2220
  }
1920
2221
 
1921
2222
  /** @internal */
1922
- export const Three$inboundSchema: z.ZodType<Three, z.ZodTypeDef, unknown> = z
1923
- .object({
1924
- type: Deployments2Type$inboundSchema,
1925
- input_audio: z.lazy(() => InputAudio$inboundSchema),
1926
- }).transform((v) => {
1927
- return remap$(v, {
1928
- "input_audio": "inputAudio",
1929
- });
2223
+ export const Deployments23$inboundSchema: z.ZodType<
2224
+ Deployments23,
2225
+ z.ZodTypeDef,
2226
+ unknown
2227
+ > = z.object({
2228
+ type: Deployments2Type$inboundSchema,
2229
+ input_audio: z.lazy(() => InputAudio$inboundSchema),
2230
+ }).transform((v) => {
2231
+ return remap$(v, {
2232
+ "input_audio": "inputAudio",
1930
2233
  });
2234
+ });
1931
2235
 
1932
2236
  /** @internal */
1933
- export type Three$Outbound = {
2237
+ export type Deployments23$Outbound = {
1934
2238
  type: string;
1935
2239
  input_audio: InputAudio$Outbound;
1936
2240
  };
1937
2241
 
1938
2242
  /** @internal */
1939
- export const Three$outboundSchema: z.ZodType<
1940
- Three$Outbound,
2243
+ export const Deployments23$outboundSchema: z.ZodType<
2244
+ Deployments23$Outbound,
1941
2245
  z.ZodTypeDef,
1942
- Three
2246
+ Deployments23
1943
2247
  > = z.object({
1944
2248
  type: Deployments2Type$outboundSchema,
1945
2249
  inputAudio: z.lazy(() => InputAudio$outboundSchema),
@@ -1953,26 +2257,26 @@ export const Three$outboundSchema: z.ZodType<
1953
2257
  * @internal
1954
2258
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1955
2259
  */
1956
- export namespace Three$ {
1957
- /** @deprecated use `Three$inboundSchema` instead. */
1958
- export const inboundSchema = Three$inboundSchema;
1959
- /** @deprecated use `Three$outboundSchema` instead. */
1960
- export const outboundSchema = Three$outboundSchema;
1961
- /** @deprecated use `Three$Outbound` instead. */
1962
- export type Outbound = Three$Outbound;
2260
+ export namespace Deployments23$ {
2261
+ /** @deprecated use `Deployments23$inboundSchema` instead. */
2262
+ export const inboundSchema = Deployments23$inboundSchema;
2263
+ /** @deprecated use `Deployments23$outboundSchema` instead. */
2264
+ export const outboundSchema = Deployments23$outboundSchema;
2265
+ /** @deprecated use `Deployments23$Outbound` instead. */
2266
+ export type Outbound = Deployments23$Outbound;
1963
2267
  }
1964
2268
 
1965
- export function threeToJSON(three: Three): string {
1966
- return JSON.stringify(Three$outboundSchema.parse(three));
2269
+ export function deployments23ToJSON(deployments23: Deployments23): string {
2270
+ return JSON.stringify(Deployments23$outboundSchema.parse(deployments23));
1967
2271
  }
1968
2272
 
1969
- export function threeFromJSON(
2273
+ export function deployments23FromJSON(
1970
2274
  jsonString: string,
1971
- ): SafeParseResult<Three, SDKValidationError> {
2275
+ ): SafeParseResult<Deployments23, SDKValidationError> {
1972
2276
  return safeParse(
1973
2277
  jsonString,
1974
- (x) => Three$inboundSchema.parse(JSON.parse(x)),
1975
- `Failed to parse 'Three' from JSON`,
2278
+ (x) => Deployments23$inboundSchema.parse(JSON.parse(x)),
2279
+ `Failed to parse 'Deployments23' from JSON`,
1976
2280
  );
1977
2281
  }
1978
2282
 
@@ -2144,75 +2448,81 @@ export namespace Deployments2PrefixMessages3Type$ {
2144
2448
  }
2145
2449
 
2146
2450
  /** @internal */
2147
- export const One$inboundSchema: z.ZodType<One, z.ZodTypeDef, unknown> = z
2148
- .object({
2149
- type: Deployments2PrefixMessages3Type$inboundSchema,
2150
- text: z.string(),
2151
- });
2451
+ export const Deployments21$inboundSchema: z.ZodType<
2452
+ Deployments21,
2453
+ z.ZodTypeDef,
2454
+ unknown
2455
+ > = z.object({
2456
+ type: Deployments2PrefixMessages3Type$inboundSchema,
2457
+ text: z.string(),
2458
+ });
2152
2459
 
2153
2460
  /** @internal */
2154
- export type One$Outbound = {
2461
+ export type Deployments21$Outbound = {
2155
2462
  type: string;
2156
2463
  text: string;
2157
2464
  };
2158
2465
 
2159
2466
  /** @internal */
2160
- export const One$outboundSchema: z.ZodType<One$Outbound, z.ZodTypeDef, One> = z
2161
- .object({
2162
- type: Deployments2PrefixMessages3Type$outboundSchema,
2163
- text: z.string(),
2164
- });
2467
+ export const Deployments21$outboundSchema: z.ZodType<
2468
+ Deployments21$Outbound,
2469
+ z.ZodTypeDef,
2470
+ Deployments21
2471
+ > = z.object({
2472
+ type: Deployments2PrefixMessages3Type$outboundSchema,
2473
+ text: z.string(),
2474
+ });
2165
2475
 
2166
2476
  /**
2167
2477
  * @internal
2168
2478
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2169
2479
  */
2170
- export namespace One$ {
2171
- /** @deprecated use `One$inboundSchema` instead. */
2172
- export const inboundSchema = One$inboundSchema;
2173
- /** @deprecated use `One$outboundSchema` instead. */
2174
- export const outboundSchema = One$outboundSchema;
2175
- /** @deprecated use `One$Outbound` instead. */
2176
- export type Outbound = One$Outbound;
2480
+ export namespace Deployments21$ {
2481
+ /** @deprecated use `Deployments21$inboundSchema` instead. */
2482
+ export const inboundSchema = Deployments21$inboundSchema;
2483
+ /** @deprecated use `Deployments21$outboundSchema` instead. */
2484
+ export const outboundSchema = Deployments21$outboundSchema;
2485
+ /** @deprecated use `Deployments21$Outbound` instead. */
2486
+ export type Outbound = Deployments21$Outbound;
2177
2487
  }
2178
2488
 
2179
- export function oneToJSON(one: One): string {
2180
- return JSON.stringify(One$outboundSchema.parse(one));
2489
+ export function deployments21ToJSON(deployments21: Deployments21): string {
2490
+ return JSON.stringify(Deployments21$outboundSchema.parse(deployments21));
2181
2491
  }
2182
2492
 
2183
- export function oneFromJSON(
2493
+ export function deployments21FromJSON(
2184
2494
  jsonString: string,
2185
- ): SafeParseResult<One, SDKValidationError> {
2495
+ ): SafeParseResult<Deployments21, SDKValidationError> {
2186
2496
  return safeParse(
2187
2497
  jsonString,
2188
- (x) => One$inboundSchema.parse(JSON.parse(x)),
2189
- `Failed to parse 'One' from JSON`,
2498
+ (x) => Deployments21$inboundSchema.parse(JSON.parse(x)),
2499
+ `Failed to parse 'Deployments21' from JSON`,
2190
2500
  );
2191
2501
  }
2192
2502
 
2193
2503
  /** @internal */
2194
2504
  export const Two$inboundSchema: z.ZodType<Two, z.ZodTypeDef, unknown> = z.union(
2195
2505
  [
2196
- z.lazy(() => One$inboundSchema),
2506
+ z.lazy(() => Deployments21$inboundSchema),
2197
2507
  z.lazy(() => Two2$inboundSchema),
2198
- z.lazy(() => Three$inboundSchema),
2508
+ z.lazy(() => Deployments23$inboundSchema),
2199
2509
  z.lazy(() => Four$inboundSchema),
2200
2510
  ],
2201
2511
  );
2202
2512
 
2203
2513
  /** @internal */
2204
2514
  export type Two$Outbound =
2205
- | One$Outbound
2515
+ | Deployments21$Outbound
2206
2516
  | Two2$Outbound
2207
- | Three$Outbound
2517
+ | Deployments23$Outbound
2208
2518
  | Four$Outbound;
2209
2519
 
2210
2520
  /** @internal */
2211
2521
  export const Two$outboundSchema: z.ZodType<Two$Outbound, z.ZodTypeDef, Two> = z
2212
2522
  .union([
2213
- z.lazy(() => One$outboundSchema),
2523
+ z.lazy(() => Deployments21$outboundSchema),
2214
2524
  z.lazy(() => Two2$outboundSchema),
2215
- z.lazy(() => Three$outboundSchema),
2525
+ z.lazy(() => Deployments23$outboundSchema),
2216
2526
  z.lazy(() => Four$outboundSchema),
2217
2527
  ]);
2218
2528
 
@@ -2248,9 +2558,9 @@ export const Content$inboundSchema: z.ZodType<Content, z.ZodTypeDef, unknown> =
2248
2558
  z.union([
2249
2559
  z.string(),
2250
2560
  z.array(z.union([
2251
- z.lazy(() => One$inboundSchema),
2561
+ z.lazy(() => Deployments21$inboundSchema),
2252
2562
  z.lazy(() => Two2$inboundSchema),
2253
- z.lazy(() => Three$inboundSchema),
2563
+ z.lazy(() => Deployments23$inboundSchema),
2254
2564
  z.lazy(() => Four$inboundSchema),
2255
2565
  ])),
2256
2566
  ]);
@@ -2258,7 +2568,12 @@ export const Content$inboundSchema: z.ZodType<Content, z.ZodTypeDef, unknown> =
2258
2568
  /** @internal */
2259
2569
  export type Content$Outbound =
2260
2570
  | string
2261
- | Array<One$Outbound | Two2$Outbound | Three$Outbound | Four$Outbound>;
2571
+ | Array<
2572
+ | Deployments21$Outbound
2573
+ | Two2$Outbound
2574
+ | Deployments23$Outbound
2575
+ | Four$Outbound
2576
+ >;
2262
2577
 
2263
2578
  /** @internal */
2264
2579
  export const Content$outboundSchema: z.ZodType<
@@ -2268,9 +2583,9 @@ export const Content$outboundSchema: z.ZodType<
2268
2583
  > = z.union([
2269
2584
  z.string(),
2270
2585
  z.array(z.union([
2271
- z.lazy(() => One$outboundSchema),
2586
+ z.lazy(() => Deployments21$outboundSchema),
2272
2587
  z.lazy(() => Two2$outboundSchema),
2273
- z.lazy(() => Three$outboundSchema),
2588
+ z.lazy(() => Deployments23$outboundSchema),
2274
2589
  z.lazy(() => Four$outboundSchema),
2275
2590
  ])),
2276
2591
  ]);
@@ -2313,9 +2628,9 @@ export const UserMessage$inboundSchema: z.ZodType<
2313
2628
  content: z.union([
2314
2629
  z.string(),
2315
2630
  z.array(z.union([
2316
- z.lazy(() => One$inboundSchema),
2631
+ z.lazy(() => Deployments21$inboundSchema),
2317
2632
  z.lazy(() => Two2$inboundSchema),
2318
- z.lazy(() => Three$inboundSchema),
2633
+ z.lazy(() => Deployments23$inboundSchema),
2319
2634
  z.lazy(() => Four$inboundSchema),
2320
2635
  ])),
2321
2636
  ]),
@@ -2327,7 +2642,12 @@ export type UserMessage$Outbound = {
2327
2642
  name?: string | undefined;
2328
2643
  content:
2329
2644
  | string
2330
- | Array<One$Outbound | Two2$Outbound | Three$Outbound | Four$Outbound>;
2645
+ | Array<
2646
+ | Deployments21$Outbound
2647
+ | Two2$Outbound
2648
+ | Deployments23$Outbound
2649
+ | Four$Outbound
2650
+ >;
2331
2651
  };
2332
2652
 
2333
2653
  /** @internal */
@@ -2341,9 +2661,9 @@ export const UserMessage$outboundSchema: z.ZodType<
2341
2661
  content: z.union([
2342
2662
  z.string(),
2343
2663
  z.array(z.union([
2344
- z.lazy(() => One$outboundSchema),
2664
+ z.lazy(() => Deployments21$outboundSchema),
2345
2665
  z.lazy(() => Two2$outboundSchema),
2346
- z.lazy(() => Three$outboundSchema),
2666
+ z.lazy(() => Deployments23$outboundSchema),
2347
2667
  z.lazy(() => Four$outboundSchema),
2348
2668
  ])),
2349
2669
  ]),
@@ -4512,69 +4832,2352 @@ export function threadFromJSON(
4512
4832
  }
4513
4833
 
4514
4834
  /** @internal */
4515
- export const Deployments$inboundSchema: z.ZodType<
4516
- Deployments,
4835
+ export const OrExists$inboundSchema: z.ZodType<
4836
+ OrExists,
4517
4837
  z.ZodTypeDef,
4518
4838
  unknown
4519
4839
  > = z.object({
4520
- key: z.string(),
4521
- inputs: z.record(z.union([z.string(), z.number(), z.boolean()])).optional(),
4522
- context: z.record(z.any()).optional(),
4523
- prefix_messages: z.array(
4524
- z.union([
4525
- z.lazy(() => DeveloperMessage$inboundSchema),
4526
- z.lazy(() => SystemMessage$inboundSchema),
4527
- z.lazy(() => UserMessage$inboundSchema),
4528
- z.lazy(() => ToolMessage$inboundSchema),
4529
- z.lazy(() => AssistantMessage$inboundSchema),
4530
- ]),
4531
- ).optional(),
4532
- messages: z.array(
4533
- z.union([
4534
- z.lazy(() => MessagesDeveloperMessage$inboundSchema),
4535
- z.lazy(() => MessagesSystemMessage$inboundSchema),
4536
- z.lazy(() => MessagesUserMessage$inboundSchema),
4537
- z.lazy(() => MessagesToolMessage$inboundSchema),
4538
- z.lazy(() => MessagesAssistantMessage$inboundSchema),
4539
- ]),
4540
- ).optional(),
4541
- file_ids: z.array(z.string()).optional(),
4542
- metadata: z.record(z.any()).optional(),
4543
- extra_params: z.record(z.any()).optional(),
4544
- documents: z.array(z.lazy(() => Documents$inboundSchema)).optional(),
4545
- invoke_options: z.lazy(() => InvokeOptions$inboundSchema).optional(),
4546
- thread: z.lazy(() => Thread$inboundSchema).optional(),
4547
- }).transform((v) => {
4548
- return remap$(v, {
4549
- "prefix_messages": "prefixMessages",
4550
- "file_ids": "fileIds",
4551
- "extra_params": "extraParams",
4552
- "invoke_options": "invokeOptions",
4553
- });
4840
+ exists: z.boolean(),
4554
4841
  });
4555
4842
 
4556
4843
  /** @internal */
4557
- export type Deployments$Outbound = {
4558
- key: string;
4559
- inputs?: { [k: string]: string | number | boolean } | undefined;
4560
- context?: { [k: string]: any } | undefined;
4561
- prefix_messages?:
4562
- | Array<
4563
- | DeveloperMessage$Outbound
4564
- | SystemMessage$Outbound
4565
- | UserMessage$Outbound
4566
- | ToolMessage$Outbound
4567
- | AssistantMessage$Outbound
4568
- >
4569
- | undefined;
4570
- messages?:
4571
- | Array<
4572
- | MessagesDeveloperMessage$Outbound
4573
- | MessagesSystemMessage$Outbound
4574
- | MessagesUserMessage$Outbound
4575
- | MessagesToolMessage$Outbound
4576
- | MessagesAssistantMessage$Outbound
4577
- >
4844
+ export type OrExists$Outbound = {
4845
+ exists: boolean;
4846
+ };
4847
+
4848
+ /** @internal */
4849
+ export const OrExists$outboundSchema: z.ZodType<
4850
+ OrExists$Outbound,
4851
+ z.ZodTypeDef,
4852
+ OrExists
4853
+ > = z.object({
4854
+ exists: z.boolean(),
4855
+ });
4856
+
4857
+ /**
4858
+ * @internal
4859
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4860
+ */
4861
+ export namespace OrExists$ {
4862
+ /** @deprecated use `OrExists$inboundSchema` instead. */
4863
+ export const inboundSchema = OrExists$inboundSchema;
4864
+ /** @deprecated use `OrExists$outboundSchema` instead. */
4865
+ export const outboundSchema = OrExists$outboundSchema;
4866
+ /** @deprecated use `OrExists$Outbound` instead. */
4867
+ export type Outbound = OrExists$Outbound;
4868
+ }
4869
+
4870
+ export function orExistsToJSON(orExists: OrExists): string {
4871
+ return JSON.stringify(OrExists$outboundSchema.parse(orExists));
4872
+ }
4873
+
4874
+ export function orExistsFromJSON(
4875
+ jsonString: string,
4876
+ ): SafeParseResult<OrExists, SDKValidationError> {
4877
+ return safeParse(
4878
+ jsonString,
4879
+ (x) => OrExists$inboundSchema.parse(JSON.parse(x)),
4880
+ `Failed to parse 'OrExists' from JSON`,
4881
+ );
4882
+ }
4883
+
4884
+ /** @internal */
4885
+ export const OrNin$inboundSchema: z.ZodType<OrNin, z.ZodTypeDef, unknown> = z
4886
+ .union([z.string(), z.number(), z.boolean()]);
4887
+
4888
+ /** @internal */
4889
+ export type OrNin$Outbound = string | number | boolean;
4890
+
4891
+ /** @internal */
4892
+ export const OrNin$outboundSchema: z.ZodType<
4893
+ OrNin$Outbound,
4894
+ z.ZodTypeDef,
4895
+ OrNin
4896
+ > = z.union([z.string(), z.number(), z.boolean()]);
4897
+
4898
+ /**
4899
+ * @internal
4900
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4901
+ */
4902
+ export namespace OrNin$ {
4903
+ /** @deprecated use `OrNin$inboundSchema` instead. */
4904
+ export const inboundSchema = OrNin$inboundSchema;
4905
+ /** @deprecated use `OrNin$outboundSchema` instead. */
4906
+ export const outboundSchema = OrNin$outboundSchema;
4907
+ /** @deprecated use `OrNin$Outbound` instead. */
4908
+ export type Outbound = OrNin$Outbound;
4909
+ }
4910
+
4911
+ export function orNinToJSON(orNin: OrNin): string {
4912
+ return JSON.stringify(OrNin$outboundSchema.parse(orNin));
4913
+ }
4914
+
4915
+ export function orNinFromJSON(
4916
+ jsonString: string,
4917
+ ): SafeParseResult<OrNin, SDKValidationError> {
4918
+ return safeParse(
4919
+ jsonString,
4920
+ (x) => OrNin$inboundSchema.parse(JSON.parse(x)),
4921
+ `Failed to parse 'OrNin' from JSON`,
4922
+ );
4923
+ }
4924
+
4925
+ /** @internal */
4926
+ export const DeploymentsOrNin$inboundSchema: z.ZodType<
4927
+ DeploymentsOrNin,
4928
+ z.ZodTypeDef,
4929
+ unknown
4930
+ > = z.object({
4931
+ nin: z.array(z.union([z.string(), z.number(), z.boolean()])),
4932
+ });
4933
+
4934
+ /** @internal */
4935
+ export type DeploymentsOrNin$Outbound = {
4936
+ nin: Array<string | number | boolean>;
4937
+ };
4938
+
4939
+ /** @internal */
4940
+ export const DeploymentsOrNin$outboundSchema: z.ZodType<
4941
+ DeploymentsOrNin$Outbound,
4942
+ z.ZodTypeDef,
4943
+ DeploymentsOrNin
4944
+ > = z.object({
4945
+ nin: z.array(z.union([z.string(), z.number(), z.boolean()])),
4946
+ });
4947
+
4948
+ /**
4949
+ * @internal
4950
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4951
+ */
4952
+ export namespace DeploymentsOrNin$ {
4953
+ /** @deprecated use `DeploymentsOrNin$inboundSchema` instead. */
4954
+ export const inboundSchema = DeploymentsOrNin$inboundSchema;
4955
+ /** @deprecated use `DeploymentsOrNin$outboundSchema` instead. */
4956
+ export const outboundSchema = DeploymentsOrNin$outboundSchema;
4957
+ /** @deprecated use `DeploymentsOrNin$Outbound` instead. */
4958
+ export type Outbound = DeploymentsOrNin$Outbound;
4959
+ }
4960
+
4961
+ export function deploymentsOrNinToJSON(
4962
+ deploymentsOrNin: DeploymentsOrNin,
4963
+ ): string {
4964
+ return JSON.stringify(
4965
+ DeploymentsOrNin$outboundSchema.parse(deploymentsOrNin),
4966
+ );
4967
+ }
4968
+
4969
+ export function deploymentsOrNinFromJSON(
4970
+ jsonString: string,
4971
+ ): SafeParseResult<DeploymentsOrNin, SDKValidationError> {
4972
+ return safeParse(
4973
+ jsonString,
4974
+ (x) => DeploymentsOrNin$inboundSchema.parse(JSON.parse(x)),
4975
+ `Failed to parse 'DeploymentsOrNin' from JSON`,
4976
+ );
4977
+ }
4978
+
4979
+ /** @internal */
4980
+ export const OrIn$inboundSchema: z.ZodType<OrIn, z.ZodTypeDef, unknown> = z
4981
+ .union([z.string(), z.number(), z.boolean()]);
4982
+
4983
+ /** @internal */
4984
+ export type OrIn$Outbound = string | number | boolean;
4985
+
4986
+ /** @internal */
4987
+ export const OrIn$outboundSchema: z.ZodType<OrIn$Outbound, z.ZodTypeDef, OrIn> =
4988
+ z.union([z.string(), z.number(), z.boolean()]);
4989
+
4990
+ /**
4991
+ * @internal
4992
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4993
+ */
4994
+ export namespace OrIn$ {
4995
+ /** @deprecated use `OrIn$inboundSchema` instead. */
4996
+ export const inboundSchema = OrIn$inboundSchema;
4997
+ /** @deprecated use `OrIn$outboundSchema` instead. */
4998
+ export const outboundSchema = OrIn$outboundSchema;
4999
+ /** @deprecated use `OrIn$Outbound` instead. */
5000
+ export type Outbound = OrIn$Outbound;
5001
+ }
5002
+
5003
+ export function orInToJSON(orIn: OrIn): string {
5004
+ return JSON.stringify(OrIn$outboundSchema.parse(orIn));
5005
+ }
5006
+
5007
+ export function orInFromJSON(
5008
+ jsonString: string,
5009
+ ): SafeParseResult<OrIn, SDKValidationError> {
5010
+ return safeParse(
5011
+ jsonString,
5012
+ (x) => OrIn$inboundSchema.parse(JSON.parse(x)),
5013
+ `Failed to parse 'OrIn' from JSON`,
5014
+ );
5015
+ }
5016
+
5017
+ /** @internal */
5018
+ export const DeploymentsOrIn$inboundSchema: z.ZodType<
5019
+ DeploymentsOrIn,
5020
+ z.ZodTypeDef,
5021
+ unknown
5022
+ > = z.object({
5023
+ in: z.array(z.union([z.string(), z.number(), z.boolean()])),
5024
+ });
5025
+
5026
+ /** @internal */
5027
+ export type DeploymentsOrIn$Outbound = {
5028
+ in: Array<string | number | boolean>;
5029
+ };
5030
+
5031
+ /** @internal */
5032
+ export const DeploymentsOrIn$outboundSchema: z.ZodType<
5033
+ DeploymentsOrIn$Outbound,
5034
+ z.ZodTypeDef,
5035
+ DeploymentsOrIn
5036
+ > = z.object({
5037
+ in: z.array(z.union([z.string(), z.number(), z.boolean()])),
5038
+ });
5039
+
5040
+ /**
5041
+ * @internal
5042
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
5043
+ */
5044
+ export namespace DeploymentsOrIn$ {
5045
+ /** @deprecated use `DeploymentsOrIn$inboundSchema` instead. */
5046
+ export const inboundSchema = DeploymentsOrIn$inboundSchema;
5047
+ /** @deprecated use `DeploymentsOrIn$outboundSchema` instead. */
5048
+ export const outboundSchema = DeploymentsOrIn$outboundSchema;
5049
+ /** @deprecated use `DeploymentsOrIn$Outbound` instead. */
5050
+ export type Outbound = DeploymentsOrIn$Outbound;
5051
+ }
5052
+
5053
+ export function deploymentsOrInToJSON(
5054
+ deploymentsOrIn: DeploymentsOrIn,
5055
+ ): string {
5056
+ return JSON.stringify(DeploymentsOrIn$outboundSchema.parse(deploymentsOrIn));
5057
+ }
5058
+
5059
+ export function deploymentsOrInFromJSON(
5060
+ jsonString: string,
5061
+ ): SafeParseResult<DeploymentsOrIn, SDKValidationError> {
5062
+ return safeParse(
5063
+ jsonString,
5064
+ (x) => DeploymentsOrIn$inboundSchema.parse(JSON.parse(x)),
5065
+ `Failed to parse 'DeploymentsOrIn' from JSON`,
5066
+ );
5067
+ }
5068
+
5069
+ /** @internal */
5070
+ export const OrLte$inboundSchema: z.ZodType<OrLte, z.ZodTypeDef, unknown> = z
5071
+ .object({
5072
+ lte: z.number(),
5073
+ });
5074
+
5075
+ /** @internal */
5076
+ export type OrLte$Outbound = {
5077
+ lte: number;
5078
+ };
5079
+
5080
+ /** @internal */
5081
+ export const OrLte$outboundSchema: z.ZodType<
5082
+ OrLte$Outbound,
5083
+ z.ZodTypeDef,
5084
+ OrLte
5085
+ > = z.object({
5086
+ lte: z.number(),
5087
+ });
5088
+
5089
+ /**
5090
+ * @internal
5091
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
5092
+ */
5093
+ export namespace OrLte$ {
5094
+ /** @deprecated use `OrLte$inboundSchema` instead. */
5095
+ export const inboundSchema = OrLte$inboundSchema;
5096
+ /** @deprecated use `OrLte$outboundSchema` instead. */
5097
+ export const outboundSchema = OrLte$outboundSchema;
5098
+ /** @deprecated use `OrLte$Outbound` instead. */
5099
+ export type Outbound = OrLte$Outbound;
5100
+ }
5101
+
5102
+ export function orLteToJSON(orLte: OrLte): string {
5103
+ return JSON.stringify(OrLte$outboundSchema.parse(orLte));
5104
+ }
5105
+
5106
+ export function orLteFromJSON(
5107
+ jsonString: string,
5108
+ ): SafeParseResult<OrLte, SDKValidationError> {
5109
+ return safeParse(
5110
+ jsonString,
5111
+ (x) => OrLte$inboundSchema.parse(JSON.parse(x)),
5112
+ `Failed to parse 'OrLte' from JSON`,
5113
+ );
5114
+ }
5115
+
5116
+ /** @internal */
5117
+ export const OrLt$inboundSchema: z.ZodType<OrLt, z.ZodTypeDef, unknown> = z
5118
+ .object({
5119
+ lt: z.number(),
5120
+ });
5121
+
5122
+ /** @internal */
5123
+ export type OrLt$Outbound = {
5124
+ lt: number;
5125
+ };
5126
+
5127
+ /** @internal */
5128
+ export const OrLt$outboundSchema: z.ZodType<OrLt$Outbound, z.ZodTypeDef, OrLt> =
5129
+ z.object({
5130
+ lt: z.number(),
5131
+ });
5132
+
5133
+ /**
5134
+ * @internal
5135
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
5136
+ */
5137
+ export namespace OrLt$ {
5138
+ /** @deprecated use `OrLt$inboundSchema` instead. */
5139
+ export const inboundSchema = OrLt$inboundSchema;
5140
+ /** @deprecated use `OrLt$outboundSchema` instead. */
5141
+ export const outboundSchema = OrLt$outboundSchema;
5142
+ /** @deprecated use `OrLt$Outbound` instead. */
5143
+ export type Outbound = OrLt$Outbound;
5144
+ }
5145
+
5146
+ export function orLtToJSON(orLt: OrLt): string {
5147
+ return JSON.stringify(OrLt$outboundSchema.parse(orLt));
5148
+ }
5149
+
5150
+ export function orLtFromJSON(
5151
+ jsonString: string,
5152
+ ): SafeParseResult<OrLt, SDKValidationError> {
5153
+ return safeParse(
5154
+ jsonString,
5155
+ (x) => OrLt$inboundSchema.parse(JSON.parse(x)),
5156
+ `Failed to parse 'OrLt' from JSON`,
5157
+ );
5158
+ }
5159
+
5160
+ /** @internal */
5161
+ export const OrGte$inboundSchema: z.ZodType<OrGte, z.ZodTypeDef, unknown> = z
5162
+ .object({
5163
+ gte: z.number(),
5164
+ });
5165
+
5166
+ /** @internal */
5167
+ export type OrGte$Outbound = {
5168
+ gte: number;
5169
+ };
5170
+
5171
+ /** @internal */
5172
+ export const OrGte$outboundSchema: z.ZodType<
5173
+ OrGte$Outbound,
5174
+ z.ZodTypeDef,
5175
+ OrGte
5176
+ > = z.object({
5177
+ gte: z.number(),
5178
+ });
5179
+
5180
+ /**
5181
+ * @internal
5182
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
5183
+ */
5184
+ export namespace OrGte$ {
5185
+ /** @deprecated use `OrGte$inboundSchema` instead. */
5186
+ export const inboundSchema = OrGte$inboundSchema;
5187
+ /** @deprecated use `OrGte$outboundSchema` instead. */
5188
+ export const outboundSchema = OrGte$outboundSchema;
5189
+ /** @deprecated use `OrGte$Outbound` instead. */
5190
+ export type Outbound = OrGte$Outbound;
5191
+ }
5192
+
5193
+ export function orGteToJSON(orGte: OrGte): string {
5194
+ return JSON.stringify(OrGte$outboundSchema.parse(orGte));
5195
+ }
5196
+
5197
+ export function orGteFromJSON(
5198
+ jsonString: string,
5199
+ ): SafeParseResult<OrGte, SDKValidationError> {
5200
+ return safeParse(
5201
+ jsonString,
5202
+ (x) => OrGte$inboundSchema.parse(JSON.parse(x)),
5203
+ `Failed to parse 'OrGte' from JSON`,
5204
+ );
5205
+ }
5206
+
5207
+ /** @internal */
5208
+ export const Or3$inboundSchema: z.ZodType<Or3, z.ZodTypeDef, unknown> = z
5209
+ .object({
5210
+ gt: z.number(),
5211
+ });
5212
+
5213
+ /** @internal */
5214
+ export type Or3$Outbound = {
5215
+ gt: number;
5216
+ };
5217
+
5218
+ /** @internal */
5219
+ export const Or3$outboundSchema: z.ZodType<Or3$Outbound, z.ZodTypeDef, Or3> = z
5220
+ .object({
5221
+ gt: z.number(),
5222
+ });
5223
+
5224
+ /**
5225
+ * @internal
5226
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
5227
+ */
5228
+ export namespace Or3$ {
5229
+ /** @deprecated use `Or3$inboundSchema` instead. */
5230
+ export const inboundSchema = Or3$inboundSchema;
5231
+ /** @deprecated use `Or3$outboundSchema` instead. */
5232
+ export const outboundSchema = Or3$outboundSchema;
5233
+ /** @deprecated use `Or3$Outbound` instead. */
5234
+ export type Outbound = Or3$Outbound;
5235
+ }
5236
+
5237
+ export function or3ToJSON(or3: Or3): string {
5238
+ return JSON.stringify(Or3$outboundSchema.parse(or3));
5239
+ }
5240
+
5241
+ export function or3FromJSON(
5242
+ jsonString: string,
5243
+ ): SafeParseResult<Or3, SDKValidationError> {
5244
+ return safeParse(
5245
+ jsonString,
5246
+ (x) => Or3$inboundSchema.parse(JSON.parse(x)),
5247
+ `Failed to parse 'Or3' from JSON`,
5248
+ );
5249
+ }
5250
+
5251
+ /** @internal */
5252
+ export const OrNe$inboundSchema: z.ZodType<OrNe, z.ZodTypeDef, unknown> = z
5253
+ .union([z.string(), z.number(), z.boolean()]);
5254
+
5255
+ /** @internal */
5256
+ export type OrNe$Outbound = string | number | boolean;
5257
+
5258
+ /** @internal */
5259
+ export const OrNe$outboundSchema: z.ZodType<OrNe$Outbound, z.ZodTypeDef, OrNe> =
5260
+ z.union([z.string(), z.number(), z.boolean()]);
5261
+
5262
+ /**
5263
+ * @internal
5264
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
5265
+ */
5266
+ export namespace OrNe$ {
5267
+ /** @deprecated use `OrNe$inboundSchema` instead. */
5268
+ export const inboundSchema = OrNe$inboundSchema;
5269
+ /** @deprecated use `OrNe$outboundSchema` instead. */
5270
+ export const outboundSchema = OrNe$outboundSchema;
5271
+ /** @deprecated use `OrNe$Outbound` instead. */
5272
+ export type Outbound = OrNe$Outbound;
5273
+ }
5274
+
5275
+ export function orNeToJSON(orNe: OrNe): string {
5276
+ return JSON.stringify(OrNe$outboundSchema.parse(orNe));
5277
+ }
5278
+
5279
+ export function orNeFromJSON(
5280
+ jsonString: string,
5281
+ ): SafeParseResult<OrNe, SDKValidationError> {
5282
+ return safeParse(
5283
+ jsonString,
5284
+ (x) => OrNe$inboundSchema.parse(JSON.parse(x)),
5285
+ `Failed to parse 'OrNe' from JSON`,
5286
+ );
5287
+ }
5288
+
5289
+ /** @internal */
5290
+ export const DeploymentsOrNe$inboundSchema: z.ZodType<
5291
+ DeploymentsOrNe,
5292
+ z.ZodTypeDef,
5293
+ unknown
5294
+ > = z.object({
5295
+ ne: z.union([z.string(), z.number(), z.boolean()]),
5296
+ });
5297
+
5298
+ /** @internal */
5299
+ export type DeploymentsOrNe$Outbound = {
5300
+ ne: string | number | boolean;
5301
+ };
5302
+
5303
+ /** @internal */
5304
+ export const DeploymentsOrNe$outboundSchema: z.ZodType<
5305
+ DeploymentsOrNe$Outbound,
5306
+ z.ZodTypeDef,
5307
+ DeploymentsOrNe
5308
+ > = z.object({
5309
+ ne: z.union([z.string(), z.number(), z.boolean()]),
5310
+ });
5311
+
5312
+ /**
5313
+ * @internal
5314
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
5315
+ */
5316
+ export namespace DeploymentsOrNe$ {
5317
+ /** @deprecated use `DeploymentsOrNe$inboundSchema` instead. */
5318
+ export const inboundSchema = DeploymentsOrNe$inboundSchema;
5319
+ /** @deprecated use `DeploymentsOrNe$outboundSchema` instead. */
5320
+ export const outboundSchema = DeploymentsOrNe$outboundSchema;
5321
+ /** @deprecated use `DeploymentsOrNe$Outbound` instead. */
5322
+ export type Outbound = DeploymentsOrNe$Outbound;
5323
+ }
5324
+
5325
+ export function deploymentsOrNeToJSON(
5326
+ deploymentsOrNe: DeploymentsOrNe,
5327
+ ): string {
5328
+ return JSON.stringify(DeploymentsOrNe$outboundSchema.parse(deploymentsOrNe));
5329
+ }
5330
+
5331
+ export function deploymentsOrNeFromJSON(
5332
+ jsonString: string,
5333
+ ): SafeParseResult<DeploymentsOrNe, SDKValidationError> {
5334
+ return safeParse(
5335
+ jsonString,
5336
+ (x) => DeploymentsOrNe$inboundSchema.parse(JSON.parse(x)),
5337
+ `Failed to parse 'DeploymentsOrNe' from JSON`,
5338
+ );
5339
+ }
5340
+
5341
+ /** @internal */
5342
+ export const OrEq$inboundSchema: z.ZodType<OrEq, z.ZodTypeDef, unknown> = z
5343
+ .union([z.string(), z.number(), z.boolean()]);
5344
+
5345
+ /** @internal */
5346
+ export type OrEq$Outbound = string | number | boolean;
5347
+
5348
+ /** @internal */
5349
+ export const OrEq$outboundSchema: z.ZodType<OrEq$Outbound, z.ZodTypeDef, OrEq> =
5350
+ z.union([z.string(), z.number(), z.boolean()]);
5351
+
5352
+ /**
5353
+ * @internal
5354
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
5355
+ */
5356
+ export namespace OrEq$ {
5357
+ /** @deprecated use `OrEq$inboundSchema` instead. */
5358
+ export const inboundSchema = OrEq$inboundSchema;
5359
+ /** @deprecated use `OrEq$outboundSchema` instead. */
5360
+ export const outboundSchema = OrEq$outboundSchema;
5361
+ /** @deprecated use `OrEq$Outbound` instead. */
5362
+ export type Outbound = OrEq$Outbound;
5363
+ }
5364
+
5365
+ export function orEqToJSON(orEq: OrEq): string {
5366
+ return JSON.stringify(OrEq$outboundSchema.parse(orEq));
5367
+ }
5368
+
5369
+ export function orEqFromJSON(
5370
+ jsonString: string,
5371
+ ): SafeParseResult<OrEq, SDKValidationError> {
5372
+ return safeParse(
5373
+ jsonString,
5374
+ (x) => OrEq$inboundSchema.parse(JSON.parse(x)),
5375
+ `Failed to parse 'OrEq' from JSON`,
5376
+ );
5377
+ }
5378
+
5379
+ /** @internal */
5380
+ export const DeploymentsOrEq$inboundSchema: z.ZodType<
5381
+ DeploymentsOrEq,
5382
+ z.ZodTypeDef,
5383
+ unknown
5384
+ > = z.object({
5385
+ eq: z.union([z.string(), z.number(), z.boolean()]),
5386
+ });
5387
+
5388
+ /** @internal */
5389
+ export type DeploymentsOrEq$Outbound = {
5390
+ eq: string | number | boolean;
5391
+ };
5392
+
5393
+ /** @internal */
5394
+ export const DeploymentsOrEq$outboundSchema: z.ZodType<
5395
+ DeploymentsOrEq$Outbound,
5396
+ z.ZodTypeDef,
5397
+ DeploymentsOrEq
5398
+ > = z.object({
5399
+ eq: z.union([z.string(), z.number(), z.boolean()]),
5400
+ });
5401
+
5402
+ /**
5403
+ * @internal
5404
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
5405
+ */
5406
+ export namespace DeploymentsOrEq$ {
5407
+ /** @deprecated use `DeploymentsOrEq$inboundSchema` instead. */
5408
+ export const inboundSchema = DeploymentsOrEq$inboundSchema;
5409
+ /** @deprecated use `DeploymentsOrEq$outboundSchema` instead. */
5410
+ export const outboundSchema = DeploymentsOrEq$outboundSchema;
5411
+ /** @deprecated use `DeploymentsOrEq$Outbound` instead. */
5412
+ export type Outbound = DeploymentsOrEq$Outbound;
5413
+ }
5414
+
5415
+ export function deploymentsOrEqToJSON(
5416
+ deploymentsOrEq: DeploymentsOrEq,
5417
+ ): string {
5418
+ return JSON.stringify(DeploymentsOrEq$outboundSchema.parse(deploymentsOrEq));
5419
+ }
5420
+
5421
+ export function deploymentsOrEqFromJSON(
5422
+ jsonString: string,
5423
+ ): SafeParseResult<DeploymentsOrEq, SDKValidationError> {
5424
+ return safeParse(
5425
+ jsonString,
5426
+ (x) => DeploymentsOrEq$inboundSchema.parse(JSON.parse(x)),
5427
+ `Failed to parse 'DeploymentsOrEq' from JSON`,
5428
+ );
5429
+ }
5430
+
5431
+ /** @internal */
5432
+ export const Or$inboundSchema: z.ZodType<Or, z.ZodTypeDef, unknown> = z.union([
5433
+ z.lazy(() => DeploymentsOrEq$inboundSchema),
5434
+ z.lazy(() => DeploymentsOrNe$inboundSchema),
5435
+ z.lazy(() => Or3$inboundSchema),
5436
+ z.lazy(() => OrGte$inboundSchema),
5437
+ z.lazy(() => OrLt$inboundSchema),
5438
+ z.lazy(() => OrLte$inboundSchema),
5439
+ z.lazy(() => DeploymentsOrIn$inboundSchema),
5440
+ z.lazy(() => DeploymentsOrNin$inboundSchema),
5441
+ z.lazy(() => OrExists$inboundSchema),
5442
+ ]);
5443
+
5444
+ /** @internal */
5445
+ export type Or$Outbound =
5446
+ | DeploymentsOrEq$Outbound
5447
+ | DeploymentsOrNe$Outbound
5448
+ | Or3$Outbound
5449
+ | OrGte$Outbound
5450
+ | OrLt$Outbound
5451
+ | OrLte$Outbound
5452
+ | DeploymentsOrIn$Outbound
5453
+ | DeploymentsOrNin$Outbound
5454
+ | OrExists$Outbound;
5455
+
5456
+ /** @internal */
5457
+ export const Or$outboundSchema: z.ZodType<Or$Outbound, z.ZodTypeDef, Or> = z
5458
+ .union([
5459
+ z.lazy(() => DeploymentsOrEq$outboundSchema),
5460
+ z.lazy(() => DeploymentsOrNe$outboundSchema),
5461
+ z.lazy(() => Or3$outboundSchema),
5462
+ z.lazy(() => OrGte$outboundSchema),
5463
+ z.lazy(() => OrLt$outboundSchema),
5464
+ z.lazy(() => OrLte$outboundSchema),
5465
+ z.lazy(() => DeploymentsOrIn$outboundSchema),
5466
+ z.lazy(() => DeploymentsOrNin$outboundSchema),
5467
+ z.lazy(() => OrExists$outboundSchema),
5468
+ ]);
5469
+
5470
+ /**
5471
+ * @internal
5472
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
5473
+ */
5474
+ export namespace Or$ {
5475
+ /** @deprecated use `Or$inboundSchema` instead. */
5476
+ export const inboundSchema = Or$inboundSchema;
5477
+ /** @deprecated use `Or$outboundSchema` instead. */
5478
+ export const outboundSchema = Or$outboundSchema;
5479
+ /** @deprecated use `Or$Outbound` instead. */
5480
+ export type Outbound = Or$Outbound;
5481
+ }
5482
+
5483
+ export function orToJSON(or: Or): string {
5484
+ return JSON.stringify(Or$outboundSchema.parse(or));
5485
+ }
5486
+
5487
+ export function orFromJSON(
5488
+ jsonString: string,
5489
+ ): SafeParseResult<Or, SDKValidationError> {
5490
+ return safeParse(
5491
+ jsonString,
5492
+ (x) => Or$inboundSchema.parse(JSON.parse(x)),
5493
+ `Failed to parse 'Or' from JSON`,
5494
+ );
5495
+ }
5496
+
5497
+ /** @internal */
5498
+ export const KnowledgeFilterOr$inboundSchema: z.ZodType<
5499
+ KnowledgeFilterOr,
5500
+ z.ZodTypeDef,
5501
+ unknown
5502
+ > = z.object({
5503
+ or: z.array(
5504
+ z.record(z.union([
5505
+ z.lazy(() => DeploymentsOrEq$inboundSchema),
5506
+ z.lazy(() =>
5507
+ DeploymentsOrNe$inboundSchema
5508
+ ),
5509
+ z.lazy(() => Or3$inboundSchema),
5510
+ z.lazy(() => OrGte$inboundSchema),
5511
+ z.lazy(() => OrLt$inboundSchema),
5512
+ z.lazy(() => OrLte$inboundSchema),
5513
+ z.lazy(() => DeploymentsOrIn$inboundSchema),
5514
+ z.lazy(() => DeploymentsOrNin$inboundSchema),
5515
+ z.lazy(() => OrExists$inboundSchema),
5516
+ ])),
5517
+ ),
5518
+ });
5519
+
5520
+ /** @internal */
5521
+ export type KnowledgeFilterOr$Outbound = {
5522
+ or: Array<
5523
+ {
5524
+ [k: string]:
5525
+ | DeploymentsOrEq$Outbound
5526
+ | DeploymentsOrNe$Outbound
5527
+ | Or3$Outbound
5528
+ | OrGte$Outbound
5529
+ | OrLt$Outbound
5530
+ | OrLte$Outbound
5531
+ | DeploymentsOrIn$Outbound
5532
+ | DeploymentsOrNin$Outbound
5533
+ | OrExists$Outbound;
5534
+ }
5535
+ >;
5536
+ };
5537
+
5538
+ /** @internal */
5539
+ export const KnowledgeFilterOr$outboundSchema: z.ZodType<
5540
+ KnowledgeFilterOr$Outbound,
5541
+ z.ZodTypeDef,
5542
+ KnowledgeFilterOr
5543
+ > = z.object({
5544
+ or: z.array(
5545
+ z.record(z.union([
5546
+ z.lazy(() => DeploymentsOrEq$outboundSchema),
5547
+ z.lazy(() =>
5548
+ DeploymentsOrNe$outboundSchema
5549
+ ),
5550
+ z.lazy(() => Or3$outboundSchema),
5551
+ z.lazy(() => OrGte$outboundSchema),
5552
+ z.lazy(() => OrLt$outboundSchema),
5553
+ z.lazy(() => OrLte$outboundSchema),
5554
+ z.lazy(() => DeploymentsOrIn$outboundSchema),
5555
+ z.lazy(() => DeploymentsOrNin$outboundSchema),
5556
+ z.lazy(() => OrExists$outboundSchema),
5557
+ ])),
5558
+ ),
5559
+ });
5560
+
5561
+ /**
5562
+ * @internal
5563
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
5564
+ */
5565
+ export namespace KnowledgeFilterOr$ {
5566
+ /** @deprecated use `KnowledgeFilterOr$inboundSchema` instead. */
5567
+ export const inboundSchema = KnowledgeFilterOr$inboundSchema;
5568
+ /** @deprecated use `KnowledgeFilterOr$outboundSchema` instead. */
5569
+ export const outboundSchema = KnowledgeFilterOr$outboundSchema;
5570
+ /** @deprecated use `KnowledgeFilterOr$Outbound` instead. */
5571
+ export type Outbound = KnowledgeFilterOr$Outbound;
5572
+ }
5573
+
5574
+ export function knowledgeFilterOrToJSON(
5575
+ knowledgeFilterOr: KnowledgeFilterOr,
5576
+ ): string {
5577
+ return JSON.stringify(
5578
+ KnowledgeFilterOr$outboundSchema.parse(knowledgeFilterOr),
5579
+ );
5580
+ }
5581
+
5582
+ export function knowledgeFilterOrFromJSON(
5583
+ jsonString: string,
5584
+ ): SafeParseResult<KnowledgeFilterOr, SDKValidationError> {
5585
+ return safeParse(
5586
+ jsonString,
5587
+ (x) => KnowledgeFilterOr$inboundSchema.parse(JSON.parse(x)),
5588
+ `Failed to parse 'KnowledgeFilterOr' from JSON`,
5589
+ );
5590
+ }
5591
+
5592
+ /** @internal */
5593
+ export const AndExists$inboundSchema: z.ZodType<
5594
+ AndExists,
5595
+ z.ZodTypeDef,
5596
+ unknown
5597
+ > = z.object({
5598
+ exists: z.boolean(),
5599
+ });
5600
+
5601
+ /** @internal */
5602
+ export type AndExists$Outbound = {
5603
+ exists: boolean;
5604
+ };
5605
+
5606
+ /** @internal */
5607
+ export const AndExists$outboundSchema: z.ZodType<
5608
+ AndExists$Outbound,
5609
+ z.ZodTypeDef,
5610
+ AndExists
5611
+ > = z.object({
5612
+ exists: z.boolean(),
5613
+ });
5614
+
5615
+ /**
5616
+ * @internal
5617
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
5618
+ */
5619
+ export namespace AndExists$ {
5620
+ /** @deprecated use `AndExists$inboundSchema` instead. */
5621
+ export const inboundSchema = AndExists$inboundSchema;
5622
+ /** @deprecated use `AndExists$outboundSchema` instead. */
5623
+ export const outboundSchema = AndExists$outboundSchema;
5624
+ /** @deprecated use `AndExists$Outbound` instead. */
5625
+ export type Outbound = AndExists$Outbound;
5626
+ }
5627
+
5628
+ export function andExistsToJSON(andExists: AndExists): string {
5629
+ return JSON.stringify(AndExists$outboundSchema.parse(andExists));
5630
+ }
5631
+
5632
+ export function andExistsFromJSON(
5633
+ jsonString: string,
5634
+ ): SafeParseResult<AndExists, SDKValidationError> {
5635
+ return safeParse(
5636
+ jsonString,
5637
+ (x) => AndExists$inboundSchema.parse(JSON.parse(x)),
5638
+ `Failed to parse 'AndExists' from JSON`,
5639
+ );
5640
+ }
5641
+
5642
+ /** @internal */
5643
+ export const AndNin$inboundSchema: z.ZodType<AndNin, z.ZodTypeDef, unknown> = z
5644
+ .union([z.string(), z.number(), z.boolean()]);
5645
+
5646
+ /** @internal */
5647
+ export type AndNin$Outbound = string | number | boolean;
5648
+
5649
+ /** @internal */
5650
+ export const AndNin$outboundSchema: z.ZodType<
5651
+ AndNin$Outbound,
5652
+ z.ZodTypeDef,
5653
+ AndNin
5654
+ > = z.union([z.string(), z.number(), z.boolean()]);
5655
+
5656
+ /**
5657
+ * @internal
5658
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
5659
+ */
5660
+ export namespace AndNin$ {
5661
+ /** @deprecated use `AndNin$inboundSchema` instead. */
5662
+ export const inboundSchema = AndNin$inboundSchema;
5663
+ /** @deprecated use `AndNin$outboundSchema` instead. */
5664
+ export const outboundSchema = AndNin$outboundSchema;
5665
+ /** @deprecated use `AndNin$Outbound` instead. */
5666
+ export type Outbound = AndNin$Outbound;
5667
+ }
5668
+
5669
+ export function andNinToJSON(andNin: AndNin): string {
5670
+ return JSON.stringify(AndNin$outboundSchema.parse(andNin));
5671
+ }
5672
+
5673
+ export function andNinFromJSON(
5674
+ jsonString: string,
5675
+ ): SafeParseResult<AndNin, SDKValidationError> {
5676
+ return safeParse(
5677
+ jsonString,
5678
+ (x) => AndNin$inboundSchema.parse(JSON.parse(x)),
5679
+ `Failed to parse 'AndNin' from JSON`,
5680
+ );
5681
+ }
5682
+
5683
+ /** @internal */
5684
+ export const DeploymentsAndNin$inboundSchema: z.ZodType<
5685
+ DeploymentsAndNin,
5686
+ z.ZodTypeDef,
5687
+ unknown
5688
+ > = z.object({
5689
+ nin: z.array(z.union([z.string(), z.number(), z.boolean()])),
5690
+ });
5691
+
5692
+ /** @internal */
5693
+ export type DeploymentsAndNin$Outbound = {
5694
+ nin: Array<string | number | boolean>;
5695
+ };
5696
+
5697
+ /** @internal */
5698
+ export const DeploymentsAndNin$outboundSchema: z.ZodType<
5699
+ DeploymentsAndNin$Outbound,
5700
+ z.ZodTypeDef,
5701
+ DeploymentsAndNin
5702
+ > = z.object({
5703
+ nin: z.array(z.union([z.string(), z.number(), z.boolean()])),
5704
+ });
5705
+
5706
+ /**
5707
+ * @internal
5708
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
5709
+ */
5710
+ export namespace DeploymentsAndNin$ {
5711
+ /** @deprecated use `DeploymentsAndNin$inboundSchema` instead. */
5712
+ export const inboundSchema = DeploymentsAndNin$inboundSchema;
5713
+ /** @deprecated use `DeploymentsAndNin$outboundSchema` instead. */
5714
+ export const outboundSchema = DeploymentsAndNin$outboundSchema;
5715
+ /** @deprecated use `DeploymentsAndNin$Outbound` instead. */
5716
+ export type Outbound = DeploymentsAndNin$Outbound;
5717
+ }
5718
+
5719
+ export function deploymentsAndNinToJSON(
5720
+ deploymentsAndNin: DeploymentsAndNin,
5721
+ ): string {
5722
+ return JSON.stringify(
5723
+ DeploymentsAndNin$outboundSchema.parse(deploymentsAndNin),
5724
+ );
5725
+ }
5726
+
5727
+ export function deploymentsAndNinFromJSON(
5728
+ jsonString: string,
5729
+ ): SafeParseResult<DeploymentsAndNin, SDKValidationError> {
5730
+ return safeParse(
5731
+ jsonString,
5732
+ (x) => DeploymentsAndNin$inboundSchema.parse(JSON.parse(x)),
5733
+ `Failed to parse 'DeploymentsAndNin' from JSON`,
5734
+ );
5735
+ }
5736
+
5737
+ /** @internal */
5738
+ export const AndIn$inboundSchema: z.ZodType<AndIn, z.ZodTypeDef, unknown> = z
5739
+ .union([z.string(), z.number(), z.boolean()]);
5740
+
5741
+ /** @internal */
5742
+ export type AndIn$Outbound = string | number | boolean;
5743
+
5744
+ /** @internal */
5745
+ export const AndIn$outboundSchema: z.ZodType<
5746
+ AndIn$Outbound,
5747
+ z.ZodTypeDef,
5748
+ AndIn
5749
+ > = z.union([z.string(), z.number(), z.boolean()]);
5750
+
5751
+ /**
5752
+ * @internal
5753
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
5754
+ */
5755
+ export namespace AndIn$ {
5756
+ /** @deprecated use `AndIn$inboundSchema` instead. */
5757
+ export const inboundSchema = AndIn$inboundSchema;
5758
+ /** @deprecated use `AndIn$outboundSchema` instead. */
5759
+ export const outboundSchema = AndIn$outboundSchema;
5760
+ /** @deprecated use `AndIn$Outbound` instead. */
5761
+ export type Outbound = AndIn$Outbound;
5762
+ }
5763
+
5764
+ export function andInToJSON(andIn: AndIn): string {
5765
+ return JSON.stringify(AndIn$outboundSchema.parse(andIn));
5766
+ }
5767
+
5768
+ export function andInFromJSON(
5769
+ jsonString: string,
5770
+ ): SafeParseResult<AndIn, SDKValidationError> {
5771
+ return safeParse(
5772
+ jsonString,
5773
+ (x) => AndIn$inboundSchema.parse(JSON.parse(x)),
5774
+ `Failed to parse 'AndIn' from JSON`,
5775
+ );
5776
+ }
5777
+
5778
+ /** @internal */
5779
+ export const DeploymentsAndIn$inboundSchema: z.ZodType<
5780
+ DeploymentsAndIn,
5781
+ z.ZodTypeDef,
5782
+ unknown
5783
+ > = z.object({
5784
+ in: z.array(z.union([z.string(), z.number(), z.boolean()])),
5785
+ });
5786
+
5787
+ /** @internal */
5788
+ export type DeploymentsAndIn$Outbound = {
5789
+ in: Array<string | number | boolean>;
5790
+ };
5791
+
5792
+ /** @internal */
5793
+ export const DeploymentsAndIn$outboundSchema: z.ZodType<
5794
+ DeploymentsAndIn$Outbound,
5795
+ z.ZodTypeDef,
5796
+ DeploymentsAndIn
5797
+ > = z.object({
5798
+ in: z.array(z.union([z.string(), z.number(), z.boolean()])),
5799
+ });
5800
+
5801
+ /**
5802
+ * @internal
5803
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
5804
+ */
5805
+ export namespace DeploymentsAndIn$ {
5806
+ /** @deprecated use `DeploymentsAndIn$inboundSchema` instead. */
5807
+ export const inboundSchema = DeploymentsAndIn$inboundSchema;
5808
+ /** @deprecated use `DeploymentsAndIn$outboundSchema` instead. */
5809
+ export const outboundSchema = DeploymentsAndIn$outboundSchema;
5810
+ /** @deprecated use `DeploymentsAndIn$Outbound` instead. */
5811
+ export type Outbound = DeploymentsAndIn$Outbound;
5812
+ }
5813
+
5814
+ export function deploymentsAndInToJSON(
5815
+ deploymentsAndIn: DeploymentsAndIn,
5816
+ ): string {
5817
+ return JSON.stringify(
5818
+ DeploymentsAndIn$outboundSchema.parse(deploymentsAndIn),
5819
+ );
5820
+ }
5821
+
5822
+ export function deploymentsAndInFromJSON(
5823
+ jsonString: string,
5824
+ ): SafeParseResult<DeploymentsAndIn, SDKValidationError> {
5825
+ return safeParse(
5826
+ jsonString,
5827
+ (x) => DeploymentsAndIn$inboundSchema.parse(JSON.parse(x)),
5828
+ `Failed to parse 'DeploymentsAndIn' from JSON`,
5829
+ );
5830
+ }
5831
+
5832
+ /** @internal */
5833
+ export const AndLte$inboundSchema: z.ZodType<AndLte, z.ZodTypeDef, unknown> = z
5834
+ .object({
5835
+ lte: z.number(),
5836
+ });
5837
+
5838
+ /** @internal */
5839
+ export type AndLte$Outbound = {
5840
+ lte: number;
5841
+ };
5842
+
5843
+ /** @internal */
5844
+ export const AndLte$outboundSchema: z.ZodType<
5845
+ AndLte$Outbound,
5846
+ z.ZodTypeDef,
5847
+ AndLte
5848
+ > = z.object({
5849
+ lte: z.number(),
5850
+ });
5851
+
5852
+ /**
5853
+ * @internal
5854
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
5855
+ */
5856
+ export namespace AndLte$ {
5857
+ /** @deprecated use `AndLte$inboundSchema` instead. */
5858
+ export const inboundSchema = AndLte$inboundSchema;
5859
+ /** @deprecated use `AndLte$outboundSchema` instead. */
5860
+ export const outboundSchema = AndLte$outboundSchema;
5861
+ /** @deprecated use `AndLte$Outbound` instead. */
5862
+ export type Outbound = AndLte$Outbound;
5863
+ }
5864
+
5865
+ export function andLteToJSON(andLte: AndLte): string {
5866
+ return JSON.stringify(AndLte$outboundSchema.parse(andLte));
5867
+ }
5868
+
5869
+ export function andLteFromJSON(
5870
+ jsonString: string,
5871
+ ): SafeParseResult<AndLte, SDKValidationError> {
5872
+ return safeParse(
5873
+ jsonString,
5874
+ (x) => AndLte$inboundSchema.parse(JSON.parse(x)),
5875
+ `Failed to parse 'AndLte' from JSON`,
5876
+ );
5877
+ }
5878
+
5879
+ /** @internal */
5880
+ export const AndLt$inboundSchema: z.ZodType<AndLt, z.ZodTypeDef, unknown> = z
5881
+ .object({
5882
+ lt: z.number(),
5883
+ });
5884
+
5885
+ /** @internal */
5886
+ export type AndLt$Outbound = {
5887
+ lt: number;
5888
+ };
5889
+
5890
+ /** @internal */
5891
+ export const AndLt$outboundSchema: z.ZodType<
5892
+ AndLt$Outbound,
5893
+ z.ZodTypeDef,
5894
+ AndLt
5895
+ > = z.object({
5896
+ lt: z.number(),
5897
+ });
5898
+
5899
+ /**
5900
+ * @internal
5901
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
5902
+ */
5903
+ export namespace AndLt$ {
5904
+ /** @deprecated use `AndLt$inboundSchema` instead. */
5905
+ export const inboundSchema = AndLt$inboundSchema;
5906
+ /** @deprecated use `AndLt$outboundSchema` instead. */
5907
+ export const outboundSchema = AndLt$outboundSchema;
5908
+ /** @deprecated use `AndLt$Outbound` instead. */
5909
+ export type Outbound = AndLt$Outbound;
5910
+ }
5911
+
5912
+ export function andLtToJSON(andLt: AndLt): string {
5913
+ return JSON.stringify(AndLt$outboundSchema.parse(andLt));
5914
+ }
5915
+
5916
+ export function andLtFromJSON(
5917
+ jsonString: string,
5918
+ ): SafeParseResult<AndLt, SDKValidationError> {
5919
+ return safeParse(
5920
+ jsonString,
5921
+ (x) => AndLt$inboundSchema.parse(JSON.parse(x)),
5922
+ `Failed to parse 'AndLt' from JSON`,
5923
+ );
5924
+ }
5925
+
5926
+ /** @internal */
5927
+ export const AndGte$inboundSchema: z.ZodType<AndGte, z.ZodTypeDef, unknown> = z
5928
+ .object({
5929
+ gte: z.number(),
5930
+ });
5931
+
5932
+ /** @internal */
5933
+ export type AndGte$Outbound = {
5934
+ gte: number;
5935
+ };
5936
+
5937
+ /** @internal */
5938
+ export const AndGte$outboundSchema: z.ZodType<
5939
+ AndGte$Outbound,
5940
+ z.ZodTypeDef,
5941
+ AndGte
5942
+ > = z.object({
5943
+ gte: z.number(),
5944
+ });
5945
+
5946
+ /**
5947
+ * @internal
5948
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
5949
+ */
5950
+ export namespace AndGte$ {
5951
+ /** @deprecated use `AndGte$inboundSchema` instead. */
5952
+ export const inboundSchema = AndGte$inboundSchema;
5953
+ /** @deprecated use `AndGte$outboundSchema` instead. */
5954
+ export const outboundSchema = AndGte$outboundSchema;
5955
+ /** @deprecated use `AndGte$Outbound` instead. */
5956
+ export type Outbound = AndGte$Outbound;
5957
+ }
5958
+
5959
+ export function andGteToJSON(andGte: AndGte): string {
5960
+ return JSON.stringify(AndGte$outboundSchema.parse(andGte));
5961
+ }
5962
+
5963
+ export function andGteFromJSON(
5964
+ jsonString: string,
5965
+ ): SafeParseResult<AndGte, SDKValidationError> {
5966
+ return safeParse(
5967
+ jsonString,
5968
+ (x) => AndGte$inboundSchema.parse(JSON.parse(x)),
5969
+ `Failed to parse 'AndGte' from JSON`,
5970
+ );
5971
+ }
5972
+
5973
+ /** @internal */
5974
+ export const And3$inboundSchema: z.ZodType<And3, z.ZodTypeDef, unknown> = z
5975
+ .object({
5976
+ gt: z.number(),
5977
+ });
5978
+
5979
+ /** @internal */
5980
+ export type And3$Outbound = {
5981
+ gt: number;
5982
+ };
5983
+
5984
+ /** @internal */
5985
+ export const And3$outboundSchema: z.ZodType<And3$Outbound, z.ZodTypeDef, And3> =
5986
+ z.object({
5987
+ gt: z.number(),
5988
+ });
5989
+
5990
+ /**
5991
+ * @internal
5992
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
5993
+ */
5994
+ export namespace And3$ {
5995
+ /** @deprecated use `And3$inboundSchema` instead. */
5996
+ export const inboundSchema = And3$inboundSchema;
5997
+ /** @deprecated use `And3$outboundSchema` instead. */
5998
+ export const outboundSchema = And3$outboundSchema;
5999
+ /** @deprecated use `And3$Outbound` instead. */
6000
+ export type Outbound = And3$Outbound;
6001
+ }
6002
+
6003
+ export function and3ToJSON(and3: And3): string {
6004
+ return JSON.stringify(And3$outboundSchema.parse(and3));
6005
+ }
6006
+
6007
+ export function and3FromJSON(
6008
+ jsonString: string,
6009
+ ): SafeParseResult<And3, SDKValidationError> {
6010
+ return safeParse(
6011
+ jsonString,
6012
+ (x) => And3$inboundSchema.parse(JSON.parse(x)),
6013
+ `Failed to parse 'And3' from JSON`,
6014
+ );
6015
+ }
6016
+
6017
+ /** @internal */
6018
+ export const AndNe$inboundSchema: z.ZodType<AndNe, z.ZodTypeDef, unknown> = z
6019
+ .union([z.string(), z.number(), z.boolean()]);
6020
+
6021
+ /** @internal */
6022
+ export type AndNe$Outbound = string | number | boolean;
6023
+
6024
+ /** @internal */
6025
+ export const AndNe$outboundSchema: z.ZodType<
6026
+ AndNe$Outbound,
6027
+ z.ZodTypeDef,
6028
+ AndNe
6029
+ > = z.union([z.string(), z.number(), z.boolean()]);
6030
+
6031
+ /**
6032
+ * @internal
6033
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6034
+ */
6035
+ export namespace AndNe$ {
6036
+ /** @deprecated use `AndNe$inboundSchema` instead. */
6037
+ export const inboundSchema = AndNe$inboundSchema;
6038
+ /** @deprecated use `AndNe$outboundSchema` instead. */
6039
+ export const outboundSchema = AndNe$outboundSchema;
6040
+ /** @deprecated use `AndNe$Outbound` instead. */
6041
+ export type Outbound = AndNe$Outbound;
6042
+ }
6043
+
6044
+ export function andNeToJSON(andNe: AndNe): string {
6045
+ return JSON.stringify(AndNe$outboundSchema.parse(andNe));
6046
+ }
6047
+
6048
+ export function andNeFromJSON(
6049
+ jsonString: string,
6050
+ ): SafeParseResult<AndNe, SDKValidationError> {
6051
+ return safeParse(
6052
+ jsonString,
6053
+ (x) => AndNe$inboundSchema.parse(JSON.parse(x)),
6054
+ `Failed to parse 'AndNe' from JSON`,
6055
+ );
6056
+ }
6057
+
6058
+ /** @internal */
6059
+ export const DeploymentsAndNe$inboundSchema: z.ZodType<
6060
+ DeploymentsAndNe,
6061
+ z.ZodTypeDef,
6062
+ unknown
6063
+ > = z.object({
6064
+ ne: z.union([z.string(), z.number(), z.boolean()]),
6065
+ });
6066
+
6067
+ /** @internal */
6068
+ export type DeploymentsAndNe$Outbound = {
6069
+ ne: string | number | boolean;
6070
+ };
6071
+
6072
+ /** @internal */
6073
+ export const DeploymentsAndNe$outboundSchema: z.ZodType<
6074
+ DeploymentsAndNe$Outbound,
6075
+ z.ZodTypeDef,
6076
+ DeploymentsAndNe
6077
+ > = z.object({
6078
+ ne: z.union([z.string(), z.number(), z.boolean()]),
6079
+ });
6080
+
6081
+ /**
6082
+ * @internal
6083
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6084
+ */
6085
+ export namespace DeploymentsAndNe$ {
6086
+ /** @deprecated use `DeploymentsAndNe$inboundSchema` instead. */
6087
+ export const inboundSchema = DeploymentsAndNe$inboundSchema;
6088
+ /** @deprecated use `DeploymentsAndNe$outboundSchema` instead. */
6089
+ export const outboundSchema = DeploymentsAndNe$outboundSchema;
6090
+ /** @deprecated use `DeploymentsAndNe$Outbound` instead. */
6091
+ export type Outbound = DeploymentsAndNe$Outbound;
6092
+ }
6093
+
6094
+ export function deploymentsAndNeToJSON(
6095
+ deploymentsAndNe: DeploymentsAndNe,
6096
+ ): string {
6097
+ return JSON.stringify(
6098
+ DeploymentsAndNe$outboundSchema.parse(deploymentsAndNe),
6099
+ );
6100
+ }
6101
+
6102
+ export function deploymentsAndNeFromJSON(
6103
+ jsonString: string,
6104
+ ): SafeParseResult<DeploymentsAndNe, SDKValidationError> {
6105
+ return safeParse(
6106
+ jsonString,
6107
+ (x) => DeploymentsAndNe$inboundSchema.parse(JSON.parse(x)),
6108
+ `Failed to parse 'DeploymentsAndNe' from JSON`,
6109
+ );
6110
+ }
6111
+
6112
+ /** @internal */
6113
+ export const AndEq$inboundSchema: z.ZodType<AndEq, z.ZodTypeDef, unknown> = z
6114
+ .union([z.string(), z.number(), z.boolean()]);
6115
+
6116
+ /** @internal */
6117
+ export type AndEq$Outbound = string | number | boolean;
6118
+
6119
+ /** @internal */
6120
+ export const AndEq$outboundSchema: z.ZodType<
6121
+ AndEq$Outbound,
6122
+ z.ZodTypeDef,
6123
+ AndEq
6124
+ > = z.union([z.string(), z.number(), z.boolean()]);
6125
+
6126
+ /**
6127
+ * @internal
6128
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6129
+ */
6130
+ export namespace AndEq$ {
6131
+ /** @deprecated use `AndEq$inboundSchema` instead. */
6132
+ export const inboundSchema = AndEq$inboundSchema;
6133
+ /** @deprecated use `AndEq$outboundSchema` instead. */
6134
+ export const outboundSchema = AndEq$outboundSchema;
6135
+ /** @deprecated use `AndEq$Outbound` instead. */
6136
+ export type Outbound = AndEq$Outbound;
6137
+ }
6138
+
6139
+ export function andEqToJSON(andEq: AndEq): string {
6140
+ return JSON.stringify(AndEq$outboundSchema.parse(andEq));
6141
+ }
6142
+
6143
+ export function andEqFromJSON(
6144
+ jsonString: string,
6145
+ ): SafeParseResult<AndEq, SDKValidationError> {
6146
+ return safeParse(
6147
+ jsonString,
6148
+ (x) => AndEq$inboundSchema.parse(JSON.parse(x)),
6149
+ `Failed to parse 'AndEq' from JSON`,
6150
+ );
6151
+ }
6152
+
6153
+ /** @internal */
6154
+ export const DeploymentsAndEq$inboundSchema: z.ZodType<
6155
+ DeploymentsAndEq,
6156
+ z.ZodTypeDef,
6157
+ unknown
6158
+ > = z.object({
6159
+ eq: z.union([z.string(), z.number(), z.boolean()]),
6160
+ });
6161
+
6162
+ /** @internal */
6163
+ export type DeploymentsAndEq$Outbound = {
6164
+ eq: string | number | boolean;
6165
+ };
6166
+
6167
+ /** @internal */
6168
+ export const DeploymentsAndEq$outboundSchema: z.ZodType<
6169
+ DeploymentsAndEq$Outbound,
6170
+ z.ZodTypeDef,
6171
+ DeploymentsAndEq
6172
+ > = z.object({
6173
+ eq: z.union([z.string(), z.number(), z.boolean()]),
6174
+ });
6175
+
6176
+ /**
6177
+ * @internal
6178
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6179
+ */
6180
+ export namespace DeploymentsAndEq$ {
6181
+ /** @deprecated use `DeploymentsAndEq$inboundSchema` instead. */
6182
+ export const inboundSchema = DeploymentsAndEq$inboundSchema;
6183
+ /** @deprecated use `DeploymentsAndEq$outboundSchema` instead. */
6184
+ export const outboundSchema = DeploymentsAndEq$outboundSchema;
6185
+ /** @deprecated use `DeploymentsAndEq$Outbound` instead. */
6186
+ export type Outbound = DeploymentsAndEq$Outbound;
6187
+ }
6188
+
6189
+ export function deploymentsAndEqToJSON(
6190
+ deploymentsAndEq: DeploymentsAndEq,
6191
+ ): string {
6192
+ return JSON.stringify(
6193
+ DeploymentsAndEq$outboundSchema.parse(deploymentsAndEq),
6194
+ );
6195
+ }
6196
+
6197
+ export function deploymentsAndEqFromJSON(
6198
+ jsonString: string,
6199
+ ): SafeParseResult<DeploymentsAndEq, SDKValidationError> {
6200
+ return safeParse(
6201
+ jsonString,
6202
+ (x) => DeploymentsAndEq$inboundSchema.parse(JSON.parse(x)),
6203
+ `Failed to parse 'DeploymentsAndEq' from JSON`,
6204
+ );
6205
+ }
6206
+
6207
+ /** @internal */
6208
+ export const And$inboundSchema: z.ZodType<And, z.ZodTypeDef, unknown> = z.union(
6209
+ [
6210
+ z.lazy(() => DeploymentsAndEq$inboundSchema),
6211
+ z.lazy(() => DeploymentsAndNe$inboundSchema),
6212
+ z.lazy(() => And3$inboundSchema),
6213
+ z.lazy(() => AndGte$inboundSchema),
6214
+ z.lazy(() => AndLt$inboundSchema),
6215
+ z.lazy(() => AndLte$inboundSchema),
6216
+ z.lazy(() => DeploymentsAndIn$inboundSchema),
6217
+ z.lazy(() => DeploymentsAndNin$inboundSchema),
6218
+ z.lazy(() => AndExists$inboundSchema),
6219
+ ],
6220
+ );
6221
+
6222
+ /** @internal */
6223
+ export type And$Outbound =
6224
+ | DeploymentsAndEq$Outbound
6225
+ | DeploymentsAndNe$Outbound
6226
+ | And3$Outbound
6227
+ | AndGte$Outbound
6228
+ | AndLt$Outbound
6229
+ | AndLte$Outbound
6230
+ | DeploymentsAndIn$Outbound
6231
+ | DeploymentsAndNin$Outbound
6232
+ | AndExists$Outbound;
6233
+
6234
+ /** @internal */
6235
+ export const And$outboundSchema: z.ZodType<And$Outbound, z.ZodTypeDef, And> = z
6236
+ .union([
6237
+ z.lazy(() => DeploymentsAndEq$outboundSchema),
6238
+ z.lazy(() => DeploymentsAndNe$outboundSchema),
6239
+ z.lazy(() => And3$outboundSchema),
6240
+ z.lazy(() => AndGte$outboundSchema),
6241
+ z.lazy(() => AndLt$outboundSchema),
6242
+ z.lazy(() => AndLte$outboundSchema),
6243
+ z.lazy(() => DeploymentsAndIn$outboundSchema),
6244
+ z.lazy(() => DeploymentsAndNin$outboundSchema),
6245
+ z.lazy(() => AndExists$outboundSchema),
6246
+ ]);
6247
+
6248
+ /**
6249
+ * @internal
6250
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6251
+ */
6252
+ export namespace And$ {
6253
+ /** @deprecated use `And$inboundSchema` instead. */
6254
+ export const inboundSchema = And$inboundSchema;
6255
+ /** @deprecated use `And$outboundSchema` instead. */
6256
+ export const outboundSchema = And$outboundSchema;
6257
+ /** @deprecated use `And$Outbound` instead. */
6258
+ export type Outbound = And$Outbound;
6259
+ }
6260
+
6261
+ export function andToJSON(and: And): string {
6262
+ return JSON.stringify(And$outboundSchema.parse(and));
6263
+ }
6264
+
6265
+ export function andFromJSON(
6266
+ jsonString: string,
6267
+ ): SafeParseResult<And, SDKValidationError> {
6268
+ return safeParse(
6269
+ jsonString,
6270
+ (x) => And$inboundSchema.parse(JSON.parse(x)),
6271
+ `Failed to parse 'And' from JSON`,
6272
+ );
6273
+ }
6274
+
6275
+ /** @internal */
6276
+ export const KnowledgeFilterAnd$inboundSchema: z.ZodType<
6277
+ KnowledgeFilterAnd,
6278
+ z.ZodTypeDef,
6279
+ unknown
6280
+ > = z.object({
6281
+ and: z.array(
6282
+ z.record(z.union([
6283
+ z.lazy(() => DeploymentsAndEq$inboundSchema),
6284
+ z.lazy(() =>
6285
+ DeploymentsAndNe$inboundSchema
6286
+ ),
6287
+ z.lazy(() => And3$inboundSchema),
6288
+ z.lazy(() => AndGte$inboundSchema),
6289
+ z.lazy(() => AndLt$inboundSchema),
6290
+ z.lazy(() => AndLte$inboundSchema),
6291
+ z.lazy(() => DeploymentsAndIn$inboundSchema),
6292
+ z.lazy(() => DeploymentsAndNin$inboundSchema),
6293
+ z.lazy(() => AndExists$inboundSchema),
6294
+ ])),
6295
+ ),
6296
+ });
6297
+
6298
+ /** @internal */
6299
+ export type KnowledgeFilterAnd$Outbound = {
6300
+ and: Array<
6301
+ {
6302
+ [k: string]:
6303
+ | DeploymentsAndEq$Outbound
6304
+ | DeploymentsAndNe$Outbound
6305
+ | And3$Outbound
6306
+ | AndGte$Outbound
6307
+ | AndLt$Outbound
6308
+ | AndLte$Outbound
6309
+ | DeploymentsAndIn$Outbound
6310
+ | DeploymentsAndNin$Outbound
6311
+ | AndExists$Outbound;
6312
+ }
6313
+ >;
6314
+ };
6315
+
6316
+ /** @internal */
6317
+ export const KnowledgeFilterAnd$outboundSchema: z.ZodType<
6318
+ KnowledgeFilterAnd$Outbound,
6319
+ z.ZodTypeDef,
6320
+ KnowledgeFilterAnd
6321
+ > = z.object({
6322
+ and: z.array(
6323
+ z.record(z.union([
6324
+ z.lazy(() => DeploymentsAndEq$outboundSchema),
6325
+ z.lazy(() =>
6326
+ DeploymentsAndNe$outboundSchema
6327
+ ),
6328
+ z.lazy(() => And3$outboundSchema),
6329
+ z.lazy(() => AndGte$outboundSchema),
6330
+ z.lazy(() => AndLt$outboundSchema),
6331
+ z.lazy(() => AndLte$outboundSchema),
6332
+ z.lazy(() => DeploymentsAndIn$outboundSchema),
6333
+ z.lazy(() => DeploymentsAndNin$outboundSchema),
6334
+ z.lazy(() => AndExists$outboundSchema),
6335
+ ])),
6336
+ ),
6337
+ });
6338
+
6339
+ /**
6340
+ * @internal
6341
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6342
+ */
6343
+ export namespace KnowledgeFilterAnd$ {
6344
+ /** @deprecated use `KnowledgeFilterAnd$inboundSchema` instead. */
6345
+ export const inboundSchema = KnowledgeFilterAnd$inboundSchema;
6346
+ /** @deprecated use `KnowledgeFilterAnd$outboundSchema` instead. */
6347
+ export const outboundSchema = KnowledgeFilterAnd$outboundSchema;
6348
+ /** @deprecated use `KnowledgeFilterAnd$Outbound` instead. */
6349
+ export type Outbound = KnowledgeFilterAnd$Outbound;
6350
+ }
6351
+
6352
+ export function knowledgeFilterAndToJSON(
6353
+ knowledgeFilterAnd: KnowledgeFilterAnd,
6354
+ ): string {
6355
+ return JSON.stringify(
6356
+ KnowledgeFilterAnd$outboundSchema.parse(knowledgeFilterAnd),
6357
+ );
6358
+ }
6359
+
6360
+ export function knowledgeFilterAndFromJSON(
6361
+ jsonString: string,
6362
+ ): SafeParseResult<KnowledgeFilterAnd, SDKValidationError> {
6363
+ return safeParse(
6364
+ jsonString,
6365
+ (x) => KnowledgeFilterAnd$inboundSchema.parse(JSON.parse(x)),
6366
+ `Failed to parse 'KnowledgeFilterAnd' from JSON`,
6367
+ );
6368
+ }
6369
+
6370
+ /** @internal */
6371
+ export const Exists$inboundSchema: z.ZodType<Exists, z.ZodTypeDef, unknown> = z
6372
+ .object({
6373
+ exists: z.boolean(),
6374
+ });
6375
+
6376
+ /** @internal */
6377
+ export type Exists$Outbound = {
6378
+ exists: boolean;
6379
+ };
6380
+
6381
+ /** @internal */
6382
+ export const Exists$outboundSchema: z.ZodType<
6383
+ Exists$Outbound,
6384
+ z.ZodTypeDef,
6385
+ Exists
6386
+ > = z.object({
6387
+ exists: z.boolean(),
6388
+ });
6389
+
6390
+ /**
6391
+ * @internal
6392
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6393
+ */
6394
+ export namespace Exists$ {
6395
+ /** @deprecated use `Exists$inboundSchema` instead. */
6396
+ export const inboundSchema = Exists$inboundSchema;
6397
+ /** @deprecated use `Exists$outboundSchema` instead. */
6398
+ export const outboundSchema = Exists$outboundSchema;
6399
+ /** @deprecated use `Exists$Outbound` instead. */
6400
+ export type Outbound = Exists$Outbound;
6401
+ }
6402
+
6403
+ export function existsToJSON(exists: Exists): string {
6404
+ return JSON.stringify(Exists$outboundSchema.parse(exists));
6405
+ }
6406
+
6407
+ export function existsFromJSON(
6408
+ jsonString: string,
6409
+ ): SafeParseResult<Exists, SDKValidationError> {
6410
+ return safeParse(
6411
+ jsonString,
6412
+ (x) => Exists$inboundSchema.parse(JSON.parse(x)),
6413
+ `Failed to parse 'Exists' from JSON`,
6414
+ );
6415
+ }
6416
+
6417
+ /** @internal */
6418
+ export const Nin$inboundSchema: z.ZodType<Nin, z.ZodTypeDef, unknown> = z.union(
6419
+ [z.string(), z.number(), z.boolean()],
6420
+ );
6421
+
6422
+ /** @internal */
6423
+ export type Nin$Outbound = string | number | boolean;
6424
+
6425
+ /** @internal */
6426
+ export const Nin$outboundSchema: z.ZodType<Nin$Outbound, z.ZodTypeDef, Nin> = z
6427
+ .union([z.string(), z.number(), z.boolean()]);
6428
+
6429
+ /**
6430
+ * @internal
6431
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6432
+ */
6433
+ export namespace Nin$ {
6434
+ /** @deprecated use `Nin$inboundSchema` instead. */
6435
+ export const inboundSchema = Nin$inboundSchema;
6436
+ /** @deprecated use `Nin$outboundSchema` instead. */
6437
+ export const outboundSchema = Nin$outboundSchema;
6438
+ /** @deprecated use `Nin$Outbound` instead. */
6439
+ export type Outbound = Nin$Outbound;
6440
+ }
6441
+
6442
+ export function ninToJSON(nin: Nin): string {
6443
+ return JSON.stringify(Nin$outboundSchema.parse(nin));
6444
+ }
6445
+
6446
+ export function ninFromJSON(
6447
+ jsonString: string,
6448
+ ): SafeParseResult<Nin, SDKValidationError> {
6449
+ return safeParse(
6450
+ jsonString,
6451
+ (x) => Nin$inboundSchema.parse(JSON.parse(x)),
6452
+ `Failed to parse 'Nin' from JSON`,
6453
+ );
6454
+ }
6455
+
6456
+ /** @internal */
6457
+ export const OneNin$inboundSchema: z.ZodType<OneNin, z.ZodTypeDef, unknown> = z
6458
+ .object({
6459
+ nin: z.array(z.union([z.string(), z.number(), z.boolean()])),
6460
+ });
6461
+
6462
+ /** @internal */
6463
+ export type OneNin$Outbound = {
6464
+ nin: Array<string | number | boolean>;
6465
+ };
6466
+
6467
+ /** @internal */
6468
+ export const OneNin$outboundSchema: z.ZodType<
6469
+ OneNin$Outbound,
6470
+ z.ZodTypeDef,
6471
+ OneNin
6472
+ > = z.object({
6473
+ nin: z.array(z.union([z.string(), z.number(), z.boolean()])),
6474
+ });
6475
+
6476
+ /**
6477
+ * @internal
6478
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6479
+ */
6480
+ export namespace OneNin$ {
6481
+ /** @deprecated use `OneNin$inboundSchema` instead. */
6482
+ export const inboundSchema = OneNin$inboundSchema;
6483
+ /** @deprecated use `OneNin$outboundSchema` instead. */
6484
+ export const outboundSchema = OneNin$outboundSchema;
6485
+ /** @deprecated use `OneNin$Outbound` instead. */
6486
+ export type Outbound = OneNin$Outbound;
6487
+ }
6488
+
6489
+ export function oneNinToJSON(oneNin: OneNin): string {
6490
+ return JSON.stringify(OneNin$outboundSchema.parse(oneNin));
6491
+ }
6492
+
6493
+ export function oneNinFromJSON(
6494
+ jsonString: string,
6495
+ ): SafeParseResult<OneNin, SDKValidationError> {
6496
+ return safeParse(
6497
+ jsonString,
6498
+ (x) => OneNin$inboundSchema.parse(JSON.parse(x)),
6499
+ `Failed to parse 'OneNin' from JSON`,
6500
+ );
6501
+ }
6502
+
6503
+ /** @internal */
6504
+ export const In$inboundSchema: z.ZodType<In, z.ZodTypeDef, unknown> = z.union([
6505
+ z.string(),
6506
+ z.number(),
6507
+ z.boolean(),
6508
+ ]);
6509
+
6510
+ /** @internal */
6511
+ export type In$Outbound = string | number | boolean;
6512
+
6513
+ /** @internal */
6514
+ export const In$outboundSchema: z.ZodType<In$Outbound, z.ZodTypeDef, In> = z
6515
+ .union([z.string(), z.number(), z.boolean()]);
6516
+
6517
+ /**
6518
+ * @internal
6519
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6520
+ */
6521
+ export namespace In$ {
6522
+ /** @deprecated use `In$inboundSchema` instead. */
6523
+ export const inboundSchema = In$inboundSchema;
6524
+ /** @deprecated use `In$outboundSchema` instead. */
6525
+ export const outboundSchema = In$outboundSchema;
6526
+ /** @deprecated use `In$Outbound` instead. */
6527
+ export type Outbound = In$Outbound;
6528
+ }
6529
+
6530
+ export function inToJSON(value: In): string {
6531
+ return JSON.stringify(In$outboundSchema.parse(value));
6532
+ }
6533
+
6534
+ export function inFromJSON(
6535
+ jsonString: string,
6536
+ ): SafeParseResult<In, SDKValidationError> {
6537
+ return safeParse(
6538
+ jsonString,
6539
+ (x) => In$inboundSchema.parse(JSON.parse(x)),
6540
+ `Failed to parse 'In' from JSON`,
6541
+ );
6542
+ }
6543
+
6544
+ /** @internal */
6545
+ export const OneIn$inboundSchema: z.ZodType<OneIn, z.ZodTypeDef, unknown> = z
6546
+ .object({
6547
+ in: z.array(z.union([z.string(), z.number(), z.boolean()])),
6548
+ });
6549
+
6550
+ /** @internal */
6551
+ export type OneIn$Outbound = {
6552
+ in: Array<string | number | boolean>;
6553
+ };
6554
+
6555
+ /** @internal */
6556
+ export const OneIn$outboundSchema: z.ZodType<
6557
+ OneIn$Outbound,
6558
+ z.ZodTypeDef,
6559
+ OneIn
6560
+ > = z.object({
6561
+ in: z.array(z.union([z.string(), z.number(), z.boolean()])),
6562
+ });
6563
+
6564
+ /**
6565
+ * @internal
6566
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6567
+ */
6568
+ export namespace OneIn$ {
6569
+ /** @deprecated use `OneIn$inboundSchema` instead. */
6570
+ export const inboundSchema = OneIn$inboundSchema;
6571
+ /** @deprecated use `OneIn$outboundSchema` instead. */
6572
+ export const outboundSchema = OneIn$outboundSchema;
6573
+ /** @deprecated use `OneIn$Outbound` instead. */
6574
+ export type Outbound = OneIn$Outbound;
6575
+ }
6576
+
6577
+ export function oneInToJSON(oneIn: OneIn): string {
6578
+ return JSON.stringify(OneIn$outboundSchema.parse(oneIn));
6579
+ }
6580
+
6581
+ export function oneInFromJSON(
6582
+ jsonString: string,
6583
+ ): SafeParseResult<OneIn, SDKValidationError> {
6584
+ return safeParse(
6585
+ jsonString,
6586
+ (x) => OneIn$inboundSchema.parse(JSON.parse(x)),
6587
+ `Failed to parse 'OneIn' from JSON`,
6588
+ );
6589
+ }
6590
+
6591
+ /** @internal */
6592
+ export const Lte$inboundSchema: z.ZodType<Lte, z.ZodTypeDef, unknown> = z
6593
+ .object({
6594
+ lte: z.number(),
6595
+ });
6596
+
6597
+ /** @internal */
6598
+ export type Lte$Outbound = {
6599
+ lte: number;
6600
+ };
6601
+
6602
+ /** @internal */
6603
+ export const Lte$outboundSchema: z.ZodType<Lte$Outbound, z.ZodTypeDef, Lte> = z
6604
+ .object({
6605
+ lte: z.number(),
6606
+ });
6607
+
6608
+ /**
6609
+ * @internal
6610
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6611
+ */
6612
+ export namespace Lte$ {
6613
+ /** @deprecated use `Lte$inboundSchema` instead. */
6614
+ export const inboundSchema = Lte$inboundSchema;
6615
+ /** @deprecated use `Lte$outboundSchema` instead. */
6616
+ export const outboundSchema = Lte$outboundSchema;
6617
+ /** @deprecated use `Lte$Outbound` instead. */
6618
+ export type Outbound = Lte$Outbound;
6619
+ }
6620
+
6621
+ export function lteToJSON(lte: Lte): string {
6622
+ return JSON.stringify(Lte$outboundSchema.parse(lte));
6623
+ }
6624
+
6625
+ export function lteFromJSON(
6626
+ jsonString: string,
6627
+ ): SafeParseResult<Lte, SDKValidationError> {
6628
+ return safeParse(
6629
+ jsonString,
6630
+ (x) => Lte$inboundSchema.parse(JSON.parse(x)),
6631
+ `Failed to parse 'Lte' from JSON`,
6632
+ );
6633
+ }
6634
+
6635
+ /** @internal */
6636
+ export const Lt$inboundSchema: z.ZodType<Lt, z.ZodTypeDef, unknown> = z.object({
6637
+ lt: z.number(),
6638
+ });
6639
+
6640
+ /** @internal */
6641
+ export type Lt$Outbound = {
6642
+ lt: number;
6643
+ };
6644
+
6645
+ /** @internal */
6646
+ export const Lt$outboundSchema: z.ZodType<Lt$Outbound, z.ZodTypeDef, Lt> = z
6647
+ .object({
6648
+ lt: z.number(),
6649
+ });
6650
+
6651
+ /**
6652
+ * @internal
6653
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6654
+ */
6655
+ export namespace Lt$ {
6656
+ /** @deprecated use `Lt$inboundSchema` instead. */
6657
+ export const inboundSchema = Lt$inboundSchema;
6658
+ /** @deprecated use `Lt$outboundSchema` instead. */
6659
+ export const outboundSchema = Lt$outboundSchema;
6660
+ /** @deprecated use `Lt$Outbound` instead. */
6661
+ export type Outbound = Lt$Outbound;
6662
+ }
6663
+
6664
+ export function ltToJSON(lt: Lt): string {
6665
+ return JSON.stringify(Lt$outboundSchema.parse(lt));
6666
+ }
6667
+
6668
+ export function ltFromJSON(
6669
+ jsonString: string,
6670
+ ): SafeParseResult<Lt, SDKValidationError> {
6671
+ return safeParse(
6672
+ jsonString,
6673
+ (x) => Lt$inboundSchema.parse(JSON.parse(x)),
6674
+ `Failed to parse 'Lt' from JSON`,
6675
+ );
6676
+ }
6677
+
6678
+ /** @internal */
6679
+ export const Gte$inboundSchema: z.ZodType<Gte, z.ZodTypeDef, unknown> = z
6680
+ .object({
6681
+ gte: z.number(),
6682
+ });
6683
+
6684
+ /** @internal */
6685
+ export type Gte$Outbound = {
6686
+ gte: number;
6687
+ };
6688
+
6689
+ /** @internal */
6690
+ export const Gte$outboundSchema: z.ZodType<Gte$Outbound, z.ZodTypeDef, Gte> = z
6691
+ .object({
6692
+ gte: z.number(),
6693
+ });
6694
+
6695
+ /**
6696
+ * @internal
6697
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6698
+ */
6699
+ export namespace Gte$ {
6700
+ /** @deprecated use `Gte$inboundSchema` instead. */
6701
+ export const inboundSchema = Gte$inboundSchema;
6702
+ /** @deprecated use `Gte$outboundSchema` instead. */
6703
+ export const outboundSchema = Gte$outboundSchema;
6704
+ /** @deprecated use `Gte$Outbound` instead. */
6705
+ export type Outbound = Gte$Outbound;
6706
+ }
6707
+
6708
+ export function gteToJSON(gte: Gte): string {
6709
+ return JSON.stringify(Gte$outboundSchema.parse(gte));
6710
+ }
6711
+
6712
+ export function gteFromJSON(
6713
+ jsonString: string,
6714
+ ): SafeParseResult<Gte, SDKValidationError> {
6715
+ return safeParse(
6716
+ jsonString,
6717
+ (x) => Gte$inboundSchema.parse(JSON.parse(x)),
6718
+ `Failed to parse 'Gte' from JSON`,
6719
+ );
6720
+ }
6721
+
6722
+ /** @internal */
6723
+ export const Three$inboundSchema: z.ZodType<Three, z.ZodTypeDef, unknown> = z
6724
+ .object({
6725
+ gt: z.number(),
6726
+ });
6727
+
6728
+ /** @internal */
6729
+ export type Three$Outbound = {
6730
+ gt: number;
6731
+ };
6732
+
6733
+ /** @internal */
6734
+ export const Three$outboundSchema: z.ZodType<
6735
+ Three$Outbound,
6736
+ z.ZodTypeDef,
6737
+ Three
6738
+ > = z.object({
6739
+ gt: z.number(),
6740
+ });
6741
+
6742
+ /**
6743
+ * @internal
6744
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6745
+ */
6746
+ export namespace Three$ {
6747
+ /** @deprecated use `Three$inboundSchema` instead. */
6748
+ export const inboundSchema = Three$inboundSchema;
6749
+ /** @deprecated use `Three$outboundSchema` instead. */
6750
+ export const outboundSchema = Three$outboundSchema;
6751
+ /** @deprecated use `Three$Outbound` instead. */
6752
+ export type Outbound = Three$Outbound;
6753
+ }
6754
+
6755
+ export function threeToJSON(three: Three): string {
6756
+ return JSON.stringify(Three$outboundSchema.parse(three));
6757
+ }
6758
+
6759
+ export function threeFromJSON(
6760
+ jsonString: string,
6761
+ ): SafeParseResult<Three, SDKValidationError> {
6762
+ return safeParse(
6763
+ jsonString,
6764
+ (x) => Three$inboundSchema.parse(JSON.parse(x)),
6765
+ `Failed to parse 'Three' from JSON`,
6766
+ );
6767
+ }
6768
+
6769
+ /** @internal */
6770
+ export const Ne$inboundSchema: z.ZodType<Ne, z.ZodTypeDef, unknown> = z.union([
6771
+ z.string(),
6772
+ z.number(),
6773
+ z.boolean(),
6774
+ ]);
6775
+
6776
+ /** @internal */
6777
+ export type Ne$Outbound = string | number | boolean;
6778
+
6779
+ /** @internal */
6780
+ export const Ne$outboundSchema: z.ZodType<Ne$Outbound, z.ZodTypeDef, Ne> = z
6781
+ .union([z.string(), z.number(), z.boolean()]);
6782
+
6783
+ /**
6784
+ * @internal
6785
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6786
+ */
6787
+ export namespace Ne$ {
6788
+ /** @deprecated use `Ne$inboundSchema` instead. */
6789
+ export const inboundSchema = Ne$inboundSchema;
6790
+ /** @deprecated use `Ne$outboundSchema` instead. */
6791
+ export const outboundSchema = Ne$outboundSchema;
6792
+ /** @deprecated use `Ne$Outbound` instead. */
6793
+ export type Outbound = Ne$Outbound;
6794
+ }
6795
+
6796
+ export function neToJSON(ne: Ne): string {
6797
+ return JSON.stringify(Ne$outboundSchema.parse(ne));
6798
+ }
6799
+
6800
+ export function neFromJSON(
6801
+ jsonString: string,
6802
+ ): SafeParseResult<Ne, SDKValidationError> {
6803
+ return safeParse(
6804
+ jsonString,
6805
+ (x) => Ne$inboundSchema.parse(JSON.parse(x)),
6806
+ `Failed to parse 'Ne' from JSON`,
6807
+ );
6808
+ }
6809
+
6810
+ /** @internal */
6811
+ export const OneNe$inboundSchema: z.ZodType<OneNe, z.ZodTypeDef, unknown> = z
6812
+ .object({
6813
+ ne: z.union([z.string(), z.number(), z.boolean()]),
6814
+ });
6815
+
6816
+ /** @internal */
6817
+ export type OneNe$Outbound = {
6818
+ ne: string | number | boolean;
6819
+ };
6820
+
6821
+ /** @internal */
6822
+ export const OneNe$outboundSchema: z.ZodType<
6823
+ OneNe$Outbound,
6824
+ z.ZodTypeDef,
6825
+ OneNe
6826
+ > = z.object({
6827
+ ne: z.union([z.string(), z.number(), z.boolean()]),
6828
+ });
6829
+
6830
+ /**
6831
+ * @internal
6832
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6833
+ */
6834
+ export namespace OneNe$ {
6835
+ /** @deprecated use `OneNe$inboundSchema` instead. */
6836
+ export const inboundSchema = OneNe$inboundSchema;
6837
+ /** @deprecated use `OneNe$outboundSchema` instead. */
6838
+ export const outboundSchema = OneNe$outboundSchema;
6839
+ /** @deprecated use `OneNe$Outbound` instead. */
6840
+ export type Outbound = OneNe$Outbound;
6841
+ }
6842
+
6843
+ export function oneNeToJSON(oneNe: OneNe): string {
6844
+ return JSON.stringify(OneNe$outboundSchema.parse(oneNe));
6845
+ }
6846
+
6847
+ export function oneNeFromJSON(
6848
+ jsonString: string,
6849
+ ): SafeParseResult<OneNe, SDKValidationError> {
6850
+ return safeParse(
6851
+ jsonString,
6852
+ (x) => OneNe$inboundSchema.parse(JSON.parse(x)),
6853
+ `Failed to parse 'OneNe' from JSON`,
6854
+ );
6855
+ }
6856
+
6857
+ /** @internal */
6858
+ export const Eq$inboundSchema: z.ZodType<Eq, z.ZodTypeDef, unknown> = z.union([
6859
+ z.string(),
6860
+ z.number(),
6861
+ z.boolean(),
6862
+ ]);
6863
+
6864
+ /** @internal */
6865
+ export type Eq$Outbound = string | number | boolean;
6866
+
6867
+ /** @internal */
6868
+ export const Eq$outboundSchema: z.ZodType<Eq$Outbound, z.ZodTypeDef, Eq> = z
6869
+ .union([z.string(), z.number(), z.boolean()]);
6870
+
6871
+ /**
6872
+ * @internal
6873
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6874
+ */
6875
+ export namespace Eq$ {
6876
+ /** @deprecated use `Eq$inboundSchema` instead. */
6877
+ export const inboundSchema = Eq$inboundSchema;
6878
+ /** @deprecated use `Eq$outboundSchema` instead. */
6879
+ export const outboundSchema = Eq$outboundSchema;
6880
+ /** @deprecated use `Eq$Outbound` instead. */
6881
+ export type Outbound = Eq$Outbound;
6882
+ }
6883
+
6884
+ export function eqToJSON(eq: Eq): string {
6885
+ return JSON.stringify(Eq$outboundSchema.parse(eq));
6886
+ }
6887
+
6888
+ export function eqFromJSON(
6889
+ jsonString: string,
6890
+ ): SafeParseResult<Eq, SDKValidationError> {
6891
+ return safeParse(
6892
+ jsonString,
6893
+ (x) => Eq$inboundSchema.parse(JSON.parse(x)),
6894
+ `Failed to parse 'Eq' from JSON`,
6895
+ );
6896
+ }
6897
+
6898
+ /** @internal */
6899
+ export const OneEq$inboundSchema: z.ZodType<OneEq, z.ZodTypeDef, unknown> = z
6900
+ .object({
6901
+ eq: z.union([z.string(), z.number(), z.boolean()]),
6902
+ });
6903
+
6904
+ /** @internal */
6905
+ export type OneEq$Outbound = {
6906
+ eq: string | number | boolean;
6907
+ };
6908
+
6909
+ /** @internal */
6910
+ export const OneEq$outboundSchema: z.ZodType<
6911
+ OneEq$Outbound,
6912
+ z.ZodTypeDef,
6913
+ OneEq
6914
+ > = z.object({
6915
+ eq: z.union([z.string(), z.number(), z.boolean()]),
6916
+ });
6917
+
6918
+ /**
6919
+ * @internal
6920
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6921
+ */
6922
+ export namespace OneEq$ {
6923
+ /** @deprecated use `OneEq$inboundSchema` instead. */
6924
+ export const inboundSchema = OneEq$inboundSchema;
6925
+ /** @deprecated use `OneEq$outboundSchema` instead. */
6926
+ export const outboundSchema = OneEq$outboundSchema;
6927
+ /** @deprecated use `OneEq$Outbound` instead. */
6928
+ export type Outbound = OneEq$Outbound;
6929
+ }
6930
+
6931
+ export function oneEqToJSON(oneEq: OneEq): string {
6932
+ return JSON.stringify(OneEq$outboundSchema.parse(oneEq));
6933
+ }
6934
+
6935
+ export function oneEqFromJSON(
6936
+ jsonString: string,
6937
+ ): SafeParseResult<OneEq, SDKValidationError> {
6938
+ return safeParse(
6939
+ jsonString,
6940
+ (x) => OneEq$inboundSchema.parse(JSON.parse(x)),
6941
+ `Failed to parse 'OneEq' from JSON`,
6942
+ );
6943
+ }
6944
+
6945
+ /** @internal */
6946
+ export const One$inboundSchema: z.ZodType<One, z.ZodTypeDef, unknown> = z.union(
6947
+ [
6948
+ z.lazy(() => OneEq$inboundSchema),
6949
+ z.lazy(() => OneNe$inboundSchema),
6950
+ z.lazy(() => Three$inboundSchema),
6951
+ z.lazy(() => Gte$inboundSchema),
6952
+ z.lazy(() => Lt$inboundSchema),
6953
+ z.lazy(() => Lte$inboundSchema),
6954
+ z.lazy(() => OneIn$inboundSchema),
6955
+ z.lazy(() => OneNin$inboundSchema),
6956
+ z.lazy(() => Exists$inboundSchema),
6957
+ ],
6958
+ );
6959
+
6960
+ /** @internal */
6961
+ export type One$Outbound =
6962
+ | OneEq$Outbound
6963
+ | OneNe$Outbound
6964
+ | Three$Outbound
6965
+ | Gte$Outbound
6966
+ | Lt$Outbound
6967
+ | Lte$Outbound
6968
+ | OneIn$Outbound
6969
+ | OneNin$Outbound
6970
+ | Exists$Outbound;
6971
+
6972
+ /** @internal */
6973
+ export const One$outboundSchema: z.ZodType<One$Outbound, z.ZodTypeDef, One> = z
6974
+ .union([
6975
+ z.lazy(() => OneEq$outboundSchema),
6976
+ z.lazy(() => OneNe$outboundSchema),
6977
+ z.lazy(() => Three$outboundSchema),
6978
+ z.lazy(() => Gte$outboundSchema),
6979
+ z.lazy(() => Lt$outboundSchema),
6980
+ z.lazy(() => Lte$outboundSchema),
6981
+ z.lazy(() => OneIn$outboundSchema),
6982
+ z.lazy(() => OneNin$outboundSchema),
6983
+ z.lazy(() => Exists$outboundSchema),
6984
+ ]);
6985
+
6986
+ /**
6987
+ * @internal
6988
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6989
+ */
6990
+ export namespace One$ {
6991
+ /** @deprecated use `One$inboundSchema` instead. */
6992
+ export const inboundSchema = One$inboundSchema;
6993
+ /** @deprecated use `One$outboundSchema` instead. */
6994
+ export const outboundSchema = One$outboundSchema;
6995
+ /** @deprecated use `One$Outbound` instead. */
6996
+ export type Outbound = One$Outbound;
6997
+ }
6998
+
6999
+ export function oneToJSON(one: One): string {
7000
+ return JSON.stringify(One$outboundSchema.parse(one));
7001
+ }
7002
+
7003
+ export function oneFromJSON(
7004
+ jsonString: string,
7005
+ ): SafeParseResult<One, SDKValidationError> {
7006
+ return safeParse(
7007
+ jsonString,
7008
+ (x) => One$inboundSchema.parse(JSON.parse(x)),
7009
+ `Failed to parse 'One' from JSON`,
7010
+ );
7011
+ }
7012
+
7013
+ /** @internal */
7014
+ export const KnowledgeFilter$inboundSchema: z.ZodType<
7015
+ KnowledgeFilter,
7016
+ z.ZodTypeDef,
7017
+ unknown
7018
+ > = z.union([
7019
+ z.lazy(() => KnowledgeFilterAnd$inboundSchema),
7020
+ z.lazy(() => KnowledgeFilterOr$inboundSchema),
7021
+ z.record(z.union([
7022
+ z.lazy(() => OneEq$inboundSchema),
7023
+ z.lazy(() => OneNe$inboundSchema),
7024
+ z.lazy(() => Three$inboundSchema),
7025
+ z.lazy(() => Gte$inboundSchema),
7026
+ z.lazy(() => Lt$inboundSchema),
7027
+ z.lazy(() => Lte$inboundSchema),
7028
+ z.lazy(() => OneIn$inboundSchema),
7029
+ z.lazy(() => OneNin$inboundSchema),
7030
+ z.lazy(() => Exists$inboundSchema),
7031
+ ])),
7032
+ ]);
7033
+
7034
+ /** @internal */
7035
+ export type KnowledgeFilter$Outbound =
7036
+ | KnowledgeFilterAnd$Outbound
7037
+ | KnowledgeFilterOr$Outbound
7038
+ | {
7039
+ [k: string]:
7040
+ | OneEq$Outbound
7041
+ | OneNe$Outbound
7042
+ | Three$Outbound
7043
+ | Gte$Outbound
7044
+ | Lt$Outbound
7045
+ | Lte$Outbound
7046
+ | OneIn$Outbound
7047
+ | OneNin$Outbound
7048
+ | Exists$Outbound;
7049
+ };
7050
+
7051
+ /** @internal */
7052
+ export const KnowledgeFilter$outboundSchema: z.ZodType<
7053
+ KnowledgeFilter$Outbound,
7054
+ z.ZodTypeDef,
7055
+ KnowledgeFilter
7056
+ > = z.union([
7057
+ z.lazy(() => KnowledgeFilterAnd$outboundSchema),
7058
+ z.lazy(() => KnowledgeFilterOr$outboundSchema),
7059
+ z.record(z.union([
7060
+ z.lazy(() => OneEq$outboundSchema),
7061
+ z.lazy(() => OneNe$outboundSchema),
7062
+ z.lazy(() => Three$outboundSchema),
7063
+ z.lazy(() => Gte$outboundSchema),
7064
+ z.lazy(() => Lt$outboundSchema),
7065
+ z.lazy(() => Lte$outboundSchema),
7066
+ z.lazy(() => OneIn$outboundSchema),
7067
+ z.lazy(() => OneNin$outboundSchema),
7068
+ z.lazy(() => Exists$outboundSchema),
7069
+ ])),
7070
+ ]);
7071
+
7072
+ /**
7073
+ * @internal
7074
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
7075
+ */
7076
+ export namespace KnowledgeFilter$ {
7077
+ /** @deprecated use `KnowledgeFilter$inboundSchema` instead. */
7078
+ export const inboundSchema = KnowledgeFilter$inboundSchema;
7079
+ /** @deprecated use `KnowledgeFilter$outboundSchema` instead. */
7080
+ export const outboundSchema = KnowledgeFilter$outboundSchema;
7081
+ /** @deprecated use `KnowledgeFilter$Outbound` instead. */
7082
+ export type Outbound = KnowledgeFilter$Outbound;
7083
+ }
7084
+
7085
+ export function knowledgeFilterToJSON(
7086
+ knowledgeFilter: KnowledgeFilter,
7087
+ ): string {
7088
+ return JSON.stringify(KnowledgeFilter$outboundSchema.parse(knowledgeFilter));
7089
+ }
7090
+
7091
+ export function knowledgeFilterFromJSON(
7092
+ jsonString: string,
7093
+ ): SafeParseResult<KnowledgeFilter, SDKValidationError> {
7094
+ return safeParse(
7095
+ jsonString,
7096
+ (x) => KnowledgeFilter$inboundSchema.parse(JSON.parse(x)),
7097
+ `Failed to parse 'KnowledgeFilter' from JSON`,
7098
+ );
7099
+ }
7100
+
7101
+ /** @internal */
7102
+ export const Deployments$inboundSchema: z.ZodType<
7103
+ Deployments,
7104
+ z.ZodTypeDef,
7105
+ unknown
7106
+ > = z.object({
7107
+ key: z.string(),
7108
+ inputs: z.record(z.union([z.string(), z.number(), z.boolean()])).optional(),
7109
+ context: z.record(z.any()).optional(),
7110
+ prefix_messages: z.array(
7111
+ z.union([
7112
+ z.lazy(() => DeveloperMessage$inboundSchema),
7113
+ z.lazy(() => SystemMessage$inboundSchema),
7114
+ z.lazy(() => UserMessage$inboundSchema),
7115
+ z.lazy(() => ToolMessage$inboundSchema),
7116
+ z.lazy(() => AssistantMessage$inboundSchema),
7117
+ ]),
7118
+ ).optional(),
7119
+ messages: z.array(
7120
+ z.union([
7121
+ z.lazy(() => MessagesDeveloperMessage$inboundSchema),
7122
+ z.lazy(() => MessagesSystemMessage$inboundSchema),
7123
+ z.lazy(() => MessagesUserMessage$inboundSchema),
7124
+ z.lazy(() => MessagesToolMessage$inboundSchema),
7125
+ z.lazy(() => MessagesAssistantMessage$inboundSchema),
7126
+ ]),
7127
+ ).optional(),
7128
+ file_ids: z.array(z.string()).optional(),
7129
+ metadata: z.record(z.any()).optional(),
7130
+ extra_params: z.record(z.any()).optional(),
7131
+ documents: z.array(z.lazy(() => Documents$inboundSchema)).optional(),
7132
+ invoke_options: z.lazy(() => InvokeOptions$inboundSchema).optional(),
7133
+ thread: z.lazy(() => Thread$inboundSchema).optional(),
7134
+ knowledge_filter: z.union([
7135
+ z.lazy(() => KnowledgeFilterAnd$inboundSchema),
7136
+ z.lazy(() => KnowledgeFilterOr$inboundSchema),
7137
+ z.record(z.union([
7138
+ z.lazy(() => OneEq$inboundSchema),
7139
+ z.lazy(() => OneNe$inboundSchema),
7140
+ z.lazy(() => Three$inboundSchema),
7141
+ z.lazy(() => Gte$inboundSchema),
7142
+ z.lazy(() => Lt$inboundSchema),
7143
+ z.lazy(() => Lte$inboundSchema),
7144
+ z.lazy(() => OneIn$inboundSchema),
7145
+ z.lazy(() => OneNin$inboundSchema),
7146
+ z.lazy(() => Exists$inboundSchema),
7147
+ ])),
7148
+ ]).optional(),
7149
+ }).transform((v) => {
7150
+ return remap$(v, {
7151
+ "prefix_messages": "prefixMessages",
7152
+ "file_ids": "fileIds",
7153
+ "extra_params": "extraParams",
7154
+ "invoke_options": "invokeOptions",
7155
+ "knowledge_filter": "knowledgeFilter",
7156
+ });
7157
+ });
7158
+
7159
+ /** @internal */
7160
+ export type Deployments$Outbound = {
7161
+ key: string;
7162
+ inputs?: { [k: string]: string | number | boolean } | undefined;
7163
+ context?: { [k: string]: any } | undefined;
7164
+ prefix_messages?:
7165
+ | Array<
7166
+ | DeveloperMessage$Outbound
7167
+ | SystemMessage$Outbound
7168
+ | UserMessage$Outbound
7169
+ | ToolMessage$Outbound
7170
+ | AssistantMessage$Outbound
7171
+ >
7172
+ | undefined;
7173
+ messages?:
7174
+ | Array<
7175
+ | MessagesDeveloperMessage$Outbound
7176
+ | MessagesSystemMessage$Outbound
7177
+ | MessagesUserMessage$Outbound
7178
+ | MessagesToolMessage$Outbound
7179
+ | MessagesAssistantMessage$Outbound
7180
+ >
4578
7181
  | undefined;
4579
7182
  file_ids?: Array<string> | undefined;
4580
7183
  metadata?: { [k: string]: any } | undefined;
@@ -4582,6 +7185,22 @@ export type Deployments$Outbound = {
4582
7185
  documents?: Array<Documents$Outbound> | undefined;
4583
7186
  invoke_options?: InvokeOptions$Outbound | undefined;
4584
7187
  thread?: Thread$Outbound | undefined;
7188
+ knowledge_filter?:
7189
+ | KnowledgeFilterAnd$Outbound
7190
+ | KnowledgeFilterOr$Outbound
7191
+ | {
7192
+ [k: string]:
7193
+ | OneEq$Outbound
7194
+ | OneNe$Outbound
7195
+ | Three$Outbound
7196
+ | Gte$Outbound
7197
+ | Lt$Outbound
7198
+ | Lte$Outbound
7199
+ | OneIn$Outbound
7200
+ | OneNin$Outbound
7201
+ | Exists$Outbound;
7202
+ }
7203
+ | undefined;
4585
7204
  };
4586
7205
 
4587
7206
  /** @internal */
@@ -4617,12 +7236,28 @@ export const Deployments$outboundSchema: z.ZodType<
4617
7236
  documents: z.array(z.lazy(() => Documents$outboundSchema)).optional(),
4618
7237
  invokeOptions: z.lazy(() => InvokeOptions$outboundSchema).optional(),
4619
7238
  thread: z.lazy(() => Thread$outboundSchema).optional(),
7239
+ knowledgeFilter: z.union([
7240
+ z.lazy(() => KnowledgeFilterAnd$outboundSchema),
7241
+ z.lazy(() => KnowledgeFilterOr$outboundSchema),
7242
+ z.record(z.union([
7243
+ z.lazy(() => OneEq$outboundSchema),
7244
+ z.lazy(() => OneNe$outboundSchema),
7245
+ z.lazy(() => Three$outboundSchema),
7246
+ z.lazy(() => Gte$outboundSchema),
7247
+ z.lazy(() => Lt$outboundSchema),
7248
+ z.lazy(() => Lte$outboundSchema),
7249
+ z.lazy(() => OneIn$outboundSchema),
7250
+ z.lazy(() => OneNin$outboundSchema),
7251
+ z.lazy(() => Exists$outboundSchema),
7252
+ ])),
7253
+ ]).optional(),
4620
7254
  }).transform((v) => {
4621
7255
  return remap$(v, {
4622
7256
  prefixMessages: "prefix_messages",
4623
7257
  fileIds: "file_ids",
4624
7258
  extraParams: "extra_params",
4625
7259
  invokeOptions: "invoke_options",
7260
+ knowledgeFilter: "knowledge_filter",
4626
7261
  });
4627
7262
  });
4628
7263