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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (394) hide show
  1. package/README.md +6 -0
  2. package/bin/mcp-server.js +4828 -608
  3. package/bin/mcp-server.js.map +44 -35
  4. package/docs/sdks/datasets/README.md +91 -4
  5. package/docs/sdks/deployments/README.md +89 -0
  6. package/docs/sdks/knowledge/README.md +81 -4
  7. package/docs/sdks/prompts/README.md +4 -4
  8. package/funcs/datasetsCreateExperiment.d.ts +16 -0
  9. package/funcs/datasetsCreateExperiment.d.ts.map +1 -0
  10. package/funcs/datasetsCreateExperiment.js +118 -0
  11. package/funcs/datasetsCreateExperiment.js.map +1 -0
  12. package/funcs/deploymentsCreateExperiment.d.ts +16 -0
  13. package/funcs/deploymentsCreateExperiment.d.ts.map +1 -0
  14. package/funcs/deploymentsCreateExperiment.js +118 -0
  15. package/funcs/deploymentsCreateExperiment.js.map +1 -0
  16. package/funcs/knowledgeSearch.d.ts +16 -0
  17. package/funcs/knowledgeSearch.d.ts.map +1 -0
  18. package/funcs/knowledgeSearch.js +118 -0
  19. package/funcs/knowledgeSearch.js.map +1 -0
  20. package/jsr.json +1 -1
  21. package/lib/config.d.ts +2 -2
  22. package/lib/config.js +2 -2
  23. package/lib/config.js.map +1 -1
  24. package/mcp-server/mcp-server.js +1 -1
  25. package/mcp-server/mcp-server.js.map +1 -1
  26. package/mcp-server/server.d.ts.map +1 -1
  27. package/mcp-server/server.js +7 -1
  28. package/mcp-server/server.js.map +1 -1
  29. package/mcp-server/tools/datasetsCreateExperiment.d.ts +8 -0
  30. package/mcp-server/tools/datasetsCreateExperiment.d.ts.map +1 -0
  31. package/mcp-server/tools/datasetsCreateExperiment.js +64 -0
  32. package/mcp-server/tools/datasetsCreateExperiment.js.map +1 -0
  33. package/mcp-server/tools/deploymentsCreateExperiment.d.ts +8 -0
  34. package/mcp-server/tools/deploymentsCreateExperiment.d.ts.map +1 -0
  35. package/mcp-server/tools/deploymentsCreateExperiment.js +64 -0
  36. package/mcp-server/tools/deploymentsCreateExperiment.js.map +1 -0
  37. package/mcp-server/tools/knowledgeSearch.d.ts +8 -0
  38. package/mcp-server/tools/knowledgeSearch.d.ts.map +1 -0
  39. package/mcp-server/tools/knowledgeSearch.js +64 -0
  40. package/mcp-server/tools/knowledgeSearch.js.map +1 -0
  41. package/models/components/deployments.d.ts +1442 -67
  42. package/models/components/deployments.d.ts.map +1 -1
  43. package/models/components/deployments.js +1881 -126
  44. package/models/components/deployments.js.map +1 -1
  45. package/models/operations/bulkcreatedatapoints.js +2 -2
  46. package/models/operations/createchunk.d.ts +32 -17
  47. package/models/operations/createchunk.d.ts.map +1 -1
  48. package/models/operations/createchunk.js +30 -19
  49. package/models/operations/createchunk.js.map +1 -1
  50. package/models/operations/createcontact.js +2 -2
  51. package/models/operations/createdataset.js +2 -2
  52. package/models/operations/createdatasetexperiment.d.ts +140 -0
  53. package/models/operations/createdatasetexperiment.d.ts.map +1 -0
  54. package/models/operations/createdatasetexperiment.js +188 -0
  55. package/models/operations/createdatasetexperiment.js.map +1 -0
  56. package/models/operations/createdatasetitem.js +2 -2
  57. package/models/operations/createdatasource.js +2 -2
  58. package/models/operations/createdeploymentexperiment.d.ts +152 -0
  59. package/models/operations/createdeploymentexperiment.d.ts.map +1 -0
  60. package/models/operations/createdeploymentexperiment.js +189 -0
  61. package/models/operations/createdeploymentexperiment.js.map +1 -0
  62. package/models/operations/deploymentcreatemetric.d.ts +240 -28
  63. package/models/operations/deploymentcreatemetric.d.ts.map +1 -1
  64. package/models/operations/deploymentcreatemetric.js +236 -29
  65. package/models/operations/deploymentcreatemetric.js.map +1 -1
  66. package/models/operations/deploymentgetconfig.d.ts +1428 -53
  67. package/models/operations/deploymentgetconfig.d.ts.map +1 -1
  68. package/models/operations/deploymentgetconfig.js +1876 -120
  69. package/models/operations/deploymentgetconfig.js.map +1 -1
  70. package/models/operations/deploymentinvoke.d.ts +34 -4
  71. package/models/operations/deploymentinvoke.d.ts.map +1 -1
  72. package/models/operations/deploymentinvoke.js +30 -4
  73. package/models/operations/deploymentinvoke.js.map +1 -1
  74. package/models/operations/deploymentstream.d.ts +1425 -50
  75. package/models/operations/deploymentstream.d.ts.map +1 -1
  76. package/models/operations/deploymentstream.js +1840 -88
  77. package/models/operations/deploymentstream.js.map +1 -1
  78. package/models/operations/fileget.js +2 -2
  79. package/models/operations/filelist.js +2 -2
  80. package/models/operations/fileupload.d.ts +15 -15
  81. package/models/operations/fileupload.d.ts.map +1 -1
  82. package/models/operations/fileupload.js +20 -21
  83. package/models/operations/fileupload.js.map +1 -1
  84. package/models/operations/getonechunk.d.ts +24 -3
  85. package/models/operations/getonechunk.d.ts.map +1 -1
  86. package/models/operations/getonechunk.js +26 -3
  87. package/models/operations/getonechunk.js.map +1 -1
  88. package/models/operations/index.d.ts +3 -0
  89. package/models/operations/index.d.ts.map +1 -1
  90. package/models/operations/index.js +3 -0
  91. package/models/operations/index.js.map +1 -1
  92. package/models/operations/listchunks.d.ts +24 -3
  93. package/models/operations/listchunks.d.ts.map +1 -1
  94. package/models/operations/listchunks.js +26 -3
  95. package/models/operations/listchunks.js.map +1 -1
  96. package/models/operations/listdatasetdatapoints.js +2 -2
  97. package/models/operations/listdatasets.js +2 -2
  98. package/models/operations/listdatasources.js +2 -2
  99. package/models/operations/retrievedatapoint.js +2 -2
  100. package/models/operations/retrievedataset.js +2 -2
  101. package/models/operations/retrievedatasource.js +2 -2
  102. package/models/operations/searchknowledge.d.ts +1379 -0
  103. package/models/operations/searchknowledge.d.ts.map +1 -0
  104. package/models/operations/searchknowledge.js +1817 -0
  105. package/models/operations/searchknowledge.js.map +1 -0
  106. package/models/operations/updatechunk.d.ts +32 -17
  107. package/models/operations/updatechunk.d.ts.map +1 -1
  108. package/models/operations/updatechunk.js +30 -19
  109. package/models/operations/updatechunk.js.map +1 -1
  110. package/models/operations/updatedatapoint.js +2 -2
  111. package/models/operations/updatedataset.js +2 -2
  112. package/models/operations/updatedatasource.js +2 -2
  113. package/package.json +3 -2
  114. package/sdk/datasets.d.ts +7 -0
  115. package/sdk/datasets.d.ts.map +1 -1
  116. package/sdk/datasets.js +10 -0
  117. package/sdk/datasets.js.map +1 -1
  118. package/sdk/deployments.d.ts +7 -0
  119. package/sdk/deployments.d.ts.map +1 -1
  120. package/sdk/deployments.js +10 -0
  121. package/sdk/deployments.js.map +1 -1
  122. package/sdk/knowledge.d.ts +7 -0
  123. package/sdk/knowledge.d.ts.map +1 -1
  124. package/sdk/knowledge.js +10 -0
  125. package/sdk/knowledge.js.map +1 -1
  126. package/src/lib/config.ts +2 -2
  127. package/src/mcp-server/mcp-server.ts +1 -1
  128. package/src/mcp-server/server.ts +7 -1
  129. package/src/models/components/deployments.ts +3655 -165
  130. package/src/models/operations/bulkcreatedatapoints.ts +2 -2
  131. package/src/models/operations/createchunk.ts +65 -35
  132. package/src/models/operations/createcontact.ts +2 -2
  133. package/src/models/operations/createdataset.ts +2 -2
  134. package/src/models/operations/createdatasetitem.ts +2 -2
  135. package/src/models/operations/createdatasource.ts +2 -2
  136. package/src/models/operations/deploymentcreatemetric.ts +517 -40
  137. package/src/models/operations/deploymentgetconfig.ts +3656 -118
  138. package/src/models/operations/deploymentinvoke.ts +64 -8
  139. package/src/models/operations/deploymentstream.ts +3997 -116
  140. package/src/models/operations/fileget.ts +2 -2
  141. package/src/models/operations/filelist.ts +2 -2
  142. package/src/models/operations/fileupload.ts +37 -34
  143. package/src/models/operations/getonechunk.ts +55 -5
  144. package/src/models/operations/index.ts +3 -0
  145. package/src/models/operations/listchunks.ts +55 -5
  146. package/src/models/operations/listdatasetdatapoints.ts +2 -2
  147. package/src/models/operations/listdatasets.ts +2 -2
  148. package/src/models/operations/listdatasources.ts +2 -2
  149. package/src/models/operations/retrievedatapoint.ts +2 -2
  150. package/src/models/operations/retrievedataset.ts +2 -2
  151. package/src/models/operations/retrievedatasource.ts +2 -2
  152. package/src/models/operations/updatechunk.ts +65 -35
  153. package/src/models/operations/updatedatapoint.ts +2 -2
  154. package/src/models/operations/updatedataset.ts +2 -2
  155. package/src/models/operations/updatedatasource.ts +2 -2
  156. package/src/sdk/datasets.ts +18 -0
  157. package/src/sdk/deployments.ts +18 -0
  158. package/src/sdk/knowledge.ts +18 -0
  159. package/packages/orq-rc/FUNCTIONS.md +0 -106
  160. package/packages/orq-rc/README.md +0 -707
  161. package/packages/orq-rc/RUNTIMES.md +0 -48
  162. package/packages/orq-rc/docs/sdks/contacts/README.md +0 -84
  163. package/packages/orq-rc/docs/sdks/datasets/README.md +0 -1027
  164. package/packages/orq-rc/docs/sdks/deployments/README.md +0 -405
  165. package/packages/orq-rc/docs/sdks/feedback/README.md +0 -92
  166. package/packages/orq-rc/docs/sdks/files/README.md +0 -311
  167. package/packages/orq-rc/docs/sdks/knowledge/README.md +0 -1273
  168. package/packages/orq-rc/docs/sdks/metrics/README.md +0 -86
  169. package/packages/orq-rc/docs/sdks/models/README.md +0 -79
  170. package/packages/orq-rc/docs/sdks/orq/README.md +0 -10
  171. package/packages/orq-rc/docs/sdks/prompts/README.md +0 -576
  172. package/packages/orq-rc/docs/sdks/remoteconfigs/README.md +0 -80
  173. package/packages/orq-rc/jsr.json +0 -28
  174. package/packages/orq-rc/package-lock.json +0 -3217
  175. package/packages/orq-rc/package.json +0 -45
  176. package/packages/orq-rc/src/core.ts +0 -13
  177. package/packages/orq-rc/src/funcs/contactsCreate.ts +0 -154
  178. package/packages/orq-rc/src/funcs/datasetsClear.ts +0 -161
  179. package/packages/orq-rc/src/funcs/datasetsCreate.ts +0 -159
  180. package/packages/orq-rc/src/funcs/datasetsCreateDatapoint.ts +0 -161
  181. package/packages/orq-rc/src/funcs/datasetsCreateDatapoints.ts +0 -165
  182. package/packages/orq-rc/src/funcs/datasetsDelete.ts +0 -161
  183. package/packages/orq-rc/src/funcs/datasetsDeleteDatapoint.ts +0 -176
  184. package/packages/orq-rc/src/funcs/datasetsList.ts +0 -161
  185. package/packages/orq-rc/src/funcs/datasetsListDatapoints.ts +0 -168
  186. package/packages/orq-rc/src/funcs/datasetsRetrieve.ts +0 -169
  187. package/packages/orq-rc/src/funcs/datasetsRetrieveDatapoint.ts +0 -175
  188. package/packages/orq-rc/src/funcs/datasetsUpdate.ts +0 -170
  189. package/packages/orq-rc/src/funcs/datasetsUpdateDatapoint.ts +0 -173
  190. package/packages/orq-rc/src/funcs/deploymentsGetConfig.ts +0 -162
  191. package/packages/orq-rc/src/funcs/deploymentsInvoke.ts +0 -170
  192. package/packages/orq-rc/src/funcs/deploymentsList.ts +0 -170
  193. package/packages/orq-rc/src/funcs/deploymentsMetricsCreate.ts +0 -162
  194. package/packages/orq-rc/src/funcs/deploymentsStream.ts +0 -178
  195. package/packages/orq-rc/src/funcs/feedbackCreate.ts +0 -154
  196. package/packages/orq-rc/src/funcs/filesCreate.ts +0 -174
  197. package/packages/orq-rc/src/funcs/filesDelete.ts +0 -158
  198. package/packages/orq-rc/src/funcs/filesGet.ts +0 -160
  199. package/packages/orq-rc/src/funcs/filesList.ts +0 -161
  200. package/packages/orq-rc/src/funcs/knowledgeCreate.ts +0 -152
  201. package/packages/orq-rc/src/funcs/knowledgeCreateChunks.ts +0 -165
  202. package/packages/orq-rc/src/funcs/knowledgeCreateDatasource.ts +0 -160
  203. package/packages/orq-rc/src/funcs/knowledgeDelete.ts +0 -161
  204. package/packages/orq-rc/src/funcs/knowledgeDeleteChunk.ts +0 -168
  205. package/packages/orq-rc/src/funcs/knowledgeDeleteDatasource.ts +0 -167
  206. package/packages/orq-rc/src/funcs/knowledgeList.ts +0 -163
  207. package/packages/orq-rc/src/funcs/knowledgeListChunks.ts +0 -172
  208. package/packages/orq-rc/src/funcs/knowledgeListDatasources.ts +0 -168
  209. package/packages/orq-rc/src/funcs/knowledgeRetrieve.ts +0 -160
  210. package/packages/orq-rc/src/funcs/knowledgeRetrieveChunk.ts +0 -167
  211. package/packages/orq-rc/src/funcs/knowledgeRetrieveDatasource.ts +0 -163
  212. package/packages/orq-rc/src/funcs/knowledgeUpdate.ts +0 -158
  213. package/packages/orq-rc/src/funcs/knowledgeUpdateChunk.ts +0 -168
  214. package/packages/orq-rc/src/funcs/knowledgeUpdateDatasource.ts +0 -164
  215. package/packages/orq-rc/src/funcs/modelsList.ts +0 -136
  216. package/packages/orq-rc/src/funcs/promptsCreate.ts +0 -154
  217. package/packages/orq-rc/src/funcs/promptsDelete.ts +0 -158
  218. package/packages/orq-rc/src/funcs/promptsGetVersion.ts +0 -175
  219. package/packages/orq-rc/src/funcs/promptsList.ts +0 -161
  220. package/packages/orq-rc/src/funcs/promptsListVersions.ts +0 -167
  221. package/packages/orq-rc/src/funcs/promptsRetrieve.ts +0 -160
  222. package/packages/orq-rc/src/funcs/promptsUpdate.ts +0 -167
  223. package/packages/orq-rc/src/funcs/remoteconfigsRetrieve.ts +0 -155
  224. package/packages/orq-rc/src/hooks/global.ts +0 -44
  225. package/packages/orq-rc/src/hooks/hooks.ts +0 -132
  226. package/packages/orq-rc/src/hooks/index.ts +0 -6
  227. package/packages/orq-rc/src/hooks/registration.ts +0 -15
  228. package/packages/orq-rc/src/hooks/types.ts +0 -110
  229. package/packages/orq-rc/src/index.ts +0 -7
  230. package/packages/orq-rc/src/lib/base64.ts +0 -37
  231. package/packages/orq-rc/src/lib/config.ts +0 -70
  232. package/packages/orq-rc/src/lib/dlv.ts +0 -53
  233. package/packages/orq-rc/src/lib/encodings.ts +0 -483
  234. package/packages/orq-rc/src/lib/env.ts +0 -73
  235. package/packages/orq-rc/src/lib/event-streams.ts +0 -264
  236. package/packages/orq-rc/src/lib/files.ts +0 -40
  237. package/packages/orq-rc/src/lib/http.ts +0 -323
  238. package/packages/orq-rc/src/lib/is-plain-object.ts +0 -43
  239. package/packages/orq-rc/src/lib/logger.ts +0 -9
  240. package/packages/orq-rc/src/lib/matchers.ts +0 -345
  241. package/packages/orq-rc/src/lib/primitives.ts +0 -150
  242. package/packages/orq-rc/src/lib/retries.ts +0 -218
  243. package/packages/orq-rc/src/lib/schemas.ts +0 -91
  244. package/packages/orq-rc/src/lib/sdks.ts +0 -401
  245. package/packages/orq-rc/src/lib/security.ts +0 -261
  246. package/packages/orq-rc/src/lib/url.ts +0 -33
  247. package/packages/orq-rc/src/mcp-server/cli/start/command.ts +0 -125
  248. package/packages/orq-rc/src/mcp-server/cli/start/impl.ts +0 -140
  249. package/packages/orq-rc/src/mcp-server/cli.ts +0 -13
  250. package/packages/orq-rc/src/mcp-server/console-logger.ts +0 -71
  251. package/packages/orq-rc/src/mcp-server/extensions.ts +0 -17
  252. package/packages/orq-rc/src/mcp-server/mcp-server.ts +0 -26
  253. package/packages/orq-rc/src/mcp-server/prompts.ts +0 -117
  254. package/packages/orq-rc/src/mcp-server/resources.ts +0 -172
  255. package/packages/orq-rc/src/mcp-server/scopes.ts +0 -7
  256. package/packages/orq-rc/src/mcp-server/server.ts +0 -163
  257. package/packages/orq-rc/src/mcp-server/shared.ts +0 -75
  258. package/packages/orq-rc/src/mcp-server/tools/contactsCreate.ts +0 -37
  259. package/packages/orq-rc/src/mcp-server/tools/datasetsClear.ts +0 -35
  260. package/packages/orq-rc/src/mcp-server/tools/datasetsCreate.ts +0 -37
  261. package/packages/orq-rc/src/mcp-server/tools/datasetsCreateDatapoint.ts +0 -37
  262. package/packages/orq-rc/src/mcp-server/tools/datasetsCreateDatapoints.ts +0 -37
  263. package/packages/orq-rc/src/mcp-server/tools/datasetsDelete.ts +0 -35
  264. package/packages/orq-rc/src/mcp-server/tools/datasetsDeleteDatapoint.ts +0 -35
  265. package/packages/orq-rc/src/mcp-server/tools/datasetsList.ts +0 -37
  266. package/packages/orq-rc/src/mcp-server/tools/datasetsListDatapoints.ts +0 -37
  267. package/packages/orq-rc/src/mcp-server/tools/datasetsRetrieve.ts +0 -37
  268. package/packages/orq-rc/src/mcp-server/tools/datasetsRetrieveDatapoint.ts +0 -37
  269. package/packages/orq-rc/src/mcp-server/tools/datasetsUpdate.ts +0 -37
  270. package/packages/orq-rc/src/mcp-server/tools/datasetsUpdateDatapoint.ts +0 -35
  271. package/packages/orq-rc/src/mcp-server/tools/deploymentsGetConfig.ts +0 -37
  272. package/packages/orq-rc/src/mcp-server/tools/deploymentsInvoke.ts +0 -37
  273. package/packages/orq-rc/src/mcp-server/tools/deploymentsList.ts +0 -37
  274. package/packages/orq-rc/src/mcp-server/tools/deploymentsMetricsCreate.ts +0 -37
  275. package/packages/orq-rc/src/mcp-server/tools/deploymentsStream.ts +0 -37
  276. package/packages/orq-rc/src/mcp-server/tools/feedbackCreate.ts +0 -37
  277. package/packages/orq-rc/src/mcp-server/tools/filesCreate.ts +0 -37
  278. package/packages/orq-rc/src/mcp-server/tools/filesDelete.ts +0 -33
  279. package/packages/orq-rc/src/mcp-server/tools/filesGet.ts +0 -37
  280. package/packages/orq-rc/src/mcp-server/tools/filesList.ts +0 -37
  281. package/packages/orq-rc/src/mcp-server/tools/knowledgeCreate.ts +0 -35
  282. package/packages/orq-rc/src/mcp-server/tools/knowledgeCreateChunks.ts +0 -35
  283. package/packages/orq-rc/src/mcp-server/tools/knowledgeCreateDatasource.ts +0 -35
  284. package/packages/orq-rc/src/mcp-server/tools/knowledgeDelete.ts +0 -35
  285. package/packages/orq-rc/src/mcp-server/tools/knowledgeDeleteChunk.ts +0 -33
  286. package/packages/orq-rc/src/mcp-server/tools/knowledgeDeleteDatasource.ts +0 -35
  287. package/packages/orq-rc/src/mcp-server/tools/knowledgeList.ts +0 -37
  288. package/packages/orq-rc/src/mcp-server/tools/knowledgeListChunks.ts +0 -35
  289. package/packages/orq-rc/src/mcp-server/tools/knowledgeListDatasources.ts +0 -35
  290. package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieve.ts +0 -37
  291. package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieveChunk.ts +0 -35
  292. package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieveDatasource.ts +0 -35
  293. package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdate.ts +0 -35
  294. package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdateChunk.ts +0 -35
  295. package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdateDatasource.ts +0 -35
  296. package/packages/orq-rc/src/mcp-server/tools/modelsList.ts +0 -30
  297. package/packages/orq-rc/src/mcp-server/tools/promptsCreate.ts +0 -35
  298. package/packages/orq-rc/src/mcp-server/tools/promptsDelete.ts +0 -33
  299. package/packages/orq-rc/src/mcp-server/tools/promptsGetVersion.ts +0 -37
  300. package/packages/orq-rc/src/mcp-server/tools/promptsList.ts +0 -37
  301. package/packages/orq-rc/src/mcp-server/tools/promptsListVersions.ts +0 -37
  302. package/packages/orq-rc/src/mcp-server/tools/promptsRetrieve.ts +0 -37
  303. package/packages/orq-rc/src/mcp-server/tools/promptsUpdate.ts +0 -35
  304. package/packages/orq-rc/src/mcp-server/tools/remoteconfigsRetrieve.ts +0 -36
  305. package/packages/orq-rc/src/mcp-server/tools.ts +0 -129
  306. package/packages/orq-rc/src/models/components/deployments.ts +0 -7749
  307. package/packages/orq-rc/src/models/components/index.ts +0 -6
  308. package/packages/orq-rc/src/models/components/security.ts +0 -71
  309. package/packages/orq-rc/src/models/errors/apierror.ts +0 -27
  310. package/packages/orq-rc/src/models/errors/getpromptversion.ts +0 -71
  311. package/packages/orq-rc/src/models/errors/honoapierror.ts +0 -82
  312. package/packages/orq-rc/src/models/errors/httpclienterrors.ts +0 -62
  313. package/packages/orq-rc/src/models/errors/index.ts +0 -10
  314. package/packages/orq-rc/src/models/errors/sdkvalidationerror.ts +0 -97
  315. package/packages/orq-rc/src/models/errors/updateprompt.ts +0 -71
  316. package/packages/orq-rc/src/models/operations/bulkcreatedatapoints.ts +0 -1828
  317. package/packages/orq-rc/src/models/operations/cleardataset.ts +0 -75
  318. package/packages/orq-rc/src/models/operations/createchunk.ts +0 -432
  319. package/packages/orq-rc/src/models/operations/createcontact.ts +0 -256
  320. package/packages/orq-rc/src/models/operations/createdataset.ts +0 -296
  321. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +0 -1752
  322. package/packages/orq-rc/src/models/operations/createdatasource.ts +0 -852
  323. package/packages/orq-rc/src/models/operations/createfeedback.ts +0 -286
  324. package/packages/orq-rc/src/models/operations/createknowledge.ts +0 -846
  325. package/packages/orq-rc/src/models/operations/createprompt.ts +0 -3691
  326. package/packages/orq-rc/src/models/operations/deletechunk.ts +0 -96
  327. package/packages/orq-rc/src/models/operations/deletedatapoint.ts +0 -81
  328. package/packages/orq-rc/src/models/operations/deletedataset.ts +0 -75
  329. package/packages/orq-rc/src/models/operations/deletedatasource.ts +0 -87
  330. package/packages/orq-rc/src/models/operations/deleteknowledge.ts +0 -78
  331. package/packages/orq-rc/src/models/operations/deleteprompt.ts +0 -69
  332. package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +0 -5435
  333. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +0 -9694
  334. package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +0 -1255
  335. package/packages/orq-rc/src/models/operations/deployments.ts +0 -2128
  336. package/packages/orq-rc/src/models/operations/deploymentstream.ts +0 -9946
  337. package/packages/orq-rc/src/models/operations/filedelete.ts +0 -78
  338. package/packages/orq-rc/src/models/operations/fileget.ts +0 -223
  339. package/packages/orq-rc/src/models/operations/filelist.ts +0 -337
  340. package/packages/orq-rc/src/models/operations/fileupload.ts +0 -327
  341. package/packages/orq-rc/src/models/operations/getallprompts.ts +0 -2100
  342. package/packages/orq-rc/src/models/operations/getonechunk.ts +0 -315
  343. package/packages/orq-rc/src/models/operations/getoneknowledge.ts +0 -537
  344. package/packages/orq-rc/src/models/operations/getoneprompt.ts +0 -1966
  345. package/packages/orq-rc/src/models/operations/getpromptversion.ts +0 -1962
  346. package/packages/orq-rc/src/models/operations/index.ts +0 -54
  347. package/packages/orq-rc/src/models/operations/listchunks.ts +0 -494
  348. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +0 -1077
  349. package/packages/orq-rc/src/models/operations/listdatasets.ts +0 -406
  350. package/packages/orq-rc/src/models/operations/listdatasources.ts +0 -447
  351. package/packages/orq-rc/src/models/operations/listknowledgebases.ts +0 -663
  352. package/packages/orq-rc/src/models/operations/listmodels.ts +0 -273
  353. package/packages/orq-rc/src/models/operations/listpromptversions.ts +0 -2096
  354. package/packages/orq-rc/src/models/operations/remoteconfigsgetconfig.ts +0 -190
  355. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +0 -930
  356. package/packages/orq-rc/src/models/operations/retrievedataset.ts +0 -288
  357. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +0 -273
  358. package/packages/orq-rc/src/models/operations/updatechunk.ts +0 -448
  359. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +0 -1741
  360. package/packages/orq-rc/src/models/operations/updatedataset.ts +0 -393
  361. package/packages/orq-rc/src/models/operations/updatedatasource.ts +0 -345
  362. package/packages/orq-rc/src/models/operations/updateknowledge.ts +0 -980
  363. package/packages/orq-rc/src/models/operations/updateprompt.ts +0 -3873
  364. package/packages/orq-rc/src/sdk/contacts.ts +0 -27
  365. package/packages/orq-rc/src/sdk/datasets.ts +0 -240
  366. package/packages/orq-rc/src/sdk/deployments.ts +0 -107
  367. package/packages/orq-rc/src/sdk/feedback.ts +0 -27
  368. package/packages/orq-rc/src/sdk/files.ts +0 -78
  369. package/packages/orq-rc/src/sdk/index.ts +0 -5
  370. package/packages/orq-rc/src/sdk/knowledge.ts +0 -264
  371. package/packages/orq-rc/src/sdk/metrics.ts +0 -27
  372. package/packages/orq-rc/src/sdk/models.ts +0 -25
  373. package/packages/orq-rc/src/sdk/prompts.ts +0 -126
  374. package/packages/orq-rc/src/sdk/remoteconfigs.ts +0 -24
  375. package/packages/orq-rc/src/sdk/sdk.ts +0 -61
  376. package/packages/orq-rc/src/types/async.ts +0 -68
  377. package/packages/orq-rc/src/types/blobs.ts +0 -31
  378. package/packages/orq-rc/src/types/constdatetime.ts +0 -15
  379. package/packages/orq-rc/src/types/enums.ts +0 -16
  380. package/packages/orq-rc/src/types/fp.ts +0 -50
  381. package/packages/orq-rc/src/types/index.ts +0 -11
  382. package/packages/orq-rc/src/types/operations.ts +0 -105
  383. package/packages/orq-rc/src/types/rfcdate.ts +0 -54
  384. package/packages/orq-rc/src/types/streams.ts +0 -21
  385. package/packages/orq-rc/tsconfig.json +0 -41
  386. /package/{packages/orq-rc/src → src}/funcs/datasetsCreateExperiment.ts +0 -0
  387. /package/{packages/orq-rc/src → src}/funcs/deploymentsCreateExperiment.ts +0 -0
  388. /package/{packages/orq-rc/src → src}/funcs/knowledgeSearch.ts +0 -0
  389. /package/{packages/orq-rc/src → src}/mcp-server/tools/datasetsCreateExperiment.ts +0 -0
  390. /package/{packages/orq-rc/src → src}/mcp-server/tools/deploymentsCreateExperiment.ts +0 -0
  391. /package/{packages/orq-rc/src → src}/mcp-server/tools/knowledgeSearch.ts +0 -0
  392. /package/{packages/orq-rc/src → src}/models/operations/createdatasetexperiment.ts +0 -0
  393. /package/{packages/orq-rc/src → src}/models/operations/createdeploymentexperiment.ts +0 -0
  394. /package/{packages/orq-rc/src → src}/models/operations/searchknowledge.ts +0 -0
@@ -56,23 +56,23 @@ export type PrefixMessagesToolMessage = {
56
56
  /**
57
57
  * The type of the content part.
58
58
  */
59
- export const DeploymentStream2DeploymentsRequestRequestBodyPrefixMessagesType =
59
+ export const DeploymentStream2DeploymentsRequestRequestBodyPrefixMessages4Type =
60
60
  {
61
61
  Refusal: "refusal",
62
62
  } as const;
63
63
  /**
64
64
  * The type of the content part.
65
65
  */
66
- export type DeploymentStream2DeploymentsRequestRequestBodyPrefixMessagesType =
66
+ export type DeploymentStream2DeploymentsRequestRequestBodyPrefixMessages4Type =
67
67
  ClosedEnum<
68
- typeof DeploymentStream2DeploymentsRequestRequestBodyPrefixMessagesType
68
+ typeof DeploymentStream2DeploymentsRequestRequestBodyPrefixMessages4Type
69
69
  >;
70
70
 
71
71
  export type DeploymentStream2RefusalContentPart = {
72
72
  /**
73
73
  * The type of the content part.
74
74
  */
75
- type: DeploymentStream2DeploymentsRequestRequestBodyPrefixMessagesType;
75
+ type: DeploymentStream2DeploymentsRequestRequestBodyPrefixMessages4Type;
76
76
  /**
77
77
  * The refusal message generated by the model.
78
78
  */
@@ -82,21 +82,23 @@ export type DeploymentStream2RefusalContentPart = {
82
82
  /**
83
83
  * The type of the content part.
84
84
  */
85
- export const DeploymentStream2DeploymentsRequestRequestBodyType = {
86
- Text: "text",
87
- } as const;
85
+ export const DeploymentStream2DeploymentsRequestRequestBodyPrefixMessagesType =
86
+ {
87
+ Text: "text",
88
+ } as const;
88
89
  /**
89
90
  * The type of the content part.
90
91
  */
91
- export type DeploymentStream2DeploymentsRequestRequestBodyType = ClosedEnum<
92
- typeof DeploymentStream2DeploymentsRequestRequestBodyType
93
- >;
92
+ export type DeploymentStream2DeploymentsRequestRequestBodyPrefixMessagesType =
93
+ ClosedEnum<
94
+ typeof DeploymentStream2DeploymentsRequestRequestBodyPrefixMessagesType
95
+ >;
94
96
 
95
97
  export type DeploymentStream2TextContentPart = {
96
98
  /**
97
99
  * The type of the content part.
98
100
  */
99
- type: DeploymentStream2DeploymentsRequestRequestBodyType;
101
+ type: DeploymentStream2DeploymentsRequestRequestBodyPrefixMessagesType;
100
102
  /**
101
103
  * The text content.
102
104
  */
@@ -207,6 +209,18 @@ export type PrefixMessagesAssistantMessage = {
207
209
  * The tool calls generated by the model, such as function calls.
208
210
  */
209
211
  toolCalls?: Array<PrefixMessagesToolCalls> | undefined;
212
+ /**
213
+ * Internal thought process of the model
214
+ */
215
+ reasoning?: string | undefined;
216
+ /**
217
+ * The signature holds a cryptographic token which verifies that the thinking block was generated by the model, and is verified when thinking is part of a multiturn conversation. This value should not be modified and should always be sent to the API when the reasoning is redacted. Currently only supported by `Anthropic`.
218
+ */
219
+ reasoningSignature?: string | undefined;
220
+ /**
221
+ * Occasionally the model's internal reasoning will be flagged by the safety systems of the provider. When this occurs, the provider will encrypt the reasoning. These redacted reasoning is decrypted when passed back to the API, allowing the model to continue its response without losing context.
222
+ */
223
+ redactedReasoning?: string | undefined;
210
224
  };
211
225
 
212
226
  /**
@@ -222,6 +236,38 @@ export type DeploymentStreamPrefixMessagesDeploymentsRequestRole = ClosedEnum<
222
236
  typeof DeploymentStreamPrefixMessagesDeploymentsRequestRole
223
237
  >;
224
238
 
239
+ /**
240
+ * The type of the content part. Always `file`.
241
+ */
242
+ export const DeploymentStream2DeploymentsRequestRequestBodyType = {
243
+ File: "file",
244
+ } as const;
245
+ /**
246
+ * The type of the content part. Always `file`.
247
+ */
248
+ export type DeploymentStream2DeploymentsRequestRequestBodyType = ClosedEnum<
249
+ typeof DeploymentStream2DeploymentsRequestRequestBodyType
250
+ >;
251
+
252
+ export type DeploymentStream2File = {
253
+ /**
254
+ * The base64 encoded file data, used when passing the file to the model as a string.
255
+ */
256
+ fileData: string;
257
+ /**
258
+ * The name of the file, used when passing the file to the model as a string.
259
+ */
260
+ filename?: string | undefined;
261
+ };
262
+
263
+ export type DeploymentStream24 = {
264
+ /**
265
+ * The type of the content part. Always `file`.
266
+ */
267
+ type: DeploymentStream2DeploymentsRequestRequestBodyType;
268
+ file: DeploymentStream2File;
269
+ };
270
+
225
271
  export const DeploymentStream2DeploymentsRequestType = {
226
272
  InputAudio: "input_audio",
227
273
  } as const;
@@ -310,14 +356,20 @@ export type DeploymentStream21 = {
310
356
  export type DeploymentStreamContent2 =
311
357
  | DeploymentStream21
312
358
  | DeploymentStream22
313
- | DeploymentStream23;
359
+ | DeploymentStream23
360
+ | DeploymentStream24;
314
361
 
315
362
  /**
316
363
  * The contents of the user message.
317
364
  */
318
365
  export type DeploymentStreamPrefixMessagesContent =
319
366
  | string
320
- | Array<DeploymentStream21 | DeploymentStream22 | DeploymentStream23>;
367
+ | Array<
368
+ | DeploymentStream21
369
+ | DeploymentStream22
370
+ | DeploymentStream23
371
+ | DeploymentStream24
372
+ >;
321
373
 
322
374
  export type PrefixMessagesUserMessage = {
323
375
  /**
@@ -333,7 +385,12 @@ export type PrefixMessagesUserMessage = {
333
385
  */
334
386
  content:
335
387
  | string
336
- | Array<DeploymentStream21 | DeploymentStream22 | DeploymentStream23>;
388
+ | Array<
389
+ | DeploymentStream21
390
+ | DeploymentStream22
391
+ | DeploymentStream23
392
+ | DeploymentStream24
393
+ >;
337
394
  };
338
395
 
339
396
  /**
@@ -588,6 +645,18 @@ export type DeploymentStreamMessagesAssistantMessage = {
588
645
  * The tool calls generated by the model, such as function calls.
589
646
  */
590
647
  toolCalls?: Array<DeploymentStreamMessagesToolCalls> | undefined;
648
+ /**
649
+ * Internal thought process of the model
650
+ */
651
+ reasoning?: string | undefined;
652
+ /**
653
+ * The signature holds a cryptographic token which verifies that the thinking block was generated by the model, and is verified when thinking is part of a multiturn conversation. This value should not be modified and should always be sent to the API when the reasoning is redacted. Currently only supported by `Anthropic`.
654
+ */
655
+ reasoningSignature?: string | undefined;
656
+ /**
657
+ * Occasionally the model's internal reasoning will be flagged by the safety systems of the provider. When this occurs, the provider will encrypt the reasoning. These redacted reasoning is decrypted when passed back to the API, allowing the model to continue its response without losing context.
658
+ */
659
+ redactedReasoning?: string | undefined;
591
660
  };
592
661
 
593
662
  /**
@@ -603,6 +672,40 @@ export type DeploymentStreamMessagesDeploymentsRequestRole = ClosedEnum<
603
672
  typeof DeploymentStreamMessagesDeploymentsRequestRole
604
673
  >;
605
674
 
675
+ /**
676
+ * The type of the content part. Always `file`.
677
+ */
678
+ export const DeploymentStream2DeploymentsRequestRequestBodyMessages3Content4Type =
679
+ {
680
+ File: "file",
681
+ } as const;
682
+ /**
683
+ * The type of the content part. Always `file`.
684
+ */
685
+ export type DeploymentStream2DeploymentsRequestRequestBodyMessages3Content4Type =
686
+ ClosedEnum<
687
+ typeof DeploymentStream2DeploymentsRequestRequestBodyMessages3Content4Type
688
+ >;
689
+
690
+ export type DeploymentStream2DeploymentsFile = {
691
+ /**
692
+ * The base64 encoded file data, used when passing the file to the model as a string.
693
+ */
694
+ fileData: string;
695
+ /**
696
+ * The name of the file, used when passing the file to the model as a string.
697
+ */
698
+ filename?: string | undefined;
699
+ };
700
+
701
+ export type DeploymentStream2Deployments4 = {
702
+ /**
703
+ * The type of the content part. Always `file`.
704
+ */
705
+ type: DeploymentStream2DeploymentsRequestRequestBodyMessages3Content4Type;
706
+ file: DeploymentStream2DeploymentsFile;
707
+ };
708
+
606
709
  export const DeploymentStream2DeploymentsRequestRequestBodyMessages3ContentType =
607
710
  {
608
711
  InputAudio: "input_audio",
@@ -695,7 +798,8 @@ export type DeploymentStream2Deployments1 = {
695
798
  export type DeploymentStreamContentDeploymentsRequest2 =
696
799
  | DeploymentStream2Deployments1
697
800
  | DeploymentStream2Deployments2
698
- | DeploymentStream2Deployments3;
801
+ | DeploymentStream2Deployments3
802
+ | DeploymentStream2Deployments4;
699
803
 
700
804
  /**
701
805
  * The contents of the user message.
@@ -706,6 +810,7 @@ export type DeploymentStreamMessagesContent =
706
810
  | DeploymentStream2Deployments1
707
811
  | DeploymentStream2Deployments2
708
812
  | DeploymentStream2Deployments3
813
+ | DeploymentStream2Deployments4
709
814
  >;
710
815
 
711
816
  export type DeploymentStreamMessagesUserMessage = {
@@ -726,6 +831,7 @@ export type DeploymentStreamMessagesUserMessage = {
726
831
  | DeploymentStream2Deployments1
727
832
  | DeploymentStream2Deployments2
728
833
  | DeploymentStream2Deployments3
834
+ | DeploymentStream2Deployments4
729
835
  >;
730
836
  };
731
837
 
@@ -843,6 +949,326 @@ export type DeploymentStreamThread = {
843
949
  tags?: Array<string> | undefined;
844
950
  };
845
951
 
952
+ /**
953
+ * Exists
954
+ */
955
+ export type DeploymentStreamDollarOrDollarExists = {
956
+ dollarExists: boolean;
957
+ };
958
+
959
+ export type DeploymentStreamDollarOrDeploymentsDollarNin =
960
+ | string
961
+ | number
962
+ | boolean;
963
+
964
+ /**
965
+ * Not in
966
+ */
967
+ export type DeploymentStreamDollarOrDollarNin = {
968
+ dollarNin: Array<string | number | boolean>;
969
+ };
970
+
971
+ export type DeploymentStreamDollarOrDeploymentsDollarIn =
972
+ | string
973
+ | number
974
+ | boolean;
975
+
976
+ /**
977
+ * In
978
+ */
979
+ export type DeploymentStreamDollarOrDollarIn = {
980
+ dollarIn: Array<string | number | boolean>;
981
+ };
982
+
983
+ /**
984
+ * Less than or equal to
985
+ */
986
+ export type DeploymentStreamDollarOrDollarLte = {
987
+ dollarLte: number;
988
+ };
989
+
990
+ /**
991
+ * Less than
992
+ */
993
+ export type DeploymentStreamDollarOrDollarLt = {
994
+ dollarLt: number;
995
+ };
996
+
997
+ /**
998
+ * Greater than or equal to
999
+ */
1000
+ export type DeploymentStreamDollarOrDollarGte = {
1001
+ dollarGte: number;
1002
+ };
1003
+
1004
+ export type DeploymentStreamDollarOr3 = {
1005
+ dollarGt: number;
1006
+ };
1007
+
1008
+ export type DeploymentStreamDollarOrDeploymentsDollarNe =
1009
+ | string
1010
+ | number
1011
+ | boolean;
1012
+
1013
+ /**
1014
+ * Not equal to
1015
+ */
1016
+ export type DeploymentStreamDollarOrDollarNe = {
1017
+ dollarNe: string | number | boolean;
1018
+ };
1019
+
1020
+ export type DeploymentStreamDollarOrDeploymentsDollarEq =
1021
+ | string
1022
+ | number
1023
+ | boolean;
1024
+
1025
+ /**
1026
+ * Equal to
1027
+ */
1028
+ export type DeploymentStreamDollarOrDollarEq = {
1029
+ dollarEq: string | number | boolean;
1030
+ };
1031
+
1032
+ export type DeploymentStreamKnowledgeFilterDeploymentsDollarOr =
1033
+ | DeploymentStreamDollarOrDollarEq
1034
+ | DeploymentStreamDollarOrDollarNe
1035
+ | DeploymentStreamDollarOr3
1036
+ | DeploymentStreamDollarOrDollarGte
1037
+ | DeploymentStreamDollarOrDollarLt
1038
+ | DeploymentStreamDollarOrDollarLte
1039
+ | DeploymentStreamDollarOrDollarIn
1040
+ | DeploymentStreamDollarOrDollarNin
1041
+ | DeploymentStreamDollarOrDollarExists;
1042
+
1043
+ /**
1044
+ * Or
1045
+ */
1046
+ export type DeploymentStreamKnowledgeFilterDollarOr = {
1047
+ dollarOr: Array<
1048
+ {
1049
+ [k: string]:
1050
+ | DeploymentStreamDollarOrDollarEq
1051
+ | DeploymentStreamDollarOrDollarNe
1052
+ | DeploymentStreamDollarOr3
1053
+ | DeploymentStreamDollarOrDollarGte
1054
+ | DeploymentStreamDollarOrDollarLt
1055
+ | DeploymentStreamDollarOrDollarLte
1056
+ | DeploymentStreamDollarOrDollarIn
1057
+ | DeploymentStreamDollarOrDollarNin
1058
+ | DeploymentStreamDollarOrDollarExists;
1059
+ }
1060
+ >;
1061
+ };
1062
+
1063
+ /**
1064
+ * Exists
1065
+ */
1066
+ export type DeploymentStreamDollarAndDollarExists = {
1067
+ dollarExists: boolean;
1068
+ };
1069
+
1070
+ export type DeploymentStreamDollarAndDeploymentsDollarNin =
1071
+ | string
1072
+ | number
1073
+ | boolean;
1074
+
1075
+ /**
1076
+ * Not in
1077
+ */
1078
+ export type DeploymentStreamDollarAndDollarNin = {
1079
+ dollarNin: Array<string | number | boolean>;
1080
+ };
1081
+
1082
+ export type DeploymentStreamDollarAndDeploymentsDollarIn =
1083
+ | string
1084
+ | number
1085
+ | boolean;
1086
+
1087
+ /**
1088
+ * In
1089
+ */
1090
+ export type DeploymentStreamDollarAndDollarIn = {
1091
+ dollarIn: Array<string | number | boolean>;
1092
+ };
1093
+
1094
+ /**
1095
+ * Less than or equal to
1096
+ */
1097
+ export type DeploymentStreamDollarAndDollarLte = {
1098
+ dollarLte: number;
1099
+ };
1100
+
1101
+ /**
1102
+ * Less than
1103
+ */
1104
+ export type DeploymentStreamDollarAndDollarLt = {
1105
+ dollarLt: number;
1106
+ };
1107
+
1108
+ /**
1109
+ * Greater than or equal to
1110
+ */
1111
+ export type DeploymentStreamDollarAndDollarGte = {
1112
+ dollarGte: number;
1113
+ };
1114
+
1115
+ export type DeploymentStreamDollarAnd3 = {
1116
+ dollarGt: number;
1117
+ };
1118
+
1119
+ export type DeploymentStreamDollarAndDeploymentsDollarNe =
1120
+ | string
1121
+ | number
1122
+ | boolean;
1123
+
1124
+ /**
1125
+ * Not equal to
1126
+ */
1127
+ export type DeploymentStreamDollarAndDollarNe = {
1128
+ dollarNe: string | number | boolean;
1129
+ };
1130
+
1131
+ export type DeploymentStreamDollarAndDeploymentsDollarEq =
1132
+ | string
1133
+ | number
1134
+ | boolean;
1135
+
1136
+ /**
1137
+ * Equal to
1138
+ */
1139
+ export type DeploymentStreamDollarAndDollarEq = {
1140
+ dollarEq: string | number | boolean;
1141
+ };
1142
+
1143
+ export type DeploymentStreamKnowledgeFilterDeploymentsDollarAnd =
1144
+ | DeploymentStreamDollarAndDollarEq
1145
+ | DeploymentStreamDollarAndDollarNe
1146
+ | DeploymentStreamDollarAnd3
1147
+ | DeploymentStreamDollarAndDollarGte
1148
+ | DeploymentStreamDollarAndDollarLt
1149
+ | DeploymentStreamDollarAndDollarLte
1150
+ | DeploymentStreamDollarAndDollarIn
1151
+ | DeploymentStreamDollarAndDollarNin
1152
+ | DeploymentStreamDollarAndDollarExists;
1153
+
1154
+ /**
1155
+ * And
1156
+ */
1157
+ export type DeploymentStreamKnowledgeFilterDollarAnd = {
1158
+ dollarAnd: Array<
1159
+ {
1160
+ [k: string]:
1161
+ | DeploymentStreamDollarAndDollarEq
1162
+ | DeploymentStreamDollarAndDollarNe
1163
+ | DeploymentStreamDollarAnd3
1164
+ | DeploymentStreamDollarAndDollarGte
1165
+ | DeploymentStreamDollarAndDollarLt
1166
+ | DeploymentStreamDollarAndDollarLte
1167
+ | DeploymentStreamDollarAndDollarIn
1168
+ | DeploymentStreamDollarAndDollarNin
1169
+ | DeploymentStreamDollarAndDollarExists;
1170
+ }
1171
+ >;
1172
+ };
1173
+
1174
+ /**
1175
+ * Exists
1176
+ */
1177
+ export type OneDollarExists = {
1178
+ dollarExists: boolean;
1179
+ };
1180
+
1181
+ export type DeploymentStream1DeploymentsDollarNin = string | number | boolean;
1182
+
1183
+ /**
1184
+ * Not in
1185
+ */
1186
+ export type DeploymentStream1DollarNin = {
1187
+ dollarNin: Array<string | number | boolean>;
1188
+ };
1189
+
1190
+ export type DeploymentStream1DeploymentsDollarIn = string | number | boolean;
1191
+
1192
+ /**
1193
+ * In
1194
+ */
1195
+ export type DeploymentStream1DollarIn = {
1196
+ dollarIn: Array<string | number | boolean>;
1197
+ };
1198
+
1199
+ /**
1200
+ * Less than or equal to
1201
+ */
1202
+ export type OneDollarLte = {
1203
+ dollarLte: number;
1204
+ };
1205
+
1206
+ /**
1207
+ * Less than
1208
+ */
1209
+ export type OneDollarLt = {
1210
+ dollarLt: number;
1211
+ };
1212
+
1213
+ /**
1214
+ * Greater than or equal to
1215
+ */
1216
+ export type OneDollarGte = {
1217
+ dollarGte: number;
1218
+ };
1219
+
1220
+ export type DeploymentStream13 = {
1221
+ dollarGt: number;
1222
+ };
1223
+
1224
+ export type DeploymentStream1DeploymentsDollarNe = string | number | boolean;
1225
+
1226
+ /**
1227
+ * Not equal to
1228
+ */
1229
+ export type DeploymentStream1DollarNe = {
1230
+ dollarNe: string | number | boolean;
1231
+ };
1232
+
1233
+ export type DeploymentStream1DeploymentsDollarEq = string | number | boolean;
1234
+
1235
+ /**
1236
+ * Equal to
1237
+ */
1238
+ export type DeploymentStream1DollarEq = {
1239
+ dollarEq: string | number | boolean;
1240
+ };
1241
+
1242
+ export type DeploymentStreamKnowledgeFilter1 =
1243
+ | DeploymentStream1DollarEq
1244
+ | DeploymentStream1DollarNe
1245
+ | DeploymentStream13
1246
+ | OneDollarGte
1247
+ | OneDollarLt
1248
+ | OneDollarLte
1249
+ | DeploymentStream1DollarIn
1250
+ | DeploymentStream1DollarNin
1251
+ | OneDollarExists;
1252
+
1253
+ /**
1254
+ * A filter to apply to the knowledge base chunk metadata when using knowledge bases in the deployment.
1255
+ */
1256
+ export type DeploymentStreamKnowledgeFilter =
1257
+ | DeploymentStreamKnowledgeFilterDollarAnd
1258
+ | DeploymentStreamKnowledgeFilterDollarOr
1259
+ | {
1260
+ [k: string]:
1261
+ | DeploymentStream1DollarEq
1262
+ | DeploymentStream1DollarNe
1263
+ | DeploymentStream13
1264
+ | OneDollarGte
1265
+ | OneDollarLt
1266
+ | OneDollarLte
1267
+ | DeploymentStream1DollarIn
1268
+ | DeploymentStream1DollarNin
1269
+ | OneDollarExists;
1270
+ };
1271
+
846
1272
  export type DeploymentStreamRequestBody = {
847
1273
  /**
848
1274
  * The deployment key to invoke
@@ -853,7 +1279,7 @@ export type DeploymentStreamRequestBody = {
853
1279
  */
854
1280
  inputs?: { [k: string]: string | number | boolean } | undefined;
855
1281
  /**
856
- * Key-value pairs that match your data model and fields declared in your configuration matrix. If you send multiple prompt keys, the context will be applied to the evaluation of each key.
1282
+ * Key-value pairs that match your data model and fields declared in your deployment routing configuration
857
1283
  */
858
1284
  context?: { [k: string]: any } | undefined;
859
1285
  /**
@@ -898,6 +1324,25 @@ export type DeploymentStreamRequestBody = {
898
1324
  documents?: Array<DeploymentStreamDocuments> | undefined;
899
1325
  invokeOptions?: DeploymentStreamInvokeOptions | undefined;
900
1326
  thread?: DeploymentStreamThread | undefined;
1327
+ /**
1328
+ * A filter to apply to the knowledge base chunk metadata when using knowledge bases in the deployment.
1329
+ */
1330
+ knowledgeFilter?:
1331
+ | DeploymentStreamKnowledgeFilterDollarAnd
1332
+ | DeploymentStreamKnowledgeFilterDollarOr
1333
+ | {
1334
+ [k: string]:
1335
+ | DeploymentStream1DollarEq
1336
+ | DeploymentStream1DollarNe
1337
+ | DeploymentStream13
1338
+ | OneDollarGte
1339
+ | OneDollarLt
1340
+ | OneDollarLte
1341
+ | DeploymentStream1DollarIn
1342
+ | DeploymentStream1DollarNin
1343
+ | OneDollarExists;
1344
+ }
1345
+ | undefined;
901
1346
  };
902
1347
 
903
1348
  /**
@@ -1427,31 +1872,31 @@ export function prefixMessagesToolMessageFromJSON(
1427
1872
  }
1428
1873
 
1429
1874
  /** @internal */
1430
- export const DeploymentStream2DeploymentsRequestRequestBodyPrefixMessagesType$inboundSchema:
1875
+ export const DeploymentStream2DeploymentsRequestRequestBodyPrefixMessages4Type$inboundSchema:
1431
1876
  z.ZodNativeEnum<
1432
- typeof DeploymentStream2DeploymentsRequestRequestBodyPrefixMessagesType
1877
+ typeof DeploymentStream2DeploymentsRequestRequestBodyPrefixMessages4Type
1433
1878
  > = z.nativeEnum(
1434
- DeploymentStream2DeploymentsRequestRequestBodyPrefixMessagesType,
1879
+ DeploymentStream2DeploymentsRequestRequestBodyPrefixMessages4Type,
1435
1880
  );
1436
1881
 
1437
1882
  /** @internal */
1438
- export const DeploymentStream2DeploymentsRequestRequestBodyPrefixMessagesType$outboundSchema:
1883
+ export const DeploymentStream2DeploymentsRequestRequestBodyPrefixMessages4Type$outboundSchema:
1439
1884
  z.ZodNativeEnum<
1440
- typeof DeploymentStream2DeploymentsRequestRequestBodyPrefixMessagesType
1885
+ typeof DeploymentStream2DeploymentsRequestRequestBodyPrefixMessages4Type
1441
1886
  > =
1442
- DeploymentStream2DeploymentsRequestRequestBodyPrefixMessagesType$inboundSchema;
1887
+ DeploymentStream2DeploymentsRequestRequestBodyPrefixMessages4Type$inboundSchema;
1443
1888
 
1444
1889
  /**
1445
1890
  * @internal
1446
1891
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1447
1892
  */
1448
- export namespace DeploymentStream2DeploymentsRequestRequestBodyPrefixMessagesType$ {
1449
- /** @deprecated use `DeploymentStream2DeploymentsRequestRequestBodyPrefixMessagesType$inboundSchema` instead. */
1893
+ export namespace DeploymentStream2DeploymentsRequestRequestBodyPrefixMessages4Type$ {
1894
+ /** @deprecated use `DeploymentStream2DeploymentsRequestRequestBodyPrefixMessages4Type$inboundSchema` instead. */
1450
1895
  export const inboundSchema =
1451
- DeploymentStream2DeploymentsRequestRequestBodyPrefixMessagesType$inboundSchema;
1452
- /** @deprecated use `DeploymentStream2DeploymentsRequestRequestBodyPrefixMessagesType$outboundSchema` instead. */
1896
+ DeploymentStream2DeploymentsRequestRequestBodyPrefixMessages4Type$inboundSchema;
1897
+ /** @deprecated use `DeploymentStream2DeploymentsRequestRequestBodyPrefixMessages4Type$outboundSchema` instead. */
1453
1898
  export const outboundSchema =
1454
- DeploymentStream2DeploymentsRequestRequestBodyPrefixMessagesType$outboundSchema;
1899
+ DeploymentStream2DeploymentsRequestRequestBodyPrefixMessages4Type$outboundSchema;
1455
1900
  }
1456
1901
 
1457
1902
  /** @internal */
@@ -1461,7 +1906,7 @@ export const DeploymentStream2RefusalContentPart$inboundSchema: z.ZodType<
1461
1906
  unknown
1462
1907
  > = z.object({
1463
1908
  type:
1464
- DeploymentStream2DeploymentsRequestRequestBodyPrefixMessagesType$inboundSchema,
1909
+ DeploymentStream2DeploymentsRequestRequestBodyPrefixMessages4Type$inboundSchema,
1465
1910
  refusal: z.string(),
1466
1911
  });
1467
1912
 
@@ -1478,7 +1923,7 @@ export const DeploymentStream2RefusalContentPart$outboundSchema: z.ZodType<
1478
1923
  DeploymentStream2RefusalContentPart
1479
1924
  > = z.object({
1480
1925
  type:
1481
- DeploymentStream2DeploymentsRequestRequestBodyPrefixMessagesType$outboundSchema,
1926
+ DeploymentStream2DeploymentsRequestRequestBodyPrefixMessages4Type$outboundSchema,
1482
1927
  refusal: z.string(),
1483
1928
  });
1484
1929
 
@@ -1519,26 +1964,31 @@ export function deploymentStream2RefusalContentPartFromJSON(
1519
1964
  }
1520
1965
 
1521
1966
  /** @internal */
1522
- export const DeploymentStream2DeploymentsRequestRequestBodyType$inboundSchema:
1523
- z.ZodNativeEnum<typeof DeploymentStream2DeploymentsRequestRequestBodyType> = z
1524
- .nativeEnum(DeploymentStream2DeploymentsRequestRequestBodyType);
1967
+ export const DeploymentStream2DeploymentsRequestRequestBodyPrefixMessagesType$inboundSchema:
1968
+ z.ZodNativeEnum<
1969
+ typeof DeploymentStream2DeploymentsRequestRequestBodyPrefixMessagesType
1970
+ > = z.nativeEnum(
1971
+ DeploymentStream2DeploymentsRequestRequestBodyPrefixMessagesType,
1972
+ );
1525
1973
 
1526
1974
  /** @internal */
1527
- export const DeploymentStream2DeploymentsRequestRequestBodyType$outboundSchema:
1528
- z.ZodNativeEnum<typeof DeploymentStream2DeploymentsRequestRequestBodyType> =
1529
- DeploymentStream2DeploymentsRequestRequestBodyType$inboundSchema;
1975
+ export const DeploymentStream2DeploymentsRequestRequestBodyPrefixMessagesType$outboundSchema:
1976
+ z.ZodNativeEnum<
1977
+ typeof DeploymentStream2DeploymentsRequestRequestBodyPrefixMessagesType
1978
+ > =
1979
+ DeploymentStream2DeploymentsRequestRequestBodyPrefixMessagesType$inboundSchema;
1530
1980
 
1531
1981
  /**
1532
1982
  * @internal
1533
1983
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1534
1984
  */
1535
- export namespace DeploymentStream2DeploymentsRequestRequestBodyType$ {
1536
- /** @deprecated use `DeploymentStream2DeploymentsRequestRequestBodyType$inboundSchema` instead. */
1985
+ export namespace DeploymentStream2DeploymentsRequestRequestBodyPrefixMessagesType$ {
1986
+ /** @deprecated use `DeploymentStream2DeploymentsRequestRequestBodyPrefixMessagesType$inboundSchema` instead. */
1537
1987
  export const inboundSchema =
1538
- DeploymentStream2DeploymentsRequestRequestBodyType$inboundSchema;
1539
- /** @deprecated use `DeploymentStream2DeploymentsRequestRequestBodyType$outboundSchema` instead. */
1988
+ DeploymentStream2DeploymentsRequestRequestBodyPrefixMessagesType$inboundSchema;
1989
+ /** @deprecated use `DeploymentStream2DeploymentsRequestRequestBodyPrefixMessagesType$outboundSchema` instead. */
1540
1990
  export const outboundSchema =
1541
- DeploymentStream2DeploymentsRequestRequestBodyType$outboundSchema;
1991
+ DeploymentStream2DeploymentsRequestRequestBodyPrefixMessagesType$outboundSchema;
1542
1992
  }
1543
1993
 
1544
1994
  /** @internal */
@@ -1547,7 +1997,8 @@ export const DeploymentStream2TextContentPart$inboundSchema: z.ZodType<
1547
1997
  z.ZodTypeDef,
1548
1998
  unknown
1549
1999
  > = z.object({
1550
- type: DeploymentStream2DeploymentsRequestRequestBodyType$inboundSchema,
2000
+ type:
2001
+ DeploymentStream2DeploymentsRequestRequestBodyPrefixMessagesType$inboundSchema,
1551
2002
  text: z.string(),
1552
2003
  });
1553
2004
 
@@ -1563,7 +2014,8 @@ export const DeploymentStream2TextContentPart$outboundSchema: z.ZodType<
1563
2014
  z.ZodTypeDef,
1564
2015
  DeploymentStream2TextContentPart
1565
2016
  > = z.object({
1566
- type: DeploymentStream2DeploymentsRequestRequestBodyType$outboundSchema,
2017
+ type:
2018
+ DeploymentStream2DeploymentsRequestRequestBodyPrefixMessagesType$outboundSchema,
1567
2019
  text: z.string(),
1568
2020
  });
1569
2021
 
@@ -1985,9 +2437,14 @@ export const PrefixMessagesAssistantMessage$inboundSchema: z.ZodType<
1985
2437
  audio: z.nullable(z.lazy(() => PrefixMessagesAudio$inboundSchema)).optional(),
1986
2438
  tool_calls: z.array(z.lazy(() => PrefixMessagesToolCalls$inboundSchema))
1987
2439
  .optional(),
2440
+ reasoning: z.string().optional(),
2441
+ reasoning_signature: z.string().optional(),
2442
+ redacted_reasoning: z.string().optional(),
1988
2443
  }).transform((v) => {
1989
2444
  return remap$(v, {
1990
2445
  "tool_calls": "toolCalls",
2446
+ "reasoning_signature": "reasoningSignature",
2447
+ "redacted_reasoning": "redactedReasoning",
1991
2448
  });
1992
2449
  });
1993
2450
 
@@ -2006,6 +2463,9 @@ export type PrefixMessagesAssistantMessage$Outbound = {
2006
2463
  name?: string | undefined;
2007
2464
  audio?: PrefixMessagesAudio$Outbound | null | undefined;
2008
2465
  tool_calls?: Array<PrefixMessagesToolCalls$Outbound> | undefined;
2466
+ reasoning?: string | undefined;
2467
+ reasoning_signature?: string | undefined;
2468
+ redacted_reasoning?: string | undefined;
2009
2469
  };
2010
2470
 
2011
2471
  /** @internal */
@@ -2033,9 +2493,14 @@ export const PrefixMessagesAssistantMessage$outboundSchema: z.ZodType<
2033
2493
  .optional(),
2034
2494
  toolCalls: z.array(z.lazy(() => PrefixMessagesToolCalls$outboundSchema))
2035
2495
  .optional(),
2496
+ reasoning: z.string().optional(),
2497
+ reasoningSignature: z.string().optional(),
2498
+ redactedReasoning: z.string().optional(),
2036
2499
  }).transform((v) => {
2037
2500
  return remap$(v, {
2038
2501
  toolCalls: "tool_calls",
2502
+ reasoningSignature: "reasoning_signature",
2503
+ redactedReasoning: "redacted_reasoning",
2039
2504
  });
2040
2505
  });
2041
2506
 
@@ -2095,6 +2560,151 @@ export namespace DeploymentStreamPrefixMessagesDeploymentsRequestRole$ {
2095
2560
  DeploymentStreamPrefixMessagesDeploymentsRequestRole$outboundSchema;
2096
2561
  }
2097
2562
 
2563
+ /** @internal */
2564
+ export const DeploymentStream2DeploymentsRequestRequestBodyType$inboundSchema:
2565
+ z.ZodNativeEnum<typeof DeploymentStream2DeploymentsRequestRequestBodyType> = z
2566
+ .nativeEnum(DeploymentStream2DeploymentsRequestRequestBodyType);
2567
+
2568
+ /** @internal */
2569
+ export const DeploymentStream2DeploymentsRequestRequestBodyType$outboundSchema:
2570
+ z.ZodNativeEnum<typeof DeploymentStream2DeploymentsRequestRequestBodyType> =
2571
+ DeploymentStream2DeploymentsRequestRequestBodyType$inboundSchema;
2572
+
2573
+ /**
2574
+ * @internal
2575
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2576
+ */
2577
+ export namespace DeploymentStream2DeploymentsRequestRequestBodyType$ {
2578
+ /** @deprecated use `DeploymentStream2DeploymentsRequestRequestBodyType$inboundSchema` instead. */
2579
+ export const inboundSchema =
2580
+ DeploymentStream2DeploymentsRequestRequestBodyType$inboundSchema;
2581
+ /** @deprecated use `DeploymentStream2DeploymentsRequestRequestBodyType$outboundSchema` instead. */
2582
+ export const outboundSchema =
2583
+ DeploymentStream2DeploymentsRequestRequestBodyType$outboundSchema;
2584
+ }
2585
+
2586
+ /** @internal */
2587
+ export const DeploymentStream2File$inboundSchema: z.ZodType<
2588
+ DeploymentStream2File,
2589
+ z.ZodTypeDef,
2590
+ unknown
2591
+ > = z.object({
2592
+ file_data: z.string(),
2593
+ filename: z.string().optional(),
2594
+ }).transform((v) => {
2595
+ return remap$(v, {
2596
+ "file_data": "fileData",
2597
+ });
2598
+ });
2599
+
2600
+ /** @internal */
2601
+ export type DeploymentStream2File$Outbound = {
2602
+ file_data: string;
2603
+ filename?: string | undefined;
2604
+ };
2605
+
2606
+ /** @internal */
2607
+ export const DeploymentStream2File$outboundSchema: z.ZodType<
2608
+ DeploymentStream2File$Outbound,
2609
+ z.ZodTypeDef,
2610
+ DeploymentStream2File
2611
+ > = z.object({
2612
+ fileData: z.string(),
2613
+ filename: z.string().optional(),
2614
+ }).transform((v) => {
2615
+ return remap$(v, {
2616
+ fileData: "file_data",
2617
+ });
2618
+ });
2619
+
2620
+ /**
2621
+ * @internal
2622
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2623
+ */
2624
+ export namespace DeploymentStream2File$ {
2625
+ /** @deprecated use `DeploymentStream2File$inboundSchema` instead. */
2626
+ export const inboundSchema = DeploymentStream2File$inboundSchema;
2627
+ /** @deprecated use `DeploymentStream2File$outboundSchema` instead. */
2628
+ export const outboundSchema = DeploymentStream2File$outboundSchema;
2629
+ /** @deprecated use `DeploymentStream2File$Outbound` instead. */
2630
+ export type Outbound = DeploymentStream2File$Outbound;
2631
+ }
2632
+
2633
+ export function deploymentStream2FileToJSON(
2634
+ deploymentStream2File: DeploymentStream2File,
2635
+ ): string {
2636
+ return JSON.stringify(
2637
+ DeploymentStream2File$outboundSchema.parse(deploymentStream2File),
2638
+ );
2639
+ }
2640
+
2641
+ export function deploymentStream2FileFromJSON(
2642
+ jsonString: string,
2643
+ ): SafeParseResult<DeploymentStream2File, SDKValidationError> {
2644
+ return safeParse(
2645
+ jsonString,
2646
+ (x) => DeploymentStream2File$inboundSchema.parse(JSON.parse(x)),
2647
+ `Failed to parse 'DeploymentStream2File' from JSON`,
2648
+ );
2649
+ }
2650
+
2651
+ /** @internal */
2652
+ export const DeploymentStream24$inboundSchema: z.ZodType<
2653
+ DeploymentStream24,
2654
+ z.ZodTypeDef,
2655
+ unknown
2656
+ > = z.object({
2657
+ type: DeploymentStream2DeploymentsRequestRequestBodyType$inboundSchema,
2658
+ file: z.lazy(() => DeploymentStream2File$inboundSchema),
2659
+ });
2660
+
2661
+ /** @internal */
2662
+ export type DeploymentStream24$Outbound = {
2663
+ type: string;
2664
+ file: DeploymentStream2File$Outbound;
2665
+ };
2666
+
2667
+ /** @internal */
2668
+ export const DeploymentStream24$outboundSchema: z.ZodType<
2669
+ DeploymentStream24$Outbound,
2670
+ z.ZodTypeDef,
2671
+ DeploymentStream24
2672
+ > = z.object({
2673
+ type: DeploymentStream2DeploymentsRequestRequestBodyType$outboundSchema,
2674
+ file: z.lazy(() => DeploymentStream2File$outboundSchema),
2675
+ });
2676
+
2677
+ /**
2678
+ * @internal
2679
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2680
+ */
2681
+ export namespace DeploymentStream24$ {
2682
+ /** @deprecated use `DeploymentStream24$inboundSchema` instead. */
2683
+ export const inboundSchema = DeploymentStream24$inboundSchema;
2684
+ /** @deprecated use `DeploymentStream24$outboundSchema` instead. */
2685
+ export const outboundSchema = DeploymentStream24$outboundSchema;
2686
+ /** @deprecated use `DeploymentStream24$Outbound` instead. */
2687
+ export type Outbound = DeploymentStream24$Outbound;
2688
+ }
2689
+
2690
+ export function deploymentStream24ToJSON(
2691
+ deploymentStream24: DeploymentStream24,
2692
+ ): string {
2693
+ return JSON.stringify(
2694
+ DeploymentStream24$outboundSchema.parse(deploymentStream24),
2695
+ );
2696
+ }
2697
+
2698
+ export function deploymentStream24FromJSON(
2699
+ jsonString: string,
2700
+ ): SafeParseResult<DeploymentStream24, SDKValidationError> {
2701
+ return safeParse(
2702
+ jsonString,
2703
+ (x) => DeploymentStream24$inboundSchema.parse(JSON.parse(x)),
2704
+ `Failed to parse 'DeploymentStream24' from JSON`,
2705
+ );
2706
+ }
2707
+
2098
2708
  /** @internal */
2099
2709
  export const DeploymentStream2DeploymentsRequestType$inboundSchema:
2100
2710
  z.ZodNativeEnum<typeof DeploymentStream2DeploymentsRequestType> = z
@@ -2514,13 +3124,15 @@ export const DeploymentStreamContent2$inboundSchema: z.ZodType<
2514
3124
  z.lazy(() => DeploymentStream21$inboundSchema),
2515
3125
  z.lazy(() => DeploymentStream22$inboundSchema),
2516
3126
  z.lazy(() => DeploymentStream23$inboundSchema),
3127
+ z.lazy(() => DeploymentStream24$inboundSchema),
2517
3128
  ]);
2518
3129
 
2519
3130
  /** @internal */
2520
3131
  export type DeploymentStreamContent2$Outbound =
2521
3132
  | DeploymentStream21$Outbound
2522
3133
  | DeploymentStream22$Outbound
2523
- | DeploymentStream23$Outbound;
3134
+ | DeploymentStream23$Outbound
3135
+ | DeploymentStream24$Outbound;
2524
3136
 
2525
3137
  /** @internal */
2526
3138
  export const DeploymentStreamContent2$outboundSchema: z.ZodType<
@@ -2531,6 +3143,7 @@ export const DeploymentStreamContent2$outboundSchema: z.ZodType<
2531
3143
  z.lazy(() => DeploymentStream21$outboundSchema),
2532
3144
  z.lazy(() => DeploymentStream22$outboundSchema),
2533
3145
  z.lazy(() => DeploymentStream23$outboundSchema),
3146
+ z.lazy(() => DeploymentStream24$outboundSchema),
2534
3147
  ]);
2535
3148
 
2536
3149
  /**
@@ -2575,6 +3188,7 @@ export const DeploymentStreamPrefixMessagesContent$inboundSchema: z.ZodType<
2575
3188
  z.lazy(() => DeploymentStream21$inboundSchema),
2576
3189
  z.lazy(() => DeploymentStream22$inboundSchema),
2577
3190
  z.lazy(() => DeploymentStream23$inboundSchema),
3191
+ z.lazy(() => DeploymentStream24$inboundSchema),
2578
3192
  ])),
2579
3193
  ]);
2580
3194
 
@@ -2585,6 +3199,7 @@ export type DeploymentStreamPrefixMessagesContent$Outbound =
2585
3199
  | DeploymentStream21$Outbound
2586
3200
  | DeploymentStream22$Outbound
2587
3201
  | DeploymentStream23$Outbound
3202
+ | DeploymentStream24$Outbound
2588
3203
  >;
2589
3204
 
2590
3205
  /** @internal */
@@ -2598,6 +3213,7 @@ export const DeploymentStreamPrefixMessagesContent$outboundSchema: z.ZodType<
2598
3213
  z.lazy(() => DeploymentStream21$outboundSchema),
2599
3214
  z.lazy(() => DeploymentStream22$outboundSchema),
2600
3215
  z.lazy(() => DeploymentStream23$outboundSchema),
3216
+ z.lazy(() => DeploymentStream24$outboundSchema),
2601
3217
  ])),
2602
3218
  ]);
2603
3219
 
@@ -2651,6 +3267,7 @@ export const PrefixMessagesUserMessage$inboundSchema: z.ZodType<
2651
3267
  z.lazy(() => DeploymentStream21$inboundSchema),
2652
3268
  z.lazy(() => DeploymentStream22$inboundSchema),
2653
3269
  z.lazy(() => DeploymentStream23$inboundSchema),
3270
+ z.lazy(() => DeploymentStream24$inboundSchema),
2654
3271
  ])),
2655
3272
  ]),
2656
3273
  });
@@ -2665,6 +3282,7 @@ export type PrefixMessagesUserMessage$Outbound = {
2665
3282
  | DeploymentStream21$Outbound
2666
3283
  | DeploymentStream22$Outbound
2667
3284
  | DeploymentStream23$Outbound
3285
+ | DeploymentStream24$Outbound
2668
3286
  >;
2669
3287
  };
2670
3288
 
@@ -2682,6 +3300,7 @@ export const PrefixMessagesUserMessage$outboundSchema: z.ZodType<
2682
3300
  z.lazy(() => DeploymentStream21$outboundSchema),
2683
3301
  z.lazy(() => DeploymentStream22$outboundSchema),
2684
3302
  z.lazy(() => DeploymentStream23$outboundSchema),
3303
+ z.lazy(() => DeploymentStream24$outboundSchema),
2685
3304
  ])),
2686
3305
  ]),
2687
3306
  });
@@ -3717,9 +4336,14 @@ export const DeploymentStreamMessagesAssistantMessage$inboundSchema: z.ZodType<
3717
4336
  tool_calls: z.array(
3718
4337
  z.lazy(() => DeploymentStreamMessagesToolCalls$inboundSchema),
3719
4338
  ).optional(),
4339
+ reasoning: z.string().optional(),
4340
+ reasoning_signature: z.string().optional(),
4341
+ redacted_reasoning: z.string().optional(),
3720
4342
  }).transform((v) => {
3721
4343
  return remap$(v, {
3722
4344
  "tool_calls": "toolCalls",
4345
+ "reasoning_signature": "reasoningSignature",
4346
+ "redacted_reasoning": "redactedReasoning",
3723
4347
  });
3724
4348
  });
3725
4349
 
@@ -3738,6 +4362,9 @@ export type DeploymentStreamMessagesAssistantMessage$Outbound = {
3738
4362
  name?: string | undefined;
3739
4363
  audio?: DeploymentStreamMessagesAudio$Outbound | null | undefined;
3740
4364
  tool_calls?: Array<DeploymentStreamMessagesToolCalls$Outbound> | undefined;
4365
+ reasoning?: string | undefined;
4366
+ reasoning_signature?: string | undefined;
4367
+ redacted_reasoning?: string | undefined;
3741
4368
  };
3742
4369
 
3743
4370
  /** @internal */
@@ -3770,9 +4397,14 @@ export const DeploymentStreamMessagesAssistantMessage$outboundSchema: z.ZodType<
3770
4397
  toolCalls: z.array(
3771
4398
  z.lazy(() => DeploymentStreamMessagesToolCalls$outboundSchema),
3772
4399
  ).optional(),
4400
+ reasoning: z.string().optional(),
4401
+ reasoningSignature: z.string().optional(),
4402
+ redactedReasoning: z.string().optional(),
3773
4403
  }).transform((v) => {
3774
4404
  return remap$(v, {
3775
4405
  toolCalls: "tool_calls",
4406
+ reasoningSignature: "reasoning_signature",
4407
+ redactedReasoning: "redacted_reasoning",
3776
4408
  });
3777
4409
  });
3778
4410
 
@@ -3841,6 +4473,162 @@ export namespace DeploymentStreamMessagesDeploymentsRequestRole$ {
3841
4473
  DeploymentStreamMessagesDeploymentsRequestRole$outboundSchema;
3842
4474
  }
3843
4475
 
4476
+ /** @internal */
4477
+ export const DeploymentStream2DeploymentsRequestRequestBodyMessages3Content4Type$inboundSchema:
4478
+ z.ZodNativeEnum<
4479
+ typeof DeploymentStream2DeploymentsRequestRequestBodyMessages3Content4Type
4480
+ > = z.nativeEnum(
4481
+ DeploymentStream2DeploymentsRequestRequestBodyMessages3Content4Type,
4482
+ );
4483
+
4484
+ /** @internal */
4485
+ export const DeploymentStream2DeploymentsRequestRequestBodyMessages3Content4Type$outboundSchema:
4486
+ z.ZodNativeEnum<
4487
+ typeof DeploymentStream2DeploymentsRequestRequestBodyMessages3Content4Type
4488
+ > =
4489
+ DeploymentStream2DeploymentsRequestRequestBodyMessages3Content4Type$inboundSchema;
4490
+
4491
+ /**
4492
+ * @internal
4493
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4494
+ */
4495
+ export namespace DeploymentStream2DeploymentsRequestRequestBodyMessages3Content4Type$ {
4496
+ /** @deprecated use `DeploymentStream2DeploymentsRequestRequestBodyMessages3Content4Type$inboundSchema` instead. */
4497
+ export const inboundSchema =
4498
+ DeploymentStream2DeploymentsRequestRequestBodyMessages3Content4Type$inboundSchema;
4499
+ /** @deprecated use `DeploymentStream2DeploymentsRequestRequestBodyMessages3Content4Type$outboundSchema` instead. */
4500
+ export const outboundSchema =
4501
+ DeploymentStream2DeploymentsRequestRequestBodyMessages3Content4Type$outboundSchema;
4502
+ }
4503
+
4504
+ /** @internal */
4505
+ export const DeploymentStream2DeploymentsFile$inboundSchema: z.ZodType<
4506
+ DeploymentStream2DeploymentsFile,
4507
+ z.ZodTypeDef,
4508
+ unknown
4509
+ > = z.object({
4510
+ file_data: z.string(),
4511
+ filename: z.string().optional(),
4512
+ }).transform((v) => {
4513
+ return remap$(v, {
4514
+ "file_data": "fileData",
4515
+ });
4516
+ });
4517
+
4518
+ /** @internal */
4519
+ export type DeploymentStream2DeploymentsFile$Outbound = {
4520
+ file_data: string;
4521
+ filename?: string | undefined;
4522
+ };
4523
+
4524
+ /** @internal */
4525
+ export const DeploymentStream2DeploymentsFile$outboundSchema: z.ZodType<
4526
+ DeploymentStream2DeploymentsFile$Outbound,
4527
+ z.ZodTypeDef,
4528
+ DeploymentStream2DeploymentsFile
4529
+ > = z.object({
4530
+ fileData: z.string(),
4531
+ filename: z.string().optional(),
4532
+ }).transform((v) => {
4533
+ return remap$(v, {
4534
+ fileData: "file_data",
4535
+ });
4536
+ });
4537
+
4538
+ /**
4539
+ * @internal
4540
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4541
+ */
4542
+ export namespace DeploymentStream2DeploymentsFile$ {
4543
+ /** @deprecated use `DeploymentStream2DeploymentsFile$inboundSchema` instead. */
4544
+ export const inboundSchema = DeploymentStream2DeploymentsFile$inboundSchema;
4545
+ /** @deprecated use `DeploymentStream2DeploymentsFile$outboundSchema` instead. */
4546
+ export const outboundSchema = DeploymentStream2DeploymentsFile$outboundSchema;
4547
+ /** @deprecated use `DeploymentStream2DeploymentsFile$Outbound` instead. */
4548
+ export type Outbound = DeploymentStream2DeploymentsFile$Outbound;
4549
+ }
4550
+
4551
+ export function deploymentStream2DeploymentsFileToJSON(
4552
+ deploymentStream2DeploymentsFile: DeploymentStream2DeploymentsFile,
4553
+ ): string {
4554
+ return JSON.stringify(
4555
+ DeploymentStream2DeploymentsFile$outboundSchema.parse(
4556
+ deploymentStream2DeploymentsFile,
4557
+ ),
4558
+ );
4559
+ }
4560
+
4561
+ export function deploymentStream2DeploymentsFileFromJSON(
4562
+ jsonString: string,
4563
+ ): SafeParseResult<DeploymentStream2DeploymentsFile, SDKValidationError> {
4564
+ return safeParse(
4565
+ jsonString,
4566
+ (x) => DeploymentStream2DeploymentsFile$inboundSchema.parse(JSON.parse(x)),
4567
+ `Failed to parse 'DeploymentStream2DeploymentsFile' from JSON`,
4568
+ );
4569
+ }
4570
+
4571
+ /** @internal */
4572
+ export const DeploymentStream2Deployments4$inboundSchema: z.ZodType<
4573
+ DeploymentStream2Deployments4,
4574
+ z.ZodTypeDef,
4575
+ unknown
4576
+ > = z.object({
4577
+ type:
4578
+ DeploymentStream2DeploymentsRequestRequestBodyMessages3Content4Type$inboundSchema,
4579
+ file: z.lazy(() => DeploymentStream2DeploymentsFile$inboundSchema),
4580
+ });
4581
+
4582
+ /** @internal */
4583
+ export type DeploymentStream2Deployments4$Outbound = {
4584
+ type: string;
4585
+ file: DeploymentStream2DeploymentsFile$Outbound;
4586
+ };
4587
+
4588
+ /** @internal */
4589
+ export const DeploymentStream2Deployments4$outboundSchema: z.ZodType<
4590
+ DeploymentStream2Deployments4$Outbound,
4591
+ z.ZodTypeDef,
4592
+ DeploymentStream2Deployments4
4593
+ > = z.object({
4594
+ type:
4595
+ DeploymentStream2DeploymentsRequestRequestBodyMessages3Content4Type$outboundSchema,
4596
+ file: z.lazy(() => DeploymentStream2DeploymentsFile$outboundSchema),
4597
+ });
4598
+
4599
+ /**
4600
+ * @internal
4601
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4602
+ */
4603
+ export namespace DeploymentStream2Deployments4$ {
4604
+ /** @deprecated use `DeploymentStream2Deployments4$inboundSchema` instead. */
4605
+ export const inboundSchema = DeploymentStream2Deployments4$inboundSchema;
4606
+ /** @deprecated use `DeploymentStream2Deployments4$outboundSchema` instead. */
4607
+ export const outboundSchema = DeploymentStream2Deployments4$outboundSchema;
4608
+ /** @deprecated use `DeploymentStream2Deployments4$Outbound` instead. */
4609
+ export type Outbound = DeploymentStream2Deployments4$Outbound;
4610
+ }
4611
+
4612
+ export function deploymentStream2Deployments4ToJSON(
4613
+ deploymentStream2Deployments4: DeploymentStream2Deployments4,
4614
+ ): string {
4615
+ return JSON.stringify(
4616
+ DeploymentStream2Deployments4$outboundSchema.parse(
4617
+ deploymentStream2Deployments4,
4618
+ ),
4619
+ );
4620
+ }
4621
+
4622
+ export function deploymentStream2Deployments4FromJSON(
4623
+ jsonString: string,
4624
+ ): SafeParseResult<DeploymentStream2Deployments4, SDKValidationError> {
4625
+ return safeParse(
4626
+ jsonString,
4627
+ (x) => DeploymentStream2Deployments4$inboundSchema.parse(JSON.parse(x)),
4628
+ `Failed to parse 'DeploymentStream2Deployments4' from JSON`,
4629
+ );
4630
+ }
4631
+
3844
4632
  /** @internal */
3845
4633
  export const DeploymentStream2DeploymentsRequestRequestBodyMessages3ContentType$inboundSchema:
3846
4634
  z.ZodNativeEnum<
@@ -4298,13 +5086,15 @@ export const DeploymentStreamContentDeploymentsRequest2$inboundSchema:
4298
5086
  z.lazy(() => DeploymentStream2Deployments1$inboundSchema),
4299
5087
  z.lazy(() => DeploymentStream2Deployments2$inboundSchema),
4300
5088
  z.lazy(() => DeploymentStream2Deployments3$inboundSchema),
5089
+ z.lazy(() => DeploymentStream2Deployments4$inboundSchema),
4301
5090
  ]);
4302
5091
 
4303
5092
  /** @internal */
4304
5093
  export type DeploymentStreamContentDeploymentsRequest2$Outbound =
4305
5094
  | DeploymentStream2Deployments1$Outbound
4306
5095
  | DeploymentStream2Deployments2$Outbound
4307
- | DeploymentStream2Deployments3$Outbound;
5096
+ | DeploymentStream2Deployments3$Outbound
5097
+ | DeploymentStream2Deployments4$Outbound;
4308
5098
 
4309
5099
  /** @internal */
4310
5100
  export const DeploymentStreamContentDeploymentsRequest2$outboundSchema:
@@ -4316,6 +5106,7 @@ export const DeploymentStreamContentDeploymentsRequest2$outboundSchema:
4316
5106
  z.lazy(() => DeploymentStream2Deployments1$outboundSchema),
4317
5107
  z.lazy(() => DeploymentStream2Deployments2$outboundSchema),
4318
5108
  z.lazy(() => DeploymentStream2Deployments3$outboundSchema),
5109
+ z.lazy(() => DeploymentStream2Deployments4$outboundSchema),
4319
5110
  ]);
4320
5111
 
4321
5112
  /**
@@ -4371,6 +5162,7 @@ export const DeploymentStreamMessagesContent$inboundSchema: z.ZodType<
4371
5162
  z.lazy(() => DeploymentStream2Deployments1$inboundSchema),
4372
5163
  z.lazy(() => DeploymentStream2Deployments2$inboundSchema),
4373
5164
  z.lazy(() => DeploymentStream2Deployments3$inboundSchema),
5165
+ z.lazy(() => DeploymentStream2Deployments4$inboundSchema),
4374
5166
  ])),
4375
5167
  ]);
4376
5168
 
@@ -4381,6 +5173,7 @@ export type DeploymentStreamMessagesContent$Outbound =
4381
5173
  | DeploymentStream2Deployments1$Outbound
4382
5174
  | DeploymentStream2Deployments2$Outbound
4383
5175
  | DeploymentStream2Deployments3$Outbound
5176
+ | DeploymentStream2Deployments4$Outbound
4384
5177
  >;
4385
5178
 
4386
5179
  /** @internal */
@@ -4394,6 +5187,7 @@ export const DeploymentStreamMessagesContent$outboundSchema: z.ZodType<
4394
5187
  z.lazy(() => DeploymentStream2Deployments1$outboundSchema),
4395
5188
  z.lazy(() => DeploymentStream2Deployments2$outboundSchema),
4396
5189
  z.lazy(() => DeploymentStream2Deployments3$outboundSchema),
5190
+ z.lazy(() => DeploymentStream2Deployments4$outboundSchema),
4397
5191
  ])),
4398
5192
  ]);
4399
5193
 
@@ -4444,6 +5238,7 @@ export const DeploymentStreamMessagesUserMessage$inboundSchema: z.ZodType<
4444
5238
  z.lazy(() => DeploymentStream2Deployments1$inboundSchema),
4445
5239
  z.lazy(() => DeploymentStream2Deployments2$inboundSchema),
4446
5240
  z.lazy(() => DeploymentStream2Deployments3$inboundSchema),
5241
+ z.lazy(() => DeploymentStream2Deployments4$inboundSchema),
4447
5242
  ])),
4448
5243
  ]),
4449
5244
  });
@@ -4458,6 +5253,7 @@ export type DeploymentStreamMessagesUserMessage$Outbound = {
4458
5253
  | DeploymentStream2Deployments1$Outbound
4459
5254
  | DeploymentStream2Deployments2$Outbound
4460
5255
  | DeploymentStream2Deployments3$Outbound
5256
+ | DeploymentStream2Deployments4$Outbound
4461
5257
  >;
4462
5258
  };
4463
5259
 
@@ -4475,6 +5271,7 @@ export const DeploymentStreamMessagesUserMessage$outboundSchema: z.ZodType<
4475
5271
  z.lazy(() => DeploymentStream2Deployments1$outboundSchema),
4476
5272
  z.lazy(() => DeploymentStream2Deployments2$outboundSchema),
4477
5273
  z.lazy(() => DeploymentStream2Deployments3$outboundSchema),
5274
+ z.lazy(() => DeploymentStream2Deployments4$outboundSchema),
4478
5275
  ])),
4479
5276
  ]),
4480
5277
  });
@@ -5016,92 +5813,3158 @@ export function deploymentStreamThreadFromJSON(
5016
5813
  }
5017
5814
 
5018
5815
  /** @internal */
5019
- export const DeploymentStreamRequestBody$inboundSchema: z.ZodType<
5020
- DeploymentStreamRequestBody,
5816
+ export const DeploymentStreamDollarOrDollarExists$inboundSchema: z.ZodType<
5817
+ DeploymentStreamDollarOrDollarExists,
5021
5818
  z.ZodTypeDef,
5022
5819
  unknown
5023
5820
  > = z.object({
5024
- key: z.string(),
5025
- inputs: z.record(z.union([z.string(), z.number(), z.boolean()])).optional(),
5026
- context: z.record(z.any()).optional(),
5027
- prefix_messages: z.array(
5028
- z.union([
5029
- z.lazy(() => PrefixMessagesDeveloperMessage$inboundSchema),
5030
- z.lazy(() => PrefixMessagesSystemMessage$inboundSchema),
5031
- z.lazy(() => PrefixMessagesUserMessage$inboundSchema),
5032
- z.lazy(() => PrefixMessagesToolMessage$inboundSchema),
5033
- z.lazy(() => PrefixMessagesAssistantMessage$inboundSchema),
5034
- ]),
5035
- ).optional(),
5036
- messages: z.array(
5037
- z.union([
5038
- z.lazy(() => DeploymentStreamMessagesDeveloperMessage$inboundSchema),
5039
- z.lazy(() => DeploymentStreamMessagesSystemMessage$inboundSchema),
5040
- z.lazy(() => DeploymentStreamMessagesUserMessage$inboundSchema),
5041
- z.lazy(() => DeploymentStreamMessagesToolMessage$inboundSchema),
5042
- z.lazy(() => DeploymentStreamMessagesAssistantMessage$inboundSchema),
5043
- ]),
5044
- ).optional(),
5045
- file_ids: z.array(z.string()).optional(),
5046
- metadata: z.record(z.any()).optional(),
5047
- extra_params: z.record(z.any()).optional(),
5048
- documents: z.array(z.lazy(() => DeploymentStreamDocuments$inboundSchema))
5049
- .optional(),
5050
- invoke_options: z.lazy(() => DeploymentStreamInvokeOptions$inboundSchema)
5051
- .optional(),
5052
- thread: z.lazy(() => DeploymentStreamThread$inboundSchema).optional(),
5821
+ $exists: z.boolean(),
5053
5822
  }).transform((v) => {
5054
5823
  return remap$(v, {
5055
- "prefix_messages": "prefixMessages",
5056
- "file_ids": "fileIds",
5057
- "extra_params": "extraParams",
5058
- "invoke_options": "invokeOptions",
5824
+ "$exists": "dollarExists",
5059
5825
  });
5060
5826
  });
5061
5827
 
5062
5828
  /** @internal */
5063
- export type DeploymentStreamRequestBody$Outbound = {
5064
- key: string;
5065
- inputs?: { [k: string]: string | number | boolean } | undefined;
5066
- context?: { [k: string]: any } | undefined;
5067
- prefix_messages?:
5068
- | Array<
5069
- | PrefixMessagesDeveloperMessage$Outbound
5070
- | PrefixMessagesSystemMessage$Outbound
5071
- | PrefixMessagesUserMessage$Outbound
5072
- | PrefixMessagesToolMessage$Outbound
5073
- | PrefixMessagesAssistantMessage$Outbound
5074
- >
5075
- | undefined;
5076
- messages?:
5077
- | Array<
5078
- | DeploymentStreamMessagesDeveloperMessage$Outbound
5079
- | DeploymentStreamMessagesSystemMessage$Outbound
5080
- | DeploymentStreamMessagesUserMessage$Outbound
5081
- | DeploymentStreamMessagesToolMessage$Outbound
5082
- | DeploymentStreamMessagesAssistantMessage$Outbound
5083
- >
5084
- | undefined;
5085
- file_ids?: Array<string> | undefined;
5086
- metadata?: { [k: string]: any } | undefined;
5087
- extra_params?: { [k: string]: any } | undefined;
5088
- documents?: Array<DeploymentStreamDocuments$Outbound> | undefined;
5089
- invoke_options?: DeploymentStreamInvokeOptions$Outbound | undefined;
5090
- thread?: DeploymentStreamThread$Outbound | undefined;
5829
+ export type DeploymentStreamDollarOrDollarExists$Outbound = {
5830
+ $exists: boolean;
5091
5831
  };
5092
5832
 
5093
5833
  /** @internal */
5094
- export const DeploymentStreamRequestBody$outboundSchema: z.ZodType<
5095
- DeploymentStreamRequestBody$Outbound,
5834
+ export const DeploymentStreamDollarOrDollarExists$outboundSchema: z.ZodType<
5835
+ DeploymentStreamDollarOrDollarExists$Outbound,
5096
5836
  z.ZodTypeDef,
5097
- DeploymentStreamRequestBody
5837
+ DeploymentStreamDollarOrDollarExists
5098
5838
  > = z.object({
5099
- key: z.string(),
5100
- inputs: z.record(z.union([z.string(), z.number(), z.boolean()])).optional(),
5101
- context: z.record(z.any()).optional(),
5102
- prefixMessages: z.array(
5103
- z.union([
5104
- z.lazy(() => PrefixMessagesDeveloperMessage$outboundSchema),
5839
+ dollarExists: z.boolean(),
5840
+ }).transform((v) => {
5841
+ return remap$(v, {
5842
+ dollarExists: "$exists",
5843
+ });
5844
+ });
5845
+
5846
+ /**
5847
+ * @internal
5848
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
5849
+ */
5850
+ export namespace DeploymentStreamDollarOrDollarExists$ {
5851
+ /** @deprecated use `DeploymentStreamDollarOrDollarExists$inboundSchema` instead. */
5852
+ export const inboundSchema =
5853
+ DeploymentStreamDollarOrDollarExists$inboundSchema;
5854
+ /** @deprecated use `DeploymentStreamDollarOrDollarExists$outboundSchema` instead. */
5855
+ export const outboundSchema =
5856
+ DeploymentStreamDollarOrDollarExists$outboundSchema;
5857
+ /** @deprecated use `DeploymentStreamDollarOrDollarExists$Outbound` instead. */
5858
+ export type Outbound = DeploymentStreamDollarOrDollarExists$Outbound;
5859
+ }
5860
+
5861
+ export function deploymentStreamDollarOrDollarExistsToJSON(
5862
+ deploymentStreamDollarOrDollarExists: DeploymentStreamDollarOrDollarExists,
5863
+ ): string {
5864
+ return JSON.stringify(
5865
+ DeploymentStreamDollarOrDollarExists$outboundSchema.parse(
5866
+ deploymentStreamDollarOrDollarExists,
5867
+ ),
5868
+ );
5869
+ }
5870
+
5871
+ export function deploymentStreamDollarOrDollarExistsFromJSON(
5872
+ jsonString: string,
5873
+ ): SafeParseResult<DeploymentStreamDollarOrDollarExists, SDKValidationError> {
5874
+ return safeParse(
5875
+ jsonString,
5876
+ (x) =>
5877
+ DeploymentStreamDollarOrDollarExists$inboundSchema.parse(JSON.parse(x)),
5878
+ `Failed to parse 'DeploymentStreamDollarOrDollarExists' from JSON`,
5879
+ );
5880
+ }
5881
+
5882
+ /** @internal */
5883
+ export const DeploymentStreamDollarOrDeploymentsDollarNin$inboundSchema:
5884
+ z.ZodType<
5885
+ DeploymentStreamDollarOrDeploymentsDollarNin,
5886
+ z.ZodTypeDef,
5887
+ unknown
5888
+ > = z.union([z.string(), z.number(), z.boolean()]);
5889
+
5890
+ /** @internal */
5891
+ export type DeploymentStreamDollarOrDeploymentsDollarNin$Outbound =
5892
+ | string
5893
+ | number
5894
+ | boolean;
5895
+
5896
+ /** @internal */
5897
+ export const DeploymentStreamDollarOrDeploymentsDollarNin$outboundSchema:
5898
+ z.ZodType<
5899
+ DeploymentStreamDollarOrDeploymentsDollarNin$Outbound,
5900
+ z.ZodTypeDef,
5901
+ DeploymentStreamDollarOrDeploymentsDollarNin
5902
+ > = z.union([z.string(), z.number(), z.boolean()]);
5903
+
5904
+ /**
5905
+ * @internal
5906
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
5907
+ */
5908
+ export namespace DeploymentStreamDollarOrDeploymentsDollarNin$ {
5909
+ /** @deprecated use `DeploymentStreamDollarOrDeploymentsDollarNin$inboundSchema` instead. */
5910
+ export const inboundSchema =
5911
+ DeploymentStreamDollarOrDeploymentsDollarNin$inboundSchema;
5912
+ /** @deprecated use `DeploymentStreamDollarOrDeploymentsDollarNin$outboundSchema` instead. */
5913
+ export const outboundSchema =
5914
+ DeploymentStreamDollarOrDeploymentsDollarNin$outboundSchema;
5915
+ /** @deprecated use `DeploymentStreamDollarOrDeploymentsDollarNin$Outbound` instead. */
5916
+ export type Outbound = DeploymentStreamDollarOrDeploymentsDollarNin$Outbound;
5917
+ }
5918
+
5919
+ export function deploymentStreamDollarOrDeploymentsDollarNinToJSON(
5920
+ deploymentStreamDollarOrDeploymentsDollarNin:
5921
+ DeploymentStreamDollarOrDeploymentsDollarNin,
5922
+ ): string {
5923
+ return JSON.stringify(
5924
+ DeploymentStreamDollarOrDeploymentsDollarNin$outboundSchema.parse(
5925
+ deploymentStreamDollarOrDeploymentsDollarNin,
5926
+ ),
5927
+ );
5928
+ }
5929
+
5930
+ export function deploymentStreamDollarOrDeploymentsDollarNinFromJSON(
5931
+ jsonString: string,
5932
+ ): SafeParseResult<
5933
+ DeploymentStreamDollarOrDeploymentsDollarNin,
5934
+ SDKValidationError
5935
+ > {
5936
+ return safeParse(
5937
+ jsonString,
5938
+ (x) =>
5939
+ DeploymentStreamDollarOrDeploymentsDollarNin$inboundSchema.parse(
5940
+ JSON.parse(x),
5941
+ ),
5942
+ `Failed to parse 'DeploymentStreamDollarOrDeploymentsDollarNin' from JSON`,
5943
+ );
5944
+ }
5945
+
5946
+ /** @internal */
5947
+ export const DeploymentStreamDollarOrDollarNin$inboundSchema: z.ZodType<
5948
+ DeploymentStreamDollarOrDollarNin,
5949
+ z.ZodTypeDef,
5950
+ unknown
5951
+ > = z.object({
5952
+ $nin: z.array(z.union([z.string(), z.number(), z.boolean()])),
5953
+ }).transform((v) => {
5954
+ return remap$(v, {
5955
+ "$nin": "dollarNin",
5956
+ });
5957
+ });
5958
+
5959
+ /** @internal */
5960
+ export type DeploymentStreamDollarOrDollarNin$Outbound = {
5961
+ $nin: Array<string | number | boolean>;
5962
+ };
5963
+
5964
+ /** @internal */
5965
+ export const DeploymentStreamDollarOrDollarNin$outboundSchema: z.ZodType<
5966
+ DeploymentStreamDollarOrDollarNin$Outbound,
5967
+ z.ZodTypeDef,
5968
+ DeploymentStreamDollarOrDollarNin
5969
+ > = z.object({
5970
+ dollarNin: z.array(z.union([z.string(), z.number(), z.boolean()])),
5971
+ }).transform((v) => {
5972
+ return remap$(v, {
5973
+ dollarNin: "$nin",
5974
+ });
5975
+ });
5976
+
5977
+ /**
5978
+ * @internal
5979
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
5980
+ */
5981
+ export namespace DeploymentStreamDollarOrDollarNin$ {
5982
+ /** @deprecated use `DeploymentStreamDollarOrDollarNin$inboundSchema` instead. */
5983
+ export const inboundSchema = DeploymentStreamDollarOrDollarNin$inboundSchema;
5984
+ /** @deprecated use `DeploymentStreamDollarOrDollarNin$outboundSchema` instead. */
5985
+ export const outboundSchema =
5986
+ DeploymentStreamDollarOrDollarNin$outboundSchema;
5987
+ /** @deprecated use `DeploymentStreamDollarOrDollarNin$Outbound` instead. */
5988
+ export type Outbound = DeploymentStreamDollarOrDollarNin$Outbound;
5989
+ }
5990
+
5991
+ export function deploymentStreamDollarOrDollarNinToJSON(
5992
+ deploymentStreamDollarOrDollarNin: DeploymentStreamDollarOrDollarNin,
5993
+ ): string {
5994
+ return JSON.stringify(
5995
+ DeploymentStreamDollarOrDollarNin$outboundSchema.parse(
5996
+ deploymentStreamDollarOrDollarNin,
5997
+ ),
5998
+ );
5999
+ }
6000
+
6001
+ export function deploymentStreamDollarOrDollarNinFromJSON(
6002
+ jsonString: string,
6003
+ ): SafeParseResult<DeploymentStreamDollarOrDollarNin, SDKValidationError> {
6004
+ return safeParse(
6005
+ jsonString,
6006
+ (x) => DeploymentStreamDollarOrDollarNin$inboundSchema.parse(JSON.parse(x)),
6007
+ `Failed to parse 'DeploymentStreamDollarOrDollarNin' from JSON`,
6008
+ );
6009
+ }
6010
+
6011
+ /** @internal */
6012
+ export const DeploymentStreamDollarOrDeploymentsDollarIn$inboundSchema:
6013
+ z.ZodType<
6014
+ DeploymentStreamDollarOrDeploymentsDollarIn,
6015
+ z.ZodTypeDef,
6016
+ unknown
6017
+ > = z.union([z.string(), z.number(), z.boolean()]);
6018
+
6019
+ /** @internal */
6020
+ export type DeploymentStreamDollarOrDeploymentsDollarIn$Outbound =
6021
+ | string
6022
+ | number
6023
+ | boolean;
6024
+
6025
+ /** @internal */
6026
+ export const DeploymentStreamDollarOrDeploymentsDollarIn$outboundSchema:
6027
+ z.ZodType<
6028
+ DeploymentStreamDollarOrDeploymentsDollarIn$Outbound,
6029
+ z.ZodTypeDef,
6030
+ DeploymentStreamDollarOrDeploymentsDollarIn
6031
+ > = z.union([z.string(), z.number(), z.boolean()]);
6032
+
6033
+ /**
6034
+ * @internal
6035
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6036
+ */
6037
+ export namespace DeploymentStreamDollarOrDeploymentsDollarIn$ {
6038
+ /** @deprecated use `DeploymentStreamDollarOrDeploymentsDollarIn$inboundSchema` instead. */
6039
+ export const inboundSchema =
6040
+ DeploymentStreamDollarOrDeploymentsDollarIn$inboundSchema;
6041
+ /** @deprecated use `DeploymentStreamDollarOrDeploymentsDollarIn$outboundSchema` instead. */
6042
+ export const outboundSchema =
6043
+ DeploymentStreamDollarOrDeploymentsDollarIn$outboundSchema;
6044
+ /** @deprecated use `DeploymentStreamDollarOrDeploymentsDollarIn$Outbound` instead. */
6045
+ export type Outbound = DeploymentStreamDollarOrDeploymentsDollarIn$Outbound;
6046
+ }
6047
+
6048
+ export function deploymentStreamDollarOrDeploymentsDollarInToJSON(
6049
+ deploymentStreamDollarOrDeploymentsDollarIn:
6050
+ DeploymentStreamDollarOrDeploymentsDollarIn,
6051
+ ): string {
6052
+ return JSON.stringify(
6053
+ DeploymentStreamDollarOrDeploymentsDollarIn$outboundSchema.parse(
6054
+ deploymentStreamDollarOrDeploymentsDollarIn,
6055
+ ),
6056
+ );
6057
+ }
6058
+
6059
+ export function deploymentStreamDollarOrDeploymentsDollarInFromJSON(
6060
+ jsonString: string,
6061
+ ): SafeParseResult<
6062
+ DeploymentStreamDollarOrDeploymentsDollarIn,
6063
+ SDKValidationError
6064
+ > {
6065
+ return safeParse(
6066
+ jsonString,
6067
+ (x) =>
6068
+ DeploymentStreamDollarOrDeploymentsDollarIn$inboundSchema.parse(
6069
+ JSON.parse(x),
6070
+ ),
6071
+ `Failed to parse 'DeploymentStreamDollarOrDeploymentsDollarIn' from JSON`,
6072
+ );
6073
+ }
6074
+
6075
+ /** @internal */
6076
+ export const DeploymentStreamDollarOrDollarIn$inboundSchema: z.ZodType<
6077
+ DeploymentStreamDollarOrDollarIn,
6078
+ z.ZodTypeDef,
6079
+ unknown
6080
+ > = z.object({
6081
+ $in: z.array(z.union([z.string(), z.number(), z.boolean()])),
6082
+ }).transform((v) => {
6083
+ return remap$(v, {
6084
+ "$in": "dollarIn",
6085
+ });
6086
+ });
6087
+
6088
+ /** @internal */
6089
+ export type DeploymentStreamDollarOrDollarIn$Outbound = {
6090
+ $in: Array<string | number | boolean>;
6091
+ };
6092
+
6093
+ /** @internal */
6094
+ export const DeploymentStreamDollarOrDollarIn$outboundSchema: z.ZodType<
6095
+ DeploymentStreamDollarOrDollarIn$Outbound,
6096
+ z.ZodTypeDef,
6097
+ DeploymentStreamDollarOrDollarIn
6098
+ > = z.object({
6099
+ dollarIn: z.array(z.union([z.string(), z.number(), z.boolean()])),
6100
+ }).transform((v) => {
6101
+ return remap$(v, {
6102
+ dollarIn: "$in",
6103
+ });
6104
+ });
6105
+
6106
+ /**
6107
+ * @internal
6108
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6109
+ */
6110
+ export namespace DeploymentStreamDollarOrDollarIn$ {
6111
+ /** @deprecated use `DeploymentStreamDollarOrDollarIn$inboundSchema` instead. */
6112
+ export const inboundSchema = DeploymentStreamDollarOrDollarIn$inboundSchema;
6113
+ /** @deprecated use `DeploymentStreamDollarOrDollarIn$outboundSchema` instead. */
6114
+ export const outboundSchema = DeploymentStreamDollarOrDollarIn$outboundSchema;
6115
+ /** @deprecated use `DeploymentStreamDollarOrDollarIn$Outbound` instead. */
6116
+ export type Outbound = DeploymentStreamDollarOrDollarIn$Outbound;
6117
+ }
6118
+
6119
+ export function deploymentStreamDollarOrDollarInToJSON(
6120
+ deploymentStreamDollarOrDollarIn: DeploymentStreamDollarOrDollarIn,
6121
+ ): string {
6122
+ return JSON.stringify(
6123
+ DeploymentStreamDollarOrDollarIn$outboundSchema.parse(
6124
+ deploymentStreamDollarOrDollarIn,
6125
+ ),
6126
+ );
6127
+ }
6128
+
6129
+ export function deploymentStreamDollarOrDollarInFromJSON(
6130
+ jsonString: string,
6131
+ ): SafeParseResult<DeploymentStreamDollarOrDollarIn, SDKValidationError> {
6132
+ return safeParse(
6133
+ jsonString,
6134
+ (x) => DeploymentStreamDollarOrDollarIn$inboundSchema.parse(JSON.parse(x)),
6135
+ `Failed to parse 'DeploymentStreamDollarOrDollarIn' from JSON`,
6136
+ );
6137
+ }
6138
+
6139
+ /** @internal */
6140
+ export const DeploymentStreamDollarOrDollarLte$inboundSchema: z.ZodType<
6141
+ DeploymentStreamDollarOrDollarLte,
6142
+ z.ZodTypeDef,
6143
+ unknown
6144
+ > = z.object({
6145
+ $lte: z.number(),
6146
+ }).transform((v) => {
6147
+ return remap$(v, {
6148
+ "$lte": "dollarLte",
6149
+ });
6150
+ });
6151
+
6152
+ /** @internal */
6153
+ export type DeploymentStreamDollarOrDollarLte$Outbound = {
6154
+ $lte: number;
6155
+ };
6156
+
6157
+ /** @internal */
6158
+ export const DeploymentStreamDollarOrDollarLte$outboundSchema: z.ZodType<
6159
+ DeploymentStreamDollarOrDollarLte$Outbound,
6160
+ z.ZodTypeDef,
6161
+ DeploymentStreamDollarOrDollarLte
6162
+ > = z.object({
6163
+ dollarLte: z.number(),
6164
+ }).transform((v) => {
6165
+ return remap$(v, {
6166
+ dollarLte: "$lte",
6167
+ });
6168
+ });
6169
+
6170
+ /**
6171
+ * @internal
6172
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6173
+ */
6174
+ export namespace DeploymentStreamDollarOrDollarLte$ {
6175
+ /** @deprecated use `DeploymentStreamDollarOrDollarLte$inboundSchema` instead. */
6176
+ export const inboundSchema = DeploymentStreamDollarOrDollarLte$inboundSchema;
6177
+ /** @deprecated use `DeploymentStreamDollarOrDollarLte$outboundSchema` instead. */
6178
+ export const outboundSchema =
6179
+ DeploymentStreamDollarOrDollarLte$outboundSchema;
6180
+ /** @deprecated use `DeploymentStreamDollarOrDollarLte$Outbound` instead. */
6181
+ export type Outbound = DeploymentStreamDollarOrDollarLte$Outbound;
6182
+ }
6183
+
6184
+ export function deploymentStreamDollarOrDollarLteToJSON(
6185
+ deploymentStreamDollarOrDollarLte: DeploymentStreamDollarOrDollarLte,
6186
+ ): string {
6187
+ return JSON.stringify(
6188
+ DeploymentStreamDollarOrDollarLte$outboundSchema.parse(
6189
+ deploymentStreamDollarOrDollarLte,
6190
+ ),
6191
+ );
6192
+ }
6193
+
6194
+ export function deploymentStreamDollarOrDollarLteFromJSON(
6195
+ jsonString: string,
6196
+ ): SafeParseResult<DeploymentStreamDollarOrDollarLte, SDKValidationError> {
6197
+ return safeParse(
6198
+ jsonString,
6199
+ (x) => DeploymentStreamDollarOrDollarLte$inboundSchema.parse(JSON.parse(x)),
6200
+ `Failed to parse 'DeploymentStreamDollarOrDollarLte' from JSON`,
6201
+ );
6202
+ }
6203
+
6204
+ /** @internal */
6205
+ export const DeploymentStreamDollarOrDollarLt$inboundSchema: z.ZodType<
6206
+ DeploymentStreamDollarOrDollarLt,
6207
+ z.ZodTypeDef,
6208
+ unknown
6209
+ > = z.object({
6210
+ $lt: z.number(),
6211
+ }).transform((v) => {
6212
+ return remap$(v, {
6213
+ "$lt": "dollarLt",
6214
+ });
6215
+ });
6216
+
6217
+ /** @internal */
6218
+ export type DeploymentStreamDollarOrDollarLt$Outbound = {
6219
+ $lt: number;
6220
+ };
6221
+
6222
+ /** @internal */
6223
+ export const DeploymentStreamDollarOrDollarLt$outboundSchema: z.ZodType<
6224
+ DeploymentStreamDollarOrDollarLt$Outbound,
6225
+ z.ZodTypeDef,
6226
+ DeploymentStreamDollarOrDollarLt
6227
+ > = z.object({
6228
+ dollarLt: z.number(),
6229
+ }).transform((v) => {
6230
+ return remap$(v, {
6231
+ dollarLt: "$lt",
6232
+ });
6233
+ });
6234
+
6235
+ /**
6236
+ * @internal
6237
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6238
+ */
6239
+ export namespace DeploymentStreamDollarOrDollarLt$ {
6240
+ /** @deprecated use `DeploymentStreamDollarOrDollarLt$inboundSchema` instead. */
6241
+ export const inboundSchema = DeploymentStreamDollarOrDollarLt$inboundSchema;
6242
+ /** @deprecated use `DeploymentStreamDollarOrDollarLt$outboundSchema` instead. */
6243
+ export const outboundSchema = DeploymentStreamDollarOrDollarLt$outboundSchema;
6244
+ /** @deprecated use `DeploymentStreamDollarOrDollarLt$Outbound` instead. */
6245
+ export type Outbound = DeploymentStreamDollarOrDollarLt$Outbound;
6246
+ }
6247
+
6248
+ export function deploymentStreamDollarOrDollarLtToJSON(
6249
+ deploymentStreamDollarOrDollarLt: DeploymentStreamDollarOrDollarLt,
6250
+ ): string {
6251
+ return JSON.stringify(
6252
+ DeploymentStreamDollarOrDollarLt$outboundSchema.parse(
6253
+ deploymentStreamDollarOrDollarLt,
6254
+ ),
6255
+ );
6256
+ }
6257
+
6258
+ export function deploymentStreamDollarOrDollarLtFromJSON(
6259
+ jsonString: string,
6260
+ ): SafeParseResult<DeploymentStreamDollarOrDollarLt, SDKValidationError> {
6261
+ return safeParse(
6262
+ jsonString,
6263
+ (x) => DeploymentStreamDollarOrDollarLt$inboundSchema.parse(JSON.parse(x)),
6264
+ `Failed to parse 'DeploymentStreamDollarOrDollarLt' from JSON`,
6265
+ );
6266
+ }
6267
+
6268
+ /** @internal */
6269
+ export const DeploymentStreamDollarOrDollarGte$inboundSchema: z.ZodType<
6270
+ DeploymentStreamDollarOrDollarGte,
6271
+ z.ZodTypeDef,
6272
+ unknown
6273
+ > = z.object({
6274
+ $gte: z.number(),
6275
+ }).transform((v) => {
6276
+ return remap$(v, {
6277
+ "$gte": "dollarGte",
6278
+ });
6279
+ });
6280
+
6281
+ /** @internal */
6282
+ export type DeploymentStreamDollarOrDollarGte$Outbound = {
6283
+ $gte: number;
6284
+ };
6285
+
6286
+ /** @internal */
6287
+ export const DeploymentStreamDollarOrDollarGte$outboundSchema: z.ZodType<
6288
+ DeploymentStreamDollarOrDollarGte$Outbound,
6289
+ z.ZodTypeDef,
6290
+ DeploymentStreamDollarOrDollarGte
6291
+ > = z.object({
6292
+ dollarGte: z.number(),
6293
+ }).transform((v) => {
6294
+ return remap$(v, {
6295
+ dollarGte: "$gte",
6296
+ });
6297
+ });
6298
+
6299
+ /**
6300
+ * @internal
6301
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6302
+ */
6303
+ export namespace DeploymentStreamDollarOrDollarGte$ {
6304
+ /** @deprecated use `DeploymentStreamDollarOrDollarGte$inboundSchema` instead. */
6305
+ export const inboundSchema = DeploymentStreamDollarOrDollarGte$inboundSchema;
6306
+ /** @deprecated use `DeploymentStreamDollarOrDollarGte$outboundSchema` instead. */
6307
+ export const outboundSchema =
6308
+ DeploymentStreamDollarOrDollarGte$outboundSchema;
6309
+ /** @deprecated use `DeploymentStreamDollarOrDollarGte$Outbound` instead. */
6310
+ export type Outbound = DeploymentStreamDollarOrDollarGte$Outbound;
6311
+ }
6312
+
6313
+ export function deploymentStreamDollarOrDollarGteToJSON(
6314
+ deploymentStreamDollarOrDollarGte: DeploymentStreamDollarOrDollarGte,
6315
+ ): string {
6316
+ return JSON.stringify(
6317
+ DeploymentStreamDollarOrDollarGte$outboundSchema.parse(
6318
+ deploymentStreamDollarOrDollarGte,
6319
+ ),
6320
+ );
6321
+ }
6322
+
6323
+ export function deploymentStreamDollarOrDollarGteFromJSON(
6324
+ jsonString: string,
6325
+ ): SafeParseResult<DeploymentStreamDollarOrDollarGte, SDKValidationError> {
6326
+ return safeParse(
6327
+ jsonString,
6328
+ (x) => DeploymentStreamDollarOrDollarGte$inboundSchema.parse(JSON.parse(x)),
6329
+ `Failed to parse 'DeploymentStreamDollarOrDollarGte' from JSON`,
6330
+ );
6331
+ }
6332
+
6333
+ /** @internal */
6334
+ export const DeploymentStreamDollarOr3$inboundSchema: z.ZodType<
6335
+ DeploymentStreamDollarOr3,
6336
+ z.ZodTypeDef,
6337
+ unknown
6338
+ > = z.object({
6339
+ $gt: z.number(),
6340
+ }).transform((v) => {
6341
+ return remap$(v, {
6342
+ "$gt": "dollarGt",
6343
+ });
6344
+ });
6345
+
6346
+ /** @internal */
6347
+ export type DeploymentStreamDollarOr3$Outbound = {
6348
+ $gt: number;
6349
+ };
6350
+
6351
+ /** @internal */
6352
+ export const DeploymentStreamDollarOr3$outboundSchema: z.ZodType<
6353
+ DeploymentStreamDollarOr3$Outbound,
6354
+ z.ZodTypeDef,
6355
+ DeploymentStreamDollarOr3
6356
+ > = z.object({
6357
+ dollarGt: z.number(),
6358
+ }).transform((v) => {
6359
+ return remap$(v, {
6360
+ dollarGt: "$gt",
6361
+ });
6362
+ });
6363
+
6364
+ /**
6365
+ * @internal
6366
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6367
+ */
6368
+ export namespace DeploymentStreamDollarOr3$ {
6369
+ /** @deprecated use `DeploymentStreamDollarOr3$inboundSchema` instead. */
6370
+ export const inboundSchema = DeploymentStreamDollarOr3$inboundSchema;
6371
+ /** @deprecated use `DeploymentStreamDollarOr3$outboundSchema` instead. */
6372
+ export const outboundSchema = DeploymentStreamDollarOr3$outboundSchema;
6373
+ /** @deprecated use `DeploymentStreamDollarOr3$Outbound` instead. */
6374
+ export type Outbound = DeploymentStreamDollarOr3$Outbound;
6375
+ }
6376
+
6377
+ export function deploymentStreamDollarOr3ToJSON(
6378
+ deploymentStreamDollarOr3: DeploymentStreamDollarOr3,
6379
+ ): string {
6380
+ return JSON.stringify(
6381
+ DeploymentStreamDollarOr3$outboundSchema.parse(deploymentStreamDollarOr3),
6382
+ );
6383
+ }
6384
+
6385
+ export function deploymentStreamDollarOr3FromJSON(
6386
+ jsonString: string,
6387
+ ): SafeParseResult<DeploymentStreamDollarOr3, SDKValidationError> {
6388
+ return safeParse(
6389
+ jsonString,
6390
+ (x) => DeploymentStreamDollarOr3$inboundSchema.parse(JSON.parse(x)),
6391
+ `Failed to parse 'DeploymentStreamDollarOr3' from JSON`,
6392
+ );
6393
+ }
6394
+
6395
+ /** @internal */
6396
+ export const DeploymentStreamDollarOrDeploymentsDollarNe$inboundSchema:
6397
+ z.ZodType<
6398
+ DeploymentStreamDollarOrDeploymentsDollarNe,
6399
+ z.ZodTypeDef,
6400
+ unknown
6401
+ > = z.union([z.string(), z.number(), z.boolean()]);
6402
+
6403
+ /** @internal */
6404
+ export type DeploymentStreamDollarOrDeploymentsDollarNe$Outbound =
6405
+ | string
6406
+ | number
6407
+ | boolean;
6408
+
6409
+ /** @internal */
6410
+ export const DeploymentStreamDollarOrDeploymentsDollarNe$outboundSchema:
6411
+ z.ZodType<
6412
+ DeploymentStreamDollarOrDeploymentsDollarNe$Outbound,
6413
+ z.ZodTypeDef,
6414
+ DeploymentStreamDollarOrDeploymentsDollarNe
6415
+ > = z.union([z.string(), z.number(), z.boolean()]);
6416
+
6417
+ /**
6418
+ * @internal
6419
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6420
+ */
6421
+ export namespace DeploymentStreamDollarOrDeploymentsDollarNe$ {
6422
+ /** @deprecated use `DeploymentStreamDollarOrDeploymentsDollarNe$inboundSchema` instead. */
6423
+ export const inboundSchema =
6424
+ DeploymentStreamDollarOrDeploymentsDollarNe$inboundSchema;
6425
+ /** @deprecated use `DeploymentStreamDollarOrDeploymentsDollarNe$outboundSchema` instead. */
6426
+ export const outboundSchema =
6427
+ DeploymentStreamDollarOrDeploymentsDollarNe$outboundSchema;
6428
+ /** @deprecated use `DeploymentStreamDollarOrDeploymentsDollarNe$Outbound` instead. */
6429
+ export type Outbound = DeploymentStreamDollarOrDeploymentsDollarNe$Outbound;
6430
+ }
6431
+
6432
+ export function deploymentStreamDollarOrDeploymentsDollarNeToJSON(
6433
+ deploymentStreamDollarOrDeploymentsDollarNe:
6434
+ DeploymentStreamDollarOrDeploymentsDollarNe,
6435
+ ): string {
6436
+ return JSON.stringify(
6437
+ DeploymentStreamDollarOrDeploymentsDollarNe$outboundSchema.parse(
6438
+ deploymentStreamDollarOrDeploymentsDollarNe,
6439
+ ),
6440
+ );
6441
+ }
6442
+
6443
+ export function deploymentStreamDollarOrDeploymentsDollarNeFromJSON(
6444
+ jsonString: string,
6445
+ ): SafeParseResult<
6446
+ DeploymentStreamDollarOrDeploymentsDollarNe,
6447
+ SDKValidationError
6448
+ > {
6449
+ return safeParse(
6450
+ jsonString,
6451
+ (x) =>
6452
+ DeploymentStreamDollarOrDeploymentsDollarNe$inboundSchema.parse(
6453
+ JSON.parse(x),
6454
+ ),
6455
+ `Failed to parse 'DeploymentStreamDollarOrDeploymentsDollarNe' from JSON`,
6456
+ );
6457
+ }
6458
+
6459
+ /** @internal */
6460
+ export const DeploymentStreamDollarOrDollarNe$inboundSchema: z.ZodType<
6461
+ DeploymentStreamDollarOrDollarNe,
6462
+ z.ZodTypeDef,
6463
+ unknown
6464
+ > = z.object({
6465
+ $ne: z.union([z.string(), z.number(), z.boolean()]),
6466
+ }).transform((v) => {
6467
+ return remap$(v, {
6468
+ "$ne": "dollarNe",
6469
+ });
6470
+ });
6471
+
6472
+ /** @internal */
6473
+ export type DeploymentStreamDollarOrDollarNe$Outbound = {
6474
+ $ne: string | number | boolean;
6475
+ };
6476
+
6477
+ /** @internal */
6478
+ export const DeploymentStreamDollarOrDollarNe$outboundSchema: z.ZodType<
6479
+ DeploymentStreamDollarOrDollarNe$Outbound,
6480
+ z.ZodTypeDef,
6481
+ DeploymentStreamDollarOrDollarNe
6482
+ > = z.object({
6483
+ dollarNe: z.union([z.string(), z.number(), z.boolean()]),
6484
+ }).transform((v) => {
6485
+ return remap$(v, {
6486
+ dollarNe: "$ne",
6487
+ });
6488
+ });
6489
+
6490
+ /**
6491
+ * @internal
6492
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6493
+ */
6494
+ export namespace DeploymentStreamDollarOrDollarNe$ {
6495
+ /** @deprecated use `DeploymentStreamDollarOrDollarNe$inboundSchema` instead. */
6496
+ export const inboundSchema = DeploymentStreamDollarOrDollarNe$inboundSchema;
6497
+ /** @deprecated use `DeploymentStreamDollarOrDollarNe$outboundSchema` instead. */
6498
+ export const outboundSchema = DeploymentStreamDollarOrDollarNe$outboundSchema;
6499
+ /** @deprecated use `DeploymentStreamDollarOrDollarNe$Outbound` instead. */
6500
+ export type Outbound = DeploymentStreamDollarOrDollarNe$Outbound;
6501
+ }
6502
+
6503
+ export function deploymentStreamDollarOrDollarNeToJSON(
6504
+ deploymentStreamDollarOrDollarNe: DeploymentStreamDollarOrDollarNe,
6505
+ ): string {
6506
+ return JSON.stringify(
6507
+ DeploymentStreamDollarOrDollarNe$outboundSchema.parse(
6508
+ deploymentStreamDollarOrDollarNe,
6509
+ ),
6510
+ );
6511
+ }
6512
+
6513
+ export function deploymentStreamDollarOrDollarNeFromJSON(
6514
+ jsonString: string,
6515
+ ): SafeParseResult<DeploymentStreamDollarOrDollarNe, SDKValidationError> {
6516
+ return safeParse(
6517
+ jsonString,
6518
+ (x) => DeploymentStreamDollarOrDollarNe$inboundSchema.parse(JSON.parse(x)),
6519
+ `Failed to parse 'DeploymentStreamDollarOrDollarNe' from JSON`,
6520
+ );
6521
+ }
6522
+
6523
+ /** @internal */
6524
+ export const DeploymentStreamDollarOrDeploymentsDollarEq$inboundSchema:
6525
+ z.ZodType<
6526
+ DeploymentStreamDollarOrDeploymentsDollarEq,
6527
+ z.ZodTypeDef,
6528
+ unknown
6529
+ > = z.union([z.string(), z.number(), z.boolean()]);
6530
+
6531
+ /** @internal */
6532
+ export type DeploymentStreamDollarOrDeploymentsDollarEq$Outbound =
6533
+ | string
6534
+ | number
6535
+ | boolean;
6536
+
6537
+ /** @internal */
6538
+ export const DeploymentStreamDollarOrDeploymentsDollarEq$outboundSchema:
6539
+ z.ZodType<
6540
+ DeploymentStreamDollarOrDeploymentsDollarEq$Outbound,
6541
+ z.ZodTypeDef,
6542
+ DeploymentStreamDollarOrDeploymentsDollarEq
6543
+ > = z.union([z.string(), z.number(), z.boolean()]);
6544
+
6545
+ /**
6546
+ * @internal
6547
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6548
+ */
6549
+ export namespace DeploymentStreamDollarOrDeploymentsDollarEq$ {
6550
+ /** @deprecated use `DeploymentStreamDollarOrDeploymentsDollarEq$inboundSchema` instead. */
6551
+ export const inboundSchema =
6552
+ DeploymentStreamDollarOrDeploymentsDollarEq$inboundSchema;
6553
+ /** @deprecated use `DeploymentStreamDollarOrDeploymentsDollarEq$outboundSchema` instead. */
6554
+ export const outboundSchema =
6555
+ DeploymentStreamDollarOrDeploymentsDollarEq$outboundSchema;
6556
+ /** @deprecated use `DeploymentStreamDollarOrDeploymentsDollarEq$Outbound` instead. */
6557
+ export type Outbound = DeploymentStreamDollarOrDeploymentsDollarEq$Outbound;
6558
+ }
6559
+
6560
+ export function deploymentStreamDollarOrDeploymentsDollarEqToJSON(
6561
+ deploymentStreamDollarOrDeploymentsDollarEq:
6562
+ DeploymentStreamDollarOrDeploymentsDollarEq,
6563
+ ): string {
6564
+ return JSON.stringify(
6565
+ DeploymentStreamDollarOrDeploymentsDollarEq$outboundSchema.parse(
6566
+ deploymentStreamDollarOrDeploymentsDollarEq,
6567
+ ),
6568
+ );
6569
+ }
6570
+
6571
+ export function deploymentStreamDollarOrDeploymentsDollarEqFromJSON(
6572
+ jsonString: string,
6573
+ ): SafeParseResult<
6574
+ DeploymentStreamDollarOrDeploymentsDollarEq,
6575
+ SDKValidationError
6576
+ > {
6577
+ return safeParse(
6578
+ jsonString,
6579
+ (x) =>
6580
+ DeploymentStreamDollarOrDeploymentsDollarEq$inboundSchema.parse(
6581
+ JSON.parse(x),
6582
+ ),
6583
+ `Failed to parse 'DeploymentStreamDollarOrDeploymentsDollarEq' from JSON`,
6584
+ );
6585
+ }
6586
+
6587
+ /** @internal */
6588
+ export const DeploymentStreamDollarOrDollarEq$inboundSchema: z.ZodType<
6589
+ DeploymentStreamDollarOrDollarEq,
6590
+ z.ZodTypeDef,
6591
+ unknown
6592
+ > = z.object({
6593
+ $eq: z.union([z.string(), z.number(), z.boolean()]),
6594
+ }).transform((v) => {
6595
+ return remap$(v, {
6596
+ "$eq": "dollarEq",
6597
+ });
6598
+ });
6599
+
6600
+ /** @internal */
6601
+ export type DeploymentStreamDollarOrDollarEq$Outbound = {
6602
+ $eq: string | number | boolean;
6603
+ };
6604
+
6605
+ /** @internal */
6606
+ export const DeploymentStreamDollarOrDollarEq$outboundSchema: z.ZodType<
6607
+ DeploymentStreamDollarOrDollarEq$Outbound,
6608
+ z.ZodTypeDef,
6609
+ DeploymentStreamDollarOrDollarEq
6610
+ > = z.object({
6611
+ dollarEq: z.union([z.string(), z.number(), z.boolean()]),
6612
+ }).transform((v) => {
6613
+ return remap$(v, {
6614
+ dollarEq: "$eq",
6615
+ });
6616
+ });
6617
+
6618
+ /**
6619
+ * @internal
6620
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6621
+ */
6622
+ export namespace DeploymentStreamDollarOrDollarEq$ {
6623
+ /** @deprecated use `DeploymentStreamDollarOrDollarEq$inboundSchema` instead. */
6624
+ export const inboundSchema = DeploymentStreamDollarOrDollarEq$inboundSchema;
6625
+ /** @deprecated use `DeploymentStreamDollarOrDollarEq$outboundSchema` instead. */
6626
+ export const outboundSchema = DeploymentStreamDollarOrDollarEq$outboundSchema;
6627
+ /** @deprecated use `DeploymentStreamDollarOrDollarEq$Outbound` instead. */
6628
+ export type Outbound = DeploymentStreamDollarOrDollarEq$Outbound;
6629
+ }
6630
+
6631
+ export function deploymentStreamDollarOrDollarEqToJSON(
6632
+ deploymentStreamDollarOrDollarEq: DeploymentStreamDollarOrDollarEq,
6633
+ ): string {
6634
+ return JSON.stringify(
6635
+ DeploymentStreamDollarOrDollarEq$outboundSchema.parse(
6636
+ deploymentStreamDollarOrDollarEq,
6637
+ ),
6638
+ );
6639
+ }
6640
+
6641
+ export function deploymentStreamDollarOrDollarEqFromJSON(
6642
+ jsonString: string,
6643
+ ): SafeParseResult<DeploymentStreamDollarOrDollarEq, SDKValidationError> {
6644
+ return safeParse(
6645
+ jsonString,
6646
+ (x) => DeploymentStreamDollarOrDollarEq$inboundSchema.parse(JSON.parse(x)),
6647
+ `Failed to parse 'DeploymentStreamDollarOrDollarEq' from JSON`,
6648
+ );
6649
+ }
6650
+
6651
+ /** @internal */
6652
+ export const DeploymentStreamKnowledgeFilterDeploymentsDollarOr$inboundSchema:
6653
+ z.ZodType<
6654
+ DeploymentStreamKnowledgeFilterDeploymentsDollarOr,
6655
+ z.ZodTypeDef,
6656
+ unknown
6657
+ > = z.union([
6658
+ z.lazy(() => DeploymentStreamDollarOrDollarEq$inboundSchema),
6659
+ z.lazy(() => DeploymentStreamDollarOrDollarNe$inboundSchema),
6660
+ z.lazy(() => DeploymentStreamDollarOr3$inboundSchema),
6661
+ z.lazy(() => DeploymentStreamDollarOrDollarGte$inboundSchema),
6662
+ z.lazy(() => DeploymentStreamDollarOrDollarLt$inboundSchema),
6663
+ z.lazy(() => DeploymentStreamDollarOrDollarLte$inboundSchema),
6664
+ z.lazy(() => DeploymentStreamDollarOrDollarIn$inboundSchema),
6665
+ z.lazy(() => DeploymentStreamDollarOrDollarNin$inboundSchema),
6666
+ z.lazy(() => DeploymentStreamDollarOrDollarExists$inboundSchema),
6667
+ ]);
6668
+
6669
+ /** @internal */
6670
+ export type DeploymentStreamKnowledgeFilterDeploymentsDollarOr$Outbound =
6671
+ | DeploymentStreamDollarOrDollarEq$Outbound
6672
+ | DeploymentStreamDollarOrDollarNe$Outbound
6673
+ | DeploymentStreamDollarOr3$Outbound
6674
+ | DeploymentStreamDollarOrDollarGte$Outbound
6675
+ | DeploymentStreamDollarOrDollarLt$Outbound
6676
+ | DeploymentStreamDollarOrDollarLte$Outbound
6677
+ | DeploymentStreamDollarOrDollarIn$Outbound
6678
+ | DeploymentStreamDollarOrDollarNin$Outbound
6679
+ | DeploymentStreamDollarOrDollarExists$Outbound;
6680
+
6681
+ /** @internal */
6682
+ export const DeploymentStreamKnowledgeFilterDeploymentsDollarOr$outboundSchema:
6683
+ z.ZodType<
6684
+ DeploymentStreamKnowledgeFilterDeploymentsDollarOr$Outbound,
6685
+ z.ZodTypeDef,
6686
+ DeploymentStreamKnowledgeFilterDeploymentsDollarOr
6687
+ > = z.union([
6688
+ z.lazy(() => DeploymentStreamDollarOrDollarEq$outboundSchema),
6689
+ z.lazy(() => DeploymentStreamDollarOrDollarNe$outboundSchema),
6690
+ z.lazy(() => DeploymentStreamDollarOr3$outboundSchema),
6691
+ z.lazy(() => DeploymentStreamDollarOrDollarGte$outboundSchema),
6692
+ z.lazy(() => DeploymentStreamDollarOrDollarLt$outboundSchema),
6693
+ z.lazy(() => DeploymentStreamDollarOrDollarLte$outboundSchema),
6694
+ z.lazy(() => DeploymentStreamDollarOrDollarIn$outboundSchema),
6695
+ z.lazy(() => DeploymentStreamDollarOrDollarNin$outboundSchema),
6696
+ z.lazy(() => DeploymentStreamDollarOrDollarExists$outboundSchema),
6697
+ ]);
6698
+
6699
+ /**
6700
+ * @internal
6701
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6702
+ */
6703
+ export namespace DeploymentStreamKnowledgeFilterDeploymentsDollarOr$ {
6704
+ /** @deprecated use `DeploymentStreamKnowledgeFilterDeploymentsDollarOr$inboundSchema` instead. */
6705
+ export const inboundSchema =
6706
+ DeploymentStreamKnowledgeFilterDeploymentsDollarOr$inboundSchema;
6707
+ /** @deprecated use `DeploymentStreamKnowledgeFilterDeploymentsDollarOr$outboundSchema` instead. */
6708
+ export const outboundSchema =
6709
+ DeploymentStreamKnowledgeFilterDeploymentsDollarOr$outboundSchema;
6710
+ /** @deprecated use `DeploymentStreamKnowledgeFilterDeploymentsDollarOr$Outbound` instead. */
6711
+ export type Outbound =
6712
+ DeploymentStreamKnowledgeFilterDeploymentsDollarOr$Outbound;
6713
+ }
6714
+
6715
+ export function deploymentStreamKnowledgeFilterDeploymentsDollarOrToJSON(
6716
+ deploymentStreamKnowledgeFilterDeploymentsDollarOr:
6717
+ DeploymentStreamKnowledgeFilterDeploymentsDollarOr,
6718
+ ): string {
6719
+ return JSON.stringify(
6720
+ DeploymentStreamKnowledgeFilterDeploymentsDollarOr$outboundSchema.parse(
6721
+ deploymentStreamKnowledgeFilterDeploymentsDollarOr,
6722
+ ),
6723
+ );
6724
+ }
6725
+
6726
+ export function deploymentStreamKnowledgeFilterDeploymentsDollarOrFromJSON(
6727
+ jsonString: string,
6728
+ ): SafeParseResult<
6729
+ DeploymentStreamKnowledgeFilterDeploymentsDollarOr,
6730
+ SDKValidationError
6731
+ > {
6732
+ return safeParse(
6733
+ jsonString,
6734
+ (x) =>
6735
+ DeploymentStreamKnowledgeFilterDeploymentsDollarOr$inboundSchema.parse(
6736
+ JSON.parse(x),
6737
+ ),
6738
+ `Failed to parse 'DeploymentStreamKnowledgeFilterDeploymentsDollarOr' from JSON`,
6739
+ );
6740
+ }
6741
+
6742
+ /** @internal */
6743
+ export const DeploymentStreamKnowledgeFilterDollarOr$inboundSchema: z.ZodType<
6744
+ DeploymentStreamKnowledgeFilterDollarOr,
6745
+ z.ZodTypeDef,
6746
+ unknown
6747
+ > = z.object({
6748
+ $or: z.array(
6749
+ z.record(z.union([
6750
+ z.lazy(() => DeploymentStreamDollarOrDollarEq$inboundSchema),
6751
+ z.lazy(() =>
6752
+ DeploymentStreamDollarOrDollarNe$inboundSchema
6753
+ ),
6754
+ z.lazy(() => DeploymentStreamDollarOr3$inboundSchema),
6755
+ z.lazy(() => DeploymentStreamDollarOrDollarGte$inboundSchema),
6756
+ z.lazy(() => DeploymentStreamDollarOrDollarLt$inboundSchema),
6757
+ z.lazy(() => DeploymentStreamDollarOrDollarLte$inboundSchema),
6758
+ z.lazy(() => DeploymentStreamDollarOrDollarIn$inboundSchema),
6759
+ z.lazy(() => DeploymentStreamDollarOrDollarNin$inboundSchema),
6760
+ z.lazy(() => DeploymentStreamDollarOrDollarExists$inboundSchema),
6761
+ ])),
6762
+ ),
6763
+ }).transform((v) => {
6764
+ return remap$(v, {
6765
+ "$or": "dollarOr",
6766
+ });
6767
+ });
6768
+
6769
+ /** @internal */
6770
+ export type DeploymentStreamKnowledgeFilterDollarOr$Outbound = {
6771
+ $or: Array<
6772
+ {
6773
+ [k: string]:
6774
+ | DeploymentStreamDollarOrDollarEq$Outbound
6775
+ | DeploymentStreamDollarOrDollarNe$Outbound
6776
+ | DeploymentStreamDollarOr3$Outbound
6777
+ | DeploymentStreamDollarOrDollarGte$Outbound
6778
+ | DeploymentStreamDollarOrDollarLt$Outbound
6779
+ | DeploymentStreamDollarOrDollarLte$Outbound
6780
+ | DeploymentStreamDollarOrDollarIn$Outbound
6781
+ | DeploymentStreamDollarOrDollarNin$Outbound
6782
+ | DeploymentStreamDollarOrDollarExists$Outbound;
6783
+ }
6784
+ >;
6785
+ };
6786
+
6787
+ /** @internal */
6788
+ export const DeploymentStreamKnowledgeFilterDollarOr$outboundSchema: z.ZodType<
6789
+ DeploymentStreamKnowledgeFilterDollarOr$Outbound,
6790
+ z.ZodTypeDef,
6791
+ DeploymentStreamKnowledgeFilterDollarOr
6792
+ > = z.object({
6793
+ dollarOr: z.array(
6794
+ z.record(z.union([
6795
+ z.lazy(() => DeploymentStreamDollarOrDollarEq$outboundSchema),
6796
+ z.lazy(() =>
6797
+ DeploymentStreamDollarOrDollarNe$outboundSchema
6798
+ ),
6799
+ z.lazy(() => DeploymentStreamDollarOr3$outboundSchema),
6800
+ z.lazy(() => DeploymentStreamDollarOrDollarGte$outboundSchema),
6801
+ z.lazy(() => DeploymentStreamDollarOrDollarLt$outboundSchema),
6802
+ z.lazy(() => DeploymentStreamDollarOrDollarLte$outboundSchema),
6803
+ z.lazy(() => DeploymentStreamDollarOrDollarIn$outboundSchema),
6804
+ z.lazy(() => DeploymentStreamDollarOrDollarNin$outboundSchema),
6805
+ z.lazy(() => DeploymentStreamDollarOrDollarExists$outboundSchema),
6806
+ ])),
6807
+ ),
6808
+ }).transform((v) => {
6809
+ return remap$(v, {
6810
+ dollarOr: "$or",
6811
+ });
6812
+ });
6813
+
6814
+ /**
6815
+ * @internal
6816
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6817
+ */
6818
+ export namespace DeploymentStreamKnowledgeFilterDollarOr$ {
6819
+ /** @deprecated use `DeploymentStreamKnowledgeFilterDollarOr$inboundSchema` instead. */
6820
+ export const inboundSchema =
6821
+ DeploymentStreamKnowledgeFilterDollarOr$inboundSchema;
6822
+ /** @deprecated use `DeploymentStreamKnowledgeFilterDollarOr$outboundSchema` instead. */
6823
+ export const outboundSchema =
6824
+ DeploymentStreamKnowledgeFilterDollarOr$outboundSchema;
6825
+ /** @deprecated use `DeploymentStreamKnowledgeFilterDollarOr$Outbound` instead. */
6826
+ export type Outbound = DeploymentStreamKnowledgeFilterDollarOr$Outbound;
6827
+ }
6828
+
6829
+ export function deploymentStreamKnowledgeFilterDollarOrToJSON(
6830
+ deploymentStreamKnowledgeFilterDollarOr:
6831
+ DeploymentStreamKnowledgeFilterDollarOr,
6832
+ ): string {
6833
+ return JSON.stringify(
6834
+ DeploymentStreamKnowledgeFilterDollarOr$outboundSchema.parse(
6835
+ deploymentStreamKnowledgeFilterDollarOr,
6836
+ ),
6837
+ );
6838
+ }
6839
+
6840
+ export function deploymentStreamKnowledgeFilterDollarOrFromJSON(
6841
+ jsonString: string,
6842
+ ): SafeParseResult<
6843
+ DeploymentStreamKnowledgeFilterDollarOr,
6844
+ SDKValidationError
6845
+ > {
6846
+ return safeParse(
6847
+ jsonString,
6848
+ (x) =>
6849
+ DeploymentStreamKnowledgeFilterDollarOr$inboundSchema.parse(
6850
+ JSON.parse(x),
6851
+ ),
6852
+ `Failed to parse 'DeploymentStreamKnowledgeFilterDollarOr' from JSON`,
6853
+ );
6854
+ }
6855
+
6856
+ /** @internal */
6857
+ export const DeploymentStreamDollarAndDollarExists$inboundSchema: z.ZodType<
6858
+ DeploymentStreamDollarAndDollarExists,
6859
+ z.ZodTypeDef,
6860
+ unknown
6861
+ > = z.object({
6862
+ $exists: z.boolean(),
6863
+ }).transform((v) => {
6864
+ return remap$(v, {
6865
+ "$exists": "dollarExists",
6866
+ });
6867
+ });
6868
+
6869
+ /** @internal */
6870
+ export type DeploymentStreamDollarAndDollarExists$Outbound = {
6871
+ $exists: boolean;
6872
+ };
6873
+
6874
+ /** @internal */
6875
+ export const DeploymentStreamDollarAndDollarExists$outboundSchema: z.ZodType<
6876
+ DeploymentStreamDollarAndDollarExists$Outbound,
6877
+ z.ZodTypeDef,
6878
+ DeploymentStreamDollarAndDollarExists
6879
+ > = z.object({
6880
+ dollarExists: z.boolean(),
6881
+ }).transform((v) => {
6882
+ return remap$(v, {
6883
+ dollarExists: "$exists",
6884
+ });
6885
+ });
6886
+
6887
+ /**
6888
+ * @internal
6889
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6890
+ */
6891
+ export namespace DeploymentStreamDollarAndDollarExists$ {
6892
+ /** @deprecated use `DeploymentStreamDollarAndDollarExists$inboundSchema` instead. */
6893
+ export const inboundSchema =
6894
+ DeploymentStreamDollarAndDollarExists$inboundSchema;
6895
+ /** @deprecated use `DeploymentStreamDollarAndDollarExists$outboundSchema` instead. */
6896
+ export const outboundSchema =
6897
+ DeploymentStreamDollarAndDollarExists$outboundSchema;
6898
+ /** @deprecated use `DeploymentStreamDollarAndDollarExists$Outbound` instead. */
6899
+ export type Outbound = DeploymentStreamDollarAndDollarExists$Outbound;
6900
+ }
6901
+
6902
+ export function deploymentStreamDollarAndDollarExistsToJSON(
6903
+ deploymentStreamDollarAndDollarExists: DeploymentStreamDollarAndDollarExists,
6904
+ ): string {
6905
+ return JSON.stringify(
6906
+ DeploymentStreamDollarAndDollarExists$outboundSchema.parse(
6907
+ deploymentStreamDollarAndDollarExists,
6908
+ ),
6909
+ );
6910
+ }
6911
+
6912
+ export function deploymentStreamDollarAndDollarExistsFromJSON(
6913
+ jsonString: string,
6914
+ ): SafeParseResult<DeploymentStreamDollarAndDollarExists, SDKValidationError> {
6915
+ return safeParse(
6916
+ jsonString,
6917
+ (x) =>
6918
+ DeploymentStreamDollarAndDollarExists$inboundSchema.parse(JSON.parse(x)),
6919
+ `Failed to parse 'DeploymentStreamDollarAndDollarExists' from JSON`,
6920
+ );
6921
+ }
6922
+
6923
+ /** @internal */
6924
+ export const DeploymentStreamDollarAndDeploymentsDollarNin$inboundSchema:
6925
+ z.ZodType<
6926
+ DeploymentStreamDollarAndDeploymentsDollarNin,
6927
+ z.ZodTypeDef,
6928
+ unknown
6929
+ > = z.union([z.string(), z.number(), z.boolean()]);
6930
+
6931
+ /** @internal */
6932
+ export type DeploymentStreamDollarAndDeploymentsDollarNin$Outbound =
6933
+ | string
6934
+ | number
6935
+ | boolean;
6936
+
6937
+ /** @internal */
6938
+ export const DeploymentStreamDollarAndDeploymentsDollarNin$outboundSchema:
6939
+ z.ZodType<
6940
+ DeploymentStreamDollarAndDeploymentsDollarNin$Outbound,
6941
+ z.ZodTypeDef,
6942
+ DeploymentStreamDollarAndDeploymentsDollarNin
6943
+ > = z.union([z.string(), z.number(), z.boolean()]);
6944
+
6945
+ /**
6946
+ * @internal
6947
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6948
+ */
6949
+ export namespace DeploymentStreamDollarAndDeploymentsDollarNin$ {
6950
+ /** @deprecated use `DeploymentStreamDollarAndDeploymentsDollarNin$inboundSchema` instead. */
6951
+ export const inboundSchema =
6952
+ DeploymentStreamDollarAndDeploymentsDollarNin$inboundSchema;
6953
+ /** @deprecated use `DeploymentStreamDollarAndDeploymentsDollarNin$outboundSchema` instead. */
6954
+ export const outboundSchema =
6955
+ DeploymentStreamDollarAndDeploymentsDollarNin$outboundSchema;
6956
+ /** @deprecated use `DeploymentStreamDollarAndDeploymentsDollarNin$Outbound` instead. */
6957
+ export type Outbound = DeploymentStreamDollarAndDeploymentsDollarNin$Outbound;
6958
+ }
6959
+
6960
+ export function deploymentStreamDollarAndDeploymentsDollarNinToJSON(
6961
+ deploymentStreamDollarAndDeploymentsDollarNin:
6962
+ DeploymentStreamDollarAndDeploymentsDollarNin,
6963
+ ): string {
6964
+ return JSON.stringify(
6965
+ DeploymentStreamDollarAndDeploymentsDollarNin$outboundSchema.parse(
6966
+ deploymentStreamDollarAndDeploymentsDollarNin,
6967
+ ),
6968
+ );
6969
+ }
6970
+
6971
+ export function deploymentStreamDollarAndDeploymentsDollarNinFromJSON(
6972
+ jsonString: string,
6973
+ ): SafeParseResult<
6974
+ DeploymentStreamDollarAndDeploymentsDollarNin,
6975
+ SDKValidationError
6976
+ > {
6977
+ return safeParse(
6978
+ jsonString,
6979
+ (x) =>
6980
+ DeploymentStreamDollarAndDeploymentsDollarNin$inboundSchema.parse(
6981
+ JSON.parse(x),
6982
+ ),
6983
+ `Failed to parse 'DeploymentStreamDollarAndDeploymentsDollarNin' from JSON`,
6984
+ );
6985
+ }
6986
+
6987
+ /** @internal */
6988
+ export const DeploymentStreamDollarAndDollarNin$inboundSchema: z.ZodType<
6989
+ DeploymentStreamDollarAndDollarNin,
6990
+ z.ZodTypeDef,
6991
+ unknown
6992
+ > = z.object({
6993
+ $nin: z.array(z.union([z.string(), z.number(), z.boolean()])),
6994
+ }).transform((v) => {
6995
+ return remap$(v, {
6996
+ "$nin": "dollarNin",
6997
+ });
6998
+ });
6999
+
7000
+ /** @internal */
7001
+ export type DeploymentStreamDollarAndDollarNin$Outbound = {
7002
+ $nin: Array<string | number | boolean>;
7003
+ };
7004
+
7005
+ /** @internal */
7006
+ export const DeploymentStreamDollarAndDollarNin$outboundSchema: z.ZodType<
7007
+ DeploymentStreamDollarAndDollarNin$Outbound,
7008
+ z.ZodTypeDef,
7009
+ DeploymentStreamDollarAndDollarNin
7010
+ > = z.object({
7011
+ dollarNin: z.array(z.union([z.string(), z.number(), z.boolean()])),
7012
+ }).transform((v) => {
7013
+ return remap$(v, {
7014
+ dollarNin: "$nin",
7015
+ });
7016
+ });
7017
+
7018
+ /**
7019
+ * @internal
7020
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
7021
+ */
7022
+ export namespace DeploymentStreamDollarAndDollarNin$ {
7023
+ /** @deprecated use `DeploymentStreamDollarAndDollarNin$inboundSchema` instead. */
7024
+ export const inboundSchema = DeploymentStreamDollarAndDollarNin$inboundSchema;
7025
+ /** @deprecated use `DeploymentStreamDollarAndDollarNin$outboundSchema` instead. */
7026
+ export const outboundSchema =
7027
+ DeploymentStreamDollarAndDollarNin$outboundSchema;
7028
+ /** @deprecated use `DeploymentStreamDollarAndDollarNin$Outbound` instead. */
7029
+ export type Outbound = DeploymentStreamDollarAndDollarNin$Outbound;
7030
+ }
7031
+
7032
+ export function deploymentStreamDollarAndDollarNinToJSON(
7033
+ deploymentStreamDollarAndDollarNin: DeploymentStreamDollarAndDollarNin,
7034
+ ): string {
7035
+ return JSON.stringify(
7036
+ DeploymentStreamDollarAndDollarNin$outboundSchema.parse(
7037
+ deploymentStreamDollarAndDollarNin,
7038
+ ),
7039
+ );
7040
+ }
7041
+
7042
+ export function deploymentStreamDollarAndDollarNinFromJSON(
7043
+ jsonString: string,
7044
+ ): SafeParseResult<DeploymentStreamDollarAndDollarNin, SDKValidationError> {
7045
+ return safeParse(
7046
+ jsonString,
7047
+ (x) =>
7048
+ DeploymentStreamDollarAndDollarNin$inboundSchema.parse(JSON.parse(x)),
7049
+ `Failed to parse 'DeploymentStreamDollarAndDollarNin' from JSON`,
7050
+ );
7051
+ }
7052
+
7053
+ /** @internal */
7054
+ export const DeploymentStreamDollarAndDeploymentsDollarIn$inboundSchema:
7055
+ z.ZodType<
7056
+ DeploymentStreamDollarAndDeploymentsDollarIn,
7057
+ z.ZodTypeDef,
7058
+ unknown
7059
+ > = z.union([z.string(), z.number(), z.boolean()]);
7060
+
7061
+ /** @internal */
7062
+ export type DeploymentStreamDollarAndDeploymentsDollarIn$Outbound =
7063
+ | string
7064
+ | number
7065
+ | boolean;
7066
+
7067
+ /** @internal */
7068
+ export const DeploymentStreamDollarAndDeploymentsDollarIn$outboundSchema:
7069
+ z.ZodType<
7070
+ DeploymentStreamDollarAndDeploymentsDollarIn$Outbound,
7071
+ z.ZodTypeDef,
7072
+ DeploymentStreamDollarAndDeploymentsDollarIn
7073
+ > = z.union([z.string(), z.number(), z.boolean()]);
7074
+
7075
+ /**
7076
+ * @internal
7077
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
7078
+ */
7079
+ export namespace DeploymentStreamDollarAndDeploymentsDollarIn$ {
7080
+ /** @deprecated use `DeploymentStreamDollarAndDeploymentsDollarIn$inboundSchema` instead. */
7081
+ export const inboundSchema =
7082
+ DeploymentStreamDollarAndDeploymentsDollarIn$inboundSchema;
7083
+ /** @deprecated use `DeploymentStreamDollarAndDeploymentsDollarIn$outboundSchema` instead. */
7084
+ export const outboundSchema =
7085
+ DeploymentStreamDollarAndDeploymentsDollarIn$outboundSchema;
7086
+ /** @deprecated use `DeploymentStreamDollarAndDeploymentsDollarIn$Outbound` instead. */
7087
+ export type Outbound = DeploymentStreamDollarAndDeploymentsDollarIn$Outbound;
7088
+ }
7089
+
7090
+ export function deploymentStreamDollarAndDeploymentsDollarInToJSON(
7091
+ deploymentStreamDollarAndDeploymentsDollarIn:
7092
+ DeploymentStreamDollarAndDeploymentsDollarIn,
7093
+ ): string {
7094
+ return JSON.stringify(
7095
+ DeploymentStreamDollarAndDeploymentsDollarIn$outboundSchema.parse(
7096
+ deploymentStreamDollarAndDeploymentsDollarIn,
7097
+ ),
7098
+ );
7099
+ }
7100
+
7101
+ export function deploymentStreamDollarAndDeploymentsDollarInFromJSON(
7102
+ jsonString: string,
7103
+ ): SafeParseResult<
7104
+ DeploymentStreamDollarAndDeploymentsDollarIn,
7105
+ SDKValidationError
7106
+ > {
7107
+ return safeParse(
7108
+ jsonString,
7109
+ (x) =>
7110
+ DeploymentStreamDollarAndDeploymentsDollarIn$inboundSchema.parse(
7111
+ JSON.parse(x),
7112
+ ),
7113
+ `Failed to parse 'DeploymentStreamDollarAndDeploymentsDollarIn' from JSON`,
7114
+ );
7115
+ }
7116
+
7117
+ /** @internal */
7118
+ export const DeploymentStreamDollarAndDollarIn$inboundSchema: z.ZodType<
7119
+ DeploymentStreamDollarAndDollarIn,
7120
+ z.ZodTypeDef,
7121
+ unknown
7122
+ > = z.object({
7123
+ $in: z.array(z.union([z.string(), z.number(), z.boolean()])),
7124
+ }).transform((v) => {
7125
+ return remap$(v, {
7126
+ "$in": "dollarIn",
7127
+ });
7128
+ });
7129
+
7130
+ /** @internal */
7131
+ export type DeploymentStreamDollarAndDollarIn$Outbound = {
7132
+ $in: Array<string | number | boolean>;
7133
+ };
7134
+
7135
+ /** @internal */
7136
+ export const DeploymentStreamDollarAndDollarIn$outboundSchema: z.ZodType<
7137
+ DeploymentStreamDollarAndDollarIn$Outbound,
7138
+ z.ZodTypeDef,
7139
+ DeploymentStreamDollarAndDollarIn
7140
+ > = z.object({
7141
+ dollarIn: z.array(z.union([z.string(), z.number(), z.boolean()])),
7142
+ }).transform((v) => {
7143
+ return remap$(v, {
7144
+ dollarIn: "$in",
7145
+ });
7146
+ });
7147
+
7148
+ /**
7149
+ * @internal
7150
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
7151
+ */
7152
+ export namespace DeploymentStreamDollarAndDollarIn$ {
7153
+ /** @deprecated use `DeploymentStreamDollarAndDollarIn$inboundSchema` instead. */
7154
+ export const inboundSchema = DeploymentStreamDollarAndDollarIn$inboundSchema;
7155
+ /** @deprecated use `DeploymentStreamDollarAndDollarIn$outboundSchema` instead. */
7156
+ export const outboundSchema =
7157
+ DeploymentStreamDollarAndDollarIn$outboundSchema;
7158
+ /** @deprecated use `DeploymentStreamDollarAndDollarIn$Outbound` instead. */
7159
+ export type Outbound = DeploymentStreamDollarAndDollarIn$Outbound;
7160
+ }
7161
+
7162
+ export function deploymentStreamDollarAndDollarInToJSON(
7163
+ deploymentStreamDollarAndDollarIn: DeploymentStreamDollarAndDollarIn,
7164
+ ): string {
7165
+ return JSON.stringify(
7166
+ DeploymentStreamDollarAndDollarIn$outboundSchema.parse(
7167
+ deploymentStreamDollarAndDollarIn,
7168
+ ),
7169
+ );
7170
+ }
7171
+
7172
+ export function deploymentStreamDollarAndDollarInFromJSON(
7173
+ jsonString: string,
7174
+ ): SafeParseResult<DeploymentStreamDollarAndDollarIn, SDKValidationError> {
7175
+ return safeParse(
7176
+ jsonString,
7177
+ (x) => DeploymentStreamDollarAndDollarIn$inboundSchema.parse(JSON.parse(x)),
7178
+ `Failed to parse 'DeploymentStreamDollarAndDollarIn' from JSON`,
7179
+ );
7180
+ }
7181
+
7182
+ /** @internal */
7183
+ export const DeploymentStreamDollarAndDollarLte$inboundSchema: z.ZodType<
7184
+ DeploymentStreamDollarAndDollarLte,
7185
+ z.ZodTypeDef,
7186
+ unknown
7187
+ > = z.object({
7188
+ $lte: z.number(),
7189
+ }).transform((v) => {
7190
+ return remap$(v, {
7191
+ "$lte": "dollarLte",
7192
+ });
7193
+ });
7194
+
7195
+ /** @internal */
7196
+ export type DeploymentStreamDollarAndDollarLte$Outbound = {
7197
+ $lte: number;
7198
+ };
7199
+
7200
+ /** @internal */
7201
+ export const DeploymentStreamDollarAndDollarLte$outboundSchema: z.ZodType<
7202
+ DeploymentStreamDollarAndDollarLte$Outbound,
7203
+ z.ZodTypeDef,
7204
+ DeploymentStreamDollarAndDollarLte
7205
+ > = z.object({
7206
+ dollarLte: z.number(),
7207
+ }).transform((v) => {
7208
+ return remap$(v, {
7209
+ dollarLte: "$lte",
7210
+ });
7211
+ });
7212
+
7213
+ /**
7214
+ * @internal
7215
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
7216
+ */
7217
+ export namespace DeploymentStreamDollarAndDollarLte$ {
7218
+ /** @deprecated use `DeploymentStreamDollarAndDollarLte$inboundSchema` instead. */
7219
+ export const inboundSchema = DeploymentStreamDollarAndDollarLte$inboundSchema;
7220
+ /** @deprecated use `DeploymentStreamDollarAndDollarLte$outboundSchema` instead. */
7221
+ export const outboundSchema =
7222
+ DeploymentStreamDollarAndDollarLte$outboundSchema;
7223
+ /** @deprecated use `DeploymentStreamDollarAndDollarLte$Outbound` instead. */
7224
+ export type Outbound = DeploymentStreamDollarAndDollarLte$Outbound;
7225
+ }
7226
+
7227
+ export function deploymentStreamDollarAndDollarLteToJSON(
7228
+ deploymentStreamDollarAndDollarLte: DeploymentStreamDollarAndDollarLte,
7229
+ ): string {
7230
+ return JSON.stringify(
7231
+ DeploymentStreamDollarAndDollarLte$outboundSchema.parse(
7232
+ deploymentStreamDollarAndDollarLte,
7233
+ ),
7234
+ );
7235
+ }
7236
+
7237
+ export function deploymentStreamDollarAndDollarLteFromJSON(
7238
+ jsonString: string,
7239
+ ): SafeParseResult<DeploymentStreamDollarAndDollarLte, SDKValidationError> {
7240
+ return safeParse(
7241
+ jsonString,
7242
+ (x) =>
7243
+ DeploymentStreamDollarAndDollarLte$inboundSchema.parse(JSON.parse(x)),
7244
+ `Failed to parse 'DeploymentStreamDollarAndDollarLte' from JSON`,
7245
+ );
7246
+ }
7247
+
7248
+ /** @internal */
7249
+ export const DeploymentStreamDollarAndDollarLt$inboundSchema: z.ZodType<
7250
+ DeploymentStreamDollarAndDollarLt,
7251
+ z.ZodTypeDef,
7252
+ unknown
7253
+ > = z.object({
7254
+ $lt: z.number(),
7255
+ }).transform((v) => {
7256
+ return remap$(v, {
7257
+ "$lt": "dollarLt",
7258
+ });
7259
+ });
7260
+
7261
+ /** @internal */
7262
+ export type DeploymentStreamDollarAndDollarLt$Outbound = {
7263
+ $lt: number;
7264
+ };
7265
+
7266
+ /** @internal */
7267
+ export const DeploymentStreamDollarAndDollarLt$outboundSchema: z.ZodType<
7268
+ DeploymentStreamDollarAndDollarLt$Outbound,
7269
+ z.ZodTypeDef,
7270
+ DeploymentStreamDollarAndDollarLt
7271
+ > = z.object({
7272
+ dollarLt: z.number(),
7273
+ }).transform((v) => {
7274
+ return remap$(v, {
7275
+ dollarLt: "$lt",
7276
+ });
7277
+ });
7278
+
7279
+ /**
7280
+ * @internal
7281
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
7282
+ */
7283
+ export namespace DeploymentStreamDollarAndDollarLt$ {
7284
+ /** @deprecated use `DeploymentStreamDollarAndDollarLt$inboundSchema` instead. */
7285
+ export const inboundSchema = DeploymentStreamDollarAndDollarLt$inboundSchema;
7286
+ /** @deprecated use `DeploymentStreamDollarAndDollarLt$outboundSchema` instead. */
7287
+ export const outboundSchema =
7288
+ DeploymentStreamDollarAndDollarLt$outboundSchema;
7289
+ /** @deprecated use `DeploymentStreamDollarAndDollarLt$Outbound` instead. */
7290
+ export type Outbound = DeploymentStreamDollarAndDollarLt$Outbound;
7291
+ }
7292
+
7293
+ export function deploymentStreamDollarAndDollarLtToJSON(
7294
+ deploymentStreamDollarAndDollarLt: DeploymentStreamDollarAndDollarLt,
7295
+ ): string {
7296
+ return JSON.stringify(
7297
+ DeploymentStreamDollarAndDollarLt$outboundSchema.parse(
7298
+ deploymentStreamDollarAndDollarLt,
7299
+ ),
7300
+ );
7301
+ }
7302
+
7303
+ export function deploymentStreamDollarAndDollarLtFromJSON(
7304
+ jsonString: string,
7305
+ ): SafeParseResult<DeploymentStreamDollarAndDollarLt, SDKValidationError> {
7306
+ return safeParse(
7307
+ jsonString,
7308
+ (x) => DeploymentStreamDollarAndDollarLt$inboundSchema.parse(JSON.parse(x)),
7309
+ `Failed to parse 'DeploymentStreamDollarAndDollarLt' from JSON`,
7310
+ );
7311
+ }
7312
+
7313
+ /** @internal */
7314
+ export const DeploymentStreamDollarAndDollarGte$inboundSchema: z.ZodType<
7315
+ DeploymentStreamDollarAndDollarGte,
7316
+ z.ZodTypeDef,
7317
+ unknown
7318
+ > = z.object({
7319
+ $gte: z.number(),
7320
+ }).transform((v) => {
7321
+ return remap$(v, {
7322
+ "$gte": "dollarGte",
7323
+ });
7324
+ });
7325
+
7326
+ /** @internal */
7327
+ export type DeploymentStreamDollarAndDollarGte$Outbound = {
7328
+ $gte: number;
7329
+ };
7330
+
7331
+ /** @internal */
7332
+ export const DeploymentStreamDollarAndDollarGte$outboundSchema: z.ZodType<
7333
+ DeploymentStreamDollarAndDollarGte$Outbound,
7334
+ z.ZodTypeDef,
7335
+ DeploymentStreamDollarAndDollarGte
7336
+ > = z.object({
7337
+ dollarGte: z.number(),
7338
+ }).transform((v) => {
7339
+ return remap$(v, {
7340
+ dollarGte: "$gte",
7341
+ });
7342
+ });
7343
+
7344
+ /**
7345
+ * @internal
7346
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
7347
+ */
7348
+ export namespace DeploymentStreamDollarAndDollarGte$ {
7349
+ /** @deprecated use `DeploymentStreamDollarAndDollarGte$inboundSchema` instead. */
7350
+ export const inboundSchema = DeploymentStreamDollarAndDollarGte$inboundSchema;
7351
+ /** @deprecated use `DeploymentStreamDollarAndDollarGte$outboundSchema` instead. */
7352
+ export const outboundSchema =
7353
+ DeploymentStreamDollarAndDollarGte$outboundSchema;
7354
+ /** @deprecated use `DeploymentStreamDollarAndDollarGte$Outbound` instead. */
7355
+ export type Outbound = DeploymentStreamDollarAndDollarGte$Outbound;
7356
+ }
7357
+
7358
+ export function deploymentStreamDollarAndDollarGteToJSON(
7359
+ deploymentStreamDollarAndDollarGte: DeploymentStreamDollarAndDollarGte,
7360
+ ): string {
7361
+ return JSON.stringify(
7362
+ DeploymentStreamDollarAndDollarGte$outboundSchema.parse(
7363
+ deploymentStreamDollarAndDollarGte,
7364
+ ),
7365
+ );
7366
+ }
7367
+
7368
+ export function deploymentStreamDollarAndDollarGteFromJSON(
7369
+ jsonString: string,
7370
+ ): SafeParseResult<DeploymentStreamDollarAndDollarGte, SDKValidationError> {
7371
+ return safeParse(
7372
+ jsonString,
7373
+ (x) =>
7374
+ DeploymentStreamDollarAndDollarGte$inboundSchema.parse(JSON.parse(x)),
7375
+ `Failed to parse 'DeploymentStreamDollarAndDollarGte' from JSON`,
7376
+ );
7377
+ }
7378
+
7379
+ /** @internal */
7380
+ export const DeploymentStreamDollarAnd3$inboundSchema: z.ZodType<
7381
+ DeploymentStreamDollarAnd3,
7382
+ z.ZodTypeDef,
7383
+ unknown
7384
+ > = z.object({
7385
+ $gt: z.number(),
7386
+ }).transform((v) => {
7387
+ return remap$(v, {
7388
+ "$gt": "dollarGt",
7389
+ });
7390
+ });
7391
+
7392
+ /** @internal */
7393
+ export type DeploymentStreamDollarAnd3$Outbound = {
7394
+ $gt: number;
7395
+ };
7396
+
7397
+ /** @internal */
7398
+ export const DeploymentStreamDollarAnd3$outboundSchema: z.ZodType<
7399
+ DeploymentStreamDollarAnd3$Outbound,
7400
+ z.ZodTypeDef,
7401
+ DeploymentStreamDollarAnd3
7402
+ > = z.object({
7403
+ dollarGt: z.number(),
7404
+ }).transform((v) => {
7405
+ return remap$(v, {
7406
+ dollarGt: "$gt",
7407
+ });
7408
+ });
7409
+
7410
+ /**
7411
+ * @internal
7412
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
7413
+ */
7414
+ export namespace DeploymentStreamDollarAnd3$ {
7415
+ /** @deprecated use `DeploymentStreamDollarAnd3$inboundSchema` instead. */
7416
+ export const inboundSchema = DeploymentStreamDollarAnd3$inboundSchema;
7417
+ /** @deprecated use `DeploymentStreamDollarAnd3$outboundSchema` instead. */
7418
+ export const outboundSchema = DeploymentStreamDollarAnd3$outboundSchema;
7419
+ /** @deprecated use `DeploymentStreamDollarAnd3$Outbound` instead. */
7420
+ export type Outbound = DeploymentStreamDollarAnd3$Outbound;
7421
+ }
7422
+
7423
+ export function deploymentStreamDollarAnd3ToJSON(
7424
+ deploymentStreamDollarAnd3: DeploymentStreamDollarAnd3,
7425
+ ): string {
7426
+ return JSON.stringify(
7427
+ DeploymentStreamDollarAnd3$outboundSchema.parse(deploymentStreamDollarAnd3),
7428
+ );
7429
+ }
7430
+
7431
+ export function deploymentStreamDollarAnd3FromJSON(
7432
+ jsonString: string,
7433
+ ): SafeParseResult<DeploymentStreamDollarAnd3, SDKValidationError> {
7434
+ return safeParse(
7435
+ jsonString,
7436
+ (x) => DeploymentStreamDollarAnd3$inboundSchema.parse(JSON.parse(x)),
7437
+ `Failed to parse 'DeploymentStreamDollarAnd3' from JSON`,
7438
+ );
7439
+ }
7440
+
7441
+ /** @internal */
7442
+ export const DeploymentStreamDollarAndDeploymentsDollarNe$inboundSchema:
7443
+ z.ZodType<
7444
+ DeploymentStreamDollarAndDeploymentsDollarNe,
7445
+ z.ZodTypeDef,
7446
+ unknown
7447
+ > = z.union([z.string(), z.number(), z.boolean()]);
7448
+
7449
+ /** @internal */
7450
+ export type DeploymentStreamDollarAndDeploymentsDollarNe$Outbound =
7451
+ | string
7452
+ | number
7453
+ | boolean;
7454
+
7455
+ /** @internal */
7456
+ export const DeploymentStreamDollarAndDeploymentsDollarNe$outboundSchema:
7457
+ z.ZodType<
7458
+ DeploymentStreamDollarAndDeploymentsDollarNe$Outbound,
7459
+ z.ZodTypeDef,
7460
+ DeploymentStreamDollarAndDeploymentsDollarNe
7461
+ > = z.union([z.string(), z.number(), z.boolean()]);
7462
+
7463
+ /**
7464
+ * @internal
7465
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
7466
+ */
7467
+ export namespace DeploymentStreamDollarAndDeploymentsDollarNe$ {
7468
+ /** @deprecated use `DeploymentStreamDollarAndDeploymentsDollarNe$inboundSchema` instead. */
7469
+ export const inboundSchema =
7470
+ DeploymentStreamDollarAndDeploymentsDollarNe$inboundSchema;
7471
+ /** @deprecated use `DeploymentStreamDollarAndDeploymentsDollarNe$outboundSchema` instead. */
7472
+ export const outboundSchema =
7473
+ DeploymentStreamDollarAndDeploymentsDollarNe$outboundSchema;
7474
+ /** @deprecated use `DeploymentStreamDollarAndDeploymentsDollarNe$Outbound` instead. */
7475
+ export type Outbound = DeploymentStreamDollarAndDeploymentsDollarNe$Outbound;
7476
+ }
7477
+
7478
+ export function deploymentStreamDollarAndDeploymentsDollarNeToJSON(
7479
+ deploymentStreamDollarAndDeploymentsDollarNe:
7480
+ DeploymentStreamDollarAndDeploymentsDollarNe,
7481
+ ): string {
7482
+ return JSON.stringify(
7483
+ DeploymentStreamDollarAndDeploymentsDollarNe$outboundSchema.parse(
7484
+ deploymentStreamDollarAndDeploymentsDollarNe,
7485
+ ),
7486
+ );
7487
+ }
7488
+
7489
+ export function deploymentStreamDollarAndDeploymentsDollarNeFromJSON(
7490
+ jsonString: string,
7491
+ ): SafeParseResult<
7492
+ DeploymentStreamDollarAndDeploymentsDollarNe,
7493
+ SDKValidationError
7494
+ > {
7495
+ return safeParse(
7496
+ jsonString,
7497
+ (x) =>
7498
+ DeploymentStreamDollarAndDeploymentsDollarNe$inboundSchema.parse(
7499
+ JSON.parse(x),
7500
+ ),
7501
+ `Failed to parse 'DeploymentStreamDollarAndDeploymentsDollarNe' from JSON`,
7502
+ );
7503
+ }
7504
+
7505
+ /** @internal */
7506
+ export const DeploymentStreamDollarAndDollarNe$inboundSchema: z.ZodType<
7507
+ DeploymentStreamDollarAndDollarNe,
7508
+ z.ZodTypeDef,
7509
+ unknown
7510
+ > = z.object({
7511
+ $ne: z.union([z.string(), z.number(), z.boolean()]),
7512
+ }).transform((v) => {
7513
+ return remap$(v, {
7514
+ "$ne": "dollarNe",
7515
+ });
7516
+ });
7517
+
7518
+ /** @internal */
7519
+ export type DeploymentStreamDollarAndDollarNe$Outbound = {
7520
+ $ne: string | number | boolean;
7521
+ };
7522
+
7523
+ /** @internal */
7524
+ export const DeploymentStreamDollarAndDollarNe$outboundSchema: z.ZodType<
7525
+ DeploymentStreamDollarAndDollarNe$Outbound,
7526
+ z.ZodTypeDef,
7527
+ DeploymentStreamDollarAndDollarNe
7528
+ > = z.object({
7529
+ dollarNe: z.union([z.string(), z.number(), z.boolean()]),
7530
+ }).transform((v) => {
7531
+ return remap$(v, {
7532
+ dollarNe: "$ne",
7533
+ });
7534
+ });
7535
+
7536
+ /**
7537
+ * @internal
7538
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
7539
+ */
7540
+ export namespace DeploymentStreamDollarAndDollarNe$ {
7541
+ /** @deprecated use `DeploymentStreamDollarAndDollarNe$inboundSchema` instead. */
7542
+ export const inboundSchema = DeploymentStreamDollarAndDollarNe$inboundSchema;
7543
+ /** @deprecated use `DeploymentStreamDollarAndDollarNe$outboundSchema` instead. */
7544
+ export const outboundSchema =
7545
+ DeploymentStreamDollarAndDollarNe$outboundSchema;
7546
+ /** @deprecated use `DeploymentStreamDollarAndDollarNe$Outbound` instead. */
7547
+ export type Outbound = DeploymentStreamDollarAndDollarNe$Outbound;
7548
+ }
7549
+
7550
+ export function deploymentStreamDollarAndDollarNeToJSON(
7551
+ deploymentStreamDollarAndDollarNe: DeploymentStreamDollarAndDollarNe,
7552
+ ): string {
7553
+ return JSON.stringify(
7554
+ DeploymentStreamDollarAndDollarNe$outboundSchema.parse(
7555
+ deploymentStreamDollarAndDollarNe,
7556
+ ),
7557
+ );
7558
+ }
7559
+
7560
+ export function deploymentStreamDollarAndDollarNeFromJSON(
7561
+ jsonString: string,
7562
+ ): SafeParseResult<DeploymentStreamDollarAndDollarNe, SDKValidationError> {
7563
+ return safeParse(
7564
+ jsonString,
7565
+ (x) => DeploymentStreamDollarAndDollarNe$inboundSchema.parse(JSON.parse(x)),
7566
+ `Failed to parse 'DeploymentStreamDollarAndDollarNe' from JSON`,
7567
+ );
7568
+ }
7569
+
7570
+ /** @internal */
7571
+ export const DeploymentStreamDollarAndDeploymentsDollarEq$inboundSchema:
7572
+ z.ZodType<
7573
+ DeploymentStreamDollarAndDeploymentsDollarEq,
7574
+ z.ZodTypeDef,
7575
+ unknown
7576
+ > = z.union([z.string(), z.number(), z.boolean()]);
7577
+
7578
+ /** @internal */
7579
+ export type DeploymentStreamDollarAndDeploymentsDollarEq$Outbound =
7580
+ | string
7581
+ | number
7582
+ | boolean;
7583
+
7584
+ /** @internal */
7585
+ export const DeploymentStreamDollarAndDeploymentsDollarEq$outboundSchema:
7586
+ z.ZodType<
7587
+ DeploymentStreamDollarAndDeploymentsDollarEq$Outbound,
7588
+ z.ZodTypeDef,
7589
+ DeploymentStreamDollarAndDeploymentsDollarEq
7590
+ > = z.union([z.string(), z.number(), z.boolean()]);
7591
+
7592
+ /**
7593
+ * @internal
7594
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
7595
+ */
7596
+ export namespace DeploymentStreamDollarAndDeploymentsDollarEq$ {
7597
+ /** @deprecated use `DeploymentStreamDollarAndDeploymentsDollarEq$inboundSchema` instead. */
7598
+ export const inboundSchema =
7599
+ DeploymentStreamDollarAndDeploymentsDollarEq$inboundSchema;
7600
+ /** @deprecated use `DeploymentStreamDollarAndDeploymentsDollarEq$outboundSchema` instead. */
7601
+ export const outboundSchema =
7602
+ DeploymentStreamDollarAndDeploymentsDollarEq$outboundSchema;
7603
+ /** @deprecated use `DeploymentStreamDollarAndDeploymentsDollarEq$Outbound` instead. */
7604
+ export type Outbound = DeploymentStreamDollarAndDeploymentsDollarEq$Outbound;
7605
+ }
7606
+
7607
+ export function deploymentStreamDollarAndDeploymentsDollarEqToJSON(
7608
+ deploymentStreamDollarAndDeploymentsDollarEq:
7609
+ DeploymentStreamDollarAndDeploymentsDollarEq,
7610
+ ): string {
7611
+ return JSON.stringify(
7612
+ DeploymentStreamDollarAndDeploymentsDollarEq$outboundSchema.parse(
7613
+ deploymentStreamDollarAndDeploymentsDollarEq,
7614
+ ),
7615
+ );
7616
+ }
7617
+
7618
+ export function deploymentStreamDollarAndDeploymentsDollarEqFromJSON(
7619
+ jsonString: string,
7620
+ ): SafeParseResult<
7621
+ DeploymentStreamDollarAndDeploymentsDollarEq,
7622
+ SDKValidationError
7623
+ > {
7624
+ return safeParse(
7625
+ jsonString,
7626
+ (x) =>
7627
+ DeploymentStreamDollarAndDeploymentsDollarEq$inboundSchema.parse(
7628
+ JSON.parse(x),
7629
+ ),
7630
+ `Failed to parse 'DeploymentStreamDollarAndDeploymentsDollarEq' from JSON`,
7631
+ );
7632
+ }
7633
+
7634
+ /** @internal */
7635
+ export const DeploymentStreamDollarAndDollarEq$inboundSchema: z.ZodType<
7636
+ DeploymentStreamDollarAndDollarEq,
7637
+ z.ZodTypeDef,
7638
+ unknown
7639
+ > = z.object({
7640
+ $eq: z.union([z.string(), z.number(), z.boolean()]),
7641
+ }).transform((v) => {
7642
+ return remap$(v, {
7643
+ "$eq": "dollarEq",
7644
+ });
7645
+ });
7646
+
7647
+ /** @internal */
7648
+ export type DeploymentStreamDollarAndDollarEq$Outbound = {
7649
+ $eq: string | number | boolean;
7650
+ };
7651
+
7652
+ /** @internal */
7653
+ export const DeploymentStreamDollarAndDollarEq$outboundSchema: z.ZodType<
7654
+ DeploymentStreamDollarAndDollarEq$Outbound,
7655
+ z.ZodTypeDef,
7656
+ DeploymentStreamDollarAndDollarEq
7657
+ > = z.object({
7658
+ dollarEq: z.union([z.string(), z.number(), z.boolean()]),
7659
+ }).transform((v) => {
7660
+ return remap$(v, {
7661
+ dollarEq: "$eq",
7662
+ });
7663
+ });
7664
+
7665
+ /**
7666
+ * @internal
7667
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
7668
+ */
7669
+ export namespace DeploymentStreamDollarAndDollarEq$ {
7670
+ /** @deprecated use `DeploymentStreamDollarAndDollarEq$inboundSchema` instead. */
7671
+ export const inboundSchema = DeploymentStreamDollarAndDollarEq$inboundSchema;
7672
+ /** @deprecated use `DeploymentStreamDollarAndDollarEq$outboundSchema` instead. */
7673
+ export const outboundSchema =
7674
+ DeploymentStreamDollarAndDollarEq$outboundSchema;
7675
+ /** @deprecated use `DeploymentStreamDollarAndDollarEq$Outbound` instead. */
7676
+ export type Outbound = DeploymentStreamDollarAndDollarEq$Outbound;
7677
+ }
7678
+
7679
+ export function deploymentStreamDollarAndDollarEqToJSON(
7680
+ deploymentStreamDollarAndDollarEq: DeploymentStreamDollarAndDollarEq,
7681
+ ): string {
7682
+ return JSON.stringify(
7683
+ DeploymentStreamDollarAndDollarEq$outboundSchema.parse(
7684
+ deploymentStreamDollarAndDollarEq,
7685
+ ),
7686
+ );
7687
+ }
7688
+
7689
+ export function deploymentStreamDollarAndDollarEqFromJSON(
7690
+ jsonString: string,
7691
+ ): SafeParseResult<DeploymentStreamDollarAndDollarEq, SDKValidationError> {
7692
+ return safeParse(
7693
+ jsonString,
7694
+ (x) => DeploymentStreamDollarAndDollarEq$inboundSchema.parse(JSON.parse(x)),
7695
+ `Failed to parse 'DeploymentStreamDollarAndDollarEq' from JSON`,
7696
+ );
7697
+ }
7698
+
7699
+ /** @internal */
7700
+ export const DeploymentStreamKnowledgeFilterDeploymentsDollarAnd$inboundSchema:
7701
+ z.ZodType<
7702
+ DeploymentStreamKnowledgeFilterDeploymentsDollarAnd,
7703
+ z.ZodTypeDef,
7704
+ unknown
7705
+ > = z.union([
7706
+ z.lazy(() => DeploymentStreamDollarAndDollarEq$inboundSchema),
7707
+ z.lazy(() => DeploymentStreamDollarAndDollarNe$inboundSchema),
7708
+ z.lazy(() => DeploymentStreamDollarAnd3$inboundSchema),
7709
+ z.lazy(() => DeploymentStreamDollarAndDollarGte$inboundSchema),
7710
+ z.lazy(() => DeploymentStreamDollarAndDollarLt$inboundSchema),
7711
+ z.lazy(() => DeploymentStreamDollarAndDollarLte$inboundSchema),
7712
+ z.lazy(() => DeploymentStreamDollarAndDollarIn$inboundSchema),
7713
+ z.lazy(() => DeploymentStreamDollarAndDollarNin$inboundSchema),
7714
+ z.lazy(() => DeploymentStreamDollarAndDollarExists$inboundSchema),
7715
+ ]);
7716
+
7717
+ /** @internal */
7718
+ export type DeploymentStreamKnowledgeFilterDeploymentsDollarAnd$Outbound =
7719
+ | DeploymentStreamDollarAndDollarEq$Outbound
7720
+ | DeploymentStreamDollarAndDollarNe$Outbound
7721
+ | DeploymentStreamDollarAnd3$Outbound
7722
+ | DeploymentStreamDollarAndDollarGte$Outbound
7723
+ | DeploymentStreamDollarAndDollarLt$Outbound
7724
+ | DeploymentStreamDollarAndDollarLte$Outbound
7725
+ | DeploymentStreamDollarAndDollarIn$Outbound
7726
+ | DeploymentStreamDollarAndDollarNin$Outbound
7727
+ | DeploymentStreamDollarAndDollarExists$Outbound;
7728
+
7729
+ /** @internal */
7730
+ export const DeploymentStreamKnowledgeFilterDeploymentsDollarAnd$outboundSchema:
7731
+ z.ZodType<
7732
+ DeploymentStreamKnowledgeFilterDeploymentsDollarAnd$Outbound,
7733
+ z.ZodTypeDef,
7734
+ DeploymentStreamKnowledgeFilterDeploymentsDollarAnd
7735
+ > = z.union([
7736
+ z.lazy(() => DeploymentStreamDollarAndDollarEq$outboundSchema),
7737
+ z.lazy(() => DeploymentStreamDollarAndDollarNe$outboundSchema),
7738
+ z.lazy(() => DeploymentStreamDollarAnd3$outboundSchema),
7739
+ z.lazy(() => DeploymentStreamDollarAndDollarGte$outboundSchema),
7740
+ z.lazy(() => DeploymentStreamDollarAndDollarLt$outboundSchema),
7741
+ z.lazy(() => DeploymentStreamDollarAndDollarLte$outboundSchema),
7742
+ z.lazy(() => DeploymentStreamDollarAndDollarIn$outboundSchema),
7743
+ z.lazy(() => DeploymentStreamDollarAndDollarNin$outboundSchema),
7744
+ z.lazy(() => DeploymentStreamDollarAndDollarExists$outboundSchema),
7745
+ ]);
7746
+
7747
+ /**
7748
+ * @internal
7749
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
7750
+ */
7751
+ export namespace DeploymentStreamKnowledgeFilterDeploymentsDollarAnd$ {
7752
+ /** @deprecated use `DeploymentStreamKnowledgeFilterDeploymentsDollarAnd$inboundSchema` instead. */
7753
+ export const inboundSchema =
7754
+ DeploymentStreamKnowledgeFilterDeploymentsDollarAnd$inboundSchema;
7755
+ /** @deprecated use `DeploymentStreamKnowledgeFilterDeploymentsDollarAnd$outboundSchema` instead. */
7756
+ export const outboundSchema =
7757
+ DeploymentStreamKnowledgeFilterDeploymentsDollarAnd$outboundSchema;
7758
+ /** @deprecated use `DeploymentStreamKnowledgeFilterDeploymentsDollarAnd$Outbound` instead. */
7759
+ export type Outbound =
7760
+ DeploymentStreamKnowledgeFilterDeploymentsDollarAnd$Outbound;
7761
+ }
7762
+
7763
+ export function deploymentStreamKnowledgeFilterDeploymentsDollarAndToJSON(
7764
+ deploymentStreamKnowledgeFilterDeploymentsDollarAnd:
7765
+ DeploymentStreamKnowledgeFilterDeploymentsDollarAnd,
7766
+ ): string {
7767
+ return JSON.stringify(
7768
+ DeploymentStreamKnowledgeFilterDeploymentsDollarAnd$outboundSchema.parse(
7769
+ deploymentStreamKnowledgeFilterDeploymentsDollarAnd,
7770
+ ),
7771
+ );
7772
+ }
7773
+
7774
+ export function deploymentStreamKnowledgeFilterDeploymentsDollarAndFromJSON(
7775
+ jsonString: string,
7776
+ ): SafeParseResult<
7777
+ DeploymentStreamKnowledgeFilterDeploymentsDollarAnd,
7778
+ SDKValidationError
7779
+ > {
7780
+ return safeParse(
7781
+ jsonString,
7782
+ (x) =>
7783
+ DeploymentStreamKnowledgeFilterDeploymentsDollarAnd$inboundSchema.parse(
7784
+ JSON.parse(x),
7785
+ ),
7786
+ `Failed to parse 'DeploymentStreamKnowledgeFilterDeploymentsDollarAnd' from JSON`,
7787
+ );
7788
+ }
7789
+
7790
+ /** @internal */
7791
+ export const DeploymentStreamKnowledgeFilterDollarAnd$inboundSchema: z.ZodType<
7792
+ DeploymentStreamKnowledgeFilterDollarAnd,
7793
+ z.ZodTypeDef,
7794
+ unknown
7795
+ > = z.object({
7796
+ $and: z.array(
7797
+ z.record(z.union([
7798
+ z.lazy(() => DeploymentStreamDollarAndDollarEq$inboundSchema),
7799
+ z.lazy(() =>
7800
+ DeploymentStreamDollarAndDollarNe$inboundSchema
7801
+ ),
7802
+ z.lazy(() => DeploymentStreamDollarAnd3$inboundSchema),
7803
+ z.lazy(() => DeploymentStreamDollarAndDollarGte$inboundSchema),
7804
+ z.lazy(() => DeploymentStreamDollarAndDollarLt$inboundSchema),
7805
+ z.lazy(() => DeploymentStreamDollarAndDollarLte$inboundSchema),
7806
+ z.lazy(() => DeploymentStreamDollarAndDollarIn$inboundSchema),
7807
+ z.lazy(() => DeploymentStreamDollarAndDollarNin$inboundSchema),
7808
+ z.lazy(() => DeploymentStreamDollarAndDollarExists$inboundSchema),
7809
+ ])),
7810
+ ),
7811
+ }).transform((v) => {
7812
+ return remap$(v, {
7813
+ "$and": "dollarAnd",
7814
+ });
7815
+ });
7816
+
7817
+ /** @internal */
7818
+ export type DeploymentStreamKnowledgeFilterDollarAnd$Outbound = {
7819
+ $and: Array<
7820
+ {
7821
+ [k: string]:
7822
+ | DeploymentStreamDollarAndDollarEq$Outbound
7823
+ | DeploymentStreamDollarAndDollarNe$Outbound
7824
+ | DeploymentStreamDollarAnd3$Outbound
7825
+ | DeploymentStreamDollarAndDollarGte$Outbound
7826
+ | DeploymentStreamDollarAndDollarLt$Outbound
7827
+ | DeploymentStreamDollarAndDollarLte$Outbound
7828
+ | DeploymentStreamDollarAndDollarIn$Outbound
7829
+ | DeploymentStreamDollarAndDollarNin$Outbound
7830
+ | DeploymentStreamDollarAndDollarExists$Outbound;
7831
+ }
7832
+ >;
7833
+ };
7834
+
7835
+ /** @internal */
7836
+ export const DeploymentStreamKnowledgeFilterDollarAnd$outboundSchema: z.ZodType<
7837
+ DeploymentStreamKnowledgeFilterDollarAnd$Outbound,
7838
+ z.ZodTypeDef,
7839
+ DeploymentStreamKnowledgeFilterDollarAnd
7840
+ > = z.object({
7841
+ dollarAnd: z.array(
7842
+ z.record(z.union([
7843
+ z.lazy(() => DeploymentStreamDollarAndDollarEq$outboundSchema),
7844
+ z.lazy(() =>
7845
+ DeploymentStreamDollarAndDollarNe$outboundSchema
7846
+ ),
7847
+ z.lazy(() => DeploymentStreamDollarAnd3$outboundSchema),
7848
+ z.lazy(() => DeploymentStreamDollarAndDollarGte$outboundSchema),
7849
+ z.lazy(() => DeploymentStreamDollarAndDollarLt$outboundSchema),
7850
+ z.lazy(() => DeploymentStreamDollarAndDollarLte$outboundSchema),
7851
+ z.lazy(() => DeploymentStreamDollarAndDollarIn$outboundSchema),
7852
+ z.lazy(() => DeploymentStreamDollarAndDollarNin$outboundSchema),
7853
+ z.lazy(() => DeploymentStreamDollarAndDollarExists$outboundSchema),
7854
+ ])),
7855
+ ),
7856
+ }).transform((v) => {
7857
+ return remap$(v, {
7858
+ dollarAnd: "$and",
7859
+ });
7860
+ });
7861
+
7862
+ /**
7863
+ * @internal
7864
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
7865
+ */
7866
+ export namespace DeploymentStreamKnowledgeFilterDollarAnd$ {
7867
+ /** @deprecated use `DeploymentStreamKnowledgeFilterDollarAnd$inboundSchema` instead. */
7868
+ export const inboundSchema =
7869
+ DeploymentStreamKnowledgeFilterDollarAnd$inboundSchema;
7870
+ /** @deprecated use `DeploymentStreamKnowledgeFilterDollarAnd$outboundSchema` instead. */
7871
+ export const outboundSchema =
7872
+ DeploymentStreamKnowledgeFilterDollarAnd$outboundSchema;
7873
+ /** @deprecated use `DeploymentStreamKnowledgeFilterDollarAnd$Outbound` instead. */
7874
+ export type Outbound = DeploymentStreamKnowledgeFilterDollarAnd$Outbound;
7875
+ }
7876
+
7877
+ export function deploymentStreamKnowledgeFilterDollarAndToJSON(
7878
+ deploymentStreamKnowledgeFilterDollarAnd:
7879
+ DeploymentStreamKnowledgeFilterDollarAnd,
7880
+ ): string {
7881
+ return JSON.stringify(
7882
+ DeploymentStreamKnowledgeFilterDollarAnd$outboundSchema.parse(
7883
+ deploymentStreamKnowledgeFilterDollarAnd,
7884
+ ),
7885
+ );
7886
+ }
7887
+
7888
+ export function deploymentStreamKnowledgeFilterDollarAndFromJSON(
7889
+ jsonString: string,
7890
+ ): SafeParseResult<
7891
+ DeploymentStreamKnowledgeFilterDollarAnd,
7892
+ SDKValidationError
7893
+ > {
7894
+ return safeParse(
7895
+ jsonString,
7896
+ (x) =>
7897
+ DeploymentStreamKnowledgeFilterDollarAnd$inboundSchema.parse(
7898
+ JSON.parse(x),
7899
+ ),
7900
+ `Failed to parse 'DeploymentStreamKnowledgeFilterDollarAnd' from JSON`,
7901
+ );
7902
+ }
7903
+
7904
+ /** @internal */
7905
+ export const OneDollarExists$inboundSchema: z.ZodType<
7906
+ OneDollarExists,
7907
+ z.ZodTypeDef,
7908
+ unknown
7909
+ > = z.object({
7910
+ $exists: z.boolean(),
7911
+ }).transform((v) => {
7912
+ return remap$(v, {
7913
+ "$exists": "dollarExists",
7914
+ });
7915
+ });
7916
+
7917
+ /** @internal */
7918
+ export type OneDollarExists$Outbound = {
7919
+ $exists: boolean;
7920
+ };
7921
+
7922
+ /** @internal */
7923
+ export const OneDollarExists$outboundSchema: z.ZodType<
7924
+ OneDollarExists$Outbound,
7925
+ z.ZodTypeDef,
7926
+ OneDollarExists
7927
+ > = z.object({
7928
+ dollarExists: z.boolean(),
7929
+ }).transform((v) => {
7930
+ return remap$(v, {
7931
+ dollarExists: "$exists",
7932
+ });
7933
+ });
7934
+
7935
+ /**
7936
+ * @internal
7937
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
7938
+ */
7939
+ export namespace OneDollarExists$ {
7940
+ /** @deprecated use `OneDollarExists$inboundSchema` instead. */
7941
+ export const inboundSchema = OneDollarExists$inboundSchema;
7942
+ /** @deprecated use `OneDollarExists$outboundSchema` instead. */
7943
+ export const outboundSchema = OneDollarExists$outboundSchema;
7944
+ /** @deprecated use `OneDollarExists$Outbound` instead. */
7945
+ export type Outbound = OneDollarExists$Outbound;
7946
+ }
7947
+
7948
+ export function oneDollarExistsToJSON(
7949
+ oneDollarExists: OneDollarExists,
7950
+ ): string {
7951
+ return JSON.stringify(OneDollarExists$outboundSchema.parse(oneDollarExists));
7952
+ }
7953
+
7954
+ export function oneDollarExistsFromJSON(
7955
+ jsonString: string,
7956
+ ): SafeParseResult<OneDollarExists, SDKValidationError> {
7957
+ return safeParse(
7958
+ jsonString,
7959
+ (x) => OneDollarExists$inboundSchema.parse(JSON.parse(x)),
7960
+ `Failed to parse 'OneDollarExists' from JSON`,
7961
+ );
7962
+ }
7963
+
7964
+ /** @internal */
7965
+ export const DeploymentStream1DeploymentsDollarNin$inboundSchema: z.ZodType<
7966
+ DeploymentStream1DeploymentsDollarNin,
7967
+ z.ZodTypeDef,
7968
+ unknown
7969
+ > = z.union([z.string(), z.number(), z.boolean()]);
7970
+
7971
+ /** @internal */
7972
+ export type DeploymentStream1DeploymentsDollarNin$Outbound =
7973
+ | string
7974
+ | number
7975
+ | boolean;
7976
+
7977
+ /** @internal */
7978
+ export const DeploymentStream1DeploymentsDollarNin$outboundSchema: z.ZodType<
7979
+ DeploymentStream1DeploymentsDollarNin$Outbound,
7980
+ z.ZodTypeDef,
7981
+ DeploymentStream1DeploymentsDollarNin
7982
+ > = z.union([z.string(), z.number(), z.boolean()]);
7983
+
7984
+ /**
7985
+ * @internal
7986
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
7987
+ */
7988
+ export namespace DeploymentStream1DeploymentsDollarNin$ {
7989
+ /** @deprecated use `DeploymentStream1DeploymentsDollarNin$inboundSchema` instead. */
7990
+ export const inboundSchema =
7991
+ DeploymentStream1DeploymentsDollarNin$inboundSchema;
7992
+ /** @deprecated use `DeploymentStream1DeploymentsDollarNin$outboundSchema` instead. */
7993
+ export const outboundSchema =
7994
+ DeploymentStream1DeploymentsDollarNin$outboundSchema;
7995
+ /** @deprecated use `DeploymentStream1DeploymentsDollarNin$Outbound` instead. */
7996
+ export type Outbound = DeploymentStream1DeploymentsDollarNin$Outbound;
7997
+ }
7998
+
7999
+ export function deploymentStream1DeploymentsDollarNinToJSON(
8000
+ deploymentStream1DeploymentsDollarNin: DeploymentStream1DeploymentsDollarNin,
8001
+ ): string {
8002
+ return JSON.stringify(
8003
+ DeploymentStream1DeploymentsDollarNin$outboundSchema.parse(
8004
+ deploymentStream1DeploymentsDollarNin,
8005
+ ),
8006
+ );
8007
+ }
8008
+
8009
+ export function deploymentStream1DeploymentsDollarNinFromJSON(
8010
+ jsonString: string,
8011
+ ): SafeParseResult<DeploymentStream1DeploymentsDollarNin, SDKValidationError> {
8012
+ return safeParse(
8013
+ jsonString,
8014
+ (x) =>
8015
+ DeploymentStream1DeploymentsDollarNin$inboundSchema.parse(JSON.parse(x)),
8016
+ `Failed to parse 'DeploymentStream1DeploymentsDollarNin' from JSON`,
8017
+ );
8018
+ }
8019
+
8020
+ /** @internal */
8021
+ export const DeploymentStream1DollarNin$inboundSchema: z.ZodType<
8022
+ DeploymentStream1DollarNin,
8023
+ z.ZodTypeDef,
8024
+ unknown
8025
+ > = z.object({
8026
+ $nin: z.array(z.union([z.string(), z.number(), z.boolean()])),
8027
+ }).transform((v) => {
8028
+ return remap$(v, {
8029
+ "$nin": "dollarNin",
8030
+ });
8031
+ });
8032
+
8033
+ /** @internal */
8034
+ export type DeploymentStream1DollarNin$Outbound = {
8035
+ $nin: Array<string | number | boolean>;
8036
+ };
8037
+
8038
+ /** @internal */
8039
+ export const DeploymentStream1DollarNin$outboundSchema: z.ZodType<
8040
+ DeploymentStream1DollarNin$Outbound,
8041
+ z.ZodTypeDef,
8042
+ DeploymentStream1DollarNin
8043
+ > = z.object({
8044
+ dollarNin: z.array(z.union([z.string(), z.number(), z.boolean()])),
8045
+ }).transform((v) => {
8046
+ return remap$(v, {
8047
+ dollarNin: "$nin",
8048
+ });
8049
+ });
8050
+
8051
+ /**
8052
+ * @internal
8053
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
8054
+ */
8055
+ export namespace DeploymentStream1DollarNin$ {
8056
+ /** @deprecated use `DeploymentStream1DollarNin$inboundSchema` instead. */
8057
+ export const inboundSchema = DeploymentStream1DollarNin$inboundSchema;
8058
+ /** @deprecated use `DeploymentStream1DollarNin$outboundSchema` instead. */
8059
+ export const outboundSchema = DeploymentStream1DollarNin$outboundSchema;
8060
+ /** @deprecated use `DeploymentStream1DollarNin$Outbound` instead. */
8061
+ export type Outbound = DeploymentStream1DollarNin$Outbound;
8062
+ }
8063
+
8064
+ export function deploymentStream1DollarNinToJSON(
8065
+ deploymentStream1DollarNin: DeploymentStream1DollarNin,
8066
+ ): string {
8067
+ return JSON.stringify(
8068
+ DeploymentStream1DollarNin$outboundSchema.parse(deploymentStream1DollarNin),
8069
+ );
8070
+ }
8071
+
8072
+ export function deploymentStream1DollarNinFromJSON(
8073
+ jsonString: string,
8074
+ ): SafeParseResult<DeploymentStream1DollarNin, SDKValidationError> {
8075
+ return safeParse(
8076
+ jsonString,
8077
+ (x) => DeploymentStream1DollarNin$inboundSchema.parse(JSON.parse(x)),
8078
+ `Failed to parse 'DeploymentStream1DollarNin' from JSON`,
8079
+ );
8080
+ }
8081
+
8082
+ /** @internal */
8083
+ export const DeploymentStream1DeploymentsDollarIn$inboundSchema: z.ZodType<
8084
+ DeploymentStream1DeploymentsDollarIn,
8085
+ z.ZodTypeDef,
8086
+ unknown
8087
+ > = z.union([z.string(), z.number(), z.boolean()]);
8088
+
8089
+ /** @internal */
8090
+ export type DeploymentStream1DeploymentsDollarIn$Outbound =
8091
+ | string
8092
+ | number
8093
+ | boolean;
8094
+
8095
+ /** @internal */
8096
+ export const DeploymentStream1DeploymentsDollarIn$outboundSchema: z.ZodType<
8097
+ DeploymentStream1DeploymentsDollarIn$Outbound,
8098
+ z.ZodTypeDef,
8099
+ DeploymentStream1DeploymentsDollarIn
8100
+ > = z.union([z.string(), z.number(), z.boolean()]);
8101
+
8102
+ /**
8103
+ * @internal
8104
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
8105
+ */
8106
+ export namespace DeploymentStream1DeploymentsDollarIn$ {
8107
+ /** @deprecated use `DeploymentStream1DeploymentsDollarIn$inboundSchema` instead. */
8108
+ export const inboundSchema =
8109
+ DeploymentStream1DeploymentsDollarIn$inboundSchema;
8110
+ /** @deprecated use `DeploymentStream1DeploymentsDollarIn$outboundSchema` instead. */
8111
+ export const outboundSchema =
8112
+ DeploymentStream1DeploymentsDollarIn$outboundSchema;
8113
+ /** @deprecated use `DeploymentStream1DeploymentsDollarIn$Outbound` instead. */
8114
+ export type Outbound = DeploymentStream1DeploymentsDollarIn$Outbound;
8115
+ }
8116
+
8117
+ export function deploymentStream1DeploymentsDollarInToJSON(
8118
+ deploymentStream1DeploymentsDollarIn: DeploymentStream1DeploymentsDollarIn,
8119
+ ): string {
8120
+ return JSON.stringify(
8121
+ DeploymentStream1DeploymentsDollarIn$outboundSchema.parse(
8122
+ deploymentStream1DeploymentsDollarIn,
8123
+ ),
8124
+ );
8125
+ }
8126
+
8127
+ export function deploymentStream1DeploymentsDollarInFromJSON(
8128
+ jsonString: string,
8129
+ ): SafeParseResult<DeploymentStream1DeploymentsDollarIn, SDKValidationError> {
8130
+ return safeParse(
8131
+ jsonString,
8132
+ (x) =>
8133
+ DeploymentStream1DeploymentsDollarIn$inboundSchema.parse(JSON.parse(x)),
8134
+ `Failed to parse 'DeploymentStream1DeploymentsDollarIn' from JSON`,
8135
+ );
8136
+ }
8137
+
8138
+ /** @internal */
8139
+ export const DeploymentStream1DollarIn$inboundSchema: z.ZodType<
8140
+ DeploymentStream1DollarIn,
8141
+ z.ZodTypeDef,
8142
+ unknown
8143
+ > = z.object({
8144
+ $in: z.array(z.union([z.string(), z.number(), z.boolean()])),
8145
+ }).transform((v) => {
8146
+ return remap$(v, {
8147
+ "$in": "dollarIn",
8148
+ });
8149
+ });
8150
+
8151
+ /** @internal */
8152
+ export type DeploymentStream1DollarIn$Outbound = {
8153
+ $in: Array<string | number | boolean>;
8154
+ };
8155
+
8156
+ /** @internal */
8157
+ export const DeploymentStream1DollarIn$outboundSchema: z.ZodType<
8158
+ DeploymentStream1DollarIn$Outbound,
8159
+ z.ZodTypeDef,
8160
+ DeploymentStream1DollarIn
8161
+ > = z.object({
8162
+ dollarIn: z.array(z.union([z.string(), z.number(), z.boolean()])),
8163
+ }).transform((v) => {
8164
+ return remap$(v, {
8165
+ dollarIn: "$in",
8166
+ });
8167
+ });
8168
+
8169
+ /**
8170
+ * @internal
8171
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
8172
+ */
8173
+ export namespace DeploymentStream1DollarIn$ {
8174
+ /** @deprecated use `DeploymentStream1DollarIn$inboundSchema` instead. */
8175
+ export const inboundSchema = DeploymentStream1DollarIn$inboundSchema;
8176
+ /** @deprecated use `DeploymentStream1DollarIn$outboundSchema` instead. */
8177
+ export const outboundSchema = DeploymentStream1DollarIn$outboundSchema;
8178
+ /** @deprecated use `DeploymentStream1DollarIn$Outbound` instead. */
8179
+ export type Outbound = DeploymentStream1DollarIn$Outbound;
8180
+ }
8181
+
8182
+ export function deploymentStream1DollarInToJSON(
8183
+ deploymentStream1DollarIn: DeploymentStream1DollarIn,
8184
+ ): string {
8185
+ return JSON.stringify(
8186
+ DeploymentStream1DollarIn$outboundSchema.parse(deploymentStream1DollarIn),
8187
+ );
8188
+ }
8189
+
8190
+ export function deploymentStream1DollarInFromJSON(
8191
+ jsonString: string,
8192
+ ): SafeParseResult<DeploymentStream1DollarIn, SDKValidationError> {
8193
+ return safeParse(
8194
+ jsonString,
8195
+ (x) => DeploymentStream1DollarIn$inboundSchema.parse(JSON.parse(x)),
8196
+ `Failed to parse 'DeploymentStream1DollarIn' from JSON`,
8197
+ );
8198
+ }
8199
+
8200
+ /** @internal */
8201
+ export const OneDollarLte$inboundSchema: z.ZodType<
8202
+ OneDollarLte,
8203
+ z.ZodTypeDef,
8204
+ unknown
8205
+ > = z.object({
8206
+ $lte: z.number(),
8207
+ }).transform((v) => {
8208
+ return remap$(v, {
8209
+ "$lte": "dollarLte",
8210
+ });
8211
+ });
8212
+
8213
+ /** @internal */
8214
+ export type OneDollarLte$Outbound = {
8215
+ $lte: number;
8216
+ };
8217
+
8218
+ /** @internal */
8219
+ export const OneDollarLte$outboundSchema: z.ZodType<
8220
+ OneDollarLte$Outbound,
8221
+ z.ZodTypeDef,
8222
+ OneDollarLte
8223
+ > = z.object({
8224
+ dollarLte: z.number(),
8225
+ }).transform((v) => {
8226
+ return remap$(v, {
8227
+ dollarLte: "$lte",
8228
+ });
8229
+ });
8230
+
8231
+ /**
8232
+ * @internal
8233
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
8234
+ */
8235
+ export namespace OneDollarLte$ {
8236
+ /** @deprecated use `OneDollarLte$inboundSchema` instead. */
8237
+ export const inboundSchema = OneDollarLte$inboundSchema;
8238
+ /** @deprecated use `OneDollarLte$outboundSchema` instead. */
8239
+ export const outboundSchema = OneDollarLte$outboundSchema;
8240
+ /** @deprecated use `OneDollarLte$Outbound` instead. */
8241
+ export type Outbound = OneDollarLte$Outbound;
8242
+ }
8243
+
8244
+ export function oneDollarLteToJSON(oneDollarLte: OneDollarLte): string {
8245
+ return JSON.stringify(OneDollarLte$outboundSchema.parse(oneDollarLte));
8246
+ }
8247
+
8248
+ export function oneDollarLteFromJSON(
8249
+ jsonString: string,
8250
+ ): SafeParseResult<OneDollarLte, SDKValidationError> {
8251
+ return safeParse(
8252
+ jsonString,
8253
+ (x) => OneDollarLte$inboundSchema.parse(JSON.parse(x)),
8254
+ `Failed to parse 'OneDollarLte' from JSON`,
8255
+ );
8256
+ }
8257
+
8258
+ /** @internal */
8259
+ export const OneDollarLt$inboundSchema: z.ZodType<
8260
+ OneDollarLt,
8261
+ z.ZodTypeDef,
8262
+ unknown
8263
+ > = z.object({
8264
+ $lt: z.number(),
8265
+ }).transform((v) => {
8266
+ return remap$(v, {
8267
+ "$lt": "dollarLt",
8268
+ });
8269
+ });
8270
+
8271
+ /** @internal */
8272
+ export type OneDollarLt$Outbound = {
8273
+ $lt: number;
8274
+ };
8275
+
8276
+ /** @internal */
8277
+ export const OneDollarLt$outboundSchema: z.ZodType<
8278
+ OneDollarLt$Outbound,
8279
+ z.ZodTypeDef,
8280
+ OneDollarLt
8281
+ > = z.object({
8282
+ dollarLt: z.number(),
8283
+ }).transform((v) => {
8284
+ return remap$(v, {
8285
+ dollarLt: "$lt",
8286
+ });
8287
+ });
8288
+
8289
+ /**
8290
+ * @internal
8291
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
8292
+ */
8293
+ export namespace OneDollarLt$ {
8294
+ /** @deprecated use `OneDollarLt$inboundSchema` instead. */
8295
+ export const inboundSchema = OneDollarLt$inboundSchema;
8296
+ /** @deprecated use `OneDollarLt$outboundSchema` instead. */
8297
+ export const outboundSchema = OneDollarLt$outboundSchema;
8298
+ /** @deprecated use `OneDollarLt$Outbound` instead. */
8299
+ export type Outbound = OneDollarLt$Outbound;
8300
+ }
8301
+
8302
+ export function oneDollarLtToJSON(oneDollarLt: OneDollarLt): string {
8303
+ return JSON.stringify(OneDollarLt$outboundSchema.parse(oneDollarLt));
8304
+ }
8305
+
8306
+ export function oneDollarLtFromJSON(
8307
+ jsonString: string,
8308
+ ): SafeParseResult<OneDollarLt, SDKValidationError> {
8309
+ return safeParse(
8310
+ jsonString,
8311
+ (x) => OneDollarLt$inboundSchema.parse(JSON.parse(x)),
8312
+ `Failed to parse 'OneDollarLt' from JSON`,
8313
+ );
8314
+ }
8315
+
8316
+ /** @internal */
8317
+ export const OneDollarGte$inboundSchema: z.ZodType<
8318
+ OneDollarGte,
8319
+ z.ZodTypeDef,
8320
+ unknown
8321
+ > = z.object({
8322
+ $gte: z.number(),
8323
+ }).transform((v) => {
8324
+ return remap$(v, {
8325
+ "$gte": "dollarGte",
8326
+ });
8327
+ });
8328
+
8329
+ /** @internal */
8330
+ export type OneDollarGte$Outbound = {
8331
+ $gte: number;
8332
+ };
8333
+
8334
+ /** @internal */
8335
+ export const OneDollarGte$outboundSchema: z.ZodType<
8336
+ OneDollarGte$Outbound,
8337
+ z.ZodTypeDef,
8338
+ OneDollarGte
8339
+ > = z.object({
8340
+ dollarGte: z.number(),
8341
+ }).transform((v) => {
8342
+ return remap$(v, {
8343
+ dollarGte: "$gte",
8344
+ });
8345
+ });
8346
+
8347
+ /**
8348
+ * @internal
8349
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
8350
+ */
8351
+ export namespace OneDollarGte$ {
8352
+ /** @deprecated use `OneDollarGte$inboundSchema` instead. */
8353
+ export const inboundSchema = OneDollarGte$inboundSchema;
8354
+ /** @deprecated use `OneDollarGte$outboundSchema` instead. */
8355
+ export const outboundSchema = OneDollarGte$outboundSchema;
8356
+ /** @deprecated use `OneDollarGte$Outbound` instead. */
8357
+ export type Outbound = OneDollarGte$Outbound;
8358
+ }
8359
+
8360
+ export function oneDollarGteToJSON(oneDollarGte: OneDollarGte): string {
8361
+ return JSON.stringify(OneDollarGte$outboundSchema.parse(oneDollarGte));
8362
+ }
8363
+
8364
+ export function oneDollarGteFromJSON(
8365
+ jsonString: string,
8366
+ ): SafeParseResult<OneDollarGte, SDKValidationError> {
8367
+ return safeParse(
8368
+ jsonString,
8369
+ (x) => OneDollarGte$inboundSchema.parse(JSON.parse(x)),
8370
+ `Failed to parse 'OneDollarGte' from JSON`,
8371
+ );
8372
+ }
8373
+
8374
+ /** @internal */
8375
+ export const DeploymentStream13$inboundSchema: z.ZodType<
8376
+ DeploymentStream13,
8377
+ z.ZodTypeDef,
8378
+ unknown
8379
+ > = z.object({
8380
+ $gt: z.number(),
8381
+ }).transform((v) => {
8382
+ return remap$(v, {
8383
+ "$gt": "dollarGt",
8384
+ });
8385
+ });
8386
+
8387
+ /** @internal */
8388
+ export type DeploymentStream13$Outbound = {
8389
+ $gt: number;
8390
+ };
8391
+
8392
+ /** @internal */
8393
+ export const DeploymentStream13$outboundSchema: z.ZodType<
8394
+ DeploymentStream13$Outbound,
8395
+ z.ZodTypeDef,
8396
+ DeploymentStream13
8397
+ > = z.object({
8398
+ dollarGt: z.number(),
8399
+ }).transform((v) => {
8400
+ return remap$(v, {
8401
+ dollarGt: "$gt",
8402
+ });
8403
+ });
8404
+
8405
+ /**
8406
+ * @internal
8407
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
8408
+ */
8409
+ export namespace DeploymentStream13$ {
8410
+ /** @deprecated use `DeploymentStream13$inboundSchema` instead. */
8411
+ export const inboundSchema = DeploymentStream13$inboundSchema;
8412
+ /** @deprecated use `DeploymentStream13$outboundSchema` instead. */
8413
+ export const outboundSchema = DeploymentStream13$outboundSchema;
8414
+ /** @deprecated use `DeploymentStream13$Outbound` instead. */
8415
+ export type Outbound = DeploymentStream13$Outbound;
8416
+ }
8417
+
8418
+ export function deploymentStream13ToJSON(
8419
+ deploymentStream13: DeploymentStream13,
8420
+ ): string {
8421
+ return JSON.stringify(
8422
+ DeploymentStream13$outboundSchema.parse(deploymentStream13),
8423
+ );
8424
+ }
8425
+
8426
+ export function deploymentStream13FromJSON(
8427
+ jsonString: string,
8428
+ ): SafeParseResult<DeploymentStream13, SDKValidationError> {
8429
+ return safeParse(
8430
+ jsonString,
8431
+ (x) => DeploymentStream13$inboundSchema.parse(JSON.parse(x)),
8432
+ `Failed to parse 'DeploymentStream13' from JSON`,
8433
+ );
8434
+ }
8435
+
8436
+ /** @internal */
8437
+ export const DeploymentStream1DeploymentsDollarNe$inboundSchema: z.ZodType<
8438
+ DeploymentStream1DeploymentsDollarNe,
8439
+ z.ZodTypeDef,
8440
+ unknown
8441
+ > = z.union([z.string(), z.number(), z.boolean()]);
8442
+
8443
+ /** @internal */
8444
+ export type DeploymentStream1DeploymentsDollarNe$Outbound =
8445
+ | string
8446
+ | number
8447
+ | boolean;
8448
+
8449
+ /** @internal */
8450
+ export const DeploymentStream1DeploymentsDollarNe$outboundSchema: z.ZodType<
8451
+ DeploymentStream1DeploymentsDollarNe$Outbound,
8452
+ z.ZodTypeDef,
8453
+ DeploymentStream1DeploymentsDollarNe
8454
+ > = z.union([z.string(), z.number(), z.boolean()]);
8455
+
8456
+ /**
8457
+ * @internal
8458
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
8459
+ */
8460
+ export namespace DeploymentStream1DeploymentsDollarNe$ {
8461
+ /** @deprecated use `DeploymentStream1DeploymentsDollarNe$inboundSchema` instead. */
8462
+ export const inboundSchema =
8463
+ DeploymentStream1DeploymentsDollarNe$inboundSchema;
8464
+ /** @deprecated use `DeploymentStream1DeploymentsDollarNe$outboundSchema` instead. */
8465
+ export const outboundSchema =
8466
+ DeploymentStream1DeploymentsDollarNe$outboundSchema;
8467
+ /** @deprecated use `DeploymentStream1DeploymentsDollarNe$Outbound` instead. */
8468
+ export type Outbound = DeploymentStream1DeploymentsDollarNe$Outbound;
8469
+ }
8470
+
8471
+ export function deploymentStream1DeploymentsDollarNeToJSON(
8472
+ deploymentStream1DeploymentsDollarNe: DeploymentStream1DeploymentsDollarNe,
8473
+ ): string {
8474
+ return JSON.stringify(
8475
+ DeploymentStream1DeploymentsDollarNe$outboundSchema.parse(
8476
+ deploymentStream1DeploymentsDollarNe,
8477
+ ),
8478
+ );
8479
+ }
8480
+
8481
+ export function deploymentStream1DeploymentsDollarNeFromJSON(
8482
+ jsonString: string,
8483
+ ): SafeParseResult<DeploymentStream1DeploymentsDollarNe, SDKValidationError> {
8484
+ return safeParse(
8485
+ jsonString,
8486
+ (x) =>
8487
+ DeploymentStream1DeploymentsDollarNe$inboundSchema.parse(JSON.parse(x)),
8488
+ `Failed to parse 'DeploymentStream1DeploymentsDollarNe' from JSON`,
8489
+ );
8490
+ }
8491
+
8492
+ /** @internal */
8493
+ export const DeploymentStream1DollarNe$inboundSchema: z.ZodType<
8494
+ DeploymentStream1DollarNe,
8495
+ z.ZodTypeDef,
8496
+ unknown
8497
+ > = z.object({
8498
+ $ne: z.union([z.string(), z.number(), z.boolean()]),
8499
+ }).transform((v) => {
8500
+ return remap$(v, {
8501
+ "$ne": "dollarNe",
8502
+ });
8503
+ });
8504
+
8505
+ /** @internal */
8506
+ export type DeploymentStream1DollarNe$Outbound = {
8507
+ $ne: string | number | boolean;
8508
+ };
8509
+
8510
+ /** @internal */
8511
+ export const DeploymentStream1DollarNe$outboundSchema: z.ZodType<
8512
+ DeploymentStream1DollarNe$Outbound,
8513
+ z.ZodTypeDef,
8514
+ DeploymentStream1DollarNe
8515
+ > = z.object({
8516
+ dollarNe: z.union([z.string(), z.number(), z.boolean()]),
8517
+ }).transform((v) => {
8518
+ return remap$(v, {
8519
+ dollarNe: "$ne",
8520
+ });
8521
+ });
8522
+
8523
+ /**
8524
+ * @internal
8525
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
8526
+ */
8527
+ export namespace DeploymentStream1DollarNe$ {
8528
+ /** @deprecated use `DeploymentStream1DollarNe$inboundSchema` instead. */
8529
+ export const inboundSchema = DeploymentStream1DollarNe$inboundSchema;
8530
+ /** @deprecated use `DeploymentStream1DollarNe$outboundSchema` instead. */
8531
+ export const outboundSchema = DeploymentStream1DollarNe$outboundSchema;
8532
+ /** @deprecated use `DeploymentStream1DollarNe$Outbound` instead. */
8533
+ export type Outbound = DeploymentStream1DollarNe$Outbound;
8534
+ }
8535
+
8536
+ export function deploymentStream1DollarNeToJSON(
8537
+ deploymentStream1DollarNe: DeploymentStream1DollarNe,
8538
+ ): string {
8539
+ return JSON.stringify(
8540
+ DeploymentStream1DollarNe$outboundSchema.parse(deploymentStream1DollarNe),
8541
+ );
8542
+ }
8543
+
8544
+ export function deploymentStream1DollarNeFromJSON(
8545
+ jsonString: string,
8546
+ ): SafeParseResult<DeploymentStream1DollarNe, SDKValidationError> {
8547
+ return safeParse(
8548
+ jsonString,
8549
+ (x) => DeploymentStream1DollarNe$inboundSchema.parse(JSON.parse(x)),
8550
+ `Failed to parse 'DeploymentStream1DollarNe' from JSON`,
8551
+ );
8552
+ }
8553
+
8554
+ /** @internal */
8555
+ export const DeploymentStream1DeploymentsDollarEq$inboundSchema: z.ZodType<
8556
+ DeploymentStream1DeploymentsDollarEq,
8557
+ z.ZodTypeDef,
8558
+ unknown
8559
+ > = z.union([z.string(), z.number(), z.boolean()]);
8560
+
8561
+ /** @internal */
8562
+ export type DeploymentStream1DeploymentsDollarEq$Outbound =
8563
+ | string
8564
+ | number
8565
+ | boolean;
8566
+
8567
+ /** @internal */
8568
+ export const DeploymentStream1DeploymentsDollarEq$outboundSchema: z.ZodType<
8569
+ DeploymentStream1DeploymentsDollarEq$Outbound,
8570
+ z.ZodTypeDef,
8571
+ DeploymentStream1DeploymentsDollarEq
8572
+ > = z.union([z.string(), z.number(), z.boolean()]);
8573
+
8574
+ /**
8575
+ * @internal
8576
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
8577
+ */
8578
+ export namespace DeploymentStream1DeploymentsDollarEq$ {
8579
+ /** @deprecated use `DeploymentStream1DeploymentsDollarEq$inboundSchema` instead. */
8580
+ export const inboundSchema =
8581
+ DeploymentStream1DeploymentsDollarEq$inboundSchema;
8582
+ /** @deprecated use `DeploymentStream1DeploymentsDollarEq$outboundSchema` instead. */
8583
+ export const outboundSchema =
8584
+ DeploymentStream1DeploymentsDollarEq$outboundSchema;
8585
+ /** @deprecated use `DeploymentStream1DeploymentsDollarEq$Outbound` instead. */
8586
+ export type Outbound = DeploymentStream1DeploymentsDollarEq$Outbound;
8587
+ }
8588
+
8589
+ export function deploymentStream1DeploymentsDollarEqToJSON(
8590
+ deploymentStream1DeploymentsDollarEq: DeploymentStream1DeploymentsDollarEq,
8591
+ ): string {
8592
+ return JSON.stringify(
8593
+ DeploymentStream1DeploymentsDollarEq$outboundSchema.parse(
8594
+ deploymentStream1DeploymentsDollarEq,
8595
+ ),
8596
+ );
8597
+ }
8598
+
8599
+ export function deploymentStream1DeploymentsDollarEqFromJSON(
8600
+ jsonString: string,
8601
+ ): SafeParseResult<DeploymentStream1DeploymentsDollarEq, SDKValidationError> {
8602
+ return safeParse(
8603
+ jsonString,
8604
+ (x) =>
8605
+ DeploymentStream1DeploymentsDollarEq$inboundSchema.parse(JSON.parse(x)),
8606
+ `Failed to parse 'DeploymentStream1DeploymentsDollarEq' from JSON`,
8607
+ );
8608
+ }
8609
+
8610
+ /** @internal */
8611
+ export const DeploymentStream1DollarEq$inboundSchema: z.ZodType<
8612
+ DeploymentStream1DollarEq,
8613
+ z.ZodTypeDef,
8614
+ unknown
8615
+ > = z.object({
8616
+ $eq: z.union([z.string(), z.number(), z.boolean()]),
8617
+ }).transform((v) => {
8618
+ return remap$(v, {
8619
+ "$eq": "dollarEq",
8620
+ });
8621
+ });
8622
+
8623
+ /** @internal */
8624
+ export type DeploymentStream1DollarEq$Outbound = {
8625
+ $eq: string | number | boolean;
8626
+ };
8627
+
8628
+ /** @internal */
8629
+ export const DeploymentStream1DollarEq$outboundSchema: z.ZodType<
8630
+ DeploymentStream1DollarEq$Outbound,
8631
+ z.ZodTypeDef,
8632
+ DeploymentStream1DollarEq
8633
+ > = z.object({
8634
+ dollarEq: z.union([z.string(), z.number(), z.boolean()]),
8635
+ }).transform((v) => {
8636
+ return remap$(v, {
8637
+ dollarEq: "$eq",
8638
+ });
8639
+ });
8640
+
8641
+ /**
8642
+ * @internal
8643
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
8644
+ */
8645
+ export namespace DeploymentStream1DollarEq$ {
8646
+ /** @deprecated use `DeploymentStream1DollarEq$inboundSchema` instead. */
8647
+ export const inboundSchema = DeploymentStream1DollarEq$inboundSchema;
8648
+ /** @deprecated use `DeploymentStream1DollarEq$outboundSchema` instead. */
8649
+ export const outboundSchema = DeploymentStream1DollarEq$outboundSchema;
8650
+ /** @deprecated use `DeploymentStream1DollarEq$Outbound` instead. */
8651
+ export type Outbound = DeploymentStream1DollarEq$Outbound;
8652
+ }
8653
+
8654
+ export function deploymentStream1DollarEqToJSON(
8655
+ deploymentStream1DollarEq: DeploymentStream1DollarEq,
8656
+ ): string {
8657
+ return JSON.stringify(
8658
+ DeploymentStream1DollarEq$outboundSchema.parse(deploymentStream1DollarEq),
8659
+ );
8660
+ }
8661
+
8662
+ export function deploymentStream1DollarEqFromJSON(
8663
+ jsonString: string,
8664
+ ): SafeParseResult<DeploymentStream1DollarEq, SDKValidationError> {
8665
+ return safeParse(
8666
+ jsonString,
8667
+ (x) => DeploymentStream1DollarEq$inboundSchema.parse(JSON.parse(x)),
8668
+ `Failed to parse 'DeploymentStream1DollarEq' from JSON`,
8669
+ );
8670
+ }
8671
+
8672
+ /** @internal */
8673
+ export const DeploymentStreamKnowledgeFilter1$inboundSchema: z.ZodType<
8674
+ DeploymentStreamKnowledgeFilter1,
8675
+ z.ZodTypeDef,
8676
+ unknown
8677
+ > = z.union([
8678
+ z.lazy(() => DeploymentStream1DollarEq$inboundSchema),
8679
+ z.lazy(() => DeploymentStream1DollarNe$inboundSchema),
8680
+ z.lazy(() => DeploymentStream13$inboundSchema),
8681
+ z.lazy(() => OneDollarGte$inboundSchema),
8682
+ z.lazy(() => OneDollarLt$inboundSchema),
8683
+ z.lazy(() => OneDollarLte$inboundSchema),
8684
+ z.lazy(() => DeploymentStream1DollarIn$inboundSchema),
8685
+ z.lazy(() => DeploymentStream1DollarNin$inboundSchema),
8686
+ z.lazy(() => OneDollarExists$inboundSchema),
8687
+ ]);
8688
+
8689
+ /** @internal */
8690
+ export type DeploymentStreamKnowledgeFilter1$Outbound =
8691
+ | DeploymentStream1DollarEq$Outbound
8692
+ | DeploymentStream1DollarNe$Outbound
8693
+ | DeploymentStream13$Outbound
8694
+ | OneDollarGte$Outbound
8695
+ | OneDollarLt$Outbound
8696
+ | OneDollarLte$Outbound
8697
+ | DeploymentStream1DollarIn$Outbound
8698
+ | DeploymentStream1DollarNin$Outbound
8699
+ | OneDollarExists$Outbound;
8700
+
8701
+ /** @internal */
8702
+ export const DeploymentStreamKnowledgeFilter1$outboundSchema: z.ZodType<
8703
+ DeploymentStreamKnowledgeFilter1$Outbound,
8704
+ z.ZodTypeDef,
8705
+ DeploymentStreamKnowledgeFilter1
8706
+ > = z.union([
8707
+ z.lazy(() => DeploymentStream1DollarEq$outboundSchema),
8708
+ z.lazy(() => DeploymentStream1DollarNe$outboundSchema),
8709
+ z.lazy(() => DeploymentStream13$outboundSchema),
8710
+ z.lazy(() => OneDollarGte$outboundSchema),
8711
+ z.lazy(() => OneDollarLt$outboundSchema),
8712
+ z.lazy(() => OneDollarLte$outboundSchema),
8713
+ z.lazy(() => DeploymentStream1DollarIn$outboundSchema),
8714
+ z.lazy(() => DeploymentStream1DollarNin$outboundSchema),
8715
+ z.lazy(() => OneDollarExists$outboundSchema),
8716
+ ]);
8717
+
8718
+ /**
8719
+ * @internal
8720
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
8721
+ */
8722
+ export namespace DeploymentStreamKnowledgeFilter1$ {
8723
+ /** @deprecated use `DeploymentStreamKnowledgeFilter1$inboundSchema` instead. */
8724
+ export const inboundSchema = DeploymentStreamKnowledgeFilter1$inboundSchema;
8725
+ /** @deprecated use `DeploymentStreamKnowledgeFilter1$outboundSchema` instead. */
8726
+ export const outboundSchema = DeploymentStreamKnowledgeFilter1$outboundSchema;
8727
+ /** @deprecated use `DeploymentStreamKnowledgeFilter1$Outbound` instead. */
8728
+ export type Outbound = DeploymentStreamKnowledgeFilter1$Outbound;
8729
+ }
8730
+
8731
+ export function deploymentStreamKnowledgeFilter1ToJSON(
8732
+ deploymentStreamKnowledgeFilter1: DeploymentStreamKnowledgeFilter1,
8733
+ ): string {
8734
+ return JSON.stringify(
8735
+ DeploymentStreamKnowledgeFilter1$outboundSchema.parse(
8736
+ deploymentStreamKnowledgeFilter1,
8737
+ ),
8738
+ );
8739
+ }
8740
+
8741
+ export function deploymentStreamKnowledgeFilter1FromJSON(
8742
+ jsonString: string,
8743
+ ): SafeParseResult<DeploymentStreamKnowledgeFilter1, SDKValidationError> {
8744
+ return safeParse(
8745
+ jsonString,
8746
+ (x) => DeploymentStreamKnowledgeFilter1$inboundSchema.parse(JSON.parse(x)),
8747
+ `Failed to parse 'DeploymentStreamKnowledgeFilter1' from JSON`,
8748
+ );
8749
+ }
8750
+
8751
+ /** @internal */
8752
+ export const DeploymentStreamKnowledgeFilter$inboundSchema: z.ZodType<
8753
+ DeploymentStreamKnowledgeFilter,
8754
+ z.ZodTypeDef,
8755
+ unknown
8756
+ > = z.union([
8757
+ z.lazy(() => DeploymentStreamKnowledgeFilterDollarAnd$inboundSchema),
8758
+ z.lazy(() => DeploymentStreamKnowledgeFilterDollarOr$inboundSchema),
8759
+ z.record(
8760
+ z.union([
8761
+ z.lazy(() => DeploymentStream1DollarEq$inboundSchema),
8762
+ z.lazy(() => DeploymentStream1DollarNe$inboundSchema),
8763
+ z.lazy(() => DeploymentStream13$inboundSchema),
8764
+ z.lazy(() => OneDollarGte$inboundSchema),
8765
+ z.lazy(() => OneDollarLt$inboundSchema),
8766
+ z.lazy(() => OneDollarLte$inboundSchema),
8767
+ z.lazy(() => DeploymentStream1DollarIn$inboundSchema),
8768
+ z.lazy(() => DeploymentStream1DollarNin$inboundSchema),
8769
+ z.lazy(() => OneDollarExists$inboundSchema),
8770
+ ]),
8771
+ ),
8772
+ ]);
8773
+
8774
+ /** @internal */
8775
+ export type DeploymentStreamKnowledgeFilter$Outbound =
8776
+ | DeploymentStreamKnowledgeFilterDollarAnd$Outbound
8777
+ | DeploymentStreamKnowledgeFilterDollarOr$Outbound
8778
+ | {
8779
+ [k: string]:
8780
+ | DeploymentStream1DollarEq$Outbound
8781
+ | DeploymentStream1DollarNe$Outbound
8782
+ | DeploymentStream13$Outbound
8783
+ | OneDollarGte$Outbound
8784
+ | OneDollarLt$Outbound
8785
+ | OneDollarLte$Outbound
8786
+ | DeploymentStream1DollarIn$Outbound
8787
+ | DeploymentStream1DollarNin$Outbound
8788
+ | OneDollarExists$Outbound;
8789
+ };
8790
+
8791
+ /** @internal */
8792
+ export const DeploymentStreamKnowledgeFilter$outboundSchema: z.ZodType<
8793
+ DeploymentStreamKnowledgeFilter$Outbound,
8794
+ z.ZodTypeDef,
8795
+ DeploymentStreamKnowledgeFilter
8796
+ > = z.union([
8797
+ z.lazy(() => DeploymentStreamKnowledgeFilterDollarAnd$outboundSchema),
8798
+ z.lazy(() => DeploymentStreamKnowledgeFilterDollarOr$outboundSchema),
8799
+ z.record(
8800
+ z.union([
8801
+ z.lazy(() => DeploymentStream1DollarEq$outboundSchema),
8802
+ z.lazy(() => DeploymentStream1DollarNe$outboundSchema),
8803
+ z.lazy(() => DeploymentStream13$outboundSchema),
8804
+ z.lazy(() => OneDollarGte$outboundSchema),
8805
+ z.lazy(() => OneDollarLt$outboundSchema),
8806
+ z.lazy(() => OneDollarLte$outboundSchema),
8807
+ z.lazy(() => DeploymentStream1DollarIn$outboundSchema),
8808
+ z.lazy(() => DeploymentStream1DollarNin$outboundSchema),
8809
+ z.lazy(() => OneDollarExists$outboundSchema),
8810
+ ]),
8811
+ ),
8812
+ ]);
8813
+
8814
+ /**
8815
+ * @internal
8816
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
8817
+ */
8818
+ export namespace DeploymentStreamKnowledgeFilter$ {
8819
+ /** @deprecated use `DeploymentStreamKnowledgeFilter$inboundSchema` instead. */
8820
+ export const inboundSchema = DeploymentStreamKnowledgeFilter$inboundSchema;
8821
+ /** @deprecated use `DeploymentStreamKnowledgeFilter$outboundSchema` instead. */
8822
+ export const outboundSchema = DeploymentStreamKnowledgeFilter$outboundSchema;
8823
+ /** @deprecated use `DeploymentStreamKnowledgeFilter$Outbound` instead. */
8824
+ export type Outbound = DeploymentStreamKnowledgeFilter$Outbound;
8825
+ }
8826
+
8827
+ export function deploymentStreamKnowledgeFilterToJSON(
8828
+ deploymentStreamKnowledgeFilter: DeploymentStreamKnowledgeFilter,
8829
+ ): string {
8830
+ return JSON.stringify(
8831
+ DeploymentStreamKnowledgeFilter$outboundSchema.parse(
8832
+ deploymentStreamKnowledgeFilter,
8833
+ ),
8834
+ );
8835
+ }
8836
+
8837
+ export function deploymentStreamKnowledgeFilterFromJSON(
8838
+ jsonString: string,
8839
+ ): SafeParseResult<DeploymentStreamKnowledgeFilter, SDKValidationError> {
8840
+ return safeParse(
8841
+ jsonString,
8842
+ (x) => DeploymentStreamKnowledgeFilter$inboundSchema.parse(JSON.parse(x)),
8843
+ `Failed to parse 'DeploymentStreamKnowledgeFilter' from JSON`,
8844
+ );
8845
+ }
8846
+
8847
+ /** @internal */
8848
+ export const DeploymentStreamRequestBody$inboundSchema: z.ZodType<
8849
+ DeploymentStreamRequestBody,
8850
+ z.ZodTypeDef,
8851
+ unknown
8852
+ > = z.object({
8853
+ key: z.string(),
8854
+ inputs: z.record(z.union([z.string(), z.number(), z.boolean()])).optional(),
8855
+ context: z.record(z.any()).optional(),
8856
+ prefix_messages: z.array(
8857
+ z.union([
8858
+ z.lazy(() => PrefixMessagesDeveloperMessage$inboundSchema),
8859
+ z.lazy(() => PrefixMessagesSystemMessage$inboundSchema),
8860
+ z.lazy(() => PrefixMessagesUserMessage$inboundSchema),
8861
+ z.lazy(() => PrefixMessagesToolMessage$inboundSchema),
8862
+ z.lazy(() => PrefixMessagesAssistantMessage$inboundSchema),
8863
+ ]),
8864
+ ).optional(),
8865
+ messages: z.array(
8866
+ z.union([
8867
+ z.lazy(() => DeploymentStreamMessagesDeveloperMessage$inboundSchema),
8868
+ z.lazy(() => DeploymentStreamMessagesSystemMessage$inboundSchema),
8869
+ z.lazy(() => DeploymentStreamMessagesUserMessage$inboundSchema),
8870
+ z.lazy(() => DeploymentStreamMessagesToolMessage$inboundSchema),
8871
+ z.lazy(() => DeploymentStreamMessagesAssistantMessage$inboundSchema),
8872
+ ]),
8873
+ ).optional(),
8874
+ file_ids: z.array(z.string()).optional(),
8875
+ metadata: z.record(z.any()).optional(),
8876
+ extra_params: z.record(z.any()).optional(),
8877
+ documents: z.array(z.lazy(() => DeploymentStreamDocuments$inboundSchema))
8878
+ .optional(),
8879
+ invoke_options: z.lazy(() => DeploymentStreamInvokeOptions$inboundSchema)
8880
+ .optional(),
8881
+ thread: z.lazy(() => DeploymentStreamThread$inboundSchema).optional(),
8882
+ knowledge_filter: z.union([
8883
+ z.lazy(() => DeploymentStreamKnowledgeFilterDollarAnd$inboundSchema),
8884
+ z.lazy(() => DeploymentStreamKnowledgeFilterDollarOr$inboundSchema),
8885
+ z.record(
8886
+ z.union([
8887
+ z.lazy(() => DeploymentStream1DollarEq$inboundSchema),
8888
+ z.lazy(() => DeploymentStream1DollarNe$inboundSchema),
8889
+ z.lazy(() => DeploymentStream13$inboundSchema),
8890
+ z.lazy(() => OneDollarGte$inboundSchema),
8891
+ z.lazy(() => OneDollarLt$inboundSchema),
8892
+ z.lazy(() => OneDollarLte$inboundSchema),
8893
+ z.lazy(() => DeploymentStream1DollarIn$inboundSchema),
8894
+ z.lazy(() => DeploymentStream1DollarNin$inboundSchema),
8895
+ z.lazy(() => OneDollarExists$inboundSchema),
8896
+ ]),
8897
+ ),
8898
+ ]).optional(),
8899
+ }).transform((v) => {
8900
+ return remap$(v, {
8901
+ "prefix_messages": "prefixMessages",
8902
+ "file_ids": "fileIds",
8903
+ "extra_params": "extraParams",
8904
+ "invoke_options": "invokeOptions",
8905
+ "knowledge_filter": "knowledgeFilter",
8906
+ });
8907
+ });
8908
+
8909
+ /** @internal */
8910
+ export type DeploymentStreamRequestBody$Outbound = {
8911
+ key: string;
8912
+ inputs?: { [k: string]: string | number | boolean } | undefined;
8913
+ context?: { [k: string]: any } | undefined;
8914
+ prefix_messages?:
8915
+ | Array<
8916
+ | PrefixMessagesDeveloperMessage$Outbound
8917
+ | PrefixMessagesSystemMessage$Outbound
8918
+ | PrefixMessagesUserMessage$Outbound
8919
+ | PrefixMessagesToolMessage$Outbound
8920
+ | PrefixMessagesAssistantMessage$Outbound
8921
+ >
8922
+ | undefined;
8923
+ messages?:
8924
+ | Array<
8925
+ | DeploymentStreamMessagesDeveloperMessage$Outbound
8926
+ | DeploymentStreamMessagesSystemMessage$Outbound
8927
+ | DeploymentStreamMessagesUserMessage$Outbound
8928
+ | DeploymentStreamMessagesToolMessage$Outbound
8929
+ | DeploymentStreamMessagesAssistantMessage$Outbound
8930
+ >
8931
+ | undefined;
8932
+ file_ids?: Array<string> | undefined;
8933
+ metadata?: { [k: string]: any } | undefined;
8934
+ extra_params?: { [k: string]: any } | undefined;
8935
+ documents?: Array<DeploymentStreamDocuments$Outbound> | undefined;
8936
+ invoke_options?: DeploymentStreamInvokeOptions$Outbound | undefined;
8937
+ thread?: DeploymentStreamThread$Outbound | undefined;
8938
+ knowledge_filter?:
8939
+ | DeploymentStreamKnowledgeFilterDollarAnd$Outbound
8940
+ | DeploymentStreamKnowledgeFilterDollarOr$Outbound
8941
+ | {
8942
+ [k: string]:
8943
+ | DeploymentStream1DollarEq$Outbound
8944
+ | DeploymentStream1DollarNe$Outbound
8945
+ | DeploymentStream13$Outbound
8946
+ | OneDollarGte$Outbound
8947
+ | OneDollarLt$Outbound
8948
+ | OneDollarLte$Outbound
8949
+ | DeploymentStream1DollarIn$Outbound
8950
+ | DeploymentStream1DollarNin$Outbound
8951
+ | OneDollarExists$Outbound;
8952
+ }
8953
+ | undefined;
8954
+ };
8955
+
8956
+ /** @internal */
8957
+ export const DeploymentStreamRequestBody$outboundSchema: z.ZodType<
8958
+ DeploymentStreamRequestBody$Outbound,
8959
+ z.ZodTypeDef,
8960
+ DeploymentStreamRequestBody
8961
+ > = z.object({
8962
+ key: z.string(),
8963
+ inputs: z.record(z.union([z.string(), z.number(), z.boolean()])).optional(),
8964
+ context: z.record(z.any()).optional(),
8965
+ prefixMessages: z.array(
8966
+ z.union([
8967
+ z.lazy(() => PrefixMessagesDeveloperMessage$outboundSchema),
5105
8968
  z.lazy(() => PrefixMessagesSystemMessage$outboundSchema),
5106
8969
  z.lazy(() => PrefixMessagesUserMessage$outboundSchema),
5107
8970
  z.lazy(() => PrefixMessagesToolMessage$outboundSchema),
@@ -5125,12 +8988,30 @@ export const DeploymentStreamRequestBody$outboundSchema: z.ZodType<
5125
8988
  invokeOptions: z.lazy(() => DeploymentStreamInvokeOptions$outboundSchema)
5126
8989
  .optional(),
5127
8990
  thread: z.lazy(() => DeploymentStreamThread$outboundSchema).optional(),
8991
+ knowledgeFilter: z.union([
8992
+ z.lazy(() => DeploymentStreamKnowledgeFilterDollarAnd$outboundSchema),
8993
+ z.lazy(() => DeploymentStreamKnowledgeFilterDollarOr$outboundSchema),
8994
+ z.record(
8995
+ z.union([
8996
+ z.lazy(() => DeploymentStream1DollarEq$outboundSchema),
8997
+ z.lazy(() => DeploymentStream1DollarNe$outboundSchema),
8998
+ z.lazy(() => DeploymentStream13$outboundSchema),
8999
+ z.lazy(() => OneDollarGte$outboundSchema),
9000
+ z.lazy(() => OneDollarLt$outboundSchema),
9001
+ z.lazy(() => OneDollarLte$outboundSchema),
9002
+ z.lazy(() => DeploymentStream1DollarIn$outboundSchema),
9003
+ z.lazy(() => DeploymentStream1DollarNin$outboundSchema),
9004
+ z.lazy(() => OneDollarExists$outboundSchema),
9005
+ ]),
9006
+ ),
9007
+ ]).optional(),
5128
9008
  }).transform((v) => {
5129
9009
  return remap$(v, {
5130
9010
  prefixMessages: "prefix_messages",
5131
9011
  fileIds: "file_ids",
5132
9012
  extraParams: "extra_params",
5133
9013
  invokeOptions: "invoke_options",
9014
+ knowledgeFilter: "knowledge_filter",
5134
9015
  });
5135
9016
  });
5136
9017