@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
@@ -46,21 +46,21 @@ export type ToolMessage = {
46
46
  /**
47
47
  * The type of the content part.
48
48
  */
49
- export const DeploymentGetConfig2DeploymentsRequestType = {
49
+ export const DeploymentGetConfig2DeploymentsRequestRequestBodyType = {
50
50
  Refusal: "refusal",
51
51
  } as const;
52
52
  /**
53
53
  * The type of the content part.
54
54
  */
55
- export type DeploymentGetConfig2DeploymentsRequestType = ClosedEnum<
56
- typeof DeploymentGetConfig2DeploymentsRequestType
55
+ export type DeploymentGetConfig2DeploymentsRequestRequestBodyType = ClosedEnum<
56
+ typeof DeploymentGetConfig2DeploymentsRequestRequestBodyType
57
57
  >;
58
58
 
59
59
  export type RefusalContentPart = {
60
60
  /**
61
61
  * The type of the content part.
62
62
  */
63
- type: DeploymentGetConfig2DeploymentsRequestType;
63
+ type: DeploymentGetConfig2DeploymentsRequestRequestBodyType;
64
64
  /**
65
65
  * The refusal message generated by the model.
66
66
  */
@@ -70,21 +70,21 @@ export type RefusalContentPart = {
70
70
  /**
71
71
  * The type of the content part.
72
72
  */
73
- export const DeploymentGetConfig2DeploymentsType = {
73
+ export const DeploymentGetConfig2DeploymentsRequestType = {
74
74
  Text: "text",
75
75
  } as const;
76
76
  /**
77
77
  * The type of the content part.
78
78
  */
79
- export type DeploymentGetConfig2DeploymentsType = ClosedEnum<
80
- typeof DeploymentGetConfig2DeploymentsType
79
+ export type DeploymentGetConfig2DeploymentsRequestType = ClosedEnum<
80
+ typeof DeploymentGetConfig2DeploymentsRequestType
81
81
  >;
82
82
 
83
83
  export type TextContentPart = {
84
84
  /**
85
85
  * The type of the content part.
86
86
  */
87
- type: DeploymentGetConfig2DeploymentsType;
87
+ type: DeploymentGetConfig2DeploymentsRequestType;
88
88
  /**
89
89
  * The text content.
90
90
  */
@@ -186,6 +186,18 @@ export type AssistantMessage = {
186
186
  * The tool calls generated by the model, such as function calls.
187
187
  */
188
188
  toolCalls?: Array<ToolCalls> | undefined;
189
+ /**
190
+ * Internal thought process of the model
191
+ */
192
+ reasoning?: string | undefined;
193
+ /**
194
+ * 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`.
195
+ */
196
+ reasoningSignature?: string | undefined;
197
+ /**
198
+ * 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.
199
+ */
200
+ redactedReasoning?: string | undefined;
189
201
  };
190
202
 
191
203
  /**
@@ -201,6 +213,38 @@ export type DeploymentGetConfigPrefixMessagesRole = ClosedEnum<
201
213
  typeof DeploymentGetConfigPrefixMessagesRole
202
214
  >;
203
215
 
216
+ /**
217
+ * The type of the content part. Always `file`.
218
+ */
219
+ export const DeploymentGetConfig2DeploymentsType = {
220
+ File: "file",
221
+ } as const;
222
+ /**
223
+ * The type of the content part. Always `file`.
224
+ */
225
+ export type DeploymentGetConfig2DeploymentsType = ClosedEnum<
226
+ typeof DeploymentGetConfig2DeploymentsType
227
+ >;
228
+
229
+ export type FileT = {
230
+ /**
231
+ * The base64 encoded file data, used when passing the file to the model as a string.
232
+ */
233
+ fileData: string;
234
+ /**
235
+ * The name of the file, used when passing the file to the model as a string.
236
+ */
237
+ filename?: string | undefined;
238
+ };
239
+
240
+ export type Four = {
241
+ /**
242
+ * The type of the content part. Always `file`.
243
+ */
244
+ type: DeploymentGetConfig2DeploymentsType;
245
+ file: FileT;
246
+ };
247
+
204
248
  export const DeploymentGetConfig2Type = {
205
249
  InputAudio: "input_audio",
206
250
  } as const;
@@ -280,12 +324,12 @@ export type One = {
280
324
  text: string;
281
325
  };
282
326
 
283
- export type Two = One | Two2 | Three;
327
+ export type Two = One | Two2 | Three | Four;
284
328
 
285
329
  /**
286
330
  * The contents of the user message.
287
331
  */
288
- export type Content = string | Array<One | Two2 | Three>;
332
+ export type Content = string | Array<One | Two2 | Three | Four>;
289
333
 
290
334
  export type UserMessage = {
291
335
  /**
@@ -299,7 +343,7 @@ export type UserMessage = {
299
343
  /**
300
344
  * The contents of the user message.
301
345
  */
302
- content: string | Array<One | Two2 | Three>;
346
+ content: string | Array<One | Two2 | Three | Four>;
303
347
  };
304
348
 
305
349
  /**
@@ -545,6 +589,18 @@ export type MessagesAssistantMessage = {
545
589
  * The tool calls generated by the model, such as function calls.
546
590
  */
547
591
  toolCalls?: Array<MessagesToolCalls> | undefined;
592
+ /**
593
+ * Internal thought process of the model
594
+ */
595
+ reasoning?: string | undefined;
596
+ /**
597
+ * 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`.
598
+ */
599
+ reasoningSignature?: string | undefined;
600
+ /**
601
+ * 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.
602
+ */
603
+ redactedReasoning?: string | undefined;
548
604
  };
549
605
 
550
606
  /**
@@ -560,12 +616,47 @@ export type DeploymentGetConfigMessagesDeploymentsRole = ClosedEnum<
560
616
  typeof DeploymentGetConfigMessagesDeploymentsRole
561
617
  >;
562
618
 
563
- export const DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Type = {
564
- InputAudio: "input_audio",
565
- } as const;
566
- export type DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Type =
619
+ /**
620
+ * The type of the content part. Always `file`.
621
+ */
622
+ export const DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Content4Type =
623
+ {
624
+ File: "file",
625
+ } as const;
626
+ /**
627
+ * The type of the content part. Always `file`.
628
+ */
629
+ export type DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Content4Type =
567
630
  ClosedEnum<
568
- typeof DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Type
631
+ typeof DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Content4Type
632
+ >;
633
+
634
+ export type TwoFile = {
635
+ /**
636
+ * The base64 encoded file data, used when passing the file to the model as a string.
637
+ */
638
+ fileData: string;
639
+ /**
640
+ * The name of the file, used when passing the file to the model as a string.
641
+ */
642
+ filename?: string | undefined;
643
+ };
644
+
645
+ export type Two4 = {
646
+ /**
647
+ * The type of the content part. Always `file`.
648
+ */
649
+ type: DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Content4Type;
650
+ file: TwoFile;
651
+ };
652
+
653
+ export const DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3ContentType =
654
+ {
655
+ InputAudio: "input_audio",
656
+ } as const;
657
+ export type DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3ContentType =
658
+ ClosedEnum<
659
+ typeof DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3ContentType
569
660
  >;
570
661
 
571
662
  /**
@@ -592,16 +683,16 @@ export type TwoInputAudio = {
592
683
  };
593
684
 
594
685
  export type Two3 = {
595
- type: DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Type;
686
+ type: DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3ContentType;
596
687
  inputAudio: TwoInputAudio;
597
688
  };
598
689
 
599
- export const DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesType = {
690
+ export const DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Type = {
600
691
  ImageUrl: "image_url",
601
692
  } as const;
602
- export type DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesType =
693
+ export type DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Type =
603
694
  ClosedEnum<
604
- typeof DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesType
695
+ typeof DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Type
605
696
  >;
606
697
 
607
698
  /**
@@ -629,30 +720,35 @@ export type TwoImageUrl = {
629
720
  };
630
721
 
631
722
  export type DeploymentGetConfig22 = {
632
- type: DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesType;
723
+ type: DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Type;
633
724
  imageUrl: TwoImageUrl;
634
725
  };
635
726
 
636
- export const DeploymentGetConfig2DeploymentsRequestRequestBodyType = {
727
+ export const DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesType = {
637
728
  Text: "text",
638
729
  } as const;
639
- export type DeploymentGetConfig2DeploymentsRequestRequestBodyType = ClosedEnum<
640
- typeof DeploymentGetConfig2DeploymentsRequestRequestBodyType
641
- >;
730
+ export type DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesType =
731
+ ClosedEnum<
732
+ typeof DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesType
733
+ >;
642
734
 
643
735
  export type Two1 = {
644
- type: DeploymentGetConfig2DeploymentsRequestRequestBodyType;
736
+ type: DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesType;
645
737
  text: string;
646
738
  };
647
739
 
648
- export type DeploymentGetConfigContent2 = Two1 | DeploymentGetConfig22 | Two3;
740
+ export type DeploymentGetConfigContent2 =
741
+ | Two1
742
+ | DeploymentGetConfig22
743
+ | Two3
744
+ | Two4;
649
745
 
650
746
  /**
651
747
  * The contents of the user message.
652
748
  */
653
749
  export type MessagesContent =
654
750
  | string
655
- | Array<Two1 | DeploymentGetConfig22 | Two3>;
751
+ | Array<Two1 | DeploymentGetConfig22 | Two3 | Two4>;
656
752
 
657
753
  export type MessagesUserMessage = {
658
754
  /**
@@ -666,7 +762,7 @@ export type MessagesUserMessage = {
666
762
  /**
667
763
  * The contents of the user message.
668
764
  */
669
- content: string | Array<Two1 | DeploymentGetConfig22 | Two3>;
765
+ content: string | Array<Two1 | DeploymentGetConfig22 | Two3 | Two4>;
670
766
  };
671
767
 
672
768
  /**
@@ -781,6 +877,299 @@ export type Thread = {
781
877
  tags?: Array<string> | undefined;
782
878
  };
783
879
 
880
+ /**
881
+ * Exists
882
+ */
883
+ export type DollarOrDollarExists = {
884
+ dollarExists: boolean;
885
+ };
886
+
887
+ export type DeploymentGetConfigDollarOrDollarNin = string | number | boolean;
888
+
889
+ /**
890
+ * Not in
891
+ */
892
+ export type DollarOrDollarNin = {
893
+ dollarNin: Array<string | number | boolean>;
894
+ };
895
+
896
+ export type DeploymentGetConfigDollarOrDollarIn = string | number | boolean;
897
+
898
+ /**
899
+ * In
900
+ */
901
+ export type DollarOrDollarIn = {
902
+ dollarIn: Array<string | number | boolean>;
903
+ };
904
+
905
+ /**
906
+ * Less than or equal to
907
+ */
908
+ export type DollarOrDollarLte = {
909
+ dollarLte: number;
910
+ };
911
+
912
+ /**
913
+ * Less than
914
+ */
915
+ export type DollarOrDollarLt = {
916
+ dollarLt: number;
917
+ };
918
+
919
+ /**
920
+ * Greater than or equal to
921
+ */
922
+ export type DollarOrDollarGte = {
923
+ dollarGte: number;
924
+ };
925
+
926
+ export type DollarOr3 = {
927
+ dollarGt: number;
928
+ };
929
+
930
+ export type DeploymentGetConfigDollarOrDollarNe = string | number | boolean;
931
+
932
+ /**
933
+ * Not equal to
934
+ */
935
+ export type DollarOrDollarNe = {
936
+ dollarNe: string | number | boolean;
937
+ };
938
+
939
+ export type DeploymentGetConfigDollarOrDollarEq = string | number | boolean;
940
+
941
+ /**
942
+ * Equal to
943
+ */
944
+ export type DollarOrDollarEq = {
945
+ dollarEq: string | number | boolean;
946
+ };
947
+
948
+ export type KnowledgeFilterDollarOr =
949
+ | DollarOrDollarEq
950
+ | DollarOrDollarNe
951
+ | DollarOr3
952
+ | DollarOrDollarGte
953
+ | DollarOrDollarLt
954
+ | DollarOrDollarLte
955
+ | DollarOrDollarIn
956
+ | DollarOrDollarNin
957
+ | DollarOrDollarExists;
958
+
959
+ /**
960
+ * Or
961
+ */
962
+ export type DollarOr = {
963
+ dollarOr: Array<
964
+ {
965
+ [k: string]:
966
+ | DollarOrDollarEq
967
+ | DollarOrDollarNe
968
+ | DollarOr3
969
+ | DollarOrDollarGte
970
+ | DollarOrDollarLt
971
+ | DollarOrDollarLte
972
+ | DollarOrDollarIn
973
+ | DollarOrDollarNin
974
+ | DollarOrDollarExists;
975
+ }
976
+ >;
977
+ };
978
+
979
+ /**
980
+ * Exists
981
+ */
982
+ export type DollarAndDollarExists = {
983
+ dollarExists: boolean;
984
+ };
985
+
986
+ export type DeploymentGetConfigDollarAndDollarNin = string | number | boolean;
987
+
988
+ /**
989
+ * Not in
990
+ */
991
+ export type DollarAndDollarNin = {
992
+ dollarNin: Array<string | number | boolean>;
993
+ };
994
+
995
+ export type DeploymentGetConfigDollarAndDollarIn = string | number | boolean;
996
+
997
+ /**
998
+ * In
999
+ */
1000
+ export type DollarAndDollarIn = {
1001
+ dollarIn: Array<string | number | boolean>;
1002
+ };
1003
+
1004
+ /**
1005
+ * Less than or equal to
1006
+ */
1007
+ export type DollarAndDollarLte = {
1008
+ dollarLte: number;
1009
+ };
1010
+
1011
+ /**
1012
+ * Less than
1013
+ */
1014
+ export type DollarAndDollarLt = {
1015
+ dollarLt: number;
1016
+ };
1017
+
1018
+ /**
1019
+ * Greater than or equal to
1020
+ */
1021
+ export type DollarAndDollarGte = {
1022
+ dollarGte: number;
1023
+ };
1024
+
1025
+ export type DollarAnd3 = {
1026
+ dollarGt: number;
1027
+ };
1028
+
1029
+ export type DeploymentGetConfigDollarAndDollarNe = string | number | boolean;
1030
+
1031
+ /**
1032
+ * Not equal to
1033
+ */
1034
+ export type DollarAndDollarNe = {
1035
+ dollarNe: string | number | boolean;
1036
+ };
1037
+
1038
+ export type DeploymentGetConfigDollarAndDollarEq = string | number | boolean;
1039
+
1040
+ /**
1041
+ * Equal to
1042
+ */
1043
+ export type DollarAndDollarEq = {
1044
+ dollarEq: string | number | boolean;
1045
+ };
1046
+
1047
+ export type KnowledgeFilterDollarAnd =
1048
+ | DollarAndDollarEq
1049
+ | DollarAndDollarNe
1050
+ | DollarAnd3
1051
+ | DollarAndDollarGte
1052
+ | DollarAndDollarLt
1053
+ | DollarAndDollarLte
1054
+ | DollarAndDollarIn
1055
+ | DollarAndDollarNin
1056
+ | DollarAndDollarExists;
1057
+
1058
+ /**
1059
+ * And
1060
+ */
1061
+ export type DollarAnd = {
1062
+ dollarAnd: Array<
1063
+ {
1064
+ [k: string]:
1065
+ | DollarAndDollarEq
1066
+ | DollarAndDollarNe
1067
+ | DollarAnd3
1068
+ | DollarAndDollarGte
1069
+ | DollarAndDollarLt
1070
+ | DollarAndDollarLte
1071
+ | DollarAndDollarIn
1072
+ | DollarAndDollarNin
1073
+ | DollarAndDollarExists;
1074
+ }
1075
+ >;
1076
+ };
1077
+
1078
+ /**
1079
+ * Exists
1080
+ */
1081
+ export type DollarExists = {
1082
+ dollarExists: boolean;
1083
+ };
1084
+
1085
+ export type OneDollarNin = string | number | boolean;
1086
+
1087
+ /**
1088
+ * Not in
1089
+ */
1090
+ export type DollarNin = {
1091
+ dollarNin: Array<string | number | boolean>;
1092
+ };
1093
+
1094
+ export type OneDollarIn = string | number | boolean;
1095
+
1096
+ /**
1097
+ * In
1098
+ */
1099
+ export type DollarIn = {
1100
+ dollarIn: Array<string | number | boolean>;
1101
+ };
1102
+
1103
+ /**
1104
+ * Less than or equal to
1105
+ */
1106
+ export type DollarLte = {
1107
+ dollarLte: number;
1108
+ };
1109
+
1110
+ /**
1111
+ * Less than
1112
+ */
1113
+ export type DollarLt = {
1114
+ dollarLt: number;
1115
+ };
1116
+
1117
+ /**
1118
+ * Greater than or equal to
1119
+ */
1120
+ export type DollarGte = {
1121
+ dollarGte: number;
1122
+ };
1123
+
1124
+ export type One3 = {
1125
+ dollarGt: number;
1126
+ };
1127
+
1128
+ export type OneDollarNe = string | number | boolean;
1129
+
1130
+ /**
1131
+ * Not equal to
1132
+ */
1133
+ export type DollarNe = {
1134
+ dollarNe: string | number | boolean;
1135
+ };
1136
+
1137
+ export type OneDollarEq = string | number | boolean;
1138
+
1139
+ /**
1140
+ * Equal to
1141
+ */
1142
+ export type DollarEq = {
1143
+ dollarEq: string | number | boolean;
1144
+ };
1145
+
1146
+ export type KnowledgeFilter1 =
1147
+ | DollarEq
1148
+ | DollarNe
1149
+ | One3
1150
+ | DollarGte
1151
+ | DollarLt
1152
+ | DollarLte
1153
+ | DollarIn
1154
+ | DollarNin
1155
+ | DollarExists;
1156
+
1157
+ /**
1158
+ * A filter to apply to the knowledge base chunk metadata when using knowledge bases in the deployment.
1159
+ */
1160
+ export type KnowledgeFilter = DollarAnd | DollarOr | {
1161
+ [k: string]:
1162
+ | DollarEq
1163
+ | DollarNe
1164
+ | One3
1165
+ | DollarGte
1166
+ | DollarLt
1167
+ | DollarLte
1168
+ | DollarIn
1169
+ | DollarNin
1170
+ | DollarExists;
1171
+ };
1172
+
784
1173
  export type DeploymentGetConfigRequestBody = {
785
1174
  /**
786
1175
  * The deployment key to invoke
@@ -791,7 +1180,7 @@ export type DeploymentGetConfigRequestBody = {
791
1180
  */
792
1181
  inputs?: { [k: string]: string | number | boolean } | undefined;
793
1182
  /**
794
- * 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.
1183
+ * Key-value pairs that match your data model and fields declared in your deployment routing configuration
795
1184
  */
796
1185
  context?: { [k: string]: any } | undefined;
797
1186
  /**
@@ -836,6 +1225,21 @@ export type DeploymentGetConfigRequestBody = {
836
1225
  documents?: Array<Documents> | undefined;
837
1226
  invokeOptions?: InvokeOptions | undefined;
838
1227
  thread?: Thread | undefined;
1228
+ /**
1229
+ * A filter to apply to the knowledge base chunk metadata when using knowledge bases in the deployment.
1230
+ */
1231
+ knowledgeFilter?: DollarAnd | DollarOr | {
1232
+ [k: string]:
1233
+ | DollarEq
1234
+ | DollarNe
1235
+ | One3
1236
+ | DollarGte
1237
+ | DollarLt
1238
+ | DollarLte
1239
+ | DollarIn
1240
+ | DollarNin
1241
+ | DollarExists;
1242
+ } | undefined;
839
1243
  };
840
1244
 
841
1245
  /**
@@ -1428,26 +1832,28 @@ export function toolMessageFromJSON(
1428
1832
  }
1429
1833
 
1430
1834
  /** @internal */
1431
- export const DeploymentGetConfig2DeploymentsRequestType$inboundSchema:
1432
- z.ZodNativeEnum<typeof DeploymentGetConfig2DeploymentsRequestType> = z
1433
- .nativeEnum(DeploymentGetConfig2DeploymentsRequestType);
1835
+ export const DeploymentGetConfig2DeploymentsRequestRequestBodyType$inboundSchema:
1836
+ z.ZodNativeEnum<
1837
+ typeof DeploymentGetConfig2DeploymentsRequestRequestBodyType
1838
+ > = z.nativeEnum(DeploymentGetConfig2DeploymentsRequestRequestBodyType);
1434
1839
 
1435
1840
  /** @internal */
1436
- export const DeploymentGetConfig2DeploymentsRequestType$outboundSchema:
1437
- z.ZodNativeEnum<typeof DeploymentGetConfig2DeploymentsRequestType> =
1438
- DeploymentGetConfig2DeploymentsRequestType$inboundSchema;
1841
+ export const DeploymentGetConfig2DeploymentsRequestRequestBodyType$outboundSchema:
1842
+ z.ZodNativeEnum<
1843
+ typeof DeploymentGetConfig2DeploymentsRequestRequestBodyType
1844
+ > = DeploymentGetConfig2DeploymentsRequestRequestBodyType$inboundSchema;
1439
1845
 
1440
1846
  /**
1441
1847
  * @internal
1442
1848
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1443
1849
  */
1444
- export namespace DeploymentGetConfig2DeploymentsRequestType$ {
1445
- /** @deprecated use `DeploymentGetConfig2DeploymentsRequestType$inboundSchema` instead. */
1850
+ export namespace DeploymentGetConfig2DeploymentsRequestRequestBodyType$ {
1851
+ /** @deprecated use `DeploymentGetConfig2DeploymentsRequestRequestBodyType$inboundSchema` instead. */
1446
1852
  export const inboundSchema =
1447
- DeploymentGetConfig2DeploymentsRequestType$inboundSchema;
1448
- /** @deprecated use `DeploymentGetConfig2DeploymentsRequestType$outboundSchema` instead. */
1853
+ DeploymentGetConfig2DeploymentsRequestRequestBodyType$inboundSchema;
1854
+ /** @deprecated use `DeploymentGetConfig2DeploymentsRequestRequestBodyType$outboundSchema` instead. */
1449
1855
  export const outboundSchema =
1450
- DeploymentGetConfig2DeploymentsRequestType$outboundSchema;
1856
+ DeploymentGetConfig2DeploymentsRequestRequestBodyType$outboundSchema;
1451
1857
  }
1452
1858
 
1453
1859
  /** @internal */
@@ -1456,7 +1862,7 @@ export const RefusalContentPart$inboundSchema: z.ZodType<
1456
1862
  z.ZodTypeDef,
1457
1863
  unknown
1458
1864
  > = z.object({
1459
- type: DeploymentGetConfig2DeploymentsRequestType$inboundSchema,
1865
+ type: DeploymentGetConfig2DeploymentsRequestRequestBodyType$inboundSchema,
1460
1866
  refusal: z.string(),
1461
1867
  });
1462
1868
 
@@ -1472,7 +1878,7 @@ export const RefusalContentPart$outboundSchema: z.ZodType<
1472
1878
  z.ZodTypeDef,
1473
1879
  RefusalContentPart
1474
1880
  > = z.object({
1475
- type: DeploymentGetConfig2DeploymentsRequestType$outboundSchema,
1881
+ type: DeploymentGetConfig2DeploymentsRequestRequestBodyType$outboundSchema,
1476
1882
  refusal: z.string(),
1477
1883
  });
1478
1884
 
@@ -1508,26 +1914,26 @@ export function refusalContentPartFromJSON(
1508
1914
  }
1509
1915
 
1510
1916
  /** @internal */
1511
- export const DeploymentGetConfig2DeploymentsType$inboundSchema: z.ZodNativeEnum<
1512
- typeof DeploymentGetConfig2DeploymentsType
1513
- > = z.nativeEnum(DeploymentGetConfig2DeploymentsType);
1917
+ export const DeploymentGetConfig2DeploymentsRequestType$inboundSchema:
1918
+ z.ZodNativeEnum<typeof DeploymentGetConfig2DeploymentsRequestType> = z
1919
+ .nativeEnum(DeploymentGetConfig2DeploymentsRequestType);
1514
1920
 
1515
1921
  /** @internal */
1516
- export const DeploymentGetConfig2DeploymentsType$outboundSchema:
1517
- z.ZodNativeEnum<typeof DeploymentGetConfig2DeploymentsType> =
1518
- DeploymentGetConfig2DeploymentsType$inboundSchema;
1519
-
1520
- /**
1922
+ export const DeploymentGetConfig2DeploymentsRequestType$outboundSchema:
1923
+ z.ZodNativeEnum<typeof DeploymentGetConfig2DeploymentsRequestType> =
1924
+ DeploymentGetConfig2DeploymentsRequestType$inboundSchema;
1925
+
1926
+ /**
1521
1927
  * @internal
1522
1928
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1523
1929
  */
1524
- export namespace DeploymentGetConfig2DeploymentsType$ {
1525
- /** @deprecated use `DeploymentGetConfig2DeploymentsType$inboundSchema` instead. */
1930
+ export namespace DeploymentGetConfig2DeploymentsRequestType$ {
1931
+ /** @deprecated use `DeploymentGetConfig2DeploymentsRequestType$inboundSchema` instead. */
1526
1932
  export const inboundSchema =
1527
- DeploymentGetConfig2DeploymentsType$inboundSchema;
1528
- /** @deprecated use `DeploymentGetConfig2DeploymentsType$outboundSchema` instead. */
1933
+ DeploymentGetConfig2DeploymentsRequestType$inboundSchema;
1934
+ /** @deprecated use `DeploymentGetConfig2DeploymentsRequestType$outboundSchema` instead. */
1529
1935
  export const outboundSchema =
1530
- DeploymentGetConfig2DeploymentsType$outboundSchema;
1936
+ DeploymentGetConfig2DeploymentsRequestType$outboundSchema;
1531
1937
  }
1532
1938
 
1533
1939
  /** @internal */
@@ -1536,7 +1942,7 @@ export const TextContentPart$inboundSchema: z.ZodType<
1536
1942
  z.ZodTypeDef,
1537
1943
  unknown
1538
1944
  > = z.object({
1539
- type: DeploymentGetConfig2DeploymentsType$inboundSchema,
1945
+ type: DeploymentGetConfig2DeploymentsRequestType$inboundSchema,
1540
1946
  text: z.string(),
1541
1947
  });
1542
1948
 
@@ -1552,7 +1958,7 @@ export const TextContentPart$outboundSchema: z.ZodType<
1552
1958
  z.ZodTypeDef,
1553
1959
  TextContentPart
1554
1960
  > = z.object({
1555
- type: DeploymentGetConfig2DeploymentsType$outboundSchema,
1961
+ type: DeploymentGetConfig2DeploymentsRequestType$outboundSchema,
1556
1962
  text: z.string(),
1557
1963
  });
1558
1964
 
@@ -1919,9 +2325,14 @@ export const AssistantMessage$inboundSchema: z.ZodType<
1919
2325
  name: z.string().optional(),
1920
2326
  audio: z.nullable(z.lazy(() => Audio$inboundSchema)).optional(),
1921
2327
  tool_calls: z.array(z.lazy(() => ToolCalls$inboundSchema)).optional(),
2328
+ reasoning: z.string().optional(),
2329
+ reasoning_signature: z.string().optional(),
2330
+ redacted_reasoning: z.string().optional(),
1922
2331
  }).transform((v) => {
1923
2332
  return remap$(v, {
1924
2333
  "tool_calls": "toolCalls",
2334
+ "reasoning_signature": "reasoningSignature",
2335
+ "redacted_reasoning": "redactedReasoning",
1925
2336
  });
1926
2337
  });
1927
2338
 
@@ -1937,6 +2348,9 @@ export type AssistantMessage$Outbound = {
1937
2348
  name?: string | undefined;
1938
2349
  audio?: Audio$Outbound | null | undefined;
1939
2350
  tool_calls?: Array<ToolCalls$Outbound> | undefined;
2351
+ reasoning?: string | undefined;
2352
+ reasoning_signature?: string | undefined;
2353
+ redacted_reasoning?: string | undefined;
1940
2354
  };
1941
2355
 
1942
2356
  /** @internal */
@@ -1961,9 +2375,14 @@ export const AssistantMessage$outboundSchema: z.ZodType<
1961
2375
  name: z.string().optional(),
1962
2376
  audio: z.nullable(z.lazy(() => Audio$outboundSchema)).optional(),
1963
2377
  toolCalls: z.array(z.lazy(() => ToolCalls$outboundSchema)).optional(),
2378
+ reasoning: z.string().optional(),
2379
+ reasoningSignature: z.string().optional(),
2380
+ redactedReasoning: z.string().optional(),
1964
2381
  }).transform((v) => {
1965
2382
  return remap$(v, {
1966
2383
  toolCalls: "tool_calls",
2384
+ reasoningSignature: "reasoning_signature",
2385
+ redactedReasoning: "redacted_reasoning",
1967
2386
  });
1968
2387
  });
1969
2388
 
@@ -2022,6 +2441,134 @@ export namespace DeploymentGetConfigPrefixMessagesRole$ {
2022
2441
  DeploymentGetConfigPrefixMessagesRole$outboundSchema;
2023
2442
  }
2024
2443
 
2444
+ /** @internal */
2445
+ export const DeploymentGetConfig2DeploymentsType$inboundSchema: z.ZodNativeEnum<
2446
+ typeof DeploymentGetConfig2DeploymentsType
2447
+ > = z.nativeEnum(DeploymentGetConfig2DeploymentsType);
2448
+
2449
+ /** @internal */
2450
+ export const DeploymentGetConfig2DeploymentsType$outboundSchema:
2451
+ z.ZodNativeEnum<typeof DeploymentGetConfig2DeploymentsType> =
2452
+ DeploymentGetConfig2DeploymentsType$inboundSchema;
2453
+
2454
+ /**
2455
+ * @internal
2456
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2457
+ */
2458
+ export namespace DeploymentGetConfig2DeploymentsType$ {
2459
+ /** @deprecated use `DeploymentGetConfig2DeploymentsType$inboundSchema` instead. */
2460
+ export const inboundSchema =
2461
+ DeploymentGetConfig2DeploymentsType$inboundSchema;
2462
+ /** @deprecated use `DeploymentGetConfig2DeploymentsType$outboundSchema` instead. */
2463
+ export const outboundSchema =
2464
+ DeploymentGetConfig2DeploymentsType$outboundSchema;
2465
+ }
2466
+
2467
+ /** @internal */
2468
+ export const FileT$inboundSchema: z.ZodType<FileT, z.ZodTypeDef, unknown> = z
2469
+ .object({
2470
+ file_data: z.string(),
2471
+ filename: z.string().optional(),
2472
+ }).transform((v) => {
2473
+ return remap$(v, {
2474
+ "file_data": "fileData",
2475
+ });
2476
+ });
2477
+
2478
+ /** @internal */
2479
+ export type FileT$Outbound = {
2480
+ file_data: string;
2481
+ filename?: string | undefined;
2482
+ };
2483
+
2484
+ /** @internal */
2485
+ export const FileT$outboundSchema: z.ZodType<
2486
+ FileT$Outbound,
2487
+ z.ZodTypeDef,
2488
+ FileT
2489
+ > = z.object({
2490
+ fileData: z.string(),
2491
+ filename: z.string().optional(),
2492
+ }).transform((v) => {
2493
+ return remap$(v, {
2494
+ fileData: "file_data",
2495
+ });
2496
+ });
2497
+
2498
+ /**
2499
+ * @internal
2500
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2501
+ */
2502
+ export namespace FileT$ {
2503
+ /** @deprecated use `FileT$inboundSchema` instead. */
2504
+ export const inboundSchema = FileT$inboundSchema;
2505
+ /** @deprecated use `FileT$outboundSchema` instead. */
2506
+ export const outboundSchema = FileT$outboundSchema;
2507
+ /** @deprecated use `FileT$Outbound` instead. */
2508
+ export type Outbound = FileT$Outbound;
2509
+ }
2510
+
2511
+ export function fileToJSON(fileT: FileT): string {
2512
+ return JSON.stringify(FileT$outboundSchema.parse(fileT));
2513
+ }
2514
+
2515
+ export function fileFromJSON(
2516
+ jsonString: string,
2517
+ ): SafeParseResult<FileT, SDKValidationError> {
2518
+ return safeParse(
2519
+ jsonString,
2520
+ (x) => FileT$inboundSchema.parse(JSON.parse(x)),
2521
+ `Failed to parse 'FileT' from JSON`,
2522
+ );
2523
+ }
2524
+
2525
+ /** @internal */
2526
+ export const Four$inboundSchema: z.ZodType<Four, z.ZodTypeDef, unknown> = z
2527
+ .object({
2528
+ type: DeploymentGetConfig2DeploymentsType$inboundSchema,
2529
+ file: z.lazy(() => FileT$inboundSchema),
2530
+ });
2531
+
2532
+ /** @internal */
2533
+ export type Four$Outbound = {
2534
+ type: string;
2535
+ file: FileT$Outbound;
2536
+ };
2537
+
2538
+ /** @internal */
2539
+ export const Four$outboundSchema: z.ZodType<Four$Outbound, z.ZodTypeDef, Four> =
2540
+ z.object({
2541
+ type: DeploymentGetConfig2DeploymentsType$outboundSchema,
2542
+ file: z.lazy(() => FileT$outboundSchema),
2543
+ });
2544
+
2545
+ /**
2546
+ * @internal
2547
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2548
+ */
2549
+ export namespace Four$ {
2550
+ /** @deprecated use `Four$inboundSchema` instead. */
2551
+ export const inboundSchema = Four$inboundSchema;
2552
+ /** @deprecated use `Four$outboundSchema` instead. */
2553
+ export const outboundSchema = Four$outboundSchema;
2554
+ /** @deprecated use `Four$Outbound` instead. */
2555
+ export type Outbound = Four$Outbound;
2556
+ }
2557
+
2558
+ export function fourToJSON(four: Four): string {
2559
+ return JSON.stringify(Four$outboundSchema.parse(four));
2560
+ }
2561
+
2562
+ export function fourFromJSON(
2563
+ jsonString: string,
2564
+ ): SafeParseResult<Four, SDKValidationError> {
2565
+ return safeParse(
2566
+ jsonString,
2567
+ (x) => Four$inboundSchema.parse(JSON.parse(x)),
2568
+ `Failed to parse 'Four' from JSON`,
2569
+ );
2570
+ }
2571
+
2025
2572
  /** @internal */
2026
2573
  export const DeploymentGetConfig2Type$inboundSchema: z.ZodNativeEnum<
2027
2574
  typeof DeploymentGetConfig2Type
@@ -2392,11 +2939,16 @@ export const Two$inboundSchema: z.ZodType<Two, z.ZodTypeDef, unknown> = z.union(
2392
2939
  z.lazy(() => One$inboundSchema),
2393
2940
  z.lazy(() => Two2$inboundSchema),
2394
2941
  z.lazy(() => Three$inboundSchema),
2942
+ z.lazy(() => Four$inboundSchema),
2395
2943
  ],
2396
2944
  );
2397
2945
 
2398
2946
  /** @internal */
2399
- export type Two$Outbound = One$Outbound | Two2$Outbound | Three$Outbound;
2947
+ export type Two$Outbound =
2948
+ | One$Outbound
2949
+ | Two2$Outbound
2950
+ | Three$Outbound
2951
+ | Four$Outbound;
2400
2952
 
2401
2953
  /** @internal */
2402
2954
  export const Two$outboundSchema: z.ZodType<Two$Outbound, z.ZodTypeDef, Two> = z
@@ -2404,6 +2956,7 @@ export const Two$outboundSchema: z.ZodType<Two$Outbound, z.ZodTypeDef, Two> = z
2404
2956
  z.lazy(() => One$outboundSchema),
2405
2957
  z.lazy(() => Two2$outboundSchema),
2406
2958
  z.lazy(() => Three$outboundSchema),
2959
+ z.lazy(() => Four$outboundSchema),
2407
2960
  ]);
2408
2961
 
2409
2962
  /**
@@ -2441,13 +2994,14 @@ export const Content$inboundSchema: z.ZodType<Content, z.ZodTypeDef, unknown> =
2441
2994
  z.lazy(() => One$inboundSchema),
2442
2995
  z.lazy(() => Two2$inboundSchema),
2443
2996
  z.lazy(() => Three$inboundSchema),
2997
+ z.lazy(() => Four$inboundSchema),
2444
2998
  ])),
2445
2999
  ]);
2446
3000
 
2447
3001
  /** @internal */
2448
3002
  export type Content$Outbound =
2449
3003
  | string
2450
- | Array<One$Outbound | Two2$Outbound | Three$Outbound>;
3004
+ | Array<One$Outbound | Two2$Outbound | Three$Outbound | Four$Outbound>;
2451
3005
 
2452
3006
  /** @internal */
2453
3007
  export const Content$outboundSchema: z.ZodType<
@@ -2460,6 +3014,7 @@ export const Content$outboundSchema: z.ZodType<
2460
3014
  z.lazy(() => One$outboundSchema),
2461
3015
  z.lazy(() => Two2$outboundSchema),
2462
3016
  z.lazy(() => Three$outboundSchema),
3017
+ z.lazy(() => Four$outboundSchema),
2463
3018
  ])),
2464
3019
  ]);
2465
3020
 
@@ -2504,6 +3059,7 @@ export const UserMessage$inboundSchema: z.ZodType<
2504
3059
  z.lazy(() => One$inboundSchema),
2505
3060
  z.lazy(() => Two2$inboundSchema),
2506
3061
  z.lazy(() => Three$inboundSchema),
3062
+ z.lazy(() => Four$inboundSchema),
2507
3063
  ])),
2508
3064
  ]),
2509
3065
  });
@@ -2512,7 +3068,9 @@ export const UserMessage$inboundSchema: z.ZodType<
2512
3068
  export type UserMessage$Outbound = {
2513
3069
  role: string;
2514
3070
  name?: string | undefined;
2515
- content: string | Array<One$Outbound | Two2$Outbound | Three$Outbound>;
3071
+ content:
3072
+ | string
3073
+ | Array<One$Outbound | Two2$Outbound | Three$Outbound | Four$Outbound>;
2516
3074
  };
2517
3075
 
2518
3076
  /** @internal */
@@ -2529,6 +3087,7 @@ export const UserMessage$outboundSchema: z.ZodType<
2529
3087
  z.lazy(() => One$outboundSchema),
2530
3088
  z.lazy(() => Two2$outboundSchema),
2531
3089
  z.lazy(() => Three$outboundSchema),
3090
+ z.lazy(() => Four$outboundSchema),
2532
3091
  ])),
2533
3092
  ]),
2534
3093
  });
@@ -3472,9 +4031,14 @@ export const MessagesAssistantMessage$inboundSchema: z.ZodType<
3472
4031
  name: z.string().optional(),
3473
4032
  audio: z.nullable(z.lazy(() => MessagesAudio$inboundSchema)).optional(),
3474
4033
  tool_calls: z.array(z.lazy(() => MessagesToolCalls$inboundSchema)).optional(),
4034
+ reasoning: z.string().optional(),
4035
+ reasoning_signature: z.string().optional(),
4036
+ redacted_reasoning: z.string().optional(),
3475
4037
  }).transform((v) => {
3476
4038
  return remap$(v, {
3477
4039
  "tool_calls": "toolCalls",
4040
+ "reasoning_signature": "reasoningSignature",
4041
+ "redacted_reasoning": "redactedReasoning",
3478
4042
  });
3479
4043
  });
3480
4044
 
@@ -3490,6 +4054,9 @@ export type MessagesAssistantMessage$Outbound = {
3490
4054
  name?: string | undefined;
3491
4055
  audio?: MessagesAudio$Outbound | null | undefined;
3492
4056
  tool_calls?: Array<MessagesToolCalls$Outbound> | undefined;
4057
+ reasoning?: string | undefined;
4058
+ reasoning_signature?: string | undefined;
4059
+ redacted_reasoning?: string | undefined;
3493
4060
  };
3494
4061
 
3495
4062
  /** @internal */
@@ -3514,9 +4081,14 @@ export const MessagesAssistantMessage$outboundSchema: z.ZodType<
3514
4081
  name: z.string().optional(),
3515
4082
  audio: z.nullable(z.lazy(() => MessagesAudio$outboundSchema)).optional(),
3516
4083
  toolCalls: z.array(z.lazy(() => MessagesToolCalls$outboundSchema)).optional(),
4084
+ reasoning: z.string().optional(),
4085
+ reasoningSignature: z.string().optional(),
4086
+ redactedReasoning: z.string().optional(),
3517
4087
  }).transform((v) => {
3518
4088
  return remap$(v, {
3519
4089
  toolCalls: "tool_calls",
4090
+ reasoningSignature: "reasoning_signature",
4091
+ redactedReasoning: "redacted_reasoning",
3520
4092
  });
3521
4093
  });
3522
4094
 
@@ -3575,31 +4147,166 @@ export namespace DeploymentGetConfigMessagesDeploymentsRole$ {
3575
4147
  }
3576
4148
 
3577
4149
  /** @internal */
3578
- export const DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Type$inboundSchema:
4150
+ export const DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Content4Type$inboundSchema:
3579
4151
  z.ZodNativeEnum<
3580
- typeof DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Type
4152
+ typeof DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Content4Type
3581
4153
  > = z.nativeEnum(
3582
- DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Type,
4154
+ DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Content4Type,
3583
4155
  );
3584
4156
 
3585
4157
  /** @internal */
3586
- export const DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Type$outboundSchema:
4158
+ export const DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Content4Type$outboundSchema:
3587
4159
  z.ZodNativeEnum<
3588
- typeof DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Type
4160
+ typeof DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Content4Type
3589
4161
  > =
3590
- DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Type$inboundSchema;
4162
+ DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Content4Type$inboundSchema;
3591
4163
 
3592
4164
  /**
3593
4165
  * @internal
3594
4166
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3595
4167
  */
3596
- export namespace DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Type$ {
3597
- /** @deprecated use `DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Type$inboundSchema` instead. */
4168
+ export namespace DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Content4Type$ {
4169
+ /** @deprecated use `DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Content4Type$inboundSchema` instead. */
3598
4170
  export const inboundSchema =
3599
- DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Type$inboundSchema;
3600
- /** @deprecated use `DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Type$outboundSchema` instead. */
4171
+ DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Content4Type$inboundSchema;
4172
+ /** @deprecated use `DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Content4Type$outboundSchema` instead. */
3601
4173
  export const outboundSchema =
3602
- DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Type$outboundSchema;
4174
+ DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Content4Type$outboundSchema;
4175
+ }
4176
+
4177
+ /** @internal */
4178
+ export const TwoFile$inboundSchema: z.ZodType<TwoFile, z.ZodTypeDef, unknown> =
4179
+ z.object({
4180
+ file_data: z.string(),
4181
+ filename: z.string().optional(),
4182
+ }).transform((v) => {
4183
+ return remap$(v, {
4184
+ "file_data": "fileData",
4185
+ });
4186
+ });
4187
+
4188
+ /** @internal */
4189
+ export type TwoFile$Outbound = {
4190
+ file_data: string;
4191
+ filename?: string | undefined;
4192
+ };
4193
+
4194
+ /** @internal */
4195
+ export const TwoFile$outboundSchema: z.ZodType<
4196
+ TwoFile$Outbound,
4197
+ z.ZodTypeDef,
4198
+ TwoFile
4199
+ > = z.object({
4200
+ fileData: z.string(),
4201
+ filename: z.string().optional(),
4202
+ }).transform((v) => {
4203
+ return remap$(v, {
4204
+ fileData: "file_data",
4205
+ });
4206
+ });
4207
+
4208
+ /**
4209
+ * @internal
4210
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4211
+ */
4212
+ export namespace TwoFile$ {
4213
+ /** @deprecated use `TwoFile$inboundSchema` instead. */
4214
+ export const inboundSchema = TwoFile$inboundSchema;
4215
+ /** @deprecated use `TwoFile$outboundSchema` instead. */
4216
+ export const outboundSchema = TwoFile$outboundSchema;
4217
+ /** @deprecated use `TwoFile$Outbound` instead. */
4218
+ export type Outbound = TwoFile$Outbound;
4219
+ }
4220
+
4221
+ export function twoFileToJSON(twoFile: TwoFile): string {
4222
+ return JSON.stringify(TwoFile$outboundSchema.parse(twoFile));
4223
+ }
4224
+
4225
+ export function twoFileFromJSON(
4226
+ jsonString: string,
4227
+ ): SafeParseResult<TwoFile, SDKValidationError> {
4228
+ return safeParse(
4229
+ jsonString,
4230
+ (x) => TwoFile$inboundSchema.parse(JSON.parse(x)),
4231
+ `Failed to parse 'TwoFile' from JSON`,
4232
+ );
4233
+ }
4234
+
4235
+ /** @internal */
4236
+ export const Two4$inboundSchema: z.ZodType<Two4, z.ZodTypeDef, unknown> = z
4237
+ .object({
4238
+ type:
4239
+ DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Content4Type$inboundSchema,
4240
+ file: z.lazy(() => TwoFile$inboundSchema),
4241
+ });
4242
+
4243
+ /** @internal */
4244
+ export type Two4$Outbound = {
4245
+ type: string;
4246
+ file: TwoFile$Outbound;
4247
+ };
4248
+
4249
+ /** @internal */
4250
+ export const Two4$outboundSchema: z.ZodType<Two4$Outbound, z.ZodTypeDef, Two4> =
4251
+ z.object({
4252
+ type:
4253
+ DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Content4Type$outboundSchema,
4254
+ file: z.lazy(() => TwoFile$outboundSchema),
4255
+ });
4256
+
4257
+ /**
4258
+ * @internal
4259
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4260
+ */
4261
+ export namespace Two4$ {
4262
+ /** @deprecated use `Two4$inboundSchema` instead. */
4263
+ export const inboundSchema = Two4$inboundSchema;
4264
+ /** @deprecated use `Two4$outboundSchema` instead. */
4265
+ export const outboundSchema = Two4$outboundSchema;
4266
+ /** @deprecated use `Two4$Outbound` instead. */
4267
+ export type Outbound = Two4$Outbound;
4268
+ }
4269
+
4270
+ export function two4ToJSON(two4: Two4): string {
4271
+ return JSON.stringify(Two4$outboundSchema.parse(two4));
4272
+ }
4273
+
4274
+ export function two4FromJSON(
4275
+ jsonString: string,
4276
+ ): SafeParseResult<Two4, SDKValidationError> {
4277
+ return safeParse(
4278
+ jsonString,
4279
+ (x) => Two4$inboundSchema.parse(JSON.parse(x)),
4280
+ `Failed to parse 'Two4' from JSON`,
4281
+ );
4282
+ }
4283
+
4284
+ /** @internal */
4285
+ export const DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3ContentType$inboundSchema:
4286
+ z.ZodNativeEnum<
4287
+ typeof DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3ContentType
4288
+ > = z.nativeEnum(
4289
+ DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3ContentType,
4290
+ );
4291
+
4292
+ /** @internal */
4293
+ export const DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3ContentType$outboundSchema:
4294
+ z.ZodNativeEnum<
4295
+ typeof DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3ContentType
4296
+ > =
4297
+ DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3ContentType$inboundSchema;
4298
+
4299
+ /**
4300
+ * @internal
4301
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4302
+ */
4303
+ export namespace DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3ContentType$ {
4304
+ /** @deprecated use `DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3ContentType$inboundSchema` instead. */
4305
+ export const inboundSchema =
4306
+ DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3ContentType$inboundSchema;
4307
+ /** @deprecated use `DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3ContentType$outboundSchema` instead. */
4308
+ export const outboundSchema =
4309
+ DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3ContentType$outboundSchema;
3603
4310
  }
3604
4311
 
3605
4312
  /** @internal */
@@ -3678,7 +4385,7 @@ export function twoInputAudioFromJSON(
3678
4385
  export const Two3$inboundSchema: z.ZodType<Two3, z.ZodTypeDef, unknown> = z
3679
4386
  .object({
3680
4387
  type:
3681
- DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Type$inboundSchema,
4388
+ DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3ContentType$inboundSchema,
3682
4389
  input_audio: z.lazy(() => TwoInputAudio$inboundSchema),
3683
4390
  }).transform((v) => {
3684
4391
  return remap$(v, {
@@ -3696,7 +4403,7 @@ export type Two3$Outbound = {
3696
4403
  export const Two3$outboundSchema: z.ZodType<Two3$Outbound, z.ZodTypeDef, Two3> =
3697
4404
  z.object({
3698
4405
  type:
3699
- DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Type$outboundSchema,
4406
+ DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3ContentType$outboundSchema,
3700
4407
  inputAudio: z.lazy(() => TwoInputAudio$outboundSchema),
3701
4408
  }).transform((v) => {
3702
4409
  return remap$(v, {
@@ -3732,31 +4439,31 @@ export function two3FromJSON(
3732
4439
  }
3733
4440
 
3734
4441
  /** @internal */
3735
- export const DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesType$inboundSchema:
4442
+ export const DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Type$inboundSchema:
3736
4443
  z.ZodNativeEnum<
3737
- typeof DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesType
4444
+ typeof DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Type
3738
4445
  > = z.nativeEnum(
3739
- DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesType,
4446
+ DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Type,
3740
4447
  );
3741
4448
 
3742
4449
  /** @internal */
3743
- export const DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesType$outboundSchema:
4450
+ export const DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Type$outboundSchema:
3744
4451
  z.ZodNativeEnum<
3745
- typeof DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesType
4452
+ typeof DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Type
3746
4453
  > =
3747
- DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesType$inboundSchema;
4454
+ DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Type$inboundSchema;
3748
4455
 
3749
4456
  /**
3750
4457
  * @internal
3751
4458
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3752
4459
  */
3753
- export namespace DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesType$ {
3754
- /** @deprecated use `DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesType$inboundSchema` instead. */
4460
+ export namespace DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Type$ {
4461
+ /** @deprecated use `DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Type$inboundSchema` instead. */
3755
4462
  export const inboundSchema =
3756
- DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesType$inboundSchema;
3757
- /** @deprecated use `DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesType$outboundSchema` instead. */
4463
+ DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Type$inboundSchema;
4464
+ /** @deprecated use `DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Type$outboundSchema` instead. */
3758
4465
  export const outboundSchema =
3759
- DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesType$outboundSchema;
4466
+ DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Type$outboundSchema;
3760
4467
  }
3761
4468
 
3762
4469
  /** @internal */
@@ -3838,7 +4545,7 @@ export const DeploymentGetConfig22$inboundSchema: z.ZodType<
3838
4545
  unknown
3839
4546
  > = z.object({
3840
4547
  type:
3841
- DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesType$inboundSchema,
4548
+ DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Type$inboundSchema,
3842
4549
  image_url: z.lazy(() => TwoImageUrl$inboundSchema),
3843
4550
  }).transform((v) => {
3844
4551
  return remap$(v, {
@@ -3859,7 +4566,7 @@ export const DeploymentGetConfig22$outboundSchema: z.ZodType<
3859
4566
  DeploymentGetConfig22
3860
4567
  > = z.object({
3861
4568
  type:
3862
- DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesType$outboundSchema,
4569
+ DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Type$outboundSchema,
3863
4570
  imageUrl: z.lazy(() => TwoImageUrl$outboundSchema),
3864
4571
  }).transform((v) => {
3865
4572
  return remap$(v, {
@@ -3899,34 +4606,38 @@ export function deploymentGetConfig22FromJSON(
3899
4606
  }
3900
4607
 
3901
4608
  /** @internal */
3902
- export const DeploymentGetConfig2DeploymentsRequestRequestBodyType$inboundSchema:
4609
+ export const DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesType$inboundSchema:
3903
4610
  z.ZodNativeEnum<
3904
- typeof DeploymentGetConfig2DeploymentsRequestRequestBodyType
3905
- > = z.nativeEnum(DeploymentGetConfig2DeploymentsRequestRequestBodyType);
4611
+ typeof DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesType
4612
+ > = z.nativeEnum(
4613
+ DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesType,
4614
+ );
3906
4615
 
3907
4616
  /** @internal */
3908
- export const DeploymentGetConfig2DeploymentsRequestRequestBodyType$outboundSchema:
4617
+ export const DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesType$outboundSchema:
3909
4618
  z.ZodNativeEnum<
3910
- typeof DeploymentGetConfig2DeploymentsRequestRequestBodyType
3911
- > = DeploymentGetConfig2DeploymentsRequestRequestBodyType$inboundSchema;
4619
+ typeof DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesType
4620
+ > =
4621
+ DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesType$inboundSchema;
3912
4622
 
3913
4623
  /**
3914
4624
  * @internal
3915
4625
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3916
4626
  */
3917
- export namespace DeploymentGetConfig2DeploymentsRequestRequestBodyType$ {
3918
- /** @deprecated use `DeploymentGetConfig2DeploymentsRequestRequestBodyType$inboundSchema` instead. */
4627
+ export namespace DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesType$ {
4628
+ /** @deprecated use `DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesType$inboundSchema` instead. */
3919
4629
  export const inboundSchema =
3920
- DeploymentGetConfig2DeploymentsRequestRequestBodyType$inboundSchema;
3921
- /** @deprecated use `DeploymentGetConfig2DeploymentsRequestRequestBodyType$outboundSchema` instead. */
4630
+ DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesType$inboundSchema;
4631
+ /** @deprecated use `DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesType$outboundSchema` instead. */
3922
4632
  export const outboundSchema =
3923
- DeploymentGetConfig2DeploymentsRequestRequestBodyType$outboundSchema;
4633
+ DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesType$outboundSchema;
3924
4634
  }
3925
4635
 
3926
4636
  /** @internal */
3927
4637
  export const Two1$inboundSchema: z.ZodType<Two1, z.ZodTypeDef, unknown> = z
3928
4638
  .object({
3929
- type: DeploymentGetConfig2DeploymentsRequestRequestBodyType$inboundSchema,
4639
+ type:
4640
+ DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesType$inboundSchema,
3930
4641
  text: z.string(),
3931
4642
  });
3932
4643
 
@@ -3939,7 +4650,8 @@ export type Two1$Outbound = {
3939
4650
  /** @internal */
3940
4651
  export const Two1$outboundSchema: z.ZodType<Two1$Outbound, z.ZodTypeDef, Two1> =
3941
4652
  z.object({
3942
- type: DeploymentGetConfig2DeploymentsRequestRequestBodyType$outboundSchema,
4653
+ type:
4654
+ DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesType$outboundSchema,
3943
4655
  text: z.string(),
3944
4656
  });
3945
4657
 
@@ -3979,13 +4691,15 @@ export const DeploymentGetConfigContent2$inboundSchema: z.ZodType<
3979
4691
  z.lazy(() => Two1$inboundSchema),
3980
4692
  z.lazy(() => DeploymentGetConfig22$inboundSchema),
3981
4693
  z.lazy(() => Two3$inboundSchema),
4694
+ z.lazy(() => Two4$inboundSchema),
3982
4695
  ]);
3983
4696
 
3984
4697
  /** @internal */
3985
4698
  export type DeploymentGetConfigContent2$Outbound =
3986
4699
  | Two1$Outbound
3987
4700
  | DeploymentGetConfig22$Outbound
3988
- | Two3$Outbound;
4701
+ | Two3$Outbound
4702
+ | Two4$Outbound;
3989
4703
 
3990
4704
  /** @internal */
3991
4705
  export const DeploymentGetConfigContent2$outboundSchema: z.ZodType<
@@ -3996,6 +4710,7 @@ export const DeploymentGetConfigContent2$outboundSchema: z.ZodType<
3996
4710
  z.lazy(() => Two1$outboundSchema),
3997
4711
  z.lazy(() => DeploymentGetConfig22$outboundSchema),
3998
4712
  z.lazy(() => Two3$outboundSchema),
4713
+ z.lazy(() => Two4$outboundSchema),
3999
4714
  ]);
4000
4715
 
4001
4716
  /**
@@ -4042,13 +4757,19 @@ export const MessagesContent$inboundSchema: z.ZodType<
4042
4757
  z.lazy(() => Two1$inboundSchema),
4043
4758
  z.lazy(() => DeploymentGetConfig22$inboundSchema),
4044
4759
  z.lazy(() => Two3$inboundSchema),
4760
+ z.lazy(() => Two4$inboundSchema),
4045
4761
  ])),
4046
4762
  ]);
4047
4763
 
4048
4764
  /** @internal */
4049
4765
  export type MessagesContent$Outbound =
4050
4766
  | string
4051
- | Array<Two1$Outbound | DeploymentGetConfig22$Outbound | Two3$Outbound>;
4767
+ | Array<
4768
+ | Two1$Outbound
4769
+ | DeploymentGetConfig22$Outbound
4770
+ | Two3$Outbound
4771
+ | Two4$Outbound
4772
+ >;
4052
4773
 
4053
4774
  /** @internal */
4054
4775
  export const MessagesContent$outboundSchema: z.ZodType<
@@ -4061,6 +4782,7 @@ export const MessagesContent$outboundSchema: z.ZodType<
4061
4782
  z.lazy(() => Two1$outboundSchema),
4062
4783
  z.lazy(() => DeploymentGetConfig22$outboundSchema),
4063
4784
  z.lazy(() => Two3$outboundSchema),
4785
+ z.lazy(() => Two4$outboundSchema),
4064
4786
  ])),
4065
4787
  ]);
4066
4788
 
@@ -4107,6 +4829,7 @@ export const MessagesUserMessage$inboundSchema: z.ZodType<
4107
4829
  z.lazy(() => Two1$inboundSchema),
4108
4830
  z.lazy(() => DeploymentGetConfig22$inboundSchema),
4109
4831
  z.lazy(() => Two3$inboundSchema),
4832
+ z.lazy(() => Two4$inboundSchema),
4110
4833
  ])),
4111
4834
  ]),
4112
4835
  });
@@ -4117,7 +4840,12 @@ export type MessagesUserMessage$Outbound = {
4117
4840
  name?: string | undefined;
4118
4841
  content:
4119
4842
  | string
4120
- | Array<Two1$Outbound | DeploymentGetConfig22$Outbound | Two3$Outbound>;
4843
+ | Array<
4844
+ | Two1$Outbound
4845
+ | DeploymentGetConfig22$Outbound
4846
+ | Two3$Outbound
4847
+ | Two4$Outbound
4848
+ >;
4121
4849
  };
4122
4850
 
4123
4851
  /** @internal */
@@ -4134,6 +4862,7 @@ export const MessagesUserMessage$outboundSchema: z.ZodType<
4134
4862
  z.lazy(() => Two1$outboundSchema),
4135
4863
  z.lazy(() => DeploymentGetConfig22$outboundSchema),
4136
4864
  z.lazy(() => Two3$outboundSchema),
4865
+ z.lazy(() => Two4$outboundSchema),
4137
4866
  ])),
4138
4867
  ]),
4139
4868
  });
@@ -4625,24 +5354,2789 @@ export function threadFromJSON(
4625
5354
  }
4626
5355
 
4627
5356
  /** @internal */
4628
- export const DeploymentGetConfigRequestBody$inboundSchema: z.ZodType<
4629
- DeploymentGetConfigRequestBody,
5357
+ export const DollarOrDollarExists$inboundSchema: z.ZodType<
5358
+ DollarOrDollarExists,
4630
5359
  z.ZodTypeDef,
4631
5360
  unknown
4632
5361
  > = z.object({
4633
- key: z.string(),
4634
- inputs: z.record(z.union([z.string(), z.number(), z.boolean()])).optional(),
4635
- context: z.record(z.any()).optional(),
4636
- prefix_messages: z.array(
4637
- z.union([
4638
- z.lazy(() => DeveloperMessage$inboundSchema),
4639
- z.lazy(() => SystemMessage$inboundSchema),
4640
- z.lazy(() => UserMessage$inboundSchema),
4641
- z.lazy(() => ToolMessage$inboundSchema),
4642
- z.lazy(() => AssistantMessage$inboundSchema),
4643
- ]),
4644
- ).optional(),
4645
- messages: z.array(
5362
+ $exists: z.boolean(),
5363
+ }).transform((v) => {
5364
+ return remap$(v, {
5365
+ "$exists": "dollarExists",
5366
+ });
5367
+ });
5368
+
5369
+ /** @internal */
5370
+ export type DollarOrDollarExists$Outbound = {
5371
+ $exists: boolean;
5372
+ };
5373
+
5374
+ /** @internal */
5375
+ export const DollarOrDollarExists$outboundSchema: z.ZodType<
5376
+ DollarOrDollarExists$Outbound,
5377
+ z.ZodTypeDef,
5378
+ DollarOrDollarExists
5379
+ > = z.object({
5380
+ dollarExists: z.boolean(),
5381
+ }).transform((v) => {
5382
+ return remap$(v, {
5383
+ dollarExists: "$exists",
5384
+ });
5385
+ });
5386
+
5387
+ /**
5388
+ * @internal
5389
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
5390
+ */
5391
+ export namespace DollarOrDollarExists$ {
5392
+ /** @deprecated use `DollarOrDollarExists$inboundSchema` instead. */
5393
+ export const inboundSchema = DollarOrDollarExists$inboundSchema;
5394
+ /** @deprecated use `DollarOrDollarExists$outboundSchema` instead. */
5395
+ export const outboundSchema = DollarOrDollarExists$outboundSchema;
5396
+ /** @deprecated use `DollarOrDollarExists$Outbound` instead. */
5397
+ export type Outbound = DollarOrDollarExists$Outbound;
5398
+ }
5399
+
5400
+ export function dollarOrDollarExistsToJSON(
5401
+ dollarOrDollarExists: DollarOrDollarExists,
5402
+ ): string {
5403
+ return JSON.stringify(
5404
+ DollarOrDollarExists$outboundSchema.parse(dollarOrDollarExists),
5405
+ );
5406
+ }
5407
+
5408
+ export function dollarOrDollarExistsFromJSON(
5409
+ jsonString: string,
5410
+ ): SafeParseResult<DollarOrDollarExists, SDKValidationError> {
5411
+ return safeParse(
5412
+ jsonString,
5413
+ (x) => DollarOrDollarExists$inboundSchema.parse(JSON.parse(x)),
5414
+ `Failed to parse 'DollarOrDollarExists' from JSON`,
5415
+ );
5416
+ }
5417
+
5418
+ /** @internal */
5419
+ export const DeploymentGetConfigDollarOrDollarNin$inboundSchema: z.ZodType<
5420
+ DeploymentGetConfigDollarOrDollarNin,
5421
+ z.ZodTypeDef,
5422
+ unknown
5423
+ > = z.union([z.string(), z.number(), z.boolean()]);
5424
+
5425
+ /** @internal */
5426
+ export type DeploymentGetConfigDollarOrDollarNin$Outbound =
5427
+ | string
5428
+ | number
5429
+ | boolean;
5430
+
5431
+ /** @internal */
5432
+ export const DeploymentGetConfigDollarOrDollarNin$outboundSchema: z.ZodType<
5433
+ DeploymentGetConfigDollarOrDollarNin$Outbound,
5434
+ z.ZodTypeDef,
5435
+ DeploymentGetConfigDollarOrDollarNin
5436
+ > = z.union([z.string(), z.number(), z.boolean()]);
5437
+
5438
+ /**
5439
+ * @internal
5440
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
5441
+ */
5442
+ export namespace DeploymentGetConfigDollarOrDollarNin$ {
5443
+ /** @deprecated use `DeploymentGetConfigDollarOrDollarNin$inboundSchema` instead. */
5444
+ export const inboundSchema =
5445
+ DeploymentGetConfigDollarOrDollarNin$inboundSchema;
5446
+ /** @deprecated use `DeploymentGetConfigDollarOrDollarNin$outboundSchema` instead. */
5447
+ export const outboundSchema =
5448
+ DeploymentGetConfigDollarOrDollarNin$outboundSchema;
5449
+ /** @deprecated use `DeploymentGetConfigDollarOrDollarNin$Outbound` instead. */
5450
+ export type Outbound = DeploymentGetConfigDollarOrDollarNin$Outbound;
5451
+ }
5452
+
5453
+ export function deploymentGetConfigDollarOrDollarNinToJSON(
5454
+ deploymentGetConfigDollarOrDollarNin: DeploymentGetConfigDollarOrDollarNin,
5455
+ ): string {
5456
+ return JSON.stringify(
5457
+ DeploymentGetConfigDollarOrDollarNin$outboundSchema.parse(
5458
+ deploymentGetConfigDollarOrDollarNin,
5459
+ ),
5460
+ );
5461
+ }
5462
+
5463
+ export function deploymentGetConfigDollarOrDollarNinFromJSON(
5464
+ jsonString: string,
5465
+ ): SafeParseResult<DeploymentGetConfigDollarOrDollarNin, SDKValidationError> {
5466
+ return safeParse(
5467
+ jsonString,
5468
+ (x) =>
5469
+ DeploymentGetConfigDollarOrDollarNin$inboundSchema.parse(JSON.parse(x)),
5470
+ `Failed to parse 'DeploymentGetConfigDollarOrDollarNin' from JSON`,
5471
+ );
5472
+ }
5473
+
5474
+ /** @internal */
5475
+ export const DollarOrDollarNin$inboundSchema: z.ZodType<
5476
+ DollarOrDollarNin,
5477
+ z.ZodTypeDef,
5478
+ unknown
5479
+ > = z.object({
5480
+ $nin: z.array(z.union([z.string(), z.number(), z.boolean()])),
5481
+ }).transform((v) => {
5482
+ return remap$(v, {
5483
+ "$nin": "dollarNin",
5484
+ });
5485
+ });
5486
+
5487
+ /** @internal */
5488
+ export type DollarOrDollarNin$Outbound = {
5489
+ $nin: Array<string | number | boolean>;
5490
+ };
5491
+
5492
+ /** @internal */
5493
+ export const DollarOrDollarNin$outboundSchema: z.ZodType<
5494
+ DollarOrDollarNin$Outbound,
5495
+ z.ZodTypeDef,
5496
+ DollarOrDollarNin
5497
+ > = z.object({
5498
+ dollarNin: z.array(z.union([z.string(), z.number(), z.boolean()])),
5499
+ }).transform((v) => {
5500
+ return remap$(v, {
5501
+ dollarNin: "$nin",
5502
+ });
5503
+ });
5504
+
5505
+ /**
5506
+ * @internal
5507
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
5508
+ */
5509
+ export namespace DollarOrDollarNin$ {
5510
+ /** @deprecated use `DollarOrDollarNin$inboundSchema` instead. */
5511
+ export const inboundSchema = DollarOrDollarNin$inboundSchema;
5512
+ /** @deprecated use `DollarOrDollarNin$outboundSchema` instead. */
5513
+ export const outboundSchema = DollarOrDollarNin$outboundSchema;
5514
+ /** @deprecated use `DollarOrDollarNin$Outbound` instead. */
5515
+ export type Outbound = DollarOrDollarNin$Outbound;
5516
+ }
5517
+
5518
+ export function dollarOrDollarNinToJSON(
5519
+ dollarOrDollarNin: DollarOrDollarNin,
5520
+ ): string {
5521
+ return JSON.stringify(
5522
+ DollarOrDollarNin$outboundSchema.parse(dollarOrDollarNin),
5523
+ );
5524
+ }
5525
+
5526
+ export function dollarOrDollarNinFromJSON(
5527
+ jsonString: string,
5528
+ ): SafeParseResult<DollarOrDollarNin, SDKValidationError> {
5529
+ return safeParse(
5530
+ jsonString,
5531
+ (x) => DollarOrDollarNin$inboundSchema.parse(JSON.parse(x)),
5532
+ `Failed to parse 'DollarOrDollarNin' from JSON`,
5533
+ );
5534
+ }
5535
+
5536
+ /** @internal */
5537
+ export const DeploymentGetConfigDollarOrDollarIn$inboundSchema: z.ZodType<
5538
+ DeploymentGetConfigDollarOrDollarIn,
5539
+ z.ZodTypeDef,
5540
+ unknown
5541
+ > = z.union([z.string(), z.number(), z.boolean()]);
5542
+
5543
+ /** @internal */
5544
+ export type DeploymentGetConfigDollarOrDollarIn$Outbound =
5545
+ | string
5546
+ | number
5547
+ | boolean;
5548
+
5549
+ /** @internal */
5550
+ export const DeploymentGetConfigDollarOrDollarIn$outboundSchema: z.ZodType<
5551
+ DeploymentGetConfigDollarOrDollarIn$Outbound,
5552
+ z.ZodTypeDef,
5553
+ DeploymentGetConfigDollarOrDollarIn
5554
+ > = z.union([z.string(), z.number(), z.boolean()]);
5555
+
5556
+ /**
5557
+ * @internal
5558
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
5559
+ */
5560
+ export namespace DeploymentGetConfigDollarOrDollarIn$ {
5561
+ /** @deprecated use `DeploymentGetConfigDollarOrDollarIn$inboundSchema` instead. */
5562
+ export const inboundSchema =
5563
+ DeploymentGetConfigDollarOrDollarIn$inboundSchema;
5564
+ /** @deprecated use `DeploymentGetConfigDollarOrDollarIn$outboundSchema` instead. */
5565
+ export const outboundSchema =
5566
+ DeploymentGetConfigDollarOrDollarIn$outboundSchema;
5567
+ /** @deprecated use `DeploymentGetConfigDollarOrDollarIn$Outbound` instead. */
5568
+ export type Outbound = DeploymentGetConfigDollarOrDollarIn$Outbound;
5569
+ }
5570
+
5571
+ export function deploymentGetConfigDollarOrDollarInToJSON(
5572
+ deploymentGetConfigDollarOrDollarIn: DeploymentGetConfigDollarOrDollarIn,
5573
+ ): string {
5574
+ return JSON.stringify(
5575
+ DeploymentGetConfigDollarOrDollarIn$outboundSchema.parse(
5576
+ deploymentGetConfigDollarOrDollarIn,
5577
+ ),
5578
+ );
5579
+ }
5580
+
5581
+ export function deploymentGetConfigDollarOrDollarInFromJSON(
5582
+ jsonString: string,
5583
+ ): SafeParseResult<DeploymentGetConfigDollarOrDollarIn, SDKValidationError> {
5584
+ return safeParse(
5585
+ jsonString,
5586
+ (x) =>
5587
+ DeploymentGetConfigDollarOrDollarIn$inboundSchema.parse(JSON.parse(x)),
5588
+ `Failed to parse 'DeploymentGetConfigDollarOrDollarIn' from JSON`,
5589
+ );
5590
+ }
5591
+
5592
+ /** @internal */
5593
+ export const DollarOrDollarIn$inboundSchema: z.ZodType<
5594
+ DollarOrDollarIn,
5595
+ z.ZodTypeDef,
5596
+ unknown
5597
+ > = z.object({
5598
+ $in: z.array(z.union([z.string(), z.number(), z.boolean()])),
5599
+ }).transform((v) => {
5600
+ return remap$(v, {
5601
+ "$in": "dollarIn",
5602
+ });
5603
+ });
5604
+
5605
+ /** @internal */
5606
+ export type DollarOrDollarIn$Outbound = {
5607
+ $in: Array<string | number | boolean>;
5608
+ };
5609
+
5610
+ /** @internal */
5611
+ export const DollarOrDollarIn$outboundSchema: z.ZodType<
5612
+ DollarOrDollarIn$Outbound,
5613
+ z.ZodTypeDef,
5614
+ DollarOrDollarIn
5615
+ > = z.object({
5616
+ dollarIn: z.array(z.union([z.string(), z.number(), z.boolean()])),
5617
+ }).transform((v) => {
5618
+ return remap$(v, {
5619
+ dollarIn: "$in",
5620
+ });
5621
+ });
5622
+
5623
+ /**
5624
+ * @internal
5625
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
5626
+ */
5627
+ export namespace DollarOrDollarIn$ {
5628
+ /** @deprecated use `DollarOrDollarIn$inboundSchema` instead. */
5629
+ export const inboundSchema = DollarOrDollarIn$inboundSchema;
5630
+ /** @deprecated use `DollarOrDollarIn$outboundSchema` instead. */
5631
+ export const outboundSchema = DollarOrDollarIn$outboundSchema;
5632
+ /** @deprecated use `DollarOrDollarIn$Outbound` instead. */
5633
+ export type Outbound = DollarOrDollarIn$Outbound;
5634
+ }
5635
+
5636
+ export function dollarOrDollarInToJSON(
5637
+ dollarOrDollarIn: DollarOrDollarIn,
5638
+ ): string {
5639
+ return JSON.stringify(
5640
+ DollarOrDollarIn$outboundSchema.parse(dollarOrDollarIn),
5641
+ );
5642
+ }
5643
+
5644
+ export function dollarOrDollarInFromJSON(
5645
+ jsonString: string,
5646
+ ): SafeParseResult<DollarOrDollarIn, SDKValidationError> {
5647
+ return safeParse(
5648
+ jsonString,
5649
+ (x) => DollarOrDollarIn$inboundSchema.parse(JSON.parse(x)),
5650
+ `Failed to parse 'DollarOrDollarIn' from JSON`,
5651
+ );
5652
+ }
5653
+
5654
+ /** @internal */
5655
+ export const DollarOrDollarLte$inboundSchema: z.ZodType<
5656
+ DollarOrDollarLte,
5657
+ z.ZodTypeDef,
5658
+ unknown
5659
+ > = z.object({
5660
+ $lte: z.number(),
5661
+ }).transform((v) => {
5662
+ return remap$(v, {
5663
+ "$lte": "dollarLte",
5664
+ });
5665
+ });
5666
+
5667
+ /** @internal */
5668
+ export type DollarOrDollarLte$Outbound = {
5669
+ $lte: number;
5670
+ };
5671
+
5672
+ /** @internal */
5673
+ export const DollarOrDollarLte$outboundSchema: z.ZodType<
5674
+ DollarOrDollarLte$Outbound,
5675
+ z.ZodTypeDef,
5676
+ DollarOrDollarLte
5677
+ > = z.object({
5678
+ dollarLte: z.number(),
5679
+ }).transform((v) => {
5680
+ return remap$(v, {
5681
+ dollarLte: "$lte",
5682
+ });
5683
+ });
5684
+
5685
+ /**
5686
+ * @internal
5687
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
5688
+ */
5689
+ export namespace DollarOrDollarLte$ {
5690
+ /** @deprecated use `DollarOrDollarLte$inboundSchema` instead. */
5691
+ export const inboundSchema = DollarOrDollarLte$inboundSchema;
5692
+ /** @deprecated use `DollarOrDollarLte$outboundSchema` instead. */
5693
+ export const outboundSchema = DollarOrDollarLte$outboundSchema;
5694
+ /** @deprecated use `DollarOrDollarLte$Outbound` instead. */
5695
+ export type Outbound = DollarOrDollarLte$Outbound;
5696
+ }
5697
+
5698
+ export function dollarOrDollarLteToJSON(
5699
+ dollarOrDollarLte: DollarOrDollarLte,
5700
+ ): string {
5701
+ return JSON.stringify(
5702
+ DollarOrDollarLte$outboundSchema.parse(dollarOrDollarLte),
5703
+ );
5704
+ }
5705
+
5706
+ export function dollarOrDollarLteFromJSON(
5707
+ jsonString: string,
5708
+ ): SafeParseResult<DollarOrDollarLte, SDKValidationError> {
5709
+ return safeParse(
5710
+ jsonString,
5711
+ (x) => DollarOrDollarLte$inboundSchema.parse(JSON.parse(x)),
5712
+ `Failed to parse 'DollarOrDollarLte' from JSON`,
5713
+ );
5714
+ }
5715
+
5716
+ /** @internal */
5717
+ export const DollarOrDollarLt$inboundSchema: z.ZodType<
5718
+ DollarOrDollarLt,
5719
+ z.ZodTypeDef,
5720
+ unknown
5721
+ > = z.object({
5722
+ $lt: z.number(),
5723
+ }).transform((v) => {
5724
+ return remap$(v, {
5725
+ "$lt": "dollarLt",
5726
+ });
5727
+ });
5728
+
5729
+ /** @internal */
5730
+ export type DollarOrDollarLt$Outbound = {
5731
+ $lt: number;
5732
+ };
5733
+
5734
+ /** @internal */
5735
+ export const DollarOrDollarLt$outboundSchema: z.ZodType<
5736
+ DollarOrDollarLt$Outbound,
5737
+ z.ZodTypeDef,
5738
+ DollarOrDollarLt
5739
+ > = z.object({
5740
+ dollarLt: z.number(),
5741
+ }).transform((v) => {
5742
+ return remap$(v, {
5743
+ dollarLt: "$lt",
5744
+ });
5745
+ });
5746
+
5747
+ /**
5748
+ * @internal
5749
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
5750
+ */
5751
+ export namespace DollarOrDollarLt$ {
5752
+ /** @deprecated use `DollarOrDollarLt$inboundSchema` instead. */
5753
+ export const inboundSchema = DollarOrDollarLt$inboundSchema;
5754
+ /** @deprecated use `DollarOrDollarLt$outboundSchema` instead. */
5755
+ export const outboundSchema = DollarOrDollarLt$outboundSchema;
5756
+ /** @deprecated use `DollarOrDollarLt$Outbound` instead. */
5757
+ export type Outbound = DollarOrDollarLt$Outbound;
5758
+ }
5759
+
5760
+ export function dollarOrDollarLtToJSON(
5761
+ dollarOrDollarLt: DollarOrDollarLt,
5762
+ ): string {
5763
+ return JSON.stringify(
5764
+ DollarOrDollarLt$outboundSchema.parse(dollarOrDollarLt),
5765
+ );
5766
+ }
5767
+
5768
+ export function dollarOrDollarLtFromJSON(
5769
+ jsonString: string,
5770
+ ): SafeParseResult<DollarOrDollarLt, SDKValidationError> {
5771
+ return safeParse(
5772
+ jsonString,
5773
+ (x) => DollarOrDollarLt$inboundSchema.parse(JSON.parse(x)),
5774
+ `Failed to parse 'DollarOrDollarLt' from JSON`,
5775
+ );
5776
+ }
5777
+
5778
+ /** @internal */
5779
+ export const DollarOrDollarGte$inboundSchema: z.ZodType<
5780
+ DollarOrDollarGte,
5781
+ z.ZodTypeDef,
5782
+ unknown
5783
+ > = z.object({
5784
+ $gte: z.number(),
5785
+ }).transform((v) => {
5786
+ return remap$(v, {
5787
+ "$gte": "dollarGte",
5788
+ });
5789
+ });
5790
+
5791
+ /** @internal */
5792
+ export type DollarOrDollarGte$Outbound = {
5793
+ $gte: number;
5794
+ };
5795
+
5796
+ /** @internal */
5797
+ export const DollarOrDollarGte$outboundSchema: z.ZodType<
5798
+ DollarOrDollarGte$Outbound,
5799
+ z.ZodTypeDef,
5800
+ DollarOrDollarGte
5801
+ > = z.object({
5802
+ dollarGte: z.number(),
5803
+ }).transform((v) => {
5804
+ return remap$(v, {
5805
+ dollarGte: "$gte",
5806
+ });
5807
+ });
5808
+
5809
+ /**
5810
+ * @internal
5811
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
5812
+ */
5813
+ export namespace DollarOrDollarGte$ {
5814
+ /** @deprecated use `DollarOrDollarGte$inboundSchema` instead. */
5815
+ export const inboundSchema = DollarOrDollarGte$inboundSchema;
5816
+ /** @deprecated use `DollarOrDollarGte$outboundSchema` instead. */
5817
+ export const outboundSchema = DollarOrDollarGte$outboundSchema;
5818
+ /** @deprecated use `DollarOrDollarGte$Outbound` instead. */
5819
+ export type Outbound = DollarOrDollarGte$Outbound;
5820
+ }
5821
+
5822
+ export function dollarOrDollarGteToJSON(
5823
+ dollarOrDollarGte: DollarOrDollarGte,
5824
+ ): string {
5825
+ return JSON.stringify(
5826
+ DollarOrDollarGte$outboundSchema.parse(dollarOrDollarGte),
5827
+ );
5828
+ }
5829
+
5830
+ export function dollarOrDollarGteFromJSON(
5831
+ jsonString: string,
5832
+ ): SafeParseResult<DollarOrDollarGte, SDKValidationError> {
5833
+ return safeParse(
5834
+ jsonString,
5835
+ (x) => DollarOrDollarGte$inboundSchema.parse(JSON.parse(x)),
5836
+ `Failed to parse 'DollarOrDollarGte' from JSON`,
5837
+ );
5838
+ }
5839
+
5840
+ /** @internal */
5841
+ export const DollarOr3$inboundSchema: z.ZodType<
5842
+ DollarOr3,
5843
+ z.ZodTypeDef,
5844
+ unknown
5845
+ > = z.object({
5846
+ $gt: z.number(),
5847
+ }).transform((v) => {
5848
+ return remap$(v, {
5849
+ "$gt": "dollarGt",
5850
+ });
5851
+ });
5852
+
5853
+ /** @internal */
5854
+ export type DollarOr3$Outbound = {
5855
+ $gt: number;
5856
+ };
5857
+
5858
+ /** @internal */
5859
+ export const DollarOr3$outboundSchema: z.ZodType<
5860
+ DollarOr3$Outbound,
5861
+ z.ZodTypeDef,
5862
+ DollarOr3
5863
+ > = z.object({
5864
+ dollarGt: z.number(),
5865
+ }).transform((v) => {
5866
+ return remap$(v, {
5867
+ dollarGt: "$gt",
5868
+ });
5869
+ });
5870
+
5871
+ /**
5872
+ * @internal
5873
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
5874
+ */
5875
+ export namespace DollarOr3$ {
5876
+ /** @deprecated use `DollarOr3$inboundSchema` instead. */
5877
+ export const inboundSchema = DollarOr3$inboundSchema;
5878
+ /** @deprecated use `DollarOr3$outboundSchema` instead. */
5879
+ export const outboundSchema = DollarOr3$outboundSchema;
5880
+ /** @deprecated use `DollarOr3$Outbound` instead. */
5881
+ export type Outbound = DollarOr3$Outbound;
5882
+ }
5883
+
5884
+ export function dollarOr3ToJSON(dollarOr3: DollarOr3): string {
5885
+ return JSON.stringify(DollarOr3$outboundSchema.parse(dollarOr3));
5886
+ }
5887
+
5888
+ export function dollarOr3FromJSON(
5889
+ jsonString: string,
5890
+ ): SafeParseResult<DollarOr3, SDKValidationError> {
5891
+ return safeParse(
5892
+ jsonString,
5893
+ (x) => DollarOr3$inboundSchema.parse(JSON.parse(x)),
5894
+ `Failed to parse 'DollarOr3' from JSON`,
5895
+ );
5896
+ }
5897
+
5898
+ /** @internal */
5899
+ export const DeploymentGetConfigDollarOrDollarNe$inboundSchema: z.ZodType<
5900
+ DeploymentGetConfigDollarOrDollarNe,
5901
+ z.ZodTypeDef,
5902
+ unknown
5903
+ > = z.union([z.string(), z.number(), z.boolean()]);
5904
+
5905
+ /** @internal */
5906
+ export type DeploymentGetConfigDollarOrDollarNe$Outbound =
5907
+ | string
5908
+ | number
5909
+ | boolean;
5910
+
5911
+ /** @internal */
5912
+ export const DeploymentGetConfigDollarOrDollarNe$outboundSchema: z.ZodType<
5913
+ DeploymentGetConfigDollarOrDollarNe$Outbound,
5914
+ z.ZodTypeDef,
5915
+ DeploymentGetConfigDollarOrDollarNe
5916
+ > = z.union([z.string(), z.number(), z.boolean()]);
5917
+
5918
+ /**
5919
+ * @internal
5920
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
5921
+ */
5922
+ export namespace DeploymentGetConfigDollarOrDollarNe$ {
5923
+ /** @deprecated use `DeploymentGetConfigDollarOrDollarNe$inboundSchema` instead. */
5924
+ export const inboundSchema =
5925
+ DeploymentGetConfigDollarOrDollarNe$inboundSchema;
5926
+ /** @deprecated use `DeploymentGetConfigDollarOrDollarNe$outboundSchema` instead. */
5927
+ export const outboundSchema =
5928
+ DeploymentGetConfigDollarOrDollarNe$outboundSchema;
5929
+ /** @deprecated use `DeploymentGetConfigDollarOrDollarNe$Outbound` instead. */
5930
+ export type Outbound = DeploymentGetConfigDollarOrDollarNe$Outbound;
5931
+ }
5932
+
5933
+ export function deploymentGetConfigDollarOrDollarNeToJSON(
5934
+ deploymentGetConfigDollarOrDollarNe: DeploymentGetConfigDollarOrDollarNe,
5935
+ ): string {
5936
+ return JSON.stringify(
5937
+ DeploymentGetConfigDollarOrDollarNe$outboundSchema.parse(
5938
+ deploymentGetConfigDollarOrDollarNe,
5939
+ ),
5940
+ );
5941
+ }
5942
+
5943
+ export function deploymentGetConfigDollarOrDollarNeFromJSON(
5944
+ jsonString: string,
5945
+ ): SafeParseResult<DeploymentGetConfigDollarOrDollarNe, SDKValidationError> {
5946
+ return safeParse(
5947
+ jsonString,
5948
+ (x) =>
5949
+ DeploymentGetConfigDollarOrDollarNe$inboundSchema.parse(JSON.parse(x)),
5950
+ `Failed to parse 'DeploymentGetConfigDollarOrDollarNe' from JSON`,
5951
+ );
5952
+ }
5953
+
5954
+ /** @internal */
5955
+ export const DollarOrDollarNe$inboundSchema: z.ZodType<
5956
+ DollarOrDollarNe,
5957
+ z.ZodTypeDef,
5958
+ unknown
5959
+ > = z.object({
5960
+ $ne: z.union([z.string(), z.number(), z.boolean()]),
5961
+ }).transform((v) => {
5962
+ return remap$(v, {
5963
+ "$ne": "dollarNe",
5964
+ });
5965
+ });
5966
+
5967
+ /** @internal */
5968
+ export type DollarOrDollarNe$Outbound = {
5969
+ $ne: string | number | boolean;
5970
+ };
5971
+
5972
+ /** @internal */
5973
+ export const DollarOrDollarNe$outboundSchema: z.ZodType<
5974
+ DollarOrDollarNe$Outbound,
5975
+ z.ZodTypeDef,
5976
+ DollarOrDollarNe
5977
+ > = z.object({
5978
+ dollarNe: z.union([z.string(), z.number(), z.boolean()]),
5979
+ }).transform((v) => {
5980
+ return remap$(v, {
5981
+ dollarNe: "$ne",
5982
+ });
5983
+ });
5984
+
5985
+ /**
5986
+ * @internal
5987
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
5988
+ */
5989
+ export namespace DollarOrDollarNe$ {
5990
+ /** @deprecated use `DollarOrDollarNe$inboundSchema` instead. */
5991
+ export const inboundSchema = DollarOrDollarNe$inboundSchema;
5992
+ /** @deprecated use `DollarOrDollarNe$outboundSchema` instead. */
5993
+ export const outboundSchema = DollarOrDollarNe$outboundSchema;
5994
+ /** @deprecated use `DollarOrDollarNe$Outbound` instead. */
5995
+ export type Outbound = DollarOrDollarNe$Outbound;
5996
+ }
5997
+
5998
+ export function dollarOrDollarNeToJSON(
5999
+ dollarOrDollarNe: DollarOrDollarNe,
6000
+ ): string {
6001
+ return JSON.stringify(
6002
+ DollarOrDollarNe$outboundSchema.parse(dollarOrDollarNe),
6003
+ );
6004
+ }
6005
+
6006
+ export function dollarOrDollarNeFromJSON(
6007
+ jsonString: string,
6008
+ ): SafeParseResult<DollarOrDollarNe, SDKValidationError> {
6009
+ return safeParse(
6010
+ jsonString,
6011
+ (x) => DollarOrDollarNe$inboundSchema.parse(JSON.parse(x)),
6012
+ `Failed to parse 'DollarOrDollarNe' from JSON`,
6013
+ );
6014
+ }
6015
+
6016
+ /** @internal */
6017
+ export const DeploymentGetConfigDollarOrDollarEq$inboundSchema: z.ZodType<
6018
+ DeploymentGetConfigDollarOrDollarEq,
6019
+ z.ZodTypeDef,
6020
+ unknown
6021
+ > = z.union([z.string(), z.number(), z.boolean()]);
6022
+
6023
+ /** @internal */
6024
+ export type DeploymentGetConfigDollarOrDollarEq$Outbound =
6025
+ | string
6026
+ | number
6027
+ | boolean;
6028
+
6029
+ /** @internal */
6030
+ export const DeploymentGetConfigDollarOrDollarEq$outboundSchema: z.ZodType<
6031
+ DeploymentGetConfigDollarOrDollarEq$Outbound,
6032
+ z.ZodTypeDef,
6033
+ DeploymentGetConfigDollarOrDollarEq
6034
+ > = z.union([z.string(), z.number(), z.boolean()]);
6035
+
6036
+ /**
6037
+ * @internal
6038
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6039
+ */
6040
+ export namespace DeploymentGetConfigDollarOrDollarEq$ {
6041
+ /** @deprecated use `DeploymentGetConfigDollarOrDollarEq$inboundSchema` instead. */
6042
+ export const inboundSchema =
6043
+ DeploymentGetConfigDollarOrDollarEq$inboundSchema;
6044
+ /** @deprecated use `DeploymentGetConfigDollarOrDollarEq$outboundSchema` instead. */
6045
+ export const outboundSchema =
6046
+ DeploymentGetConfigDollarOrDollarEq$outboundSchema;
6047
+ /** @deprecated use `DeploymentGetConfigDollarOrDollarEq$Outbound` instead. */
6048
+ export type Outbound = DeploymentGetConfigDollarOrDollarEq$Outbound;
6049
+ }
6050
+
6051
+ export function deploymentGetConfigDollarOrDollarEqToJSON(
6052
+ deploymentGetConfigDollarOrDollarEq: DeploymentGetConfigDollarOrDollarEq,
6053
+ ): string {
6054
+ return JSON.stringify(
6055
+ DeploymentGetConfigDollarOrDollarEq$outboundSchema.parse(
6056
+ deploymentGetConfigDollarOrDollarEq,
6057
+ ),
6058
+ );
6059
+ }
6060
+
6061
+ export function deploymentGetConfigDollarOrDollarEqFromJSON(
6062
+ jsonString: string,
6063
+ ): SafeParseResult<DeploymentGetConfigDollarOrDollarEq, SDKValidationError> {
6064
+ return safeParse(
6065
+ jsonString,
6066
+ (x) =>
6067
+ DeploymentGetConfigDollarOrDollarEq$inboundSchema.parse(JSON.parse(x)),
6068
+ `Failed to parse 'DeploymentGetConfigDollarOrDollarEq' from JSON`,
6069
+ );
6070
+ }
6071
+
6072
+ /** @internal */
6073
+ export const DollarOrDollarEq$inboundSchema: z.ZodType<
6074
+ DollarOrDollarEq,
6075
+ z.ZodTypeDef,
6076
+ unknown
6077
+ > = z.object({
6078
+ $eq: z.union([z.string(), z.number(), z.boolean()]),
6079
+ }).transform((v) => {
6080
+ return remap$(v, {
6081
+ "$eq": "dollarEq",
6082
+ });
6083
+ });
6084
+
6085
+ /** @internal */
6086
+ export type DollarOrDollarEq$Outbound = {
6087
+ $eq: string | number | boolean;
6088
+ };
6089
+
6090
+ /** @internal */
6091
+ export const DollarOrDollarEq$outboundSchema: z.ZodType<
6092
+ DollarOrDollarEq$Outbound,
6093
+ z.ZodTypeDef,
6094
+ DollarOrDollarEq
6095
+ > = z.object({
6096
+ dollarEq: z.union([z.string(), z.number(), z.boolean()]),
6097
+ }).transform((v) => {
6098
+ return remap$(v, {
6099
+ dollarEq: "$eq",
6100
+ });
6101
+ });
6102
+
6103
+ /**
6104
+ * @internal
6105
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6106
+ */
6107
+ export namespace DollarOrDollarEq$ {
6108
+ /** @deprecated use `DollarOrDollarEq$inboundSchema` instead. */
6109
+ export const inboundSchema = DollarOrDollarEq$inboundSchema;
6110
+ /** @deprecated use `DollarOrDollarEq$outboundSchema` instead. */
6111
+ export const outboundSchema = DollarOrDollarEq$outboundSchema;
6112
+ /** @deprecated use `DollarOrDollarEq$Outbound` instead. */
6113
+ export type Outbound = DollarOrDollarEq$Outbound;
6114
+ }
6115
+
6116
+ export function dollarOrDollarEqToJSON(
6117
+ dollarOrDollarEq: DollarOrDollarEq,
6118
+ ): string {
6119
+ return JSON.stringify(
6120
+ DollarOrDollarEq$outboundSchema.parse(dollarOrDollarEq),
6121
+ );
6122
+ }
6123
+
6124
+ export function dollarOrDollarEqFromJSON(
6125
+ jsonString: string,
6126
+ ): SafeParseResult<DollarOrDollarEq, SDKValidationError> {
6127
+ return safeParse(
6128
+ jsonString,
6129
+ (x) => DollarOrDollarEq$inboundSchema.parse(JSON.parse(x)),
6130
+ `Failed to parse 'DollarOrDollarEq' from JSON`,
6131
+ );
6132
+ }
6133
+
6134
+ /** @internal */
6135
+ export const KnowledgeFilterDollarOr$inboundSchema: z.ZodType<
6136
+ KnowledgeFilterDollarOr,
6137
+ z.ZodTypeDef,
6138
+ unknown
6139
+ > = z.union([
6140
+ z.lazy(() => DollarOrDollarEq$inboundSchema),
6141
+ z.lazy(() => DollarOrDollarNe$inboundSchema),
6142
+ z.lazy(() => DollarOr3$inboundSchema),
6143
+ z.lazy(() => DollarOrDollarGte$inboundSchema),
6144
+ z.lazy(() => DollarOrDollarLt$inboundSchema),
6145
+ z.lazy(() => DollarOrDollarLte$inboundSchema),
6146
+ z.lazy(() => DollarOrDollarIn$inboundSchema),
6147
+ z.lazy(() => DollarOrDollarNin$inboundSchema),
6148
+ z.lazy(() => DollarOrDollarExists$inboundSchema),
6149
+ ]);
6150
+
6151
+ /** @internal */
6152
+ export type KnowledgeFilterDollarOr$Outbound =
6153
+ | DollarOrDollarEq$Outbound
6154
+ | DollarOrDollarNe$Outbound
6155
+ | DollarOr3$Outbound
6156
+ | DollarOrDollarGte$Outbound
6157
+ | DollarOrDollarLt$Outbound
6158
+ | DollarOrDollarLte$Outbound
6159
+ | DollarOrDollarIn$Outbound
6160
+ | DollarOrDollarNin$Outbound
6161
+ | DollarOrDollarExists$Outbound;
6162
+
6163
+ /** @internal */
6164
+ export const KnowledgeFilterDollarOr$outboundSchema: z.ZodType<
6165
+ KnowledgeFilterDollarOr$Outbound,
6166
+ z.ZodTypeDef,
6167
+ KnowledgeFilterDollarOr
6168
+ > = z.union([
6169
+ z.lazy(() => DollarOrDollarEq$outboundSchema),
6170
+ z.lazy(() => DollarOrDollarNe$outboundSchema),
6171
+ z.lazy(() => DollarOr3$outboundSchema),
6172
+ z.lazy(() => DollarOrDollarGte$outboundSchema),
6173
+ z.lazy(() => DollarOrDollarLt$outboundSchema),
6174
+ z.lazy(() => DollarOrDollarLte$outboundSchema),
6175
+ z.lazy(() => DollarOrDollarIn$outboundSchema),
6176
+ z.lazy(() => DollarOrDollarNin$outboundSchema),
6177
+ z.lazy(() => DollarOrDollarExists$outboundSchema),
6178
+ ]);
6179
+
6180
+ /**
6181
+ * @internal
6182
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6183
+ */
6184
+ export namespace KnowledgeFilterDollarOr$ {
6185
+ /** @deprecated use `KnowledgeFilterDollarOr$inboundSchema` instead. */
6186
+ export const inboundSchema = KnowledgeFilterDollarOr$inboundSchema;
6187
+ /** @deprecated use `KnowledgeFilterDollarOr$outboundSchema` instead. */
6188
+ export const outboundSchema = KnowledgeFilterDollarOr$outboundSchema;
6189
+ /** @deprecated use `KnowledgeFilterDollarOr$Outbound` instead. */
6190
+ export type Outbound = KnowledgeFilterDollarOr$Outbound;
6191
+ }
6192
+
6193
+ export function knowledgeFilterDollarOrToJSON(
6194
+ knowledgeFilterDollarOr: KnowledgeFilterDollarOr,
6195
+ ): string {
6196
+ return JSON.stringify(
6197
+ KnowledgeFilterDollarOr$outboundSchema.parse(knowledgeFilterDollarOr),
6198
+ );
6199
+ }
6200
+
6201
+ export function knowledgeFilterDollarOrFromJSON(
6202
+ jsonString: string,
6203
+ ): SafeParseResult<KnowledgeFilterDollarOr, SDKValidationError> {
6204
+ return safeParse(
6205
+ jsonString,
6206
+ (x) => KnowledgeFilterDollarOr$inboundSchema.parse(JSON.parse(x)),
6207
+ `Failed to parse 'KnowledgeFilterDollarOr' from JSON`,
6208
+ );
6209
+ }
6210
+
6211
+ /** @internal */
6212
+ export const DollarOr$inboundSchema: z.ZodType<
6213
+ DollarOr,
6214
+ z.ZodTypeDef,
6215
+ unknown
6216
+ > = z.object({
6217
+ $or: z.array(
6218
+ z.record(z.union([
6219
+ z.lazy(() => DollarOrDollarEq$inboundSchema),
6220
+ z.lazy(() =>
6221
+ DollarOrDollarNe$inboundSchema
6222
+ ),
6223
+ z.lazy(() => DollarOr3$inboundSchema),
6224
+ z.lazy(() => DollarOrDollarGte$inboundSchema),
6225
+ z.lazy(() => DollarOrDollarLt$inboundSchema),
6226
+ z.lazy(() => DollarOrDollarLte$inboundSchema),
6227
+ z.lazy(() => DollarOrDollarIn$inboundSchema),
6228
+ z.lazy(() => DollarOrDollarNin$inboundSchema),
6229
+ z.lazy(() => DollarOrDollarExists$inboundSchema),
6230
+ ])),
6231
+ ),
6232
+ }).transform((v) => {
6233
+ return remap$(v, {
6234
+ "$or": "dollarOr",
6235
+ });
6236
+ });
6237
+
6238
+ /** @internal */
6239
+ export type DollarOr$Outbound = {
6240
+ $or: Array<
6241
+ {
6242
+ [k: string]:
6243
+ | DollarOrDollarEq$Outbound
6244
+ | DollarOrDollarNe$Outbound
6245
+ | DollarOr3$Outbound
6246
+ | DollarOrDollarGte$Outbound
6247
+ | DollarOrDollarLt$Outbound
6248
+ | DollarOrDollarLte$Outbound
6249
+ | DollarOrDollarIn$Outbound
6250
+ | DollarOrDollarNin$Outbound
6251
+ | DollarOrDollarExists$Outbound;
6252
+ }
6253
+ >;
6254
+ };
6255
+
6256
+ /** @internal */
6257
+ export const DollarOr$outboundSchema: z.ZodType<
6258
+ DollarOr$Outbound,
6259
+ z.ZodTypeDef,
6260
+ DollarOr
6261
+ > = z.object({
6262
+ dollarOr: z.array(
6263
+ z.record(z.union([
6264
+ z.lazy(() => DollarOrDollarEq$outboundSchema),
6265
+ z.lazy(() =>
6266
+ DollarOrDollarNe$outboundSchema
6267
+ ),
6268
+ z.lazy(() => DollarOr3$outboundSchema),
6269
+ z.lazy(() => DollarOrDollarGte$outboundSchema),
6270
+ z.lazy(() => DollarOrDollarLt$outboundSchema),
6271
+ z.lazy(() => DollarOrDollarLte$outboundSchema),
6272
+ z.lazy(() => DollarOrDollarIn$outboundSchema),
6273
+ z.lazy(() => DollarOrDollarNin$outboundSchema),
6274
+ z.lazy(() => DollarOrDollarExists$outboundSchema),
6275
+ ])),
6276
+ ),
6277
+ }).transform((v) => {
6278
+ return remap$(v, {
6279
+ dollarOr: "$or",
6280
+ });
6281
+ });
6282
+
6283
+ /**
6284
+ * @internal
6285
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6286
+ */
6287
+ export namespace DollarOr$ {
6288
+ /** @deprecated use `DollarOr$inboundSchema` instead. */
6289
+ export const inboundSchema = DollarOr$inboundSchema;
6290
+ /** @deprecated use `DollarOr$outboundSchema` instead. */
6291
+ export const outboundSchema = DollarOr$outboundSchema;
6292
+ /** @deprecated use `DollarOr$Outbound` instead. */
6293
+ export type Outbound = DollarOr$Outbound;
6294
+ }
6295
+
6296
+ export function dollarOrToJSON(dollarOr: DollarOr): string {
6297
+ return JSON.stringify(DollarOr$outboundSchema.parse(dollarOr));
6298
+ }
6299
+
6300
+ export function dollarOrFromJSON(
6301
+ jsonString: string,
6302
+ ): SafeParseResult<DollarOr, SDKValidationError> {
6303
+ return safeParse(
6304
+ jsonString,
6305
+ (x) => DollarOr$inboundSchema.parse(JSON.parse(x)),
6306
+ `Failed to parse 'DollarOr' from JSON`,
6307
+ );
6308
+ }
6309
+
6310
+ /** @internal */
6311
+ export const DollarAndDollarExists$inboundSchema: z.ZodType<
6312
+ DollarAndDollarExists,
6313
+ z.ZodTypeDef,
6314
+ unknown
6315
+ > = z.object({
6316
+ $exists: z.boolean(),
6317
+ }).transform((v) => {
6318
+ return remap$(v, {
6319
+ "$exists": "dollarExists",
6320
+ });
6321
+ });
6322
+
6323
+ /** @internal */
6324
+ export type DollarAndDollarExists$Outbound = {
6325
+ $exists: boolean;
6326
+ };
6327
+
6328
+ /** @internal */
6329
+ export const DollarAndDollarExists$outboundSchema: z.ZodType<
6330
+ DollarAndDollarExists$Outbound,
6331
+ z.ZodTypeDef,
6332
+ DollarAndDollarExists
6333
+ > = z.object({
6334
+ dollarExists: z.boolean(),
6335
+ }).transform((v) => {
6336
+ return remap$(v, {
6337
+ dollarExists: "$exists",
6338
+ });
6339
+ });
6340
+
6341
+ /**
6342
+ * @internal
6343
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6344
+ */
6345
+ export namespace DollarAndDollarExists$ {
6346
+ /** @deprecated use `DollarAndDollarExists$inboundSchema` instead. */
6347
+ export const inboundSchema = DollarAndDollarExists$inboundSchema;
6348
+ /** @deprecated use `DollarAndDollarExists$outboundSchema` instead. */
6349
+ export const outboundSchema = DollarAndDollarExists$outboundSchema;
6350
+ /** @deprecated use `DollarAndDollarExists$Outbound` instead. */
6351
+ export type Outbound = DollarAndDollarExists$Outbound;
6352
+ }
6353
+
6354
+ export function dollarAndDollarExistsToJSON(
6355
+ dollarAndDollarExists: DollarAndDollarExists,
6356
+ ): string {
6357
+ return JSON.stringify(
6358
+ DollarAndDollarExists$outboundSchema.parse(dollarAndDollarExists),
6359
+ );
6360
+ }
6361
+
6362
+ export function dollarAndDollarExistsFromJSON(
6363
+ jsonString: string,
6364
+ ): SafeParseResult<DollarAndDollarExists, SDKValidationError> {
6365
+ return safeParse(
6366
+ jsonString,
6367
+ (x) => DollarAndDollarExists$inboundSchema.parse(JSON.parse(x)),
6368
+ `Failed to parse 'DollarAndDollarExists' from JSON`,
6369
+ );
6370
+ }
6371
+
6372
+ /** @internal */
6373
+ export const DeploymentGetConfigDollarAndDollarNin$inboundSchema: z.ZodType<
6374
+ DeploymentGetConfigDollarAndDollarNin,
6375
+ z.ZodTypeDef,
6376
+ unknown
6377
+ > = z.union([z.string(), z.number(), z.boolean()]);
6378
+
6379
+ /** @internal */
6380
+ export type DeploymentGetConfigDollarAndDollarNin$Outbound =
6381
+ | string
6382
+ | number
6383
+ | boolean;
6384
+
6385
+ /** @internal */
6386
+ export const DeploymentGetConfigDollarAndDollarNin$outboundSchema: z.ZodType<
6387
+ DeploymentGetConfigDollarAndDollarNin$Outbound,
6388
+ z.ZodTypeDef,
6389
+ DeploymentGetConfigDollarAndDollarNin
6390
+ > = z.union([z.string(), z.number(), z.boolean()]);
6391
+
6392
+ /**
6393
+ * @internal
6394
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6395
+ */
6396
+ export namespace DeploymentGetConfigDollarAndDollarNin$ {
6397
+ /** @deprecated use `DeploymentGetConfigDollarAndDollarNin$inboundSchema` instead. */
6398
+ export const inboundSchema =
6399
+ DeploymentGetConfigDollarAndDollarNin$inboundSchema;
6400
+ /** @deprecated use `DeploymentGetConfigDollarAndDollarNin$outboundSchema` instead. */
6401
+ export const outboundSchema =
6402
+ DeploymentGetConfigDollarAndDollarNin$outboundSchema;
6403
+ /** @deprecated use `DeploymentGetConfigDollarAndDollarNin$Outbound` instead. */
6404
+ export type Outbound = DeploymentGetConfigDollarAndDollarNin$Outbound;
6405
+ }
6406
+
6407
+ export function deploymentGetConfigDollarAndDollarNinToJSON(
6408
+ deploymentGetConfigDollarAndDollarNin: DeploymentGetConfigDollarAndDollarNin,
6409
+ ): string {
6410
+ return JSON.stringify(
6411
+ DeploymentGetConfigDollarAndDollarNin$outboundSchema.parse(
6412
+ deploymentGetConfigDollarAndDollarNin,
6413
+ ),
6414
+ );
6415
+ }
6416
+
6417
+ export function deploymentGetConfigDollarAndDollarNinFromJSON(
6418
+ jsonString: string,
6419
+ ): SafeParseResult<DeploymentGetConfigDollarAndDollarNin, SDKValidationError> {
6420
+ return safeParse(
6421
+ jsonString,
6422
+ (x) =>
6423
+ DeploymentGetConfigDollarAndDollarNin$inboundSchema.parse(JSON.parse(x)),
6424
+ `Failed to parse 'DeploymentGetConfigDollarAndDollarNin' from JSON`,
6425
+ );
6426
+ }
6427
+
6428
+ /** @internal */
6429
+ export const DollarAndDollarNin$inboundSchema: z.ZodType<
6430
+ DollarAndDollarNin,
6431
+ z.ZodTypeDef,
6432
+ unknown
6433
+ > = z.object({
6434
+ $nin: z.array(z.union([z.string(), z.number(), z.boolean()])),
6435
+ }).transform((v) => {
6436
+ return remap$(v, {
6437
+ "$nin": "dollarNin",
6438
+ });
6439
+ });
6440
+
6441
+ /** @internal */
6442
+ export type DollarAndDollarNin$Outbound = {
6443
+ $nin: Array<string | number | boolean>;
6444
+ };
6445
+
6446
+ /** @internal */
6447
+ export const DollarAndDollarNin$outboundSchema: z.ZodType<
6448
+ DollarAndDollarNin$Outbound,
6449
+ z.ZodTypeDef,
6450
+ DollarAndDollarNin
6451
+ > = z.object({
6452
+ dollarNin: z.array(z.union([z.string(), z.number(), z.boolean()])),
6453
+ }).transform((v) => {
6454
+ return remap$(v, {
6455
+ dollarNin: "$nin",
6456
+ });
6457
+ });
6458
+
6459
+ /**
6460
+ * @internal
6461
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6462
+ */
6463
+ export namespace DollarAndDollarNin$ {
6464
+ /** @deprecated use `DollarAndDollarNin$inboundSchema` instead. */
6465
+ export const inboundSchema = DollarAndDollarNin$inboundSchema;
6466
+ /** @deprecated use `DollarAndDollarNin$outboundSchema` instead. */
6467
+ export const outboundSchema = DollarAndDollarNin$outboundSchema;
6468
+ /** @deprecated use `DollarAndDollarNin$Outbound` instead. */
6469
+ export type Outbound = DollarAndDollarNin$Outbound;
6470
+ }
6471
+
6472
+ export function dollarAndDollarNinToJSON(
6473
+ dollarAndDollarNin: DollarAndDollarNin,
6474
+ ): string {
6475
+ return JSON.stringify(
6476
+ DollarAndDollarNin$outboundSchema.parse(dollarAndDollarNin),
6477
+ );
6478
+ }
6479
+
6480
+ export function dollarAndDollarNinFromJSON(
6481
+ jsonString: string,
6482
+ ): SafeParseResult<DollarAndDollarNin, SDKValidationError> {
6483
+ return safeParse(
6484
+ jsonString,
6485
+ (x) => DollarAndDollarNin$inboundSchema.parse(JSON.parse(x)),
6486
+ `Failed to parse 'DollarAndDollarNin' from JSON`,
6487
+ );
6488
+ }
6489
+
6490
+ /** @internal */
6491
+ export const DeploymentGetConfigDollarAndDollarIn$inboundSchema: z.ZodType<
6492
+ DeploymentGetConfigDollarAndDollarIn,
6493
+ z.ZodTypeDef,
6494
+ unknown
6495
+ > = z.union([z.string(), z.number(), z.boolean()]);
6496
+
6497
+ /** @internal */
6498
+ export type DeploymentGetConfigDollarAndDollarIn$Outbound =
6499
+ | string
6500
+ | number
6501
+ | boolean;
6502
+
6503
+ /** @internal */
6504
+ export const DeploymentGetConfigDollarAndDollarIn$outboundSchema: z.ZodType<
6505
+ DeploymentGetConfigDollarAndDollarIn$Outbound,
6506
+ z.ZodTypeDef,
6507
+ DeploymentGetConfigDollarAndDollarIn
6508
+ > = z.union([z.string(), z.number(), z.boolean()]);
6509
+
6510
+ /**
6511
+ * @internal
6512
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6513
+ */
6514
+ export namespace DeploymentGetConfigDollarAndDollarIn$ {
6515
+ /** @deprecated use `DeploymentGetConfigDollarAndDollarIn$inboundSchema` instead. */
6516
+ export const inboundSchema =
6517
+ DeploymentGetConfigDollarAndDollarIn$inboundSchema;
6518
+ /** @deprecated use `DeploymentGetConfigDollarAndDollarIn$outboundSchema` instead. */
6519
+ export const outboundSchema =
6520
+ DeploymentGetConfigDollarAndDollarIn$outboundSchema;
6521
+ /** @deprecated use `DeploymentGetConfigDollarAndDollarIn$Outbound` instead. */
6522
+ export type Outbound = DeploymentGetConfigDollarAndDollarIn$Outbound;
6523
+ }
6524
+
6525
+ export function deploymentGetConfigDollarAndDollarInToJSON(
6526
+ deploymentGetConfigDollarAndDollarIn: DeploymentGetConfigDollarAndDollarIn,
6527
+ ): string {
6528
+ return JSON.stringify(
6529
+ DeploymentGetConfigDollarAndDollarIn$outboundSchema.parse(
6530
+ deploymentGetConfigDollarAndDollarIn,
6531
+ ),
6532
+ );
6533
+ }
6534
+
6535
+ export function deploymentGetConfigDollarAndDollarInFromJSON(
6536
+ jsonString: string,
6537
+ ): SafeParseResult<DeploymentGetConfigDollarAndDollarIn, SDKValidationError> {
6538
+ return safeParse(
6539
+ jsonString,
6540
+ (x) =>
6541
+ DeploymentGetConfigDollarAndDollarIn$inboundSchema.parse(JSON.parse(x)),
6542
+ `Failed to parse 'DeploymentGetConfigDollarAndDollarIn' from JSON`,
6543
+ );
6544
+ }
6545
+
6546
+ /** @internal */
6547
+ export const DollarAndDollarIn$inboundSchema: z.ZodType<
6548
+ DollarAndDollarIn,
6549
+ z.ZodTypeDef,
6550
+ unknown
6551
+ > = z.object({
6552
+ $in: z.array(z.union([z.string(), z.number(), z.boolean()])),
6553
+ }).transform((v) => {
6554
+ return remap$(v, {
6555
+ "$in": "dollarIn",
6556
+ });
6557
+ });
6558
+
6559
+ /** @internal */
6560
+ export type DollarAndDollarIn$Outbound = {
6561
+ $in: Array<string | number | boolean>;
6562
+ };
6563
+
6564
+ /** @internal */
6565
+ export const DollarAndDollarIn$outboundSchema: z.ZodType<
6566
+ DollarAndDollarIn$Outbound,
6567
+ z.ZodTypeDef,
6568
+ DollarAndDollarIn
6569
+ > = z.object({
6570
+ dollarIn: z.array(z.union([z.string(), z.number(), z.boolean()])),
6571
+ }).transform((v) => {
6572
+ return remap$(v, {
6573
+ dollarIn: "$in",
6574
+ });
6575
+ });
6576
+
6577
+ /**
6578
+ * @internal
6579
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6580
+ */
6581
+ export namespace DollarAndDollarIn$ {
6582
+ /** @deprecated use `DollarAndDollarIn$inboundSchema` instead. */
6583
+ export const inboundSchema = DollarAndDollarIn$inboundSchema;
6584
+ /** @deprecated use `DollarAndDollarIn$outboundSchema` instead. */
6585
+ export const outboundSchema = DollarAndDollarIn$outboundSchema;
6586
+ /** @deprecated use `DollarAndDollarIn$Outbound` instead. */
6587
+ export type Outbound = DollarAndDollarIn$Outbound;
6588
+ }
6589
+
6590
+ export function dollarAndDollarInToJSON(
6591
+ dollarAndDollarIn: DollarAndDollarIn,
6592
+ ): string {
6593
+ return JSON.stringify(
6594
+ DollarAndDollarIn$outboundSchema.parse(dollarAndDollarIn),
6595
+ );
6596
+ }
6597
+
6598
+ export function dollarAndDollarInFromJSON(
6599
+ jsonString: string,
6600
+ ): SafeParseResult<DollarAndDollarIn, SDKValidationError> {
6601
+ return safeParse(
6602
+ jsonString,
6603
+ (x) => DollarAndDollarIn$inboundSchema.parse(JSON.parse(x)),
6604
+ `Failed to parse 'DollarAndDollarIn' from JSON`,
6605
+ );
6606
+ }
6607
+
6608
+ /** @internal */
6609
+ export const DollarAndDollarLte$inboundSchema: z.ZodType<
6610
+ DollarAndDollarLte,
6611
+ z.ZodTypeDef,
6612
+ unknown
6613
+ > = z.object({
6614
+ $lte: z.number(),
6615
+ }).transform((v) => {
6616
+ return remap$(v, {
6617
+ "$lte": "dollarLte",
6618
+ });
6619
+ });
6620
+
6621
+ /** @internal */
6622
+ export type DollarAndDollarLte$Outbound = {
6623
+ $lte: number;
6624
+ };
6625
+
6626
+ /** @internal */
6627
+ export const DollarAndDollarLte$outboundSchema: z.ZodType<
6628
+ DollarAndDollarLte$Outbound,
6629
+ z.ZodTypeDef,
6630
+ DollarAndDollarLte
6631
+ > = z.object({
6632
+ dollarLte: z.number(),
6633
+ }).transform((v) => {
6634
+ return remap$(v, {
6635
+ dollarLte: "$lte",
6636
+ });
6637
+ });
6638
+
6639
+ /**
6640
+ * @internal
6641
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6642
+ */
6643
+ export namespace DollarAndDollarLte$ {
6644
+ /** @deprecated use `DollarAndDollarLte$inboundSchema` instead. */
6645
+ export const inboundSchema = DollarAndDollarLte$inboundSchema;
6646
+ /** @deprecated use `DollarAndDollarLte$outboundSchema` instead. */
6647
+ export const outboundSchema = DollarAndDollarLte$outboundSchema;
6648
+ /** @deprecated use `DollarAndDollarLte$Outbound` instead. */
6649
+ export type Outbound = DollarAndDollarLte$Outbound;
6650
+ }
6651
+
6652
+ export function dollarAndDollarLteToJSON(
6653
+ dollarAndDollarLte: DollarAndDollarLte,
6654
+ ): string {
6655
+ return JSON.stringify(
6656
+ DollarAndDollarLte$outboundSchema.parse(dollarAndDollarLte),
6657
+ );
6658
+ }
6659
+
6660
+ export function dollarAndDollarLteFromJSON(
6661
+ jsonString: string,
6662
+ ): SafeParseResult<DollarAndDollarLte, SDKValidationError> {
6663
+ return safeParse(
6664
+ jsonString,
6665
+ (x) => DollarAndDollarLte$inboundSchema.parse(JSON.parse(x)),
6666
+ `Failed to parse 'DollarAndDollarLte' from JSON`,
6667
+ );
6668
+ }
6669
+
6670
+ /** @internal */
6671
+ export const DollarAndDollarLt$inboundSchema: z.ZodType<
6672
+ DollarAndDollarLt,
6673
+ z.ZodTypeDef,
6674
+ unknown
6675
+ > = z.object({
6676
+ $lt: z.number(),
6677
+ }).transform((v) => {
6678
+ return remap$(v, {
6679
+ "$lt": "dollarLt",
6680
+ });
6681
+ });
6682
+
6683
+ /** @internal */
6684
+ export type DollarAndDollarLt$Outbound = {
6685
+ $lt: number;
6686
+ };
6687
+
6688
+ /** @internal */
6689
+ export const DollarAndDollarLt$outboundSchema: z.ZodType<
6690
+ DollarAndDollarLt$Outbound,
6691
+ z.ZodTypeDef,
6692
+ DollarAndDollarLt
6693
+ > = z.object({
6694
+ dollarLt: z.number(),
6695
+ }).transform((v) => {
6696
+ return remap$(v, {
6697
+ dollarLt: "$lt",
6698
+ });
6699
+ });
6700
+
6701
+ /**
6702
+ * @internal
6703
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6704
+ */
6705
+ export namespace DollarAndDollarLt$ {
6706
+ /** @deprecated use `DollarAndDollarLt$inboundSchema` instead. */
6707
+ export const inboundSchema = DollarAndDollarLt$inboundSchema;
6708
+ /** @deprecated use `DollarAndDollarLt$outboundSchema` instead. */
6709
+ export const outboundSchema = DollarAndDollarLt$outboundSchema;
6710
+ /** @deprecated use `DollarAndDollarLt$Outbound` instead. */
6711
+ export type Outbound = DollarAndDollarLt$Outbound;
6712
+ }
6713
+
6714
+ export function dollarAndDollarLtToJSON(
6715
+ dollarAndDollarLt: DollarAndDollarLt,
6716
+ ): string {
6717
+ return JSON.stringify(
6718
+ DollarAndDollarLt$outboundSchema.parse(dollarAndDollarLt),
6719
+ );
6720
+ }
6721
+
6722
+ export function dollarAndDollarLtFromJSON(
6723
+ jsonString: string,
6724
+ ): SafeParseResult<DollarAndDollarLt, SDKValidationError> {
6725
+ return safeParse(
6726
+ jsonString,
6727
+ (x) => DollarAndDollarLt$inboundSchema.parse(JSON.parse(x)),
6728
+ `Failed to parse 'DollarAndDollarLt' from JSON`,
6729
+ );
6730
+ }
6731
+
6732
+ /** @internal */
6733
+ export const DollarAndDollarGte$inboundSchema: z.ZodType<
6734
+ DollarAndDollarGte,
6735
+ z.ZodTypeDef,
6736
+ unknown
6737
+ > = z.object({
6738
+ $gte: z.number(),
6739
+ }).transform((v) => {
6740
+ return remap$(v, {
6741
+ "$gte": "dollarGte",
6742
+ });
6743
+ });
6744
+
6745
+ /** @internal */
6746
+ export type DollarAndDollarGte$Outbound = {
6747
+ $gte: number;
6748
+ };
6749
+
6750
+ /** @internal */
6751
+ export const DollarAndDollarGte$outboundSchema: z.ZodType<
6752
+ DollarAndDollarGte$Outbound,
6753
+ z.ZodTypeDef,
6754
+ DollarAndDollarGte
6755
+ > = z.object({
6756
+ dollarGte: z.number(),
6757
+ }).transform((v) => {
6758
+ return remap$(v, {
6759
+ dollarGte: "$gte",
6760
+ });
6761
+ });
6762
+
6763
+ /**
6764
+ * @internal
6765
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6766
+ */
6767
+ export namespace DollarAndDollarGte$ {
6768
+ /** @deprecated use `DollarAndDollarGte$inboundSchema` instead. */
6769
+ export const inboundSchema = DollarAndDollarGte$inboundSchema;
6770
+ /** @deprecated use `DollarAndDollarGte$outboundSchema` instead. */
6771
+ export const outboundSchema = DollarAndDollarGte$outboundSchema;
6772
+ /** @deprecated use `DollarAndDollarGte$Outbound` instead. */
6773
+ export type Outbound = DollarAndDollarGte$Outbound;
6774
+ }
6775
+
6776
+ export function dollarAndDollarGteToJSON(
6777
+ dollarAndDollarGte: DollarAndDollarGte,
6778
+ ): string {
6779
+ return JSON.stringify(
6780
+ DollarAndDollarGte$outboundSchema.parse(dollarAndDollarGte),
6781
+ );
6782
+ }
6783
+
6784
+ export function dollarAndDollarGteFromJSON(
6785
+ jsonString: string,
6786
+ ): SafeParseResult<DollarAndDollarGte, SDKValidationError> {
6787
+ return safeParse(
6788
+ jsonString,
6789
+ (x) => DollarAndDollarGte$inboundSchema.parse(JSON.parse(x)),
6790
+ `Failed to parse 'DollarAndDollarGte' from JSON`,
6791
+ );
6792
+ }
6793
+
6794
+ /** @internal */
6795
+ export const DollarAnd3$inboundSchema: z.ZodType<
6796
+ DollarAnd3,
6797
+ z.ZodTypeDef,
6798
+ unknown
6799
+ > = z.object({
6800
+ $gt: z.number(),
6801
+ }).transform((v) => {
6802
+ return remap$(v, {
6803
+ "$gt": "dollarGt",
6804
+ });
6805
+ });
6806
+
6807
+ /** @internal */
6808
+ export type DollarAnd3$Outbound = {
6809
+ $gt: number;
6810
+ };
6811
+
6812
+ /** @internal */
6813
+ export const DollarAnd3$outboundSchema: z.ZodType<
6814
+ DollarAnd3$Outbound,
6815
+ z.ZodTypeDef,
6816
+ DollarAnd3
6817
+ > = z.object({
6818
+ dollarGt: z.number(),
6819
+ }).transform((v) => {
6820
+ return remap$(v, {
6821
+ dollarGt: "$gt",
6822
+ });
6823
+ });
6824
+
6825
+ /**
6826
+ * @internal
6827
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6828
+ */
6829
+ export namespace DollarAnd3$ {
6830
+ /** @deprecated use `DollarAnd3$inboundSchema` instead. */
6831
+ export const inboundSchema = DollarAnd3$inboundSchema;
6832
+ /** @deprecated use `DollarAnd3$outboundSchema` instead. */
6833
+ export const outboundSchema = DollarAnd3$outboundSchema;
6834
+ /** @deprecated use `DollarAnd3$Outbound` instead. */
6835
+ export type Outbound = DollarAnd3$Outbound;
6836
+ }
6837
+
6838
+ export function dollarAnd3ToJSON(dollarAnd3: DollarAnd3): string {
6839
+ return JSON.stringify(DollarAnd3$outboundSchema.parse(dollarAnd3));
6840
+ }
6841
+
6842
+ export function dollarAnd3FromJSON(
6843
+ jsonString: string,
6844
+ ): SafeParseResult<DollarAnd3, SDKValidationError> {
6845
+ return safeParse(
6846
+ jsonString,
6847
+ (x) => DollarAnd3$inboundSchema.parse(JSON.parse(x)),
6848
+ `Failed to parse 'DollarAnd3' from JSON`,
6849
+ );
6850
+ }
6851
+
6852
+ /** @internal */
6853
+ export const DeploymentGetConfigDollarAndDollarNe$inboundSchema: z.ZodType<
6854
+ DeploymentGetConfigDollarAndDollarNe,
6855
+ z.ZodTypeDef,
6856
+ unknown
6857
+ > = z.union([z.string(), z.number(), z.boolean()]);
6858
+
6859
+ /** @internal */
6860
+ export type DeploymentGetConfigDollarAndDollarNe$Outbound =
6861
+ | string
6862
+ | number
6863
+ | boolean;
6864
+
6865
+ /** @internal */
6866
+ export const DeploymentGetConfigDollarAndDollarNe$outboundSchema: z.ZodType<
6867
+ DeploymentGetConfigDollarAndDollarNe$Outbound,
6868
+ z.ZodTypeDef,
6869
+ DeploymentGetConfigDollarAndDollarNe
6870
+ > = z.union([z.string(), z.number(), z.boolean()]);
6871
+
6872
+ /**
6873
+ * @internal
6874
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6875
+ */
6876
+ export namespace DeploymentGetConfigDollarAndDollarNe$ {
6877
+ /** @deprecated use `DeploymentGetConfigDollarAndDollarNe$inboundSchema` instead. */
6878
+ export const inboundSchema =
6879
+ DeploymentGetConfigDollarAndDollarNe$inboundSchema;
6880
+ /** @deprecated use `DeploymentGetConfigDollarAndDollarNe$outboundSchema` instead. */
6881
+ export const outboundSchema =
6882
+ DeploymentGetConfigDollarAndDollarNe$outboundSchema;
6883
+ /** @deprecated use `DeploymentGetConfigDollarAndDollarNe$Outbound` instead. */
6884
+ export type Outbound = DeploymentGetConfigDollarAndDollarNe$Outbound;
6885
+ }
6886
+
6887
+ export function deploymentGetConfigDollarAndDollarNeToJSON(
6888
+ deploymentGetConfigDollarAndDollarNe: DeploymentGetConfigDollarAndDollarNe,
6889
+ ): string {
6890
+ return JSON.stringify(
6891
+ DeploymentGetConfigDollarAndDollarNe$outboundSchema.parse(
6892
+ deploymentGetConfigDollarAndDollarNe,
6893
+ ),
6894
+ );
6895
+ }
6896
+
6897
+ export function deploymentGetConfigDollarAndDollarNeFromJSON(
6898
+ jsonString: string,
6899
+ ): SafeParseResult<DeploymentGetConfigDollarAndDollarNe, SDKValidationError> {
6900
+ return safeParse(
6901
+ jsonString,
6902
+ (x) =>
6903
+ DeploymentGetConfigDollarAndDollarNe$inboundSchema.parse(JSON.parse(x)),
6904
+ `Failed to parse 'DeploymentGetConfigDollarAndDollarNe' from JSON`,
6905
+ );
6906
+ }
6907
+
6908
+ /** @internal */
6909
+ export const DollarAndDollarNe$inboundSchema: z.ZodType<
6910
+ DollarAndDollarNe,
6911
+ z.ZodTypeDef,
6912
+ unknown
6913
+ > = z.object({
6914
+ $ne: z.union([z.string(), z.number(), z.boolean()]),
6915
+ }).transform((v) => {
6916
+ return remap$(v, {
6917
+ "$ne": "dollarNe",
6918
+ });
6919
+ });
6920
+
6921
+ /** @internal */
6922
+ export type DollarAndDollarNe$Outbound = {
6923
+ $ne: string | number | boolean;
6924
+ };
6925
+
6926
+ /** @internal */
6927
+ export const DollarAndDollarNe$outboundSchema: z.ZodType<
6928
+ DollarAndDollarNe$Outbound,
6929
+ z.ZodTypeDef,
6930
+ DollarAndDollarNe
6931
+ > = z.object({
6932
+ dollarNe: z.union([z.string(), z.number(), z.boolean()]),
6933
+ }).transform((v) => {
6934
+ return remap$(v, {
6935
+ dollarNe: "$ne",
6936
+ });
6937
+ });
6938
+
6939
+ /**
6940
+ * @internal
6941
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6942
+ */
6943
+ export namespace DollarAndDollarNe$ {
6944
+ /** @deprecated use `DollarAndDollarNe$inboundSchema` instead. */
6945
+ export const inboundSchema = DollarAndDollarNe$inboundSchema;
6946
+ /** @deprecated use `DollarAndDollarNe$outboundSchema` instead. */
6947
+ export const outboundSchema = DollarAndDollarNe$outboundSchema;
6948
+ /** @deprecated use `DollarAndDollarNe$Outbound` instead. */
6949
+ export type Outbound = DollarAndDollarNe$Outbound;
6950
+ }
6951
+
6952
+ export function dollarAndDollarNeToJSON(
6953
+ dollarAndDollarNe: DollarAndDollarNe,
6954
+ ): string {
6955
+ return JSON.stringify(
6956
+ DollarAndDollarNe$outboundSchema.parse(dollarAndDollarNe),
6957
+ );
6958
+ }
6959
+
6960
+ export function dollarAndDollarNeFromJSON(
6961
+ jsonString: string,
6962
+ ): SafeParseResult<DollarAndDollarNe, SDKValidationError> {
6963
+ return safeParse(
6964
+ jsonString,
6965
+ (x) => DollarAndDollarNe$inboundSchema.parse(JSON.parse(x)),
6966
+ `Failed to parse 'DollarAndDollarNe' from JSON`,
6967
+ );
6968
+ }
6969
+
6970
+ /** @internal */
6971
+ export const DeploymentGetConfigDollarAndDollarEq$inboundSchema: z.ZodType<
6972
+ DeploymentGetConfigDollarAndDollarEq,
6973
+ z.ZodTypeDef,
6974
+ unknown
6975
+ > = z.union([z.string(), z.number(), z.boolean()]);
6976
+
6977
+ /** @internal */
6978
+ export type DeploymentGetConfigDollarAndDollarEq$Outbound =
6979
+ | string
6980
+ | number
6981
+ | boolean;
6982
+
6983
+ /** @internal */
6984
+ export const DeploymentGetConfigDollarAndDollarEq$outboundSchema: z.ZodType<
6985
+ DeploymentGetConfigDollarAndDollarEq$Outbound,
6986
+ z.ZodTypeDef,
6987
+ DeploymentGetConfigDollarAndDollarEq
6988
+ > = z.union([z.string(), z.number(), z.boolean()]);
6989
+
6990
+ /**
6991
+ * @internal
6992
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6993
+ */
6994
+ export namespace DeploymentGetConfigDollarAndDollarEq$ {
6995
+ /** @deprecated use `DeploymentGetConfigDollarAndDollarEq$inboundSchema` instead. */
6996
+ export const inboundSchema =
6997
+ DeploymentGetConfigDollarAndDollarEq$inboundSchema;
6998
+ /** @deprecated use `DeploymentGetConfigDollarAndDollarEq$outboundSchema` instead. */
6999
+ export const outboundSchema =
7000
+ DeploymentGetConfigDollarAndDollarEq$outboundSchema;
7001
+ /** @deprecated use `DeploymentGetConfigDollarAndDollarEq$Outbound` instead. */
7002
+ export type Outbound = DeploymentGetConfigDollarAndDollarEq$Outbound;
7003
+ }
7004
+
7005
+ export function deploymentGetConfigDollarAndDollarEqToJSON(
7006
+ deploymentGetConfigDollarAndDollarEq: DeploymentGetConfigDollarAndDollarEq,
7007
+ ): string {
7008
+ return JSON.stringify(
7009
+ DeploymentGetConfigDollarAndDollarEq$outboundSchema.parse(
7010
+ deploymentGetConfigDollarAndDollarEq,
7011
+ ),
7012
+ );
7013
+ }
7014
+
7015
+ export function deploymentGetConfigDollarAndDollarEqFromJSON(
7016
+ jsonString: string,
7017
+ ): SafeParseResult<DeploymentGetConfigDollarAndDollarEq, SDKValidationError> {
7018
+ return safeParse(
7019
+ jsonString,
7020
+ (x) =>
7021
+ DeploymentGetConfigDollarAndDollarEq$inboundSchema.parse(JSON.parse(x)),
7022
+ `Failed to parse 'DeploymentGetConfigDollarAndDollarEq' from JSON`,
7023
+ );
7024
+ }
7025
+
7026
+ /** @internal */
7027
+ export const DollarAndDollarEq$inboundSchema: z.ZodType<
7028
+ DollarAndDollarEq,
7029
+ z.ZodTypeDef,
7030
+ unknown
7031
+ > = z.object({
7032
+ $eq: z.union([z.string(), z.number(), z.boolean()]),
7033
+ }).transform((v) => {
7034
+ return remap$(v, {
7035
+ "$eq": "dollarEq",
7036
+ });
7037
+ });
7038
+
7039
+ /** @internal */
7040
+ export type DollarAndDollarEq$Outbound = {
7041
+ $eq: string | number | boolean;
7042
+ };
7043
+
7044
+ /** @internal */
7045
+ export const DollarAndDollarEq$outboundSchema: z.ZodType<
7046
+ DollarAndDollarEq$Outbound,
7047
+ z.ZodTypeDef,
7048
+ DollarAndDollarEq
7049
+ > = z.object({
7050
+ dollarEq: z.union([z.string(), z.number(), z.boolean()]),
7051
+ }).transform((v) => {
7052
+ return remap$(v, {
7053
+ dollarEq: "$eq",
7054
+ });
7055
+ });
7056
+
7057
+ /**
7058
+ * @internal
7059
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
7060
+ */
7061
+ export namespace DollarAndDollarEq$ {
7062
+ /** @deprecated use `DollarAndDollarEq$inboundSchema` instead. */
7063
+ export const inboundSchema = DollarAndDollarEq$inboundSchema;
7064
+ /** @deprecated use `DollarAndDollarEq$outboundSchema` instead. */
7065
+ export const outboundSchema = DollarAndDollarEq$outboundSchema;
7066
+ /** @deprecated use `DollarAndDollarEq$Outbound` instead. */
7067
+ export type Outbound = DollarAndDollarEq$Outbound;
7068
+ }
7069
+
7070
+ export function dollarAndDollarEqToJSON(
7071
+ dollarAndDollarEq: DollarAndDollarEq,
7072
+ ): string {
7073
+ return JSON.stringify(
7074
+ DollarAndDollarEq$outboundSchema.parse(dollarAndDollarEq),
7075
+ );
7076
+ }
7077
+
7078
+ export function dollarAndDollarEqFromJSON(
7079
+ jsonString: string,
7080
+ ): SafeParseResult<DollarAndDollarEq, SDKValidationError> {
7081
+ return safeParse(
7082
+ jsonString,
7083
+ (x) => DollarAndDollarEq$inboundSchema.parse(JSON.parse(x)),
7084
+ `Failed to parse 'DollarAndDollarEq' from JSON`,
7085
+ );
7086
+ }
7087
+
7088
+ /** @internal */
7089
+ export const KnowledgeFilterDollarAnd$inboundSchema: z.ZodType<
7090
+ KnowledgeFilterDollarAnd,
7091
+ z.ZodTypeDef,
7092
+ unknown
7093
+ > = z.union([
7094
+ z.lazy(() => DollarAndDollarEq$inboundSchema),
7095
+ z.lazy(() => DollarAndDollarNe$inboundSchema),
7096
+ z.lazy(() => DollarAnd3$inboundSchema),
7097
+ z.lazy(() => DollarAndDollarGte$inboundSchema),
7098
+ z.lazy(() => DollarAndDollarLt$inboundSchema),
7099
+ z.lazy(() => DollarAndDollarLte$inboundSchema),
7100
+ z.lazy(() => DollarAndDollarIn$inboundSchema),
7101
+ z.lazy(() => DollarAndDollarNin$inboundSchema),
7102
+ z.lazy(() => DollarAndDollarExists$inboundSchema),
7103
+ ]);
7104
+
7105
+ /** @internal */
7106
+ export type KnowledgeFilterDollarAnd$Outbound =
7107
+ | DollarAndDollarEq$Outbound
7108
+ | DollarAndDollarNe$Outbound
7109
+ | DollarAnd3$Outbound
7110
+ | DollarAndDollarGte$Outbound
7111
+ | DollarAndDollarLt$Outbound
7112
+ | DollarAndDollarLte$Outbound
7113
+ | DollarAndDollarIn$Outbound
7114
+ | DollarAndDollarNin$Outbound
7115
+ | DollarAndDollarExists$Outbound;
7116
+
7117
+ /** @internal */
7118
+ export const KnowledgeFilterDollarAnd$outboundSchema: z.ZodType<
7119
+ KnowledgeFilterDollarAnd$Outbound,
7120
+ z.ZodTypeDef,
7121
+ KnowledgeFilterDollarAnd
7122
+ > = z.union([
7123
+ z.lazy(() => DollarAndDollarEq$outboundSchema),
7124
+ z.lazy(() => DollarAndDollarNe$outboundSchema),
7125
+ z.lazy(() => DollarAnd3$outboundSchema),
7126
+ z.lazy(() => DollarAndDollarGte$outboundSchema),
7127
+ z.lazy(() => DollarAndDollarLt$outboundSchema),
7128
+ z.lazy(() => DollarAndDollarLte$outboundSchema),
7129
+ z.lazy(() => DollarAndDollarIn$outboundSchema),
7130
+ z.lazy(() => DollarAndDollarNin$outboundSchema),
7131
+ z.lazy(() => DollarAndDollarExists$outboundSchema),
7132
+ ]);
7133
+
7134
+ /**
7135
+ * @internal
7136
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
7137
+ */
7138
+ export namespace KnowledgeFilterDollarAnd$ {
7139
+ /** @deprecated use `KnowledgeFilterDollarAnd$inboundSchema` instead. */
7140
+ export const inboundSchema = KnowledgeFilterDollarAnd$inboundSchema;
7141
+ /** @deprecated use `KnowledgeFilterDollarAnd$outboundSchema` instead. */
7142
+ export const outboundSchema = KnowledgeFilterDollarAnd$outboundSchema;
7143
+ /** @deprecated use `KnowledgeFilterDollarAnd$Outbound` instead. */
7144
+ export type Outbound = KnowledgeFilterDollarAnd$Outbound;
7145
+ }
7146
+
7147
+ export function knowledgeFilterDollarAndToJSON(
7148
+ knowledgeFilterDollarAnd: KnowledgeFilterDollarAnd,
7149
+ ): string {
7150
+ return JSON.stringify(
7151
+ KnowledgeFilterDollarAnd$outboundSchema.parse(knowledgeFilterDollarAnd),
7152
+ );
7153
+ }
7154
+
7155
+ export function knowledgeFilterDollarAndFromJSON(
7156
+ jsonString: string,
7157
+ ): SafeParseResult<KnowledgeFilterDollarAnd, SDKValidationError> {
7158
+ return safeParse(
7159
+ jsonString,
7160
+ (x) => KnowledgeFilterDollarAnd$inboundSchema.parse(JSON.parse(x)),
7161
+ `Failed to parse 'KnowledgeFilterDollarAnd' from JSON`,
7162
+ );
7163
+ }
7164
+
7165
+ /** @internal */
7166
+ export const DollarAnd$inboundSchema: z.ZodType<
7167
+ DollarAnd,
7168
+ z.ZodTypeDef,
7169
+ unknown
7170
+ > = z.object({
7171
+ $and: z.array(
7172
+ z.record(z.union([
7173
+ z.lazy(() => DollarAndDollarEq$inboundSchema),
7174
+ z.lazy(() =>
7175
+ DollarAndDollarNe$inboundSchema
7176
+ ),
7177
+ z.lazy(() => DollarAnd3$inboundSchema),
7178
+ z.lazy(() => DollarAndDollarGte$inboundSchema),
7179
+ z.lazy(() => DollarAndDollarLt$inboundSchema),
7180
+ z.lazy(() => DollarAndDollarLte$inboundSchema),
7181
+ z.lazy(() => DollarAndDollarIn$inboundSchema),
7182
+ z.lazy(() => DollarAndDollarNin$inboundSchema),
7183
+ z.lazy(() => DollarAndDollarExists$inboundSchema),
7184
+ ])),
7185
+ ),
7186
+ }).transform((v) => {
7187
+ return remap$(v, {
7188
+ "$and": "dollarAnd",
7189
+ });
7190
+ });
7191
+
7192
+ /** @internal */
7193
+ export type DollarAnd$Outbound = {
7194
+ $and: Array<
7195
+ {
7196
+ [k: string]:
7197
+ | DollarAndDollarEq$Outbound
7198
+ | DollarAndDollarNe$Outbound
7199
+ | DollarAnd3$Outbound
7200
+ | DollarAndDollarGte$Outbound
7201
+ | DollarAndDollarLt$Outbound
7202
+ | DollarAndDollarLte$Outbound
7203
+ | DollarAndDollarIn$Outbound
7204
+ | DollarAndDollarNin$Outbound
7205
+ | DollarAndDollarExists$Outbound;
7206
+ }
7207
+ >;
7208
+ };
7209
+
7210
+ /** @internal */
7211
+ export const DollarAnd$outboundSchema: z.ZodType<
7212
+ DollarAnd$Outbound,
7213
+ z.ZodTypeDef,
7214
+ DollarAnd
7215
+ > = z.object({
7216
+ dollarAnd: z.array(
7217
+ z.record(z.union([
7218
+ z.lazy(() => DollarAndDollarEq$outboundSchema),
7219
+ z.lazy(() =>
7220
+ DollarAndDollarNe$outboundSchema
7221
+ ),
7222
+ z.lazy(() => DollarAnd3$outboundSchema),
7223
+ z.lazy(() => DollarAndDollarGte$outboundSchema),
7224
+ z.lazy(() => DollarAndDollarLt$outboundSchema),
7225
+ z.lazy(() => DollarAndDollarLte$outboundSchema),
7226
+ z.lazy(() => DollarAndDollarIn$outboundSchema),
7227
+ z.lazy(() => DollarAndDollarNin$outboundSchema),
7228
+ z.lazy(() => DollarAndDollarExists$outboundSchema),
7229
+ ])),
7230
+ ),
7231
+ }).transform((v) => {
7232
+ return remap$(v, {
7233
+ dollarAnd: "$and",
7234
+ });
7235
+ });
7236
+
7237
+ /**
7238
+ * @internal
7239
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
7240
+ */
7241
+ export namespace DollarAnd$ {
7242
+ /** @deprecated use `DollarAnd$inboundSchema` instead. */
7243
+ export const inboundSchema = DollarAnd$inboundSchema;
7244
+ /** @deprecated use `DollarAnd$outboundSchema` instead. */
7245
+ export const outboundSchema = DollarAnd$outboundSchema;
7246
+ /** @deprecated use `DollarAnd$Outbound` instead. */
7247
+ export type Outbound = DollarAnd$Outbound;
7248
+ }
7249
+
7250
+ export function dollarAndToJSON(dollarAnd: DollarAnd): string {
7251
+ return JSON.stringify(DollarAnd$outboundSchema.parse(dollarAnd));
7252
+ }
7253
+
7254
+ export function dollarAndFromJSON(
7255
+ jsonString: string,
7256
+ ): SafeParseResult<DollarAnd, SDKValidationError> {
7257
+ return safeParse(
7258
+ jsonString,
7259
+ (x) => DollarAnd$inboundSchema.parse(JSON.parse(x)),
7260
+ `Failed to parse 'DollarAnd' from JSON`,
7261
+ );
7262
+ }
7263
+
7264
+ /** @internal */
7265
+ export const DollarExists$inboundSchema: z.ZodType<
7266
+ DollarExists,
7267
+ z.ZodTypeDef,
7268
+ unknown
7269
+ > = z.object({
7270
+ $exists: z.boolean(),
7271
+ }).transform((v) => {
7272
+ return remap$(v, {
7273
+ "$exists": "dollarExists",
7274
+ });
7275
+ });
7276
+
7277
+ /** @internal */
7278
+ export type DollarExists$Outbound = {
7279
+ $exists: boolean;
7280
+ };
7281
+
7282
+ /** @internal */
7283
+ export const DollarExists$outboundSchema: z.ZodType<
7284
+ DollarExists$Outbound,
7285
+ z.ZodTypeDef,
7286
+ DollarExists
7287
+ > = z.object({
7288
+ dollarExists: z.boolean(),
7289
+ }).transform((v) => {
7290
+ return remap$(v, {
7291
+ dollarExists: "$exists",
7292
+ });
7293
+ });
7294
+
7295
+ /**
7296
+ * @internal
7297
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
7298
+ */
7299
+ export namespace DollarExists$ {
7300
+ /** @deprecated use `DollarExists$inboundSchema` instead. */
7301
+ export const inboundSchema = DollarExists$inboundSchema;
7302
+ /** @deprecated use `DollarExists$outboundSchema` instead. */
7303
+ export const outboundSchema = DollarExists$outboundSchema;
7304
+ /** @deprecated use `DollarExists$Outbound` instead. */
7305
+ export type Outbound = DollarExists$Outbound;
7306
+ }
7307
+
7308
+ export function dollarExistsToJSON(dollarExists: DollarExists): string {
7309
+ return JSON.stringify(DollarExists$outboundSchema.parse(dollarExists));
7310
+ }
7311
+
7312
+ export function dollarExistsFromJSON(
7313
+ jsonString: string,
7314
+ ): SafeParseResult<DollarExists, SDKValidationError> {
7315
+ return safeParse(
7316
+ jsonString,
7317
+ (x) => DollarExists$inboundSchema.parse(JSON.parse(x)),
7318
+ `Failed to parse 'DollarExists' from JSON`,
7319
+ );
7320
+ }
7321
+
7322
+ /** @internal */
7323
+ export const OneDollarNin$inboundSchema: z.ZodType<
7324
+ OneDollarNin,
7325
+ z.ZodTypeDef,
7326
+ unknown
7327
+ > = z.union([z.string(), z.number(), z.boolean()]);
7328
+
7329
+ /** @internal */
7330
+ export type OneDollarNin$Outbound = string | number | boolean;
7331
+
7332
+ /** @internal */
7333
+ export const OneDollarNin$outboundSchema: z.ZodType<
7334
+ OneDollarNin$Outbound,
7335
+ z.ZodTypeDef,
7336
+ OneDollarNin
7337
+ > = z.union([z.string(), z.number(), z.boolean()]);
7338
+
7339
+ /**
7340
+ * @internal
7341
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
7342
+ */
7343
+ export namespace OneDollarNin$ {
7344
+ /** @deprecated use `OneDollarNin$inboundSchema` instead. */
7345
+ export const inboundSchema = OneDollarNin$inboundSchema;
7346
+ /** @deprecated use `OneDollarNin$outboundSchema` instead. */
7347
+ export const outboundSchema = OneDollarNin$outboundSchema;
7348
+ /** @deprecated use `OneDollarNin$Outbound` instead. */
7349
+ export type Outbound = OneDollarNin$Outbound;
7350
+ }
7351
+
7352
+ export function oneDollarNinToJSON(oneDollarNin: OneDollarNin): string {
7353
+ return JSON.stringify(OneDollarNin$outboundSchema.parse(oneDollarNin));
7354
+ }
7355
+
7356
+ export function oneDollarNinFromJSON(
7357
+ jsonString: string,
7358
+ ): SafeParseResult<OneDollarNin, SDKValidationError> {
7359
+ return safeParse(
7360
+ jsonString,
7361
+ (x) => OneDollarNin$inboundSchema.parse(JSON.parse(x)),
7362
+ `Failed to parse 'OneDollarNin' from JSON`,
7363
+ );
7364
+ }
7365
+
7366
+ /** @internal */
7367
+ export const DollarNin$inboundSchema: z.ZodType<
7368
+ DollarNin,
7369
+ z.ZodTypeDef,
7370
+ unknown
7371
+ > = z.object({
7372
+ $nin: z.array(z.union([z.string(), z.number(), z.boolean()])),
7373
+ }).transform((v) => {
7374
+ return remap$(v, {
7375
+ "$nin": "dollarNin",
7376
+ });
7377
+ });
7378
+
7379
+ /** @internal */
7380
+ export type DollarNin$Outbound = {
7381
+ $nin: Array<string | number | boolean>;
7382
+ };
7383
+
7384
+ /** @internal */
7385
+ export const DollarNin$outboundSchema: z.ZodType<
7386
+ DollarNin$Outbound,
7387
+ z.ZodTypeDef,
7388
+ DollarNin
7389
+ > = z.object({
7390
+ dollarNin: z.array(z.union([z.string(), z.number(), z.boolean()])),
7391
+ }).transform((v) => {
7392
+ return remap$(v, {
7393
+ dollarNin: "$nin",
7394
+ });
7395
+ });
7396
+
7397
+ /**
7398
+ * @internal
7399
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
7400
+ */
7401
+ export namespace DollarNin$ {
7402
+ /** @deprecated use `DollarNin$inboundSchema` instead. */
7403
+ export const inboundSchema = DollarNin$inboundSchema;
7404
+ /** @deprecated use `DollarNin$outboundSchema` instead. */
7405
+ export const outboundSchema = DollarNin$outboundSchema;
7406
+ /** @deprecated use `DollarNin$Outbound` instead. */
7407
+ export type Outbound = DollarNin$Outbound;
7408
+ }
7409
+
7410
+ export function dollarNinToJSON(dollarNin: DollarNin): string {
7411
+ return JSON.stringify(DollarNin$outboundSchema.parse(dollarNin));
7412
+ }
7413
+
7414
+ export function dollarNinFromJSON(
7415
+ jsonString: string,
7416
+ ): SafeParseResult<DollarNin, SDKValidationError> {
7417
+ return safeParse(
7418
+ jsonString,
7419
+ (x) => DollarNin$inboundSchema.parse(JSON.parse(x)),
7420
+ `Failed to parse 'DollarNin' from JSON`,
7421
+ );
7422
+ }
7423
+
7424
+ /** @internal */
7425
+ export const OneDollarIn$inboundSchema: z.ZodType<
7426
+ OneDollarIn,
7427
+ z.ZodTypeDef,
7428
+ unknown
7429
+ > = z.union([z.string(), z.number(), z.boolean()]);
7430
+
7431
+ /** @internal */
7432
+ export type OneDollarIn$Outbound = string | number | boolean;
7433
+
7434
+ /** @internal */
7435
+ export const OneDollarIn$outboundSchema: z.ZodType<
7436
+ OneDollarIn$Outbound,
7437
+ z.ZodTypeDef,
7438
+ OneDollarIn
7439
+ > = z.union([z.string(), z.number(), z.boolean()]);
7440
+
7441
+ /**
7442
+ * @internal
7443
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
7444
+ */
7445
+ export namespace OneDollarIn$ {
7446
+ /** @deprecated use `OneDollarIn$inboundSchema` instead. */
7447
+ export const inboundSchema = OneDollarIn$inboundSchema;
7448
+ /** @deprecated use `OneDollarIn$outboundSchema` instead. */
7449
+ export const outboundSchema = OneDollarIn$outboundSchema;
7450
+ /** @deprecated use `OneDollarIn$Outbound` instead. */
7451
+ export type Outbound = OneDollarIn$Outbound;
7452
+ }
7453
+
7454
+ export function oneDollarInToJSON(oneDollarIn: OneDollarIn): string {
7455
+ return JSON.stringify(OneDollarIn$outboundSchema.parse(oneDollarIn));
7456
+ }
7457
+
7458
+ export function oneDollarInFromJSON(
7459
+ jsonString: string,
7460
+ ): SafeParseResult<OneDollarIn, SDKValidationError> {
7461
+ return safeParse(
7462
+ jsonString,
7463
+ (x) => OneDollarIn$inboundSchema.parse(JSON.parse(x)),
7464
+ `Failed to parse 'OneDollarIn' from JSON`,
7465
+ );
7466
+ }
7467
+
7468
+ /** @internal */
7469
+ export const DollarIn$inboundSchema: z.ZodType<
7470
+ DollarIn,
7471
+ z.ZodTypeDef,
7472
+ unknown
7473
+ > = z.object({
7474
+ $in: z.array(z.union([z.string(), z.number(), z.boolean()])),
7475
+ }).transform((v) => {
7476
+ return remap$(v, {
7477
+ "$in": "dollarIn",
7478
+ });
7479
+ });
7480
+
7481
+ /** @internal */
7482
+ export type DollarIn$Outbound = {
7483
+ $in: Array<string | number | boolean>;
7484
+ };
7485
+
7486
+ /** @internal */
7487
+ export const DollarIn$outboundSchema: z.ZodType<
7488
+ DollarIn$Outbound,
7489
+ z.ZodTypeDef,
7490
+ DollarIn
7491
+ > = z.object({
7492
+ dollarIn: z.array(z.union([z.string(), z.number(), z.boolean()])),
7493
+ }).transform((v) => {
7494
+ return remap$(v, {
7495
+ dollarIn: "$in",
7496
+ });
7497
+ });
7498
+
7499
+ /**
7500
+ * @internal
7501
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
7502
+ */
7503
+ export namespace DollarIn$ {
7504
+ /** @deprecated use `DollarIn$inboundSchema` instead. */
7505
+ export const inboundSchema = DollarIn$inboundSchema;
7506
+ /** @deprecated use `DollarIn$outboundSchema` instead. */
7507
+ export const outboundSchema = DollarIn$outboundSchema;
7508
+ /** @deprecated use `DollarIn$Outbound` instead. */
7509
+ export type Outbound = DollarIn$Outbound;
7510
+ }
7511
+
7512
+ export function dollarInToJSON(dollarIn: DollarIn): string {
7513
+ return JSON.stringify(DollarIn$outboundSchema.parse(dollarIn));
7514
+ }
7515
+
7516
+ export function dollarInFromJSON(
7517
+ jsonString: string,
7518
+ ): SafeParseResult<DollarIn, SDKValidationError> {
7519
+ return safeParse(
7520
+ jsonString,
7521
+ (x) => DollarIn$inboundSchema.parse(JSON.parse(x)),
7522
+ `Failed to parse 'DollarIn' from JSON`,
7523
+ );
7524
+ }
7525
+
7526
+ /** @internal */
7527
+ export const DollarLte$inboundSchema: z.ZodType<
7528
+ DollarLte,
7529
+ z.ZodTypeDef,
7530
+ unknown
7531
+ > = z.object({
7532
+ $lte: z.number(),
7533
+ }).transform((v) => {
7534
+ return remap$(v, {
7535
+ "$lte": "dollarLte",
7536
+ });
7537
+ });
7538
+
7539
+ /** @internal */
7540
+ export type DollarLte$Outbound = {
7541
+ $lte: number;
7542
+ };
7543
+
7544
+ /** @internal */
7545
+ export const DollarLte$outboundSchema: z.ZodType<
7546
+ DollarLte$Outbound,
7547
+ z.ZodTypeDef,
7548
+ DollarLte
7549
+ > = z.object({
7550
+ dollarLte: z.number(),
7551
+ }).transform((v) => {
7552
+ return remap$(v, {
7553
+ dollarLte: "$lte",
7554
+ });
7555
+ });
7556
+
7557
+ /**
7558
+ * @internal
7559
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
7560
+ */
7561
+ export namespace DollarLte$ {
7562
+ /** @deprecated use `DollarLte$inboundSchema` instead. */
7563
+ export const inboundSchema = DollarLte$inboundSchema;
7564
+ /** @deprecated use `DollarLte$outboundSchema` instead. */
7565
+ export const outboundSchema = DollarLte$outboundSchema;
7566
+ /** @deprecated use `DollarLte$Outbound` instead. */
7567
+ export type Outbound = DollarLte$Outbound;
7568
+ }
7569
+
7570
+ export function dollarLteToJSON(dollarLte: DollarLte): string {
7571
+ return JSON.stringify(DollarLte$outboundSchema.parse(dollarLte));
7572
+ }
7573
+
7574
+ export function dollarLteFromJSON(
7575
+ jsonString: string,
7576
+ ): SafeParseResult<DollarLte, SDKValidationError> {
7577
+ return safeParse(
7578
+ jsonString,
7579
+ (x) => DollarLte$inboundSchema.parse(JSON.parse(x)),
7580
+ `Failed to parse 'DollarLte' from JSON`,
7581
+ );
7582
+ }
7583
+
7584
+ /** @internal */
7585
+ export const DollarLt$inboundSchema: z.ZodType<
7586
+ DollarLt,
7587
+ z.ZodTypeDef,
7588
+ unknown
7589
+ > = z.object({
7590
+ $lt: z.number(),
7591
+ }).transform((v) => {
7592
+ return remap$(v, {
7593
+ "$lt": "dollarLt",
7594
+ });
7595
+ });
7596
+
7597
+ /** @internal */
7598
+ export type DollarLt$Outbound = {
7599
+ $lt: number;
7600
+ };
7601
+
7602
+ /** @internal */
7603
+ export const DollarLt$outboundSchema: z.ZodType<
7604
+ DollarLt$Outbound,
7605
+ z.ZodTypeDef,
7606
+ DollarLt
7607
+ > = z.object({
7608
+ dollarLt: z.number(),
7609
+ }).transform((v) => {
7610
+ return remap$(v, {
7611
+ dollarLt: "$lt",
7612
+ });
7613
+ });
7614
+
7615
+ /**
7616
+ * @internal
7617
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
7618
+ */
7619
+ export namespace DollarLt$ {
7620
+ /** @deprecated use `DollarLt$inboundSchema` instead. */
7621
+ export const inboundSchema = DollarLt$inboundSchema;
7622
+ /** @deprecated use `DollarLt$outboundSchema` instead. */
7623
+ export const outboundSchema = DollarLt$outboundSchema;
7624
+ /** @deprecated use `DollarLt$Outbound` instead. */
7625
+ export type Outbound = DollarLt$Outbound;
7626
+ }
7627
+
7628
+ export function dollarLtToJSON(dollarLt: DollarLt): string {
7629
+ return JSON.stringify(DollarLt$outboundSchema.parse(dollarLt));
7630
+ }
7631
+
7632
+ export function dollarLtFromJSON(
7633
+ jsonString: string,
7634
+ ): SafeParseResult<DollarLt, SDKValidationError> {
7635
+ return safeParse(
7636
+ jsonString,
7637
+ (x) => DollarLt$inboundSchema.parse(JSON.parse(x)),
7638
+ `Failed to parse 'DollarLt' from JSON`,
7639
+ );
7640
+ }
7641
+
7642
+ /** @internal */
7643
+ export const DollarGte$inboundSchema: z.ZodType<
7644
+ DollarGte,
7645
+ z.ZodTypeDef,
7646
+ unknown
7647
+ > = z.object({
7648
+ $gte: z.number(),
7649
+ }).transform((v) => {
7650
+ return remap$(v, {
7651
+ "$gte": "dollarGte",
7652
+ });
7653
+ });
7654
+
7655
+ /** @internal */
7656
+ export type DollarGte$Outbound = {
7657
+ $gte: number;
7658
+ };
7659
+
7660
+ /** @internal */
7661
+ export const DollarGte$outboundSchema: z.ZodType<
7662
+ DollarGte$Outbound,
7663
+ z.ZodTypeDef,
7664
+ DollarGte
7665
+ > = z.object({
7666
+ dollarGte: z.number(),
7667
+ }).transform((v) => {
7668
+ return remap$(v, {
7669
+ dollarGte: "$gte",
7670
+ });
7671
+ });
7672
+
7673
+ /**
7674
+ * @internal
7675
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
7676
+ */
7677
+ export namespace DollarGte$ {
7678
+ /** @deprecated use `DollarGte$inboundSchema` instead. */
7679
+ export const inboundSchema = DollarGte$inboundSchema;
7680
+ /** @deprecated use `DollarGte$outboundSchema` instead. */
7681
+ export const outboundSchema = DollarGte$outboundSchema;
7682
+ /** @deprecated use `DollarGte$Outbound` instead. */
7683
+ export type Outbound = DollarGte$Outbound;
7684
+ }
7685
+
7686
+ export function dollarGteToJSON(dollarGte: DollarGte): string {
7687
+ return JSON.stringify(DollarGte$outboundSchema.parse(dollarGte));
7688
+ }
7689
+
7690
+ export function dollarGteFromJSON(
7691
+ jsonString: string,
7692
+ ): SafeParseResult<DollarGte, SDKValidationError> {
7693
+ return safeParse(
7694
+ jsonString,
7695
+ (x) => DollarGte$inboundSchema.parse(JSON.parse(x)),
7696
+ `Failed to parse 'DollarGte' from JSON`,
7697
+ );
7698
+ }
7699
+
7700
+ /** @internal */
7701
+ export const One3$inboundSchema: z.ZodType<One3, z.ZodTypeDef, unknown> = z
7702
+ .object({
7703
+ $gt: z.number(),
7704
+ }).transform((v) => {
7705
+ return remap$(v, {
7706
+ "$gt": "dollarGt",
7707
+ });
7708
+ });
7709
+
7710
+ /** @internal */
7711
+ export type One3$Outbound = {
7712
+ $gt: number;
7713
+ };
7714
+
7715
+ /** @internal */
7716
+ export const One3$outboundSchema: z.ZodType<One3$Outbound, z.ZodTypeDef, One3> =
7717
+ z.object({
7718
+ dollarGt: z.number(),
7719
+ }).transform((v) => {
7720
+ return remap$(v, {
7721
+ dollarGt: "$gt",
7722
+ });
7723
+ });
7724
+
7725
+ /**
7726
+ * @internal
7727
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
7728
+ */
7729
+ export namespace One3$ {
7730
+ /** @deprecated use `One3$inboundSchema` instead. */
7731
+ export const inboundSchema = One3$inboundSchema;
7732
+ /** @deprecated use `One3$outboundSchema` instead. */
7733
+ export const outboundSchema = One3$outboundSchema;
7734
+ /** @deprecated use `One3$Outbound` instead. */
7735
+ export type Outbound = One3$Outbound;
7736
+ }
7737
+
7738
+ export function one3ToJSON(one3: One3): string {
7739
+ return JSON.stringify(One3$outboundSchema.parse(one3));
7740
+ }
7741
+
7742
+ export function one3FromJSON(
7743
+ jsonString: string,
7744
+ ): SafeParseResult<One3, SDKValidationError> {
7745
+ return safeParse(
7746
+ jsonString,
7747
+ (x) => One3$inboundSchema.parse(JSON.parse(x)),
7748
+ `Failed to parse 'One3' from JSON`,
7749
+ );
7750
+ }
7751
+
7752
+ /** @internal */
7753
+ export const OneDollarNe$inboundSchema: z.ZodType<
7754
+ OneDollarNe,
7755
+ z.ZodTypeDef,
7756
+ unknown
7757
+ > = z.union([z.string(), z.number(), z.boolean()]);
7758
+
7759
+ /** @internal */
7760
+ export type OneDollarNe$Outbound = string | number | boolean;
7761
+
7762
+ /** @internal */
7763
+ export const OneDollarNe$outboundSchema: z.ZodType<
7764
+ OneDollarNe$Outbound,
7765
+ z.ZodTypeDef,
7766
+ OneDollarNe
7767
+ > = z.union([z.string(), z.number(), z.boolean()]);
7768
+
7769
+ /**
7770
+ * @internal
7771
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
7772
+ */
7773
+ export namespace OneDollarNe$ {
7774
+ /** @deprecated use `OneDollarNe$inboundSchema` instead. */
7775
+ export const inboundSchema = OneDollarNe$inboundSchema;
7776
+ /** @deprecated use `OneDollarNe$outboundSchema` instead. */
7777
+ export const outboundSchema = OneDollarNe$outboundSchema;
7778
+ /** @deprecated use `OneDollarNe$Outbound` instead. */
7779
+ export type Outbound = OneDollarNe$Outbound;
7780
+ }
7781
+
7782
+ export function oneDollarNeToJSON(oneDollarNe: OneDollarNe): string {
7783
+ return JSON.stringify(OneDollarNe$outboundSchema.parse(oneDollarNe));
7784
+ }
7785
+
7786
+ export function oneDollarNeFromJSON(
7787
+ jsonString: string,
7788
+ ): SafeParseResult<OneDollarNe, SDKValidationError> {
7789
+ return safeParse(
7790
+ jsonString,
7791
+ (x) => OneDollarNe$inboundSchema.parse(JSON.parse(x)),
7792
+ `Failed to parse 'OneDollarNe' from JSON`,
7793
+ );
7794
+ }
7795
+
7796
+ /** @internal */
7797
+ export const DollarNe$inboundSchema: z.ZodType<
7798
+ DollarNe,
7799
+ z.ZodTypeDef,
7800
+ unknown
7801
+ > = z.object({
7802
+ $ne: z.union([z.string(), z.number(), z.boolean()]),
7803
+ }).transform((v) => {
7804
+ return remap$(v, {
7805
+ "$ne": "dollarNe",
7806
+ });
7807
+ });
7808
+
7809
+ /** @internal */
7810
+ export type DollarNe$Outbound = {
7811
+ $ne: string | number | boolean;
7812
+ };
7813
+
7814
+ /** @internal */
7815
+ export const DollarNe$outboundSchema: z.ZodType<
7816
+ DollarNe$Outbound,
7817
+ z.ZodTypeDef,
7818
+ DollarNe
7819
+ > = z.object({
7820
+ dollarNe: z.union([z.string(), z.number(), z.boolean()]),
7821
+ }).transform((v) => {
7822
+ return remap$(v, {
7823
+ dollarNe: "$ne",
7824
+ });
7825
+ });
7826
+
7827
+ /**
7828
+ * @internal
7829
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
7830
+ */
7831
+ export namespace DollarNe$ {
7832
+ /** @deprecated use `DollarNe$inboundSchema` instead. */
7833
+ export const inboundSchema = DollarNe$inboundSchema;
7834
+ /** @deprecated use `DollarNe$outboundSchema` instead. */
7835
+ export const outboundSchema = DollarNe$outboundSchema;
7836
+ /** @deprecated use `DollarNe$Outbound` instead. */
7837
+ export type Outbound = DollarNe$Outbound;
7838
+ }
7839
+
7840
+ export function dollarNeToJSON(dollarNe: DollarNe): string {
7841
+ return JSON.stringify(DollarNe$outboundSchema.parse(dollarNe));
7842
+ }
7843
+
7844
+ export function dollarNeFromJSON(
7845
+ jsonString: string,
7846
+ ): SafeParseResult<DollarNe, SDKValidationError> {
7847
+ return safeParse(
7848
+ jsonString,
7849
+ (x) => DollarNe$inboundSchema.parse(JSON.parse(x)),
7850
+ `Failed to parse 'DollarNe' from JSON`,
7851
+ );
7852
+ }
7853
+
7854
+ /** @internal */
7855
+ export const OneDollarEq$inboundSchema: z.ZodType<
7856
+ OneDollarEq,
7857
+ z.ZodTypeDef,
7858
+ unknown
7859
+ > = z.union([z.string(), z.number(), z.boolean()]);
7860
+
7861
+ /** @internal */
7862
+ export type OneDollarEq$Outbound = string | number | boolean;
7863
+
7864
+ /** @internal */
7865
+ export const OneDollarEq$outboundSchema: z.ZodType<
7866
+ OneDollarEq$Outbound,
7867
+ z.ZodTypeDef,
7868
+ OneDollarEq
7869
+ > = z.union([z.string(), z.number(), z.boolean()]);
7870
+
7871
+ /**
7872
+ * @internal
7873
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
7874
+ */
7875
+ export namespace OneDollarEq$ {
7876
+ /** @deprecated use `OneDollarEq$inboundSchema` instead. */
7877
+ export const inboundSchema = OneDollarEq$inboundSchema;
7878
+ /** @deprecated use `OneDollarEq$outboundSchema` instead. */
7879
+ export const outboundSchema = OneDollarEq$outboundSchema;
7880
+ /** @deprecated use `OneDollarEq$Outbound` instead. */
7881
+ export type Outbound = OneDollarEq$Outbound;
7882
+ }
7883
+
7884
+ export function oneDollarEqToJSON(oneDollarEq: OneDollarEq): string {
7885
+ return JSON.stringify(OneDollarEq$outboundSchema.parse(oneDollarEq));
7886
+ }
7887
+
7888
+ export function oneDollarEqFromJSON(
7889
+ jsonString: string,
7890
+ ): SafeParseResult<OneDollarEq, SDKValidationError> {
7891
+ return safeParse(
7892
+ jsonString,
7893
+ (x) => OneDollarEq$inboundSchema.parse(JSON.parse(x)),
7894
+ `Failed to parse 'OneDollarEq' from JSON`,
7895
+ );
7896
+ }
7897
+
7898
+ /** @internal */
7899
+ export const DollarEq$inboundSchema: z.ZodType<
7900
+ DollarEq,
7901
+ z.ZodTypeDef,
7902
+ unknown
7903
+ > = z.object({
7904
+ $eq: z.union([z.string(), z.number(), z.boolean()]),
7905
+ }).transform((v) => {
7906
+ return remap$(v, {
7907
+ "$eq": "dollarEq",
7908
+ });
7909
+ });
7910
+
7911
+ /** @internal */
7912
+ export type DollarEq$Outbound = {
7913
+ $eq: string | number | boolean;
7914
+ };
7915
+
7916
+ /** @internal */
7917
+ export const DollarEq$outboundSchema: z.ZodType<
7918
+ DollarEq$Outbound,
7919
+ z.ZodTypeDef,
7920
+ DollarEq
7921
+ > = z.object({
7922
+ dollarEq: z.union([z.string(), z.number(), z.boolean()]),
7923
+ }).transform((v) => {
7924
+ return remap$(v, {
7925
+ dollarEq: "$eq",
7926
+ });
7927
+ });
7928
+
7929
+ /**
7930
+ * @internal
7931
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
7932
+ */
7933
+ export namespace DollarEq$ {
7934
+ /** @deprecated use `DollarEq$inboundSchema` instead. */
7935
+ export const inboundSchema = DollarEq$inboundSchema;
7936
+ /** @deprecated use `DollarEq$outboundSchema` instead. */
7937
+ export const outboundSchema = DollarEq$outboundSchema;
7938
+ /** @deprecated use `DollarEq$Outbound` instead. */
7939
+ export type Outbound = DollarEq$Outbound;
7940
+ }
7941
+
7942
+ export function dollarEqToJSON(dollarEq: DollarEq): string {
7943
+ return JSON.stringify(DollarEq$outboundSchema.parse(dollarEq));
7944
+ }
7945
+
7946
+ export function dollarEqFromJSON(
7947
+ jsonString: string,
7948
+ ): SafeParseResult<DollarEq, SDKValidationError> {
7949
+ return safeParse(
7950
+ jsonString,
7951
+ (x) => DollarEq$inboundSchema.parse(JSON.parse(x)),
7952
+ `Failed to parse 'DollarEq' from JSON`,
7953
+ );
7954
+ }
7955
+
7956
+ /** @internal */
7957
+ export const KnowledgeFilter1$inboundSchema: z.ZodType<
7958
+ KnowledgeFilter1,
7959
+ z.ZodTypeDef,
7960
+ unknown
7961
+ > = z.union([
7962
+ z.lazy(() => DollarEq$inboundSchema),
7963
+ z.lazy(() => DollarNe$inboundSchema),
7964
+ z.lazy(() => One3$inboundSchema),
7965
+ z.lazy(() => DollarGte$inboundSchema),
7966
+ z.lazy(() => DollarLt$inboundSchema),
7967
+ z.lazy(() => DollarLte$inboundSchema),
7968
+ z.lazy(() => DollarIn$inboundSchema),
7969
+ z.lazy(() => DollarNin$inboundSchema),
7970
+ z.lazy(() => DollarExists$inboundSchema),
7971
+ ]);
7972
+
7973
+ /** @internal */
7974
+ export type KnowledgeFilter1$Outbound =
7975
+ | DollarEq$Outbound
7976
+ | DollarNe$Outbound
7977
+ | One3$Outbound
7978
+ | DollarGte$Outbound
7979
+ | DollarLt$Outbound
7980
+ | DollarLte$Outbound
7981
+ | DollarIn$Outbound
7982
+ | DollarNin$Outbound
7983
+ | DollarExists$Outbound;
7984
+
7985
+ /** @internal */
7986
+ export const KnowledgeFilter1$outboundSchema: z.ZodType<
7987
+ KnowledgeFilter1$Outbound,
7988
+ z.ZodTypeDef,
7989
+ KnowledgeFilter1
7990
+ > = z.union([
7991
+ z.lazy(() => DollarEq$outboundSchema),
7992
+ z.lazy(() => DollarNe$outboundSchema),
7993
+ z.lazy(() => One3$outboundSchema),
7994
+ z.lazy(() => DollarGte$outboundSchema),
7995
+ z.lazy(() => DollarLt$outboundSchema),
7996
+ z.lazy(() => DollarLte$outboundSchema),
7997
+ z.lazy(() => DollarIn$outboundSchema),
7998
+ z.lazy(() => DollarNin$outboundSchema),
7999
+ z.lazy(() => DollarExists$outboundSchema),
8000
+ ]);
8001
+
8002
+ /**
8003
+ * @internal
8004
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
8005
+ */
8006
+ export namespace KnowledgeFilter1$ {
8007
+ /** @deprecated use `KnowledgeFilter1$inboundSchema` instead. */
8008
+ export const inboundSchema = KnowledgeFilter1$inboundSchema;
8009
+ /** @deprecated use `KnowledgeFilter1$outboundSchema` instead. */
8010
+ export const outboundSchema = KnowledgeFilter1$outboundSchema;
8011
+ /** @deprecated use `KnowledgeFilter1$Outbound` instead. */
8012
+ export type Outbound = KnowledgeFilter1$Outbound;
8013
+ }
8014
+
8015
+ export function knowledgeFilter1ToJSON(
8016
+ knowledgeFilter1: KnowledgeFilter1,
8017
+ ): string {
8018
+ return JSON.stringify(
8019
+ KnowledgeFilter1$outboundSchema.parse(knowledgeFilter1),
8020
+ );
8021
+ }
8022
+
8023
+ export function knowledgeFilter1FromJSON(
8024
+ jsonString: string,
8025
+ ): SafeParseResult<KnowledgeFilter1, SDKValidationError> {
8026
+ return safeParse(
8027
+ jsonString,
8028
+ (x) => KnowledgeFilter1$inboundSchema.parse(JSON.parse(x)),
8029
+ `Failed to parse 'KnowledgeFilter1' from JSON`,
8030
+ );
8031
+ }
8032
+
8033
+ /** @internal */
8034
+ export const KnowledgeFilter$inboundSchema: z.ZodType<
8035
+ KnowledgeFilter,
8036
+ z.ZodTypeDef,
8037
+ unknown
8038
+ > = z.union([
8039
+ z.lazy(() => DollarAnd$inboundSchema),
8040
+ z.lazy(() => DollarOr$inboundSchema),
8041
+ z.record(z.union([
8042
+ z.lazy(() => DollarEq$inboundSchema),
8043
+ z.lazy(() => DollarNe$inboundSchema),
8044
+ z.lazy(() => One3$inboundSchema),
8045
+ z.lazy(() => DollarGte$inboundSchema),
8046
+ z.lazy(() => DollarLt$inboundSchema),
8047
+ z.lazy(() => DollarLte$inboundSchema),
8048
+ z.lazy(() => DollarIn$inboundSchema),
8049
+ z.lazy(() => DollarNin$inboundSchema),
8050
+ z.lazy(() => DollarExists$inboundSchema),
8051
+ ])),
8052
+ ]);
8053
+
8054
+ /** @internal */
8055
+ export type KnowledgeFilter$Outbound =
8056
+ | DollarAnd$Outbound
8057
+ | DollarOr$Outbound
8058
+ | {
8059
+ [k: string]:
8060
+ | DollarEq$Outbound
8061
+ | DollarNe$Outbound
8062
+ | One3$Outbound
8063
+ | DollarGte$Outbound
8064
+ | DollarLt$Outbound
8065
+ | DollarLte$Outbound
8066
+ | DollarIn$Outbound
8067
+ | DollarNin$Outbound
8068
+ | DollarExists$Outbound;
8069
+ };
8070
+
8071
+ /** @internal */
8072
+ export const KnowledgeFilter$outboundSchema: z.ZodType<
8073
+ KnowledgeFilter$Outbound,
8074
+ z.ZodTypeDef,
8075
+ KnowledgeFilter
8076
+ > = z.union([
8077
+ z.lazy(() => DollarAnd$outboundSchema),
8078
+ z.lazy(() => DollarOr$outboundSchema),
8079
+ z.record(z.union([
8080
+ z.lazy(() => DollarEq$outboundSchema),
8081
+ z.lazy(() => DollarNe$outboundSchema),
8082
+ z.lazy(() => One3$outboundSchema),
8083
+ z.lazy(() => DollarGte$outboundSchema),
8084
+ z.lazy(() => DollarLt$outboundSchema),
8085
+ z.lazy(() => DollarLte$outboundSchema),
8086
+ z.lazy(() => DollarIn$outboundSchema),
8087
+ z.lazy(() => DollarNin$outboundSchema),
8088
+ z.lazy(() => DollarExists$outboundSchema),
8089
+ ])),
8090
+ ]);
8091
+
8092
+ /**
8093
+ * @internal
8094
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
8095
+ */
8096
+ export namespace KnowledgeFilter$ {
8097
+ /** @deprecated use `KnowledgeFilter$inboundSchema` instead. */
8098
+ export const inboundSchema = KnowledgeFilter$inboundSchema;
8099
+ /** @deprecated use `KnowledgeFilter$outboundSchema` instead. */
8100
+ export const outboundSchema = KnowledgeFilter$outboundSchema;
8101
+ /** @deprecated use `KnowledgeFilter$Outbound` instead. */
8102
+ export type Outbound = KnowledgeFilter$Outbound;
8103
+ }
8104
+
8105
+ export function knowledgeFilterToJSON(
8106
+ knowledgeFilter: KnowledgeFilter,
8107
+ ): string {
8108
+ return JSON.stringify(KnowledgeFilter$outboundSchema.parse(knowledgeFilter));
8109
+ }
8110
+
8111
+ export function knowledgeFilterFromJSON(
8112
+ jsonString: string,
8113
+ ): SafeParseResult<KnowledgeFilter, SDKValidationError> {
8114
+ return safeParse(
8115
+ jsonString,
8116
+ (x) => KnowledgeFilter$inboundSchema.parse(JSON.parse(x)),
8117
+ `Failed to parse 'KnowledgeFilter' from JSON`,
8118
+ );
8119
+ }
8120
+
8121
+ /** @internal */
8122
+ export const DeploymentGetConfigRequestBody$inboundSchema: z.ZodType<
8123
+ DeploymentGetConfigRequestBody,
8124
+ z.ZodTypeDef,
8125
+ unknown
8126
+ > = z.object({
8127
+ key: z.string(),
8128
+ inputs: z.record(z.union([z.string(), z.number(), z.boolean()])).optional(),
8129
+ context: z.record(z.any()).optional(),
8130
+ prefix_messages: z.array(
8131
+ z.union([
8132
+ z.lazy(() => DeveloperMessage$inboundSchema),
8133
+ z.lazy(() => SystemMessage$inboundSchema),
8134
+ z.lazy(() => UserMessage$inboundSchema),
8135
+ z.lazy(() => ToolMessage$inboundSchema),
8136
+ z.lazy(() => AssistantMessage$inboundSchema),
8137
+ ]),
8138
+ ).optional(),
8139
+ messages: z.array(
4646
8140
  z.union([
4647
8141
  z.lazy(() => MessagesDeveloperMessage$inboundSchema),
4648
8142
  z.lazy(() => MessagesSystemMessage$inboundSchema),
@@ -4657,12 +8151,28 @@ export const DeploymentGetConfigRequestBody$inboundSchema: z.ZodType<
4657
8151
  documents: z.array(z.lazy(() => Documents$inboundSchema)).optional(),
4658
8152
  invoke_options: z.lazy(() => InvokeOptions$inboundSchema).optional(),
4659
8153
  thread: z.lazy(() => Thread$inboundSchema).optional(),
8154
+ knowledge_filter: z.union([
8155
+ z.lazy(() => DollarAnd$inboundSchema),
8156
+ z.lazy(() => DollarOr$inboundSchema),
8157
+ z.record(z.union([
8158
+ z.lazy(() => DollarEq$inboundSchema),
8159
+ z.lazy(() => DollarNe$inboundSchema),
8160
+ z.lazy(() => One3$inboundSchema),
8161
+ z.lazy(() => DollarGte$inboundSchema),
8162
+ z.lazy(() => DollarLt$inboundSchema),
8163
+ z.lazy(() => DollarLte$inboundSchema),
8164
+ z.lazy(() => DollarIn$inboundSchema),
8165
+ z.lazy(() => DollarNin$inboundSchema),
8166
+ z.lazy(() => DollarExists$inboundSchema),
8167
+ ])),
8168
+ ]).optional(),
4660
8169
  }).transform((v) => {
4661
8170
  return remap$(v, {
4662
8171
  "prefix_messages": "prefixMessages",
4663
8172
  "file_ids": "fileIds",
4664
8173
  "extra_params": "extraParams",
4665
8174
  "invoke_options": "invokeOptions",
8175
+ "knowledge_filter": "knowledgeFilter",
4666
8176
  });
4667
8177
  });
4668
8178
 
@@ -4695,6 +8205,18 @@ export type DeploymentGetConfigRequestBody$Outbound = {
4695
8205
  documents?: Array<Documents$Outbound> | undefined;
4696
8206
  invoke_options?: InvokeOptions$Outbound | undefined;
4697
8207
  thread?: Thread$Outbound | undefined;
8208
+ knowledge_filter?: DollarAnd$Outbound | DollarOr$Outbound | {
8209
+ [k: string]:
8210
+ | DollarEq$Outbound
8211
+ | DollarNe$Outbound
8212
+ | One3$Outbound
8213
+ | DollarGte$Outbound
8214
+ | DollarLt$Outbound
8215
+ | DollarLte$Outbound
8216
+ | DollarIn$Outbound
8217
+ | DollarNin$Outbound
8218
+ | DollarExists$Outbound;
8219
+ } | undefined;
4698
8220
  };
4699
8221
 
4700
8222
  /** @internal */
@@ -4730,12 +8252,28 @@ export const DeploymentGetConfigRequestBody$outboundSchema: z.ZodType<
4730
8252
  documents: z.array(z.lazy(() => Documents$outboundSchema)).optional(),
4731
8253
  invokeOptions: z.lazy(() => InvokeOptions$outboundSchema).optional(),
4732
8254
  thread: z.lazy(() => Thread$outboundSchema).optional(),
8255
+ knowledgeFilter: z.union([
8256
+ z.lazy(() => DollarAnd$outboundSchema),
8257
+ z.lazy(() => DollarOr$outboundSchema),
8258
+ z.record(z.union([
8259
+ z.lazy(() => DollarEq$outboundSchema),
8260
+ z.lazy(() => DollarNe$outboundSchema),
8261
+ z.lazy(() => One3$outboundSchema),
8262
+ z.lazy(() => DollarGte$outboundSchema),
8263
+ z.lazy(() => DollarLt$outboundSchema),
8264
+ z.lazy(() => DollarLte$outboundSchema),
8265
+ z.lazy(() => DollarIn$outboundSchema),
8266
+ z.lazy(() => DollarNin$outboundSchema),
8267
+ z.lazy(() => DollarExists$outboundSchema),
8268
+ ])),
8269
+ ]).optional(),
4733
8270
  }).transform((v) => {
4734
8271
  return remap$(v, {
4735
8272
  prefixMessages: "prefix_messages",
4736
8273
  fileIds: "file_ids",
4737
8274
  extraParams: "extra_params",
4738
8275
  invokeOptions: "invoke_options",
8276
+ knowledgeFilter: "knowledge_filter",
4739
8277
  });
4740
8278
  });
4741
8279