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