aws-runtime-bridge 1.9.71 → 1.9.73

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 (990) hide show
  1. package/dist/routes/terminal.d.ts.map +1 -1
  2. package/dist/routes/terminal.js +41 -3
  3. package/dist/services/auto-register.d.ts +13 -0
  4. package/dist/services/auto-register.d.ts.map +1 -1
  5. package/dist/services/auto-register.js +36 -1
  6. package/dist/services/session-output.d.ts.map +1 -1
  7. package/dist/services/session-output.js +18 -3
  8. package/dist/services/tunnel-client.js +4 -0
  9. package/node_modules/zod/mini/index.cjs +17 -0
  10. package/node_modules/zod/mini/index.d.cts +1 -0
  11. package/node_modules/zod/mini/index.d.ts +1 -0
  12. package/node_modules/zod/mini/index.js +1 -0
  13. package/node_modules/zod/package.json +135 -0
  14. package/node_modules/zod/src/mini/index.ts +1 -0
  15. package/node_modules/zod/src/v3/tests/complex.test.ts +56 -0
  16. package/node_modules/zod/src/v3/tests/function.test.ts +257 -0
  17. package/node_modules/zod/src/v3/tests/nan.test.ts +21 -0
  18. package/node_modules/zod/src/v4/classic/checks.ts +31 -0
  19. package/node_modules/zod/src/v4/classic/external.ts +50 -0
  20. package/node_modules/zod/src/v4/classic/schemas.ts +2197 -0
  21. package/node_modules/zod/src/v4/classic/tests/brand.test.ts +63 -0
  22. package/node_modules/zod/src/v4/classic/tests/codec.test.ts +562 -0
  23. package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +352 -0
  24. package/node_modules/zod/src/v4/classic/tests/date.test.ts +31 -0
  25. package/node_modules/zod/src/v4/classic/tests/function.test.ts +308 -0
  26. package/node_modules/zod/src/v4/classic/tests/index.test.ts +844 -0
  27. package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +34 -0
  28. package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +171 -0
  29. package/node_modules/zod/src/v4/classic/tests/json.test.ts +108 -0
  30. package/node_modules/zod/src/v4/classic/tests/map.test.ts +196 -0
  31. package/node_modules/zod/src/v4/classic/tests/object.test.ts +609 -0
  32. package/node_modules/zod/src/v4/classic/tests/optional.test.ts +136 -0
  33. package/node_modules/zod/src/v4/classic/tests/partial.test.ts +340 -0
  34. package/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +127 -0
  35. package/node_modules/zod/src/v4/classic/tests/promise.test.ts +81 -0
  36. package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +252 -0
  37. package/node_modules/zod/src/v4/classic/tests/record.test.ts +356 -0
  38. package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +582 -0
  39. package/node_modules/zod/src/v4/classic/tests/refine.test.ts +605 -0
  40. package/node_modules/zod/src/v4/classic/tests/registries.test.ts +204 -0
  41. package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +57 -0
  42. package/node_modules/zod/src/v4/classic/tests/string.test.ts +1080 -0
  43. package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +763 -0
  44. package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +2622 -0
  45. package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +163 -0
  46. package/node_modules/zod/src/v4/classic/tests/union.test.ts +181 -0
  47. package/node_modules/zod/src/v4/core/api.ts +1621 -0
  48. package/node_modules/zod/src/v4/core/checks.ts +1287 -0
  49. package/node_modules/zod/src/v4/core/core.ts +115 -0
  50. package/node_modules/zod/src/v4/core/errors.ts +413 -0
  51. package/node_modules/zod/src/v4/core/index.ts +14 -0
  52. package/node_modules/zod/src/v4/core/regexes.ts +177 -0
  53. package/node_modules/zod/src/v4/core/registries.ts +97 -0
  54. package/node_modules/zod/src/v4/core/schemas.ts +4317 -0
  55. package/node_modules/zod/src/v4/core/standard-schema.ts +64 -0
  56. package/node_modules/zod/src/v4/core/tests/extend.test.ts +18 -0
  57. package/node_modules/zod/src/v4/core/tests/locales/en.test.ts +22 -0
  58. package/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +69 -0
  59. package/node_modules/zod/src/v4/core/to-json-schema.ts +1044 -0
  60. package/node_modules/zod/src/v4/core/util.ts +910 -0
  61. package/node_modules/zod/src/v4/core/versions.ts +5 -0
  62. package/node_modules/zod/src/v4/locales/ar.ts +125 -0
  63. package/node_modules/zod/src/v4/locales/az.ts +121 -0
  64. package/node_modules/zod/src/v4/locales/be.ts +184 -0
  65. package/node_modules/zod/src/v4/locales/bg.ts +136 -0
  66. package/node_modules/zod/src/v4/locales/ca.ts +127 -0
  67. package/node_modules/zod/src/v4/locales/cs.ts +142 -0
  68. package/node_modules/zod/src/v4/locales/da.ts +141 -0
  69. package/node_modules/zod/src/v4/locales/de.ts +124 -0
  70. package/node_modules/zod/src/v4/locales/en.ts +127 -0
  71. package/node_modules/zod/src/v4/locales/eo.ts +125 -0
  72. package/node_modules/zod/src/v4/locales/es.ts +159 -0
  73. package/node_modules/zod/src/v4/locales/fa.ts +134 -0
  74. package/node_modules/zod/src/v4/locales/fi.ts +131 -0
  75. package/node_modules/zod/src/v4/locales/fr-CA.ts +126 -0
  76. package/node_modules/zod/src/v4/locales/fr.ts +124 -0
  77. package/node_modules/zod/src/v4/locales/he.ts +125 -0
  78. package/node_modules/zod/src/v4/locales/hu.ts +126 -0
  79. package/node_modules/zod/src/v4/locales/id.ts +125 -0
  80. package/node_modules/zod/src/v4/locales/index.ts +47 -0
  81. package/node_modules/zod/src/v4/locales/is.ts +127 -0
  82. package/node_modules/zod/src/v4/locales/it.ts +125 -0
  83. package/node_modules/zod/src/v4/locales/ja.ts +122 -0
  84. package/node_modules/zod/src/v4/locales/ka.ts +138 -0
  85. package/node_modules/zod/src/v4/locales/km.ts +126 -0
  86. package/node_modules/zod/src/v4/locales/ko.ts +131 -0
  87. package/node_modules/zod/src/v4/locales/lt.ts +265 -0
  88. package/node_modules/zod/src/v4/locales/mk.ts +127 -0
  89. package/node_modules/zod/src/v4/locales/ms.ts +124 -0
  90. package/node_modules/zod/src/v4/locales/nl.ts +126 -0
  91. package/node_modules/zod/src/v4/locales/no.ts +124 -0
  92. package/node_modules/zod/src/v4/locales/ota.ts +125 -0
  93. package/node_modules/zod/src/v4/locales/pl.ts +126 -0
  94. package/node_modules/zod/src/v4/locales/ps.ts +133 -0
  95. package/node_modules/zod/src/v4/locales/pt.ts +123 -0
  96. package/node_modules/zod/src/v4/locales/ru.ts +184 -0
  97. package/node_modules/zod/src/v4/locales/sl.ts +126 -0
  98. package/node_modules/zod/src/v4/locales/sv.ts +127 -0
  99. package/node_modules/zod/src/v4/locales/ta.ts +125 -0
  100. package/node_modules/zod/src/v4/locales/th.ts +126 -0
  101. package/node_modules/zod/src/v4/locales/tr.ts +121 -0
  102. package/node_modules/zod/src/v4/locales/uk.ts +126 -0
  103. package/node_modules/zod/src/v4/locales/ur.ts +126 -0
  104. package/node_modules/zod/src/v4/locales/vi.ts +125 -0
  105. package/node_modules/zod/src/v4/locales/yo.ts +131 -0
  106. package/node_modules/zod/src/v4/locales/zh-CN.ts +123 -0
  107. package/node_modules/zod/src/v4/locales/zh-TW.ts +125 -0
  108. package/node_modules/zod/src/v4/mini/coerce.ts +22 -0
  109. package/node_modules/zod/src/v4/mini/external.ts +40 -0
  110. package/node_modules/zod/src/v4/mini/iso.ts +62 -0
  111. package/node_modules/zod/src/v4/mini/schemas.ts +1725 -0
  112. package/node_modules/zod/src/v4/mini/tests/brand.test.ts +51 -0
  113. package/node_modules/zod/src/v4/mini/tests/functions.test.ts +43 -0
  114. package/node_modules/zod/src/v4/mini/tests/index.test.ts +899 -0
  115. package/node_modules/zod/src/v4/mini/tests/object.test.ts +200 -0
  116. package/node_modules/zod/src/v4/mini/tests/string.test.ts +315 -0
  117. package/node_modules/zod/src/v4-mini/index.ts +1 -0
  118. package/node_modules/zod/v3/ZodError.d.cts +164 -0
  119. package/node_modules/zod/v3/ZodError.d.ts +164 -0
  120. package/node_modules/zod/v4/classic/checks.cjs +32 -0
  121. package/node_modules/zod/v4/classic/checks.d.cts +1 -0
  122. package/node_modules/zod/v4/classic/checks.d.ts +1 -0
  123. package/node_modules/zod/v4/classic/checks.js +1 -0
  124. package/node_modules/zod/v4/classic/external.cjs +70 -0
  125. package/node_modules/zod/v4/classic/external.d.cts +13 -0
  126. package/node_modules/zod/v4/classic/external.d.ts +13 -0
  127. package/node_modules/zod/v4/classic/external.js +18 -0
  128. package/node_modules/zod/v4/classic/schemas.cjs +1151 -0
  129. package/node_modules/zod/v4/classic/schemas.d.cts +673 -0
  130. package/node_modules/zod/v4/classic/schemas.d.ts +673 -0
  131. package/node_modules/zod/v4/classic/schemas.js +1040 -0
  132. package/node_modules/zod/v4/core/api.cjs +1060 -0
  133. package/node_modules/zod/v4/core/api.d.cts +295 -0
  134. package/node_modules/zod/v4/core/api.d.ts +295 -0
  135. package/node_modules/zod/v4/core/api.js +925 -0
  136. package/node_modules/zod/v4/core/checks.cjs +595 -0
  137. package/node_modules/zod/v4/core/checks.js +569 -0
  138. package/node_modules/zod/v4/core/core.cjs +74 -0
  139. package/node_modules/zod/v4/core/core.d.cts +52 -0
  140. package/node_modules/zod/v4/core/core.d.ts +52 -0
  141. package/node_modules/zod/v4/core/core.js +67 -0
  142. package/node_modules/zod/v4/core/errors.d.cts +210 -0
  143. package/node_modules/zod/v4/core/errors.d.ts +210 -0
  144. package/node_modules/zod/v4/core/index.cjs +43 -0
  145. package/node_modules/zod/v4/core/index.d.cts +14 -0
  146. package/node_modules/zod/v4/core/index.d.ts +14 -0
  147. package/node_modules/zod/v4/core/index.js +14 -0
  148. package/node_modules/zod/v4/core/regexes.cjs +136 -0
  149. package/node_modules/zod/v4/core/regexes.d.cts +78 -0
  150. package/node_modules/zod/v4/core/regexes.d.ts +78 -0
  151. package/node_modules/zod/v4/core/regexes.js +127 -0
  152. package/node_modules/zod/v4/core/registries.cjs +57 -0
  153. package/node_modules/zod/v4/core/registries.js +52 -0
  154. package/node_modules/zod/v4/core/schemas.cjs +1986 -0
  155. package/node_modules/zod/v4/core/schemas.d.cts +1113 -0
  156. package/node_modules/zod/v4/core/schemas.d.ts +1113 -0
  157. package/node_modules/zod/v4/core/schemas.js +1955 -0
  158. package/node_modules/zod/v4/core/standard-schema.d.cts +55 -0
  159. package/node_modules/zod/v4/core/standard-schema.d.ts +55 -0
  160. package/node_modules/zod/v4/core/to-json-schema.cjs +920 -0
  161. package/node_modules/zod/v4/core/to-json-schema.d.cts +90 -0
  162. package/node_modules/zod/v4/core/to-json-schema.d.ts +90 -0
  163. package/node_modules/zod/v4/core/to-json-schema.js +915 -0
  164. package/node_modules/zod/v4/core/util.cjs +658 -0
  165. package/node_modules/zod/v4/core/util.d.cts +197 -0
  166. package/node_modules/zod/v4/core/util.d.ts +197 -0
  167. package/node_modules/zod/v4/core/util.js +601 -0
  168. package/node_modules/zod/v4/core/versions.cjs +8 -0
  169. package/node_modules/zod/v4/core/versions.d.cts +5 -0
  170. package/node_modules/zod/v4/core/versions.d.ts +5 -0
  171. package/node_modules/zod/v4/core/versions.js +5 -0
  172. package/node_modules/zod/v4/locales/ar.cjs +143 -0
  173. package/node_modules/zod/v4/locales/ar.js +116 -0
  174. package/node_modules/zod/v4/locales/az.cjs +142 -0
  175. package/node_modules/zod/v4/locales/az.js +115 -0
  176. package/node_modules/zod/v4/locales/be.cjs +191 -0
  177. package/node_modules/zod/v4/locales/be.js +164 -0
  178. package/node_modules/zod/v4/locales/bg.cjs +156 -0
  179. package/node_modules/zod/v4/locales/bg.d.cts +5 -0
  180. package/node_modules/zod/v4/locales/bg.d.ts +5 -0
  181. package/node_modules/zod/v4/locales/bg.js +128 -0
  182. package/node_modules/zod/v4/locales/ca.cjs +145 -0
  183. package/node_modules/zod/v4/locales/ca.js +118 -0
  184. package/node_modules/zod/v4/locales/cs.cjs +162 -0
  185. package/node_modules/zod/v4/locales/cs.js +135 -0
  186. package/node_modules/zod/v4/locales/da.cjs +158 -0
  187. package/node_modules/zod/v4/locales/da.js +131 -0
  188. package/node_modules/zod/v4/locales/de.cjs +143 -0
  189. package/node_modules/zod/v4/locales/de.js +116 -0
  190. package/node_modules/zod/v4/locales/en.cjs +145 -0
  191. package/node_modules/zod/v4/locales/en.d.cts +5 -0
  192. package/node_modules/zod/v4/locales/en.d.ts +5 -0
  193. package/node_modules/zod/v4/locales/en.js +117 -0
  194. package/node_modules/zod/v4/locales/eo.cjs +144 -0
  195. package/node_modules/zod/v4/locales/eo.d.cts +5 -0
  196. package/node_modules/zod/v4/locales/eo.d.ts +5 -0
  197. package/node_modules/zod/v4/locales/eo.js +116 -0
  198. package/node_modules/zod/v4/locales/es.cjs +176 -0
  199. package/node_modules/zod/v4/locales/es.js +149 -0
  200. package/node_modules/zod/v4/locales/fa.cjs +149 -0
  201. package/node_modules/zod/v4/locales/fa.js +122 -0
  202. package/node_modules/zod/v4/locales/fi.cjs +149 -0
  203. package/node_modules/zod/v4/locales/fi.js +122 -0
  204. package/node_modules/zod/v4/locales/fr-CA.cjs +144 -0
  205. package/node_modules/zod/v4/locales/fr-CA.js +117 -0
  206. package/node_modules/zod/v4/locales/fr.cjs +143 -0
  207. package/node_modules/zod/v4/locales/fr.js +116 -0
  208. package/node_modules/zod/v4/locales/he.cjs +144 -0
  209. package/node_modules/zod/v4/locales/he.js +117 -0
  210. package/node_modules/zod/v4/locales/hu.cjs +144 -0
  211. package/node_modules/zod/v4/locales/hu.js +117 -0
  212. package/node_modules/zod/v4/locales/id.cjs +143 -0
  213. package/node_modules/zod/v4/locales/id.js +116 -0
  214. package/node_modules/zod/v4/locales/index.cjs +100 -0
  215. package/node_modules/zod/v4/locales/index.d.cts +47 -0
  216. package/node_modules/zod/v4/locales/index.d.ts +47 -0
  217. package/node_modules/zod/v4/locales/index.js +47 -0
  218. package/node_modules/zod/v4/locales/is.cjs +145 -0
  219. package/node_modules/zod/v4/locales/is.d.cts +5 -0
  220. package/node_modules/zod/v4/locales/is.d.ts +5 -0
  221. package/node_modules/zod/v4/locales/is.js +117 -0
  222. package/node_modules/zod/v4/locales/it.cjs +144 -0
  223. package/node_modules/zod/v4/locales/it.js +117 -0
  224. package/node_modules/zod/v4/locales/ja.cjs +142 -0
  225. package/node_modules/zod/v4/locales/ja.js +115 -0
  226. package/node_modules/zod/v4/locales/ka.cjs +153 -0
  227. package/node_modules/zod/v4/locales/ka.d.cts +5 -0
  228. package/node_modules/zod/v4/locales/ka.d.ts +5 -0
  229. package/node_modules/zod/v4/locales/ka.js +125 -0
  230. package/node_modules/zod/v4/locales/km.cjs +144 -0
  231. package/node_modules/zod/v4/locales/km.js +117 -0
  232. package/node_modules/zod/v4/locales/ko.cjs +148 -0
  233. package/node_modules/zod/v4/locales/ko.js +121 -0
  234. package/node_modules/zod/v4/locales/lt.cjs +258 -0
  235. package/node_modules/zod/v4/locales/lt.d.cts +5 -0
  236. package/node_modules/zod/v4/locales/lt.d.ts +5 -0
  237. package/node_modules/zod/v4/locales/lt.js +230 -0
  238. package/node_modules/zod/v4/locales/mk.cjs +145 -0
  239. package/node_modules/zod/v4/locales/mk.js +118 -0
  240. package/node_modules/zod/v4/locales/ms.cjs +143 -0
  241. package/node_modules/zod/v4/locales/ms.js +116 -0
  242. package/node_modules/zod/v4/locales/nl.cjs +144 -0
  243. package/node_modules/zod/v4/locales/nl.js +117 -0
  244. package/node_modules/zod/v4/locales/no.cjs +143 -0
  245. package/node_modules/zod/v4/locales/no.js +116 -0
  246. package/node_modules/zod/v4/locales/ota.cjs +144 -0
  247. package/node_modules/zod/v4/locales/ota.js +117 -0
  248. package/node_modules/zod/v4/locales/pl.cjs +144 -0
  249. package/node_modules/zod/v4/locales/pl.js +117 -0
  250. package/node_modules/zod/v4/locales/ps.cjs +149 -0
  251. package/node_modules/zod/v4/locales/ps.js +122 -0
  252. package/node_modules/zod/v4/locales/pt.cjs +143 -0
  253. package/node_modules/zod/v4/locales/pt.js +116 -0
  254. package/node_modules/zod/v4/locales/ru.cjs +191 -0
  255. package/node_modules/zod/v4/locales/ru.js +164 -0
  256. package/node_modules/zod/v4/locales/sl.cjs +144 -0
  257. package/node_modules/zod/v4/locales/sl.js +117 -0
  258. package/node_modules/zod/v4/locales/sv.cjs +145 -0
  259. package/node_modules/zod/v4/locales/sv.js +118 -0
  260. package/node_modules/zod/v4/locales/ta.cjs +144 -0
  261. package/node_modules/zod/v4/locales/ta.js +117 -0
  262. package/node_modules/zod/v4/locales/th.cjs +144 -0
  263. package/node_modules/zod/v4/locales/th.js +117 -0
  264. package/node_modules/zod/v4/locales/tr.cjs +143 -0
  265. package/node_modules/zod/v4/locales/tr.d.cts +5 -0
  266. package/node_modules/zod/v4/locales/tr.d.ts +5 -0
  267. package/node_modules/zod/v4/locales/tr.js +115 -0
  268. package/node_modules/zod/v4/locales/uk.cjs +144 -0
  269. package/node_modules/zod/v4/locales/uk.js +117 -0
  270. package/node_modules/zod/v4/locales/ur.cjs +144 -0
  271. package/node_modules/zod/v4/locales/ur.js +117 -0
  272. package/node_modules/zod/v4/locales/vi.cjs +143 -0
  273. package/node_modules/zod/v4/locales/vi.js +116 -0
  274. package/node_modules/zod/v4/locales/yo.cjs +142 -0
  275. package/node_modules/zod/v4/locales/yo.js +115 -0
  276. package/node_modules/zod/v4/locales/zh-CN.cjs +143 -0
  277. package/node_modules/zod/v4/locales/zh-CN.js +116 -0
  278. package/node_modules/zod/v4/locales/zh-TW.cjs +144 -0
  279. package/node_modules/zod/v4/locales/zh-TW.js +117 -0
  280. package/node_modules/zod/v4/mini/coerce.cjs +47 -0
  281. package/node_modules/zod/v4/mini/coerce.js +17 -0
  282. package/node_modules/zod/v4/mini/external.cjs +62 -0
  283. package/node_modules/zod/v4/mini/external.d.cts +11 -0
  284. package/node_modules/zod/v4/mini/external.d.ts +11 -0
  285. package/node_modules/zod/v4/mini/external.js +13 -0
  286. package/node_modules/zod/v4/mini/iso.cjs +60 -0
  287. package/node_modules/zod/v4/mini/iso.js +30 -0
  288. package/node_modules/zod/v4/mini/schemas.cjs +892 -0
  289. package/node_modules/zod/v4/mini/schemas.d.cts +407 -0
  290. package/node_modules/zod/v4/mini/schemas.d.ts +407 -0
  291. package/node_modules/zod/v4/mini/schemas.js +775 -0
  292. package/node_modules/zod/v4-mini/index.cjs +17 -0
  293. package/node_modules/zod/v4-mini/index.d.cts +1 -0
  294. package/node_modules/zod/v4-mini/index.d.ts +1 -0
  295. package/node_modules/zod/v4-mini/index.js +1 -0
  296. package/package.json +3 -1
  297. package/package/cc-switch-sdk/node_modules/zod/mini/index.cjs +0 -32
  298. package/package/cc-switch-sdk/node_modules/zod/mini/index.d.cts +0 -3
  299. package/package/cc-switch-sdk/node_modules/zod/mini/index.d.ts +0 -3
  300. package/package/cc-switch-sdk/node_modules/zod/mini/index.js +0 -3
  301. package/package/cc-switch-sdk/node_modules/zod/package.json +0 -135
  302. package/package/cc-switch-sdk/node_modules/zod/src/mini/index.ts +0 -3
  303. package/package/cc-switch-sdk/node_modules/zod/src/v3/tests/complex.test.ts +0 -70
  304. package/package/cc-switch-sdk/node_modules/zod/src/v3/tests/function.test.ts +0 -261
  305. package/package/cc-switch-sdk/node_modules/zod/src/v3/tests/nan.test.ts +0 -24
  306. package/package/cc-switch-sdk/node_modules/zod/src/v4/classic/checks.ts +0 -32
  307. package/package/cc-switch-sdk/node_modules/zod/src/v4/classic/external.ts +0 -51
  308. package/package/cc-switch-sdk/node_modules/zod/src/v4/classic/from-json-schema.ts +0 -643
  309. package/package/cc-switch-sdk/node_modules/zod/src/v4/classic/schemas.ts +0 -2409
  310. package/package/cc-switch-sdk/node_modules/zod/src/v4/classic/tests/apply.test.ts +0 -59
  311. package/package/cc-switch-sdk/node_modules/zod/src/v4/classic/tests/brand.test.ts +0 -106
  312. package/package/cc-switch-sdk/node_modules/zod/src/v4/classic/tests/codec.test.ts +0 -562
  313. package/package/cc-switch-sdk/node_modules/zod/src/v4/classic/tests/continuability.test.ts +0 -374
  314. package/package/cc-switch-sdk/node_modules/zod/src/v4/classic/tests/date.test.ts +0 -62
  315. package/package/cc-switch-sdk/node_modules/zod/src/v4/classic/tests/describe-meta-checks.test.ts +0 -27
  316. package/package/cc-switch-sdk/node_modules/zod/src/v4/classic/tests/fix-json-issue.test.ts +0 -26
  317. package/package/cc-switch-sdk/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +0 -734
  318. package/package/cc-switch-sdk/node_modules/zod/src/v4/classic/tests/function.test.ts +0 -360
  319. package/package/cc-switch-sdk/node_modules/zod/src/v4/classic/tests/index.test.ts +0 -939
  320. package/package/cc-switch-sdk/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +0 -60
  321. package/package/cc-switch-sdk/node_modules/zod/src/v4/classic/tests/intersection.test.ts +0 -198
  322. package/package/cc-switch-sdk/node_modules/zod/src/v4/classic/tests/json.test.ts +0 -109
  323. package/package/cc-switch-sdk/node_modules/zod/src/v4/classic/tests/map.test.ts +0 -330
  324. package/package/cc-switch-sdk/node_modules/zod/src/v4/classic/tests/object.test.ts +0 -640
  325. package/package/cc-switch-sdk/node_modules/zod/src/v4/classic/tests/optional.test.ts +0 -223
  326. package/package/cc-switch-sdk/node_modules/zod/src/v4/classic/tests/partial.test.ts +0 -427
  327. package/package/cc-switch-sdk/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +0 -211
  328. package/package/cc-switch-sdk/node_modules/zod/src/v4/classic/tests/promise.test.ts +0 -81
  329. package/package/cc-switch-sdk/node_modules/zod/src/v4/classic/tests/readonly.test.ts +0 -252
  330. package/package/cc-switch-sdk/node_modules/zod/src/v4/classic/tests/record.test.ts +0 -632
  331. package/package/cc-switch-sdk/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +0 -582
  332. package/package/cc-switch-sdk/node_modules/zod/src/v4/classic/tests/refine.test.ts +0 -570
  333. package/package/cc-switch-sdk/node_modules/zod/src/v4/classic/tests/registries.test.ts +0 -243
  334. package/package/cc-switch-sdk/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +0 -134
  335. package/package/cc-switch-sdk/node_modules/zod/src/v4/classic/tests/string.test.ts +0 -1175
  336. package/package/cc-switch-sdk/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +0 -771
  337. package/package/cc-switch-sdk/node_modules/zod/src/v4/classic/tests/to-json-schema-methods.test.ts +0 -438
  338. package/package/cc-switch-sdk/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +0 -2990
  339. package/package/cc-switch-sdk/node_modules/zod/src/v4/classic/tests/tuple.test.ts +0 -183
  340. package/package/cc-switch-sdk/node_modules/zod/src/v4/classic/tests/union.test.ts +0 -219
  341. package/package/cc-switch-sdk/node_modules/zod/src/v4/classic/tests/url.test.ts +0 -13
  342. package/package/cc-switch-sdk/node_modules/zod/src/v4/core/api.ts +0 -1798
  343. package/package/cc-switch-sdk/node_modules/zod/src/v4/core/checks.ts +0 -1293
  344. package/package/cc-switch-sdk/node_modules/zod/src/v4/core/core.ts +0 -138
  345. package/package/cc-switch-sdk/node_modules/zod/src/v4/core/errors.ts +0 -448
  346. package/package/cc-switch-sdk/node_modules/zod/src/v4/core/index.ts +0 -16
  347. package/package/cc-switch-sdk/node_modules/zod/src/v4/core/json-schema-generator.ts +0 -126
  348. package/package/cc-switch-sdk/node_modules/zod/src/v4/core/json-schema-processors.ts +0 -667
  349. package/package/cc-switch-sdk/node_modules/zod/src/v4/core/regexes.ts +0 -183
  350. package/package/cc-switch-sdk/node_modules/zod/src/v4/core/registries.ts +0 -105
  351. package/package/cc-switch-sdk/node_modules/zod/src/v4/core/schemas.ts +0 -4538
  352. package/package/cc-switch-sdk/node_modules/zod/src/v4/core/standard-schema.ts +0 -159
  353. package/package/cc-switch-sdk/node_modules/zod/src/v4/core/tests/extend.test.ts +0 -59
  354. package/package/cc-switch-sdk/node_modules/zod/src/v4/core/tests/locales/en.test.ts +0 -22
  355. package/package/cc-switch-sdk/node_modules/zod/src/v4/core/tests/locales/he.test.ts +0 -379
  356. package/package/cc-switch-sdk/node_modules/zod/src/v4/core/tests/locales/nl.test.ts +0 -46
  357. package/package/cc-switch-sdk/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +0 -69
  358. package/package/cc-switch-sdk/node_modules/zod/src/v4/core/tests/locales/uz.test.ts +0 -83
  359. package/package/cc-switch-sdk/node_modules/zod/src/v4/core/tests/record-constructor.test.ts +0 -67
  360. package/package/cc-switch-sdk/node_modules/zod/src/v4/core/tests/recursive-tuples.test.ts +0 -45
  361. package/package/cc-switch-sdk/node_modules/zod/src/v4/core/to-json-schema.ts +0 -613
  362. package/package/cc-switch-sdk/node_modules/zod/src/v4/core/util.ts +0 -966
  363. package/package/cc-switch-sdk/node_modules/zod/src/v4/core/versions.ts +0 -5
  364. package/package/cc-switch-sdk/node_modules/zod/src/v4/locales/ar.ts +0 -115
  365. package/package/cc-switch-sdk/node_modules/zod/src/v4/locales/az.ts +0 -111
  366. package/package/cc-switch-sdk/node_modules/zod/src/v4/locales/be.ts +0 -176
  367. package/package/cc-switch-sdk/node_modules/zod/src/v4/locales/bg.ts +0 -128
  368. package/package/cc-switch-sdk/node_modules/zod/src/v4/locales/ca.ts +0 -116
  369. package/package/cc-switch-sdk/node_modules/zod/src/v4/locales/cs.ts +0 -118
  370. package/package/cc-switch-sdk/node_modules/zod/src/v4/locales/da.ts +0 -123
  371. package/package/cc-switch-sdk/node_modules/zod/src/v4/locales/de.ts +0 -116
  372. package/package/cc-switch-sdk/node_modules/zod/src/v4/locales/en.ts +0 -119
  373. package/package/cc-switch-sdk/node_modules/zod/src/v4/locales/eo.ts +0 -118
  374. package/package/cc-switch-sdk/node_modules/zod/src/v4/locales/es.ts +0 -141
  375. package/package/cc-switch-sdk/node_modules/zod/src/v4/locales/fa.ts +0 -126
  376. package/package/cc-switch-sdk/node_modules/zod/src/v4/locales/fi.ts +0 -121
  377. package/package/cc-switch-sdk/node_modules/zod/src/v4/locales/fr-CA.ts +0 -116
  378. package/package/cc-switch-sdk/node_modules/zod/src/v4/locales/fr.ts +0 -116
  379. package/package/cc-switch-sdk/node_modules/zod/src/v4/locales/he.ts +0 -246
  380. package/package/cc-switch-sdk/node_modules/zod/src/v4/locales/hu.ts +0 -117
  381. package/package/cc-switch-sdk/node_modules/zod/src/v4/locales/hy.ts +0 -164
  382. package/package/cc-switch-sdk/node_modules/zod/src/v4/locales/id.ts +0 -115
  383. package/package/cc-switch-sdk/node_modules/zod/src/v4/locales/index.ts +0 -49
  384. package/package/cc-switch-sdk/node_modules/zod/src/v4/locales/is.ts +0 -119
  385. package/package/cc-switch-sdk/node_modules/zod/src/v4/locales/it.ts +0 -116
  386. package/package/cc-switch-sdk/node_modules/zod/src/v4/locales/ja.ts +0 -114
  387. package/package/cc-switch-sdk/node_modules/zod/src/v4/locales/ka.ts +0 -123
  388. package/package/cc-switch-sdk/node_modules/zod/src/v4/locales/km.ts +0 -119
  389. package/package/cc-switch-sdk/node_modules/zod/src/v4/locales/ko.ts +0 -121
  390. package/package/cc-switch-sdk/node_modules/zod/src/v4/locales/lt.ts +0 -239
  391. package/package/cc-switch-sdk/node_modules/zod/src/v4/locales/mk.ts +0 -118
  392. package/package/cc-switch-sdk/node_modules/zod/src/v4/locales/ms.ts +0 -115
  393. package/package/cc-switch-sdk/node_modules/zod/src/v4/locales/nl.ts +0 -121
  394. package/package/cc-switch-sdk/node_modules/zod/src/v4/locales/no.ts +0 -116
  395. package/package/cc-switch-sdk/node_modules/zod/src/v4/locales/ota.ts +0 -117
  396. package/package/cc-switch-sdk/node_modules/zod/src/v4/locales/pl.ts +0 -118
  397. package/package/cc-switch-sdk/node_modules/zod/src/v4/locales/ps.ts +0 -126
  398. package/package/cc-switch-sdk/node_modules/zod/src/v4/locales/pt.ts +0 -116
  399. package/package/cc-switch-sdk/node_modules/zod/src/v4/locales/ru.ts +0 -176
  400. package/package/cc-switch-sdk/node_modules/zod/src/v4/locales/sl.ts +0 -118
  401. package/package/cc-switch-sdk/node_modules/zod/src/v4/locales/sv.ts +0 -119
  402. package/package/cc-switch-sdk/node_modules/zod/src/v4/locales/ta.ts +0 -118
  403. package/package/cc-switch-sdk/node_modules/zod/src/v4/locales/th.ts +0 -119
  404. package/package/cc-switch-sdk/node_modules/zod/src/v4/locales/tr.ts +0 -111
  405. package/package/cc-switch-sdk/node_modules/zod/src/v4/locales/uk.ts +0 -117
  406. package/package/cc-switch-sdk/node_modules/zod/src/v4/locales/ur.ts +0 -119
  407. package/package/cc-switch-sdk/node_modules/zod/src/v4/locales/uz.ts +0 -116
  408. package/package/cc-switch-sdk/node_modules/zod/src/v4/locales/vi.ts +0 -117
  409. package/package/cc-switch-sdk/node_modules/zod/src/v4/locales/yo.ts +0 -124
  410. package/package/cc-switch-sdk/node_modules/zod/src/v4/locales/zh-CN.ts +0 -116
  411. package/package/cc-switch-sdk/node_modules/zod/src/v4/locales/zh-TW.ts +0 -115
  412. package/package/cc-switch-sdk/node_modules/zod/src/v4/mini/coerce.ts +0 -27
  413. package/package/cc-switch-sdk/node_modules/zod/src/v4/mini/external.ts +0 -40
  414. package/package/cc-switch-sdk/node_modules/zod/src/v4/mini/iso.ts +0 -66
  415. package/package/cc-switch-sdk/node_modules/zod/src/v4/mini/schemas.ts +0 -1916
  416. package/package/cc-switch-sdk/node_modules/zod/src/v4/mini/tests/apply.test.ts +0 -24
  417. package/package/cc-switch-sdk/node_modules/zod/src/v4/mini/tests/brand.test.ts +0 -94
  418. package/package/cc-switch-sdk/node_modules/zod/src/v4/mini/tests/functions.test.ts +0 -5
  419. package/package/cc-switch-sdk/node_modules/zod/src/v4/mini/tests/index.test.ts +0 -963
  420. package/package/cc-switch-sdk/node_modules/zod/src/v4/mini/tests/object.test.ts +0 -227
  421. package/package/cc-switch-sdk/node_modules/zod/src/v4/mini/tests/standard-schema.test.ts +0 -50
  422. package/package/cc-switch-sdk/node_modules/zod/src/v4/mini/tests/string.test.ts +0 -347
  423. package/package/cc-switch-sdk/node_modules/zod/src/v4-mini/index.ts +0 -3
  424. package/package/cc-switch-sdk/node_modules/zod/v3/ZodError.d.cts +0 -164
  425. package/package/cc-switch-sdk/node_modules/zod/v3/ZodError.d.ts +0 -164
  426. package/package/cc-switch-sdk/node_modules/zod/v4/classic/checks.cjs +0 -33
  427. package/package/cc-switch-sdk/node_modules/zod/v4/classic/checks.d.cts +0 -1
  428. package/package/cc-switch-sdk/node_modules/zod/v4/classic/checks.d.ts +0 -1
  429. package/package/cc-switch-sdk/node_modules/zod/v4/classic/checks.js +0 -1
  430. package/package/cc-switch-sdk/node_modules/zod/v4/classic/external.cjs +0 -73
  431. package/package/cc-switch-sdk/node_modules/zod/v4/classic/external.d.cts +0 -15
  432. package/package/cc-switch-sdk/node_modules/zod/v4/classic/external.d.ts +0 -15
  433. package/package/cc-switch-sdk/node_modules/zod/v4/classic/external.js +0 -20
  434. package/package/cc-switch-sdk/node_modules/zod/v4/classic/from-json-schema.cjs +0 -610
  435. package/package/cc-switch-sdk/node_modules/zod/v4/classic/from-json-schema.d.cts +0 -12
  436. package/package/cc-switch-sdk/node_modules/zod/v4/classic/from-json-schema.d.ts +0 -12
  437. package/package/cc-switch-sdk/node_modules/zod/v4/classic/from-json-schema.js +0 -584
  438. package/package/cc-switch-sdk/node_modules/zod/v4/classic/schemas.cjs +0 -1272
  439. package/package/cc-switch-sdk/node_modules/zod/v4/classic/schemas.d.cts +0 -739
  440. package/package/cc-switch-sdk/node_modules/zod/v4/classic/schemas.d.ts +0 -739
  441. package/package/cc-switch-sdk/node_modules/zod/v4/classic/schemas.js +0 -1157
  442. package/package/cc-switch-sdk/node_modules/zod/v4/core/api.cjs +0 -1222
  443. package/package/cc-switch-sdk/node_modules/zod/v4/core/api.d.cts +0 -304
  444. package/package/cc-switch-sdk/node_modules/zod/v4/core/api.d.ts +0 -304
  445. package/package/cc-switch-sdk/node_modules/zod/v4/core/api.js +0 -1082
  446. package/package/cc-switch-sdk/node_modules/zod/v4/core/checks.cjs +0 -601
  447. package/package/cc-switch-sdk/node_modules/zod/v4/core/checks.js +0 -575
  448. package/package/cc-switch-sdk/node_modules/zod/v4/core/core.cjs +0 -83
  449. package/package/cc-switch-sdk/node_modules/zod/v4/core/core.d.cts +0 -70
  450. package/package/cc-switch-sdk/node_modules/zod/v4/core/core.d.ts +0 -70
  451. package/package/cc-switch-sdk/node_modules/zod/v4/core/core.js +0 -76
  452. package/package/cc-switch-sdk/node_modules/zod/v4/core/errors.d.cts +0 -220
  453. package/package/cc-switch-sdk/node_modules/zod/v4/core/errors.d.ts +0 -220
  454. package/package/cc-switch-sdk/node_modules/zod/v4/core/index.cjs +0 -47
  455. package/package/cc-switch-sdk/node_modules/zod/v4/core/index.d.cts +0 -16
  456. package/package/cc-switch-sdk/node_modules/zod/v4/core/index.d.ts +0 -16
  457. package/package/cc-switch-sdk/node_modules/zod/v4/core/index.js +0 -16
  458. package/package/cc-switch-sdk/node_modules/zod/v4/core/json-schema-generator.cjs +0 -99
  459. package/package/cc-switch-sdk/node_modules/zod/v4/core/json-schema-generator.d.cts +0 -65
  460. package/package/cc-switch-sdk/node_modules/zod/v4/core/json-schema-generator.d.ts +0 -65
  461. package/package/cc-switch-sdk/node_modules/zod/v4/core/json-schema-generator.js +0 -95
  462. package/package/cc-switch-sdk/node_modules/zod/v4/core/json-schema-processors.cjs +0 -648
  463. package/package/cc-switch-sdk/node_modules/zod/v4/core/json-schema-processors.d.cts +0 -49
  464. package/package/cc-switch-sdk/node_modules/zod/v4/core/json-schema-processors.d.ts +0 -49
  465. package/package/cc-switch-sdk/node_modules/zod/v4/core/json-schema-processors.js +0 -605
  466. package/package/cc-switch-sdk/node_modules/zod/v4/core/regexes.cjs +0 -166
  467. package/package/cc-switch-sdk/node_modules/zod/v4/core/regexes.d.cts +0 -79
  468. package/package/cc-switch-sdk/node_modules/zod/v4/core/regexes.d.ts +0 -79
  469. package/package/cc-switch-sdk/node_modules/zod/v4/core/regexes.js +0 -133
  470. package/package/cc-switch-sdk/node_modules/zod/v4/core/registries.cjs +0 -56
  471. package/package/cc-switch-sdk/node_modules/zod/v4/core/registries.js +0 -51
  472. package/package/cc-switch-sdk/node_modules/zod/v4/core/schemas.cjs +0 -2124
  473. package/package/cc-switch-sdk/node_modules/zod/v4/core/schemas.d.cts +0 -1146
  474. package/package/cc-switch-sdk/node_modules/zod/v4/core/schemas.d.ts +0 -1146
  475. package/package/cc-switch-sdk/node_modules/zod/v4/core/schemas.js +0 -2093
  476. package/package/cc-switch-sdk/node_modules/zod/v4/core/standard-schema.d.cts +0 -126
  477. package/package/cc-switch-sdk/node_modules/zod/v4/core/standard-schema.d.ts +0 -126
  478. package/package/cc-switch-sdk/node_modules/zod/v4/core/to-json-schema.cjs +0 -446
  479. package/package/cc-switch-sdk/node_modules/zod/v4/core/to-json-schema.d.cts +0 -114
  480. package/package/cc-switch-sdk/node_modules/zod/v4/core/to-json-schema.d.ts +0 -114
  481. package/package/cc-switch-sdk/node_modules/zod/v4/core/to-json-schema.js +0 -437
  482. package/package/cc-switch-sdk/node_modules/zod/v4/core/util.cjs +0 -710
  483. package/package/cc-switch-sdk/node_modules/zod/v4/core/util.d.cts +0 -199
  484. package/package/cc-switch-sdk/node_modules/zod/v4/core/util.d.ts +0 -199
  485. package/package/cc-switch-sdk/node_modules/zod/v4/core/util.js +0 -651
  486. package/package/cc-switch-sdk/node_modules/zod/v4/core/versions.cjs +0 -8
  487. package/package/cc-switch-sdk/node_modules/zod/v4/core/versions.d.cts +0 -5
  488. package/package/cc-switch-sdk/node_modules/zod/v4/core/versions.d.ts +0 -5
  489. package/package/cc-switch-sdk/node_modules/zod/v4/core/versions.js +0 -5
  490. package/package/cc-switch-sdk/node_modules/zod/v4/locales/ar.cjs +0 -133
  491. package/package/cc-switch-sdk/node_modules/zod/v4/locales/ar.js +0 -106
  492. package/package/cc-switch-sdk/node_modules/zod/v4/locales/az.cjs +0 -132
  493. package/package/cc-switch-sdk/node_modules/zod/v4/locales/az.js +0 -105
  494. package/package/cc-switch-sdk/node_modules/zod/v4/locales/be.cjs +0 -183
  495. package/package/cc-switch-sdk/node_modules/zod/v4/locales/be.js +0 -156
  496. package/package/cc-switch-sdk/node_modules/zod/v4/locales/bg.cjs +0 -147
  497. package/package/cc-switch-sdk/node_modules/zod/v4/locales/bg.d.cts +0 -5
  498. package/package/cc-switch-sdk/node_modules/zod/v4/locales/bg.d.ts +0 -4
  499. package/package/cc-switch-sdk/node_modules/zod/v4/locales/bg.js +0 -120
  500. package/package/cc-switch-sdk/node_modules/zod/v4/locales/ca.cjs +0 -134
  501. package/package/cc-switch-sdk/node_modules/zod/v4/locales/ca.js +0 -107
  502. package/package/cc-switch-sdk/node_modules/zod/v4/locales/cs.cjs +0 -138
  503. package/package/cc-switch-sdk/node_modules/zod/v4/locales/cs.js +0 -111
  504. package/package/cc-switch-sdk/node_modules/zod/v4/locales/da.cjs +0 -142
  505. package/package/cc-switch-sdk/node_modules/zod/v4/locales/da.js +0 -115
  506. package/package/cc-switch-sdk/node_modules/zod/v4/locales/de.cjs +0 -135
  507. package/package/cc-switch-sdk/node_modules/zod/v4/locales/de.js +0 -108
  508. package/package/cc-switch-sdk/node_modules/zod/v4/locales/en.cjs +0 -136
  509. package/package/cc-switch-sdk/node_modules/zod/v4/locales/en.d.cts +0 -5
  510. package/package/cc-switch-sdk/node_modules/zod/v4/locales/en.d.ts +0 -4
  511. package/package/cc-switch-sdk/node_modules/zod/v4/locales/en.js +0 -109
  512. package/package/cc-switch-sdk/node_modules/zod/v4/locales/eo.cjs +0 -136
  513. package/package/cc-switch-sdk/node_modules/zod/v4/locales/eo.d.cts +0 -5
  514. package/package/cc-switch-sdk/node_modules/zod/v4/locales/eo.d.ts +0 -4
  515. package/package/cc-switch-sdk/node_modules/zod/v4/locales/eo.js +0 -109
  516. package/package/cc-switch-sdk/node_modules/zod/v4/locales/es.cjs +0 -159
  517. package/package/cc-switch-sdk/node_modules/zod/v4/locales/es.js +0 -132
  518. package/package/cc-switch-sdk/node_modules/zod/v4/locales/fa.cjs +0 -141
  519. package/package/cc-switch-sdk/node_modules/zod/v4/locales/fa.js +0 -114
  520. package/package/cc-switch-sdk/node_modules/zod/v4/locales/fi.cjs +0 -139
  521. package/package/cc-switch-sdk/node_modules/zod/v4/locales/fi.js +0 -112
  522. package/package/cc-switch-sdk/node_modules/zod/v4/locales/fr-CA.cjs +0 -134
  523. package/package/cc-switch-sdk/node_modules/zod/v4/locales/fr-CA.js +0 -107
  524. package/package/cc-switch-sdk/node_modules/zod/v4/locales/fr.cjs +0 -135
  525. package/package/cc-switch-sdk/node_modules/zod/v4/locales/fr.js +0 -108
  526. package/package/cc-switch-sdk/node_modules/zod/v4/locales/he.cjs +0 -241
  527. package/package/cc-switch-sdk/node_modules/zod/v4/locales/he.js +0 -214
  528. package/package/cc-switch-sdk/node_modules/zod/v4/locales/hu.cjs +0 -135
  529. package/package/cc-switch-sdk/node_modules/zod/v4/locales/hu.js +0 -108
  530. package/package/cc-switch-sdk/node_modules/zod/v4/locales/hy.cjs +0 -174
  531. package/package/cc-switch-sdk/node_modules/zod/v4/locales/hy.d.cts +0 -5
  532. package/package/cc-switch-sdk/node_modules/zod/v4/locales/hy.d.ts +0 -4
  533. package/package/cc-switch-sdk/node_modules/zod/v4/locales/hy.js +0 -147
  534. package/package/cc-switch-sdk/node_modules/zod/v4/locales/id.cjs +0 -133
  535. package/package/cc-switch-sdk/node_modules/zod/v4/locales/id.js +0 -106
  536. package/package/cc-switch-sdk/node_modules/zod/v4/locales/index.cjs +0 -104
  537. package/package/cc-switch-sdk/node_modules/zod/v4/locales/index.d.cts +0 -49
  538. package/package/cc-switch-sdk/node_modules/zod/v4/locales/index.d.ts +0 -49
  539. package/package/cc-switch-sdk/node_modules/zod/v4/locales/index.js +0 -49
  540. package/package/cc-switch-sdk/node_modules/zod/v4/locales/is.cjs +0 -136
  541. package/package/cc-switch-sdk/node_modules/zod/v4/locales/is.d.cts +0 -5
  542. package/package/cc-switch-sdk/node_modules/zod/v4/locales/is.d.ts +0 -4
  543. package/package/cc-switch-sdk/node_modules/zod/v4/locales/is.js +0 -109
  544. package/package/cc-switch-sdk/node_modules/zod/v4/locales/it.cjs +0 -135
  545. package/package/cc-switch-sdk/node_modules/zod/v4/locales/it.js +0 -108
  546. package/package/cc-switch-sdk/node_modules/zod/v4/locales/ja.cjs +0 -134
  547. package/package/cc-switch-sdk/node_modules/zod/v4/locales/ja.js +0 -107
  548. package/package/cc-switch-sdk/node_modules/zod/v4/locales/ka.cjs +0 -139
  549. package/package/cc-switch-sdk/node_modules/zod/v4/locales/ka.d.cts +0 -5
  550. package/package/cc-switch-sdk/node_modules/zod/v4/locales/ka.d.ts +0 -4
  551. package/package/cc-switch-sdk/node_modules/zod/v4/locales/ka.js +0 -112
  552. package/package/cc-switch-sdk/node_modules/zod/v4/locales/km.cjs +0 -137
  553. package/package/cc-switch-sdk/node_modules/zod/v4/locales/km.js +0 -110
  554. package/package/cc-switch-sdk/node_modules/zod/v4/locales/ko.cjs +0 -138
  555. package/package/cc-switch-sdk/node_modules/zod/v4/locales/ko.js +0 -111
  556. package/package/cc-switch-sdk/node_modules/zod/v4/locales/lt.cjs +0 -230
  557. package/package/cc-switch-sdk/node_modules/zod/v4/locales/lt.d.cts +0 -5
  558. package/package/cc-switch-sdk/node_modules/zod/v4/locales/lt.d.ts +0 -4
  559. package/package/cc-switch-sdk/node_modules/zod/v4/locales/lt.js +0 -203
  560. package/package/cc-switch-sdk/node_modules/zod/v4/locales/mk.cjs +0 -136
  561. package/package/cc-switch-sdk/node_modules/zod/v4/locales/mk.js +0 -109
  562. package/package/cc-switch-sdk/node_modules/zod/v4/locales/ms.cjs +0 -134
  563. package/package/cc-switch-sdk/node_modules/zod/v4/locales/ms.js +0 -107
  564. package/package/cc-switch-sdk/node_modules/zod/v4/locales/nl.cjs +0 -137
  565. package/package/cc-switch-sdk/node_modules/zod/v4/locales/nl.js +0 -110
  566. package/package/cc-switch-sdk/node_modules/zod/v4/locales/no.cjs +0 -135
  567. package/package/cc-switch-sdk/node_modules/zod/v4/locales/no.js +0 -108
  568. package/package/cc-switch-sdk/node_modules/zod/v4/locales/ota.cjs +0 -136
  569. package/package/cc-switch-sdk/node_modules/zod/v4/locales/ota.js +0 -109
  570. package/package/cc-switch-sdk/node_modules/zod/v4/locales/pl.cjs +0 -136
  571. package/package/cc-switch-sdk/node_modules/zod/v4/locales/pl.js +0 -109
  572. package/package/cc-switch-sdk/node_modules/zod/v4/locales/ps.cjs +0 -141
  573. package/package/cc-switch-sdk/node_modules/zod/v4/locales/ps.js +0 -114
  574. package/package/cc-switch-sdk/node_modules/zod/v4/locales/pt.cjs +0 -135
  575. package/package/cc-switch-sdk/node_modules/zod/v4/locales/pt.js +0 -108
  576. package/package/cc-switch-sdk/node_modules/zod/v4/locales/ru.cjs +0 -183
  577. package/package/cc-switch-sdk/node_modules/zod/v4/locales/ru.js +0 -156
  578. package/package/cc-switch-sdk/node_modules/zod/v4/locales/sl.cjs +0 -136
  579. package/package/cc-switch-sdk/node_modules/zod/v4/locales/sl.js +0 -109
  580. package/package/cc-switch-sdk/node_modules/zod/v4/locales/sv.cjs +0 -137
  581. package/package/cc-switch-sdk/node_modules/zod/v4/locales/sv.js +0 -110
  582. package/package/cc-switch-sdk/node_modules/zod/v4/locales/ta.cjs +0 -137
  583. package/package/cc-switch-sdk/node_modules/zod/v4/locales/ta.js +0 -110
  584. package/package/cc-switch-sdk/node_modules/zod/v4/locales/th.cjs +0 -137
  585. package/package/cc-switch-sdk/node_modules/zod/v4/locales/th.js +0 -110
  586. package/package/cc-switch-sdk/node_modules/zod/v4/locales/tr.cjs +0 -132
  587. package/package/cc-switch-sdk/node_modules/zod/v4/locales/tr.d.cts +0 -5
  588. package/package/cc-switch-sdk/node_modules/zod/v4/locales/tr.d.ts +0 -4
  589. package/package/cc-switch-sdk/node_modules/zod/v4/locales/tr.js +0 -105
  590. package/package/cc-switch-sdk/node_modules/zod/v4/locales/uk.cjs +0 -135
  591. package/package/cc-switch-sdk/node_modules/zod/v4/locales/uk.js +0 -108
  592. package/package/cc-switch-sdk/node_modules/zod/v4/locales/ur.cjs +0 -137
  593. package/package/cc-switch-sdk/node_modules/zod/v4/locales/ur.js +0 -110
  594. package/package/cc-switch-sdk/node_modules/zod/v4/locales/uz.cjs +0 -136
  595. package/package/cc-switch-sdk/node_modules/zod/v4/locales/uz.d.cts +0 -5
  596. package/package/cc-switch-sdk/node_modules/zod/v4/locales/uz.d.ts +0 -4
  597. package/package/cc-switch-sdk/node_modules/zod/v4/locales/uz.js +0 -109
  598. package/package/cc-switch-sdk/node_modules/zod/v4/locales/vi.cjs +0 -135
  599. package/package/cc-switch-sdk/node_modules/zod/v4/locales/vi.js +0 -108
  600. package/package/cc-switch-sdk/node_modules/zod/v4/locales/yo.cjs +0 -134
  601. package/package/cc-switch-sdk/node_modules/zod/v4/locales/yo.js +0 -107
  602. package/package/cc-switch-sdk/node_modules/zod/v4/locales/zh-CN.cjs +0 -136
  603. package/package/cc-switch-sdk/node_modules/zod/v4/locales/zh-CN.js +0 -109
  604. package/package/cc-switch-sdk/node_modules/zod/v4/locales/zh-TW.cjs +0 -134
  605. package/package/cc-switch-sdk/node_modules/zod/v4/locales/zh-TW.js +0 -107
  606. package/package/cc-switch-sdk/node_modules/zod/v4/mini/coerce.cjs +0 -52
  607. package/package/cc-switch-sdk/node_modules/zod/v4/mini/coerce.js +0 -22
  608. package/package/cc-switch-sdk/node_modules/zod/v4/mini/external.cjs +0 -63
  609. package/package/cc-switch-sdk/node_modules/zod/v4/mini/external.d.cts +0 -12
  610. package/package/cc-switch-sdk/node_modules/zod/v4/mini/external.d.ts +0 -12
  611. package/package/cc-switch-sdk/node_modules/zod/v4/mini/external.js +0 -14
  612. package/package/cc-switch-sdk/node_modules/zod/v4/mini/iso.cjs +0 -64
  613. package/package/cc-switch-sdk/node_modules/zod/v4/mini/iso.js +0 -34
  614. package/package/cc-switch-sdk/node_modules/zod/v4/mini/schemas.cjs +0 -1046
  615. package/package/cc-switch-sdk/node_modules/zod/v4/mini/schemas.d.cts +0 -427
  616. package/package/cc-switch-sdk/node_modules/zod/v4/mini/schemas.d.ts +0 -427
  617. package/package/cc-switch-sdk/node_modules/zod/v4/mini/schemas.js +0 -925
  618. package/package/cc-switch-sdk/node_modules/zod/v4-mini/index.cjs +0 -32
  619. package/package/cc-switch-sdk/node_modules/zod/v4-mini/index.d.cts +0 -3
  620. package/package/cc-switch-sdk/node_modules/zod/v4-mini/index.d.ts +0 -3
  621. package/package/cc-switch-sdk/node_modules/zod/v4-mini/index.js +0 -3
  622. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/LICENSE +0 -0
  623. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/README.md +0 -0
  624. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/index.cjs +0 -0
  625. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/index.d.cts +0 -0
  626. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/index.d.ts +0 -0
  627. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/index.js +0 -0
  628. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/locales/index.cjs +0 -0
  629. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/locales/index.d.cts +0 -0
  630. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/locales/index.d.ts +0 -0
  631. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/locales/index.js +0 -0
  632. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/locales/package.json +0 -0
  633. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/mini/package.json +0 -0
  634. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/index.ts +0 -0
  635. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/locales/index.ts +0 -0
  636. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v3/ZodError.ts +0 -0
  637. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v3/benchmarks/datetime.ts +0 -0
  638. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v3/benchmarks/discriminatedUnion.ts +0 -0
  639. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v3/benchmarks/index.ts +0 -0
  640. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v3/benchmarks/ipv4.ts +0 -0
  641. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v3/benchmarks/object.ts +0 -0
  642. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v3/benchmarks/primitives.ts +0 -0
  643. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v3/benchmarks/realworld.ts +0 -0
  644. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v3/benchmarks/string.ts +0 -0
  645. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v3/benchmarks/union.ts +0 -0
  646. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v3/errors.ts +0 -0
  647. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v3/external.ts +0 -0
  648. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v3/helpers/enumUtil.ts +0 -0
  649. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v3/helpers/errorUtil.ts +0 -0
  650. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v3/helpers/parseUtil.ts +0 -0
  651. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v3/helpers/partialUtil.ts +0 -0
  652. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v3/helpers/typeAliases.ts +0 -0
  653. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v3/helpers/util.ts +0 -0
  654. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v3/index.ts +0 -0
  655. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v3/locales/en.ts +0 -0
  656. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v3/standard-schema.ts +0 -0
  657. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v3/tests/Mocker.ts +0 -0
  658. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v3/tests/all-errors.test.ts +0 -0
  659. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v3/tests/anyunknown.test.ts +0 -0
  660. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v3/tests/array.test.ts +0 -0
  661. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v3/tests/async-parsing.test.ts +0 -0
  662. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v3/tests/async-refinements.test.ts +0 -0
  663. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v3/tests/base.test.ts +0 -0
  664. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v3/tests/bigint.test.ts +0 -0
  665. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v3/tests/branded.test.ts +0 -0
  666. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v3/tests/catch.test.ts +0 -0
  667. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v3/tests/coerce.test.ts +0 -0
  668. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v3/tests/custom.test.ts +0 -0
  669. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v3/tests/date.test.ts +0 -0
  670. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v3/tests/deepmasking.test.ts +0 -0
  671. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v3/tests/default.test.ts +0 -0
  672. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v3/tests/description.test.ts +0 -0
  673. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v3/tests/discriminated-unions.test.ts +0 -0
  674. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v3/tests/enum.test.ts +0 -0
  675. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v3/tests/error.test.ts +0 -0
  676. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v3/tests/firstparty.test.ts +0 -0
  677. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v3/tests/firstpartyschematypes.test.ts +0 -0
  678. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v3/tests/generics.test.ts +0 -0
  679. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v3/tests/instanceof.test.ts +0 -0
  680. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v3/tests/intersection.test.ts +0 -0
  681. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v3/tests/language-server.source.ts +0 -0
  682. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v3/tests/language-server.test.ts +0 -0
  683. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v3/tests/literal.test.ts +0 -0
  684. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v3/tests/map.test.ts +0 -0
  685. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v3/tests/masking.test.ts +0 -0
  686. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v3/tests/mocker.test.ts +0 -0
  687. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v3/tests/nativeEnum.test.ts +0 -0
  688. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v3/tests/nullable.test.ts +0 -0
  689. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v3/tests/number.test.ts +0 -0
  690. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v3/tests/object-augmentation.test.ts +0 -0
  691. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v3/tests/object-in-es5-env.test.ts +0 -0
  692. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v3/tests/object.test.ts +0 -0
  693. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v3/tests/optional.test.ts +0 -0
  694. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v3/tests/parseUtil.test.ts +0 -0
  695. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v3/tests/parser.test.ts +0 -0
  696. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v3/tests/partials.test.ts +0 -0
  697. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v3/tests/pickomit.test.ts +0 -0
  698. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v3/tests/pipeline.test.ts +0 -0
  699. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v3/tests/preprocess.test.ts +0 -0
  700. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v3/tests/primitive.test.ts +0 -0
  701. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v3/tests/promise.test.ts +0 -0
  702. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v3/tests/readonly.test.ts +0 -0
  703. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v3/tests/record.test.ts +0 -0
  704. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v3/tests/recursive.test.ts +0 -0
  705. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v3/tests/refine.test.ts +0 -0
  706. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v3/tests/safeparse.test.ts +0 -0
  707. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v3/tests/set.test.ts +0 -0
  708. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v3/tests/standard-schema.test.ts +0 -0
  709. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v3/tests/string.test.ts +0 -0
  710. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v3/tests/transformer.test.ts +0 -0
  711. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v3/tests/tuple.test.ts +0 -0
  712. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v3/tests/unions.test.ts +0 -0
  713. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v3/tests/validations.test.ts +0 -0
  714. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v3/tests/void.test.ts +0 -0
  715. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v3/types.ts +0 -0
  716. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v4/classic/coerce.ts +0 -0
  717. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v4/classic/compat.ts +0 -0
  718. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v4/classic/errors.ts +0 -0
  719. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v4/classic/index.ts +0 -0
  720. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v4/classic/iso.ts +0 -0
  721. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v4/classic/parse.ts +0 -0
  722. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v4/classic/tests/anyunknown.test.ts +0 -0
  723. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v4/classic/tests/array.test.ts +0 -0
  724. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v4/classic/tests/assignability.test.ts +0 -0
  725. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v4/classic/tests/async-parsing.test.ts +0 -0
  726. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v4/classic/tests/async-refinements.test.ts +0 -0
  727. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v4/classic/tests/base.test.ts +0 -0
  728. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v4/classic/tests/bigint.test.ts +0 -0
  729. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v4/classic/tests/catch.test.ts +0 -0
  730. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v4/classic/tests/coalesce.test.ts +0 -0
  731. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v4/classic/tests/codec-examples.test.ts +0 -0
  732. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v4/classic/tests/coerce.test.ts +0 -0
  733. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v4/classic/tests/custom.test.ts +0 -0
  734. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v4/classic/tests/datetime.test.ts +0 -0
  735. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v4/classic/tests/default.test.ts +0 -0
  736. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v4/classic/tests/description.test.ts +0 -0
  737. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v4/classic/tests/discriminated-unions.test.ts +0 -0
  738. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v4/classic/tests/enum.test.ts +0 -0
  739. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v4/classic/tests/error-utils.test.ts +0 -0
  740. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v4/classic/tests/error.test.ts +0 -0
  741. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v4/classic/tests/file.test.ts +0 -0
  742. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v4/classic/tests/firstparty.test.ts +0 -0
  743. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v4/classic/tests/generics.test.ts +0 -0
  744. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v4/classic/tests/hash.test.ts +0 -0
  745. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v4/classic/tests/lazy.test.ts +0 -0
  746. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v4/classic/tests/literal.test.ts +0 -0
  747. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v4/classic/tests/nan.test.ts +0 -0
  748. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v4/classic/tests/nested-refine.test.ts +0 -0
  749. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v4/classic/tests/nonoptional.test.ts +0 -0
  750. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v4/classic/tests/nullable.test.ts +0 -0
  751. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v4/classic/tests/number.test.ts +0 -0
  752. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v4/classic/tests/pipe.test.ts +0 -0
  753. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v4/classic/tests/prefault.test.ts +0 -0
  754. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v4/classic/tests/preprocess.test.ts +0 -0
  755. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v4/classic/tests/primitive.test.ts +0 -0
  756. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v4/classic/tests/prototypes.test.ts +0 -0
  757. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v4/classic/tests/set.test.ts +0 -0
  758. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v4/classic/tests/string-formats.test.ts +0 -0
  759. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v4/classic/tests/stringbool.test.ts +0 -0
  760. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v4/classic/tests/transform.test.ts +0 -0
  761. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v4/classic/tests/validations.test.ts +0 -0
  762. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v4/classic/tests/void.test.ts +0 -0
  763. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v4/core/config.ts +0 -0
  764. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v4/core/doc.ts +0 -0
  765. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v4/core/json-schema.ts +0 -0
  766. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v4/core/parse.ts +0 -0
  767. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v4/core/tests/index.test.ts +0 -0
  768. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v4/core/tests/locales/be.test.ts +0 -0
  769. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v4/core/tests/locales/es.test.ts +0 -0
  770. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v4/core/tests/locales/ru.test.ts +0 -0
  771. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v4/core/zsf.ts +0 -0
  772. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v4/index.ts +0 -0
  773. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v4/locales/kh.ts +0 -0
  774. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v4/locales/ua.ts +0 -0
  775. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v4/mini/checks.ts +0 -0
  776. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v4/mini/index.ts +0 -0
  777. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v4/mini/parse.ts +0 -0
  778. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v4/mini/tests/assignability.test.ts +0 -0
  779. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v4/mini/tests/checks.test.ts +0 -0
  780. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v4/mini/tests/codec.test.ts +0 -0
  781. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v4/mini/tests/computed.test.ts +0 -0
  782. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v4/mini/tests/error.test.ts +0 -0
  783. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v4/mini/tests/number.test.ts +0 -0
  784. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v4/mini/tests/prototypes.test.ts +0 -0
  785. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/src/v4/mini/tests/recursive-types.test.ts +0 -0
  786. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v3/ZodError.cjs +0 -0
  787. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v3/ZodError.js +0 -0
  788. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v3/errors.cjs +0 -0
  789. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v3/errors.d.cts +0 -0
  790. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v3/errors.d.ts +0 -0
  791. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v3/errors.js +0 -0
  792. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v3/external.cjs +0 -0
  793. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v3/external.d.cts +0 -0
  794. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v3/external.d.ts +0 -0
  795. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v3/external.js +0 -0
  796. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v3/helpers/enumUtil.cjs +0 -0
  797. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v3/helpers/enumUtil.d.cts +0 -0
  798. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v3/helpers/enumUtil.d.ts +0 -0
  799. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v3/helpers/enumUtil.js +0 -0
  800. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v3/helpers/errorUtil.cjs +0 -0
  801. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v3/helpers/errorUtil.d.cts +0 -0
  802. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v3/helpers/errorUtil.d.ts +0 -0
  803. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v3/helpers/errorUtil.js +0 -0
  804. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v3/helpers/parseUtil.cjs +0 -0
  805. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v3/helpers/parseUtil.d.cts +0 -0
  806. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v3/helpers/parseUtil.d.ts +0 -0
  807. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v3/helpers/parseUtil.js +0 -0
  808. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v3/helpers/partialUtil.cjs +0 -0
  809. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v3/helpers/partialUtil.d.cts +0 -0
  810. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v3/helpers/partialUtil.d.ts +0 -0
  811. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v3/helpers/partialUtil.js +0 -0
  812. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v3/helpers/typeAliases.cjs +0 -0
  813. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v3/helpers/typeAliases.d.cts +0 -0
  814. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v3/helpers/typeAliases.d.ts +0 -0
  815. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v3/helpers/typeAliases.js +0 -0
  816. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v3/helpers/util.cjs +0 -0
  817. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v3/helpers/util.d.cts +0 -0
  818. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v3/helpers/util.d.ts +0 -0
  819. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v3/helpers/util.js +0 -0
  820. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v3/index.cjs +0 -0
  821. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v3/index.d.cts +0 -0
  822. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v3/index.d.ts +0 -0
  823. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v3/index.js +0 -0
  824. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v3/locales/en.cjs +0 -0
  825. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v3/locales/en.d.cts +0 -0
  826. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v3/locales/en.d.ts +0 -0
  827. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v3/locales/en.js +0 -0
  828. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v3/package.json +0 -0
  829. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v3/standard-schema.cjs +0 -0
  830. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v3/standard-schema.d.cts +0 -0
  831. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v3/standard-schema.d.ts +0 -0
  832. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v3/standard-schema.js +0 -0
  833. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v3/types.cjs +0 -0
  834. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v3/types.d.cts +0 -0
  835. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v3/types.d.ts +0 -0
  836. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v3/types.js +0 -0
  837. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/classic/coerce.cjs +0 -0
  838. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/classic/coerce.d.cts +0 -0
  839. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/classic/coerce.d.ts +0 -0
  840. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/classic/coerce.js +0 -0
  841. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/classic/compat.cjs +0 -0
  842. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/classic/compat.d.cts +0 -0
  843. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/classic/compat.d.ts +0 -0
  844. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/classic/compat.js +0 -0
  845. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/classic/errors.cjs +0 -0
  846. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/classic/errors.d.cts +0 -0
  847. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/classic/errors.d.ts +0 -0
  848. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/classic/errors.js +0 -0
  849. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/classic/index.cjs +0 -0
  850. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/classic/index.d.cts +0 -0
  851. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/classic/index.d.ts +0 -0
  852. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/classic/index.js +0 -0
  853. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/classic/iso.cjs +0 -0
  854. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/classic/iso.d.cts +0 -0
  855. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/classic/iso.d.ts +0 -0
  856. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/classic/iso.js +0 -0
  857. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/classic/package.json +0 -0
  858. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/classic/parse.cjs +0 -0
  859. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/classic/parse.d.cts +0 -0
  860. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/classic/parse.d.ts +0 -0
  861. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/classic/parse.js +0 -0
  862. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/core/checks.d.cts +0 -0
  863. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/core/checks.d.ts +0 -0
  864. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/core/doc.cjs +0 -0
  865. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/core/doc.d.cts +0 -0
  866. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/core/doc.d.ts +0 -0
  867. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/core/doc.js +0 -0
  868. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/core/errors.cjs +0 -0
  869. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/core/errors.js +0 -0
  870. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/core/json-schema.cjs +0 -0
  871. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/core/json-schema.d.cts +0 -0
  872. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/core/json-schema.d.ts +0 -0
  873. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/core/json-schema.js +0 -0
  874. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/core/package.json +0 -0
  875. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/core/parse.cjs +0 -0
  876. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/core/parse.d.cts +0 -0
  877. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/core/parse.d.ts +0 -0
  878. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/core/parse.js +0 -0
  879. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/core/registries.d.cts +0 -0
  880. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/core/registries.d.ts +0 -0
  881. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/core/standard-schema.cjs +0 -0
  882. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/core/standard-schema.js +0 -0
  883. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/index.cjs +0 -0
  884. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/index.d.cts +0 -0
  885. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/index.d.ts +0 -0
  886. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/index.js +0 -0
  887. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/locales/ar.d.cts +0 -0
  888. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/locales/ar.d.ts +0 -0
  889. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/locales/az.d.cts +0 -0
  890. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/locales/az.d.ts +0 -0
  891. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/locales/be.d.cts +0 -0
  892. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/locales/be.d.ts +0 -0
  893. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/locales/ca.d.cts +0 -0
  894. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/locales/ca.d.ts +0 -0
  895. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/locales/cs.d.cts +0 -0
  896. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/locales/cs.d.ts +0 -0
  897. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/locales/da.d.cts +0 -0
  898. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/locales/da.d.ts +0 -0
  899. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/locales/de.d.cts +0 -0
  900. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/locales/de.d.ts +0 -0
  901. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/locales/es.d.cts +0 -0
  902. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/locales/es.d.ts +0 -0
  903. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/locales/fa.d.cts +0 -0
  904. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/locales/fa.d.ts +0 -0
  905. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/locales/fi.d.cts +0 -0
  906. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/locales/fi.d.ts +0 -0
  907. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/locales/fr-CA.d.cts +0 -0
  908. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/locales/fr-CA.d.ts +0 -0
  909. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/locales/fr.d.cts +0 -0
  910. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/locales/fr.d.ts +0 -0
  911. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/locales/he.d.cts +0 -0
  912. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/locales/he.d.ts +0 -0
  913. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/locales/hu.d.cts +0 -0
  914. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/locales/hu.d.ts +0 -0
  915. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/locales/id.d.cts +0 -0
  916. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/locales/id.d.ts +0 -0
  917. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/locales/it.d.cts +0 -0
  918. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/locales/it.d.ts +0 -0
  919. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/locales/ja.d.cts +0 -0
  920. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/locales/ja.d.ts +0 -0
  921. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/locales/kh.cjs +0 -0
  922. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/locales/kh.d.cts +0 -0
  923. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/locales/kh.d.ts +0 -0
  924. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/locales/kh.js +0 -0
  925. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/locales/km.d.cts +0 -0
  926. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/locales/km.d.ts +0 -0
  927. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/locales/ko.d.cts +0 -0
  928. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/locales/ko.d.ts +0 -0
  929. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/locales/mk.d.cts +0 -0
  930. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/locales/mk.d.ts +0 -0
  931. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/locales/ms.d.cts +0 -0
  932. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/locales/ms.d.ts +0 -0
  933. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/locales/nl.d.cts +0 -0
  934. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/locales/nl.d.ts +0 -0
  935. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/locales/no.d.cts +0 -0
  936. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/locales/no.d.ts +0 -0
  937. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/locales/ota.d.cts +0 -0
  938. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/locales/ota.d.ts +0 -0
  939. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/locales/package.json +0 -0
  940. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/locales/pl.d.cts +0 -0
  941. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/locales/pl.d.ts +0 -0
  942. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/locales/ps.d.cts +0 -0
  943. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/locales/ps.d.ts +0 -0
  944. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/locales/pt.d.cts +0 -0
  945. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/locales/pt.d.ts +0 -0
  946. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/locales/ru.d.cts +0 -0
  947. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/locales/ru.d.ts +0 -0
  948. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/locales/sl.d.cts +0 -0
  949. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/locales/sl.d.ts +0 -0
  950. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/locales/sv.d.cts +0 -0
  951. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/locales/sv.d.ts +0 -0
  952. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/locales/ta.d.cts +0 -0
  953. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/locales/ta.d.ts +0 -0
  954. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/locales/th.d.cts +0 -0
  955. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/locales/th.d.ts +0 -0
  956. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/locales/ua.cjs +0 -0
  957. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/locales/ua.d.cts +0 -0
  958. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/locales/ua.d.ts +0 -0
  959. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/locales/ua.js +0 -0
  960. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/locales/uk.d.cts +0 -0
  961. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/locales/uk.d.ts +0 -0
  962. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/locales/ur.d.cts +0 -0
  963. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/locales/ur.d.ts +0 -0
  964. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/locales/vi.d.cts +0 -0
  965. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/locales/vi.d.ts +0 -0
  966. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/locales/yo.d.cts +0 -0
  967. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/locales/yo.d.ts +0 -0
  968. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/locales/zh-CN.d.cts +0 -0
  969. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/locales/zh-CN.d.ts +0 -0
  970. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/locales/zh-TW.d.cts +0 -0
  971. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/locales/zh-TW.d.ts +0 -0
  972. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/mini/checks.cjs +0 -0
  973. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/mini/checks.d.cts +0 -0
  974. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/mini/checks.d.ts +0 -0
  975. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/mini/checks.js +0 -0
  976. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/mini/coerce.d.cts +0 -0
  977. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/mini/coerce.d.ts +0 -0
  978. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/mini/index.cjs +0 -0
  979. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/mini/index.d.cts +0 -0
  980. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/mini/index.d.ts +0 -0
  981. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/mini/index.js +0 -0
  982. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/mini/iso.d.cts +0 -0
  983. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/mini/iso.d.ts +0 -0
  984. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/mini/package.json +0 -0
  985. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/mini/parse.cjs +0 -0
  986. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/mini/parse.d.cts +0 -0
  987. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/mini/parse.d.ts +0 -0
  988. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/mini/parse.js +0 -0
  989. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4/package.json +0 -0
  990. /package/{package/cc-switch-sdk/node_modules → node_modules}/zod/v4-mini/package.json +0 -0
@@ -0,0 +1,1986 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.$ZodMap = exports.$ZodRecord = exports.$ZodTuple = exports.$ZodIntersection = exports.$ZodDiscriminatedUnion = exports.$ZodUnion = exports.$ZodObjectJIT = exports.$ZodObject = exports.$ZodArray = exports.$ZodDate = exports.$ZodVoid = exports.$ZodNever = exports.$ZodUnknown = exports.$ZodAny = exports.$ZodNull = exports.$ZodUndefined = exports.$ZodSymbol = exports.$ZodBigIntFormat = exports.$ZodBigInt = exports.$ZodBoolean = exports.$ZodNumberFormat = exports.$ZodNumber = exports.$ZodCustomStringFormat = exports.$ZodJWT = exports.$ZodE164 = exports.$ZodBase64URL = exports.$ZodBase64 = exports.$ZodCIDRv6 = exports.$ZodCIDRv4 = exports.$ZodIPv6 = exports.$ZodIPv4 = exports.$ZodISODuration = exports.$ZodISOTime = exports.$ZodISODate = exports.$ZodISODateTime = exports.$ZodKSUID = exports.$ZodXID = exports.$ZodULID = exports.$ZodCUID2 = exports.$ZodCUID = exports.$ZodNanoID = exports.$ZodEmoji = exports.$ZodURL = exports.$ZodEmail = exports.$ZodUUID = exports.$ZodGUID = exports.$ZodStringFormat = exports.$ZodString = exports.clone = exports.$ZodType = void 0;
27
+ exports.$ZodCustom = exports.$ZodLazy = exports.$ZodPromise = exports.$ZodFunction = exports.$ZodTemplateLiteral = exports.$ZodReadonly = exports.$ZodCodec = exports.$ZodPipe = exports.$ZodNaN = exports.$ZodCatch = exports.$ZodSuccess = exports.$ZodNonOptional = exports.$ZodPrefault = exports.$ZodDefault = exports.$ZodNullable = exports.$ZodOptional = exports.$ZodTransform = exports.$ZodFile = exports.$ZodLiteral = exports.$ZodEnum = exports.$ZodSet = void 0;
28
+ exports.isValidBase64 = isValidBase64;
29
+ exports.isValidBase64URL = isValidBase64URL;
30
+ exports.isValidJWT = isValidJWT;
31
+ const checks = __importStar(require("./checks.cjs"));
32
+ const core = __importStar(require("./core.cjs"));
33
+ const doc_js_1 = require("./doc.cjs");
34
+ const parse_js_1 = require("./parse.cjs");
35
+ const regexes = __importStar(require("./regexes.cjs"));
36
+ const util = __importStar(require("./util.cjs"));
37
+ const versions_js_1 = require("./versions.cjs");
38
+ exports.$ZodType = core.$constructor("$ZodType", (inst, def) => {
39
+ var _a;
40
+ inst ?? (inst = {});
41
+ inst._zod.def = def; // set _def property
42
+ inst._zod.bag = inst._zod.bag || {}; // initialize _bag object
43
+ inst._zod.version = versions_js_1.version;
44
+ const checks = [...(inst._zod.def.checks ?? [])];
45
+ // if inst is itself a checks.$ZodCheck, run it as a check
46
+ if (inst._zod.traits.has("$ZodCheck")) {
47
+ checks.unshift(inst);
48
+ }
49
+ for (const ch of checks) {
50
+ for (const fn of ch._zod.onattach) {
51
+ fn(inst);
52
+ }
53
+ }
54
+ if (checks.length === 0) {
55
+ // deferred initializer
56
+ // inst._zod.parse is not yet defined
57
+ (_a = inst._zod).deferred ?? (_a.deferred = []);
58
+ inst._zod.deferred?.push(() => {
59
+ inst._zod.run = inst._zod.parse;
60
+ });
61
+ }
62
+ else {
63
+ const runChecks = (payload, checks, ctx) => {
64
+ let isAborted = util.aborted(payload);
65
+ let asyncResult;
66
+ for (const ch of checks) {
67
+ if (ch._zod.def.when) {
68
+ const shouldRun = ch._zod.def.when(payload);
69
+ if (!shouldRun)
70
+ continue;
71
+ }
72
+ else if (isAborted) {
73
+ continue;
74
+ }
75
+ const currLen = payload.issues.length;
76
+ const _ = ch._zod.check(payload);
77
+ if (_ instanceof Promise && ctx?.async === false) {
78
+ throw new core.$ZodAsyncError();
79
+ }
80
+ if (asyncResult || _ instanceof Promise) {
81
+ asyncResult = (asyncResult ?? Promise.resolve()).then(async () => {
82
+ await _;
83
+ const nextLen = payload.issues.length;
84
+ if (nextLen === currLen)
85
+ return;
86
+ if (!isAborted)
87
+ isAborted = util.aborted(payload, currLen);
88
+ });
89
+ }
90
+ else {
91
+ const nextLen = payload.issues.length;
92
+ if (nextLen === currLen)
93
+ continue;
94
+ if (!isAborted)
95
+ isAborted = util.aborted(payload, currLen);
96
+ }
97
+ }
98
+ if (asyncResult) {
99
+ return asyncResult.then(() => {
100
+ return payload;
101
+ });
102
+ }
103
+ return payload;
104
+ };
105
+ // const handleChecksResult = (
106
+ // checkResult: ParsePayload,
107
+ // originalResult: ParsePayload,
108
+ // ctx: ParseContextInternal
109
+ // ): util.MaybeAsync<ParsePayload> => {
110
+ // // if the checks mutated the value && there are no issues, re-parse the result
111
+ // if (checkResult.value !== originalResult.value && !checkResult.issues.length)
112
+ // return inst._zod.parse(checkResult, ctx);
113
+ // return originalResult;
114
+ // };
115
+ const handleCanaryResult = (canary, payload, ctx) => {
116
+ // abort if the canary is aborted
117
+ if (util.aborted(canary)) {
118
+ canary.aborted = true;
119
+ return canary;
120
+ }
121
+ // run checks first, then
122
+ const checkResult = runChecks(payload, checks, ctx);
123
+ if (checkResult instanceof Promise) {
124
+ if (ctx.async === false)
125
+ throw new core.$ZodAsyncError();
126
+ return checkResult.then((checkResult) => inst._zod.parse(checkResult, ctx));
127
+ }
128
+ return inst._zod.parse(checkResult, ctx);
129
+ };
130
+ inst._zod.run = (payload, ctx) => {
131
+ if (ctx.skipChecks) {
132
+ return inst._zod.parse(payload, ctx);
133
+ }
134
+ if (ctx.direction === "backward") {
135
+ // run canary
136
+ // initial pass (no checks)
137
+ const canary = inst._zod.parse({ value: payload.value, issues: [] }, { ...ctx, skipChecks: true });
138
+ if (canary instanceof Promise) {
139
+ return canary.then((canary) => {
140
+ return handleCanaryResult(canary, payload, ctx);
141
+ });
142
+ }
143
+ return handleCanaryResult(canary, payload, ctx);
144
+ }
145
+ // forward
146
+ const result = inst._zod.parse(payload, ctx);
147
+ if (result instanceof Promise) {
148
+ if (ctx.async === false)
149
+ throw new core.$ZodAsyncError();
150
+ return result.then((result) => runChecks(result, checks, ctx));
151
+ }
152
+ return runChecks(result, checks, ctx);
153
+ };
154
+ }
155
+ inst["~standard"] = {
156
+ validate: (value) => {
157
+ try {
158
+ const r = (0, parse_js_1.safeParse)(inst, value);
159
+ return r.success ? { value: r.data } : { issues: r.error?.issues };
160
+ }
161
+ catch (_) {
162
+ return (0, parse_js_1.safeParseAsync)(inst, value).then((r) => (r.success ? { value: r.data } : { issues: r.error?.issues }));
163
+ }
164
+ },
165
+ vendor: "zod",
166
+ version: 1,
167
+ };
168
+ });
169
+ var util_js_1 = require("./util.cjs");
170
+ Object.defineProperty(exports, "clone", { enumerable: true, get: function () { return util_js_1.clone; } });
171
+ exports.$ZodString = core.$constructor("$ZodString", (inst, def) => {
172
+ exports.$ZodType.init(inst, def);
173
+ inst._zod.pattern = [...(inst?._zod.bag?.patterns ?? [])].pop() ?? regexes.string(inst._zod.bag);
174
+ inst._zod.parse = (payload, _) => {
175
+ if (def.coerce)
176
+ try {
177
+ payload.value = String(payload.value);
178
+ }
179
+ catch (_) { }
180
+ if (typeof payload.value === "string")
181
+ return payload;
182
+ payload.issues.push({
183
+ expected: "string",
184
+ code: "invalid_type",
185
+ input: payload.value,
186
+ inst,
187
+ });
188
+ return payload;
189
+ };
190
+ });
191
+ exports.$ZodStringFormat = core.$constructor("$ZodStringFormat", (inst, def) => {
192
+ // check initialization must come first
193
+ checks.$ZodCheckStringFormat.init(inst, def);
194
+ exports.$ZodString.init(inst, def);
195
+ });
196
+ exports.$ZodGUID = core.$constructor("$ZodGUID", (inst, def) => {
197
+ def.pattern ?? (def.pattern = regexes.guid);
198
+ exports.$ZodStringFormat.init(inst, def);
199
+ });
200
+ exports.$ZodUUID = core.$constructor("$ZodUUID", (inst, def) => {
201
+ if (def.version) {
202
+ const versionMap = {
203
+ v1: 1,
204
+ v2: 2,
205
+ v3: 3,
206
+ v4: 4,
207
+ v5: 5,
208
+ v6: 6,
209
+ v7: 7,
210
+ v8: 8,
211
+ };
212
+ const v = versionMap[def.version];
213
+ if (v === undefined)
214
+ throw new Error(`Invalid UUID version: "${def.version}"`);
215
+ def.pattern ?? (def.pattern = regexes.uuid(v));
216
+ }
217
+ else
218
+ def.pattern ?? (def.pattern = regexes.uuid());
219
+ exports.$ZodStringFormat.init(inst, def);
220
+ });
221
+ exports.$ZodEmail = core.$constructor("$ZodEmail", (inst, def) => {
222
+ def.pattern ?? (def.pattern = regexes.email);
223
+ exports.$ZodStringFormat.init(inst, def);
224
+ });
225
+ exports.$ZodURL = core.$constructor("$ZodURL", (inst, def) => {
226
+ exports.$ZodStringFormat.init(inst, def);
227
+ inst._zod.check = (payload) => {
228
+ try {
229
+ // Trim whitespace from input
230
+ const trimmed = payload.value.trim();
231
+ // @ts-ignore
232
+ const url = new URL(trimmed);
233
+ if (def.hostname) {
234
+ def.hostname.lastIndex = 0;
235
+ if (!def.hostname.test(url.hostname)) {
236
+ payload.issues.push({
237
+ code: "invalid_format",
238
+ format: "url",
239
+ note: "Invalid hostname",
240
+ pattern: regexes.hostname.source,
241
+ input: payload.value,
242
+ inst,
243
+ continue: !def.abort,
244
+ });
245
+ }
246
+ }
247
+ if (def.protocol) {
248
+ def.protocol.lastIndex = 0;
249
+ if (!def.protocol.test(url.protocol.endsWith(":") ? url.protocol.slice(0, -1) : url.protocol)) {
250
+ payload.issues.push({
251
+ code: "invalid_format",
252
+ format: "url",
253
+ note: "Invalid protocol",
254
+ pattern: def.protocol.source,
255
+ input: payload.value,
256
+ inst,
257
+ continue: !def.abort,
258
+ });
259
+ }
260
+ }
261
+ // Set the output value based on normalize flag
262
+ if (def.normalize) {
263
+ // Use normalized URL
264
+ payload.value = url.href;
265
+ }
266
+ else {
267
+ // Preserve the original input (trimmed)
268
+ payload.value = trimmed;
269
+ }
270
+ return;
271
+ }
272
+ catch (_) {
273
+ payload.issues.push({
274
+ code: "invalid_format",
275
+ format: "url",
276
+ input: payload.value,
277
+ inst,
278
+ continue: !def.abort,
279
+ });
280
+ }
281
+ };
282
+ });
283
+ exports.$ZodEmoji = core.$constructor("$ZodEmoji", (inst, def) => {
284
+ def.pattern ?? (def.pattern = regexes.emoji());
285
+ exports.$ZodStringFormat.init(inst, def);
286
+ });
287
+ exports.$ZodNanoID = core.$constructor("$ZodNanoID", (inst, def) => {
288
+ def.pattern ?? (def.pattern = regexes.nanoid);
289
+ exports.$ZodStringFormat.init(inst, def);
290
+ });
291
+ exports.$ZodCUID = core.$constructor("$ZodCUID", (inst, def) => {
292
+ def.pattern ?? (def.pattern = regexes.cuid);
293
+ exports.$ZodStringFormat.init(inst, def);
294
+ });
295
+ exports.$ZodCUID2 = core.$constructor("$ZodCUID2", (inst, def) => {
296
+ def.pattern ?? (def.pattern = regexes.cuid2);
297
+ exports.$ZodStringFormat.init(inst, def);
298
+ });
299
+ exports.$ZodULID = core.$constructor("$ZodULID", (inst, def) => {
300
+ def.pattern ?? (def.pattern = regexes.ulid);
301
+ exports.$ZodStringFormat.init(inst, def);
302
+ });
303
+ exports.$ZodXID = core.$constructor("$ZodXID", (inst, def) => {
304
+ def.pattern ?? (def.pattern = regexes.xid);
305
+ exports.$ZodStringFormat.init(inst, def);
306
+ });
307
+ exports.$ZodKSUID = core.$constructor("$ZodKSUID", (inst, def) => {
308
+ def.pattern ?? (def.pattern = regexes.ksuid);
309
+ exports.$ZodStringFormat.init(inst, def);
310
+ });
311
+ exports.$ZodISODateTime = core.$constructor("$ZodISODateTime", (inst, def) => {
312
+ def.pattern ?? (def.pattern = regexes.datetime(def));
313
+ exports.$ZodStringFormat.init(inst, def);
314
+ });
315
+ exports.$ZodISODate = core.$constructor("$ZodISODate", (inst, def) => {
316
+ def.pattern ?? (def.pattern = regexes.date);
317
+ exports.$ZodStringFormat.init(inst, def);
318
+ });
319
+ exports.$ZodISOTime = core.$constructor("$ZodISOTime", (inst, def) => {
320
+ def.pattern ?? (def.pattern = regexes.time(def));
321
+ exports.$ZodStringFormat.init(inst, def);
322
+ });
323
+ exports.$ZodISODuration = core.$constructor("$ZodISODuration", (inst, def) => {
324
+ def.pattern ?? (def.pattern = regexes.duration);
325
+ exports.$ZodStringFormat.init(inst, def);
326
+ });
327
+ exports.$ZodIPv4 = core.$constructor("$ZodIPv4", (inst, def) => {
328
+ def.pattern ?? (def.pattern = regexes.ipv4);
329
+ exports.$ZodStringFormat.init(inst, def);
330
+ inst._zod.onattach.push((inst) => {
331
+ const bag = inst._zod.bag;
332
+ bag.format = `ipv4`;
333
+ });
334
+ });
335
+ exports.$ZodIPv6 = core.$constructor("$ZodIPv6", (inst, def) => {
336
+ def.pattern ?? (def.pattern = regexes.ipv6);
337
+ exports.$ZodStringFormat.init(inst, def);
338
+ inst._zod.onattach.push((inst) => {
339
+ const bag = inst._zod.bag;
340
+ bag.format = `ipv6`;
341
+ });
342
+ inst._zod.check = (payload) => {
343
+ try {
344
+ // @ts-ignore
345
+ new URL(`http://[${payload.value}]`);
346
+ // return;
347
+ }
348
+ catch {
349
+ payload.issues.push({
350
+ code: "invalid_format",
351
+ format: "ipv6",
352
+ input: payload.value,
353
+ inst,
354
+ continue: !def.abort,
355
+ });
356
+ }
357
+ };
358
+ });
359
+ exports.$ZodCIDRv4 = core.$constructor("$ZodCIDRv4", (inst, def) => {
360
+ def.pattern ?? (def.pattern = regexes.cidrv4);
361
+ exports.$ZodStringFormat.init(inst, def);
362
+ });
363
+ exports.$ZodCIDRv6 = core.$constructor("$ZodCIDRv6", (inst, def) => {
364
+ def.pattern ?? (def.pattern = regexes.cidrv6); // not used for validation
365
+ exports.$ZodStringFormat.init(inst, def);
366
+ inst._zod.check = (payload) => {
367
+ const parts = payload.value.split("/");
368
+ try {
369
+ if (parts.length !== 2)
370
+ throw new Error();
371
+ const [address, prefix] = parts;
372
+ if (!prefix)
373
+ throw new Error();
374
+ const prefixNum = Number(prefix);
375
+ if (`${prefixNum}` !== prefix)
376
+ throw new Error();
377
+ if (prefixNum < 0 || prefixNum > 128)
378
+ throw new Error();
379
+ // @ts-ignore
380
+ new URL(`http://[${address}]`);
381
+ }
382
+ catch {
383
+ payload.issues.push({
384
+ code: "invalid_format",
385
+ format: "cidrv6",
386
+ input: payload.value,
387
+ inst,
388
+ continue: !def.abort,
389
+ });
390
+ }
391
+ };
392
+ });
393
+ ////////////////////////////// ZodBase64 //////////////////////////////
394
+ function isValidBase64(data) {
395
+ if (data === "")
396
+ return true;
397
+ if (data.length % 4 !== 0)
398
+ return false;
399
+ try {
400
+ // @ts-ignore
401
+ atob(data);
402
+ return true;
403
+ }
404
+ catch {
405
+ return false;
406
+ }
407
+ }
408
+ exports.$ZodBase64 = core.$constructor("$ZodBase64", (inst, def) => {
409
+ def.pattern ?? (def.pattern = regexes.base64);
410
+ exports.$ZodStringFormat.init(inst, def);
411
+ inst._zod.onattach.push((inst) => {
412
+ inst._zod.bag.contentEncoding = "base64";
413
+ });
414
+ inst._zod.check = (payload) => {
415
+ if (isValidBase64(payload.value))
416
+ return;
417
+ payload.issues.push({
418
+ code: "invalid_format",
419
+ format: "base64",
420
+ input: payload.value,
421
+ inst,
422
+ continue: !def.abort,
423
+ });
424
+ };
425
+ });
426
+ ////////////////////////////// ZodBase64 //////////////////////////////
427
+ function isValidBase64URL(data) {
428
+ if (!regexes.base64url.test(data))
429
+ return false;
430
+ const base64 = data.replace(/[-_]/g, (c) => (c === "-" ? "+" : "/"));
431
+ const padded = base64.padEnd(Math.ceil(base64.length / 4) * 4, "=");
432
+ return isValidBase64(padded);
433
+ }
434
+ exports.$ZodBase64URL = core.$constructor("$ZodBase64URL", (inst, def) => {
435
+ def.pattern ?? (def.pattern = regexes.base64url);
436
+ exports.$ZodStringFormat.init(inst, def);
437
+ inst._zod.onattach.push((inst) => {
438
+ inst._zod.bag.contentEncoding = "base64url";
439
+ });
440
+ inst._zod.check = (payload) => {
441
+ if (isValidBase64URL(payload.value))
442
+ return;
443
+ payload.issues.push({
444
+ code: "invalid_format",
445
+ format: "base64url",
446
+ input: payload.value,
447
+ inst,
448
+ continue: !def.abort,
449
+ });
450
+ };
451
+ });
452
+ exports.$ZodE164 = core.$constructor("$ZodE164", (inst, def) => {
453
+ def.pattern ?? (def.pattern = regexes.e164);
454
+ exports.$ZodStringFormat.init(inst, def);
455
+ });
456
+ ////////////////////////////// ZodJWT //////////////////////////////
457
+ function isValidJWT(token, algorithm = null) {
458
+ try {
459
+ const tokensParts = token.split(".");
460
+ if (tokensParts.length !== 3)
461
+ return false;
462
+ const [header] = tokensParts;
463
+ if (!header)
464
+ return false;
465
+ // @ts-ignore
466
+ const parsedHeader = JSON.parse(atob(header));
467
+ if ("typ" in parsedHeader && parsedHeader?.typ !== "JWT")
468
+ return false;
469
+ if (!parsedHeader.alg)
470
+ return false;
471
+ if (algorithm && (!("alg" in parsedHeader) || parsedHeader.alg !== algorithm))
472
+ return false;
473
+ return true;
474
+ }
475
+ catch {
476
+ return false;
477
+ }
478
+ }
479
+ exports.$ZodJWT = core.$constructor("$ZodJWT", (inst, def) => {
480
+ exports.$ZodStringFormat.init(inst, def);
481
+ inst._zod.check = (payload) => {
482
+ if (isValidJWT(payload.value, def.alg))
483
+ return;
484
+ payload.issues.push({
485
+ code: "invalid_format",
486
+ format: "jwt",
487
+ input: payload.value,
488
+ inst,
489
+ continue: !def.abort,
490
+ });
491
+ };
492
+ });
493
+ exports.$ZodCustomStringFormat = core.$constructor("$ZodCustomStringFormat", (inst, def) => {
494
+ exports.$ZodStringFormat.init(inst, def);
495
+ inst._zod.check = (payload) => {
496
+ if (def.fn(payload.value))
497
+ return;
498
+ payload.issues.push({
499
+ code: "invalid_format",
500
+ format: def.format,
501
+ input: payload.value,
502
+ inst,
503
+ continue: !def.abort,
504
+ });
505
+ };
506
+ });
507
+ exports.$ZodNumber = core.$constructor("$ZodNumber", (inst, def) => {
508
+ exports.$ZodType.init(inst, def);
509
+ inst._zod.pattern = inst._zod.bag.pattern ?? regexes.number;
510
+ inst._zod.parse = (payload, _ctx) => {
511
+ if (def.coerce)
512
+ try {
513
+ payload.value = Number(payload.value);
514
+ }
515
+ catch (_) { }
516
+ const input = payload.value;
517
+ if (typeof input === "number" && !Number.isNaN(input) && Number.isFinite(input)) {
518
+ return payload;
519
+ }
520
+ const received = typeof input === "number"
521
+ ? Number.isNaN(input)
522
+ ? "NaN"
523
+ : !Number.isFinite(input)
524
+ ? "Infinity"
525
+ : undefined
526
+ : undefined;
527
+ payload.issues.push({
528
+ expected: "number",
529
+ code: "invalid_type",
530
+ input,
531
+ inst,
532
+ ...(received ? { received } : {}),
533
+ });
534
+ return payload;
535
+ };
536
+ });
537
+ exports.$ZodNumberFormat = core.$constructor("$ZodNumber", (inst, def) => {
538
+ checks.$ZodCheckNumberFormat.init(inst, def);
539
+ exports.$ZodNumber.init(inst, def); // no format checksp
540
+ });
541
+ exports.$ZodBoolean = core.$constructor("$ZodBoolean", (inst, def) => {
542
+ exports.$ZodType.init(inst, def);
543
+ inst._zod.pattern = regexes.boolean;
544
+ inst._zod.parse = (payload, _ctx) => {
545
+ if (def.coerce)
546
+ try {
547
+ payload.value = Boolean(payload.value);
548
+ }
549
+ catch (_) { }
550
+ const input = payload.value;
551
+ if (typeof input === "boolean")
552
+ return payload;
553
+ payload.issues.push({
554
+ expected: "boolean",
555
+ code: "invalid_type",
556
+ input,
557
+ inst,
558
+ });
559
+ return payload;
560
+ };
561
+ });
562
+ exports.$ZodBigInt = core.$constructor("$ZodBigInt", (inst, def) => {
563
+ exports.$ZodType.init(inst, def);
564
+ inst._zod.pattern = regexes.bigint;
565
+ inst._zod.parse = (payload, _ctx) => {
566
+ if (def.coerce)
567
+ try {
568
+ payload.value = BigInt(payload.value);
569
+ }
570
+ catch (_) { }
571
+ if (typeof payload.value === "bigint")
572
+ return payload;
573
+ payload.issues.push({
574
+ expected: "bigint",
575
+ code: "invalid_type",
576
+ input: payload.value,
577
+ inst,
578
+ });
579
+ return payload;
580
+ };
581
+ });
582
+ exports.$ZodBigIntFormat = core.$constructor("$ZodBigInt", (inst, def) => {
583
+ checks.$ZodCheckBigIntFormat.init(inst, def);
584
+ exports.$ZodBigInt.init(inst, def); // no format checks
585
+ });
586
+ exports.$ZodSymbol = core.$constructor("$ZodSymbol", (inst, def) => {
587
+ exports.$ZodType.init(inst, def);
588
+ inst._zod.parse = (payload, _ctx) => {
589
+ const input = payload.value;
590
+ if (typeof input === "symbol")
591
+ return payload;
592
+ payload.issues.push({
593
+ expected: "symbol",
594
+ code: "invalid_type",
595
+ input,
596
+ inst,
597
+ });
598
+ return payload;
599
+ };
600
+ });
601
+ exports.$ZodUndefined = core.$constructor("$ZodUndefined", (inst, def) => {
602
+ exports.$ZodType.init(inst, def);
603
+ inst._zod.pattern = regexes.undefined;
604
+ inst._zod.values = new Set([undefined]);
605
+ inst._zod.optin = "optional";
606
+ inst._zod.optout = "optional";
607
+ inst._zod.parse = (payload, _ctx) => {
608
+ const input = payload.value;
609
+ if (typeof input === "undefined")
610
+ return payload;
611
+ payload.issues.push({
612
+ expected: "undefined",
613
+ code: "invalid_type",
614
+ input,
615
+ inst,
616
+ });
617
+ return payload;
618
+ };
619
+ });
620
+ exports.$ZodNull = core.$constructor("$ZodNull", (inst, def) => {
621
+ exports.$ZodType.init(inst, def);
622
+ inst._zod.pattern = regexes.null;
623
+ inst._zod.values = new Set([null]);
624
+ inst._zod.parse = (payload, _ctx) => {
625
+ const input = payload.value;
626
+ if (input === null)
627
+ return payload;
628
+ payload.issues.push({
629
+ expected: "null",
630
+ code: "invalid_type",
631
+ input,
632
+ inst,
633
+ });
634
+ return payload;
635
+ };
636
+ });
637
+ exports.$ZodAny = core.$constructor("$ZodAny", (inst, def) => {
638
+ exports.$ZodType.init(inst, def);
639
+ inst._zod.parse = (payload) => payload;
640
+ });
641
+ exports.$ZodUnknown = core.$constructor("$ZodUnknown", (inst, def) => {
642
+ exports.$ZodType.init(inst, def);
643
+ inst._zod.parse = (payload) => payload;
644
+ });
645
+ exports.$ZodNever = core.$constructor("$ZodNever", (inst, def) => {
646
+ exports.$ZodType.init(inst, def);
647
+ inst._zod.parse = (payload, _ctx) => {
648
+ payload.issues.push({
649
+ expected: "never",
650
+ code: "invalid_type",
651
+ input: payload.value,
652
+ inst,
653
+ });
654
+ return payload;
655
+ };
656
+ });
657
+ exports.$ZodVoid = core.$constructor("$ZodVoid", (inst, def) => {
658
+ exports.$ZodType.init(inst, def);
659
+ inst._zod.parse = (payload, _ctx) => {
660
+ const input = payload.value;
661
+ if (typeof input === "undefined")
662
+ return payload;
663
+ payload.issues.push({
664
+ expected: "void",
665
+ code: "invalid_type",
666
+ input,
667
+ inst,
668
+ });
669
+ return payload;
670
+ };
671
+ });
672
+ exports.$ZodDate = core.$constructor("$ZodDate", (inst, def) => {
673
+ exports.$ZodType.init(inst, def);
674
+ inst._zod.parse = (payload, _ctx) => {
675
+ if (def.coerce) {
676
+ try {
677
+ payload.value = new Date(payload.value);
678
+ }
679
+ catch (_err) { }
680
+ }
681
+ const input = payload.value;
682
+ const isDate = input instanceof Date;
683
+ const isValidDate = isDate && !Number.isNaN(input.getTime());
684
+ if (isValidDate)
685
+ return payload;
686
+ payload.issues.push({
687
+ expected: "date",
688
+ code: "invalid_type",
689
+ input,
690
+ ...(isDate ? { received: "Invalid Date" } : {}),
691
+ inst,
692
+ });
693
+ return payload;
694
+ };
695
+ });
696
+ function handleArrayResult(result, final, index) {
697
+ if (result.issues.length) {
698
+ final.issues.push(...util.prefixIssues(index, result.issues));
699
+ }
700
+ final.value[index] = result.value;
701
+ }
702
+ exports.$ZodArray = core.$constructor("$ZodArray", (inst, def) => {
703
+ exports.$ZodType.init(inst, def);
704
+ inst._zod.parse = (payload, ctx) => {
705
+ const input = payload.value;
706
+ if (!Array.isArray(input)) {
707
+ payload.issues.push({
708
+ expected: "array",
709
+ code: "invalid_type",
710
+ input,
711
+ inst,
712
+ });
713
+ return payload;
714
+ }
715
+ payload.value = Array(input.length);
716
+ const proms = [];
717
+ for (let i = 0; i < input.length; i++) {
718
+ const item = input[i];
719
+ const result = def.element._zod.run({
720
+ value: item,
721
+ issues: [],
722
+ }, ctx);
723
+ if (result instanceof Promise) {
724
+ proms.push(result.then((result) => handleArrayResult(result, payload, i)));
725
+ }
726
+ else {
727
+ handleArrayResult(result, payload, i);
728
+ }
729
+ }
730
+ if (proms.length) {
731
+ return Promise.all(proms).then(() => payload);
732
+ }
733
+ return payload; //handleArrayResultsAsync(parseResults, final);
734
+ };
735
+ });
736
+ function handlePropertyResult(result, final, key, input) {
737
+ if (result.issues.length) {
738
+ final.issues.push(...util.prefixIssues(key, result.issues));
739
+ }
740
+ if (result.value === undefined) {
741
+ if (key in input) {
742
+ final.value[key] = undefined;
743
+ }
744
+ }
745
+ else {
746
+ final.value[key] = result.value;
747
+ }
748
+ }
749
+ function normalizeDef(def) {
750
+ const keys = Object.keys(def.shape);
751
+ for (const k of keys) {
752
+ if (!def.shape?.[k]?._zod?.traits?.has("$ZodType")) {
753
+ throw new Error(`Invalid element at key "${k}": expected a Zod schema`);
754
+ }
755
+ }
756
+ const okeys = util.optionalKeys(def.shape);
757
+ return {
758
+ ...def,
759
+ keys,
760
+ keySet: new Set(keys),
761
+ numKeys: keys.length,
762
+ optionalKeys: new Set(okeys),
763
+ };
764
+ }
765
+ function handleCatchall(proms, input, payload, ctx, def, inst) {
766
+ const unrecognized = [];
767
+ // iterate over input keys
768
+ const keySet = def.keySet;
769
+ const _catchall = def.catchall._zod;
770
+ const t = _catchall.def.type;
771
+ for (const key of Object.keys(input)) {
772
+ if (keySet.has(key))
773
+ continue;
774
+ if (t === "never") {
775
+ unrecognized.push(key);
776
+ continue;
777
+ }
778
+ const r = _catchall.run({ value: input[key], issues: [] }, ctx);
779
+ if (r instanceof Promise) {
780
+ proms.push(r.then((r) => handlePropertyResult(r, payload, key, input)));
781
+ }
782
+ else {
783
+ handlePropertyResult(r, payload, key, input);
784
+ }
785
+ }
786
+ if (unrecognized.length) {
787
+ payload.issues.push({
788
+ code: "unrecognized_keys",
789
+ keys: unrecognized,
790
+ input,
791
+ inst,
792
+ });
793
+ }
794
+ if (!proms.length)
795
+ return payload;
796
+ return Promise.all(proms).then(() => {
797
+ return payload;
798
+ });
799
+ }
800
+ exports.$ZodObject = core.$constructor("$ZodObject", (inst, def) => {
801
+ // requires cast because technically $ZodObject doesn't extend
802
+ exports.$ZodType.init(inst, def);
803
+ // const sh = def.shape;
804
+ const desc = Object.getOwnPropertyDescriptor(def, "shape");
805
+ if (!desc?.get) {
806
+ const sh = def.shape;
807
+ Object.defineProperty(def, "shape", {
808
+ get: () => {
809
+ const newSh = { ...sh };
810
+ Object.defineProperty(def, "shape", {
811
+ value: newSh,
812
+ });
813
+ return newSh;
814
+ },
815
+ });
816
+ }
817
+ const _normalized = util.cached(() => normalizeDef(def));
818
+ util.defineLazy(inst._zod, "propValues", () => {
819
+ const shape = def.shape;
820
+ const propValues = {};
821
+ for (const key in shape) {
822
+ const field = shape[key]._zod;
823
+ if (field.values) {
824
+ propValues[key] ?? (propValues[key] = new Set());
825
+ for (const v of field.values)
826
+ propValues[key].add(v);
827
+ }
828
+ }
829
+ return propValues;
830
+ });
831
+ const isObject = util.isObject;
832
+ const catchall = def.catchall;
833
+ let value;
834
+ inst._zod.parse = (payload, ctx) => {
835
+ value ?? (value = _normalized.value);
836
+ const input = payload.value;
837
+ if (!isObject(input)) {
838
+ payload.issues.push({
839
+ expected: "object",
840
+ code: "invalid_type",
841
+ input,
842
+ inst,
843
+ });
844
+ return payload;
845
+ }
846
+ payload.value = {};
847
+ const proms = [];
848
+ const shape = value.shape;
849
+ for (const key of value.keys) {
850
+ const el = shape[key];
851
+ const r = el._zod.run({ value: input[key], issues: [] }, ctx);
852
+ if (r instanceof Promise) {
853
+ proms.push(r.then((r) => handlePropertyResult(r, payload, key, input)));
854
+ }
855
+ else {
856
+ handlePropertyResult(r, payload, key, input);
857
+ }
858
+ }
859
+ if (!catchall) {
860
+ return proms.length ? Promise.all(proms).then(() => payload) : payload;
861
+ }
862
+ return handleCatchall(proms, input, payload, ctx, _normalized.value, inst);
863
+ };
864
+ });
865
+ exports.$ZodObjectJIT = core.$constructor("$ZodObjectJIT", (inst, def) => {
866
+ // requires cast because technically $ZodObject doesn't extend
867
+ exports.$ZodObject.init(inst, def);
868
+ const superParse = inst._zod.parse;
869
+ const _normalized = util.cached(() => normalizeDef(def));
870
+ const generateFastpass = (shape) => {
871
+ const doc = new doc_js_1.Doc(["shape", "payload", "ctx"]);
872
+ const normalized = _normalized.value;
873
+ const parseStr = (key) => {
874
+ const k = util.esc(key);
875
+ return `shape[${k}]._zod.run({ value: input[${k}], issues: [] }, ctx)`;
876
+ };
877
+ doc.write(`const input = payload.value;`);
878
+ const ids = Object.create(null);
879
+ let counter = 0;
880
+ for (const key of normalized.keys) {
881
+ ids[key] = `key_${counter++}`;
882
+ }
883
+ // A: preserve key order {
884
+ doc.write(`const newResult = {};`);
885
+ for (const key of normalized.keys) {
886
+ const id = ids[key];
887
+ const k = util.esc(key);
888
+ doc.write(`const ${id} = ${parseStr(key)};`);
889
+ doc.write(`
890
+ if (${id}.issues.length) {
891
+ payload.issues = payload.issues.concat(${id}.issues.map(iss => ({
892
+ ...iss,
893
+ path: iss.path ? [${k}, ...iss.path] : [${k}]
894
+ })));
895
+ }
896
+
897
+
898
+ if (${id}.value === undefined) {
899
+ if (${k} in input) {
900
+ newResult[${k}] = undefined;
901
+ }
902
+ } else {
903
+ newResult[${k}] = ${id}.value;
904
+ }
905
+
906
+ `);
907
+ }
908
+ doc.write(`payload.value = newResult;`);
909
+ doc.write(`return payload;`);
910
+ const fn = doc.compile();
911
+ return (payload, ctx) => fn(shape, payload, ctx);
912
+ };
913
+ let fastpass;
914
+ const isObject = util.isObject;
915
+ const jit = !core.globalConfig.jitless;
916
+ const allowsEval = util.allowsEval;
917
+ const fastEnabled = jit && allowsEval.value; // && !def.catchall;
918
+ const catchall = def.catchall;
919
+ let value;
920
+ inst._zod.parse = (payload, ctx) => {
921
+ value ?? (value = _normalized.value);
922
+ const input = payload.value;
923
+ if (!isObject(input)) {
924
+ payload.issues.push({
925
+ expected: "object",
926
+ code: "invalid_type",
927
+ input,
928
+ inst,
929
+ });
930
+ return payload;
931
+ }
932
+ if (jit && fastEnabled && ctx?.async === false && ctx.jitless !== true) {
933
+ // always synchronous
934
+ if (!fastpass)
935
+ fastpass = generateFastpass(def.shape);
936
+ payload = fastpass(payload, ctx);
937
+ if (!catchall)
938
+ return payload;
939
+ return handleCatchall([], input, payload, ctx, value, inst);
940
+ }
941
+ return superParse(payload, ctx);
942
+ };
943
+ });
944
+ function handleUnionResults(results, final, inst, ctx) {
945
+ for (const result of results) {
946
+ if (result.issues.length === 0) {
947
+ final.value = result.value;
948
+ return final;
949
+ }
950
+ }
951
+ const nonaborted = results.filter((r) => !util.aborted(r));
952
+ if (nonaborted.length === 1) {
953
+ final.value = nonaborted[0].value;
954
+ return nonaborted[0];
955
+ }
956
+ final.issues.push({
957
+ code: "invalid_union",
958
+ input: final.value,
959
+ inst,
960
+ errors: results.map((result) => result.issues.map((iss) => util.finalizeIssue(iss, ctx, core.config()))),
961
+ });
962
+ return final;
963
+ }
964
+ exports.$ZodUnion = core.$constructor("$ZodUnion", (inst, def) => {
965
+ exports.$ZodType.init(inst, def);
966
+ util.defineLazy(inst._zod, "optin", () => def.options.some((o) => o._zod.optin === "optional") ? "optional" : undefined);
967
+ util.defineLazy(inst._zod, "optout", () => def.options.some((o) => o._zod.optout === "optional") ? "optional" : undefined);
968
+ util.defineLazy(inst._zod, "values", () => {
969
+ if (def.options.every((o) => o._zod.values)) {
970
+ return new Set(def.options.flatMap((option) => Array.from(option._zod.values)));
971
+ }
972
+ return undefined;
973
+ });
974
+ util.defineLazy(inst._zod, "pattern", () => {
975
+ if (def.options.every((o) => o._zod.pattern)) {
976
+ const patterns = def.options.map((o) => o._zod.pattern);
977
+ return new RegExp(`^(${patterns.map((p) => util.cleanRegex(p.source)).join("|")})$`);
978
+ }
979
+ return undefined;
980
+ });
981
+ const single = def.options.length === 1;
982
+ const first = def.options[0]._zod.run;
983
+ inst._zod.parse = (payload, ctx) => {
984
+ if (single) {
985
+ return first(payload, ctx);
986
+ }
987
+ let async = false;
988
+ const results = [];
989
+ for (const option of def.options) {
990
+ const result = option._zod.run({
991
+ value: payload.value,
992
+ issues: [],
993
+ }, ctx);
994
+ if (result instanceof Promise) {
995
+ results.push(result);
996
+ async = true;
997
+ }
998
+ else {
999
+ if (result.issues.length === 0)
1000
+ return result;
1001
+ results.push(result);
1002
+ }
1003
+ }
1004
+ if (!async)
1005
+ return handleUnionResults(results, payload, inst, ctx);
1006
+ return Promise.all(results).then((results) => {
1007
+ return handleUnionResults(results, payload, inst, ctx);
1008
+ });
1009
+ };
1010
+ });
1011
+ exports.$ZodDiscriminatedUnion =
1012
+ /*@__PURE__*/
1013
+ core.$constructor("$ZodDiscriminatedUnion", (inst, def) => {
1014
+ exports.$ZodUnion.init(inst, def);
1015
+ const _super = inst._zod.parse;
1016
+ util.defineLazy(inst._zod, "propValues", () => {
1017
+ const propValues = {};
1018
+ for (const option of def.options) {
1019
+ const pv = option._zod.propValues;
1020
+ if (!pv || Object.keys(pv).length === 0)
1021
+ throw new Error(`Invalid discriminated union option at index "${def.options.indexOf(option)}"`);
1022
+ for (const [k, v] of Object.entries(pv)) {
1023
+ if (!propValues[k])
1024
+ propValues[k] = new Set();
1025
+ for (const val of v) {
1026
+ propValues[k].add(val);
1027
+ }
1028
+ }
1029
+ }
1030
+ return propValues;
1031
+ });
1032
+ const disc = util.cached(() => {
1033
+ const opts = def.options;
1034
+ const map = new Map();
1035
+ for (const o of opts) {
1036
+ const values = o._zod.propValues?.[def.discriminator];
1037
+ if (!values || values.size === 0)
1038
+ throw new Error(`Invalid discriminated union option at index "${def.options.indexOf(o)}"`);
1039
+ for (const v of values) {
1040
+ if (map.has(v)) {
1041
+ throw new Error(`Duplicate discriminator value "${String(v)}"`);
1042
+ }
1043
+ map.set(v, o);
1044
+ }
1045
+ }
1046
+ return map;
1047
+ });
1048
+ inst._zod.parse = (payload, ctx) => {
1049
+ const input = payload.value;
1050
+ if (!util.isObject(input)) {
1051
+ payload.issues.push({
1052
+ code: "invalid_type",
1053
+ expected: "object",
1054
+ input,
1055
+ inst,
1056
+ });
1057
+ return payload;
1058
+ }
1059
+ const opt = disc.value.get(input?.[def.discriminator]);
1060
+ if (opt) {
1061
+ return opt._zod.run(payload, ctx);
1062
+ }
1063
+ if (def.unionFallback) {
1064
+ return _super(payload, ctx);
1065
+ }
1066
+ // no matching discriminator
1067
+ payload.issues.push({
1068
+ code: "invalid_union",
1069
+ errors: [],
1070
+ note: "No matching discriminator",
1071
+ discriminator: def.discriminator,
1072
+ input,
1073
+ path: [def.discriminator],
1074
+ inst,
1075
+ });
1076
+ return payload;
1077
+ };
1078
+ });
1079
+ exports.$ZodIntersection = core.$constructor("$ZodIntersection", (inst, def) => {
1080
+ exports.$ZodType.init(inst, def);
1081
+ inst._zod.parse = (payload, ctx) => {
1082
+ const input = payload.value;
1083
+ const left = def.left._zod.run({ value: input, issues: [] }, ctx);
1084
+ const right = def.right._zod.run({ value: input, issues: [] }, ctx);
1085
+ const async = left instanceof Promise || right instanceof Promise;
1086
+ if (async) {
1087
+ return Promise.all([left, right]).then(([left, right]) => {
1088
+ return handleIntersectionResults(payload, left, right);
1089
+ });
1090
+ }
1091
+ return handleIntersectionResults(payload, left, right);
1092
+ };
1093
+ });
1094
+ function mergeValues(a, b) {
1095
+ // const aType = parse.t(a);
1096
+ // const bType = parse.t(b);
1097
+ if (a === b) {
1098
+ return { valid: true, data: a };
1099
+ }
1100
+ if (a instanceof Date && b instanceof Date && +a === +b) {
1101
+ return { valid: true, data: a };
1102
+ }
1103
+ if (util.isPlainObject(a) && util.isPlainObject(b)) {
1104
+ const bKeys = Object.keys(b);
1105
+ const sharedKeys = Object.keys(a).filter((key) => bKeys.indexOf(key) !== -1);
1106
+ const newObj = { ...a, ...b };
1107
+ for (const key of sharedKeys) {
1108
+ const sharedValue = mergeValues(a[key], b[key]);
1109
+ if (!sharedValue.valid) {
1110
+ return {
1111
+ valid: false,
1112
+ mergeErrorPath: [key, ...sharedValue.mergeErrorPath],
1113
+ };
1114
+ }
1115
+ newObj[key] = sharedValue.data;
1116
+ }
1117
+ return { valid: true, data: newObj };
1118
+ }
1119
+ if (Array.isArray(a) && Array.isArray(b)) {
1120
+ if (a.length !== b.length) {
1121
+ return { valid: false, mergeErrorPath: [] };
1122
+ }
1123
+ const newArray = [];
1124
+ for (let index = 0; index < a.length; index++) {
1125
+ const itemA = a[index];
1126
+ const itemB = b[index];
1127
+ const sharedValue = mergeValues(itemA, itemB);
1128
+ if (!sharedValue.valid) {
1129
+ return {
1130
+ valid: false,
1131
+ mergeErrorPath: [index, ...sharedValue.mergeErrorPath],
1132
+ };
1133
+ }
1134
+ newArray.push(sharedValue.data);
1135
+ }
1136
+ return { valid: true, data: newArray };
1137
+ }
1138
+ return { valid: false, mergeErrorPath: [] };
1139
+ }
1140
+ function handleIntersectionResults(result, left, right) {
1141
+ if (left.issues.length) {
1142
+ result.issues.push(...left.issues);
1143
+ }
1144
+ if (right.issues.length) {
1145
+ result.issues.push(...right.issues);
1146
+ }
1147
+ if (util.aborted(result))
1148
+ return result;
1149
+ const merged = mergeValues(left.value, right.value);
1150
+ if (!merged.valid) {
1151
+ throw new Error(`Unmergable intersection. Error path: ` + `${JSON.stringify(merged.mergeErrorPath)}`);
1152
+ }
1153
+ result.value = merged.data;
1154
+ return result;
1155
+ }
1156
+ exports.$ZodTuple = core.$constructor("$ZodTuple", (inst, def) => {
1157
+ exports.$ZodType.init(inst, def);
1158
+ const items = def.items;
1159
+ const optStart = items.length - [...items].reverse().findIndex((item) => item._zod.optin !== "optional");
1160
+ inst._zod.parse = (payload, ctx) => {
1161
+ const input = payload.value;
1162
+ if (!Array.isArray(input)) {
1163
+ payload.issues.push({
1164
+ input,
1165
+ inst,
1166
+ expected: "tuple",
1167
+ code: "invalid_type",
1168
+ });
1169
+ return payload;
1170
+ }
1171
+ payload.value = [];
1172
+ const proms = [];
1173
+ if (!def.rest) {
1174
+ const tooBig = input.length > items.length;
1175
+ const tooSmall = input.length < optStart - 1;
1176
+ if (tooBig || tooSmall) {
1177
+ payload.issues.push({
1178
+ ...(tooBig ? { code: "too_big", maximum: items.length } : { code: "too_small", minimum: items.length }),
1179
+ input,
1180
+ inst,
1181
+ origin: "array",
1182
+ });
1183
+ return payload;
1184
+ }
1185
+ }
1186
+ let i = -1;
1187
+ for (const item of items) {
1188
+ i++;
1189
+ if (i >= input.length)
1190
+ if (i >= optStart)
1191
+ continue;
1192
+ const result = item._zod.run({
1193
+ value: input[i],
1194
+ issues: [],
1195
+ }, ctx);
1196
+ if (result instanceof Promise) {
1197
+ proms.push(result.then((result) => handleTupleResult(result, payload, i)));
1198
+ }
1199
+ else {
1200
+ handleTupleResult(result, payload, i);
1201
+ }
1202
+ }
1203
+ if (def.rest) {
1204
+ const rest = input.slice(items.length);
1205
+ for (const el of rest) {
1206
+ i++;
1207
+ const result = def.rest._zod.run({
1208
+ value: el,
1209
+ issues: [],
1210
+ }, ctx);
1211
+ if (result instanceof Promise) {
1212
+ proms.push(result.then((result) => handleTupleResult(result, payload, i)));
1213
+ }
1214
+ else {
1215
+ handleTupleResult(result, payload, i);
1216
+ }
1217
+ }
1218
+ }
1219
+ if (proms.length)
1220
+ return Promise.all(proms).then(() => payload);
1221
+ return payload;
1222
+ };
1223
+ });
1224
+ function handleTupleResult(result, final, index) {
1225
+ if (result.issues.length) {
1226
+ final.issues.push(...util.prefixIssues(index, result.issues));
1227
+ }
1228
+ final.value[index] = result.value;
1229
+ }
1230
+ exports.$ZodRecord = core.$constructor("$ZodRecord", (inst, def) => {
1231
+ exports.$ZodType.init(inst, def);
1232
+ inst._zod.parse = (payload, ctx) => {
1233
+ const input = payload.value;
1234
+ if (!util.isPlainObject(input)) {
1235
+ payload.issues.push({
1236
+ expected: "record",
1237
+ code: "invalid_type",
1238
+ input,
1239
+ inst,
1240
+ });
1241
+ return payload;
1242
+ }
1243
+ const proms = [];
1244
+ if (def.keyType._zod.values) {
1245
+ const values = def.keyType._zod.values;
1246
+ payload.value = {};
1247
+ for (const key of values) {
1248
+ if (typeof key === "string" || typeof key === "number" || typeof key === "symbol") {
1249
+ const result = def.valueType._zod.run({ value: input[key], issues: [] }, ctx);
1250
+ if (result instanceof Promise) {
1251
+ proms.push(result.then((result) => {
1252
+ if (result.issues.length) {
1253
+ payload.issues.push(...util.prefixIssues(key, result.issues));
1254
+ }
1255
+ payload.value[key] = result.value;
1256
+ }));
1257
+ }
1258
+ else {
1259
+ if (result.issues.length) {
1260
+ payload.issues.push(...util.prefixIssues(key, result.issues));
1261
+ }
1262
+ payload.value[key] = result.value;
1263
+ }
1264
+ }
1265
+ }
1266
+ let unrecognized;
1267
+ for (const key in input) {
1268
+ if (!values.has(key)) {
1269
+ unrecognized = unrecognized ?? [];
1270
+ unrecognized.push(key);
1271
+ }
1272
+ }
1273
+ if (unrecognized && unrecognized.length > 0) {
1274
+ payload.issues.push({
1275
+ code: "unrecognized_keys",
1276
+ input,
1277
+ inst,
1278
+ keys: unrecognized,
1279
+ });
1280
+ }
1281
+ }
1282
+ else {
1283
+ payload.value = {};
1284
+ for (const key of Reflect.ownKeys(input)) {
1285
+ if (key === "__proto__")
1286
+ continue;
1287
+ const keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
1288
+ if (keyResult instanceof Promise) {
1289
+ throw new Error("Async schemas not supported in object keys currently");
1290
+ }
1291
+ if (keyResult.issues.length) {
1292
+ payload.issues.push({
1293
+ code: "invalid_key",
1294
+ origin: "record",
1295
+ issues: keyResult.issues.map((iss) => util.finalizeIssue(iss, ctx, core.config())),
1296
+ input: key,
1297
+ path: [key],
1298
+ inst,
1299
+ });
1300
+ payload.value[keyResult.value] = keyResult.value;
1301
+ continue;
1302
+ }
1303
+ const result = def.valueType._zod.run({ value: input[key], issues: [] }, ctx);
1304
+ if (result instanceof Promise) {
1305
+ proms.push(result.then((result) => {
1306
+ if (result.issues.length) {
1307
+ payload.issues.push(...util.prefixIssues(key, result.issues));
1308
+ }
1309
+ payload.value[keyResult.value] = result.value;
1310
+ }));
1311
+ }
1312
+ else {
1313
+ if (result.issues.length) {
1314
+ payload.issues.push(...util.prefixIssues(key, result.issues));
1315
+ }
1316
+ payload.value[keyResult.value] = result.value;
1317
+ }
1318
+ }
1319
+ }
1320
+ if (proms.length) {
1321
+ return Promise.all(proms).then(() => payload);
1322
+ }
1323
+ return payload;
1324
+ };
1325
+ });
1326
+ exports.$ZodMap = core.$constructor("$ZodMap", (inst, def) => {
1327
+ exports.$ZodType.init(inst, def);
1328
+ inst._zod.parse = (payload, ctx) => {
1329
+ const input = payload.value;
1330
+ if (!(input instanceof Map)) {
1331
+ payload.issues.push({
1332
+ expected: "map",
1333
+ code: "invalid_type",
1334
+ input,
1335
+ inst,
1336
+ });
1337
+ return payload;
1338
+ }
1339
+ const proms = [];
1340
+ payload.value = new Map();
1341
+ for (const [key, value] of input) {
1342
+ const keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
1343
+ const valueResult = def.valueType._zod.run({ value: value, issues: [] }, ctx);
1344
+ if (keyResult instanceof Promise || valueResult instanceof Promise) {
1345
+ proms.push(Promise.all([keyResult, valueResult]).then(([keyResult, valueResult]) => {
1346
+ handleMapResult(keyResult, valueResult, payload, key, input, inst, ctx);
1347
+ }));
1348
+ }
1349
+ else {
1350
+ handleMapResult(keyResult, valueResult, payload, key, input, inst, ctx);
1351
+ }
1352
+ }
1353
+ if (proms.length)
1354
+ return Promise.all(proms).then(() => payload);
1355
+ return payload;
1356
+ };
1357
+ });
1358
+ function handleMapResult(keyResult, valueResult, final, key, input, inst, ctx) {
1359
+ if (keyResult.issues.length) {
1360
+ if (util.propertyKeyTypes.has(typeof key)) {
1361
+ final.issues.push(...util.prefixIssues(key, keyResult.issues));
1362
+ }
1363
+ else {
1364
+ final.issues.push({
1365
+ code: "invalid_key",
1366
+ origin: "map",
1367
+ input,
1368
+ inst,
1369
+ issues: keyResult.issues.map((iss) => util.finalizeIssue(iss, ctx, core.config())),
1370
+ });
1371
+ }
1372
+ }
1373
+ if (valueResult.issues.length) {
1374
+ if (util.propertyKeyTypes.has(typeof key)) {
1375
+ final.issues.push(...util.prefixIssues(key, valueResult.issues));
1376
+ }
1377
+ else {
1378
+ final.issues.push({
1379
+ origin: "map",
1380
+ code: "invalid_element",
1381
+ input,
1382
+ inst,
1383
+ key: key,
1384
+ issues: valueResult.issues.map((iss) => util.finalizeIssue(iss, ctx, core.config())),
1385
+ });
1386
+ }
1387
+ }
1388
+ final.value.set(keyResult.value, valueResult.value);
1389
+ }
1390
+ exports.$ZodSet = core.$constructor("$ZodSet", (inst, def) => {
1391
+ exports.$ZodType.init(inst, def);
1392
+ inst._zod.parse = (payload, ctx) => {
1393
+ const input = payload.value;
1394
+ if (!(input instanceof Set)) {
1395
+ payload.issues.push({
1396
+ input,
1397
+ inst,
1398
+ expected: "set",
1399
+ code: "invalid_type",
1400
+ });
1401
+ return payload;
1402
+ }
1403
+ const proms = [];
1404
+ payload.value = new Set();
1405
+ for (const item of input) {
1406
+ const result = def.valueType._zod.run({ value: item, issues: [] }, ctx);
1407
+ if (result instanceof Promise) {
1408
+ proms.push(result.then((result) => handleSetResult(result, payload)));
1409
+ }
1410
+ else
1411
+ handleSetResult(result, payload);
1412
+ }
1413
+ if (proms.length)
1414
+ return Promise.all(proms).then(() => payload);
1415
+ return payload;
1416
+ };
1417
+ });
1418
+ function handleSetResult(result, final) {
1419
+ if (result.issues.length) {
1420
+ final.issues.push(...result.issues);
1421
+ }
1422
+ final.value.add(result.value);
1423
+ }
1424
+ exports.$ZodEnum = core.$constructor("$ZodEnum", (inst, def) => {
1425
+ exports.$ZodType.init(inst, def);
1426
+ const values = util.getEnumValues(def.entries);
1427
+ const valuesSet = new Set(values);
1428
+ inst._zod.values = valuesSet;
1429
+ inst._zod.pattern = new RegExp(`^(${values
1430
+ .filter((k) => util.propertyKeyTypes.has(typeof k))
1431
+ .map((o) => (typeof o === "string" ? util.escapeRegex(o) : o.toString()))
1432
+ .join("|")})$`);
1433
+ inst._zod.parse = (payload, _ctx) => {
1434
+ const input = payload.value;
1435
+ if (valuesSet.has(input)) {
1436
+ return payload;
1437
+ }
1438
+ payload.issues.push({
1439
+ code: "invalid_value",
1440
+ values,
1441
+ input,
1442
+ inst,
1443
+ });
1444
+ return payload;
1445
+ };
1446
+ });
1447
+ exports.$ZodLiteral = core.$constructor("$ZodLiteral", (inst, def) => {
1448
+ exports.$ZodType.init(inst, def);
1449
+ if (def.values.length === 0) {
1450
+ throw new Error("Cannot create literal schema with no valid values");
1451
+ }
1452
+ inst._zod.values = new Set(def.values);
1453
+ inst._zod.pattern = new RegExp(`^(${def.values
1454
+ .map((o) => (typeof o === "string" ? util.escapeRegex(o) : o ? util.escapeRegex(o.toString()) : String(o)))
1455
+ .join("|")})$`);
1456
+ inst._zod.parse = (payload, _ctx) => {
1457
+ const input = payload.value;
1458
+ if (inst._zod.values.has(input)) {
1459
+ return payload;
1460
+ }
1461
+ payload.issues.push({
1462
+ code: "invalid_value",
1463
+ values: def.values,
1464
+ input,
1465
+ inst,
1466
+ });
1467
+ return payload;
1468
+ };
1469
+ });
1470
+ exports.$ZodFile = core.$constructor("$ZodFile", (inst, def) => {
1471
+ exports.$ZodType.init(inst, def);
1472
+ inst._zod.parse = (payload, _ctx) => {
1473
+ const input = payload.value;
1474
+ // @ts-ignore
1475
+ if (input instanceof File)
1476
+ return payload;
1477
+ payload.issues.push({
1478
+ expected: "file",
1479
+ code: "invalid_type",
1480
+ input,
1481
+ inst,
1482
+ });
1483
+ return payload;
1484
+ };
1485
+ });
1486
+ exports.$ZodTransform = core.$constructor("$ZodTransform", (inst, def) => {
1487
+ exports.$ZodType.init(inst, def);
1488
+ inst._zod.parse = (payload, ctx) => {
1489
+ if (ctx.direction === "backward") {
1490
+ throw new core.$ZodEncodeError(inst.constructor.name);
1491
+ }
1492
+ const _out = def.transform(payload.value, payload);
1493
+ if (ctx.async) {
1494
+ const output = _out instanceof Promise ? _out : Promise.resolve(_out);
1495
+ return output.then((output) => {
1496
+ payload.value = output;
1497
+ return payload;
1498
+ });
1499
+ }
1500
+ if (_out instanceof Promise) {
1501
+ throw new core.$ZodAsyncError();
1502
+ }
1503
+ payload.value = _out;
1504
+ return payload;
1505
+ };
1506
+ });
1507
+ function handleOptionalResult(result, input) {
1508
+ if (result.issues.length && input === undefined) {
1509
+ return { issues: [], value: undefined };
1510
+ }
1511
+ return result;
1512
+ }
1513
+ exports.$ZodOptional = core.$constructor("$ZodOptional", (inst, def) => {
1514
+ exports.$ZodType.init(inst, def);
1515
+ inst._zod.optin = "optional";
1516
+ inst._zod.optout = "optional";
1517
+ util.defineLazy(inst._zod, "values", () => {
1518
+ return def.innerType._zod.values ? new Set([...def.innerType._zod.values, undefined]) : undefined;
1519
+ });
1520
+ util.defineLazy(inst._zod, "pattern", () => {
1521
+ const pattern = def.innerType._zod.pattern;
1522
+ return pattern ? new RegExp(`^(${util.cleanRegex(pattern.source)})?$`) : undefined;
1523
+ });
1524
+ inst._zod.parse = (payload, ctx) => {
1525
+ if (def.innerType._zod.optin === "optional") {
1526
+ const result = def.innerType._zod.run(payload, ctx);
1527
+ if (result instanceof Promise)
1528
+ return result.then((r) => handleOptionalResult(r, payload.value));
1529
+ return handleOptionalResult(result, payload.value);
1530
+ }
1531
+ if (payload.value === undefined) {
1532
+ return payload;
1533
+ }
1534
+ return def.innerType._zod.run(payload, ctx);
1535
+ };
1536
+ });
1537
+ exports.$ZodNullable = core.$constructor("$ZodNullable", (inst, def) => {
1538
+ exports.$ZodType.init(inst, def);
1539
+ util.defineLazy(inst._zod, "optin", () => def.innerType._zod.optin);
1540
+ util.defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
1541
+ util.defineLazy(inst._zod, "pattern", () => {
1542
+ const pattern = def.innerType._zod.pattern;
1543
+ return pattern ? new RegExp(`^(${util.cleanRegex(pattern.source)}|null)$`) : undefined;
1544
+ });
1545
+ util.defineLazy(inst._zod, "values", () => {
1546
+ return def.innerType._zod.values ? new Set([...def.innerType._zod.values, null]) : undefined;
1547
+ });
1548
+ inst._zod.parse = (payload, ctx) => {
1549
+ // Forward direction (decode): allow null to pass through
1550
+ if (payload.value === null)
1551
+ return payload;
1552
+ return def.innerType._zod.run(payload, ctx);
1553
+ };
1554
+ });
1555
+ exports.$ZodDefault = core.$constructor("$ZodDefault", (inst, def) => {
1556
+ exports.$ZodType.init(inst, def);
1557
+ // inst._zod.qin = "true";
1558
+ inst._zod.optin = "optional";
1559
+ util.defineLazy(inst._zod, "values", () => def.innerType._zod.values);
1560
+ inst._zod.parse = (payload, ctx) => {
1561
+ if (ctx.direction === "backward") {
1562
+ return def.innerType._zod.run(payload, ctx);
1563
+ }
1564
+ // Forward direction (decode): apply defaults for undefined input
1565
+ if (payload.value === undefined) {
1566
+ payload.value = def.defaultValue;
1567
+ /**
1568
+ * $ZodDefault returns the default value immediately in forward direction.
1569
+ * It doesn't pass the default value into the validator ("prefault"). There's no reason to pass the default value through validation. The validity of the default is enforced by TypeScript statically. Otherwise, it's the responsibility of the user to ensure the default is valid. In the case of pipes with divergent in/out types, you can specify the default on the `in` schema of your ZodPipe to set a "prefault" for the pipe. */
1570
+ return payload;
1571
+ }
1572
+ // Forward direction: continue with default handling
1573
+ const result = def.innerType._zod.run(payload, ctx);
1574
+ if (result instanceof Promise) {
1575
+ return result.then((result) => handleDefaultResult(result, def));
1576
+ }
1577
+ return handleDefaultResult(result, def);
1578
+ };
1579
+ });
1580
+ function handleDefaultResult(payload, def) {
1581
+ if (payload.value === undefined) {
1582
+ payload.value = def.defaultValue;
1583
+ }
1584
+ return payload;
1585
+ }
1586
+ exports.$ZodPrefault = core.$constructor("$ZodPrefault", (inst, def) => {
1587
+ exports.$ZodType.init(inst, def);
1588
+ inst._zod.optin = "optional";
1589
+ util.defineLazy(inst._zod, "values", () => def.innerType._zod.values);
1590
+ inst._zod.parse = (payload, ctx) => {
1591
+ if (ctx.direction === "backward") {
1592
+ return def.innerType._zod.run(payload, ctx);
1593
+ }
1594
+ // Forward direction (decode): apply prefault for undefined input
1595
+ if (payload.value === undefined) {
1596
+ payload.value = def.defaultValue;
1597
+ }
1598
+ return def.innerType._zod.run(payload, ctx);
1599
+ };
1600
+ });
1601
+ exports.$ZodNonOptional = core.$constructor("$ZodNonOptional", (inst, def) => {
1602
+ exports.$ZodType.init(inst, def);
1603
+ util.defineLazy(inst._zod, "values", () => {
1604
+ const v = def.innerType._zod.values;
1605
+ return v ? new Set([...v].filter((x) => x !== undefined)) : undefined;
1606
+ });
1607
+ inst._zod.parse = (payload, ctx) => {
1608
+ const result = def.innerType._zod.run(payload, ctx);
1609
+ if (result instanceof Promise) {
1610
+ return result.then((result) => handleNonOptionalResult(result, inst));
1611
+ }
1612
+ return handleNonOptionalResult(result, inst);
1613
+ };
1614
+ });
1615
+ function handleNonOptionalResult(payload, inst) {
1616
+ if (!payload.issues.length && payload.value === undefined) {
1617
+ payload.issues.push({
1618
+ code: "invalid_type",
1619
+ expected: "nonoptional",
1620
+ input: payload.value,
1621
+ inst,
1622
+ });
1623
+ }
1624
+ return payload;
1625
+ }
1626
+ exports.$ZodSuccess = core.$constructor("$ZodSuccess", (inst, def) => {
1627
+ exports.$ZodType.init(inst, def);
1628
+ inst._zod.parse = (payload, ctx) => {
1629
+ if (ctx.direction === "backward") {
1630
+ throw new core.$ZodEncodeError("ZodSuccess");
1631
+ }
1632
+ const result = def.innerType._zod.run(payload, ctx);
1633
+ if (result instanceof Promise) {
1634
+ return result.then((result) => {
1635
+ payload.value = result.issues.length === 0;
1636
+ return payload;
1637
+ });
1638
+ }
1639
+ payload.value = result.issues.length === 0;
1640
+ return payload;
1641
+ };
1642
+ });
1643
+ exports.$ZodCatch = core.$constructor("$ZodCatch", (inst, def) => {
1644
+ exports.$ZodType.init(inst, def);
1645
+ util.defineLazy(inst._zod, "optin", () => def.innerType._zod.optin);
1646
+ util.defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
1647
+ util.defineLazy(inst._zod, "values", () => def.innerType._zod.values);
1648
+ inst._zod.parse = (payload, ctx) => {
1649
+ if (ctx.direction === "backward") {
1650
+ return def.innerType._zod.run(payload, ctx);
1651
+ }
1652
+ // Forward direction (decode): apply catch logic
1653
+ const result = def.innerType._zod.run(payload, ctx);
1654
+ if (result instanceof Promise) {
1655
+ return result.then((result) => {
1656
+ payload.value = result.value;
1657
+ if (result.issues.length) {
1658
+ payload.value = def.catchValue({
1659
+ ...payload,
1660
+ error: {
1661
+ issues: result.issues.map((iss) => util.finalizeIssue(iss, ctx, core.config())),
1662
+ },
1663
+ input: payload.value,
1664
+ });
1665
+ payload.issues = [];
1666
+ }
1667
+ return payload;
1668
+ });
1669
+ }
1670
+ payload.value = result.value;
1671
+ if (result.issues.length) {
1672
+ payload.value = def.catchValue({
1673
+ ...payload,
1674
+ error: {
1675
+ issues: result.issues.map((iss) => util.finalizeIssue(iss, ctx, core.config())),
1676
+ },
1677
+ input: payload.value,
1678
+ });
1679
+ payload.issues = [];
1680
+ }
1681
+ return payload;
1682
+ };
1683
+ });
1684
+ exports.$ZodNaN = core.$constructor("$ZodNaN", (inst, def) => {
1685
+ exports.$ZodType.init(inst, def);
1686
+ inst._zod.parse = (payload, _ctx) => {
1687
+ if (typeof payload.value !== "number" || !Number.isNaN(payload.value)) {
1688
+ payload.issues.push({
1689
+ input: payload.value,
1690
+ inst,
1691
+ expected: "nan",
1692
+ code: "invalid_type",
1693
+ });
1694
+ return payload;
1695
+ }
1696
+ return payload;
1697
+ };
1698
+ });
1699
+ exports.$ZodPipe = core.$constructor("$ZodPipe", (inst, def) => {
1700
+ exports.$ZodType.init(inst, def);
1701
+ util.defineLazy(inst._zod, "values", () => def.in._zod.values);
1702
+ util.defineLazy(inst._zod, "optin", () => def.in._zod.optin);
1703
+ util.defineLazy(inst._zod, "optout", () => def.out._zod.optout);
1704
+ util.defineLazy(inst._zod, "propValues", () => def.in._zod.propValues);
1705
+ inst._zod.parse = (payload, ctx) => {
1706
+ if (ctx.direction === "backward") {
1707
+ const right = def.out._zod.run(payload, ctx);
1708
+ if (right instanceof Promise) {
1709
+ return right.then((right) => handlePipeResult(right, def.in, ctx));
1710
+ }
1711
+ return handlePipeResult(right, def.in, ctx);
1712
+ }
1713
+ const left = def.in._zod.run(payload, ctx);
1714
+ if (left instanceof Promise) {
1715
+ return left.then((left) => handlePipeResult(left, def.out, ctx));
1716
+ }
1717
+ return handlePipeResult(left, def.out, ctx);
1718
+ };
1719
+ });
1720
+ function handlePipeResult(left, next, ctx) {
1721
+ if (left.issues.length) {
1722
+ // prevent further checks
1723
+ left.aborted = true;
1724
+ return left;
1725
+ }
1726
+ return next._zod.run({ value: left.value, issues: left.issues }, ctx);
1727
+ }
1728
+ exports.$ZodCodec = core.$constructor("$ZodCodec", (inst, def) => {
1729
+ exports.$ZodType.init(inst, def);
1730
+ util.defineLazy(inst._zod, "values", () => def.in._zod.values);
1731
+ util.defineLazy(inst._zod, "optin", () => def.in._zod.optin);
1732
+ util.defineLazy(inst._zod, "optout", () => def.out._zod.optout);
1733
+ util.defineLazy(inst._zod, "propValues", () => def.in._zod.propValues);
1734
+ inst._zod.parse = (payload, ctx) => {
1735
+ const direction = ctx.direction || "forward";
1736
+ if (direction === "forward") {
1737
+ const left = def.in._zod.run(payload, ctx);
1738
+ if (left instanceof Promise) {
1739
+ return left.then((left) => handleCodecAResult(left, def, ctx));
1740
+ }
1741
+ return handleCodecAResult(left, def, ctx);
1742
+ }
1743
+ else {
1744
+ const right = def.out._zod.run(payload, ctx);
1745
+ if (right instanceof Promise) {
1746
+ return right.then((right) => handleCodecAResult(right, def, ctx));
1747
+ }
1748
+ return handleCodecAResult(right, def, ctx);
1749
+ }
1750
+ };
1751
+ });
1752
+ function handleCodecAResult(result, def, ctx) {
1753
+ if (result.issues.length) {
1754
+ // prevent further checks
1755
+ result.aborted = true;
1756
+ return result;
1757
+ }
1758
+ const direction = ctx.direction || "forward";
1759
+ if (direction === "forward") {
1760
+ const transformed = def.transform(result.value, result);
1761
+ if (transformed instanceof Promise) {
1762
+ return transformed.then((value) => handleCodecTxResult(result, value, def.out, ctx));
1763
+ }
1764
+ return handleCodecTxResult(result, transformed, def.out, ctx);
1765
+ }
1766
+ else {
1767
+ const transformed = def.reverseTransform(result.value, result);
1768
+ if (transformed instanceof Promise) {
1769
+ return transformed.then((value) => handleCodecTxResult(result, value, def.in, ctx));
1770
+ }
1771
+ return handleCodecTxResult(result, transformed, def.in, ctx);
1772
+ }
1773
+ }
1774
+ function handleCodecTxResult(left, value, nextSchema, ctx) {
1775
+ // Check if transform added any issues
1776
+ if (left.issues.length) {
1777
+ left.aborted = true;
1778
+ return left;
1779
+ }
1780
+ return nextSchema._zod.run({ value, issues: left.issues }, ctx);
1781
+ }
1782
+ exports.$ZodReadonly = core.$constructor("$ZodReadonly", (inst, def) => {
1783
+ exports.$ZodType.init(inst, def);
1784
+ util.defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
1785
+ util.defineLazy(inst._zod, "values", () => def.innerType._zod.values);
1786
+ util.defineLazy(inst._zod, "optin", () => def.innerType._zod.optin);
1787
+ util.defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
1788
+ inst._zod.parse = (payload, ctx) => {
1789
+ if (ctx.direction === "backward") {
1790
+ return def.innerType._zod.run(payload, ctx);
1791
+ }
1792
+ const result = def.innerType._zod.run(payload, ctx);
1793
+ if (result instanceof Promise) {
1794
+ return result.then(handleReadonlyResult);
1795
+ }
1796
+ return handleReadonlyResult(result);
1797
+ };
1798
+ });
1799
+ function handleReadonlyResult(payload) {
1800
+ payload.value = Object.freeze(payload.value);
1801
+ return payload;
1802
+ }
1803
+ exports.$ZodTemplateLiteral = core.$constructor("$ZodTemplateLiteral", (inst, def) => {
1804
+ exports.$ZodType.init(inst, def);
1805
+ const regexParts = [];
1806
+ for (const part of def.parts) {
1807
+ if (typeof part === "object" && part !== null) {
1808
+ // is Zod schema
1809
+ if (!part._zod.pattern) {
1810
+ // if (!source)
1811
+ throw new Error(`Invalid template literal part, no pattern found: ${[...part._zod.traits].shift()}`);
1812
+ }
1813
+ const source = part._zod.pattern instanceof RegExp ? part._zod.pattern.source : part._zod.pattern;
1814
+ if (!source)
1815
+ throw new Error(`Invalid template literal part: ${part._zod.traits}`);
1816
+ const start = source.startsWith("^") ? 1 : 0;
1817
+ const end = source.endsWith("$") ? source.length - 1 : source.length;
1818
+ regexParts.push(source.slice(start, end));
1819
+ }
1820
+ else if (part === null || util.primitiveTypes.has(typeof part)) {
1821
+ regexParts.push(util.escapeRegex(`${part}`));
1822
+ }
1823
+ else {
1824
+ throw new Error(`Invalid template literal part: ${part}`);
1825
+ }
1826
+ }
1827
+ inst._zod.pattern = new RegExp(`^${regexParts.join("")}$`);
1828
+ inst._zod.parse = (payload, _ctx) => {
1829
+ if (typeof payload.value !== "string") {
1830
+ payload.issues.push({
1831
+ input: payload.value,
1832
+ inst,
1833
+ expected: "template_literal",
1834
+ code: "invalid_type",
1835
+ });
1836
+ return payload;
1837
+ }
1838
+ inst._zod.pattern.lastIndex = 0;
1839
+ if (!inst._zod.pattern.test(payload.value)) {
1840
+ payload.issues.push({
1841
+ input: payload.value,
1842
+ inst,
1843
+ code: "invalid_format",
1844
+ format: def.format ?? "template_literal",
1845
+ pattern: inst._zod.pattern.source,
1846
+ });
1847
+ return payload;
1848
+ }
1849
+ return payload;
1850
+ };
1851
+ });
1852
+ exports.$ZodFunction = core.$constructor("$ZodFunction", (inst, def) => {
1853
+ exports.$ZodType.init(inst, def);
1854
+ inst._def = def;
1855
+ inst._zod.def = def;
1856
+ inst.implement = (func) => {
1857
+ if (typeof func !== "function") {
1858
+ throw new Error("implement() must be called with a function");
1859
+ }
1860
+ return function (...args) {
1861
+ const parsedArgs = inst._def.input ? (0, parse_js_1.parse)(inst._def.input, args) : args;
1862
+ const result = Reflect.apply(func, this, parsedArgs);
1863
+ if (inst._def.output) {
1864
+ return (0, parse_js_1.parse)(inst._def.output, result);
1865
+ }
1866
+ return result;
1867
+ };
1868
+ };
1869
+ inst.implementAsync = (func) => {
1870
+ if (typeof func !== "function") {
1871
+ throw new Error("implementAsync() must be called with a function");
1872
+ }
1873
+ return async function (...args) {
1874
+ const parsedArgs = inst._def.input ? await (0, parse_js_1.parseAsync)(inst._def.input, args) : args;
1875
+ const result = await Reflect.apply(func, this, parsedArgs);
1876
+ if (inst._def.output) {
1877
+ return await (0, parse_js_1.parseAsync)(inst._def.output, result);
1878
+ }
1879
+ return result;
1880
+ };
1881
+ };
1882
+ inst._zod.parse = (payload, _ctx) => {
1883
+ if (typeof payload.value !== "function") {
1884
+ payload.issues.push({
1885
+ code: "invalid_type",
1886
+ expected: "function",
1887
+ input: payload.value,
1888
+ inst,
1889
+ });
1890
+ return payload;
1891
+ }
1892
+ // Check if output is a promise type to determine if we should use async implementation
1893
+ const hasPromiseOutput = inst._def.output && inst._def.output._zod.def.type === "promise";
1894
+ if (hasPromiseOutput) {
1895
+ payload.value = inst.implementAsync(payload.value);
1896
+ }
1897
+ else {
1898
+ payload.value = inst.implement(payload.value);
1899
+ }
1900
+ return payload;
1901
+ };
1902
+ inst.input = (...args) => {
1903
+ const F = inst.constructor;
1904
+ if (Array.isArray(args[0])) {
1905
+ return new F({
1906
+ type: "function",
1907
+ input: new exports.$ZodTuple({
1908
+ type: "tuple",
1909
+ items: args[0],
1910
+ rest: args[1],
1911
+ }),
1912
+ output: inst._def.output,
1913
+ });
1914
+ }
1915
+ return new F({
1916
+ type: "function",
1917
+ input: args[0],
1918
+ output: inst._def.output,
1919
+ });
1920
+ };
1921
+ inst.output = (output) => {
1922
+ const F = inst.constructor;
1923
+ return new F({
1924
+ type: "function",
1925
+ input: inst._def.input,
1926
+ output,
1927
+ });
1928
+ };
1929
+ return inst;
1930
+ });
1931
+ exports.$ZodPromise = core.$constructor("$ZodPromise", (inst, def) => {
1932
+ exports.$ZodType.init(inst, def);
1933
+ inst._zod.parse = (payload, ctx) => {
1934
+ return Promise.resolve(payload.value).then((inner) => def.innerType._zod.run({ value: inner, issues: [] }, ctx));
1935
+ };
1936
+ });
1937
+ exports.$ZodLazy = core.$constructor("$ZodLazy", (inst, def) => {
1938
+ exports.$ZodType.init(inst, def);
1939
+ // let _innerType!: any;
1940
+ // util.defineLazy(def, "getter", () => {
1941
+ // if (!_innerType) {
1942
+ // _innerType = def.getter();
1943
+ // }
1944
+ // return () => _innerType;
1945
+ // });
1946
+ util.defineLazy(inst._zod, "innerType", () => def.getter());
1947
+ util.defineLazy(inst._zod, "pattern", () => inst._zod.innerType._zod.pattern);
1948
+ util.defineLazy(inst._zod, "propValues", () => inst._zod.innerType._zod.propValues);
1949
+ util.defineLazy(inst._zod, "optin", () => inst._zod.innerType._zod.optin ?? undefined);
1950
+ util.defineLazy(inst._zod, "optout", () => inst._zod.innerType._zod.optout ?? undefined);
1951
+ inst._zod.parse = (payload, ctx) => {
1952
+ const inner = inst._zod.innerType;
1953
+ return inner._zod.run(payload, ctx);
1954
+ };
1955
+ });
1956
+ exports.$ZodCustom = core.$constructor("$ZodCustom", (inst, def) => {
1957
+ checks.$ZodCheck.init(inst, def);
1958
+ exports.$ZodType.init(inst, def);
1959
+ inst._zod.parse = (payload, _) => {
1960
+ return payload;
1961
+ };
1962
+ inst._zod.check = (payload) => {
1963
+ const input = payload.value;
1964
+ const r = def.fn(input);
1965
+ if (r instanceof Promise) {
1966
+ return r.then((r) => handleRefineResult(r, payload, input, inst));
1967
+ }
1968
+ handleRefineResult(r, payload, input, inst);
1969
+ return;
1970
+ };
1971
+ });
1972
+ function handleRefineResult(result, payload, input, inst) {
1973
+ if (!result) {
1974
+ const _iss = {
1975
+ code: "custom",
1976
+ input,
1977
+ inst, // incorporates params.error into issue reporting
1978
+ path: [...(inst._zod.def.path ?? [])], // incorporates params.error into issue reporting
1979
+ continue: !inst._zod.def.abort,
1980
+ // params: inst._zod.def.params,
1981
+ };
1982
+ if (inst._zod.def.params)
1983
+ _iss.params = inst._zod.def.params;
1984
+ payload.issues.push(util.issue(_iss));
1985
+ }
1986
+ }