@capybara-hq/device 0.1.0-rc.13 → 0.1.0-rc.15

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 (3780) hide show
  1. package/README.md +125 -147
  2. package/dist/api.d.ts +2 -2
  3. package/dist/args.d.ts +10 -6
  4. package/dist/args.js +33 -21
  5. package/dist/boot-id.d.ts +17 -0
  6. package/dist/boot-id.js +43 -0
  7. package/dist/cli.d.ts +6 -10
  8. package/dist/cli.js +16 -33
  9. package/dist/client.d.ts +9 -38
  10. package/dist/client.js +26 -413
  11. package/dist/command-log.d.ts +14 -4
  12. package/dist/command-log.js +37 -1
  13. package/dist/commands/ceiling.d.ts +26 -0
  14. package/dist/commands/ceiling.js +119 -0
  15. package/dist/commands/login.d.ts +25 -1
  16. package/dist/commands/login.js +87 -59
  17. package/dist/commands/policy.d.ts +6 -8
  18. package/dist/commands/policy.js +29 -48
  19. package/dist/commands/start.d.ts +9 -9
  20. package/dist/commands/start.js +64 -39
  21. package/dist/commands/status.js +2 -2
  22. package/dist/exec/docker-operations.d.ts +44 -0
  23. package/dist/exec/docker-operations.js +290 -0
  24. package/dist/exec/docker.d.ts +42 -116
  25. package/dist/exec/docker.js +76 -700
  26. package/dist/exec/instance-binding.d.ts +107 -0
  27. package/dist/exec/instance-binding.js +267 -0
  28. package/dist/exec/linux-agent.d.ts +27 -0
  29. package/dist/exec/linux-agent.js +896 -0
  30. package/dist/exec/linux-operation-backend.d.ts +65 -0
  31. package/dist/exec/linux-operation-backend.js +87 -0
  32. package/dist/exec/linux-operation-worker.d.ts +42 -0
  33. package/dist/exec/linux-operation-worker.js +313 -0
  34. package/dist/exec/linux-runtime.d.ts +80 -0
  35. package/dist/exec/linux-runtime.js +181 -0
  36. package/dist/exec/mac-operation-backend.d.ts +113 -0
  37. package/dist/exec/mac-operation-backend.js +370 -0
  38. package/dist/exec/mac-read-policy.d.ts +58 -0
  39. package/dist/exec/mac-read-policy.js +104 -0
  40. package/dist/exec/mac-self-check.d.ts +40 -0
  41. package/dist/exec/mac-self-check.js +186 -0
  42. package/dist/exec/mac-write-policy.d.ts +34 -0
  43. package/dist/exec/mac-write-policy.js +194 -0
  44. package/dist/exec/native-helper-client.d.ts +46 -0
  45. package/dist/exec/native-helper-client.js +204 -0
  46. package/dist/exec/operation-supervisor.d.ts +187 -0
  47. package/dist/exec/operation-supervisor.js +1307 -0
  48. package/dist/exec/operation-types.d.ts +55 -0
  49. package/dist/exec/operation-types.js +164 -0
  50. package/dist/exec/operation-worker.d.ts +99 -0
  51. package/dist/exec/operation-worker.js +760 -0
  52. package/dist/exec/output-spool-helper.d.ts +2 -0
  53. package/dist/exec/output-spool-helper.js +149 -0
  54. package/dist/exec/output-spool.d.ts +72 -0
  55. package/dist/exec/output-spool.js +324 -0
  56. package/dist/exec/runtime-manifest.d.ts +115 -0
  57. package/dist/exec/runtime-manifest.js +642 -0
  58. package/dist/exec/runtime-source.d.ts +87 -0
  59. package/dist/exec/runtime-source.js +305 -0
  60. package/dist/exec/sandbox-check.d.ts +10 -0
  61. package/dist/exec/sandbox-check.js +18 -0
  62. package/dist/exec/sandbox-messages.d.ts +3 -11
  63. package/dist/exec/sandbox-messages.js +3 -18
  64. package/dist/exec/shared.d.ts +24 -47
  65. package/dist/exec/shared.js +53 -165
  66. package/dist/exec/types.d.ts +2 -66
  67. package/dist/exec/types.js +1 -1
  68. package/dist/node_modules/@anthropic-ai/sandbox-runtime/CAPYBARA-MODIFICATIONS.md +3 -0
  69. package/dist/node_modules/@anthropic-ai/sandbox-runtime/CAPYBARA-MODIFICATIONS.patch +129 -0
  70. package/{LICENSE → dist/node_modules/@anthropic-ai/sandbox-runtime/LICENSE} +1 -2
  71. package/dist/node_modules/@anthropic-ai/sandbox-runtime/README.md +1288 -0
  72. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/cli.d.ts +3 -0
  73. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/cli.d.ts.map +1 -0
  74. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/cli.js +527 -0
  75. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/cli.js.map +1 -0
  76. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/index.d.ts +22 -0
  77. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/index.d.ts.map +1 -0
  78. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/index.js +20 -0
  79. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/index.js.map +1 -0
  80. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/proxy-cli.d.ts +4 -0
  81. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/proxy-cli.d.ts.map +1 -0
  82. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/proxy-cli.js +119 -0
  83. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/proxy-cli.js.map +1 -0
  84. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/proxy-main.d.ts +3 -0
  85. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/proxy-main.d.ts.map +1 -0
  86. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/proxy-main.js +5 -0
  87. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/proxy-main.js.map +1 -0
  88. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/address.d.ts +52 -0
  89. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/address.d.ts.map +1 -0
  90. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/address.js +153 -0
  91. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/address.js.map +1 -0
  92. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/aws-sigv4.d.ts +168 -0
  93. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/aws-sigv4.d.ts.map +1 -0
  94. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/aws-sigv4.js +250 -0
  95. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/aws-sigv4.js.map +1 -0
  96. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/body-substitution.d.ts +58 -0
  97. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/body-substitution.d.ts.map +1 -0
  98. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/body-substitution.js +128 -0
  99. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/body-substitution.js.map +1 -0
  100. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-aws-pairs.d.ts +124 -0
  101. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-aws-pairs.d.ts.map +1 -0
  102. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-aws-pairs.js +258 -0
  103. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-aws-pairs.js.map +1 -0
  104. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-decode.d.ts +87 -0
  105. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-decode.d.ts.map +1 -0
  106. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-decode.js +138 -0
  107. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-decode.js.map +1 -0
  108. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-extract.d.ts +67 -0
  109. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-extract.d.ts.map +1 -0
  110. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-extract.js +113 -0
  111. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-extract.js.map +1 -0
  112. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-mask-env.d.ts +70 -0
  113. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-mask-env.d.ts.map +1 -0
  114. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-mask-env.js +171 -0
  115. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-mask-env.js.map +1 -0
  116. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-mask-files.d.ts +121 -0
  117. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-mask-files.d.ts.map +1 -0
  118. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-mask-files.js +282 -0
  119. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-mask-files.js.map +1 -0
  120. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-sentinel.d.ts +108 -0
  121. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-sentinel.d.ts.map +1 -0
  122. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-sentinel.js +208 -0
  123. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-sentinel.js.map +1 -0
  124. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/decider-client.d.ts +130 -0
  125. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/decider-client.d.ts.map +1 -0
  126. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/decider-client.js +780 -0
  127. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/decider-client.js.map +1 -0
  128. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/domain-pattern.d.ts +106 -0
  129. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/domain-pattern.d.ts.map +1 -0
  130. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/domain-pattern.js +221 -0
  131. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/domain-pattern.js.map +1 -0
  132. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/emitted-connection.d.ts +98 -0
  133. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/emitted-connection.d.ts.map +1 -0
  134. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/emitted-connection.js +194 -0
  135. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/emitted-connection.js.map +1 -0
  136. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/generate-seccomp-filter.d.ts +44 -0
  137. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/generate-seccomp-filter.d.ts.map +1 -0
  138. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/generate-seccomp-filter.js +220 -0
  139. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/generate-seccomp-filter.js.map +1 -0
  140. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/glob-pattern.d.ts +89 -0
  141. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/glob-pattern.d.ts.map +1 -0
  142. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/glob-pattern.js +230 -0
  143. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/glob-pattern.js.map +1 -0
  144. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/http-proxy.d.ts +316 -0
  145. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/http-proxy.d.ts.map +1 -0
  146. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/http-proxy.js +920 -0
  147. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/http-proxy.js.map +1 -0
  148. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/java-proxy-agent.d.ts +32 -0
  149. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/java-proxy-agent.d.ts.map +1 -0
  150. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/java-proxy-agent.js +111 -0
  151. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/java-proxy-agent.js.map +1 -0
  152. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/linux-sandbox-utils.d.ts +348 -0
  153. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/linux-sandbox-utils.d.ts.map +1 -0
  154. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/linux-sandbox-utils.js +3147 -0
  155. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/linux-sandbox-utils.js.map +1 -0
  156. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/linux-violation-monitor.d.ts +55 -0
  157. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/linux-violation-monitor.d.ts.map +1 -0
  158. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/linux-violation-monitor.js +152 -0
  159. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/linux-violation-monitor.js.map +1 -0
  160. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/listen-in-range.d.ts +12 -0
  161. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/listen-in-range.d.ts.map +1 -0
  162. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/listen-in-range.js +43 -0
  163. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/listen-in-range.js.map +1 -0
  164. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/macos-sandbox-utils.d.ts +117 -0
  165. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/macos-sandbox-utils.d.ts.map +1 -0
  166. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/macos-sandbox-utils.js +1300 -0
  167. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/macos-sandbox-utils.js.map +1 -0
  168. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mitm-ca.d.ts +209 -0
  169. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mitm-ca.d.ts.map +1 -0
  170. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mitm-ca.js +464 -0
  171. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mitm-ca.js.map +1 -0
  172. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mitm-leaf.d.ts +28 -0
  173. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mitm-leaf.d.ts.map +1 -0
  174. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mitm-leaf.js +139 -0
  175. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mitm-leaf.js.map +1 -0
  176. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mux-proxy.d.ts +64 -0
  177. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mux-proxy.d.ts.map +1 -0
  178. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mux-proxy.js +182 -0
  179. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mux-proxy.js.map +1 -0
  180. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/own-files.d.ts +13 -0
  181. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/own-files.d.ts.map +1 -0
  182. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/own-files.js +32 -0
  183. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/own-files.js.map +1 -0
  184. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/parent-proxy.d.ts +179 -0
  185. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/parent-proxy.d.ts.map +1 -0
  186. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/parent-proxy.js +510 -0
  187. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/parent-proxy.js.map +1 -0
  188. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/path-entries.d.ts +133 -0
  189. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/path-entries.d.ts.map +1 -0
  190. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/path-entries.js +340 -0
  191. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/path-entries.js.map +1 -0
  192. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/proxy-only.d.ts +99 -0
  193. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/proxy-only.d.ts.map +1 -0
  194. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/proxy-only.js +259 -0
  195. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/proxy-only.js.map +1 -0
  196. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/read-deny-glob.d.ts +28 -0
  197. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/read-deny-glob.d.ts.map +1 -0
  198. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/read-deny-glob.js +176 -0
  199. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/read-deny-glob.js.map +1 -0
  200. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/request-filter.d.ts +332 -0
  201. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/request-filter.d.ts.map +1 -0
  202. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/request-filter.js +754 -0
  203. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/request-filter.js.map +1 -0
  204. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/resolved-address-guard.d.ts +76 -0
  205. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/resolved-address-guard.d.ts.map +1 -0
  206. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/resolved-address-guard.js +221 -0
  207. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/resolved-address-guard.js.map +1 -0
  208. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-config.d.ts +1967 -0
  209. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-config.d.ts.map +1 -0
  210. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-config.js +1317 -0
  211. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-config.js.map +1 -0
  212. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-manager.d.ts +188 -0
  213. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-manager.d.ts.map +1 -0
  214. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-manager.js +2650 -0
  215. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-manager.js.map +1 -0
  216. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-schemas.d.ts +158 -0
  217. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-schemas.d.ts.map +1 -0
  218. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-schemas.js +3 -0
  219. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-schemas.js.map +1 -0
  220. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-utils.d.ts +479 -0
  221. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-utils.d.ts.map +1 -0
  222. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-utils.js +1637 -0
  223. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-utils.js.map +1 -0
  224. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-violation-store.d.ts +50 -0
  225. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-violation-store.d.ts.map +1 -0
  226. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-violation-store.js +143 -0
  227. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-violation-store.js.map +1 -0
  228. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/socks-proxy.d.ts +67 -0
  229. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/socks-proxy.d.ts.map +1 -0
  230. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/socks-proxy.js +345 -0
  231. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/socks-proxy.js.map +1 -0
  232. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/tls-terminate-proxy.d.ts +212 -0
  233. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/tls-terminate-proxy.d.ts.map +1 -0
  234. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/tls-terminate-proxy.js +1174 -0
  235. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/tls-terminate-proxy.js.map +1 -0
  236. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/windows-sandbox-utils.d.ts +1615 -0
  237. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/windows-sandbox-utils.d.ts.map +1 -0
  238. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/windows-sandbox-utils.js +2848 -0
  239. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/windows-sandbox-utils.js.map +1 -0
  240. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/config-loader.d.ts +31 -0
  241. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/config-loader.d.ts.map +1 -0
  242. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/config-loader.js +69 -0
  243. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/config-loader.js.map +1 -0
  244. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/debug.d.ts +7 -0
  245. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/debug.d.ts.map +1 -0
  246. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/debug.js +25 -0
  247. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/debug.js.map +1 -0
  248. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/platform.d.ts +15 -0
  249. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/platform.d.ts.map +1 -0
  250. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/platform.js +49 -0
  251. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/platform.js.map +1 -0
  252. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/real-path.d.ts +35 -0
  253. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/real-path.d.ts.map +1 -0
  254. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/real-path.js +106 -0
  255. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/real-path.js.map +1 -0
  256. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/ripgrep.d.ts +29 -0
  257. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/ripgrep.d.ts.map +1 -0
  258. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/ripgrep.js +51 -0
  259. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/ripgrep.js.map +1 -0
  260. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/shell-quote.d.ts +27 -0
  261. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/shell-quote.d.ts.map +1 -0
  262. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/shell-quote.js +47 -0
  263. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/shell-quote.js.map +1 -0
  264. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/which.d.ts +9 -0
  265. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/which.d.ts.map +1 -0
  266. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/which.js +25 -0
  267. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/which.js.map +1 -0
  268. package/dist/node_modules/@anthropic-ai/sandbox-runtime/package.json +90 -0
  269. package/dist/node_modules/@anthropic-ai/sandbox-runtime/vendor/java-proxy-agent/build.ts +95 -0
  270. package/dist/node_modules/@anthropic-ai/sandbox-runtime/vendor/java-proxy-agent/srt-proxy-agent.jar +0 -0
  271. package/dist/node_modules/@anthropic-ai/sandbox-runtime/vendor/seccomp/arm64/apply-seccomp +0 -0
  272. package/dist/node_modules/@anthropic-ai/sandbox-runtime/vendor/seccomp/build.ts +73 -0
  273. package/dist/node_modules/@anthropic-ai/sandbox-runtime/vendor/seccomp/x64/apply-seccomp +0 -0
  274. package/dist/node_modules/@anthropic-ai/sandbox-runtime/vendor/srt-win/arm64/srt-win.exe +0 -0
  275. package/dist/node_modules/@anthropic-ai/sandbox-runtime/vendor/srt-win/build.ts +28 -0
  276. package/dist/node_modules/@anthropic-ai/sandbox-runtime/vendor/srt-win/x64/srt-win.exe +0 -0
  277. package/dist/node_modules/@capybara-hq/plugin-sdk/NOTICE +2 -0
  278. package/dist/node_modules/@capybara-hq/plugin-sdk/README.md +28 -0
  279. package/dist/node_modules/@capybara-hq/plugin-sdk/agent-docs/agent-templates.md +59 -0
  280. package/dist/node_modules/@capybara-hq/plugin-sdk/agent-docs/concepts.md +68 -0
  281. package/dist/node_modules/@capybara-hq/plugin-sdk/agent-docs/connector-templates.md +48 -0
  282. package/dist/node_modules/@capybara-hq/plugin-sdk/agent-docs/extension-points/channel.md +15 -0
  283. package/dist/node_modules/@capybara-hq/plugin-sdk/agent-docs/extension-points/config-source.md +15 -0
  284. package/dist/node_modules/@capybara-hq/plugin-sdk/agent-docs/extension-points/connector.md +15 -0
  285. package/dist/node_modules/@capybara-hq/plugin-sdk/agent-docs/extension-points/context.md +15 -0
  286. package/dist/node_modules/@capybara-hq/plugin-sdk/agent-docs/extension-points/counter.md +15 -0
  287. package/dist/node_modules/@capybara-hq/plugin-sdk/agent-docs/extension-points/directory.md +15 -0
  288. package/dist/node_modules/@capybara-hq/plugin-sdk/agent-docs/extension-points/file-preview.md +17 -0
  289. package/dist/node_modules/@capybara-hq/plugin-sdk/agent-docs/extension-points/identity-source.md +15 -0
  290. package/dist/node_modules/@capybara-hq/plugin-sdk/agent-docs/extension-points/model-provider.md +17 -0
  291. package/dist/node_modules/@capybara-hq/plugin-sdk/agent-docs/extension-points/object-store.md +17 -0
  292. package/dist/node_modules/@capybara-hq/plugin-sdk/agent-docs/extension-points/sandbox.md +15 -0
  293. package/dist/node_modules/@capybara-hq/plugin-sdk/agent-docs/extension-points/secret-store.md +15 -0
  294. package/dist/node_modules/@capybara-hq/plugin-sdk/agent-docs/extension-points/web-fetch.md +15 -0
  295. package/dist/node_modules/@capybara-hq/plugin-sdk/agent-docs/extension-points/web-search.md +15 -0
  296. package/dist/node_modules/@capybara-hq/plugin-sdk/agent-docs/extensions.md +88 -0
  297. package/dist/node_modules/@capybara-hq/plugin-sdk/agent-docs/plugin-format.md +100 -0
  298. package/dist/node_modules/@capybara-hq/plugin-sdk/agent-docs/setup.md +46 -0
  299. package/dist/node_modules/@capybara-hq/plugin-sdk/agent-docs/skills.md +44 -0
  300. package/dist/node_modules/@capybara-hq/plugin-sdk/agent-docs/tool-naming.md +21 -0
  301. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/agent-template.d.ts +141 -0
  302. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/agent-template.js +501 -0
  303. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/bootstrap.d.ts +81 -0
  304. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/bootstrap.js +125 -0
  305. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/cards.d.ts +118 -0
  306. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/cards.js +287 -0
  307. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/channel.d.ts +330 -0
  308. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/channel.js +31 -0
  309. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/client-css.d.ts +36 -0
  310. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/client-css.js +326 -0
  311. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/client-section.d.ts +35 -0
  312. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/client-section.js +133 -0
  313. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/config-ui.d.ts +153 -0
  314. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/config-ui.js +662 -0
  315. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/connector-auth.d.ts +69 -0
  316. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/connector-auth.js +117 -0
  317. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/connector.d.ts +196 -0
  318. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/connector.js +1 -0
  319. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/context.d.ts +40 -0
  320. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/context.js +2 -0
  321. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/ctx.d.ts +331 -0
  322. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/ctx.js +1 -0
  323. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/define-extension.d.ts +55 -0
  324. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/define-extension.js +92 -0
  325. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/device-denied-paths.d.ts +14 -0
  326. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/device-denied-paths.js +41 -0
  327. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/device-protocol.d.ts +450 -0
  328. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/device-protocol.js +972 -0
  329. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/directory.d.ts +38 -0
  330. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/directory.js +1 -0
  331. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/extension-point.d.ts +40 -0
  332. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/extension-point.js +44 -0
  333. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/file-preview.d.ts +89 -0
  334. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/file-preview.js +72 -0
  335. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/frontmatter.d.ts +12 -0
  336. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/frontmatter.js +36 -0
  337. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/git-hosts.d.ts +44 -0
  338. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/git-hosts.js +81 -0
  339. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/hooks.d.ts +359 -0
  340. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/hooks.js +19 -0
  341. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/http-access.d.ts +62 -0
  342. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/http-access.js +12 -0
  343. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/identity.d.ts +57 -0
  344. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/identity.js +1 -0
  345. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/index.d.ts +53 -0
  346. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/index.js +53 -0
  347. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/marketplace.d.ts +152 -0
  348. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/marketplace.js +326 -0
  349. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/model-params.d.ts +101 -0
  350. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/model-params.js +235 -0
  351. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/model.d.ts +420 -0
  352. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/model.js +307 -0
  353. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/net.d.ts +52 -0
  354. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/net.js +34 -0
  355. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/org-access.d.ts +27 -0
  356. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/org-access.js +35 -0
  357. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/permissions.d.ts +90 -0
  358. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/permissions.js +328 -0
  359. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/plugin-manifest.d.ts +204 -0
  360. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/plugin-manifest.js +504 -0
  361. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/plugin-package.d.ts +183 -0
  362. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/plugin-package.js +480 -0
  363. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/sandbox-linux-runtime-source.d.ts +1 -0
  364. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/sandbox-linux-runtime-source.js +1886 -0
  365. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/sandbox-native-runtime-source.d.ts +8 -0
  366. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/sandbox-native-runtime-source.js +325 -0
  367. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/sandbox-operation.d.ts +252 -0
  368. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/sandbox-operation.js +245 -0
  369. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/sandbox-runtime-source.d.ts +19 -0
  370. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/sandbox-runtime-source.js +28 -0
  371. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/sandbox-write-denies.d.ts +60 -0
  372. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/sandbox-write-denies.js +630 -0
  373. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/sandbox.d.ts +417 -0
  374. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/sandbox.js +195 -0
  375. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/secret.d.ts +11 -0
  376. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/secret.js +14 -0
  377. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/semver-range.d.ts +6 -0
  378. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/semver-range.js +12 -0
  379. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/setup-check.d.ts +115 -0
  380. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/setup-check.js +142 -0
  381. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/setup-guide-parse.d.ts +121 -0
  382. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/setup-guide-parse.js +350 -0
  383. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/setup-guide-render.d.ts +45 -0
  384. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/setup-guide-render.js +351 -0
  385. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/setup-guide.d.ts +94 -0
  386. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/setup-guide.js +336 -0
  387. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/skill-invocation.d.ts +87 -0
  388. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/skill-invocation.js +211 -0
  389. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/skill-keys.d.ts +9 -0
  390. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/skill-keys.js +16 -0
  391. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/skill.d.ts +107 -0
  392. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/skill.js +283 -0
  393. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/storage.d.ts +123 -0
  394. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/storage.js +9 -0
  395. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/theme-assets.d.ts +39 -0
  396. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/theme-assets.js +449 -0
  397. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/theme-readability.d.ts +37 -0
  398. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/theme-readability.js +145 -0
  399. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/theme-tokens.generated.d.ts +279 -0
  400. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/theme-tokens.generated.js +174 -0
  401. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/theme.d.ts +152 -0
  402. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/theme.js +392 -0
  403. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/tool-key.d.ts +28 -0
  404. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/tool-key.js +40 -0
  405. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/tool.d.ts +205 -0
  406. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/tool.js +238 -0
  407. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/ui-parts.d.ts +23 -0
  408. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/ui-parts.js +348 -0
  409. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/ui-resolve.d.ts +35 -0
  410. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/ui-resolve.js +42 -0
  411. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/ui-slots.d.ts +53 -0
  412. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/ui-slots.js +238 -0
  413. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/ui.d.ts +404 -0
  414. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/ui.js +432 -0
  415. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/url.d.ts +5 -0
  416. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/url.js +15 -0
  417. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/web.d.ts +105 -0
  418. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/web.js +135 -0
  419. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/LICENSE +21 -0
  420. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/README.md +218 -0
  421. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/compile.cjs +96 -0
  422. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/compile.d.cts +1 -0
  423. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/compile.d.ts +1 -0
  424. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/compile.js +52 -0
  425. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/index.cjs +52 -0
  426. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/index.d.cts +3 -0
  427. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/index.d.ts +3 -0
  428. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/index.js +7 -0
  429. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/locales/index.cjs +36 -0
  430. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/locales/index.d.cts +1 -0
  431. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/locales/index.d.ts +1 -0
  432. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/locales/index.js +1 -0
  433. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/locales/package.json +7 -0
  434. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/mini/index.cjs +51 -0
  435. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/mini/index.d.cts +3 -0
  436. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/mini/index.d.ts +3 -0
  437. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/mini/index.js +3 -0
  438. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/mini/package.json +7 -0
  439. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/package.json +147 -0
  440. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/compile.ts +56 -0
  441. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/index.ts +7 -0
  442. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/locales/index.ts +1 -0
  443. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/mini/index.ts +3 -0
  444. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/ZodError.ts +340 -0
  445. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/benchmarks/datetime.ts +58 -0
  446. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +80 -0
  447. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/benchmarks/index.ts +59 -0
  448. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/benchmarks/ipv4.ts +57 -0
  449. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/benchmarks/object.ts +69 -0
  450. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/benchmarks/primitives.ts +162 -0
  451. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/benchmarks/realworld.ts +63 -0
  452. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/benchmarks/string.ts +55 -0
  453. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/benchmarks/union.ts +80 -0
  454. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/errors.ts +13 -0
  455. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/external.ts +6 -0
  456. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/helpers/enumUtil.ts +17 -0
  457. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/helpers/errorUtil.ts +8 -0
  458. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/helpers/parseUtil.ts +176 -0
  459. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/helpers/partialUtil.ts +34 -0
  460. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/helpers/typeAliases.ts +2 -0
  461. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/helpers/util.ts +224 -0
  462. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/index.ts +4 -0
  463. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/locales/en.ts +124 -0
  464. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/standard-schema.ts +113 -0
  465. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/Mocker.ts +54 -0
  466. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/all-errors.test.ts +157 -0
  467. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/anyunknown.test.ts +28 -0
  468. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/array.test.ts +71 -0
  469. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/async-parsing.test.ts +388 -0
  470. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/async-refinements.test.ts +46 -0
  471. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/base.test.ts +29 -0
  472. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/bigint.test.ts +55 -0
  473. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/branded.test.ts +53 -0
  474. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/catch.test.ts +220 -0
  475. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/coerce.test.ts +133 -0
  476. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/complex.test.ts +70 -0
  477. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/custom.test.ts +31 -0
  478. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/date.test.ts +32 -0
  479. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/deepmasking.test.ts +186 -0
  480. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/default.test.ts +112 -0
  481. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/description.test.ts +33 -0
  482. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +315 -0
  483. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/enum.test.ts +80 -0
  484. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/error.test.ts +586 -0
  485. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/firstparty.test.ts +87 -0
  486. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +21 -0
  487. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/function.test.ts +261 -0
  488. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/generics.test.ts +48 -0
  489. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/instanceof.test.ts +37 -0
  490. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/intersection.test.ts +128 -0
  491. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/language-server.source.ts +76 -0
  492. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/language-server.test.ts +206 -0
  493. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/literal.test.ts +36 -0
  494. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/map.test.ts +110 -0
  495. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/masking.test.ts +4 -0
  496. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/mocker.test.ts +19 -0
  497. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/nan.test.ts +24 -0
  498. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/nativeEnum.test.ts +87 -0
  499. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/nullable.test.ts +42 -0
  500. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/number.test.ts +176 -0
  501. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/object-augmentation.test.ts +29 -0
  502. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +29 -0
  503. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/object.test.ts +431 -0
  504. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/optional.test.ts +42 -0
  505. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/parseUtil.test.ts +23 -0
  506. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/parser.test.ts +41 -0
  507. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/partials.test.ts +243 -0
  508. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/pickomit.test.ts +111 -0
  509. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/pipeline.test.ts +29 -0
  510. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/preprocess.test.ts +186 -0
  511. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/primitive.test.ts +440 -0
  512. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/promise.test.ts +90 -0
  513. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/readonly.test.ts +114 -0
  514. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/record.test.ts +171 -0
  515. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/recursive.test.ts +197 -0
  516. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/refine.test.ts +313 -0
  517. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/safeparse.test.ts +27 -0
  518. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/set.test.ts +142 -0
  519. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/standard-schema.test.ts +83 -0
  520. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/string.test.ts +922 -0
  521. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/transformer.test.ts +233 -0
  522. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/tuple.test.ts +90 -0
  523. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/unions.test.ts +57 -0
  524. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/validations.test.ts +133 -0
  525. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/void.test.ts +15 -0
  526. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/types.ts +5138 -0
  527. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/checks.ts +33 -0
  528. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/coerce.ts +27 -0
  529. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/compat.ts +78 -0
  530. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/deep-partial.ts +76 -0
  531. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/errors.ts +97 -0
  532. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/external.ts +57 -0
  533. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/from-json-schema.ts +944 -0
  534. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/in-out.ts +45 -0
  535. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/index.ts +5 -0
  536. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/iso.ts +20 -0
  537. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/parse.ts +88 -0
  538. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/schemas.ts +2937 -0
  539. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +26 -0
  540. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/apply.test.ts +86 -0
  541. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/array.test.ts +291 -0
  542. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/assignability.test.ts +402 -0
  543. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +381 -0
  544. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +68 -0
  545. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/base.test.ts +7 -0
  546. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/bigint.test.ts +89 -0
  547. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/brand.test.ts +106 -0
  548. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/catch.test.ts +604 -0
  549. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +20 -0
  550. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +572 -0
  551. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/codec.test.ts +704 -0
  552. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/coerce.test.ts +160 -0
  553. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/continuability.test.ts +374 -0
  554. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/credit-card.test.ts +76 -0
  555. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/custom.test.ts +40 -0
  556. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/cyclic-data.test.ts +985 -0
  557. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/date.test.ts +92 -0
  558. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/datetime.test.ts +316 -0
  559. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/deep-partial.test.ts +380 -0
  560. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/default-locale.test.ts +32 -0
  561. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/default.test.ts +455 -0
  562. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/describe-meta-checks.test.ts +27 -0
  563. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/description.test.ts +32 -0
  564. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/detached-methods.test.ts +221 -0
  565. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +942 -0
  566. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/enum.test.ts +305 -0
  567. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +917 -0
  568. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/error.test.ts +1108 -0
  569. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/file.test.ts +96 -0
  570. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +179 -0
  571. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/fix-json-issue.test.ts +26 -0
  572. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +1467 -0
  573. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/function.test.ts +391 -0
  574. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/generics.test.ts +72 -0
  575. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/global-config.test.ts +32 -0
  576. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/hash.test.ts +67 -0
  577. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/iban.test.ts +81 -0
  578. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/in-out.test.ts +159 -0
  579. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/index.test.ts +958 -0
  580. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/instance-footprint.test.ts +319 -0
  581. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +127 -0
  582. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/intersection.test.ts +334 -0
  583. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/issue-schema.test.ts +215 -0
  584. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/jitless-allows-eval.test.ts +39 -0
  585. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/json.test.ts +109 -0
  586. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/lazy.test.ts +262 -0
  587. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/literal.test.ts +128 -0
  588. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/locales_ka.test.ts +29 -0
  589. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/locales_ro.test.ts +24 -0
  590. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/map.test.ts +349 -0
  591. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/nan.test.ts +21 -0
  592. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +168 -0
  593. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +101 -0
  594. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/nullable.test.ts +22 -0
  595. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/number.test.ts +401 -0
  596. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/object.test.ts +1006 -0
  597. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/optin-ladder.test.ts +235 -0
  598. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/optional.test.ts +366 -0
  599. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/partial.test.ts +497 -0
  600. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +211 -0
  601. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/pipe.test.ts +101 -0
  602. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/prefault.test.ts +144 -0
  603. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/preprocess-types.test.ts +44 -0
  604. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +351 -0
  605. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/primitive.test.ts +175 -0
  606. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/promise.test.ts +81 -0
  607. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/properties.test.ts +141 -0
  608. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +23 -0
  609. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/readonly.test.ts +184 -0
  610. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/record.test.ts +885 -0
  611. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +707 -0
  612. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/redos.test.ts +68 -0
  613. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/refine.test.ts +693 -0
  614. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/registries.test.ts +243 -0
  615. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/set.test.ts +196 -0
  616. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +153 -0
  617. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +125 -0
  618. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/string.test.ts +1440 -0
  619. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +124 -0
  620. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +812 -0
  621. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/to-json-schema-methods.test.ts +438 -0
  622. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +4733 -0
  623. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/transform.test.ts +378 -0
  624. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/tuple.test.ts +511 -0
  625. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/union.test.ts +310 -0
  626. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/url.test.ts +13 -0
  627. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/validate.test.ts +645 -0
  628. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/validations.test.ts +283 -0
  629. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/void.test.ts +12 -0
  630. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/api.ts +1875 -0
  631. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/checks.ts +1266 -0
  632. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/compile.ts +2322 -0
  633. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/core.ts +230 -0
  634. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/doc.ts +52 -0
  635. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/errors.ts +543 -0
  636. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/index.ts +19 -0
  637. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/json-schema-generator.ts +131 -0
  638. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/json-schema-processors.ts +934 -0
  639. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/json-schema.ts +148 -0
  640. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/memoizer.ts +331 -0
  641. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/parse.ts +309 -0
  642. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/regexes.ts +217 -0
  643. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/registries.ts +105 -0
  644. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/schemas.ts +5226 -0
  645. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/standard-schema.ts +159 -0
  646. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/cached.test.ts +54 -0
  647. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/compile-differential.test.ts +1004 -0
  648. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/compile-generative.test.ts +445 -0
  649. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/compile-global.test.ts +89 -0
  650. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/compile-off-by-default.test.ts +26 -0
  651. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/compile-stats.test.ts +34 -0
  652. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/compile.test.ts +2036 -0
  653. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/email-regex.test.ts +140 -0
  654. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/extend.test.ts +59 -0
  655. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/index.test.ts +46 -0
  656. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/locales/be.test.ts +124 -0
  657. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/locales/el.test.ts +214 -0
  658. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/locales/en.test.ts +22 -0
  659. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/locales/es.test.ts +180 -0
  660. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/locales/fr.test.ts +72 -0
  661. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/locales/he.test.ts +379 -0
  662. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/locales/hr.test.ts +163 -0
  663. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/locales/nl.test.ts +46 -0
  664. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/locales/parity.test.ts +42 -0
  665. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +128 -0
  666. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/locales/tg.test.ts +85 -0
  667. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/locales/tk.test.ts +69 -0
  668. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +69 -0
  669. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/locales/uz.test.ts +105 -0
  670. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/polyfill-collision.test.ts +46 -0
  671. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/record-constructor.test.ts +125 -0
  672. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/recursive-tuples.test.ts +45 -0
  673. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/treeshake.test.ts +51 -0
  674. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/url-no-canparse.test.ts +133 -0
  675. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/to-json-schema.ts +857 -0
  676. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/util.ts +1293 -0
  677. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/versions.ts +5 -0
  678. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/visit.ts +193 -0
  679. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/zsf.ts +323 -0
  680. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/index.ts +4 -0
  681. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/ar.ts +120 -0
  682. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/az.ts +116 -0
  683. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/be.ts +188 -0
  684. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/bg.ts +133 -0
  685. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/bn.ts +123 -0
  686. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/ca.ts +121 -0
  687. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/ckb.ts +140 -0
  688. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/cs.ts +123 -0
  689. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/da.ts +128 -0
  690. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/de.ts +121 -0
  691. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/el.ts +124 -0
  692. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/en.ts +136 -0
  693. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/eo.ts +123 -0
  694. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/es.ts +145 -0
  695. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/fa.ts +131 -0
  696. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/fi.ts +126 -0
  697. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/fr-CA.ts +121 -0
  698. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/fr.ts +139 -0
  699. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/gu.ts +123 -0
  700. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/he.ts +253 -0
  701. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/hi.ts +126 -0
  702. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/hr.ts +135 -0
  703. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/hu.ts +122 -0
  704. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/hy.ts +175 -0
  705. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/id.ts +120 -0
  706. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/index.ts +63 -0
  707. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/is.ts +124 -0
  708. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/it.ts +121 -0
  709. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/ja.ts +119 -0
  710. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/ka.ts +128 -0
  711. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/kh.ts +7 -0
  712. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/km.ts +124 -0
  713. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/kn.ts +126 -0
  714. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/ko.ts +126 -0
  715. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/lt.ts +243 -0
  716. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/mk.ts +123 -0
  717. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/ms.ts +120 -0
  718. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/ne.ts +128 -0
  719. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/nl.ts +126 -0
  720. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/nn.ts +121 -0
  721. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/no.ts +121 -0
  722. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/ota.ts +122 -0
  723. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/pl.ts +123 -0
  724. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/ps.ts +131 -0
  725. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/pt-BR.ts +161 -0
  726. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/pt.ts +159 -0
  727. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/ro.ts +132 -0
  728. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/ru.ts +188 -0
  729. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/sk.ts +123 -0
  730. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/sl.ts +123 -0
  731. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/sv.ts +124 -0
  732. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/ta.ts +123 -0
  733. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/tg.ts +135 -0
  734. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/th.ts +124 -0
  735. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/tk.ts +113 -0
  736. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/tr.ts +116 -0
  737. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/ua.ts +7 -0
  738. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/uk.ts +122 -0
  739. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/ur.ts +124 -0
  740. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/uz.ts +120 -0
  741. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/vi.ts +122 -0
  742. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/yo.ts +129 -0
  743. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/zh-CN.ts +121 -0
  744. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/zh-TW.ts +120 -0
  745. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/checks.ts +33 -0
  746. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/coerce.ts +27 -0
  747. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/deep-partial.ts +73 -0
  748. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/external.ts +52 -0
  749. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/in-out.ts +45 -0
  750. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/index.ts +3 -0
  751. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/iso.ts +66 -0
  752. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/parse.ts +16 -0
  753. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/schemas.ts +2051 -0
  754. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/tests/apply.test.ts +57 -0
  755. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/tests/assignability.test.ts +190 -0
  756. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/tests/brand.test.ts +94 -0
  757. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/tests/checks.test.ts +158 -0
  758. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/tests/codec.test.ts +582 -0
  759. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/tests/computed.test.ts +30 -0
  760. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/tests/cyclic-data.test.ts +84 -0
  761. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/tests/deep-partial.test.ts +54 -0
  762. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/tests/error.test.ts +41 -0
  763. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/tests/functions.test.ts +14 -0
  764. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/tests/index.test.ts +1146 -0
  765. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/tests/number.test.ts +109 -0
  766. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/tests/object.test.ts +292 -0
  767. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +43 -0
  768. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +341 -0
  769. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/tests/standard-schema.test.ts +50 -0
  770. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/tests/string.test.ts +396 -0
  771. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4-mini/index.ts +3 -0
  772. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/ZodError.cjs +167 -0
  773. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/ZodError.d.cts +164 -0
  774. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/ZodError.d.ts +164 -0
  775. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/ZodError.js +143 -0
  776. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/errors.cjs +36 -0
  777. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/errors.d.cts +5 -0
  778. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/errors.d.ts +5 -0
  779. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/errors.js +9 -0
  780. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/external.cjs +41 -0
  781. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/external.d.cts +6 -0
  782. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/external.d.ts +6 -0
  783. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/external.js +6 -0
  784. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/enumUtil.cjs +21 -0
  785. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/enumUtil.d.cts +8 -0
  786. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/enumUtil.d.ts +8 -0
  787. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/enumUtil.js +1 -0
  788. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/errorUtil.cjs +28 -0
  789. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/errorUtil.d.cts +9 -0
  790. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/errorUtil.d.ts +9 -0
  791. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/errorUtil.js +6 -0
  792. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/parseUtil.cjs +143 -0
  793. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/parseUtil.d.cts +78 -0
  794. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/parseUtil.d.ts +78 -0
  795. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/parseUtil.js +109 -0
  796. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/partialUtil.cjs +21 -0
  797. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/partialUtil.d.cts +8 -0
  798. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/partialUtil.d.ts +8 -0
  799. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/partialUtil.js +1 -0
  800. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/typeAliases.cjs +21 -0
  801. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/typeAliases.d.cts +2 -0
  802. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/typeAliases.d.ts +2 -0
  803. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/typeAliases.js +1 -0
  804. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/util.cjs +156 -0
  805. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/util.d.cts +85 -0
  806. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/util.d.ts +85 -0
  807. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/util.js +133 -0
  808. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/index.cjs +52 -0
  809. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/index.d.cts +4 -0
  810. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/index.d.ts +4 -0
  811. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/index.js +4 -0
  812. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/locales/en.cjs +112 -0
  813. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/locales/en.d.cts +3 -0
  814. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/locales/en.d.ts +3 -0
  815. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/locales/en.js +109 -0
  816. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/package.json +7 -0
  817. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/standard-schema.cjs +21 -0
  818. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/standard-schema.d.cts +102 -0
  819. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/standard-schema.d.ts +102 -0
  820. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/standard-schema.js +1 -0
  821. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/types.cjs +3798 -0
  822. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/types.d.cts +1034 -0
  823. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/types.d.ts +1034 -0
  824. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/types.js +3697 -0
  825. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/checks.cjs +53 -0
  826. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/checks.d.cts +1 -0
  827. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/checks.d.ts +1 -0
  828. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/checks.js +1 -0
  829. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/coerce.cjs +66 -0
  830. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/coerce.d.cts +17 -0
  831. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/coerce.d.ts +17 -0
  832. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/coerce.js +17 -0
  833. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/compat.cjs +80 -0
  834. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/compat.d.cts +48 -0
  835. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/compat.d.ts +48 -0
  836. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/compat.js +31 -0
  837. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/deep-partial.cjs +58 -0
  838. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/deep-partial.d.cts +14 -0
  839. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/deep-partial.d.ts +14 -0
  840. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/deep-partial.js +13 -0
  841. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/errors.cjs +102 -0
  842. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/errors.d.cts +29 -0
  843. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/errors.d.ts +29 -0
  844. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/errors.js +57 -0
  845. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/external.cjs +97 -0
  846. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/external.d.cts +19 -0
  847. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/external.d.ts +19 -0
  848. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/external.js +17 -0
  849. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/from-json-schema.cjs +926 -0
  850. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/from-json-schema.d.cts +12 -0
  851. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/from-json-schema.d.ts +12 -0
  852. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/from-json-schema.js +881 -0
  853. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/in-out.cjs +82 -0
  854. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/in-out.d.cts +8 -0
  855. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/in-out.d.ts +8 -0
  856. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/in-out.js +36 -0
  857. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/index.cjs +52 -0
  858. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/index.d.cts +3 -0
  859. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/index.d.ts +3 -0
  860. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/index.js +4 -0
  861. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/iso.cjs +68 -0
  862. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/iso.d.cts +7 -0
  863. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/iso.d.ts +7 -0
  864. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/iso.js +15 -0
  865. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/package.json +7 -0
  866. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/parse.cjs +63 -0
  867. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/parse.d.cts +44 -0
  868. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/parse.d.ts +44 -0
  869. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/parse.js +16 -0
  870. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/schemas.cjs +1676 -0
  871. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/schemas.d.cts +816 -0
  872. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/schemas.d.ts +816 -0
  873. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/schemas.js +1535 -0
  874. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/api.cjs +1269 -0
  875. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/api.d.cts +335 -0
  876. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/api.d.ts +335 -0
  877. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/api.js +1107 -0
  878. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/checks.cjs +561 -0
  879. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/checks.d.cts +294 -0
  880. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/checks.d.ts +294 -0
  881. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/checks.js +516 -0
  882. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/compile.cjs +1916 -0
  883. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/compile.d.cts +65 -0
  884. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/compile.d.ts +65 -0
  885. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/compile.js +1866 -0
  886. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/core.cjs +167 -0
  887. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/core.d.cts +82 -0
  888. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/core.d.ts +82 -0
  889. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/core.js +141 -0
  890. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/doc.cjs +61 -0
  891. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/doc.d.cts +16 -0
  892. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/doc.d.ts +16 -0
  893. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/doc.js +38 -0
  894. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/errors.cjs +317 -0
  895. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/errors.d.cts +225 -0
  896. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/errors.d.ts +225 -0
  897. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/errors.js +267 -0
  898. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/index.cjs +70 -0
  899. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/index.d.cts +19 -0
  900. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/index.d.ts +19 -0
  901. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/index.js +19 -0
  902. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/json-schema-generator.cjs +122 -0
  903. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/json-schema-generator.d.cts +65 -0
  904. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/json-schema-generator.d.ts +65 -0
  905. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/json-schema-generator.js +99 -0
  906. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/json-schema-processors.cjs +929 -0
  907. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/json-schema-processors.d.cts +65 -0
  908. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/json-schema-processors.d.ts +65 -0
  909. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/json-schema-processors.js +843 -0
  910. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/json-schema.cjs +21 -0
  911. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/json-schema.d.cts +89 -0
  912. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/json-schema.d.ts +89 -0
  913. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/json-schema.js +1 -0
  914. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/memoizer.cjs +360 -0
  915. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/memoizer.d.cts +15 -0
  916. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/memoizer.d.ts +15 -0
  917. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/memoizer.js +311 -0
  918. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/package.json +7 -0
  919. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/parse.cjs +233 -0
  920. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/parse.d.cts +52 -0
  921. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/parse.d.ts +52 -0
  922. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/parse.js +175 -0
  923. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/regexes.cjs +209 -0
  924. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/regexes.d.cts +90 -0
  925. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/regexes.d.ts +90 -0
  926. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/regexes.js +156 -0
  927. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/registries.cjs +75 -0
  928. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/registries.d.cts +35 -0
  929. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/registries.d.ts +35 -0
  930. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/registries.js +51 -0
  931. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/schemas.cjs +2699 -0
  932. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/schemas.d.cts +1275 -0
  933. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/schemas.d.ts +1275 -0
  934. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/schemas.js +2636 -0
  935. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/standard-schema.cjs +21 -0
  936. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/standard-schema.d.cts +126 -0
  937. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/standard-schema.d.ts +126 -0
  938. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/standard-schema.js +1 -0
  939. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/to-json-schema.cjs +681 -0
  940. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/to-json-schema.d.cts +154 -0
  941. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/to-json-schema.d.ts +154 -0
  942. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/to-json-schema.js +651 -0
  943. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/util.cjs +964 -0
  944. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/util.d.cts +280 -0
  945. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/util.d.ts +280 -0
  946. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/util.js +873 -0
  947. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/versions.cjs +27 -0
  948. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/versions.d.cts +5 -0
  949. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/versions.d.ts +5 -0
  950. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/versions.js +5 -0
  951. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/visit.cjs +214 -0
  952. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/visit.d.cts +30 -0
  953. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/visit.d.ts +30 -0
  954. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/visit.js +169 -0
  955. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/index.cjs +51 -0
  956. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/index.d.cts +3 -0
  957. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/index.d.ts +3 -0
  958. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/index.js +4 -0
  959. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ar.cjs +138 -0
  960. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ar.d.cts +5 -0
  961. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ar.d.ts +4 -0
  962. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ar.js +111 -0
  963. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/az.cjs +137 -0
  964. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/az.d.cts +5 -0
  965. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/az.d.ts +4 -0
  966. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/az.js +110 -0
  967. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/be.cjs +195 -0
  968. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/be.d.cts +5 -0
  969. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/be.d.ts +4 -0
  970. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/be.js +168 -0
  971. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/bg.cjs +152 -0
  972. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/bg.d.cts +5 -0
  973. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/bg.d.ts +4 -0
  974. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/bg.js +125 -0
  975. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/bn.cjs +140 -0
  976. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/bn.d.cts +5 -0
  977. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/bn.d.ts +4 -0
  978. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/bn.js +113 -0
  979. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ca.cjs +139 -0
  980. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ca.d.cts +5 -0
  981. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ca.d.ts +4 -0
  982. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ca.js +112 -0
  983. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ckb.cjs +160 -0
  984. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ckb.d.cts +5 -0
  985. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ckb.d.ts +4 -0
  986. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ckb.js +133 -0
  987. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/cs.cjs +143 -0
  988. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/cs.d.cts +5 -0
  989. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/cs.d.ts +4 -0
  990. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/cs.js +116 -0
  991. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/da.cjs +147 -0
  992. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/da.d.cts +5 -0
  993. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/da.d.ts +4 -0
  994. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/da.js +120 -0
  995. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/de.cjs +140 -0
  996. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/de.d.cts +5 -0
  997. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/de.d.ts +4 -0
  998. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/de.js +113 -0
  999. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/el.cjs +139 -0
  1000. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/el.d.cts +5 -0
  1001. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/el.d.ts +4 -0
  1002. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/el.js +112 -0
  1003. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/en.cjs +152 -0
  1004. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/en.d.cts +5 -0
  1005. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/en.d.ts +4 -0
  1006. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/en.js +125 -0
  1007. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/eo.cjs +141 -0
  1008. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/eo.d.cts +5 -0
  1009. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/eo.d.ts +4 -0
  1010. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/eo.js +114 -0
  1011. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/es.cjs +163 -0
  1012. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/es.d.cts +5 -0
  1013. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/es.d.ts +4 -0
  1014. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/es.js +136 -0
  1015. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/fa.cjs +146 -0
  1016. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/fa.d.cts +5 -0
  1017. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/fa.d.ts +4 -0
  1018. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/fa.js +119 -0
  1019. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/fi.cjs +144 -0
  1020. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/fi.d.cts +5 -0
  1021. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/fi.d.ts +4 -0
  1022. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/fi.js +117 -0
  1023. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/fr-CA.cjs +139 -0
  1024. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/fr-CA.d.cts +5 -0
  1025. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/fr-CA.d.ts +4 -0
  1026. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/fr-CA.js +112 -0
  1027. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/fr.cjs +156 -0
  1028. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/fr.d.cts +5 -0
  1029. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/fr.d.ts +4 -0
  1030. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/fr.js +129 -0
  1031. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/gu.cjs +140 -0
  1032. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/gu.d.cts +5 -0
  1033. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/gu.d.ts +4 -0
  1034. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/gu.js +113 -0
  1035. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/he.cjs +248 -0
  1036. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/he.d.cts +5 -0
  1037. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/he.d.ts +4 -0
  1038. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/he.js +221 -0
  1039. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/hi.cjs +138 -0
  1040. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/hi.d.cts +5 -0
  1041. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/hi.d.ts +4 -0
  1042. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/hi.js +111 -0
  1043. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/hr.cjs +153 -0
  1044. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/hr.d.cts +5 -0
  1045. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/hr.d.ts +4 -0
  1046. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/hr.js +126 -0
  1047. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/hu.cjs +140 -0
  1048. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/hu.d.cts +5 -0
  1049. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/hu.d.ts +4 -0
  1050. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/hu.js +113 -0
  1051. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/hy.cjs +185 -0
  1052. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/hy.d.cts +5 -0
  1053. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/hy.d.ts +4 -0
  1054. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/hy.js +158 -0
  1055. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/id.cjs +138 -0
  1056. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/id.d.cts +5 -0
  1057. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/id.d.ts +4 -0
  1058. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/id.js +111 -0
  1059. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/index.cjs +152 -0
  1060. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/index.d.cts +63 -0
  1061. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/index.d.ts +63 -0
  1062. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/index.js +63 -0
  1063. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/is.cjs +141 -0
  1064. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/is.d.cts +5 -0
  1065. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/is.d.ts +4 -0
  1066. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/is.js +114 -0
  1067. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/it.cjs +140 -0
  1068. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/it.d.cts +5 -0
  1069. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/it.d.ts +4 -0
  1070. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/it.js +113 -0
  1071. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ja.cjs +139 -0
  1072. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ja.d.cts +5 -0
  1073. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ja.d.ts +4 -0
  1074. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ja.js +112 -0
  1075. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ka.cjs +144 -0
  1076. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ka.d.cts +5 -0
  1077. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ka.d.ts +4 -0
  1078. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ka.js +117 -0
  1079. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/kh.cjs +12 -0
  1080. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/kh.d.cts +5 -0
  1081. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/kh.d.ts +5 -0
  1082. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/kh.js +5 -0
  1083. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/km.cjs +142 -0
  1084. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/km.d.cts +5 -0
  1085. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/km.d.ts +4 -0
  1086. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/km.js +115 -0
  1087. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/kn.cjs +143 -0
  1088. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/kn.d.cts +5 -0
  1089. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/kn.d.ts +4 -0
  1090. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/kn.js +116 -0
  1091. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ko.cjs +143 -0
  1092. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ko.d.cts +5 -0
  1093. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ko.d.ts +4 -0
  1094. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ko.js +116 -0
  1095. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/lt.cjs +234 -0
  1096. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/lt.d.cts +5 -0
  1097. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/lt.d.ts +4 -0
  1098. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/lt.js +207 -0
  1099. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/mk.cjs +141 -0
  1100. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/mk.d.cts +5 -0
  1101. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/mk.d.ts +4 -0
  1102. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/mk.js +114 -0
  1103. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ms.cjs +139 -0
  1104. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ms.d.cts +5 -0
  1105. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ms.d.ts +4 -0
  1106. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ms.js +112 -0
  1107. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ne.cjs +138 -0
  1108. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ne.d.cts +5 -0
  1109. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ne.d.ts +4 -0
  1110. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ne.js +111 -0
  1111. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/nl.cjs +142 -0
  1112. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/nl.d.cts +5 -0
  1113. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/nl.d.ts +4 -0
  1114. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/nl.js +115 -0
  1115. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/nn.cjs +140 -0
  1116. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/nn.d.cts +5 -0
  1117. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/nn.d.ts +4 -0
  1118. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/nn.js +113 -0
  1119. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/no.cjs +140 -0
  1120. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/no.d.cts +5 -0
  1121. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/no.d.ts +4 -0
  1122. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/no.js +113 -0
  1123. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ota.cjs +141 -0
  1124. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ota.d.cts +5 -0
  1125. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ota.d.ts +4 -0
  1126. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ota.js +114 -0
  1127. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/package.json +7 -0
  1128. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/pl.cjs +141 -0
  1129. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/pl.d.cts +5 -0
  1130. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/pl.d.ts +4 -0
  1131. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/pl.js +114 -0
  1132. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ps.cjs +146 -0
  1133. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ps.d.cts +5 -0
  1134. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ps.d.ts +4 -0
  1135. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ps.js +119 -0
  1136. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/pt-BR.cjs +170 -0
  1137. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/pt-BR.d.cts +5 -0
  1138. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/pt-BR.d.ts +4 -0
  1139. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/pt-BR.js +143 -0
  1140. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/pt.cjs +169 -0
  1141. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/pt.d.cts +5 -0
  1142. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/pt.d.ts +4 -0
  1143. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/pt.js +142 -0
  1144. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ro.cjs +149 -0
  1145. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ro.d.cts +5 -0
  1146. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ro.d.ts +4 -0
  1147. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ro.js +122 -0
  1148. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ru.cjs +195 -0
  1149. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ru.d.cts +5 -0
  1150. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ru.d.ts +4 -0
  1151. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ru.js +168 -0
  1152. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/sk.cjs +143 -0
  1153. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/sk.d.cts +5 -0
  1154. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/sk.d.ts +4 -0
  1155. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/sk.js +116 -0
  1156. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/sl.cjs +141 -0
  1157. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/sl.d.cts +5 -0
  1158. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/sl.d.ts +4 -0
  1159. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/sl.js +114 -0
  1160. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/sv.cjs +142 -0
  1161. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/sv.d.cts +5 -0
  1162. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/sv.d.ts +4 -0
  1163. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/sv.js +115 -0
  1164. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ta.cjs +142 -0
  1165. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ta.d.cts +5 -0
  1166. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ta.d.ts +4 -0
  1167. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ta.js +115 -0
  1168. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/tg.cjs +144 -0
  1169. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/tg.d.cts +5 -0
  1170. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/tg.d.ts +4 -0
  1171. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/tg.js +117 -0
  1172. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/th.cjs +142 -0
  1173. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/th.d.cts +5 -0
  1174. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/th.d.ts +4 -0
  1175. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/th.js +115 -0
  1176. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/tk.cjs +134 -0
  1177. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/tk.d.cts +5 -0
  1178. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/tk.d.ts +4 -0
  1179. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/tk.js +107 -0
  1180. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/tr.cjs +137 -0
  1181. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/tr.d.cts +5 -0
  1182. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/tr.d.ts +4 -0
  1183. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/tr.js +110 -0
  1184. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ua.cjs +12 -0
  1185. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ua.d.cts +5 -0
  1186. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ua.d.ts +5 -0
  1187. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ua.js +5 -0
  1188. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/uk.cjs +140 -0
  1189. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/uk.d.cts +5 -0
  1190. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/uk.d.ts +4 -0
  1191. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/uk.js +113 -0
  1192. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ur.cjs +142 -0
  1193. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ur.d.cts +5 -0
  1194. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ur.d.ts +4 -0
  1195. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ur.js +115 -0
  1196. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/uz.cjs +140 -0
  1197. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/uz.d.cts +5 -0
  1198. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/uz.d.ts +4 -0
  1199. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/uz.js +113 -0
  1200. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/vi.cjs +140 -0
  1201. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/vi.d.cts +5 -0
  1202. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/vi.d.ts +4 -0
  1203. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/vi.js +113 -0
  1204. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/yo.cjs +139 -0
  1205. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/yo.d.cts +5 -0
  1206. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/yo.d.ts +4 -0
  1207. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/yo.js +112 -0
  1208. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/zh-CN.cjs +141 -0
  1209. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/zh-CN.d.cts +5 -0
  1210. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/zh-CN.d.ts +4 -0
  1211. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/zh-CN.js +114 -0
  1212. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/zh-TW.cjs +139 -0
  1213. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/zh-TW.d.cts +5 -0
  1214. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/zh-TW.d.ts +4 -0
  1215. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/zh-TW.js +112 -0
  1216. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/checks.cjs +54 -0
  1217. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/checks.d.cts +1 -0
  1218. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/checks.d.ts +1 -0
  1219. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/checks.js +1 -0
  1220. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/coerce.cjs +71 -0
  1221. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/coerce.d.cts +7 -0
  1222. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/coerce.d.ts +7 -0
  1223. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/coerce.js +22 -0
  1224. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/deep-partial.cjs +58 -0
  1225. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/deep-partial.d.cts +14 -0
  1226. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/deep-partial.d.ts +14 -0
  1227. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/deep-partial.js +13 -0
  1228. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/external.cjs +95 -0
  1229. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/external.d.cts +16 -0
  1230. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/external.d.ts +16 -0
  1231. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/external.js +16 -0
  1232. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/in-out.cjs +82 -0
  1233. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/in-out.d.cts +8 -0
  1234. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/in-out.d.ts +8 -0
  1235. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/in-out.js +36 -0
  1236. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/index.cjs +51 -0
  1237. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/index.d.cts +3 -0
  1238. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/index.d.ts +3 -0
  1239. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/index.js +3 -0
  1240. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/iso.cjs +83 -0
  1241. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/iso.d.cts +22 -0
  1242. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/iso.d.ts +22 -0
  1243. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/iso.js +34 -0
  1244. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/package.json +7 -0
  1245. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/parse.cjs +37 -0
  1246. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/parse.d.cts +1 -0
  1247. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/parse.d.ts +1 -0
  1248. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/parse.js +1 -0
  1249. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/schemas.cjs +1147 -0
  1250. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/schemas.d.cts +480 -0
  1251. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/schemas.d.ts +480 -0
  1252. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/schemas.js +1002 -0
  1253. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/package.json +7 -0
  1254. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4-mini/index.cjs +51 -0
  1255. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4-mini/index.d.cts +3 -0
  1256. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4-mini/index.d.ts +3 -0
  1257. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4-mini/index.js +3 -0
  1258. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4-mini/package.json +7 -0
  1259. package/dist/node_modules/@capybara-hq/plugin-sdk/package.json +61 -0
  1260. package/dist/node_modules/@capybara-hq/plugin-sdk/schemas/bootstrap.v1.schema.json +131 -0
  1261. package/dist/node_modules/@capybara-hq/plugin-sdk/schemas/connector-template.v1.schema.json +151 -0
  1262. package/dist/node_modules/@capybara-hq/plugin-sdk/schemas/marketplace.v1.schema.json +320 -0
  1263. package/dist/node_modules/@capybara-hq/plugin-sdk/schemas/plugin.v1.schema.json +487 -0
  1264. package/dist/node_modules/@capybara-hq/plugin-sdk/schemas/theme.v1.schema.json +225 -0
  1265. package/dist/node_modules/@pondwader/socks5-server/.github/workflows/ci.yml +27 -0
  1266. package/dist/node_modules/@pondwader/socks5-server/LICENSE +20 -0
  1267. package/dist/node_modules/@pondwader/socks5-server/README.md +151 -0
  1268. package/dist/node_modules/@pondwader/socks5-server/dist/index.d.mts +87 -0
  1269. package/dist/node_modules/@pondwader/socks5-server/dist/index.d.ts +87 -0
  1270. package/dist/node_modules/@pondwader/socks5-server/dist/index.js +346 -0
  1271. package/dist/node_modules/@pondwader/socks5-server/dist/index.mjs +307 -0
  1272. package/dist/node_modules/@pondwader/socks5-server/package.json +31 -0
  1273. package/dist/node_modules/@types/debug/LICENSE +21 -0
  1274. package/dist/node_modules/@types/debug/README.md +69 -0
  1275. package/dist/node_modules/@types/debug/index.d.ts +50 -0
  1276. package/dist/node_modules/@types/debug/package.json +58 -0
  1277. package/dist/node_modules/@types/mdast/LICENSE +21 -0
  1278. package/dist/node_modules/@types/mdast/README.md +15 -0
  1279. package/dist/node_modules/@types/mdast/index.d.ts +1123 -0
  1280. package/dist/node_modules/@types/mdast/package.json +47 -0
  1281. package/dist/node_modules/@types/ms/LICENSE +21 -0
  1282. package/dist/node_modules/@types/ms/README.md +82 -0
  1283. package/dist/node_modules/@types/ms/index.d.ts +63 -0
  1284. package/dist/node_modules/@types/ms/package.json +26 -0
  1285. package/dist/node_modules/@types/unist/LICENSE +21 -0
  1286. package/dist/node_modules/@types/unist/README.md +15 -0
  1287. package/dist/node_modules/@types/unist/index.d.ts +119 -0
  1288. package/dist/node_modules/@types/unist/package.json +60 -0
  1289. package/dist/node_modules/ccount/index.d.ts +11 -0
  1290. package/dist/node_modules/ccount/index.js +27 -0
  1291. package/dist/node_modules/ccount/license +22 -0
  1292. package/dist/node_modules/ccount/package.json +71 -0
  1293. package/dist/node_modules/ccount/readme.md +149 -0
  1294. package/dist/node_modules/character-entities/index.d.ts +6 -0
  1295. package/dist/node_modules/character-entities/index.js +2132 -0
  1296. package/dist/node_modules/character-entities/license +22 -0
  1297. package/dist/node_modules/character-entities/package.json +78 -0
  1298. package/dist/node_modules/character-entities/readme.md +152 -0
  1299. package/dist/node_modules/commander/LICENSE +22 -0
  1300. package/dist/node_modules/commander/Readme.md +1157 -0
  1301. package/dist/node_modules/commander/esm.mjs +16 -0
  1302. package/dist/node_modules/commander/index.js +24 -0
  1303. package/dist/node_modules/commander/lib/argument.js +149 -0
  1304. package/dist/node_modules/commander/lib/command.js +2509 -0
  1305. package/dist/node_modules/commander/lib/error.js +39 -0
  1306. package/dist/node_modules/commander/lib/help.js +520 -0
  1307. package/dist/node_modules/commander/lib/option.js +330 -0
  1308. package/dist/node_modules/commander/lib/suggestSimilar.js +101 -0
  1309. package/dist/node_modules/commander/package-support.json +16 -0
  1310. package/dist/node_modules/commander/package.json +84 -0
  1311. package/dist/node_modules/commander/typings/esm.d.mts +3 -0
  1312. package/dist/node_modules/commander/typings/index.d.ts +969 -0
  1313. package/dist/node_modules/debug/LICENSE +20 -0
  1314. package/dist/node_modules/debug/README.md +481 -0
  1315. package/dist/node_modules/debug/package.json +64 -0
  1316. package/dist/node_modules/debug/src/browser.js +272 -0
  1317. package/dist/node_modules/debug/src/common.js +292 -0
  1318. package/dist/node_modules/debug/src/index.js +10 -0
  1319. package/dist/node_modules/debug/src/node.js +263 -0
  1320. package/dist/node_modules/decode-named-character-reference/index.d.ts +13 -0
  1321. package/dist/node_modules/decode-named-character-reference/index.d.ts.map +1 -0
  1322. package/dist/node_modules/decode-named-character-reference/index.dom.d.ts +6 -0
  1323. package/dist/node_modules/decode-named-character-reference/index.dom.d.ts.map +1 -0
  1324. package/dist/node_modules/decode-named-character-reference/index.dom.js +32 -0
  1325. package/dist/node_modules/decode-named-character-reference/index.js +19 -0
  1326. package/dist/node_modules/decode-named-character-reference/license +22 -0
  1327. package/dist/node_modules/decode-named-character-reference/package.json +90 -0
  1328. package/dist/node_modules/decode-named-character-reference/readme.md +136 -0
  1329. package/dist/node_modules/dequal/dist/index.js +86 -0
  1330. package/dist/node_modules/dequal/dist/index.min.js +1 -0
  1331. package/dist/node_modules/dequal/dist/index.mjs +84 -0
  1332. package/dist/node_modules/dequal/index.d.ts +1 -0
  1333. package/dist/node_modules/dequal/license +21 -0
  1334. package/dist/node_modules/dequal/lite/index.d.ts +1 -0
  1335. package/dist/node_modules/dequal/lite/index.js +31 -0
  1336. package/dist/node_modules/dequal/lite/index.min.js +1 -0
  1337. package/dist/node_modules/dequal/lite/index.mjs +29 -0
  1338. package/dist/node_modules/dequal/package.json +57 -0
  1339. package/dist/node_modules/dequal/readme.md +112 -0
  1340. package/dist/node_modules/devlop/lib/default.js +9 -0
  1341. package/dist/node_modules/devlop/lib/development.d.ts +84 -0
  1342. package/dist/node_modules/devlop/lib/development.js +238 -0
  1343. package/dist/node_modules/devlop/license +22 -0
  1344. package/dist/node_modules/devlop/package.json +80 -0
  1345. package/dist/node_modules/devlop/readme.md +360 -0
  1346. package/dist/node_modules/escape-string-regexp/index.d.ts +16 -0
  1347. package/dist/node_modules/escape-string-regexp/index.js +11 -0
  1348. package/dist/node_modules/escape-string-regexp/license +9 -0
  1349. package/dist/node_modules/escape-string-regexp/package.json +40 -0
  1350. package/dist/node_modules/escape-string-regexp/readme.md +34 -0
  1351. package/dist/node_modules/kysely/LICENSE +21 -0
  1352. package/dist/node_modules/kysely/README.md +242 -0
  1353. package/dist/node_modules/kysely/dist/dialect/database-introspector.d.ts +50 -0
  1354. package/dist/node_modules/kysely/dist/dialect/database-introspector.js +2 -0
  1355. package/dist/node_modules/kysely/dist/dialect/dialect-adapter-base.d.ts +79 -0
  1356. package/dist/node_modules/kysely/dist/dialect/dialect-adapter-base.js +24 -0
  1357. package/dist/node_modules/kysely/dist/dialect/dialect-adapter.d.ts +131 -0
  1358. package/dist/node_modules/kysely/dist/dialect/dialect-adapter.js +2 -0
  1359. package/dist/node_modules/kysely/dist/dialect/dialect.d.ts +34 -0
  1360. package/dist/node_modules/kysely/dist/dialect/dialect.js +2 -0
  1361. package/dist/node_modules/kysely/dist/dialect/mssql/mssql-adapter.d.ts +72 -0
  1362. package/dist/node_modules/kysely/dist/dialect/mssql/mssql-adapter.js +31 -0
  1363. package/dist/node_modules/kysely/dist/dialect/mssql/mssql-dialect-config.d.ts +171 -0
  1364. package/dist/node_modules/kysely/dist/dialect/mssql/mssql-dialect-config.js +2 -0
  1365. package/dist/node_modules/kysely/dist/dialect/mssql/mssql-dialect.d.ts +70 -0
  1366. package/dist/node_modules/kysely/dist/dialect/mssql/mssql-dialect.js +62 -0
  1367. package/dist/node_modules/kysely/dist/dialect/mssql/mssql-driver.d.ts +60 -0
  1368. package/dist/node_modules/kysely/dist/dialect/mssql/mssql-driver.js +358 -0
  1369. package/dist/node_modules/kysely/dist/dialect/mssql/mssql-introspector.d.ts +14 -0
  1370. package/dist/node_modules/kysely/dist/dialect/mssql/mssql-introspector.js +103 -0
  1371. package/dist/node_modules/kysely/dist/dialect/mssql/mssql-query-compiler.d.ts +17 -0
  1372. package/dist/node_modules/kysely/dist/dialect/mssql/mssql-query-compiler.js +89 -0
  1373. package/dist/node_modules/kysely/dist/dialect/mysql/mysql-adapter.d.ts +71 -0
  1374. package/dist/node_modules/kysely/dist/dialect/mysql/mysql-adapter.js +25 -0
  1375. package/dist/node_modules/kysely/dist/dialect/mysql/mysql-dialect-config.d.ts +71 -0
  1376. package/dist/node_modules/kysely/dist/dialect/mysql/mysql-dialect-config.js +2 -0
  1377. package/dist/node_modules/kysely/dist/dialect/mysql/mysql-dialect.d.ts +61 -0
  1378. package/dist/node_modules/kysely/dist/dialect/mysql/mysql-dialect.js +53 -0
  1379. package/dist/node_modules/kysely/dist/dialect/mysql/mysql-driver.d.ts +56 -0
  1380. package/dist/node_modules/kysely/dist/dialect/mysql/mysql-driver.js +252 -0
  1381. package/dist/node_modules/kysely/dist/dialect/mysql/mysql-introspector.d.ts +14 -0
  1382. package/dist/node_modules/kysely/dist/dialect/mysql/mysql-introspector.js +73 -0
  1383. package/dist/node_modules/kysely/dist/dialect/mysql/mysql-query-compiler.d.ts +27 -0
  1384. package/dist/node_modules/kysely/dist/dialect/mysql/mysql-query-compiler.js +77 -0
  1385. package/dist/node_modules/kysely/dist/dialect/pglite/pglite-adapter.d.ts +68 -0
  1386. package/dist/node_modules/kysely/dist/dialect/pglite/pglite-adapter.js +17 -0
  1387. package/dist/node_modules/kysely/dist/dialect/pglite/pglite-dialect-config.d.ts +58 -0
  1388. package/dist/node_modules/kysely/dist/dialect/pglite/pglite-dialect-config.js +2 -0
  1389. package/dist/node_modules/kysely/dist/dialect/pglite/pglite-dialect.d.ts +55 -0
  1390. package/dist/node_modules/kysely/dist/dialect/pglite/pglite-dialect.js +47 -0
  1391. package/dist/node_modules/kysely/dist/dialect/pglite/pglite-driver.d.ts +57 -0
  1392. package/dist/node_modules/kysely/dist/dialect/pglite/pglite-driver.js +119 -0
  1393. package/dist/node_modules/kysely/dist/dialect/postgres/postgres-adapter.d.ts +71 -0
  1394. package/dist/node_modules/kysely/dist/dialect/postgres/postgres-adapter.js +28 -0
  1395. package/dist/node_modules/kysely/dist/dialect/postgres/postgres-dialect-config.d.ts +123 -0
  1396. package/dist/node_modules/kysely/dist/dialect/postgres/postgres-dialect-config.js +2 -0
  1397. package/dist/node_modules/kysely/dist/dialect/postgres/postgres-dialect.d.ts +61 -0
  1398. package/dist/node_modules/kysely/dist/dialect/postgres/postgres-dialect.js +53 -0
  1399. package/dist/node_modules/kysely/dist/dialect/postgres/postgres-driver.d.ts +61 -0
  1400. package/dist/node_modules/kysely/dist/dialect/postgres/postgres-driver.js +198 -0
  1401. package/dist/node_modules/kysely/dist/dialect/postgres/postgres-introspector.d.ts +14 -0
  1402. package/dist/node_modules/kysely/dist/dialect/postgres/postgres-introspector.js +102 -0
  1403. package/dist/node_modules/kysely/dist/dialect/postgres/postgres-query-compiler.d.ts +4 -0
  1404. package/dist/node_modules/kysely/dist/dialect/postgres/postgres-query-compiler.js +8 -0
  1405. package/dist/node_modules/kysely/dist/dialect/sqlite/sqlite-adapter.d.ts +72 -0
  1406. package/dist/node_modules/kysely/dist/dialect/sqlite/sqlite-adapter.js +23 -0
  1407. package/dist/node_modules/kysely/dist/dialect/sqlite/sqlite-dialect-config.d.ts +42 -0
  1408. package/dist/node_modules/kysely/dist/dialect/sqlite/sqlite-dialect-config.js +2 -0
  1409. package/dist/node_modules/kysely/dist/dialect/sqlite/sqlite-dialect.d.ts +55 -0
  1410. package/dist/node_modules/kysely/dist/dialect/sqlite/sqlite-dialect.js +48 -0
  1411. package/dist/node_modules/kysely/dist/dialect/sqlite/sqlite-driver.d.ts +43 -0
  1412. package/dist/node_modules/kysely/dist/dialect/sqlite/sqlite-driver.js +84 -0
  1413. package/dist/node_modules/kysely/dist/dialect/sqlite/sqlite-introspector.d.ts +14 -0
  1414. package/dist/node_modules/kysely/dist/dialect/sqlite/sqlite-introspector.js +87 -0
  1415. package/dist/node_modules/kysely/dist/dialect/sqlite/sqlite-query-compiler.d.ts +15 -0
  1416. package/dist/node_modules/kysely/dist/dialect/sqlite/sqlite-query-compiler.js +38 -0
  1417. package/dist/node_modules/kysely/dist/driver/connection-mutex.d.ts +12 -0
  1418. package/dist/node_modules/kysely/dist/driver/connection-mutex.js +26 -0
  1419. package/dist/node_modules/kysely/dist/driver/connection-provider.d.ts +9 -0
  1420. package/dist/node_modules/kysely/dist/driver/connection-provider.js +2 -0
  1421. package/dist/node_modules/kysely/dist/driver/database-connection.d.ts +49 -0
  1422. package/dist/node_modules/kysely/dist/driver/database-connection.js +2 -0
  1423. package/dist/node_modules/kysely/dist/driver/default-connection-provider.d.ts +13 -0
  1424. package/dist/node_modules/kysely/dist/driver/default-connection-provider.js +16 -0
  1425. package/dist/node_modules/kysely/dist/driver/driver.d.ts +62 -0
  1426. package/dist/node_modules/kysely/dist/driver/driver.js +19 -0
  1427. package/dist/node_modules/kysely/dist/driver/dummy-driver.d.ts +75 -0
  1428. package/dist/node_modules/kysely/dist/driver/dummy-driver.js +80 -0
  1429. package/dist/node_modules/kysely/dist/driver/runtime-driver.d.ts +49 -0
  1430. package/dist/node_modules/kysely/dist/driver/runtime-driver.js +174 -0
  1431. package/dist/node_modules/kysely/dist/driver/single-connection-provider.d.ts +11 -0
  1432. package/dist/node_modules/kysely/dist/driver/single-connection-provider.js +26 -0
  1433. package/dist/node_modules/kysely/dist/dynamic/dynamic-reference-builder.d.ts +18 -0
  1434. package/dist/node_modules/kysely/dist/dynamic/dynamic-reference-builder.js +32 -0
  1435. package/dist/node_modules/kysely/dist/dynamic/dynamic-table-builder.d.ts +16 -0
  1436. package/dist/node_modules/kysely/dist/dynamic/dynamic-table-builder.js +41 -0
  1437. package/dist/node_modules/kysely/dist/dynamic/dynamic.d.ts +124 -0
  1438. package/dist/node_modules/kysely/dist/dynamic/dynamic.js +129 -0
  1439. package/dist/node_modules/kysely/dist/expression/expression-builder.d.ts +914 -0
  1440. package/dist/node_modules/kysely/dist/expression/expression-builder.js +121 -0
  1441. package/dist/node_modules/kysely/dist/expression/expression-wrapper.d.ts +631 -0
  1442. package/dist/node_modules/kysely/dist/expression/expression-wrapper.js +128 -0
  1443. package/dist/node_modules/kysely/dist/expression/expression.d.ts +198 -0
  1444. package/dist/node_modules/kysely/dist/expression/expression.js +12 -0
  1445. package/dist/node_modules/kysely/dist/helpers/mssql.d.ts +212 -0
  1446. package/dist/node_modules/kysely/dist/helpers/mssql.js +215 -0
  1447. package/dist/node_modules/kysely/dist/helpers/mysql.d.ts +147 -0
  1448. package/dist/node_modules/kysely/dist/helpers/mysql.js +158 -0
  1449. package/dist/node_modules/kysely/dist/helpers/postgres.d.ts +199 -0
  1450. package/dist/node_modules/kysely/dist/helpers/postgres.js +203 -0
  1451. package/dist/node_modules/kysely/dist/helpers/sqlite.d.ts +189 -0
  1452. package/dist/node_modules/kysely/dist/helpers/sqlite.js +200 -0
  1453. package/dist/node_modules/kysely/dist/index.d.ts +314 -0
  1454. package/dist/node_modules/kysely/dist/index.js +200 -0
  1455. package/dist/node_modules/kysely/dist/kysely.d.ts +796 -0
  1456. package/dist/node_modules/kysely/dist/kysely.js +1032 -0
  1457. package/dist/node_modules/kysely/dist/migration/file-migration-provider.d.ts +51 -0
  1458. package/dist/node_modules/kysely/dist/migration/file-migration-provider.js +61 -0
  1459. package/dist/node_modules/kysely/dist/migration/index.d.ts +2 -0
  1460. package/dist/node_modules/kysely/dist/migration/index.js +3 -0
  1461. package/dist/node_modules/kysely/dist/migration/migrator.d.ts +393 -0
  1462. package/dist/node_modules/kysely/dist/migration/migrator.js +614 -0
  1463. package/dist/node_modules/kysely/dist/operation-node/add-column-node.d.ts +15 -0
  1464. package/dist/node_modules/kysely/dist/operation-node/add-column-node.js +16 -0
  1465. package/dist/node_modules/kysely/dist/operation-node/add-constraint-node.d.ts +15 -0
  1466. package/dist/node_modules/kysely/dist/operation-node/add-constraint-node.js +16 -0
  1467. package/dist/node_modules/kysely/dist/operation-node/add-index-node.d.ts +29 -0
  1468. package/dist/node_modules/kysely/dist/operation-node/add-index-node.js +29 -0
  1469. package/dist/node_modules/kysely/dist/operation-node/add-value-node.d.ts +20 -0
  1470. package/dist/node_modules/kysely/dist/operation-node/add-value-node.js +22 -0
  1471. package/dist/node_modules/kysely/dist/operation-node/aggregate-function-node.d.ts +29 -0
  1472. package/dist/node_modules/kysely/dist/operation-node/aggregate-function-node.js +56 -0
  1473. package/dist/node_modules/kysely/dist/operation-node/alias-node.d.ts +15 -0
  1474. package/dist/node_modules/kysely/dist/operation-node/alias-node.js +17 -0
  1475. package/dist/node_modules/kysely/dist/operation-node/alter-column-node.d.ts +23 -0
  1476. package/dist/node_modules/kysely/dist/operation-node/alter-column-node.js +18 -0
  1477. package/dist/node_modules/kysely/dist/operation-node/alter-table-node.d.ts +38 -0
  1478. package/dist/node_modules/kysely/dist/operation-node/alter-table-node.js +30 -0
  1479. package/dist/node_modules/kysely/dist/operation-node/alter-type-node.d.ts +24 -0
  1480. package/dist/node_modules/kysely/dist/operation-node/alter-type-node.js +22 -0
  1481. package/dist/node_modules/kysely/dist/operation-node/and-node.d.ts +15 -0
  1482. package/dist/node_modules/kysely/dist/operation-node/and-node.js +17 -0
  1483. package/dist/node_modules/kysely/dist/operation-node/binary-operation-node.d.ts +16 -0
  1484. package/dist/node_modules/kysely/dist/operation-node/binary-operation-node.js +18 -0
  1485. package/dist/node_modules/kysely/dist/operation-node/case-node.d.ts +21 -0
  1486. package/dist/node_modules/kysely/dist/operation-node/case-node.js +40 -0
  1487. package/dist/node_modules/kysely/dist/operation-node/cast-node.d.ts +15 -0
  1488. package/dist/node_modules/kysely/dist/operation-node/cast-node.js +17 -0
  1489. package/dist/node_modules/kysely/dist/operation-node/check-constraint-node.d.ts +16 -0
  1490. package/dist/node_modules/kysely/dist/operation-node/check-constraint-node.js +20 -0
  1491. package/dist/node_modules/kysely/dist/operation-node/collate-node.d.ts +15 -0
  1492. package/dist/node_modules/kysely/dist/operation-node/collate-node.js +17 -0
  1493. package/dist/node_modules/kysely/dist/operation-node/column-definition-node.d.ts +38 -0
  1494. package/dist/node_modules/kysely/dist/operation-node/column-definition-node.js +40 -0
  1495. package/dist/node_modules/kysely/dist/operation-node/column-node.d.ts +15 -0
  1496. package/dist/node_modules/kysely/dist/operation-node/column-node.js +17 -0
  1497. package/dist/node_modules/kysely/dist/operation-node/column-update-node.d.ts +15 -0
  1498. package/dist/node_modules/kysely/dist/operation-node/column-update-node.js +17 -0
  1499. package/dist/node_modules/kysely/dist/operation-node/common-table-expression-name-node.d.ts +17 -0
  1500. package/dist/node_modules/kysely/dist/operation-node/common-table-expression-name-node.js +21 -0
  1501. package/dist/node_modules/kysely/dist/operation-node/common-table-expression-node.d.ts +19 -0
  1502. package/dist/node_modules/kysely/dist/operation-node/common-table-expression-node.js +23 -0
  1503. package/dist/node_modules/kysely/dist/operation-node/constraint-node.d.ts +5 -0
  1504. package/dist/node_modules/kysely/dist/operation-node/constraint-node.js +2 -0
  1505. package/dist/node_modules/kysely/dist/operation-node/create-index-node.d.ts +29 -0
  1506. package/dist/node_modules/kysely/dist/operation-node/create-index-node.js +29 -0
  1507. package/dist/node_modules/kysely/dist/operation-node/create-schema-node.d.ts +18 -0
  1508. package/dist/node_modules/kysely/dist/operation-node/create-schema-node.js +24 -0
  1509. package/dist/node_modules/kysely/dist/operation-node/create-table-node.d.ts +37 -0
  1510. package/dist/node_modules/kysely/dist/operation-node/create-table-node.js +62 -0
  1511. package/dist/node_modules/kysely/dist/operation-node/create-type-node.d.ts +19 -0
  1512. package/dist/node_modules/kysely/dist/operation-node/create-type-node.js +24 -0
  1513. package/dist/node_modules/kysely/dist/operation-node/create-view-node.d.ts +26 -0
  1514. package/dist/node_modules/kysely/dist/operation-node/create-view-node.js +23 -0
  1515. package/dist/node_modules/kysely/dist/operation-node/data-type-node.d.ts +18 -0
  1516. package/dist/node_modules/kysely/dist/operation-node/data-type-node.js +80 -0
  1517. package/dist/node_modules/kysely/dist/operation-node/default-insert-value-node.d.ts +13 -0
  1518. package/dist/node_modules/kysely/dist/operation-node/default-insert-value-node.js +15 -0
  1519. package/dist/node_modules/kysely/dist/operation-node/default-value-node.d.ts +14 -0
  1520. package/dist/node_modules/kysely/dist/operation-node/default-value-node.js +16 -0
  1521. package/dist/node_modules/kysely/dist/operation-node/delete-query-node.d.ts +42 -0
  1522. package/dist/node_modules/kysely/dist/operation-node/delete-query-node.js +50 -0
  1523. package/dist/node_modules/kysely/dist/operation-node/drop-column-node.d.ts +18 -0
  1524. package/dist/node_modules/kysely/dist/operation-node/drop-column-node.js +23 -0
  1525. package/dist/node_modules/kysely/dist/operation-node/drop-constraint-node.d.ts +19 -0
  1526. package/dist/node_modules/kysely/dist/operation-node/drop-constraint-node.js +23 -0
  1527. package/dist/node_modules/kysely/dist/operation-node/drop-index-node.d.ts +21 -0
  1528. package/dist/node_modules/kysely/dist/operation-node/drop-index-node.js +24 -0
  1529. package/dist/node_modules/kysely/dist/operation-node/drop-schema-node.d.ts +19 -0
  1530. package/dist/node_modules/kysely/dist/operation-node/drop-schema-node.js +24 -0
  1531. package/dist/node_modules/kysely/dist/operation-node/drop-table-node.d.ts +24 -0
  1532. package/dist/node_modules/kysely/dist/operation-node/drop-table-node.js +23 -0
  1533. package/dist/node_modules/kysely/dist/operation-node/drop-type-node.d.ts +20 -0
  1534. package/dist/node_modules/kysely/dist/operation-node/drop-type-node.js +26 -0
  1535. package/dist/node_modules/kysely/dist/operation-node/drop-view-node.d.ts +20 -0
  1536. package/dist/node_modules/kysely/dist/operation-node/drop-view-node.js +23 -0
  1537. package/dist/node_modules/kysely/dist/operation-node/explain-node.d.ts +16 -0
  1538. package/dist/node_modules/kysely/dist/operation-node/explain-node.js +17 -0
  1539. package/dist/node_modules/kysely/dist/operation-node/fetch-node.d.ts +17 -0
  1540. package/dist/node_modules/kysely/dist/operation-node/fetch-node.js +18 -0
  1541. package/dist/node_modules/kysely/dist/operation-node/foreign-key-constraint-node.d.ts +26 -0
  1542. package/dist/node_modules/kysely/dist/operation-node/foreign-key-constraint-node.js +28 -0
  1543. package/dist/node_modules/kysely/dist/operation-node/from-node.d.ts +15 -0
  1544. package/dist/node_modules/kysely/dist/operation-node/from-node.js +22 -0
  1545. package/dist/node_modules/kysely/dist/operation-node/function-node.d.ts +15 -0
  1546. package/dist/node_modules/kysely/dist/operation-node/function-node.js +17 -0
  1547. package/dist/node_modules/kysely/dist/operation-node/generated-node.d.ts +21 -0
  1548. package/dist/node_modules/kysely/dist/operation-node/generated-node.js +29 -0
  1549. package/dist/node_modules/kysely/dist/operation-node/group-by-item-node.d.ts +14 -0
  1550. package/dist/node_modules/kysely/dist/operation-node/group-by-item-node.js +16 -0
  1551. package/dist/node_modules/kysely/dist/operation-node/group-by-node.d.ts +16 -0
  1552. package/dist/node_modules/kysely/dist/operation-node/group-by-node.js +22 -0
  1553. package/dist/node_modules/kysely/dist/operation-node/having-node.d.ts +15 -0
  1554. package/dist/node_modules/kysely/dist/operation-node/having-node.js +26 -0
  1555. package/dist/node_modules/kysely/dist/operation-node/identifier-node.d.ts +14 -0
  1556. package/dist/node_modules/kysely/dist/operation-node/identifier-node.js +16 -0
  1557. package/dist/node_modules/kysely/dist/operation-node/insert-query-node.d.ts +40 -0
  1558. package/dist/node_modules/kysely/dist/operation-node/insert-query-node.js +29 -0
  1559. package/dist/node_modules/kysely/dist/operation-node/join-node.d.ts +20 -0
  1560. package/dist/node_modules/kysely/dist/operation-node/join-node.js +35 -0
  1561. package/dist/node_modules/kysely/dist/operation-node/json-operator-chain-node.d.ts +18 -0
  1562. package/dist/node_modules/kysely/dist/operation-node/json-operator-chain-node.js +23 -0
  1563. package/dist/node_modules/kysely/dist/operation-node/json-path-leg-node.d.ts +16 -0
  1564. package/dist/node_modules/kysely/dist/operation-node/json-path-leg-node.js +17 -0
  1565. package/dist/node_modules/kysely/dist/operation-node/json-path-node.d.ts +18 -0
  1566. package/dist/node_modules/kysely/dist/operation-node/json-path-node.js +23 -0
  1567. package/dist/node_modules/kysely/dist/operation-node/json-reference-node.d.ts +19 -0
  1568. package/dist/node_modules/kysely/dist/operation-node/json-reference-node.js +23 -0
  1569. package/dist/node_modules/kysely/dist/operation-node/limit-node.d.ts +14 -0
  1570. package/dist/node_modules/kysely/dist/operation-node/limit-node.js +16 -0
  1571. package/dist/node_modules/kysely/dist/operation-node/list-node.d.ts +14 -0
  1572. package/dist/node_modules/kysely/dist/operation-node/list-node.js +16 -0
  1573. package/dist/node_modules/kysely/dist/operation-node/matched-node.d.ts +15 -0
  1574. package/dist/node_modules/kysely/dist/operation-node/matched-node.js +17 -0
  1575. package/dist/node_modules/kysely/dist/operation-node/merge-query-node.d.ts +32 -0
  1576. package/dist/node_modules/kysely/dist/operation-node/merge-query-node.js +43 -0
  1577. package/dist/node_modules/kysely/dist/operation-node/modify-column-node.d.ts +15 -0
  1578. package/dist/node_modules/kysely/dist/operation-node/modify-column-node.js +16 -0
  1579. package/dist/node_modules/kysely/dist/operation-node/offset-node.d.ts +14 -0
  1580. package/dist/node_modules/kysely/dist/operation-node/offset-node.js +16 -0
  1581. package/dist/node_modules/kysely/dist/operation-node/on-conflict-node.d.ts +32 -0
  1582. package/dist/node_modules/kysely/dist/operation-node/on-conflict-node.js +66 -0
  1583. package/dist/node_modules/kysely/dist/operation-node/on-duplicate-key-node.d.ts +16 -0
  1584. package/dist/node_modules/kysely/dist/operation-node/on-duplicate-key-node.js +16 -0
  1585. package/dist/node_modules/kysely/dist/operation-node/on-node.d.ts +15 -0
  1586. package/dist/node_modules/kysely/dist/operation-node/on-node.js +26 -0
  1587. package/dist/node_modules/kysely/dist/operation-node/operation-node-source.d.ts +5 -0
  1588. package/dist/node_modules/kysely/dist/operation-node/operation-node-source.js +5 -0
  1589. package/dist/node_modules/kysely/dist/operation-node/operation-node-transformer.d.ts +244 -0
  1590. package/dist/node_modules/kysely/dist/operation-node/operation-node-transformer.js +958 -0
  1591. package/dist/node_modules/kysely/dist/operation-node/operation-node-visitor.d.ts +207 -0
  1592. package/dist/node_modules/kysely/dist/operation-node/operation-node-visitor.js +115 -0
  1593. package/dist/node_modules/kysely/dist/operation-node/operation-node.d.ts +5 -0
  1594. package/dist/node_modules/kysely/dist/operation-node/operation-node.js +5 -0
  1595. package/dist/node_modules/kysely/dist/operation-node/operator-node.d.ts +65 -0
  1596. package/dist/node_modules/kysely/dist/operation-node/operator-node.js +148 -0
  1597. package/dist/node_modules/kysely/dist/operation-node/or-action-node.d.ts +14 -0
  1598. package/dist/node_modules/kysely/dist/operation-node/or-action-node.js +16 -0
  1599. package/dist/node_modules/kysely/dist/operation-node/or-node.d.ts +15 -0
  1600. package/dist/node_modules/kysely/dist/operation-node/or-node.js +17 -0
  1601. package/dist/node_modules/kysely/dist/operation-node/order-by-item-node.d.ts +20 -0
  1602. package/dist/node_modules/kysely/dist/operation-node/order-by-item-node.js +23 -0
  1603. package/dist/node_modules/kysely/dist/operation-node/order-by-node.d.ts +16 -0
  1604. package/dist/node_modules/kysely/dist/operation-node/order-by-node.js +22 -0
  1605. package/dist/node_modules/kysely/dist/operation-node/output-node.d.ts +15 -0
  1606. package/dist/node_modules/kysely/dist/operation-node/output-node.js +24 -0
  1607. package/dist/node_modules/kysely/dist/operation-node/over-node.d.ts +21 -0
  1608. package/dist/node_modules/kysely/dist/operation-node/over-node.js +33 -0
  1609. package/dist/node_modules/kysely/dist/operation-node/parens-node.d.ts +14 -0
  1610. package/dist/node_modules/kysely/dist/operation-node/parens-node.js +16 -0
  1611. package/dist/node_modules/kysely/dist/operation-node/partition-by-item-node.d.ts +15 -0
  1612. package/dist/node_modules/kysely/dist/operation-node/partition-by-item-node.js +16 -0
  1613. package/dist/node_modules/kysely/dist/operation-node/partition-by-node.d.ts +16 -0
  1614. package/dist/node_modules/kysely/dist/operation-node/partition-by-node.js +22 -0
  1615. package/dist/node_modules/kysely/dist/operation-node/primary-key-constraint-node.d.ts +21 -0
  1616. package/dist/node_modules/kysely/dist/operation-node/primary-key-constraint-node.js +24 -0
  1617. package/dist/node_modules/kysely/dist/operation-node/primitive-value-list-node.d.ts +19 -0
  1618. package/dist/node_modules/kysely/dist/operation-node/primitive-value-list-node.js +16 -0
  1619. package/dist/node_modules/kysely/dist/operation-node/query-node.d.ts +61 -0
  1620. package/dist/node_modules/kysely/dist/operation-node/query-node.js +100 -0
  1621. package/dist/node_modules/kysely/dist/operation-node/raw-node.d.ts +18 -0
  1622. package/dist/node_modules/kysely/dist/operation-node/raw-node.js +26 -0
  1623. package/dist/node_modules/kysely/dist/operation-node/reference-node.d.ts +19 -0
  1624. package/dist/node_modules/kysely/dist/operation-node/reference-node.js +25 -0
  1625. package/dist/node_modules/kysely/dist/operation-node/references-node.d.ts +27 -0
  1626. package/dist/node_modules/kysely/dist/operation-node/references-node.js +43 -0
  1627. package/dist/node_modules/kysely/dist/operation-node/refresh-materialized-view-node.d.ts +19 -0
  1628. package/dist/node_modules/kysely/dist/operation-node/refresh-materialized-view-node.js +23 -0
  1629. package/dist/node_modules/kysely/dist/operation-node/rename-column-node.d.ts +16 -0
  1630. package/dist/node_modules/kysely/dist/operation-node/rename-column-node.js +18 -0
  1631. package/dist/node_modules/kysely/dist/operation-node/rename-constraint-node.d.ts +16 -0
  1632. package/dist/node_modules/kysely/dist/operation-node/rename-constraint-node.js +18 -0
  1633. package/dist/node_modules/kysely/dist/operation-node/rename-value-node.d.ts +14 -0
  1634. package/dist/node_modules/kysely/dist/operation-node/rename-value-node.js +14 -0
  1635. package/dist/node_modules/kysely/dist/operation-node/returning-node.d.ts +16 -0
  1636. package/dist/node_modules/kysely/dist/operation-node/returning-node.js +24 -0
  1637. package/dist/node_modules/kysely/dist/operation-node/root-operation-node.d.ts +17 -0
  1638. package/dist/node_modules/kysely/dist/operation-node/root-operation-node.js +27 -0
  1639. package/dist/node_modules/kysely/dist/operation-node/schemable-identifier-node.d.ts +17 -0
  1640. package/dist/node_modules/kysely/dist/operation-node/schemable-identifier-node.js +24 -0
  1641. package/dist/node_modules/kysely/dist/operation-node/select-all-node.d.ts +13 -0
  1642. package/dist/node_modules/kysely/dist/operation-node/select-all-node.js +15 -0
  1643. package/dist/node_modules/kysely/dist/operation-node/select-modifier-node.d.ts +18 -0
  1644. package/dist/node_modules/kysely/dist/operation-node/select-modifier-node.js +23 -0
  1645. package/dist/node_modules/kysely/dist/operation-node/select-query-node.d.ts +63 -0
  1646. package/dist/node_modules/kysely/dist/operation-node/select-query-node.js +127 -0
  1647. package/dist/node_modules/kysely/dist/operation-node/selection-node.d.ts +21 -0
  1648. package/dist/node_modules/kysely/dist/operation-node/selection-node.js +30 -0
  1649. package/dist/node_modules/kysely/dist/operation-node/set-operation-node.d.ts +17 -0
  1650. package/dist/node_modules/kysely/dist/operation-node/set-operation-node.js +18 -0
  1651. package/dist/node_modules/kysely/dist/operation-node/simple-reference-expression-node.d.ts +3 -0
  1652. package/dist/node_modules/kysely/dist/operation-node/simple-reference-expression-node.js +2 -0
  1653. package/dist/node_modules/kysely/dist/operation-node/table-node.d.ts +16 -0
  1654. package/dist/node_modules/kysely/dist/operation-node/table-node.js +23 -0
  1655. package/dist/node_modules/kysely/dist/operation-node/top-node.d.ts +16 -0
  1656. package/dist/node_modules/kysely/dist/operation-node/top-node.js +17 -0
  1657. package/dist/node_modules/kysely/dist/operation-node/tuple-node.d.ts +14 -0
  1658. package/dist/node_modules/kysely/dist/operation-node/tuple-node.js +16 -0
  1659. package/dist/node_modules/kysely/dist/operation-node/unary-operation-node.d.ts +15 -0
  1660. package/dist/node_modules/kysely/dist/operation-node/unary-operation-node.js +17 -0
  1661. package/dist/node_modules/kysely/dist/operation-node/unique-constraint-node.d.ts +30 -0
  1662. package/dist/node_modules/kysely/dist/operation-node/unique-constraint-node.js +29 -0
  1663. package/dist/node_modules/kysely/dist/operation-node/update-query-node.d.ts +41 -0
  1664. package/dist/node_modules/kysely/dist/operation-node/update-query-node.js +48 -0
  1665. package/dist/node_modules/kysely/dist/operation-node/using-node.d.ts +15 -0
  1666. package/dist/node_modules/kysely/dist/operation-node/using-node.js +22 -0
  1667. package/dist/node_modules/kysely/dist/operation-node/value-list-node.d.ts +14 -0
  1668. package/dist/node_modules/kysely/dist/operation-node/value-list-node.js +16 -0
  1669. package/dist/node_modules/kysely/dist/operation-node/value-node.d.ts +16 -0
  1670. package/dist/node_modules/kysely/dist/operation-node/value-node.js +23 -0
  1671. package/dist/node_modules/kysely/dist/operation-node/values-node.d.ts +17 -0
  1672. package/dist/node_modules/kysely/dist/operation-node/values-node.js +16 -0
  1673. package/dist/node_modules/kysely/dist/operation-node/when-node.d.ts +16 -0
  1674. package/dist/node_modules/kysely/dist/operation-node/when-node.js +22 -0
  1675. package/dist/node_modules/kysely/dist/operation-node/where-node.d.ts +15 -0
  1676. package/dist/node_modules/kysely/dist/operation-node/where-node.js +26 -0
  1677. package/dist/node_modules/kysely/dist/operation-node/with-node.d.ts +18 -0
  1678. package/dist/node_modules/kysely/dist/operation-node/with-node.js +23 -0
  1679. package/dist/node_modules/kysely/dist/parser/binary-operation-parser.d.ts +23 -0
  1680. package/dist/node_modules/kysely/dist/parser/binary-operation-parser.js +68 -0
  1681. package/dist/node_modules/kysely/dist/parser/coalesce-parser.d.ts +12 -0
  1682. package/dist/node_modules/kysely/dist/parser/coalesce-parser.js +2 -0
  1683. package/dist/node_modules/kysely/dist/parser/collate-parser.d.ts +1 -0
  1684. package/dist/node_modules/kysely/dist/parser/collate-parser.js +2 -0
  1685. package/dist/node_modules/kysely/dist/parser/data-type-parser.d.ts +5 -0
  1686. package/dist/node_modules/kysely/dist/parser/data-type-parser.js +12 -0
  1687. package/dist/node_modules/kysely/dist/parser/default-value-parser.d.ts +4 -0
  1688. package/dist/node_modules/kysely/dist/parser/default-value-parser.js +8 -0
  1689. package/dist/node_modules/kysely/dist/parser/delete-from-parser.d.ts +9 -0
  1690. package/dist/node_modules/kysely/dist/parser/delete-from-parser.js +2 -0
  1691. package/dist/node_modules/kysely/dist/parser/expression-parser.d.ts +20 -0
  1692. package/dist/node_modules/kysely/dist/parser/expression-parser.js +26 -0
  1693. package/dist/node_modules/kysely/dist/parser/fetch-parser.d.ts +2 -0
  1694. package/dist/node_modules/kysely/dist/parser/fetch-parser.js +15 -0
  1695. package/dist/node_modules/kysely/dist/parser/group-by-parser.d.ts +6 -0
  1696. package/dist/node_modules/kysely/dist/parser/group-by-parser.js +9 -0
  1697. package/dist/node_modules/kysely/dist/parser/identifier-parser.d.ts +3 -0
  1698. package/dist/node_modules/kysely/dist/parser/identifier-parser.js +26 -0
  1699. package/dist/node_modules/kysely/dist/parser/insert-values-parser.d.ts +14 -0
  1700. package/dist/node_modules/kysely/dist/parser/insert-values-parser.js +62 -0
  1701. package/dist/node_modules/kysely/dist/parser/join-parser.d.ts +10 -0
  1702. package/dist/node_modules/kysely/dist/parser/join-parser.js +28 -0
  1703. package/dist/node_modules/kysely/dist/parser/merge-into-parser.d.ts +7 -0
  1704. package/dist/node_modules/kysely/dist/parser/merge-into-parser.js +2 -0
  1705. package/dist/node_modules/kysely/dist/parser/merge-parser.d.ts +9 -0
  1706. package/dist/node_modules/kysely/dist/parser/merge-parser.js +28 -0
  1707. package/dist/node_modules/kysely/dist/parser/on-commit-action-parse.d.ts +2 -0
  1708. package/dist/node_modules/kysely/dist/parser/on-commit-action-parse.js +8 -0
  1709. package/dist/node_modules/kysely/dist/parser/on-modify-action-parser.d.ts +2 -0
  1710. package/dist/node_modules/kysely/dist/parser/on-modify-action-parser.js +8 -0
  1711. package/dist/node_modules/kysely/dist/parser/order-by-parser.d.ts +25 -0
  1712. package/dist/node_modules/kysely/dist/parser/order-by-parser.js +67 -0
  1713. package/dist/node_modules/kysely/dist/parser/parse-utils.d.ts +10 -0
  1714. package/dist/node_modules/kysely/dist/parser/parse-utils.js +33 -0
  1715. package/dist/node_modules/kysely/dist/parser/partition-by-parser.d.ts +6 -0
  1716. package/dist/node_modules/kysely/dist/parser/partition-by-parser.js +6 -0
  1717. package/dist/node_modules/kysely/dist/parser/reference-parser.d.ts +31 -0
  1718. package/dist/node_modules/kysely/dist/parser/reference-parser.js +93 -0
  1719. package/dist/node_modules/kysely/dist/parser/returning-parser.d.ts +8 -0
  1720. package/dist/node_modules/kysely/dist/parser/returning-parser.js +2 -0
  1721. package/dist/node_modules/kysely/dist/parser/savepoint-parser.d.ts +4 -0
  1722. package/dist/node_modules/kysely/dist/parser/savepoint-parser.js +9 -0
  1723. package/dist/node_modules/kysely/dist/parser/select-from-parser.d.ts +6 -0
  1724. package/dist/node_modules/kysely/dist/parser/select-from-parser.js +2 -0
  1725. package/dist/node_modules/kysely/dist/parser/select-parser.d.ts +36 -0
  1726. package/dist/node_modules/kysely/dist/parser/select-parser.js +47 -0
  1727. package/dist/node_modules/kysely/dist/parser/set-operation-parser.d.ts +5 -0
  1728. package/dist/node_modules/kysely/dist/parser/set-operation-parser.js +14 -0
  1729. package/dist/node_modules/kysely/dist/parser/table-parser.d.ts +24 -0
  1730. package/dist/node_modules/kysely/dist/parser/table-parser.js +49 -0
  1731. package/dist/node_modules/kysely/dist/parser/top-parser.d.ts +2 -0
  1732. package/dist/node_modules/kysely/dist/parser/top-parser.js +17 -0
  1733. package/dist/node_modules/kysely/dist/parser/tuple-parser.d.ts +47 -0
  1734. package/dist/node_modules/kysely/dist/parser/tuple-parser.js +2 -0
  1735. package/dist/node_modules/kysely/dist/parser/unary-operation-parser.d.ts +8 -0
  1736. package/dist/node_modules/kysely/dist/parser/unary-operation-parser.js +16 -0
  1737. package/dist/node_modules/kysely/dist/parser/update-parser.d.ts +9 -0
  1738. package/dist/node_modules/kysely/dist/parser/update-parser.js +2 -0
  1739. package/dist/node_modules/kysely/dist/parser/update-set-parser.d.ts +16 -0
  1740. package/dist/node_modules/kysely/dist/parser/update-set-parser.js +23 -0
  1741. package/dist/node_modules/kysely/dist/parser/value-parser.d.ts +13 -0
  1742. package/dist/node_modules/kysely/dist/parser/value-parser.js +33 -0
  1743. package/dist/node_modules/kysely/dist/parser/with-parser.d.ts +46 -0
  1744. package/dist/node_modules/kysely/dist/parser/with-parser.js +34 -0
  1745. package/dist/node_modules/kysely/dist/plugin/camel-case/camel-case-plugin.d.ts +170 -0
  1746. package/dist/node_modules/kysely/dist/plugin/camel-case/camel-case-plugin.js +119 -0
  1747. package/dist/node_modules/kysely/dist/plugin/camel-case/camel-case-transformer.d.ts +9 -0
  1748. package/dist/node_modules/kysely/dist/plugin/camel-case/camel-case-transformer.js +16 -0
  1749. package/dist/node_modules/kysely/dist/plugin/camel-case/camel-case.d.ts +15 -0
  1750. package/dist/node_modules/kysely/dist/plugin/camel-case/camel-case.js +108 -0
  1751. package/dist/node_modules/kysely/dist/plugin/deduplicate-joins/deduplicate-joins-plugin.d.ts +70 -0
  1752. package/dist/node_modules/kysely/dist/plugin/deduplicate-joins/deduplicate-joins-plugin.js +16 -0
  1753. package/dist/node_modules/kysely/dist/plugin/deduplicate-joins/deduplicate-joins-transformer.d.ts +11 -0
  1754. package/dist/node_modules/kysely/dist/plugin/deduplicate-joins/deduplicate-joins-transformer.js +39 -0
  1755. package/dist/node_modules/kysely/dist/plugin/handle-empty-in-lists/handle-empty-in-lists-plugin.d.ts +211 -0
  1756. package/dist/node_modules/kysely/dist/plugin/handle-empty-in-lists/handle-empty-in-lists-plugin.js +159 -0
  1757. package/dist/node_modules/kysely/dist/plugin/handle-empty-in-lists/handle-empty-in-lists-transformer.d.ts +8 -0
  1758. package/dist/node_modules/kysely/dist/plugin/handle-empty-in-lists/handle-empty-in-lists-transformer.js +26 -0
  1759. package/dist/node_modules/kysely/dist/plugin/handle-empty-in-lists/handle-empty-in-lists.d.ts +44 -0
  1760. package/dist/node_modules/kysely/dist/plugin/handle-empty-in-lists/handle-empty-in-lists.js +63 -0
  1761. package/dist/node_modules/kysely/dist/plugin/immediate-value/immediate-value-plugin.d.ts +73 -0
  1762. package/dist/node_modules/kysely/dist/plugin/immediate-value/immediate-value-plugin.js +19 -0
  1763. package/dist/node_modules/kysely/dist/plugin/immediate-value/immediate-value-transformer.d.ts +15 -0
  1764. package/dist/node_modules/kysely/dist/plugin/immediate-value/immediate-value-transformer.js +20 -0
  1765. package/dist/node_modules/kysely/dist/plugin/kysely-plugin.d.ts +73 -0
  1766. package/dist/node_modules/kysely/dist/plugin/kysely-plugin.js +2 -0
  1767. package/dist/node_modules/kysely/dist/plugin/noop-plugin.d.ts +64 -0
  1768. package/dist/node_modules/kysely/dist/plugin/noop-plugin.js +9 -0
  1769. package/dist/node_modules/kysely/dist/plugin/parse-json-results/parse-json-results-plugin.d.ts +141 -0
  1770. package/dist/node_modules/kysely/dist/plugin/parse-json-results/parse-json-results-plugin.js +143 -0
  1771. package/dist/node_modules/kysely/dist/plugin/safe-null-comparison/safe-null-comparison-plugin.d.ts +81 -0
  1772. package/dist/node_modules/kysely/dist/plugin/safe-null-comparison/safe-null-comparison-plugin.js +27 -0
  1773. package/dist/node_modules/kysely/dist/plugin/safe-null-comparison/safe-null-comparison-transformer.d.ts +5 -0
  1774. package/dist/node_modules/kysely/dist/plugin/safe-null-comparison/safe-null-comparison-transformer.js +20 -0
  1775. package/dist/node_modules/kysely/dist/plugin/with-schema/with-schema-plugin.d.ts +66 -0
  1776. package/dist/node_modules/kysely/dist/plugin/with-schema/with-schema-plugin.js +14 -0
  1777. package/dist/node_modules/kysely/dist/plugin/with-schema/with-schema-transformer.d.ts +18 -0
  1778. package/dist/node_modules/kysely/dist/plugin/with-schema/with-schema-transformer.js +170 -0
  1779. package/dist/node_modules/kysely/dist/query-builder/aggregate-function-builder.d.ts +379 -0
  1780. package/dist/node_modules/kysely/dist/query-builder/aggregate-function-builder.js +238 -0
  1781. package/dist/node_modules/kysely/dist/query-builder/case-builder.d.ts +184 -0
  1782. package/dist/node_modules/kysely/dist/query-builder/case-builder.js +116 -0
  1783. package/dist/node_modules/kysely/dist/query-builder/cte-builder.d.ts +20 -0
  1784. package/dist/node_modules/kysely/dist/query-builder/cte-builder.js +34 -0
  1785. package/dist/node_modules/kysely/dist/query-builder/delete-query-builder.d.ts +1344 -0
  1786. package/dist/node_modules/kysely/dist/query-builder/delete-query-builder.js +497 -0
  1787. package/dist/node_modules/kysely/dist/query-builder/delete-result.d.ts +4 -0
  1788. package/dist/node_modules/kysely/dist/query-builder/delete-result.js +7 -0
  1789. package/dist/node_modules/kysely/dist/query-builder/function-module.d.ts +592 -0
  1790. package/dist/node_modules/kysely/dist/query-builder/function-module.js +60 -0
  1791. package/dist/node_modules/kysely/dist/query-builder/having-interface.d.ts +15 -0
  1792. package/dist/node_modules/kysely/dist/query-builder/having-interface.js +2 -0
  1793. package/dist/node_modules/kysely/dist/query-builder/insert-query-builder.d.ts +1231 -0
  1794. package/dist/node_modules/kysely/dist/query-builder/insert-query-builder.js +1151 -0
  1795. package/dist/node_modules/kysely/dist/query-builder/insert-result.d.ts +46 -0
  1796. package/dist/node_modules/kysely/dist/query-builder/insert-result.js +50 -0
  1797. package/dist/node_modules/kysely/dist/query-builder/join-builder.d.ts +38 -0
  1798. package/dist/node_modules/kysely/dist/query-builder/join-builder.js +48 -0
  1799. package/dist/node_modules/kysely/dist/query-builder/json-path-builder.d.ts +294 -0
  1800. package/dist/node_modules/kysely/dist/query-builder/json-path-builder.js +203 -0
  1801. package/dist/node_modules/kysely/dist/query-builder/merge-query-builder.d.ts +993 -0
  1802. package/dist/node_modules/kysely/dist/query-builder/merge-query-builder.js +613 -0
  1803. package/dist/node_modules/kysely/dist/query-builder/merge-result.d.ts +4 -0
  1804. package/dist/node_modules/kysely/dist/query-builder/merge-result.js +7 -0
  1805. package/dist/node_modules/kysely/dist/query-builder/no-result-error.d.ts +10 -0
  1806. package/dist/node_modules/kysely/dist/query-builder/no-result-error.js +14 -0
  1807. package/dist/node_modules/kysely/dist/query-builder/on-conflict-builder.d.ts +875 -0
  1808. package/dist/node_modules/kysely/dist/query-builder/on-conflict-builder.js +254 -0
  1809. package/dist/node_modules/kysely/dist/query-builder/order-by-interface.d.ts +158 -0
  1810. package/dist/node_modules/kysely/dist/query-builder/order-by-interface.js +2 -0
  1811. package/dist/node_modules/kysely/dist/query-builder/order-by-item-builder.d.ts +43 -0
  1812. package/dist/node_modules/kysely/dist/query-builder/order-by-item-builder.js +72 -0
  1813. package/dist/node_modules/kysely/dist/query-builder/output-interface.d.ts +138 -0
  1814. package/dist/node_modules/kysely/dist/query-builder/output-interface.js +2 -0
  1815. package/dist/node_modules/kysely/dist/query-builder/over-builder.d.ts +101 -0
  1816. package/dist/node_modules/kysely/dist/query-builder/over-builder.js +37 -0
  1817. package/dist/node_modules/kysely/dist/query-builder/returning-interface.d.ts +87 -0
  1818. package/dist/node_modules/kysely/dist/query-builder/returning-interface.js +2 -0
  1819. package/dist/node_modules/kysely/dist/query-builder/select-query-builder-expression.d.ts +28 -0
  1820. package/dist/node_modules/kysely/dist/query-builder/select-query-builder-expression.js +2 -0
  1821. package/dist/node_modules/kysely/dist/query-builder/select-query-builder.d.ts +2413 -0
  1822. package/dist/node_modules/kysely/dist/query-builder/select-query-builder.js +387 -0
  1823. package/dist/node_modules/kysely/dist/query-builder/update-query-builder.d.ts +1388 -0
  1824. package/dist/node_modules/kysely/dist/query-builder/update-query-builder.js +506 -0
  1825. package/dist/node_modules/kysely/dist/query-builder/update-result.d.ts +14 -0
  1826. package/dist/node_modules/kysely/dist/query-builder/update-result.js +18 -0
  1827. package/dist/node_modules/kysely/dist/query-builder/where-interface.d.ts +382 -0
  1828. package/dist/node_modules/kysely/dist/query-builder/where-interface.js +2 -0
  1829. package/dist/node_modules/kysely/dist/query-compiler/compiled-query.d.ts +14 -0
  1830. package/dist/node_modules/kysely/dist/query-compiler/compiled-query.js +25 -0
  1831. package/dist/node_modules/kysely/dist/query-compiler/default-query-compiler.d.ts +243 -0
  1832. package/dist/node_modules/kysely/dist/query-compiler/default-query-compiler.js +1452 -0
  1833. package/dist/node_modules/kysely/dist/query-compiler/query-compiler.d.ts +9 -0
  1834. package/dist/node_modules/kysely/dist/query-compiler/query-compiler.js +2 -0
  1835. package/dist/node_modules/kysely/dist/query-creator.d.ts +593 -0
  1836. package/dist/node_modules/kysely/dist/query-creator.js +620 -0
  1837. package/dist/node_modules/kysely/dist/query-executor/default-query-executor.d.ts +52 -0
  1838. package/dist/node_modules/kysely/dist/query-executor/default-query-executor.js +37 -0
  1839. package/dist/node_modules/kysely/dist/query-executor/noop-query-executor.d.ts +50 -0
  1840. package/dist/node_modules/kysely/dist/query-executor/noop-query-executor.js +34 -0
  1841. package/dist/node_modules/kysely/dist/query-executor/query-executor-base.d.ts +69 -0
  1842. package/dist/node_modules/kysely/dist/query-executor/query-executor-base.js +169 -0
  1843. package/dist/node_modules/kysely/dist/query-executor/query-executor-provider.d.ts +8 -0
  1844. package/dist/node_modules/kysely/dist/query-executor/query-executor-provider.js +2 -0
  1845. package/dist/node_modules/kysely/dist/query-executor/query-executor.d.ts +75 -0
  1846. package/dist/node_modules/kysely/dist/query-executor/query-executor.js +2 -0
  1847. package/dist/node_modules/kysely/dist/query-finalizer.d.ts +27 -0
  1848. package/dist/node_modules/kysely/dist/query-finalizer.js +23 -0
  1849. package/dist/node_modules/kysely/dist/raw-builder/raw-builder.d.ts +219 -0
  1850. package/dist/node_modules/kysely/dist/raw-builder/raw-builder.js +84 -0
  1851. package/dist/node_modules/kysely/dist/raw-builder/sql.d.ts +358 -0
  1852. package/dist/node_modules/kysely/dist/raw-builder/sql.js +76 -0
  1853. package/dist/node_modules/kysely/dist/readonly/index.d.ts +6 -0
  1854. package/dist/node_modules/kysely/dist/readonly/index.js +2 -0
  1855. package/dist/node_modules/kysely/dist/readonly/readonly-compiled-query.d.ts +6 -0
  1856. package/dist/node_modules/kysely/dist/readonly/readonly-compiled-query.js +6 -0
  1857. package/dist/node_modules/kysely/dist/readonly/readonly-database-connection.d.ts +19 -0
  1858. package/dist/node_modules/kysely/dist/readonly/readonly-database-connection.js +2 -0
  1859. package/dist/node_modules/kysely/dist/readonly/readonly-driver.d.ts +5 -0
  1860. package/dist/node_modules/kysely/dist/readonly/readonly-driver.js +2 -0
  1861. package/dist/node_modules/kysely/dist/readonly/readonly-kysely.d.ts +230 -0
  1862. package/dist/node_modules/kysely/dist/readonly/readonly-kysely.js +2 -0
  1863. package/dist/node_modules/kysely/dist/readonly/readonly-query-creator.d.ts +37 -0
  1864. package/dist/node_modules/kysely/dist/readonly/readonly-query-creator.js +2 -0
  1865. package/dist/node_modules/kysely/dist/readonly/readonly-with-parser.d.ts +32 -0
  1866. package/dist/node_modules/kysely/dist/readonly/readonly-with-parser.js +2 -0
  1867. package/dist/node_modules/kysely/dist/schema/alter-column-builder.d.ts +53 -0
  1868. package/dist/node_modules/kysely/dist/schema/alter-column-builder.js +70 -0
  1869. package/dist/node_modules/kysely/dist/schema/alter-table-add-foreign-key-constraint-builder.d.ts +33 -0
  1870. package/dist/node_modules/kysely/dist/schema/alter-table-add-foreign-key-constraint-builder.js +64 -0
  1871. package/dist/node_modules/kysely/dist/schema/alter-table-add-index-builder.d.ts +157 -0
  1872. package/dist/node_modules/kysely/dist/schema/alter-table-add-index-builder.js +151 -0
  1873. package/dist/node_modules/kysely/dist/schema/alter-table-builder.d.ts +151 -0
  1874. package/dist/node_modules/kysely/dist/schema/alter-table-builder.js +269 -0
  1875. package/dist/node_modules/kysely/dist/schema/alter-table-drop-constraint-builder.d.ts +27 -0
  1876. package/dist/node_modules/kysely/dist/schema/alter-table-drop-constraint-builder.js +56 -0
  1877. package/dist/node_modules/kysely/dist/schema/alter-table-executor.d.ts +19 -0
  1878. package/dist/node_modules/kysely/dist/schema/alter-table-executor.js +17 -0
  1879. package/dist/node_modules/kysely/dist/schema/alter-type-add-value-builder.d.ts +25 -0
  1880. package/dist/node_modules/kysely/dist/schema/alter-type-add-value-builder.js +50 -0
  1881. package/dist/node_modules/kysely/dist/schema/alter-type-builder.d.ts +33 -0
  1882. package/dist/node_modules/kysely/dist/schema/alter-type-builder.js +62 -0
  1883. package/dist/node_modules/kysely/dist/schema/check-constraint-builder.d.ts +13 -0
  1884. package/dist/node_modules/kysely/dist/schema/check-constraint-builder.js +17 -0
  1885. package/dist/node_modules/kysely/dist/schema/column-definition-builder.d.ts +514 -0
  1886. package/dist/node_modules/kysely/dist/schema/column-definition-builder.js +597 -0
  1887. package/dist/node_modules/kysely/dist/schema/create-index-builder.d.ts +205 -0
  1888. package/dist/node_modules/kysely/dist/schema/create-index-builder.js +185 -0
  1889. package/dist/node_modules/kysely/dist/schema/create-schema-builder.d.ts +25 -0
  1890. package/dist/node_modules/kysely/dist/schema/create-schema-builder.js +31 -0
  1891. package/dist/node_modules/kysely/dist/schema/create-table-add-index-builder.d.ts +35 -0
  1892. package/dist/node_modules/kysely/dist/schema/create-table-add-index-builder.js +24 -0
  1893. package/dist/node_modules/kysely/dist/schema/create-table-builder.d.ts +379 -0
  1894. package/dist/node_modules/kysely/dist/schema/create-table-builder.js +465 -0
  1895. package/dist/node_modules/kysely/dist/schema/create-type-builder.d.ts +34 -0
  1896. package/dist/node_modules/kysely/dist/schema/create-type-builder.js +40 -0
  1897. package/dist/node_modules/kysely/dist/schema/create-view-builder.d.ts +49 -0
  1898. package/dist/node_modules/kysely/dist/schema/create-view-builder.js +95 -0
  1899. package/dist/node_modules/kysely/dist/schema/drop-column-builder.d.ts +12 -0
  1900. package/dist/node_modules/kysely/dist/schema/drop-column-builder.js +18 -0
  1901. package/dist/node_modules/kysely/dist/schema/drop-index-builder.d.ts +31 -0
  1902. package/dist/node_modules/kysely/dist/schema/drop-index-builder.js +54 -0
  1903. package/dist/node_modules/kysely/dist/schema/drop-schema-builder.d.ts +26 -0
  1904. package/dist/node_modules/kysely/dist/schema/drop-schema-builder.js +41 -0
  1905. package/dist/node_modules/kysely/dist/schema/drop-table-builder.d.ts +32 -0
  1906. package/dist/node_modules/kysely/dist/schema/drop-table-builder.js +54 -0
  1907. package/dist/node_modules/kysely/dist/schema/drop-type-builder.d.ts +32 -0
  1908. package/dist/node_modules/kysely/dist/schema/drop-type-builder.js +47 -0
  1909. package/dist/node_modules/kysely/dist/schema/drop-view-builder.d.ts +27 -0
  1910. package/dist/node_modules/kysely/dist/schema/drop-view-builder.js +49 -0
  1911. package/dist/node_modules/kysely/dist/schema/foreign-key-constraint-builder.d.ts +28 -0
  1912. package/dist/node_modules/kysely/dist/schema/foreign-key-constraint-builder.js +45 -0
  1913. package/dist/node_modules/kysely/dist/schema/primary-key-constraint-builder.d.ts +17 -0
  1914. package/dist/node_modules/kysely/dist/schema/primary-key-constraint-builder.js +34 -0
  1915. package/dist/node_modules/kysely/dist/schema/refresh-materialized-view-builder.d.ts +48 -0
  1916. package/dist/node_modules/kysely/dist/schema/refresh-materialized-view-builder.js +72 -0
  1917. package/dist/node_modules/kysely/dist/schema/schema-module.d.ts +254 -0
  1918. package/dist/node_modules/kysely/dist/schema/schema-module.js +356 -0
  1919. package/dist/node_modules/kysely/dist/schema/unique-constraint-builder.d.ts +23 -0
  1920. package/dist/node_modules/kysely/dist/schema/unique-constraint-builder.js +42 -0
  1921. package/dist/node_modules/kysely/dist/util/abort.d.ts +49 -0
  1922. package/dist/node_modules/kysely/dist/util/abort.js +78 -0
  1923. package/dist/node_modules/kysely/dist/util/column-type.d.ts +229 -0
  1924. package/dist/node_modules/kysely/dist/util/column-type.js +2 -0
  1925. package/dist/node_modules/kysely/dist/util/compilable.d.ts +5 -0
  1926. package/dist/node_modules/kysely/dist/util/compilable.js +5 -0
  1927. package/dist/node_modules/kysely/dist/util/deferred.d.ts +7 -0
  1928. package/dist/node_modules/kysely/dist/util/deferred.js +23 -0
  1929. package/dist/node_modules/kysely/dist/util/executable.d.ts +35 -0
  1930. package/dist/node_modules/kysely/dist/util/executable.js +2 -0
  1931. package/dist/node_modules/kysely/dist/util/explainable.d.ts +40 -0
  1932. package/dist/node_modules/kysely/dist/util/explainable.js +2 -0
  1933. package/dist/node_modules/kysely/dist/util/infer-result.d.ts +48 -0
  1934. package/dist/node_modules/kysely/dist/util/infer-result.js +2 -0
  1935. package/dist/node_modules/kysely/dist/util/json-object-args.d.ts +3 -0
  1936. package/dist/node_modules/kysely/dist/util/json-object-args.js +32 -0
  1937. package/dist/node_modules/kysely/dist/util/log-once.d.ts +5 -0
  1938. package/dist/node_modules/kysely/dist/util/log-once.js +13 -0
  1939. package/dist/node_modules/kysely/dist/util/log.d.ts +28 -0
  1940. package/dist/node_modules/kysely/dist/util/log.js +56 -0
  1941. package/dist/node_modules/kysely/dist/util/object-utils.d.ts +24 -0
  1942. package/dist/node_modules/kysely/dist/util/object-utils.js +144 -0
  1943. package/dist/node_modules/kysely/dist/util/performance-now.d.ts +1 -0
  1944. package/dist/node_modules/kysely/dist/util/performance-now.js +10 -0
  1945. package/dist/node_modules/kysely/dist/util/provide-controlled-connection.d.ts +8 -0
  1946. package/dist/node_modules/kysely/dist/util/provide-controlled-connection.js +22 -0
  1947. package/dist/node_modules/kysely/dist/util/query-id.d.ts +4 -0
  1948. package/dist/node_modules/kysely/dist/util/query-id.js +14 -0
  1949. package/dist/node_modules/kysely/dist/util/random-string.d.ts +1 -0
  1950. package/dist/node_modules/kysely/dist/util/random-string.js +75 -0
  1951. package/dist/node_modules/kysely/dist/util/stack-trace-utils.d.ts +1 -0
  1952. package/dist/node_modules/kysely/dist/util/stack-trace-utils.js +14 -0
  1953. package/dist/node_modules/kysely/dist/util/streamable.d.ts +38 -0
  1954. package/dist/node_modules/kysely/dist/util/streamable.js +2 -0
  1955. package/dist/node_modules/kysely/dist/util/type-error.d.ts +3 -0
  1956. package/dist/node_modules/kysely/dist/util/type-error.js +2 -0
  1957. package/dist/node_modules/kysely/dist/util/type-utils.d.ts +205 -0
  1958. package/dist/node_modules/kysely/dist/util/type-utils.js +2 -0
  1959. package/dist/node_modules/kysely/outdated-typescript.d.ts +5 -0
  1960. package/dist/node_modules/kysely/package.json +128 -0
  1961. package/dist/node_modules/longest-streak/index.d.ts +11 -0
  1962. package/dist/node_modules/longest-streak/index.js +36 -0
  1963. package/dist/node_modules/longest-streak/license +22 -0
  1964. package/dist/node_modules/longest-streak/package.json +73 -0
  1965. package/dist/node_modules/longest-streak/readme.md +150 -0
  1966. package/dist/node_modules/markdown-table/index.d.ts +171 -0
  1967. package/dist/node_modules/markdown-table/index.d.ts.map +1 -0
  1968. package/dist/node_modules/markdown-table/index.js +393 -0
  1969. package/dist/node_modules/markdown-table/license +22 -0
  1970. package/dist/node_modules/markdown-table/package.json +77 -0
  1971. package/dist/node_modules/markdown-table/readme.md +344 -0
  1972. package/dist/node_modules/mdast-util-find-and-replace/index.d.ts +9 -0
  1973. package/dist/node_modules/mdast-util-find-and-replace/index.d.ts.map +1 -0
  1974. package/dist/node_modules/mdast-util-find-and-replace/index.js +11 -0
  1975. package/dist/node_modules/mdast-util-find-and-replace/lib/index.d.ts +79 -0
  1976. package/dist/node_modules/mdast-util-find-and-replace/lib/index.d.ts.map +1 -0
  1977. package/dist/node_modules/mdast-util-find-and-replace/lib/index.js +257 -0
  1978. package/dist/node_modules/mdast-util-find-and-replace/license +22 -0
  1979. package/dist/node_modules/mdast-util-find-and-replace/package.json +78 -0
  1980. package/dist/node_modules/mdast-util-find-and-replace/readme.md +366 -0
  1981. package/dist/node_modules/mdast-util-from-markdown/dev/index.d.ts +23 -0
  1982. package/dist/node_modules/mdast-util-from-markdown/dev/index.js +2 -0
  1983. package/dist/node_modules/mdast-util-from-markdown/dev/lib/index.d.ts +53 -0
  1984. package/dist/node_modules/mdast-util-from-markdown/dev/lib/index.d.ts.map +1 -0
  1985. package/dist/node_modules/mdast-util-from-markdown/dev/lib/index.js +1455 -0
  1986. package/dist/node_modules/mdast-util-from-markdown/dev/lib/types.d.ts +321 -0
  1987. package/dist/node_modules/mdast-util-from-markdown/dev/lib/types.js +2 -0
  1988. package/dist/node_modules/mdast-util-from-markdown/index.d.ts +23 -0
  1989. package/dist/node_modules/mdast-util-from-markdown/index.js +2 -0
  1990. package/dist/node_modules/mdast-util-from-markdown/lib/index.d.ts +53 -0
  1991. package/dist/node_modules/mdast-util-from-markdown/lib/index.d.ts.map +1 -0
  1992. package/dist/node_modules/mdast-util-from-markdown/lib/index.js +1270 -0
  1993. package/dist/node_modules/mdast-util-from-markdown/lib/types.d.ts +321 -0
  1994. package/dist/node_modules/mdast-util-from-markdown/lib/types.js +2 -0
  1995. package/dist/node_modules/mdast-util-from-markdown/license +22 -0
  1996. package/dist/node_modules/mdast-util-from-markdown/package.json +98 -0
  1997. package/dist/node_modules/mdast-util-from-markdown/readme.md +549 -0
  1998. package/dist/node_modules/mdast-util-gfm/index.d.ts +12 -0
  1999. package/dist/node_modules/mdast-util-gfm/index.js +2 -0
  2000. package/dist/node_modules/mdast-util-gfm/lib/index.d.ts +24 -0
  2001. package/dist/node_modules/mdast-util-gfm/lib/index.d.ts.map +1 -0
  2002. package/dist/node_modules/mdast-util-gfm/lib/index.js +63 -0
  2003. package/dist/node_modules/mdast-util-gfm/license +22 -0
  2004. package/dist/node_modules/mdast-util-gfm/package.json +125 -0
  2005. package/dist/node_modules/mdast-util-gfm/readme.md +497 -0
  2006. package/dist/node_modules/mdast-util-gfm-autolink-literal/index.d.ts +1 -0
  2007. package/dist/node_modules/mdast-util-gfm-autolink-literal/index.js +4 -0
  2008. package/dist/node_modules/mdast-util-gfm-autolink-literal/lib/index.d.ts +18 -0
  2009. package/dist/node_modules/mdast-util-gfm-autolink-literal/lib/index.js +280 -0
  2010. package/dist/node_modules/mdast-util-gfm-autolink-literal/license +22 -0
  2011. package/dist/node_modules/mdast-util-gfm-autolink-literal/package.json +106 -0
  2012. package/dist/node_modules/mdast-util-gfm-autolink-literal/readme.md +334 -0
  2013. package/dist/node_modules/mdast-util-gfm-footnote/index.d.ts +34 -0
  2014. package/dist/node_modules/mdast-util-gfm-footnote/index.js +2 -0
  2015. package/dist/node_modules/mdast-util-gfm-footnote/lib/index.d.ts +22 -0
  2016. package/dist/node_modules/mdast-util-gfm-footnote/lib/index.d.ts.map +1 -0
  2017. package/dist/node_modules/mdast-util-gfm-footnote/lib/index.js +212 -0
  2018. package/dist/node_modules/mdast-util-gfm-footnote/license +22 -0
  2019. package/dist/node_modules/mdast-util-gfm-footnote/package.json +111 -0
  2020. package/dist/node_modules/mdast-util-gfm-footnote/readme.md +494 -0
  2021. package/dist/node_modules/mdast-util-gfm-strikethrough/index.d.ts +19 -0
  2022. package/dist/node_modules/mdast-util-gfm-strikethrough/index.js +5 -0
  2023. package/dist/node_modules/mdast-util-gfm-strikethrough/lib/index.d.ts +19 -0
  2024. package/dist/node_modules/mdast-util-gfm-strikethrough/lib/index.d.ts.map +1 -0
  2025. package/dist/node_modules/mdast-util-gfm-strikethrough/lib/index.js +133 -0
  2026. package/dist/node_modules/mdast-util-gfm-strikethrough/license +22 -0
  2027. package/dist/node_modules/mdast-util-gfm-strikethrough/package.json +84 -0
  2028. package/dist/node_modules/mdast-util-gfm-strikethrough/readme.md +350 -0
  2029. package/dist/node_modules/mdast-util-gfm-table/index.d.ts +54 -0
  2030. package/dist/node_modules/mdast-util-gfm-table/index.js +2 -0
  2031. package/dist/node_modules/mdast-util-gfm-table/lib/index.d.ts +51 -0
  2032. package/dist/node_modules/mdast-util-gfm-table/lib/index.js +300 -0
  2033. package/dist/node_modules/mdast-util-gfm-table/license +22 -0
  2034. package/dist/node_modules/mdast-util-gfm-table/package.json +101 -0
  2035. package/dist/node_modules/mdast-util-gfm-table/readme.md +605 -0
  2036. package/dist/node_modules/mdast-util-gfm-task-list-item/index.d.ts +4 -0
  2037. package/dist/node_modules/mdast-util-gfm-task-list-item/index.js +4 -0
  2038. package/dist/node_modules/mdast-util-gfm-task-list-item/lib/index.d.ts +23 -0
  2039. package/dist/node_modules/mdast-util-gfm-task-list-item/lib/index.js +141 -0
  2040. package/dist/node_modules/mdast-util-gfm-task-list-item/license +22 -0
  2041. package/dist/node_modules/mdast-util-gfm-task-list-item/package.json +90 -0
  2042. package/dist/node_modules/mdast-util-gfm-task-list-item/readme.md +366 -0
  2043. package/dist/node_modules/mdast-util-phrasing/index.d.ts +1 -0
  2044. package/dist/node_modules/mdast-util-phrasing/index.js +1 -0
  2045. package/dist/node_modules/mdast-util-phrasing/lib/index.d.ts +3 -0
  2046. package/dist/node_modules/mdast-util-phrasing/lib/index.js +45 -0
  2047. package/dist/node_modules/mdast-util-phrasing/license +23 -0
  2048. package/dist/node_modules/mdast-util-phrasing/package.json +78 -0
  2049. package/dist/node_modules/mdast-util-phrasing/readme.md +200 -0
  2050. package/dist/node_modules/mdast-util-to-markdown/index.d.ts +18 -0
  2051. package/dist/node_modules/mdast-util-to-markdown/index.js +3 -0
  2052. package/dist/node_modules/mdast-util-to-markdown/lib/configure.d.ts +14 -0
  2053. package/dist/node_modules/mdast-util-to-markdown/lib/configure.d.ts.map +1 -0
  2054. package/dist/node_modules/mdast-util-to-markdown/lib/configure.js +98 -0
  2055. package/dist/node_modules/mdast-util-to-markdown/lib/handle/blockquote.d.ts +24 -0
  2056. package/dist/node_modules/mdast-util-to-markdown/lib/handle/blockquote.d.ts.map +1 -0
  2057. package/dist/node_modules/mdast-util-to-markdown/lib/handle/blockquote.js +40 -0
  2058. package/dist/node_modules/mdast-util-to-markdown/lib/handle/break.d.ts +20 -0
  2059. package/dist/node_modules/mdast-util-to-markdown/lib/handle/break.d.ts.map +1 -0
  2060. package/dist/node_modules/mdast-util-to-markdown/lib/handle/break.js +41 -0
  2061. package/dist/node_modules/mdast-util-to-markdown/lib/handle/code.d.ts +20 -0
  2062. package/dist/node_modules/mdast-util-to-markdown/lib/handle/code.d.ts.map +1 -0
  2063. package/dist/node_modules/mdast-util-to-markdown/lib/handle/code.js +86 -0
  2064. package/dist/node_modules/mdast-util-to-markdown/lib/handle/definition.d.ts +20 -0
  2065. package/dist/node_modules/mdast-util-to-markdown/lib/handle/definition.d.ts.map +1 -0
  2066. package/dist/node_modules/mdast-util-to-markdown/lib/handle/definition.js +83 -0
  2067. package/dist/node_modules/mdast-util-to-markdown/lib/handle/emphasis.d.ts +52 -0
  2068. package/dist/node_modules/mdast-util-to-markdown/lib/handle/emphasis.d.ts.map +1 -0
  2069. package/dist/node_modules/mdast-util-to-markdown/lib/handle/emphasis.js +67 -0
  2070. package/dist/node_modules/mdast-util-to-markdown/lib/handle/heading.d.ts +20 -0
  2071. package/dist/node_modules/mdast-util-to-markdown/lib/handle/heading.d.ts.map +1 -0
  2072. package/dist/node_modules/mdast-util-to-markdown/lib/handle/heading.js +84 -0
  2073. package/dist/node_modules/mdast-util-to-markdown/lib/handle/html.d.ts +22 -0
  2074. package/dist/node_modules/mdast-util-to-markdown/lib/handle/html.d.ts.map +1 -0
  2075. package/dist/node_modules/mdast-util-to-markdown/lib/handle/html.js +27 -0
  2076. package/dist/node_modules/mdast-util-to-markdown/lib/handle/image-reference.d.ts +31 -0
  2077. package/dist/node_modules/mdast-util-to-markdown/lib/handle/image-reference.d.ts.map +1 -0
  2078. package/dist/node_modules/mdast-util-to-markdown/lib/handle/image-reference.js +78 -0
  2079. package/dist/node_modules/mdast-util-to-markdown/lib/handle/image.d.ts +31 -0
  2080. package/dist/node_modules/mdast-util-to-markdown/lib/handle/image.d.ts.map +1 -0
  2081. package/dist/node_modules/mdast-util-to-markdown/lib/handle/image.js +92 -0
  2082. package/dist/node_modules/mdast-util-to-markdown/lib/handle/index.d.ts +42 -0
  2083. package/dist/node_modules/mdast-util-to-markdown/lib/handle/index.d.ts.map +1 -0
  2084. package/dist/node_modules/mdast-util-to-markdown/lib/handle/index.js +45 -0
  2085. package/dist/node_modules/mdast-util-to-markdown/lib/handle/inline-code.d.ts +28 -0
  2086. package/dist/node_modules/mdast-util-to-markdown/lib/handle/inline-code.d.ts.map +1 -0
  2087. package/dist/node_modules/mdast-util-to-markdown/lib/handle/inline-code.js +86 -0
  2088. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link-reference.d.ts +31 -0
  2089. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link-reference.d.ts.map +1 -0
  2090. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link-reference.js +78 -0
  2091. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link.d.ts +37 -0
  2092. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link.d.ts.map +1 -0
  2093. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link.js +129 -0
  2094. package/dist/node_modules/mdast-util-to-markdown/lib/handle/list-item.d.ts +20 -0
  2095. package/dist/node_modules/mdast-util-to-markdown/lib/handle/list-item.d.ts.map +1 -0
  2096. package/dist/node_modules/mdast-util-to-markdown/lib/handle/list-item.js +73 -0
  2097. package/dist/node_modules/mdast-util-to-markdown/lib/handle/list.d.ts +20 -0
  2098. package/dist/node_modules/mdast-util-to-markdown/lib/handle/list.d.ts.map +1 -0
  2099. package/dist/node_modules/mdast-util-to-markdown/lib/handle/list.js +107 -0
  2100. package/dist/node_modules/mdast-util-to-markdown/lib/handle/paragraph.d.ts +24 -0
  2101. package/dist/node_modules/mdast-util-to-markdown/lib/handle/paragraph.d.ts.map +1 -0
  2102. package/dist/node_modules/mdast-util-to-markdown/lib/handle/paragraph.js +27 -0
  2103. package/dist/node_modules/mdast-util-to-markdown/lib/handle/root.d.ts +20 -0
  2104. package/dist/node_modules/mdast-util-to-markdown/lib/handle/root.d.ts.map +1 -0
  2105. package/dist/node_modules/mdast-util-to-markdown/lib/handle/root.js +34 -0
  2106. package/dist/node_modules/mdast-util-to-markdown/lib/handle/strong.d.ts +52 -0
  2107. package/dist/node_modules/mdast-util-to-markdown/lib/handle/strong.d.ts.map +1 -0
  2108. package/dist/node_modules/mdast-util-to-markdown/lib/handle/strong.js +67 -0
  2109. package/dist/node_modules/mdast-util-to-markdown/lib/handle/text.d.ts +24 -0
  2110. package/dist/node_modules/mdast-util-to-markdown/lib/handle/text.d.ts.map +1 -0
  2111. package/dist/node_modules/mdast-util-to-markdown/lib/handle/text.js +30 -0
  2112. package/dist/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.d.ts +17 -0
  2113. package/dist/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.d.ts.map +1 -0
  2114. package/dist/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.js +27 -0
  2115. package/dist/node_modules/mdast-util-to-markdown/lib/index.d.ts +14 -0
  2116. package/dist/node_modules/mdast-util-to-markdown/lib/index.d.ts.map +1 -0
  2117. package/dist/node_modules/mdast-util-to-markdown/lib/index.js +213 -0
  2118. package/dist/node_modules/mdast-util-to-markdown/lib/join.d.ts +4 -0
  2119. package/dist/node_modules/mdast-util-to-markdown/lib/join.d.ts.map +1 -0
  2120. package/dist/node_modules/mdast-util-to-markdown/lib/join.js +56 -0
  2121. package/dist/node_modules/mdast-util-to-markdown/lib/types.d.ts +1005 -0
  2122. package/dist/node_modules/mdast-util-to-markdown/lib/types.js +2 -0
  2123. package/dist/node_modules/mdast-util-to-markdown/lib/unsafe.d.ts +4 -0
  2124. package/dist/node_modules/mdast-util-to-markdown/lib/unsafe.d.ts.map +1 -0
  2125. package/dist/node_modules/mdast-util-to-markdown/lib/unsafe.js +160 -0
  2126. package/dist/node_modules/mdast-util-to-markdown/lib/util/association.d.ts +2 -0
  2127. package/dist/node_modules/mdast-util-to-markdown/lib/util/association.d.ts.map +1 -0
  2128. package/dist/node_modules/mdast-util-to-markdown/lib/util/association.js +33 -0
  2129. package/dist/node_modules/mdast-util-to-markdown/lib/util/character.d.ts +23 -0
  2130. package/dist/node_modules/mdast-util-to-markdown/lib/util/character.d.ts.map +1 -0
  2131. package/dist/node_modules/mdast-util-to-markdown/lib/util/character.js +32 -0
  2132. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.d.ts +15 -0
  2133. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.d.ts.map +1 -0
  2134. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.js +25 -0
  2135. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.d.ts +12 -0
  2136. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.d.ts.map +1 -0
  2137. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.js +42 -0
  2138. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet.d.ts +15 -0
  2139. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet.d.ts.map +1 -0
  2140. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet.js +25 -0
  2141. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.d.ts +15 -0
  2142. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.d.ts.map +1 -0
  2143. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.js +25 -0
  2144. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-fence.d.ts +15 -0
  2145. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-fence.d.ts.map +1 -0
  2146. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-fence.js +25 -0
  2147. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.d.ts +15 -0
  2148. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.d.ts.map +1 -0
  2149. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js +25 -0
  2150. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-quote.d.ts +15 -0
  2151. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-quote.d.ts.map +1 -0
  2152. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-quote.js +25 -0
  2153. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.d.ts +15 -0
  2154. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.d.ts.map +1 -0
  2155. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.js +25 -0
  2156. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule.d.ts +15 -0
  2157. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule.d.ts.map +1 -0
  2158. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule.js +25 -0
  2159. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-strong.d.ts +15 -0
  2160. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-strong.d.ts.map +1 -0
  2161. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-strong.js +25 -0
  2162. package/dist/node_modules/mdast-util-to-markdown/lib/util/compile-pattern.d.ts +2 -0
  2163. package/dist/node_modules/mdast-util-to-markdown/lib/util/compile-pattern.d.ts.map +1 -0
  2164. package/dist/node_modules/mdast-util-to-markdown/lib/util/compile-pattern.js +30 -0
  2165. package/dist/node_modules/mdast-util-to-markdown/lib/util/container-flow.d.ts +21 -0
  2166. package/dist/node_modules/mdast-util-to-markdown/lib/util/container-flow.d.ts.map +1 -0
  2167. package/dist/node_modules/mdast-util-to-markdown/lib/util/container-flow.js +93 -0
  2168. package/dist/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.d.ts +110 -0
  2169. package/dist/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.d.ts.map +1 -0
  2170. package/dist/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.js +704 -0
  2171. package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.d.ts +10 -0
  2172. package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.d.ts.map +1 -0
  2173. package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.js +11 -0
  2174. package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-info.d.ts +33 -0
  2175. package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-info.d.ts.map +1 -0
  2176. package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-info.js +82 -0
  2177. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.d.ts +18 -0
  2178. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.d.ts.map +1 -0
  2179. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.js +27 -0
  2180. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.d.ts +14 -0
  2181. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.d.ts.map +1 -0
  2182. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js +39 -0
  2183. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.d.ts +14 -0
  2184. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.d.ts.map +1 -0
  2185. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.js +39 -0
  2186. package/dist/node_modules/mdast-util-to-markdown/lib/util/html-kind.d.ts +31 -0
  2187. package/dist/node_modules/mdast-util-to-markdown/lib/util/html-kind.d.ts.map +1 -0
  2188. package/dist/node_modules/mdast-util-to-markdown/lib/util/html-kind.js +63 -0
  2189. package/dist/node_modules/mdast-util-to-markdown/lib/util/indent-lines.d.ts +2 -0
  2190. package/dist/node_modules/mdast-util-to-markdown/lib/util/indent-lines.d.ts.map +1 -0
  2191. package/dist/node_modules/mdast-util-to-markdown/lib/util/indent-lines.js +40 -0
  2192. package/dist/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.d.ts +17 -0
  2193. package/dist/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.d.ts.map +1 -0
  2194. package/dist/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.js +52 -0
  2195. package/dist/node_modules/mdast-util-to-markdown/lib/util/safe.d.ts +29 -0
  2196. package/dist/node_modules/mdast-util-to-markdown/lib/util/safe.d.ts.map +1 -0
  2197. package/dist/node_modules/mdast-util-to-markdown/lib/util/safe.js +263 -0
  2198. package/dist/node_modules/mdast-util-to-markdown/lib/util/track.d.ts +2 -0
  2199. package/dist/node_modules/mdast-util-to-markdown/lib/util/track.d.ts.map +1 -0
  2200. package/dist/node_modules/mdast-util-to-markdown/lib/util/track.js +55 -0
  2201. package/dist/node_modules/mdast-util-to-markdown/license +22 -0
  2202. package/dist/node_modules/mdast-util-to-markdown/package.json +88 -0
  2203. package/dist/node_modules/mdast-util-to-markdown/readme.md +814 -0
  2204. package/dist/node_modules/mdast-util-to-string/index.d.ts +2 -0
  2205. package/dist/node_modules/mdast-util-to-string/index.js +5 -0
  2206. package/dist/node_modules/mdast-util-to-string/lib/index.d.ts +31 -0
  2207. package/dist/node_modules/mdast-util-to-string/lib/index.js +108 -0
  2208. package/dist/node_modules/mdast-util-to-string/license +22 -0
  2209. package/dist/node_modules/mdast-util-to-string/package.json +78 -0
  2210. package/dist/node_modules/mdast-util-to-string/readme.md +218 -0
  2211. package/dist/node_modules/micromark/dev/index.d.ts +82 -0
  2212. package/dist/node_modules/micromark/dev/index.d.ts.map +1 -0
  2213. package/dist/node_modules/micromark/dev/index.js +68 -0
  2214. package/dist/node_modules/micromark/dev/lib/compile.d.ts +16 -0
  2215. package/dist/node_modules/micromark/dev/lib/compile.d.ts.map +1 -0
  2216. package/dist/node_modules/micromark/dev/lib/compile.js +1162 -0
  2217. package/dist/node_modules/micromark/dev/lib/constructs.d.ts +73 -0
  2218. package/dist/node_modules/micromark/dev/lib/constructs.d.ts.map +1 -0
  2219. package/dist/node_modules/micromark/dev/lib/constructs.js +101 -0
  2220. package/dist/node_modules/micromark/dev/lib/create-tokenizer.d.ts +46 -0
  2221. package/dist/node_modules/micromark/dev/lib/create-tokenizer.d.ts.map +1 -0
  2222. package/dist/node_modules/micromark/dev/lib/create-tokenizer.js +718 -0
  2223. package/dist/node_modules/micromark/dev/lib/initialize/content.d.ts +4 -0
  2224. package/dist/node_modules/micromark/dev/lib/initialize/content.d.ts.map +1 -0
  2225. package/dist/node_modules/micromark/dev/lib/initialize/content.js +99 -0
  2226. package/dist/node_modules/micromark/dev/lib/initialize/document.d.ts +10 -0
  2227. package/dist/node_modules/micromark/dev/lib/initialize/document.d.ts.map +1 -0
  2228. package/dist/node_modules/micromark/dev/lib/initialize/document.js +449 -0
  2229. package/dist/node_modules/micromark/dev/lib/initialize/flow.d.ts +4 -0
  2230. package/dist/node_modules/micromark/dev/lib/initialize/flow.d.ts.map +1 -0
  2231. package/dist/node_modules/micromark/dev/lib/initialize/flow.js +86 -0
  2232. package/dist/node_modules/micromark/dev/lib/initialize/text.d.ts +8 -0
  2233. package/dist/node_modules/micromark/dev/lib/initialize/text.d.ts.map +1 -0
  2234. package/dist/node_modules/micromark/dev/lib/initialize/text.js +248 -0
  2235. package/dist/node_modules/micromark/dev/lib/parse.d.ts +10 -0
  2236. package/dist/node_modules/micromark/dev/lib/parse.d.ts.map +1 -0
  2237. package/dist/node_modules/micromark/dev/lib/parse.js +58 -0
  2238. package/dist/node_modules/micromark/dev/lib/postprocess.d.ts +9 -0
  2239. package/dist/node_modules/micromark/dev/lib/postprocess.d.ts.map +1 -0
  2240. package/dist/node_modules/micromark/dev/lib/postprocess.js +19 -0
  2241. package/dist/node_modules/micromark/dev/lib/preprocess.d.ts +13 -0
  2242. package/dist/node_modules/micromark/dev/lib/preprocess.d.ts.map +1 -0
  2243. package/dist/node_modules/micromark/dev/lib/preprocess.js +139 -0
  2244. package/dist/node_modules/micromark/dev/stream.d.ts +35 -0
  2245. package/dist/node_modules/micromark/dev/stream.d.ts.map +1 -0
  2246. package/dist/node_modules/micromark/dev/stream.js +270 -0
  2247. package/dist/node_modules/micromark/index.d.ts +82 -0
  2248. package/dist/node_modules/micromark/index.d.ts.map +1 -0
  2249. package/dist/node_modules/micromark/index.js +60 -0
  2250. package/dist/node_modules/micromark/lib/compile.d.ts +16 -0
  2251. package/dist/node_modules/micromark/lib/compile.d.ts.map +1 -0
  2252. package/dist/node_modules/micromark/lib/compile.js +1068 -0
  2253. package/dist/node_modules/micromark/lib/constructs.d.ts +73 -0
  2254. package/dist/node_modules/micromark/lib/constructs.d.ts.map +1 -0
  2255. package/dist/node_modules/micromark/lib/constructs.js +85 -0
  2256. package/dist/node_modules/micromark/lib/create-tokenizer.d.ts +46 -0
  2257. package/dist/node_modules/micromark/lib/create-tokenizer.d.ts.map +1 -0
  2258. package/dist/node_modules/micromark/lib/create-tokenizer.js +613 -0
  2259. package/dist/node_modules/micromark/lib/initialize/content.d.ts +4 -0
  2260. package/dist/node_modules/micromark/lib/initialize/content.d.ts.map +1 -0
  2261. package/dist/node_modules/micromark/lib/initialize/content.js +79 -0
  2262. package/dist/node_modules/micromark/lib/initialize/document.d.ts +10 -0
  2263. package/dist/node_modules/micromark/lib/initialize/document.d.ts.map +1 -0
  2264. package/dist/node_modules/micromark/lib/initialize/document.js +370 -0
  2265. package/dist/node_modules/micromark/lib/initialize/flow.d.ts +4 -0
  2266. package/dist/node_modules/micromark/lib/initialize/flow.d.ts.map +1 -0
  2267. package/dist/node_modules/micromark/lib/initialize/flow.js +58 -0
  2268. package/dist/node_modules/micromark/lib/initialize/text.d.ts +8 -0
  2269. package/dist/node_modules/micromark/lib/initialize/text.d.ts.map +1 -0
  2270. package/dist/node_modules/micromark/lib/initialize/text.js +216 -0
  2271. package/dist/node_modules/micromark/lib/parse.d.ts +10 -0
  2272. package/dist/node_modules/micromark/lib/parse.d.ts.map +1 -0
  2273. package/dist/node_modules/micromark/lib/parse.js +56 -0
  2274. package/dist/node_modules/micromark/lib/postprocess.d.ts +9 -0
  2275. package/dist/node_modules/micromark/lib/postprocess.d.ts.map +1 -0
  2276. package/dist/node_modules/micromark/lib/postprocess.js +18 -0
  2277. package/dist/node_modules/micromark/lib/preprocess.d.ts +13 -0
  2278. package/dist/node_modules/micromark/lib/preprocess.d.ts.map +1 -0
  2279. package/dist/node_modules/micromark/lib/preprocess.js +112 -0
  2280. package/dist/node_modules/micromark/license +22 -0
  2281. package/dist/node_modules/micromark/package.json +87 -0
  2282. package/dist/node_modules/micromark/readme.md +488 -0
  2283. package/dist/node_modules/micromark/stream.d.ts +35 -0
  2284. package/dist/node_modules/micromark/stream.d.ts.map +1 -0
  2285. package/dist/node_modules/micromark/stream.js +256 -0
  2286. package/dist/node_modules/micromark-core-commonmark/dev/index.d.ts +23 -0
  2287. package/dist/node_modules/micromark-core-commonmark/dev/index.d.ts.map +1 -0
  2288. package/dist/node_modules/micromark-core-commonmark/dev/index.js +22 -0
  2289. package/dist/node_modules/micromark-core-commonmark/dev/lib/attention.d.ts +4 -0
  2290. package/dist/node_modules/micromark-core-commonmark/dev/lib/attention.d.ts.map +1 -0
  2291. package/dist/node_modules/micromark-core-commonmark/dev/lib/attention.js +294 -0
  2292. package/dist/node_modules/micromark-core-commonmark/dev/lib/autolink.d.ts +4 -0
  2293. package/dist/node_modules/micromark-core-commonmark/dev/lib/autolink.d.ts.map +1 -0
  2294. package/dist/node_modules/micromark-core-commonmark/dev/lib/autolink.js +269 -0
  2295. package/dist/node_modules/micromark-core-commonmark/dev/lib/blank-line.d.ts +4 -0
  2296. package/dist/node_modules/micromark-core-commonmark/dev/lib/blank-line.d.ts.map +1 -0
  2297. package/dist/node_modules/micromark-core-commonmark/dev/lib/blank-line.js +62 -0
  2298. package/dist/node_modules/micromark-core-commonmark/dev/lib/block-quote.d.ts +4 -0
  2299. package/dist/node_modules/micromark-core-commonmark/dev/lib/block-quote.d.ts.map +1 -0
  2300. package/dist/node_modules/micromark-core-commonmark/dev/lib/block-quote.js +162 -0
  2301. package/dist/node_modules/micromark-core-commonmark/dev/lib/character-escape.d.ts +4 -0
  2302. package/dist/node_modules/micromark-core-commonmark/dev/lib/character-escape.d.ts.map +1 -0
  2303. package/dist/node_modules/micromark-core-commonmark/dev/lib/character-escape.js +69 -0
  2304. package/dist/node_modules/micromark-core-commonmark/dev/lib/character-reference.d.ts +4 -0
  2305. package/dist/node_modules/micromark-core-commonmark/dev/lib/character-reference.d.ts.map +1 -0
  2306. package/dist/node_modules/micromark-core-commonmark/dev/lib/character-reference.js +166 -0
  2307. package/dist/node_modules/micromark-core-commonmark/dev/lib/code-fenced.d.ts +4 -0
  2308. package/dist/node_modules/micromark-core-commonmark/dev/lib/code-fenced.d.ts.map +1 -0
  2309. package/dist/node_modules/micromark-core-commonmark/dev/lib/code-fenced.js +472 -0
  2310. package/dist/node_modules/micromark-core-commonmark/dev/lib/code-indented.d.ts +4 -0
  2311. package/dist/node_modules/micromark-core-commonmark/dev/lib/code-indented.d.ts.map +1 -0
  2312. package/dist/node_modules/micromark-core-commonmark/dev/lib/code-indented.js +178 -0
  2313. package/dist/node_modules/micromark-core-commonmark/dev/lib/code-text.d.ts +4 -0
  2314. package/dist/node_modules/micromark-core-commonmark/dev/lib/code-text.d.ts.map +1 -0
  2315. package/dist/node_modules/micromark-core-commonmark/dev/lib/code-text.js +257 -0
  2316. package/dist/node_modules/micromark-core-commonmark/dev/lib/content.d.ts +7 -0
  2317. package/dist/node_modules/micromark-core-commonmark/dev/lib/content.d.ts.map +1 -0
  2318. package/dist/node_modules/micromark-core-commonmark/dev/lib/content.js +185 -0
  2319. package/dist/node_modules/micromark-core-commonmark/dev/lib/definition.d.ts +4 -0
  2320. package/dist/node_modules/micromark-core-commonmark/dev/lib/definition.d.ts.map +1 -0
  2321. package/dist/node_modules/micromark-core-commonmark/dev/lib/definition.js +295 -0
  2322. package/dist/node_modules/micromark-core-commonmark/dev/lib/hard-break-escape.d.ts +4 -0
  2323. package/dist/node_modules/micromark-core-commonmark/dev/lib/hard-break-escape.d.ts.map +1 -0
  2324. package/dist/node_modules/micromark-core-commonmark/dev/lib/hard-break-escape.js +65 -0
  2325. package/dist/node_modules/micromark-core-commonmark/dev/lib/heading-atx.d.ts +4 -0
  2326. package/dist/node_modules/micromark-core-commonmark/dev/lib/heading-atx.d.ts.map +1 -0
  2327. package/dist/node_modules/micromark-core-commonmark/dev/lib/heading-atx.js +229 -0
  2328. package/dist/node_modules/micromark-core-commonmark/dev/lib/html-flow.d.ts +4 -0
  2329. package/dist/node_modules/micromark-core-commonmark/dev/lib/html-flow.d.ts.map +1 -0
  2330. package/dist/node_modules/micromark-core-commonmark/dev/lib/html-flow.js +938 -0
  2331. package/dist/node_modules/micromark-core-commonmark/dev/lib/html-text.d.ts +4 -0
  2332. package/dist/node_modules/micromark-core-commonmark/dev/lib/html-text.d.ts.map +1 -0
  2333. package/dist/node_modules/micromark-core-commonmark/dev/lib/html-text.js +783 -0
  2334. package/dist/node_modules/micromark-core-commonmark/dev/lib/label-end.d.ts +4 -0
  2335. package/dist/node_modules/micromark-core-commonmark/dev/lib/label-end.d.ts.map +1 -0
  2336. package/dist/node_modules/micromark-core-commonmark/dev/lib/label-end.js +658 -0
  2337. package/dist/node_modules/micromark-core-commonmark/dev/lib/label-start-image.d.ts +4 -0
  2338. package/dist/node_modules/micromark-core-commonmark/dev/lib/label-start-image.d.ts.map +1 -0
  2339. package/dist/node_modules/micromark-core-commonmark/dev/lib/label-start-image.js +119 -0
  2340. package/dist/node_modules/micromark-core-commonmark/dev/lib/label-start-link.d.ts +4 -0
  2341. package/dist/node_modules/micromark-core-commonmark/dev/lib/label-start-link.d.ts.map +1 -0
  2342. package/dist/node_modules/micromark-core-commonmark/dev/lib/label-start-link.js +71 -0
  2343. package/dist/node_modules/micromark-core-commonmark/dev/lib/line-ending.d.ts +4 -0
  2344. package/dist/node_modules/micromark-core-commonmark/dev/lib/line-ending.d.ts.map +1 -0
  2345. package/dist/node_modules/micromark-core-commonmark/dev/lib/line-ending.js +34 -0
  2346. package/dist/node_modules/micromark-core-commonmark/dev/lib/list.d.ts +4 -0
  2347. package/dist/node_modules/micromark-core-commonmark/dev/lib/list.d.ts.map +1 -0
  2348. package/dist/node_modules/micromark-core-commonmark/dev/lib/list.js +306 -0
  2349. package/dist/node_modules/micromark-core-commonmark/dev/lib/partial-non-lazy-continuation.d.ts +4 -0
  2350. package/dist/node_modules/micromark-core-commonmark/dev/lib/partial-non-lazy-continuation.d.ts.map +1 -0
  2351. package/dist/node_modules/micromark-core-commonmark/dev/lib/partial-non-lazy-continuation.js +67 -0
  2352. package/dist/node_modules/micromark-core-commonmark/dev/lib/setext-underline.d.ts +4 -0
  2353. package/dist/node_modules/micromark-core-commonmark/dev/lib/setext-underline.d.ts.map +1 -0
  2354. package/dist/node_modules/micromark-core-commonmark/dev/lib/setext-underline.js +213 -0
  2355. package/dist/node_modules/micromark-core-commonmark/dev/lib/thematic-break.d.ts +4 -0
  2356. package/dist/node_modules/micromark-core-commonmark/dev/lib/thematic-break.d.ts.map +1 -0
  2357. package/dist/node_modules/micromark-core-commonmark/dev/lib/thematic-break.js +120 -0
  2358. package/dist/node_modules/micromark-core-commonmark/index.d.ts +23 -0
  2359. package/dist/node_modules/micromark-core-commonmark/index.d.ts.map +1 -0
  2360. package/dist/node_modules/micromark-core-commonmark/index.js +22 -0
  2361. package/dist/node_modules/micromark-core-commonmark/lib/attention.d.ts +4 -0
  2362. package/dist/node_modules/micromark-core-commonmark/lib/attention.d.ts.map +1 -0
  2363. package/dist/node_modules/micromark-core-commonmark/lib/attention.js +231 -0
  2364. package/dist/node_modules/micromark-core-commonmark/lib/autolink.d.ts +4 -0
  2365. package/dist/node_modules/micromark-core-commonmark/lib/autolink.d.ts.map +1 -0
  2366. package/dist/node_modules/micromark-core-commonmark/lib/autolink.js +233 -0
  2367. package/dist/node_modules/micromark-core-commonmark/lib/blank-line.d.ts +4 -0
  2368. package/dist/node_modules/micromark-core-commonmark/lib/blank-line.d.ts.map +1 -0
  2369. package/dist/node_modules/micromark-core-commonmark/lib/blank-line.js +61 -0
  2370. package/dist/node_modules/micromark-core-commonmark/lib/block-quote.d.ts +4 -0
  2371. package/dist/node_modules/micromark-core-commonmark/lib/block-quote.d.ts.map +1 -0
  2372. package/dist/node_modules/micromark-core-commonmark/lib/block-quote.js +143 -0
  2373. package/dist/node_modules/micromark-core-commonmark/lib/character-escape.d.ts +4 -0
  2374. package/dist/node_modules/micromark-core-commonmark/lib/character-escape.d.ts.map +1 -0
  2375. package/dist/node_modules/micromark-core-commonmark/lib/character-escape.js +64 -0
  2376. package/dist/node_modules/micromark-core-commonmark/lib/character-reference.d.ts +4 -0
  2377. package/dist/node_modules/micromark-core-commonmark/lib/character-reference.d.ts.map +1 -0
  2378. package/dist/node_modules/micromark-core-commonmark/lib/character-reference.js +149 -0
  2379. package/dist/node_modules/micromark-core-commonmark/lib/code-fenced.d.ts +4 -0
  2380. package/dist/node_modules/micromark-core-commonmark/lib/code-fenced.d.ts.map +1 -0
  2381. package/dist/node_modules/micromark-core-commonmark/lib/code-fenced.js +422 -0
  2382. package/dist/node_modules/micromark-core-commonmark/lib/code-indented.d.ts +4 -0
  2383. package/dist/node_modules/micromark-core-commonmark/lib/code-indented.d.ts.map +1 -0
  2384. package/dist/node_modules/micromark-core-commonmark/lib/code-indented.js +159 -0
  2385. package/dist/node_modules/micromark-core-commonmark/lib/code-text.d.ts +4 -0
  2386. package/dist/node_modules/micromark-core-commonmark/lib/code-text.d.ts.map +1 -0
  2387. package/dist/node_modules/micromark-core-commonmark/lib/code-text.js +225 -0
  2388. package/dist/node_modules/micromark-core-commonmark/lib/content.d.ts +7 -0
  2389. package/dist/node_modules/micromark-core-commonmark/lib/content.d.ts.map +1 -0
  2390. package/dist/node_modules/micromark-core-commonmark/lib/content.js +163 -0
  2391. package/dist/node_modules/micromark-core-commonmark/lib/definition.d.ts +4 -0
  2392. package/dist/node_modules/micromark-core-commonmark/lib/definition.d.ts.map +1 -0
  2393. package/dist/node_modules/micromark-core-commonmark/lib/definition.js +254 -0
  2394. package/dist/node_modules/micromark-core-commonmark/lib/hard-break-escape.d.ts +4 -0
  2395. package/dist/node_modules/micromark-core-commonmark/lib/hard-break-escape.d.ts.map +1 -0
  2396. package/dist/node_modules/micromark-core-commonmark/lib/hard-break-escape.js +60 -0
  2397. package/dist/node_modules/micromark-core-commonmark/lib/heading-atx.d.ts +4 -0
  2398. package/dist/node_modules/micromark-core-commonmark/lib/heading-atx.d.ts.map +1 -0
  2399. package/dist/node_modules/micromark-core-commonmark/lib/heading-atx.js +191 -0
  2400. package/dist/node_modules/micromark-core-commonmark/lib/html-flow.d.ts +4 -0
  2401. package/dist/node_modules/micromark-core-commonmark/lib/html-flow.d.ts.map +1 -0
  2402. package/dist/node_modules/micromark-core-commonmark/lib/html-flow.js +827 -0
  2403. package/dist/node_modules/micromark-core-commonmark/lib/html-text.d.ts +4 -0
  2404. package/dist/node_modules/micromark-core-commonmark/lib/html-text.d.ts.map +1 -0
  2405. package/dist/node_modules/micromark-core-commonmark/lib/html-text.js +678 -0
  2406. package/dist/node_modules/micromark-core-commonmark/lib/label-end.d.ts +4 -0
  2407. package/dist/node_modules/micromark-core-commonmark/lib/label-end.d.ts.map +1 -0
  2408. package/dist/node_modules/micromark-core-commonmark/lib/label-end.js +561 -0
  2409. package/dist/node_modules/micromark-core-commonmark/lib/label-start-image.d.ts +4 -0
  2410. package/dist/node_modules/micromark-core-commonmark/lib/label-start-image.d.ts.map +1 -0
  2411. package/dist/node_modules/micromark-core-commonmark/lib/label-start-image.js +110 -0
  2412. package/dist/node_modules/micromark-core-commonmark/lib/label-start-link.d.ts +4 -0
  2413. package/dist/node_modules/micromark-core-commonmark/lib/label-start-link.d.ts.map +1 -0
  2414. package/dist/node_modules/micromark-core-commonmark/lib/label-start-link.js +63 -0
  2415. package/dist/node_modules/micromark-core-commonmark/lib/line-ending.d.ts +4 -0
  2416. package/dist/node_modules/micromark-core-commonmark/lib/line-ending.d.ts.map +1 -0
  2417. package/dist/node_modules/micromark-core-commonmark/lib/line-ending.js +33 -0
  2418. package/dist/node_modules/micromark-core-commonmark/lib/list.d.ts +4 -0
  2419. package/dist/node_modules/micromark-core-commonmark/lib/list.d.ts.map +1 -0
  2420. package/dist/node_modules/micromark-core-commonmark/lib/list.js +213 -0
  2421. package/dist/node_modules/micromark-core-commonmark/lib/partial-non-lazy-continuation.d.ts +4 -0
  2422. package/dist/node_modules/micromark-core-commonmark/lib/partial-non-lazy-continuation.d.ts.map +1 -0
  2423. package/dist/node_modules/micromark-core-commonmark/lib/partial-non-lazy-continuation.js +61 -0
  2424. package/dist/node_modules/micromark-core-commonmark/lib/setext-underline.d.ts +4 -0
  2425. package/dist/node_modules/micromark-core-commonmark/lib/setext-underline.d.ts.map +1 -0
  2426. package/dist/node_modules/micromark-core-commonmark/lib/setext-underline.js +187 -0
  2427. package/dist/node_modules/micromark-core-commonmark/lib/thematic-break.d.ts +4 -0
  2428. package/dist/node_modules/micromark-core-commonmark/lib/thematic-break.d.ts.map +1 -0
  2429. package/dist/node_modules/micromark-core-commonmark/lib/thematic-break.js +102 -0
  2430. package/dist/node_modules/micromark-core-commonmark/license +22 -0
  2431. package/dist/node_modules/micromark-core-commonmark/package.json +62 -0
  2432. package/dist/node_modules/micromark-core-commonmark/readme.md +171 -0
  2433. package/dist/node_modules/micromark-extension-gfm/index.d.ts +28 -0
  2434. package/dist/node_modules/micromark-extension-gfm/index.js +69 -0
  2435. package/dist/node_modules/micromark-extension-gfm/license +22 -0
  2436. package/dist/node_modules/micromark-extension-gfm/package.json +107 -0
  2437. package/dist/node_modules/micromark-extension-gfm/readme.md +433 -0
  2438. package/dist/node_modules/micromark-extension-gfm-autolink-literal/dev/index.d.ts +24 -0
  2439. package/dist/node_modules/micromark-extension-gfm-autolink-literal/dev/index.js +2 -0
  2440. package/dist/node_modules/micromark-extension-gfm-autolink-literal/dev/lib/html.d.ts +10 -0
  2441. package/dist/node_modules/micromark-extension-gfm-autolink-literal/dev/lib/html.js +56 -0
  2442. package/dist/node_modules/micromark-extension-gfm-autolink-literal/dev/lib/syntax.d.ts +10 -0
  2443. package/dist/node_modules/micromark-extension-gfm-autolink-literal/dev/lib/syntax.js +983 -0
  2444. package/dist/node_modules/micromark-extension-gfm-autolink-literal/index.d.ts +24 -0
  2445. package/dist/node_modules/micromark-extension-gfm-autolink-literal/index.js +2 -0
  2446. package/dist/node_modules/micromark-extension-gfm-autolink-literal/lib/html.d.ts +10 -0
  2447. package/dist/node_modules/micromark-extension-gfm-autolink-literal/lib/html.js +60 -0
  2448. package/dist/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.d.ts +10 -0
  2449. package/dist/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.js +854 -0
  2450. package/dist/node_modules/micromark-extension-gfm-autolink-literal/license +22 -0
  2451. package/dist/node_modules/micromark-extension-gfm-autolink-literal/package.json +116 -0
  2452. package/dist/node_modules/micromark-extension-gfm-autolink-literal/readme.md +422 -0
  2453. package/dist/node_modules/micromark-extension-gfm-footnote/dev/index.d.ts +164 -0
  2454. package/dist/node_modules/micromark-extension-gfm-footnote/dev/index.js +3 -0
  2455. package/dist/node_modules/micromark-extension-gfm-footnote/dev/lib/html.d.ts +25 -0
  2456. package/dist/node_modules/micromark-extension-gfm-footnote/dev/lib/html.js +226 -0
  2457. package/dist/node_modules/micromark-extension-gfm-footnote/dev/lib/syntax.d.ts +9 -0
  2458. package/dist/node_modules/micromark-extension-gfm-footnote/dev/lib/syntax.js +558 -0
  2459. package/dist/node_modules/micromark-extension-gfm-footnote/index.d.ts +164 -0
  2460. package/dist/node_modules/micromark-extension-gfm-footnote/index.js +3 -0
  2461. package/dist/node_modules/micromark-extension-gfm-footnote/lib/html.d.ts +25 -0
  2462. package/dist/node_modules/micromark-extension-gfm-footnote/lib/html.js +154 -0
  2463. package/dist/node_modules/micromark-extension-gfm-footnote/lib/syntax.d.ts +9 -0
  2464. package/dist/node_modules/micromark-extension-gfm-footnote/lib/syntax.js +485 -0
  2465. package/dist/node_modules/micromark-extension-gfm-footnote/license +22 -0
  2466. package/dist/node_modules/micromark-extension-gfm-footnote/package.json +132 -0
  2467. package/dist/node_modules/micromark-extension-gfm-footnote/readme.md +656 -0
  2468. package/dist/node_modules/micromark-extension-gfm-strikethrough/dev/index.d.ts +30 -0
  2469. package/dist/node_modules/micromark-extension-gfm-strikethrough/dev/index.js +3 -0
  2470. package/dist/node_modules/micromark-extension-gfm-strikethrough/dev/lib/html.d.ts +13 -0
  2471. package/dist/node_modules/micromark-extension-gfm-strikethrough/dev/lib/html.js +26 -0
  2472. package/dist/node_modules/micromark-extension-gfm-strikethrough/dev/lib/syntax.d.ts +12 -0
  2473. package/dist/node_modules/micromark-extension-gfm-strikethrough/dev/lib/syntax.js +183 -0
  2474. package/dist/node_modules/micromark-extension-gfm-strikethrough/index.d.ts +24 -0
  2475. package/dist/node_modules/micromark-extension-gfm-strikethrough/index.js +3 -0
  2476. package/dist/node_modules/micromark-extension-gfm-strikethrough/lib/html.d.ts +13 -0
  2477. package/dist/node_modules/micromark-extension-gfm-strikethrough/lib/html.js +26 -0
  2478. package/dist/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.d.ts +12 -0
  2479. package/dist/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.js +142 -0
  2480. package/dist/node_modules/micromark-extension-gfm-strikethrough/license +22 -0
  2481. package/dist/node_modules/micromark-extension-gfm-strikethrough/package.json +129 -0
  2482. package/dist/node_modules/micromark-extension-gfm-strikethrough/readme.md +304 -0
  2483. package/dist/node_modules/micromark-extension-gfm-table/dev/index.d.ts +55 -0
  2484. package/dist/node_modules/micromark-extension-gfm-table/dev/index.js +2 -0
  2485. package/dist/node_modules/micromark-extension-gfm-table/dev/lib/edit-map.d.ts +51 -0
  2486. package/dist/node_modules/micromark-extension-gfm-table/dev/lib/edit-map.d.ts.map +1 -0
  2487. package/dist/node_modules/micromark-extension-gfm-table/dev/lib/edit-map.js +231 -0
  2488. package/dist/node_modules/micromark-extension-gfm-table/dev/lib/html.d.ts +11 -0
  2489. package/dist/node_modules/micromark-extension-gfm-table/dev/lib/html.d.ts.map +1 -0
  2490. package/dist/node_modules/micromark-extension-gfm-table/dev/lib/html.js +153 -0
  2491. package/dist/node_modules/micromark-extension-gfm-table/dev/lib/infer.d.ts +14 -0
  2492. package/dist/node_modules/micromark-extension-gfm-table/dev/lib/infer.d.ts.map +1 -0
  2493. package/dist/node_modules/micromark-extension-gfm-table/dev/lib/infer.js +64 -0
  2494. package/dist/node_modules/micromark-extension-gfm-table/dev/lib/syntax.d.ts +18 -0
  2495. package/dist/node_modules/micromark-extension-gfm-table/dev/lib/syntax.d.ts.map +1 -0
  2496. package/dist/node_modules/micromark-extension-gfm-table/dev/lib/syntax.js +964 -0
  2497. package/dist/node_modules/micromark-extension-gfm-table/index.d.ts +55 -0
  2498. package/dist/node_modules/micromark-extension-gfm-table/index.js +2 -0
  2499. package/dist/node_modules/micromark-extension-gfm-table/lib/edit-map.d.ts +51 -0
  2500. package/dist/node_modules/micromark-extension-gfm-table/lib/edit-map.d.ts.map +1 -0
  2501. package/dist/node_modules/micromark-extension-gfm-table/lib/edit-map.js +222 -0
  2502. package/dist/node_modules/micromark-extension-gfm-table/lib/html.d.ts +11 -0
  2503. package/dist/node_modules/micromark-extension-gfm-table/lib/html.d.ts.map +1 -0
  2504. package/dist/node_modules/micromark-extension-gfm-table/lib/html.js +135 -0
  2505. package/dist/node_modules/micromark-extension-gfm-table/lib/infer.d.ts +14 -0
  2506. package/dist/node_modules/micromark-extension-gfm-table/lib/infer.d.ts.map +1 -0
  2507. package/dist/node_modules/micromark-extension-gfm-table/lib/infer.js +52 -0
  2508. package/dist/node_modules/micromark-extension-gfm-table/lib/syntax.d.ts +18 -0
  2509. package/dist/node_modules/micromark-extension-gfm-table/lib/syntax.d.ts.map +1 -0
  2510. package/dist/node_modules/micromark-extension-gfm-table/lib/syntax.js +846 -0
  2511. package/dist/node_modules/micromark-extension-gfm-table/license +22 -0
  2512. package/dist/node_modules/micromark-extension-gfm-table/package.json +86 -0
  2513. package/dist/node_modules/micromark-extension-gfm-table/readme.md +515 -0
  2514. package/dist/node_modules/micromark-extension-gfm-tagfilter/index.d.ts +1 -0
  2515. package/dist/node_modules/micromark-extension-gfm-tagfilter/index.js +1 -0
  2516. package/dist/node_modules/micromark-extension-gfm-tagfilter/lib/index.d.ts +12 -0
  2517. package/dist/node_modules/micromark-extension-gfm-tagfilter/lib/index.js +51 -0
  2518. package/dist/node_modules/micromark-extension-gfm-tagfilter/license +22 -0
  2519. package/dist/node_modules/micromark-extension-gfm-tagfilter/package.json +82 -0
  2520. package/dist/node_modules/micromark-extension-gfm-tagfilter/readme.md +237 -0
  2521. package/dist/node_modules/micromark-extension-gfm-task-list-item/dev/index.d.ts +17 -0
  2522. package/dist/node_modules/micromark-extension-gfm-task-list-item/dev/index.js +2 -0
  2523. package/dist/node_modules/micromark-extension-gfm-task-list-item/dev/lib/html.d.ts +13 -0
  2524. package/dist/node_modules/micromark-extension-gfm-task-list-item/dev/lib/html.js +29 -0
  2525. package/dist/node_modules/micromark-extension-gfm-task-list-item/dev/lib/syntax.d.ts +10 -0
  2526. package/dist/node_modules/micromark-extension-gfm-task-list-item/dev/lib/syntax.js +166 -0
  2527. package/dist/node_modules/micromark-extension-gfm-task-list-item/index.d.ts +17 -0
  2528. package/dist/node_modules/micromark-extension-gfm-task-list-item/index.js +2 -0
  2529. package/dist/node_modules/micromark-extension-gfm-task-list-item/lib/html.d.ts +13 -0
  2530. package/dist/node_modules/micromark-extension-gfm-task-list-item/lib/html.js +29 -0
  2531. package/dist/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.d.ts +10 -0
  2532. package/dist/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.js +158 -0
  2533. package/dist/node_modules/micromark-extension-gfm-task-list-item/license +22 -0
  2534. package/dist/node_modules/micromark-extension-gfm-task-list-item/package.json +131 -0
  2535. package/dist/node_modules/micromark-extension-gfm-task-list-item/readme.md +305 -0
  2536. package/dist/node_modules/micromark-factory-destination/dev/index.d.ts +42 -0
  2537. package/dist/node_modules/micromark-factory-destination/dev/index.d.ts.map +1 -0
  2538. package/dist/node_modules/micromark-factory-destination/dev/index.js +255 -0
  2539. package/dist/node_modules/micromark-factory-destination/index.d.ts +42 -0
  2540. package/dist/node_modules/micromark-factory-destination/index.d.ts.map +1 -0
  2541. package/dist/node_modules/micromark-factory-destination/index.js +206 -0
  2542. package/dist/node_modules/micromark-factory-destination/license +22 -0
  2543. package/dist/node_modules/micromark-factory-destination/package.json +57 -0
  2544. package/dist/node_modules/micromark-factory-destination/readme.md +234 -0
  2545. package/dist/node_modules/micromark-factory-label/dev/index.d.ts +37 -0
  2546. package/dist/node_modules/micromark-factory-label/dev/index.d.ts.map +1 -0
  2547. package/dist/node_modules/micromark-factory-label/dev/index.js +172 -0
  2548. package/dist/node_modules/micromark-factory-label/index.d.ts +37 -0
  2549. package/dist/node_modules/micromark-factory-label/index.d.ts.map +1 -0
  2550. package/dist/node_modules/micromark-factory-label/index.js +148 -0
  2551. package/dist/node_modules/micromark-factory-label/license +22 -0
  2552. package/dist/node_modules/micromark-factory-label/package.json +60 -0
  2553. package/dist/node_modules/micromark-factory-label/readme.md +224 -0
  2554. package/dist/node_modules/micromark-factory-space/dev/index.d.ts +60 -0
  2555. package/dist/node_modules/micromark-factory-space/dev/index.d.ts.map +1 -0
  2556. package/dist/node_modules/micromark-factory-space/dev/index.js +122 -0
  2557. package/dist/node_modules/micromark-factory-space/index.d.ts +60 -0
  2558. package/dist/node_modules/micromark-factory-space/index.d.ts.map +1 -0
  2559. package/dist/node_modules/micromark-factory-space/index.js +116 -0
  2560. package/dist/node_modules/micromark-factory-space/license +22 -0
  2561. package/dist/node_modules/micromark-factory-space/package.json +46 -0
  2562. package/dist/node_modules/micromark-factory-space/readme.md +225 -0
  2563. package/dist/node_modules/micromark-factory-title/dev/index.d.ts +36 -0
  2564. package/dist/node_modules/micromark-factory-title/dev/index.d.ts.map +1 -0
  2565. package/dist/node_modules/micromark-factory-title/dev/index.js +169 -0
  2566. package/dist/node_modules/micromark-factory-title/index.d.ts +36 -0
  2567. package/dist/node_modules/micromark-factory-title/index.d.ts.map +1 -0
  2568. package/dist/node_modules/micromark-factory-title/index.js +158 -0
  2569. package/dist/node_modules/micromark-factory-title/license +22 -0
  2570. package/dist/node_modules/micromark-factory-title/package.json +58 -0
  2571. package/dist/node_modules/micromark-factory-title/readme.md +229 -0
  2572. package/dist/node_modules/micromark-factory-whitespace/dev/index.d.ts +22 -0
  2573. package/dist/node_modules/micromark-factory-whitespace/dev/index.d.ts.map +1 -0
  2574. package/dist/node_modules/micromark-factory-whitespace/dev/index.js +53 -0
  2575. package/dist/node_modules/micromark-factory-whitespace/index.d.ts +22 -0
  2576. package/dist/node_modules/micromark-factory-whitespace/index.d.ts.map +1 -0
  2577. package/dist/node_modules/micromark-factory-whitespace/index.js +44 -0
  2578. package/dist/node_modules/micromark-factory-whitespace/license +22 -0
  2579. package/dist/node_modules/micromark-factory-whitespace/package.json +57 -0
  2580. package/dist/node_modules/micromark-factory-whitespace/readme.md +205 -0
  2581. package/dist/node_modules/micromark-util-character/dev/index.d.ts +195 -0
  2582. package/dist/node_modules/micromark-util-character/dev/index.d.ts.map +1 -0
  2583. package/dist/node_modules/micromark-util-character/dev/index.js +252 -0
  2584. package/dist/node_modules/micromark-util-character/index.d.ts +195 -0
  2585. package/dist/node_modules/micromark-util-character/index.d.ts.map +1 -0
  2586. package/dist/node_modules/micromark-util-character/index.js +246 -0
  2587. package/dist/node_modules/micromark-util-character/license +22 -0
  2588. package/dist/node_modules/micromark-util-character/package.json +57 -0
  2589. package/dist/node_modules/micromark-util-character/readme.md +446 -0
  2590. package/dist/node_modules/micromark-util-chunked/dev/index.d.ts +41 -0
  2591. package/dist/node_modules/micromark-util-chunked/dev/index.d.ts.map +1 -0
  2592. package/dist/node_modules/micromark-util-chunked/dev/index.js +89 -0
  2593. package/dist/node_modules/micromark-util-chunked/index.d.ts +41 -0
  2594. package/dist/node_modules/micromark-util-chunked/index.d.ts.map +1 -0
  2595. package/dist/node_modules/micromark-util-chunked/index.js +81 -0
  2596. package/dist/node_modules/micromark-util-chunked/license +22 -0
  2597. package/dist/node_modules/micromark-util-chunked/package.json +57 -0
  2598. package/dist/node_modules/micromark-util-chunked/readme.md +219 -0
  2599. package/dist/node_modules/micromark-util-classify-character/dev/index.d.ts +18 -0
  2600. package/dist/node_modules/micromark-util-classify-character/dev/index.d.ts.map +1 -0
  2601. package/dist/node_modules/micromark-util-classify-character/dev/index.js +38 -0
  2602. package/dist/node_modules/micromark-util-classify-character/index.d.ts +18 -0
  2603. package/dist/node_modules/micromark-util-classify-character/index.d.ts.map +1 -0
  2604. package/dist/node_modules/micromark-util-classify-character/index.js +27 -0
  2605. package/dist/node_modules/micromark-util-classify-character/license +22 -0
  2606. package/dist/node_modules/micromark-util-classify-character/package.json +59 -0
  2607. package/dist/node_modules/micromark-util-classify-character/readme.md +205 -0
  2608. package/dist/node_modules/micromark-util-combine-extensions/index.d.ts +22 -0
  2609. package/dist/node_modules/micromark-util-combine-extensions/index.d.ts.map +1 -0
  2610. package/dist/node_modules/micromark-util-combine-extensions/index.js +143 -0
  2611. package/dist/node_modules/micromark-util-combine-extensions/license +22 -0
  2612. package/dist/node_modules/micromark-util-combine-extensions/package.json +52 -0
  2613. package/dist/node_modules/micromark-util-combine-extensions/readme.md +201 -0
  2614. package/dist/node_modules/micromark-util-decode-numeric-character-reference/dev/index.d.ts +16 -0
  2615. package/dist/node_modules/micromark-util-decode-numeric-character-reference/dev/index.d.ts.map +1 -0
  2616. package/dist/node_modules/micromark-util-decode-numeric-character-reference/dev/index.js +42 -0
  2617. package/dist/node_modules/micromark-util-decode-numeric-character-reference/index.d.ts +16 -0
  2618. package/dist/node_modules/micromark-util-decode-numeric-character-reference/index.d.ts.map +1 -0
  2619. package/dist/node_modules/micromark-util-decode-numeric-character-reference/index.js +32 -0
  2620. package/dist/node_modules/micromark-util-decode-numeric-character-reference/license +22 -0
  2621. package/dist/node_modules/micromark-util-decode-numeric-character-reference/package.json +59 -0
  2622. package/dist/node_modules/micromark-util-decode-numeric-character-reference/readme.md +184 -0
  2623. package/dist/node_modules/micromark-util-decode-string/dev/index.d.ts +14 -0
  2624. package/dist/node_modules/micromark-util-decode-string/dev/index.d.ts.map +1 -0
  2625. package/dist/node_modules/micromark-util-decode-string/dev/index.js +53 -0
  2626. package/dist/node_modules/micromark-util-decode-string/index.d.ts +14 -0
  2627. package/dist/node_modules/micromark-util-decode-string/index.d.ts.map +1 -0
  2628. package/dist/node_modules/micromark-util-decode-string/index.js +45 -0
  2629. package/dist/node_modules/micromark-util-decode-string/license +22 -0
  2630. package/dist/node_modules/micromark-util-decode-string/package.json +63 -0
  2631. package/dist/node_modules/micromark-util-decode-string/readme.md +179 -0
  2632. package/dist/node_modules/micromark-util-edit-map/dev/index.d.ts +78 -0
  2633. package/dist/node_modules/micromark-util-edit-map/dev/index.d.ts.map +1 -0
  2634. package/dist/node_modules/micromark-util-edit-map/dev/index.js +237 -0
  2635. package/dist/node_modules/micromark-util-edit-map/index.d.ts +78 -0
  2636. package/dist/node_modules/micromark-util-edit-map/index.d.ts.map +1 -0
  2637. package/dist/node_modules/micromark-util-edit-map/index.js +225 -0
  2638. package/dist/node_modules/micromark-util-edit-map/license +22 -0
  2639. package/dist/node_modules/micromark-util-edit-map/package.json +48 -0
  2640. package/dist/node_modules/micromark-util-edit-map/readme.md +234 -0
  2641. package/dist/node_modules/micromark-util-encode/index.d.ts +14 -0
  2642. package/dist/node_modules/micromark-util-encode/index.d.ts.map +1 -0
  2643. package/dist/node_modules/micromark-util-encode/index.js +33 -0
  2644. package/dist/node_modules/micromark-util-encode/license +22 -0
  2645. package/dist/node_modules/micromark-util-encode/package.json +47 -0
  2646. package/dist/node_modules/micromark-util-encode/readme.md +176 -0
  2647. package/dist/node_modules/micromark-util-html-tag-name/index.d.ts +30 -0
  2648. package/dist/node_modules/micromark-util-html-tag-name/index.d.ts.map +1 -0
  2649. package/dist/node_modules/micromark-util-html-tag-name/index.js +93 -0
  2650. package/dist/node_modules/micromark-util-html-tag-name/license +22 -0
  2651. package/dist/node_modules/micromark-util-html-tag-name/package.json +47 -0
  2652. package/dist/node_modules/micromark-util-html-tag-name/readme.md +193 -0
  2653. package/dist/node_modules/micromark-util-normalize-identifier/dev/index.d.ts +21 -0
  2654. package/dist/node_modules/micromark-util-normalize-identifier/dev/index.d.ts.map +1 -0
  2655. package/dist/node_modules/micromark-util-normalize-identifier/dev/index.js +38 -0
  2656. package/dist/node_modules/micromark-util-normalize-identifier/index.d.ts +21 -0
  2657. package/dist/node_modules/micromark-util-normalize-identifier/index.d.ts.map +1 -0
  2658. package/dist/node_modules/micromark-util-normalize-identifier/index.js +33 -0
  2659. package/dist/node_modules/micromark-util-normalize-identifier/license +22 -0
  2660. package/dist/node_modules/micromark-util-normalize-identifier/package.json +58 -0
  2661. package/dist/node_modules/micromark-util-normalize-identifier/readme.md +187 -0
  2662. package/dist/node_modules/micromark-util-resolve-all/index.d.ts +22 -0
  2663. package/dist/node_modules/micromark-util-resolve-all/index.d.ts.map +1 -0
  2664. package/dist/node_modules/micromark-util-resolve-all/index.js +32 -0
  2665. package/dist/node_modules/micromark-util-resolve-all/license +22 -0
  2666. package/dist/node_modules/micromark-util-resolve-all/package.json +48 -0
  2667. package/dist/node_modules/micromark-util-resolve-all/readme.md +238 -0
  2668. package/dist/node_modules/micromark-util-sanitize-uri/dev/index.d.ts +36 -0
  2669. package/dist/node_modules/micromark-util-sanitize-uri/dev/index.d.ts.map +1 -0
  2670. package/dist/node_modules/micromark-util-sanitize-uri/dev/index.js +124 -0
  2671. package/dist/node_modules/micromark-util-sanitize-uri/index.d.ts +36 -0
  2672. package/dist/node_modules/micromark-util-sanitize-uri/index.d.ts.map +1 -0
  2673. package/dist/node_modules/micromark-util-sanitize-uri/index.js +107 -0
  2674. package/dist/node_modules/micromark-util-sanitize-uri/license +22 -0
  2675. package/dist/node_modules/micromark-util-sanitize-uri/package.json +59 -0
  2676. package/dist/node_modules/micromark-util-sanitize-uri/readme.md +214 -0
  2677. package/dist/node_modules/micromark-util-subtokenize/dev/index.d.ts +12 -0
  2678. package/dist/node_modules/micromark-util-subtokenize/dev/index.d.ts.map +1 -0
  2679. package/dist/node_modules/micromark-util-subtokenize/dev/index.js +284 -0
  2680. package/dist/node_modules/micromark-util-subtokenize/dev/lib/splice-buffer.d.ts +161 -0
  2681. package/dist/node_modules/micromark-util-subtokenize/dev/lib/splice-buffer.d.ts.map +1 -0
  2682. package/dist/node_modules/micromark-util-subtokenize/dev/lib/splice-buffer.js +288 -0
  2683. package/dist/node_modules/micromark-util-subtokenize/index.d.ts +12 -0
  2684. package/dist/node_modules/micromark-util-subtokenize/index.d.ts.map +1 -0
  2685. package/dist/node_modules/micromark-util-subtokenize/index.js +228 -0
  2686. package/dist/node_modules/micromark-util-subtokenize/lib/splice-buffer.d.ts +161 -0
  2687. package/dist/node_modules/micromark-util-subtokenize/lib/splice-buffer.d.ts.map +1 -0
  2688. package/dist/node_modules/micromark-util-subtokenize/lib/splice-buffer.js +251 -0
  2689. package/dist/node_modules/micromark-util-subtokenize/license +22 -0
  2690. package/dist/node_modules/micromark-util-subtokenize/package.json +60 -0
  2691. package/dist/node_modules/micromark-util-subtokenize/readme.md +181 -0
  2692. package/dist/node_modules/micromark-util-symbol/lib/codes.d.ts +139 -0
  2693. package/dist/node_modules/micromark-util-symbol/lib/codes.d.ts.map +1 -0
  2694. package/dist/node_modules/micromark-util-symbol/lib/codes.js +158 -0
  2695. package/dist/node_modules/micromark-util-symbol/lib/constants.d.ts +37 -0
  2696. package/dist/node_modules/micromark-util-symbol/lib/constants.d.ts.map +1 -0
  2697. package/dist/node_modules/micromark-util-symbol/lib/constants.js +44 -0
  2698. package/dist/node_modules/micromark-util-symbol/lib/default.d.ts +5 -0
  2699. package/dist/node_modules/micromark-util-symbol/lib/default.d.ts.map +1 -0
  2700. package/dist/node_modules/micromark-util-symbol/lib/default.js +4 -0
  2701. package/dist/node_modules/micromark-util-symbol/lib/types.d.ts +106 -0
  2702. package/dist/node_modules/micromark-util-symbol/lib/types.d.ts.map +1 -0
  2703. package/dist/node_modules/micromark-util-symbol/lib/types.js +453 -0
  2704. package/dist/node_modules/micromark-util-symbol/lib/values.d.ts +102 -0
  2705. package/dist/node_modules/micromark-util-symbol/lib/values.d.ts.map +1 -0
  2706. package/dist/node_modules/micromark-util-symbol/lib/values.js +109 -0
  2707. package/dist/node_modules/micromark-util-symbol/license +22 -0
  2708. package/dist/node_modules/micromark-util-symbol/package.json +43 -0
  2709. package/dist/node_modules/micromark-util-symbol/readme.md +168 -0
  2710. package/dist/node_modules/micromark-util-types/index.d.ts +1315 -0
  2711. package/dist/node_modules/micromark-util-types/index.js +2 -0
  2712. package/dist/node_modules/micromark-util-types/license +22 -0
  2713. package/dist/node_modules/micromark-util-types/package.json +37 -0
  2714. package/dist/node_modules/micromark-util-types/readme.md +151 -0
  2715. package/dist/node_modules/ms/index.js +162 -0
  2716. package/dist/node_modules/ms/license.md +21 -0
  2717. package/dist/node_modules/ms/package.json +38 -0
  2718. package/dist/node_modules/ms/readme.md +59 -0
  2719. package/dist/node_modules/node-forge/LICENSE +331 -0
  2720. package/dist/node_modules/node-forge/README.md +2075 -0
  2721. package/dist/node_modules/node-forge/dist/forge.all.min.js +2 -0
  2722. package/dist/node_modules/node-forge/dist/forge.all.min.js.map +1 -0
  2723. package/dist/node_modules/node-forge/dist/forge.min.js +2 -0
  2724. package/dist/node_modules/node-forge/dist/forge.min.js.map +1 -0
  2725. package/dist/node_modules/node-forge/dist/prime.worker.min.js +2 -0
  2726. package/dist/node_modules/node-forge/dist/prime.worker.min.js.map +1 -0
  2727. package/dist/node_modules/node-forge/flash/swf/SocketPool.swf +0 -0
  2728. package/dist/node_modules/node-forge/lib/aes.js +1091 -0
  2729. package/dist/node_modules/node-forge/lib/aesCipherSuites.js +282 -0
  2730. package/dist/node_modules/node-forge/lib/asn1-validator.js +91 -0
  2731. package/dist/node_modules/node-forge/lib/asn1.js +1522 -0
  2732. package/dist/node_modules/node-forge/lib/baseN.js +186 -0
  2733. package/dist/node_modules/node-forge/lib/cipher.js +230 -0
  2734. package/dist/node_modules/node-forge/lib/cipherModes.js +1027 -0
  2735. package/dist/node_modules/node-forge/lib/des.js +496 -0
  2736. package/dist/node_modules/node-forge/lib/ed25519.js +1117 -0
  2737. package/dist/node_modules/node-forge/lib/forge.js +13 -0
  2738. package/dist/node_modules/node-forge/lib/form.js +149 -0
  2739. package/dist/node_modules/node-forge/lib/hmac.js +146 -0
  2740. package/dist/node_modules/node-forge/lib/http.js +1371 -0
  2741. package/dist/node_modules/node-forge/lib/index.all.js +16 -0
  2742. package/dist/node_modules/node-forge/lib/index.js +33 -0
  2743. package/dist/node_modules/node-forge/lib/jsbn.js +1294 -0
  2744. package/dist/node_modules/node-forge/lib/kem.js +168 -0
  2745. package/dist/node_modules/node-forge/lib/log.js +319 -0
  2746. package/dist/node_modules/node-forge/lib/md.all.js +13 -0
  2747. package/dist/node_modules/node-forge/lib/md.js +11 -0
  2748. package/dist/node_modules/node-forge/lib/md5.js +289 -0
  2749. package/dist/node_modules/node-forge/lib/mgf.js +12 -0
  2750. package/dist/node_modules/node-forge/lib/mgf1.js +57 -0
  2751. package/dist/node_modules/node-forge/lib/oids.js +180 -0
  2752. package/dist/node_modules/node-forge/lib/pbe.js +1029 -0
  2753. package/dist/node_modules/node-forge/lib/pbkdf2.js +211 -0
  2754. package/dist/node_modules/node-forge/lib/pem.js +413 -0
  2755. package/dist/node_modules/node-forge/lib/pkcs1.js +276 -0
  2756. package/dist/node_modules/node-forge/lib/pkcs12.js +1081 -0
  2757. package/dist/node_modules/node-forge/lib/pkcs7.js +1260 -0
  2758. package/dist/node_modules/node-forge/lib/pkcs7asn1.js +410 -0
  2759. package/dist/node_modules/node-forge/lib/pki.js +102 -0
  2760. package/dist/node_modules/node-forge/lib/prime.js +297 -0
  2761. package/dist/node_modules/node-forge/lib/prime.worker.js +168 -0
  2762. package/dist/node_modules/node-forge/lib/prng.js +419 -0
  2763. package/dist/node_modules/node-forge/lib/pss.js +241 -0
  2764. package/dist/node_modules/node-forge/lib/random.js +191 -0
  2765. package/dist/node_modules/node-forge/lib/rc2.js +410 -0
  2766. package/dist/node_modules/node-forge/lib/rsa.js +2014 -0
  2767. package/dist/node_modules/node-forge/lib/sha1.js +319 -0
  2768. package/dist/node_modules/node-forge/lib/sha256.js +327 -0
  2769. package/dist/node_modules/node-forge/lib/sha512.js +561 -0
  2770. package/dist/node_modules/node-forge/lib/socket.js +287 -0
  2771. package/dist/node_modules/node-forge/lib/ssh.js +236 -0
  2772. package/dist/node_modules/node-forge/lib/tls.js +4347 -0
  2773. package/dist/node_modules/node-forge/lib/tlssocket.js +249 -0
  2774. package/dist/node_modules/node-forge/lib/util.js +2652 -0
  2775. package/dist/node_modules/node-forge/lib/x509.js +3946 -0
  2776. package/dist/node_modules/node-forge/lib/xhr.js +738 -0
  2777. package/dist/node_modules/node-forge/package.json +123 -0
  2778. package/dist/node_modules/saxes/README.md +323 -0
  2779. package/dist/node_modules/saxes/package.json +71 -0
  2780. package/dist/node_modules/saxes/saxes.d.ts +635 -0
  2781. package/dist/node_modules/saxes/saxes.js +2053 -0
  2782. package/dist/node_modules/saxes/saxes.js.map +1 -0
  2783. package/dist/node_modules/semver/LICENSE +15 -0
  2784. package/dist/node_modules/semver/README.md +680 -0
  2785. package/dist/node_modules/semver/bin/semver.js +195 -0
  2786. package/dist/node_modules/semver/classes/comparator.js +143 -0
  2787. package/dist/node_modules/semver/classes/index.js +7 -0
  2788. package/dist/node_modules/semver/classes/range.js +577 -0
  2789. package/dist/node_modules/semver/classes/semver.js +350 -0
  2790. package/dist/node_modules/semver/functions/clean.js +8 -0
  2791. package/dist/node_modules/semver/functions/cmp.js +54 -0
  2792. package/dist/node_modules/semver/functions/coerce.js +62 -0
  2793. package/dist/node_modules/semver/functions/compare-build.js +9 -0
  2794. package/dist/node_modules/semver/functions/compare-loose.js +5 -0
  2795. package/dist/node_modules/semver/functions/compare.js +7 -0
  2796. package/dist/node_modules/semver/functions/diff.js +60 -0
  2797. package/dist/node_modules/semver/functions/eq.js +5 -0
  2798. package/dist/node_modules/semver/functions/gt.js +5 -0
  2799. package/dist/node_modules/semver/functions/gte.js +5 -0
  2800. package/dist/node_modules/semver/functions/inc.js +21 -0
  2801. package/dist/node_modules/semver/functions/lt.js +5 -0
  2802. package/dist/node_modules/semver/functions/lte.js +5 -0
  2803. package/dist/node_modules/semver/functions/major.js +5 -0
  2804. package/dist/node_modules/semver/functions/minor.js +5 -0
  2805. package/dist/node_modules/semver/functions/neq.js +5 -0
  2806. package/dist/node_modules/semver/functions/parse.js +18 -0
  2807. package/dist/node_modules/semver/functions/patch.js +5 -0
  2808. package/dist/node_modules/semver/functions/prerelease.js +8 -0
  2809. package/dist/node_modules/semver/functions/rcompare.js +5 -0
  2810. package/dist/node_modules/semver/functions/rsort.js +5 -0
  2811. package/dist/node_modules/semver/functions/satisfies.js +12 -0
  2812. package/dist/node_modules/semver/functions/sort.js +5 -0
  2813. package/dist/node_modules/semver/functions/truncate.js +48 -0
  2814. package/dist/node_modules/semver/functions/valid.js +8 -0
  2815. package/dist/node_modules/semver/index.js +93 -0
  2816. package/dist/node_modules/semver/internal/constants.js +37 -0
  2817. package/dist/node_modules/semver/internal/debug.js +11 -0
  2818. package/dist/node_modules/semver/internal/identifiers.js +29 -0
  2819. package/dist/node_modules/semver/internal/lrucache.js +42 -0
  2820. package/dist/node_modules/semver/internal/parse-options.js +17 -0
  2821. package/dist/node_modules/semver/internal/re.js +223 -0
  2822. package/dist/node_modules/semver/package.json +78 -0
  2823. package/dist/node_modules/semver/preload.js +4 -0
  2824. package/dist/node_modules/semver/range.bnf +17 -0
  2825. package/dist/node_modules/semver/ranges/gtr.js +6 -0
  2826. package/dist/node_modules/semver/ranges/intersects.js +9 -0
  2827. package/dist/node_modules/semver/ranges/ltr.js +6 -0
  2828. package/dist/node_modules/semver/ranges/max-satisfying.js +27 -0
  2829. package/dist/node_modules/semver/ranges/min-satisfying.js +26 -0
  2830. package/dist/node_modules/semver/ranges/min-version.js +63 -0
  2831. package/dist/node_modules/semver/ranges/outside.js +82 -0
  2832. package/dist/node_modules/semver/ranges/simplify.js +49 -0
  2833. package/dist/node_modules/semver/ranges/subset.js +249 -0
  2834. package/dist/node_modules/semver/ranges/to-comparators.js +10 -0
  2835. package/dist/node_modules/semver/ranges/valid.js +13 -0
  2836. package/dist/node_modules/unist-util-is/index.d.ts +5 -0
  2837. package/dist/node_modules/unist-util-is/index.d.ts.map +1 -0
  2838. package/dist/node_modules/unist-util-is/index.js +7 -0
  2839. package/dist/node_modules/unist-util-is/lib/index.d.ts +111 -0
  2840. package/dist/node_modules/unist-util-is/lib/index.d.ts.map +1 -0
  2841. package/dist/node_modules/unist-util-is/lib/index.js +296 -0
  2842. package/dist/node_modules/unist-util-is/license +22 -0
  2843. package/dist/node_modules/unist-util-is/package.json +103 -0
  2844. package/dist/node_modules/unist-util-is/readme.md +351 -0
  2845. package/dist/node_modules/unist-util-stringify-position/index.d.ts +1 -0
  2846. package/dist/node_modules/unist-util-stringify-position/index.js +1 -0
  2847. package/dist/node_modules/unist-util-stringify-position/lib/index.d.ts +61 -0
  2848. package/dist/node_modules/unist-util-stringify-position/lib/index.js +84 -0
  2849. package/dist/node_modules/unist-util-stringify-position/license +22 -0
  2850. package/dist/node_modules/unist-util-stringify-position/package.json +80 -0
  2851. package/dist/node_modules/unist-util-stringify-position/readme.md +206 -0
  2852. package/dist/node_modules/unist-util-visit/index.d.ts +16 -0
  2853. package/dist/node_modules/unist-util-visit/index.js +2 -0
  2854. package/dist/node_modules/unist-util-visit/lib/index.d.ts +219 -0
  2855. package/dist/node_modules/unist-util-visit/lib/index.d.ts.map +1 -0
  2856. package/dist/node_modules/unist-util-visit/lib/index.js +324 -0
  2857. package/dist/node_modules/unist-util-visit/license +22 -0
  2858. package/dist/node_modules/unist-util-visit/package.json +98 -0
  2859. package/dist/node_modules/unist-util-visit/readme.md +373 -0
  2860. package/dist/node_modules/unist-util-visit-parents/index.d.ts +18 -0
  2861. package/dist/node_modules/unist-util-visit-parents/index.js +2 -0
  2862. package/dist/node_modules/unist-util-visit-parents/lib/color.d.ts +10 -0
  2863. package/dist/node_modules/unist-util-visit-parents/lib/color.d.ts.map +1 -0
  2864. package/dist/node_modules/unist-util-visit-parents/lib/color.js +11 -0
  2865. package/dist/node_modules/unist-util-visit-parents/lib/color.node.d.ts +10 -0
  2866. package/dist/node_modules/unist-util-visit-parents/lib/color.node.d.ts.map +1 -0
  2867. package/dist/node_modules/unist-util-visit-parents/lib/color.node.js +11 -0
  2868. package/dist/node_modules/unist-util-visit-parents/lib/index.d.ts +540 -0
  2869. package/dist/node_modules/unist-util-visit-parents/lib/index.d.ts.map +1 -0
  2870. package/dist/node_modules/unist-util-visit-parents/lib/index.js +582 -0
  2871. package/dist/node_modules/unist-util-visit-parents/license +22 -0
  2872. package/dist/node_modules/unist-util-visit-parents/package.json +96 -0
  2873. package/dist/node_modules/unist-util-visit-parents/readme.md +499 -0
  2874. package/dist/node_modules/ws/LICENSE +20 -0
  2875. package/dist/node_modules/ws/README.md +548 -0
  2876. package/dist/node_modules/ws/browser.js +8 -0
  2877. package/dist/node_modules/ws/index.js +22 -0
  2878. package/dist/node_modules/ws/lib/buffer-util.js +131 -0
  2879. package/dist/node_modules/ws/lib/constants.js +19 -0
  2880. package/dist/node_modules/ws/lib/event-target.js +292 -0
  2881. package/dist/node_modules/ws/lib/extension.js +203 -0
  2882. package/dist/node_modules/ws/lib/limiter.js +55 -0
  2883. package/dist/node_modules/ws/lib/permessage-deflate.js +530 -0
  2884. package/dist/node_modules/ws/lib/receiver.js +743 -0
  2885. package/dist/node_modules/ws/lib/sender.js +607 -0
  2886. package/dist/node_modules/ws/lib/stream.js +161 -0
  2887. package/dist/node_modules/ws/lib/subprotocol.js +62 -0
  2888. package/dist/node_modules/ws/lib/validation.js +152 -0
  2889. package/dist/node_modules/ws/lib/websocket-server.js +562 -0
  2890. package/dist/node_modules/ws/lib/websocket.js +1421 -0
  2891. package/dist/node_modules/ws/package.json +74 -0
  2892. package/dist/node_modules/ws/wrapper.mjs +21 -0
  2893. package/dist/node_modules/xmlchars/LICENSE +18 -0
  2894. package/dist/node_modules/xmlchars/README.md +33 -0
  2895. package/dist/node_modules/xmlchars/package.json +51 -0
  2896. package/dist/node_modules/xmlchars/xml/1.0/ed4.d.ts +31 -0
  2897. package/dist/node_modules/xmlchars/xml/1.0/ed4.js +44 -0
  2898. package/dist/node_modules/xmlchars/xml/1.0/ed4.js.map +1 -0
  2899. package/dist/node_modules/xmlchars/xml/1.0/ed5.d.ts +51 -0
  2900. package/dist/node_modules/xmlchars/xml/1.0/ed5.js +105 -0
  2901. package/dist/node_modules/xmlchars/xml/1.0/ed5.js.map +1 -0
  2902. package/dist/node_modules/xmlchars/xml/1.1/ed2.d.ts +73 -0
  2903. package/dist/node_modules/xmlchars/xml/1.1/ed2.js +145 -0
  2904. package/dist/node_modules/xmlchars/xml/1.1/ed2.js.map +1 -0
  2905. package/dist/node_modules/xmlchars/xmlchars.d.ts +170 -0
  2906. package/dist/node_modules/xmlchars/xmlchars.js +191 -0
  2907. package/dist/node_modules/xmlchars/xmlchars.js.map +1 -0
  2908. package/dist/node_modules/xmlchars/xmlns/1.0/ed3.d.ts +28 -0
  2909. package/dist/node_modules/xmlchars/xmlns/1.0/ed3.js +65 -0
  2910. package/dist/node_modules/xmlchars/xmlns/1.0/ed3.js.map +1 -0
  2911. package/dist/node_modules/yaml/LICENSE +13 -0
  2912. package/dist/node_modules/yaml/README.md +172 -0
  2913. package/dist/node_modules/yaml/bin.mjs +11 -0
  2914. package/dist/node_modules/yaml/browser/dist/compose/compose-collection.js +88 -0
  2915. package/dist/node_modules/yaml/browser/dist/compose/compose-doc.js +43 -0
  2916. package/dist/node_modules/yaml/browser/dist/compose/compose-node.js +109 -0
  2917. package/dist/node_modules/yaml/browser/dist/compose/compose-scalar.js +86 -0
  2918. package/dist/node_modules/yaml/browser/dist/compose/composer.js +219 -0
  2919. package/dist/node_modules/yaml/browser/dist/compose/resolve-block-map.js +115 -0
  2920. package/dist/node_modules/yaml/browser/dist/compose/resolve-block-scalar.js +198 -0
  2921. package/dist/node_modules/yaml/browser/dist/compose/resolve-block-seq.js +49 -0
  2922. package/dist/node_modules/yaml/browser/dist/compose/resolve-end.js +37 -0
  2923. package/dist/node_modules/yaml/browser/dist/compose/resolve-flow-collection.js +207 -0
  2924. package/dist/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.js +226 -0
  2925. package/dist/node_modules/yaml/browser/dist/compose/resolve-props.js +146 -0
  2926. package/dist/node_modules/yaml/browser/dist/compose/util-contains-newline.js +34 -0
  2927. package/dist/node_modules/yaml/browser/dist/compose/util-empty-scalar-position.js +26 -0
  2928. package/dist/node_modules/yaml/browser/dist/compose/util-flow-indent-check.js +15 -0
  2929. package/dist/node_modules/yaml/browser/dist/compose/util-map-includes.js +13 -0
  2930. package/dist/node_modules/yaml/browser/dist/doc/Document.js +335 -0
  2931. package/dist/node_modules/yaml/browser/dist/doc/anchors.js +71 -0
  2932. package/dist/node_modules/yaml/browser/dist/doc/applyReviver.js +55 -0
  2933. package/dist/node_modules/yaml/browser/dist/doc/createNode.js +88 -0
  2934. package/dist/node_modules/yaml/browser/dist/doc/directives.js +176 -0
  2935. package/dist/node_modules/yaml/browser/dist/errors.js +57 -0
  2936. package/dist/node_modules/yaml/browser/dist/index.js +17 -0
  2937. package/dist/node_modules/yaml/browser/dist/log.js +11 -0
  2938. package/dist/node_modules/yaml/browser/dist/nodes/Alias.js +118 -0
  2939. package/dist/node_modules/yaml/browser/dist/nodes/Collection.js +147 -0
  2940. package/dist/node_modules/yaml/browser/dist/nodes/Node.js +38 -0
  2941. package/dist/node_modules/yaml/browser/dist/nodes/Pair.js +36 -0
  2942. package/dist/node_modules/yaml/browser/dist/nodes/Scalar.js +24 -0
  2943. package/dist/node_modules/yaml/browser/dist/nodes/YAMLMap.js +144 -0
  2944. package/dist/node_modules/yaml/browser/dist/nodes/YAMLSeq.js +113 -0
  2945. package/dist/node_modules/yaml/browser/dist/nodes/addPairToJSMap.js +63 -0
  2946. package/dist/node_modules/yaml/browser/dist/nodes/identity.js +36 -0
  2947. package/dist/node_modules/yaml/browser/dist/nodes/toJS.js +37 -0
  2948. package/dist/node_modules/yaml/browser/dist/parse/cst-scalar.js +214 -0
  2949. package/dist/node_modules/yaml/browser/dist/parse/cst-stringify.js +61 -0
  2950. package/dist/node_modules/yaml/browser/dist/parse/cst-visit.js +97 -0
  2951. package/dist/node_modules/yaml/browser/dist/parse/cst.js +98 -0
  2952. package/dist/node_modules/yaml/browser/dist/parse/lexer.js +721 -0
  2953. package/dist/node_modules/yaml/browser/dist/parse/line-counter.js +39 -0
  2954. package/dist/node_modules/yaml/browser/dist/parse/parser.js +975 -0
  2955. package/dist/node_modules/yaml/browser/dist/public-api.js +102 -0
  2956. package/dist/node_modules/yaml/browser/dist/schema/Schema.js +37 -0
  2957. package/dist/node_modules/yaml/browser/dist/schema/common/map.js +17 -0
  2958. package/dist/node_modules/yaml/browser/dist/schema/common/null.js +15 -0
  2959. package/dist/node_modules/yaml/browser/dist/schema/common/seq.js +17 -0
  2960. package/dist/node_modules/yaml/browser/dist/schema/common/string.js +14 -0
  2961. package/dist/node_modules/yaml/browser/dist/schema/core/bool.js +19 -0
  2962. package/dist/node_modules/yaml/browser/dist/schema/core/float.js +43 -0
  2963. package/dist/node_modules/yaml/browser/dist/schema/core/int.js +38 -0
  2964. package/dist/node_modules/yaml/browser/dist/schema/core/schema.js +23 -0
  2965. package/dist/node_modules/yaml/browser/dist/schema/json/schema.js +62 -0
  2966. package/dist/node_modules/yaml/browser/dist/schema/tags.js +96 -0
  2967. package/dist/node_modules/yaml/browser/dist/schema/yaml-1.1/binary.js +58 -0
  2968. package/dist/node_modules/yaml/browser/dist/schema/yaml-1.1/bool.js +26 -0
  2969. package/dist/node_modules/yaml/browser/dist/schema/yaml-1.1/float.js +46 -0
  2970. package/dist/node_modules/yaml/browser/dist/schema/yaml-1.1/int.js +71 -0
  2971. package/dist/node_modules/yaml/browser/dist/schema/yaml-1.1/merge.js +67 -0
  2972. package/dist/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.js +74 -0
  2973. package/dist/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.js +78 -0
  2974. package/dist/node_modules/yaml/browser/dist/schema/yaml-1.1/schema.js +39 -0
  2975. package/dist/node_modules/yaml/browser/dist/schema/yaml-1.1/set.js +93 -0
  2976. package/dist/node_modules/yaml/browser/dist/schema/yaml-1.1/timestamp.js +101 -0
  2977. package/dist/node_modules/yaml/browser/dist/stringify/foldFlowLines.js +146 -0
  2978. package/dist/node_modules/yaml/browser/dist/stringify/stringify.js +129 -0
  2979. package/dist/node_modules/yaml/browser/dist/stringify/stringifyCollection.js +153 -0
  2980. package/dist/node_modules/yaml/browser/dist/stringify/stringifyComment.js +20 -0
  2981. package/dist/node_modules/yaml/browser/dist/stringify/stringifyDocument.js +85 -0
  2982. package/dist/node_modules/yaml/browser/dist/stringify/stringifyNumber.js +25 -0
  2983. package/dist/node_modules/yaml/browser/dist/stringify/stringifyPair.js +150 -0
  2984. package/dist/node_modules/yaml/browser/dist/stringify/stringifyString.js +336 -0
  2985. package/dist/node_modules/yaml/browser/dist/util.js +11 -0
  2986. package/dist/node_modules/yaml/browser/dist/visit.js +233 -0
  2987. package/dist/node_modules/yaml/browser/index.js +5 -0
  2988. package/dist/node_modules/yaml/browser/package.json +3 -0
  2989. package/dist/node_modules/yaml/dist/cli.d.ts +8 -0
  2990. package/dist/node_modules/yaml/dist/cli.mjs +201 -0
  2991. package/dist/node_modules/yaml/dist/compose/compose-collection.d.ts +11 -0
  2992. package/dist/node_modules/yaml/dist/compose/compose-collection.js +90 -0
  2993. package/dist/node_modules/yaml/dist/compose/compose-doc.d.ts +7 -0
  2994. package/dist/node_modules/yaml/dist/compose/compose-doc.js +45 -0
  2995. package/dist/node_modules/yaml/dist/compose/compose-node.d.ts +29 -0
  2996. package/dist/node_modules/yaml/dist/compose/compose-node.js +112 -0
  2997. package/dist/node_modules/yaml/dist/compose/compose-scalar.d.ts +5 -0
  2998. package/dist/node_modules/yaml/dist/compose/compose-scalar.js +88 -0
  2999. package/dist/node_modules/yaml/dist/compose/composer.d.ts +63 -0
  3000. package/dist/node_modules/yaml/dist/compose/composer.js +224 -0
  3001. package/dist/node_modules/yaml/dist/compose/resolve-block-map.d.ts +6 -0
  3002. package/dist/node_modules/yaml/dist/compose/resolve-block-map.js +117 -0
  3003. package/dist/node_modules/yaml/dist/compose/resolve-block-scalar.d.ts +11 -0
  3004. package/dist/node_modules/yaml/dist/compose/resolve-block-scalar.js +200 -0
  3005. package/dist/node_modules/yaml/dist/compose/resolve-block-seq.d.ts +6 -0
  3006. package/dist/node_modules/yaml/dist/compose/resolve-block-seq.js +51 -0
  3007. package/dist/node_modules/yaml/dist/compose/resolve-end.d.ts +6 -0
  3008. package/dist/node_modules/yaml/dist/compose/resolve-end.js +39 -0
  3009. package/dist/node_modules/yaml/dist/compose/resolve-flow-collection.d.ts +7 -0
  3010. package/dist/node_modules/yaml/dist/compose/resolve-flow-collection.js +209 -0
  3011. package/dist/node_modules/yaml/dist/compose/resolve-flow-scalar.d.ts +10 -0
  3012. package/dist/node_modules/yaml/dist/compose/resolve-flow-scalar.js +228 -0
  3013. package/dist/node_modules/yaml/dist/compose/resolve-props.d.ts +23 -0
  3014. package/dist/node_modules/yaml/dist/compose/resolve-props.js +148 -0
  3015. package/dist/node_modules/yaml/dist/compose/util-contains-newline.d.ts +2 -0
  3016. package/dist/node_modules/yaml/dist/compose/util-contains-newline.js +36 -0
  3017. package/dist/node_modules/yaml/dist/compose/util-empty-scalar-position.d.ts +2 -0
  3018. package/dist/node_modules/yaml/dist/compose/util-empty-scalar-position.js +28 -0
  3019. package/dist/node_modules/yaml/dist/compose/util-flow-indent-check.d.ts +3 -0
  3020. package/dist/node_modules/yaml/dist/compose/util-flow-indent-check.js +17 -0
  3021. package/dist/node_modules/yaml/dist/compose/util-map-includes.d.ts +4 -0
  3022. package/dist/node_modules/yaml/dist/compose/util-map-includes.js +15 -0
  3023. package/dist/node_modules/yaml/dist/doc/Document.d.ts +141 -0
  3024. package/dist/node_modules/yaml/dist/doc/Document.js +337 -0
  3025. package/dist/node_modules/yaml/dist/doc/anchors.d.ts +24 -0
  3026. package/dist/node_modules/yaml/dist/doc/anchors.js +76 -0
  3027. package/dist/node_modules/yaml/dist/doc/applyReviver.d.ts +9 -0
  3028. package/dist/node_modules/yaml/dist/doc/applyReviver.js +57 -0
  3029. package/dist/node_modules/yaml/dist/doc/createNode.d.ts +17 -0
  3030. package/dist/node_modules/yaml/dist/doc/createNode.js +90 -0
  3031. package/dist/node_modules/yaml/dist/doc/directives.d.ts +49 -0
  3032. package/dist/node_modules/yaml/dist/doc/directives.js +178 -0
  3033. package/dist/node_modules/yaml/dist/errors.d.ts +21 -0
  3034. package/dist/node_modules/yaml/dist/errors.js +62 -0
  3035. package/dist/node_modules/yaml/dist/index.d.ts +25 -0
  3036. package/dist/node_modules/yaml/dist/index.js +50 -0
  3037. package/dist/node_modules/yaml/dist/log.d.ts +3 -0
  3038. package/dist/node_modules/yaml/dist/log.js +19 -0
  3039. package/dist/node_modules/yaml/dist/nodes/Alias.d.ts +29 -0
  3040. package/dist/node_modules/yaml/dist/nodes/Alias.js +120 -0
  3041. package/dist/node_modules/yaml/dist/nodes/Collection.d.ts +73 -0
  3042. package/dist/node_modules/yaml/dist/nodes/Collection.js +151 -0
  3043. package/dist/node_modules/yaml/dist/nodes/Node.d.ts +53 -0
  3044. package/dist/node_modules/yaml/dist/nodes/Node.js +40 -0
  3045. package/dist/node_modules/yaml/dist/nodes/Pair.d.ts +22 -0
  3046. package/dist/node_modules/yaml/dist/nodes/Pair.js +39 -0
  3047. package/dist/node_modules/yaml/dist/nodes/Scalar.d.ts +47 -0
  3048. package/dist/node_modules/yaml/dist/nodes/Scalar.js +27 -0
  3049. package/dist/node_modules/yaml/dist/nodes/YAMLMap.d.ts +53 -0
  3050. package/dist/node_modules/yaml/dist/nodes/YAMLMap.js +147 -0
  3051. package/dist/node_modules/yaml/dist/nodes/YAMLSeq.d.ts +60 -0
  3052. package/dist/node_modules/yaml/dist/nodes/YAMLSeq.js +115 -0
  3053. package/dist/node_modules/yaml/dist/nodes/addPairToJSMap.d.ts +4 -0
  3054. package/dist/node_modules/yaml/dist/nodes/addPairToJSMap.js +65 -0
  3055. package/dist/node_modules/yaml/dist/nodes/identity.d.ts +23 -0
  3056. package/dist/node_modules/yaml/dist/nodes/identity.js +53 -0
  3057. package/dist/node_modules/yaml/dist/nodes/toJS.d.ts +29 -0
  3058. package/dist/node_modules/yaml/dist/nodes/toJS.js +39 -0
  3059. package/dist/node_modules/yaml/dist/options.d.ts +350 -0
  3060. package/dist/node_modules/yaml/dist/parse/cst-scalar.d.ts +64 -0
  3061. package/dist/node_modules/yaml/dist/parse/cst-scalar.js +218 -0
  3062. package/dist/node_modules/yaml/dist/parse/cst-stringify.d.ts +8 -0
  3063. package/dist/node_modules/yaml/dist/parse/cst-stringify.js +63 -0
  3064. package/dist/node_modules/yaml/dist/parse/cst-visit.d.ts +39 -0
  3065. package/dist/node_modules/yaml/dist/parse/cst-visit.js +99 -0
  3066. package/dist/node_modules/yaml/dist/parse/cst.d.ts +109 -0
  3067. package/dist/node_modules/yaml/dist/parse/cst.js +112 -0
  3068. package/dist/node_modules/yaml/dist/parse/lexer.d.ts +87 -0
  3069. package/dist/node_modules/yaml/dist/parse/lexer.js +723 -0
  3070. package/dist/node_modules/yaml/dist/parse/line-counter.d.ts +22 -0
  3071. package/dist/node_modules/yaml/dist/parse/line-counter.js +41 -0
  3072. package/dist/node_modules/yaml/dist/parse/parser.d.ts +84 -0
  3073. package/dist/node_modules/yaml/dist/parse/parser.js +980 -0
  3074. package/dist/node_modules/yaml/dist/public-api.d.ts +44 -0
  3075. package/dist/node_modules/yaml/dist/public-api.js +107 -0
  3076. package/dist/node_modules/yaml/dist/schema/Schema.d.ts +17 -0
  3077. package/dist/node_modules/yaml/dist/schema/Schema.js +39 -0
  3078. package/dist/node_modules/yaml/dist/schema/common/map.d.ts +2 -0
  3079. package/dist/node_modules/yaml/dist/schema/common/map.js +19 -0
  3080. package/dist/node_modules/yaml/dist/schema/common/null.d.ts +4 -0
  3081. package/dist/node_modules/yaml/dist/schema/common/null.js +17 -0
  3082. package/dist/node_modules/yaml/dist/schema/common/seq.d.ts +2 -0
  3083. package/dist/node_modules/yaml/dist/schema/common/seq.js +19 -0
  3084. package/dist/node_modules/yaml/dist/schema/common/string.d.ts +2 -0
  3085. package/dist/node_modules/yaml/dist/schema/common/string.js +16 -0
  3086. package/dist/node_modules/yaml/dist/schema/core/bool.d.ts +4 -0
  3087. package/dist/node_modules/yaml/dist/schema/core/bool.js +21 -0
  3088. package/dist/node_modules/yaml/dist/schema/core/float.d.ts +4 -0
  3089. package/dist/node_modules/yaml/dist/schema/core/float.js +47 -0
  3090. package/dist/node_modules/yaml/dist/schema/core/int.d.ts +4 -0
  3091. package/dist/node_modules/yaml/dist/schema/core/int.js +42 -0
  3092. package/dist/node_modules/yaml/dist/schema/core/schema.d.ts +1 -0
  3093. package/dist/node_modules/yaml/dist/schema/core/schema.js +25 -0
  3094. package/dist/node_modules/yaml/dist/schema/json/schema.d.ts +2 -0
  3095. package/dist/node_modules/yaml/dist/schema/json/schema.js +64 -0
  3096. package/dist/node_modules/yaml/dist/schema/json-schema.d.ts +69 -0
  3097. package/dist/node_modules/yaml/dist/schema/tags.d.ts +48 -0
  3098. package/dist/node_modules/yaml/dist/schema/tags.js +99 -0
  3099. package/dist/node_modules/yaml/dist/schema/types.d.ts +92 -0
  3100. package/dist/node_modules/yaml/dist/schema/yaml-1.1/binary.d.ts +2 -0
  3101. package/dist/node_modules/yaml/dist/schema/yaml-1.1/binary.js +70 -0
  3102. package/dist/node_modules/yaml/dist/schema/yaml-1.1/bool.d.ts +7 -0
  3103. package/dist/node_modules/yaml/dist/schema/yaml-1.1/bool.js +29 -0
  3104. package/dist/node_modules/yaml/dist/schema/yaml-1.1/float.d.ts +4 -0
  3105. package/dist/node_modules/yaml/dist/schema/yaml-1.1/float.js +50 -0
  3106. package/dist/node_modules/yaml/dist/schema/yaml-1.1/int.d.ts +5 -0
  3107. package/dist/node_modules/yaml/dist/schema/yaml-1.1/int.js +76 -0
  3108. package/dist/node_modules/yaml/dist/schema/yaml-1.1/merge.d.ts +9 -0
  3109. package/dist/node_modules/yaml/dist/schema/yaml-1.1/merge.js +71 -0
  3110. package/dist/node_modules/yaml/dist/schema/yaml-1.1/omap.d.ts +22 -0
  3111. package/dist/node_modules/yaml/dist/schema/yaml-1.1/omap.js +77 -0
  3112. package/dist/node_modules/yaml/dist/schema/yaml-1.1/pairs.d.ts +10 -0
  3113. package/dist/node_modules/yaml/dist/schema/yaml-1.1/pairs.js +82 -0
  3114. package/dist/node_modules/yaml/dist/schema/yaml-1.1/schema.d.ts +1 -0
  3115. package/dist/node_modules/yaml/dist/schema/yaml-1.1/schema.js +41 -0
  3116. package/dist/node_modules/yaml/dist/schema/yaml-1.1/set.d.ts +28 -0
  3117. package/dist/node_modules/yaml/dist/schema/yaml-1.1/set.js +96 -0
  3118. package/dist/node_modules/yaml/dist/schema/yaml-1.1/timestamp.d.ts +6 -0
  3119. package/dist/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js +105 -0
  3120. package/dist/node_modules/yaml/dist/stringify/foldFlowLines.d.ts +34 -0
  3121. package/dist/node_modules/yaml/dist/stringify/foldFlowLines.js +151 -0
  3122. package/dist/node_modules/yaml/dist/stringify/stringify.d.ts +21 -0
  3123. package/dist/node_modules/yaml/dist/stringify/stringify.js +132 -0
  3124. package/dist/node_modules/yaml/dist/stringify/stringifyCollection.d.ts +17 -0
  3125. package/dist/node_modules/yaml/dist/stringify/stringifyCollection.js +155 -0
  3126. package/dist/node_modules/yaml/dist/stringify/stringifyComment.d.ts +10 -0
  3127. package/dist/node_modules/yaml/dist/stringify/stringifyComment.js +24 -0
  3128. package/dist/node_modules/yaml/dist/stringify/stringifyDocument.d.ts +4 -0
  3129. package/dist/node_modules/yaml/dist/stringify/stringifyDocument.js +87 -0
  3130. package/dist/node_modules/yaml/dist/stringify/stringifyNumber.d.ts +2 -0
  3131. package/dist/node_modules/yaml/dist/stringify/stringifyNumber.js +27 -0
  3132. package/dist/node_modules/yaml/dist/stringify/stringifyPair.d.ts +3 -0
  3133. package/dist/node_modules/yaml/dist/stringify/stringifyPair.js +152 -0
  3134. package/dist/node_modules/yaml/dist/stringify/stringifyString.d.ts +9 -0
  3135. package/dist/node_modules/yaml/dist/stringify/stringifyString.js +338 -0
  3136. package/dist/node_modules/yaml/dist/test-events.d.ts +4 -0
  3137. package/dist/node_modules/yaml/dist/test-events.js +134 -0
  3138. package/dist/node_modules/yaml/dist/util.d.ts +16 -0
  3139. package/dist/node_modules/yaml/dist/util.js +28 -0
  3140. package/dist/node_modules/yaml/dist/visit.d.ts +102 -0
  3141. package/dist/node_modules/yaml/dist/visit.js +236 -0
  3142. package/dist/node_modules/yaml/package.json +97 -0
  3143. package/dist/node_modules/yaml/util.js +2 -0
  3144. package/dist/node_modules/zod/LICENSE +21 -0
  3145. package/dist/node_modules/zod/README.md +208 -0
  3146. package/dist/node_modules/zod/index.cjs +33 -0
  3147. package/dist/node_modules/zod/index.d.cts +4 -0
  3148. package/dist/node_modules/zod/index.d.ts +4 -0
  3149. package/dist/node_modules/zod/index.js +4 -0
  3150. package/dist/node_modules/zod/package.json +118 -0
  3151. package/dist/node_modules/zod/src/index.ts +4 -0
  3152. package/dist/node_modules/zod/src/v3/ZodError.ts +330 -0
  3153. package/dist/node_modules/zod/src/v3/benchmarks/datetime.ts +58 -0
  3154. package/dist/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +80 -0
  3155. package/dist/node_modules/zod/src/v3/benchmarks/index.ts +59 -0
  3156. package/dist/node_modules/zod/src/v3/benchmarks/ipv4.ts +57 -0
  3157. package/dist/node_modules/zod/src/v3/benchmarks/object.ts +69 -0
  3158. package/dist/node_modules/zod/src/v3/benchmarks/primitives.ts +162 -0
  3159. package/dist/node_modules/zod/src/v3/benchmarks/realworld.ts +63 -0
  3160. package/dist/node_modules/zod/src/v3/benchmarks/string.ts +55 -0
  3161. package/dist/node_modules/zod/src/v3/benchmarks/union.ts +80 -0
  3162. package/dist/node_modules/zod/src/v3/errors.ts +13 -0
  3163. package/dist/node_modules/zod/src/v3/external.ts +6 -0
  3164. package/dist/node_modules/zod/src/v3/helpers/enumUtil.ts +17 -0
  3165. package/dist/node_modules/zod/src/v3/helpers/errorUtil.ts +8 -0
  3166. package/dist/node_modules/zod/src/v3/helpers/parseUtil.ts +176 -0
  3167. package/dist/node_modules/zod/src/v3/helpers/partialUtil.ts +34 -0
  3168. package/dist/node_modules/zod/src/v3/helpers/typeAliases.ts +2 -0
  3169. package/dist/node_modules/zod/src/v3/helpers/util.ts +224 -0
  3170. package/dist/node_modules/zod/src/v3/index.ts +4 -0
  3171. package/dist/node_modules/zod/src/v3/locales/en.ts +124 -0
  3172. package/dist/node_modules/zod/src/v3/standard-schema.ts +113 -0
  3173. package/dist/node_modules/zod/src/v3/tests/Mocker.ts +54 -0
  3174. package/dist/node_modules/zod/src/v3/tests/all-errors.test.ts +157 -0
  3175. package/dist/node_modules/zod/src/v3/tests/anyunknown.test.ts +28 -0
  3176. package/dist/node_modules/zod/src/v3/tests/array.test.ts +71 -0
  3177. package/dist/node_modules/zod/src/v3/tests/async-parsing.test.ts +388 -0
  3178. package/dist/node_modules/zod/src/v3/tests/async-refinements.test.ts +46 -0
  3179. package/dist/node_modules/zod/src/v3/tests/base.test.ts +29 -0
  3180. package/dist/node_modules/zod/src/v3/tests/bigint.test.ts +55 -0
  3181. package/dist/node_modules/zod/src/v3/tests/branded.test.ts +53 -0
  3182. package/dist/node_modules/zod/src/v3/tests/catch.test.ts +220 -0
  3183. package/dist/node_modules/zod/src/v3/tests/coerce.test.ts +133 -0
  3184. package/dist/node_modules/zod/src/v3/tests/complex.test.ts +56 -0
  3185. package/dist/node_modules/zod/src/v3/tests/custom.test.ts +31 -0
  3186. package/dist/node_modules/zod/src/v3/tests/date.test.ts +32 -0
  3187. package/dist/node_modules/zod/src/v3/tests/deepmasking.test.ts +186 -0
  3188. package/dist/node_modules/zod/src/v3/tests/default.test.ts +112 -0
  3189. package/dist/node_modules/zod/src/v3/tests/description.test.ts +33 -0
  3190. package/dist/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +315 -0
  3191. package/dist/node_modules/zod/src/v3/tests/enum.test.ts +80 -0
  3192. package/dist/node_modules/zod/src/v3/tests/error.test.ts +551 -0
  3193. package/dist/node_modules/zod/src/v3/tests/firstparty.test.ts +87 -0
  3194. package/dist/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +21 -0
  3195. package/dist/node_modules/zod/src/v3/tests/function.test.ts +257 -0
  3196. package/dist/node_modules/zod/src/v3/tests/generics.test.ts +48 -0
  3197. package/dist/node_modules/zod/src/v3/tests/instanceof.test.ts +37 -0
  3198. package/dist/node_modules/zod/src/v3/tests/intersection.test.ts +110 -0
  3199. package/dist/node_modules/zod/src/v3/tests/language-server.source.ts +76 -0
  3200. package/dist/node_modules/zod/src/v3/tests/language-server.test.ts +207 -0
  3201. package/dist/node_modules/zod/src/v3/tests/literal.test.ts +36 -0
  3202. package/dist/node_modules/zod/src/v3/tests/map.test.ts +110 -0
  3203. package/dist/node_modules/zod/src/v3/tests/masking.test.ts +4 -0
  3204. package/dist/node_modules/zod/src/v3/tests/mocker.test.ts +19 -0
  3205. package/dist/node_modules/zod/src/v3/tests/nan.test.ts +21 -0
  3206. package/dist/node_modules/zod/src/v3/tests/nativeEnum.test.ts +87 -0
  3207. package/dist/node_modules/zod/src/v3/tests/nullable.test.ts +42 -0
  3208. package/dist/node_modules/zod/src/v3/tests/number.test.ts +176 -0
  3209. package/dist/node_modules/zod/src/v3/tests/object-augmentation.test.ts +29 -0
  3210. package/dist/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +29 -0
  3211. package/dist/node_modules/zod/src/v3/tests/object.test.ts +434 -0
  3212. package/dist/node_modules/zod/src/v3/tests/optional.test.ts +42 -0
  3213. package/dist/node_modules/zod/src/v3/tests/parseUtil.test.ts +23 -0
  3214. package/dist/node_modules/zod/src/v3/tests/parser.test.ts +41 -0
  3215. package/dist/node_modules/zod/src/v3/tests/partials.test.ts +243 -0
  3216. package/dist/node_modules/zod/src/v3/tests/pickomit.test.ts +111 -0
  3217. package/dist/node_modules/zod/src/v3/tests/pipeline.test.ts +29 -0
  3218. package/dist/node_modules/zod/src/v3/tests/preprocess.test.ts +186 -0
  3219. package/dist/node_modules/zod/src/v3/tests/primitive.test.ts +440 -0
  3220. package/dist/node_modules/zod/src/v3/tests/promise.test.ts +90 -0
  3221. package/dist/node_modules/zod/src/v3/tests/readonly.test.ts +194 -0
  3222. package/dist/node_modules/zod/src/v3/tests/record.test.ts +171 -0
  3223. package/dist/node_modules/zod/src/v3/tests/recursive.test.ts +197 -0
  3224. package/dist/node_modules/zod/src/v3/tests/refine.test.ts +313 -0
  3225. package/dist/node_modules/zod/src/v3/tests/safeparse.test.ts +27 -0
  3226. package/dist/node_modules/zod/src/v3/tests/set.test.ts +142 -0
  3227. package/dist/node_modules/zod/src/v3/tests/standard-schema.test.ts +83 -0
  3228. package/dist/node_modules/zod/src/v3/tests/string.test.ts +916 -0
  3229. package/dist/node_modules/zod/src/v3/tests/transformer.test.ts +233 -0
  3230. package/dist/node_modules/zod/src/v3/tests/tuple.test.ts +90 -0
  3231. package/dist/node_modules/zod/src/v3/tests/unions.test.ts +57 -0
  3232. package/dist/node_modules/zod/src/v3/tests/validations.test.ts +133 -0
  3233. package/dist/node_modules/zod/src/v3/tests/void.test.ts +15 -0
  3234. package/dist/node_modules/zod/src/v3/types.ts +5136 -0
  3235. package/dist/node_modules/zod/src/v4/classic/checks.ts +30 -0
  3236. package/dist/node_modules/zod/src/v4/classic/coerce.ts +27 -0
  3237. package/dist/node_modules/zod/src/v4/classic/compat.ts +66 -0
  3238. package/dist/node_modules/zod/src/v4/classic/errors.ts +75 -0
  3239. package/dist/node_modules/zod/src/v4/classic/external.ts +50 -0
  3240. package/dist/node_modules/zod/src/v4/classic/index.ts +5 -0
  3241. package/dist/node_modules/zod/src/v4/classic/iso.ts +90 -0
  3242. package/dist/node_modules/zod/src/v4/classic/parse.ts +33 -0
  3243. package/dist/node_modules/zod/src/v4/classic/schemas.ts +2054 -0
  3244. package/dist/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +26 -0
  3245. package/dist/node_modules/zod/src/v4/classic/tests/array.test.ts +264 -0
  3246. package/dist/node_modules/zod/src/v4/classic/tests/assignability.test.ts +210 -0
  3247. package/dist/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +381 -0
  3248. package/dist/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +68 -0
  3249. package/dist/node_modules/zod/src/v4/classic/tests/base.test.ts +7 -0
  3250. package/dist/node_modules/zod/src/v4/classic/tests/bigint.test.ts +54 -0
  3251. package/dist/node_modules/zod/src/v4/classic/tests/brand.test.ts +63 -0
  3252. package/dist/node_modules/zod/src/v4/classic/tests/catch.test.ts +252 -0
  3253. package/dist/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +20 -0
  3254. package/dist/node_modules/zod/src/v4/classic/tests/coerce.test.ts +160 -0
  3255. package/dist/node_modules/zod/src/v4/classic/tests/continuability.test.ts +352 -0
  3256. package/dist/node_modules/zod/src/v4/classic/tests/custom.test.ts +40 -0
  3257. package/dist/node_modules/zod/src/v4/classic/tests/date.test.ts +31 -0
  3258. package/dist/node_modules/zod/src/v4/classic/tests/datetime.test.ts +296 -0
  3259. package/dist/node_modules/zod/src/v4/classic/tests/default.test.ts +313 -0
  3260. package/dist/node_modules/zod/src/v4/classic/tests/description.test.ts +32 -0
  3261. package/dist/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +619 -0
  3262. package/dist/node_modules/zod/src/v4/classic/tests/enum.test.ts +285 -0
  3263. package/dist/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +527 -0
  3264. package/dist/node_modules/zod/src/v4/classic/tests/error.test.ts +711 -0
  3265. package/dist/node_modules/zod/src/v4/classic/tests/file.test.ts +91 -0
  3266. package/dist/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +175 -0
  3267. package/dist/node_modules/zod/src/v4/classic/tests/function.test.ts +268 -0
  3268. package/dist/node_modules/zod/src/v4/classic/tests/generics.test.ts +72 -0
  3269. package/dist/node_modules/zod/src/v4/classic/tests/index.test.ts +829 -0
  3270. package/dist/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +34 -0
  3271. package/dist/node_modules/zod/src/v4/classic/tests/intersection.test.ts +171 -0
  3272. package/dist/node_modules/zod/src/v4/classic/tests/json.test.ts +108 -0
  3273. package/dist/node_modules/zod/src/v4/classic/tests/lazy.test.ts +227 -0
  3274. package/dist/node_modules/zod/src/v4/classic/tests/literal.test.ts +92 -0
  3275. package/dist/node_modules/zod/src/v4/classic/tests/map.test.ts +196 -0
  3276. package/dist/node_modules/zod/src/v4/classic/tests/nan.test.ts +21 -0
  3277. package/dist/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +168 -0
  3278. package/dist/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +86 -0
  3279. package/dist/node_modules/zod/src/v4/classic/tests/nullable.test.ts +22 -0
  3280. package/dist/node_modules/zod/src/v4/classic/tests/number.test.ts +247 -0
  3281. package/dist/node_modules/zod/src/v4/classic/tests/object.test.ts +563 -0
  3282. package/dist/node_modules/zod/src/v4/classic/tests/optional.test.ts +123 -0
  3283. package/dist/node_modules/zod/src/v4/classic/tests/partial.test.ts +147 -0
  3284. package/dist/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +127 -0
  3285. package/dist/node_modules/zod/src/v4/classic/tests/pipe.test.ts +81 -0
  3286. package/dist/node_modules/zod/src/v4/classic/tests/prefault.test.ts +37 -0
  3287. package/dist/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +298 -0
  3288. package/dist/node_modules/zod/src/v4/classic/tests/primitive.test.ts +175 -0
  3289. package/dist/node_modules/zod/src/v4/classic/tests/promise.test.ts +81 -0
  3290. package/dist/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +23 -0
  3291. package/dist/node_modules/zod/src/v4/classic/tests/readonly.test.ts +252 -0
  3292. package/dist/node_modules/zod/src/v4/classic/tests/record.test.ts +342 -0
  3293. package/dist/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +356 -0
  3294. package/dist/node_modules/zod/src/v4/classic/tests/refine.test.ts +532 -0
  3295. package/dist/node_modules/zod/src/v4/classic/tests/registries.test.ts +204 -0
  3296. package/dist/node_modules/zod/src/v4/classic/tests/set.test.ts +179 -0
  3297. package/dist/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +57 -0
  3298. package/dist/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +109 -0
  3299. package/dist/node_modules/zod/src/v4/classic/tests/string.test.ts +881 -0
  3300. package/dist/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +66 -0
  3301. package/dist/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +758 -0
  3302. package/dist/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +2314 -0
  3303. package/dist/node_modules/zod/src/v4/classic/tests/transform.test.ts +250 -0
  3304. package/dist/node_modules/zod/src/v4/classic/tests/tuple.test.ts +163 -0
  3305. package/dist/node_modules/zod/src/v4/classic/tests/union.test.ts +94 -0
  3306. package/dist/node_modules/zod/src/v4/classic/tests/validations.test.ts +283 -0
  3307. package/dist/node_modules/zod/src/v4/classic/tests/void.test.ts +12 -0
  3308. package/dist/node_modules/zod/src/v4/core/api.ts +1594 -0
  3309. package/dist/node_modules/zod/src/v4/core/checks.ts +1283 -0
  3310. package/dist/node_modules/zod/src/v4/core/config.ts +15 -0
  3311. package/dist/node_modules/zod/src/v4/core/core.ts +134 -0
  3312. package/dist/node_modules/zod/src/v4/core/doc.ts +44 -0
  3313. package/dist/node_modules/zod/src/v4/core/errors.ts +424 -0
  3314. package/dist/node_modules/zod/src/v4/core/function.ts +176 -0
  3315. package/dist/node_modules/zod/src/v4/core/index.ts +15 -0
  3316. package/dist/node_modules/zod/src/v4/core/json-schema.ts +143 -0
  3317. package/dist/node_modules/zod/src/v4/core/parse.ts +94 -0
  3318. package/dist/node_modules/zod/src/v4/core/regexes.ts +135 -0
  3319. package/dist/node_modules/zod/src/v4/core/registries.ts +96 -0
  3320. package/dist/node_modules/zod/src/v4/core/schemas.ts +3842 -0
  3321. package/dist/node_modules/zod/src/v4/core/standard-schema.ts +64 -0
  3322. package/dist/node_modules/zod/src/v4/core/tests/index.test.ts +46 -0
  3323. package/dist/node_modules/zod/src/v4/core/tests/locales/be.test.ts +124 -0
  3324. package/dist/node_modules/zod/src/v4/core/tests/locales/en.test.ts +22 -0
  3325. package/dist/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +128 -0
  3326. package/dist/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +69 -0
  3327. package/dist/node_modules/zod/src/v4/core/to-json-schema.ts +977 -0
  3328. package/dist/node_modules/zod/src/v4/core/util.ts +775 -0
  3329. package/dist/node_modules/zod/src/v4/core/versions.ts +5 -0
  3330. package/dist/node_modules/zod/src/v4/core/zsf.ts +323 -0
  3331. package/dist/node_modules/zod/src/v4/index.ts +4 -0
  3332. package/dist/node_modules/zod/src/v4/locales/ar.ts +125 -0
  3333. package/dist/node_modules/zod/src/v4/locales/az.ts +121 -0
  3334. package/dist/node_modules/zod/src/v4/locales/be.ts +184 -0
  3335. package/dist/node_modules/zod/src/v4/locales/ca.ts +127 -0
  3336. package/dist/node_modules/zod/src/v4/locales/cs.ts +142 -0
  3337. package/dist/node_modules/zod/src/v4/locales/de.ts +124 -0
  3338. package/dist/node_modules/zod/src/v4/locales/en.ts +127 -0
  3339. package/dist/node_modules/zod/src/v4/locales/eo.ts +125 -0
  3340. package/dist/node_modules/zod/src/v4/locales/es.ts +125 -0
  3341. package/dist/node_modules/zod/src/v4/locales/fa.ts +134 -0
  3342. package/dist/node_modules/zod/src/v4/locales/fi.ts +131 -0
  3343. package/dist/node_modules/zod/src/v4/locales/fr-CA.ts +126 -0
  3344. package/dist/node_modules/zod/src/v4/locales/fr.ts +124 -0
  3345. package/dist/node_modules/zod/src/v4/locales/he.ts +125 -0
  3346. package/dist/node_modules/zod/src/v4/locales/hu.ts +126 -0
  3347. package/dist/node_modules/zod/src/v4/locales/id.ts +125 -0
  3348. package/dist/node_modules/zod/src/v4/locales/index.ts +39 -0
  3349. package/dist/node_modules/zod/src/v4/locales/it.ts +125 -0
  3350. package/dist/node_modules/zod/src/v4/locales/ja.ts +122 -0
  3351. package/dist/node_modules/zod/src/v4/locales/kh.ts +126 -0
  3352. package/dist/node_modules/zod/src/v4/locales/ko.ts +131 -0
  3353. package/dist/node_modules/zod/src/v4/locales/mk.ts +127 -0
  3354. package/dist/node_modules/zod/src/v4/locales/ms.ts +124 -0
  3355. package/dist/node_modules/zod/src/v4/locales/nl.ts +126 -0
  3356. package/dist/node_modules/zod/src/v4/locales/no.ts +124 -0
  3357. package/dist/node_modules/zod/src/v4/locales/ota.ts +125 -0
  3358. package/dist/node_modules/zod/src/v4/locales/pl.ts +126 -0
  3359. package/dist/node_modules/zod/src/v4/locales/ps.ts +133 -0
  3360. package/dist/node_modules/zod/src/v4/locales/pt.ts +123 -0
  3361. package/dist/node_modules/zod/src/v4/locales/ru.ts +184 -0
  3362. package/dist/node_modules/zod/src/v4/locales/sl.ts +126 -0
  3363. package/dist/node_modules/zod/src/v4/locales/sv.ts +127 -0
  3364. package/dist/node_modules/zod/src/v4/locales/ta.ts +125 -0
  3365. package/dist/node_modules/zod/src/v4/locales/th.ts +126 -0
  3366. package/dist/node_modules/zod/src/v4/locales/tr.ts +121 -0
  3367. package/dist/node_modules/zod/src/v4/locales/ua.ts +126 -0
  3368. package/dist/node_modules/zod/src/v4/locales/ur.ts +126 -0
  3369. package/dist/node_modules/zod/src/v4/locales/vi.ts +125 -0
  3370. package/dist/node_modules/zod/src/v4/locales/zh-CN.ts +123 -0
  3371. package/dist/node_modules/zod/src/v4/locales/zh-TW.ts +125 -0
  3372. package/dist/node_modules/zod/src/v4/mini/checks.ts +32 -0
  3373. package/dist/node_modules/zod/src/v4/mini/coerce.ts +22 -0
  3374. package/dist/node_modules/zod/src/v4/mini/external.ts +40 -0
  3375. package/dist/node_modules/zod/src/v4/mini/index.ts +3 -0
  3376. package/dist/node_modules/zod/src/v4/mini/iso.ts +62 -0
  3377. package/dist/node_modules/zod/src/v4/mini/parse.ts +1 -0
  3378. package/dist/node_modules/zod/src/v4/mini/schemas.ts +1579 -0
  3379. package/dist/node_modules/zod/src/v4/mini/tests/assignability.test.ts +129 -0
  3380. package/dist/node_modules/zod/src/v4/mini/tests/brand.test.ts +51 -0
  3381. package/dist/node_modules/zod/src/v4/mini/tests/checks.test.ts +144 -0
  3382. package/dist/node_modules/zod/src/v4/mini/tests/computed.test.ts +36 -0
  3383. package/dist/node_modules/zod/src/v4/mini/tests/error.test.ts +22 -0
  3384. package/dist/node_modules/zod/src/v4/mini/tests/functions.test.ts +43 -0
  3385. package/dist/node_modules/zod/src/v4/mini/tests/index.test.ts +871 -0
  3386. package/dist/node_modules/zod/src/v4/mini/tests/number.test.ts +95 -0
  3387. package/dist/node_modules/zod/src/v4/mini/tests/object.test.ts +185 -0
  3388. package/dist/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +43 -0
  3389. package/dist/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +275 -0
  3390. package/dist/node_modules/zod/src/v4/mini/tests/string.test.ts +299 -0
  3391. package/dist/node_modules/zod/src/v4-mini/index.ts +1 -0
  3392. package/dist/node_modules/zod/v3/ZodError.cjs +138 -0
  3393. package/dist/node_modules/zod/v3/ZodError.d.cts +164 -0
  3394. package/dist/node_modules/zod/v3/ZodError.d.ts +164 -0
  3395. package/dist/node_modules/zod/v3/ZodError.js +133 -0
  3396. package/dist/node_modules/zod/v3/errors.cjs +17 -0
  3397. package/dist/node_modules/zod/v3/errors.d.cts +5 -0
  3398. package/dist/node_modules/zod/v3/errors.d.ts +5 -0
  3399. package/dist/node_modules/zod/v3/errors.js +9 -0
  3400. package/dist/node_modules/zod/v3/external.cjs +22 -0
  3401. package/dist/node_modules/zod/v3/external.d.cts +6 -0
  3402. package/dist/node_modules/zod/v3/external.d.ts +6 -0
  3403. package/dist/node_modules/zod/v3/external.js +6 -0
  3404. package/dist/node_modules/zod/v3/helpers/enumUtil.cjs +2 -0
  3405. package/dist/node_modules/zod/v3/helpers/enumUtil.d.cts +8 -0
  3406. package/dist/node_modules/zod/v3/helpers/enumUtil.d.ts +8 -0
  3407. package/dist/node_modules/zod/v3/helpers/enumUtil.js +1 -0
  3408. package/dist/node_modules/zod/v3/helpers/errorUtil.cjs +9 -0
  3409. package/dist/node_modules/zod/v3/helpers/errorUtil.d.cts +9 -0
  3410. package/dist/node_modules/zod/v3/helpers/errorUtil.d.ts +9 -0
  3411. package/dist/node_modules/zod/v3/helpers/errorUtil.js +6 -0
  3412. package/dist/node_modules/zod/v3/helpers/parseUtil.cjs +124 -0
  3413. package/dist/node_modules/zod/v3/helpers/parseUtil.d.cts +78 -0
  3414. package/dist/node_modules/zod/v3/helpers/parseUtil.d.ts +78 -0
  3415. package/dist/node_modules/zod/v3/helpers/parseUtil.js +109 -0
  3416. package/dist/node_modules/zod/v3/helpers/partialUtil.cjs +2 -0
  3417. package/dist/node_modules/zod/v3/helpers/partialUtil.d.cts +8 -0
  3418. package/dist/node_modules/zod/v3/helpers/partialUtil.d.ts +8 -0
  3419. package/dist/node_modules/zod/v3/helpers/partialUtil.js +1 -0
  3420. package/dist/node_modules/zod/v3/helpers/typeAliases.cjs +2 -0
  3421. package/dist/node_modules/zod/v3/helpers/typeAliases.d.cts +2 -0
  3422. package/dist/node_modules/zod/v3/helpers/typeAliases.d.ts +2 -0
  3423. package/dist/node_modules/zod/v3/helpers/typeAliases.js +1 -0
  3424. package/dist/node_modules/zod/v3/helpers/util.cjs +137 -0
  3425. package/dist/node_modules/zod/v3/helpers/util.d.cts +85 -0
  3426. package/dist/node_modules/zod/v3/helpers/util.d.ts +85 -0
  3427. package/dist/node_modules/zod/v3/helpers/util.js +133 -0
  3428. package/dist/node_modules/zod/v3/index.cjs +33 -0
  3429. package/dist/node_modules/zod/v3/index.d.cts +4 -0
  3430. package/dist/node_modules/zod/v3/index.d.ts +4 -0
  3431. package/dist/node_modules/zod/v3/index.js +4 -0
  3432. package/dist/node_modules/zod/v3/locales/en.cjs +111 -0
  3433. package/dist/node_modules/zod/v3/locales/en.d.cts +3 -0
  3434. package/dist/node_modules/zod/v3/locales/en.d.ts +3 -0
  3435. package/dist/node_modules/zod/v3/locales/en.js +109 -0
  3436. package/dist/node_modules/zod/v3/standard-schema.cjs +2 -0
  3437. package/dist/node_modules/zod/v3/standard-schema.d.cts +102 -0
  3438. package/dist/node_modules/zod/v3/standard-schema.d.ts +102 -0
  3439. package/dist/node_modules/zod/v3/standard-schema.js +1 -0
  3440. package/dist/node_modules/zod/v3/types.cjs +3775 -0
  3441. package/dist/node_modules/zod/v3/types.d.cts +1031 -0
  3442. package/dist/node_modules/zod/v3/types.d.ts +1031 -0
  3443. package/dist/node_modules/zod/v3/types.js +3693 -0
  3444. package/dist/node_modules/zod/v4/classic/checks.cjs +32 -0
  3445. package/dist/node_modules/zod/v4/classic/checks.d.cts +1 -0
  3446. package/dist/node_modules/zod/v4/classic/checks.d.ts +1 -0
  3447. package/dist/node_modules/zod/v4/classic/checks.js +1 -0
  3448. package/dist/node_modules/zod/v4/classic/coerce.cjs +47 -0
  3449. package/dist/node_modules/zod/v4/classic/coerce.d.cts +17 -0
  3450. package/dist/node_modules/zod/v4/classic/coerce.d.ts +17 -0
  3451. package/dist/node_modules/zod/v4/classic/coerce.js +17 -0
  3452. package/dist/node_modules/zod/v4/classic/compat.cjs +57 -0
  3453. package/dist/node_modules/zod/v4/classic/compat.d.cts +46 -0
  3454. package/dist/node_modules/zod/v4/classic/compat.d.ts +46 -0
  3455. package/dist/node_modules/zod/v4/classic/compat.js +27 -0
  3456. package/dist/node_modules/zod/v4/classic/errors.cjs +67 -0
  3457. package/dist/node_modules/zod/v4/classic/errors.d.cts +30 -0
  3458. package/dist/node_modules/zod/v4/classic/errors.d.ts +30 -0
  3459. package/dist/node_modules/zod/v4/classic/errors.js +41 -0
  3460. package/dist/node_modules/zod/v4/classic/external.cjs +70 -0
  3461. package/dist/node_modules/zod/v4/classic/external.d.cts +13 -0
  3462. package/dist/node_modules/zod/v4/classic/external.d.ts +13 -0
  3463. package/dist/node_modules/zod/v4/classic/external.js +18 -0
  3464. package/dist/node_modules/zod/v4/classic/index.cjs +33 -0
  3465. package/dist/node_modules/zod/v4/classic/index.d.cts +4 -0
  3466. package/dist/node_modules/zod/v4/classic/index.d.ts +4 -0
  3467. package/dist/node_modules/zod/v4/classic/index.js +4 -0
  3468. package/dist/node_modules/zod/v4/classic/iso.cjs +60 -0
  3469. package/dist/node_modules/zod/v4/classic/iso.d.cts +22 -0
  3470. package/dist/node_modules/zod/v4/classic/iso.d.ts +22 -0
  3471. package/dist/node_modules/zod/v4/classic/iso.js +30 -0
  3472. package/dist/node_modules/zod/v4/classic/parse.cjs +32 -0
  3473. package/dist/node_modules/zod/v4/classic/parse.d.cts +23 -0
  3474. package/dist/node_modules/zod/v4/classic/parse.d.ts +23 -0
  3475. package/dist/node_modules/zod/v4/classic/parse.js +6 -0
  3476. package/dist/node_modules/zod/v4/classic/schemas.cjs +1109 -0
  3477. package/dist/node_modules/zod/v4/classic/schemas.d.cts +630 -0
  3478. package/dist/node_modules/zod/v4/classic/schemas.d.ts +630 -0
  3479. package/dist/node_modules/zod/v4/classic/schemas.js +1006 -0
  3480. package/dist/node_modules/zod/v4/core/api.cjs +1039 -0
  3481. package/dist/node_modules/zod/v4/core/api.d.cts +284 -0
  3482. package/dist/node_modules/zod/v4/core/api.d.ts +284 -0
  3483. package/dist/node_modules/zod/v4/core/api.js +906 -0
  3484. package/dist/node_modules/zod/v4/core/checks.cjs +591 -0
  3485. package/dist/node_modules/zod/v4/core/checks.d.cts +278 -0
  3486. package/dist/node_modules/zod/v4/core/checks.d.ts +278 -0
  3487. package/dist/node_modules/zod/v4/core/checks.js +565 -0
  3488. package/dist/node_modules/zod/v4/core/core.cjs +67 -0
  3489. package/dist/node_modules/zod/v4/core/core.d.cts +49 -0
  3490. package/dist/node_modules/zod/v4/core/core.d.ts +49 -0
  3491. package/dist/node_modules/zod/v4/core/core.js +61 -0
  3492. package/dist/node_modules/zod/v4/core/doc.cjs +39 -0
  3493. package/dist/node_modules/zod/v4/core/doc.d.cts +14 -0
  3494. package/dist/node_modules/zod/v4/core/doc.d.ts +14 -0
  3495. package/dist/node_modules/zod/v4/core/doc.js +35 -0
  3496. package/dist/node_modules/zod/v4/core/errors.cjs +226 -0
  3497. package/dist/node_modules/zod/v4/core/errors.d.cts +208 -0
  3498. package/dist/node_modules/zod/v4/core/errors.d.ts +208 -0
  3499. package/dist/node_modules/zod/v4/core/errors.js +195 -0
  3500. package/dist/node_modules/zod/v4/core/function.cjs +102 -0
  3501. package/dist/node_modules/zod/v4/core/function.d.cts +52 -0
  3502. package/dist/node_modules/zod/v4/core/function.d.ts +52 -0
  3503. package/dist/node_modules/zod/v4/core/function.js +75 -0
  3504. package/dist/node_modules/zod/v4/core/index.cjs +44 -0
  3505. package/dist/node_modules/zod/v4/core/index.d.cts +15 -0
  3506. package/dist/node_modules/zod/v4/core/index.d.ts +15 -0
  3507. package/dist/node_modules/zod/v4/core/index.js +15 -0
  3508. package/dist/node_modules/zod/v4/core/json-schema.cjs +2 -0
  3509. package/dist/node_modules/zod/v4/core/json-schema.d.cts +87 -0
  3510. package/dist/node_modules/zod/v4/core/json-schema.d.ts +87 -0
  3511. package/dist/node_modules/zod/v4/core/json-schema.js +1 -0
  3512. package/dist/node_modules/zod/v4/core/parse.cjs +87 -0
  3513. package/dist/node_modules/zod/v4/core/parse.d.cts +25 -0
  3514. package/dist/node_modules/zod/v4/core/parse.d.ts +25 -0
  3515. package/dist/node_modules/zod/v4/core/parse.js +57 -0
  3516. package/dist/node_modules/zod/v4/core/regexes.cjs +103 -0
  3517. package/dist/node_modules/zod/v4/core/regexes.d.cts +62 -0
  3518. package/dist/node_modules/zod/v4/core/regexes.d.ts +62 -0
  3519. package/dist/node_modules/zod/v4/core/regexes.js +95 -0
  3520. package/dist/node_modules/zod/v4/core/registries.cjs +56 -0
  3521. package/dist/node_modules/zod/v4/core/registries.d.cts +35 -0
  3522. package/dist/node_modules/zod/v4/core/registries.d.ts +35 -0
  3523. package/dist/node_modules/zod/v4/core/registries.js +51 -0
  3524. package/dist/node_modules/zod/v4/core/schemas.cjs +1748 -0
  3525. package/dist/node_modules/zod/v4/core/schemas.d.cts +1041 -0
  3526. package/dist/node_modules/zod/v4/core/schemas.d.ts +1041 -0
  3527. package/dist/node_modules/zod/v4/core/schemas.js +1717 -0
  3528. package/dist/node_modules/zod/v4/core/standard-schema.cjs +2 -0
  3529. package/dist/node_modules/zod/v4/core/standard-schema.d.cts +55 -0
  3530. package/dist/node_modules/zod/v4/core/standard-schema.d.ts +55 -0
  3531. package/dist/node_modules/zod/v4/core/standard-schema.js +1 -0
  3532. package/dist/node_modules/zod/v4/core/to-json-schema.cjs +854 -0
  3533. package/dist/node_modules/zod/v4/core/to-json-schema.d.cts +88 -0
  3534. package/dist/node_modules/zod/v4/core/to-json-schema.d.ts +88 -0
  3535. package/dist/node_modules/zod/v4/core/to-json-schema.js +849 -0
  3536. package/dist/node_modules/zod/v4/core/util.cjs +539 -0
  3537. package/dist/node_modules/zod/v4/core/util.d.cts +183 -0
  3538. package/dist/node_modules/zod/v4/core/util.d.ts +183 -0
  3539. package/dist/node_modules/zod/v4/core/util.js +493 -0
  3540. package/dist/node_modules/zod/v4/core/versions.cjs +8 -0
  3541. package/dist/node_modules/zod/v4/core/versions.d.cts +5 -0
  3542. package/dist/node_modules/zod/v4/core/versions.d.ts +5 -0
  3543. package/dist/node_modules/zod/v4/core/versions.js +5 -0
  3544. package/dist/node_modules/zod/v4/index.cjs +22 -0
  3545. package/dist/node_modules/zod/v4/index.d.cts +3 -0
  3546. package/dist/node_modules/zod/v4/index.d.ts +3 -0
  3547. package/dist/node_modules/zod/v4/index.js +3 -0
  3548. package/dist/node_modules/zod/v4/locales/ar.cjs +142 -0
  3549. package/dist/node_modules/zod/v4/locales/ar.d.cts +4 -0
  3550. package/dist/node_modules/zod/v4/locales/ar.d.ts +4 -0
  3551. package/dist/node_modules/zod/v4/locales/ar.js +116 -0
  3552. package/dist/node_modules/zod/v4/locales/az.cjs +141 -0
  3553. package/dist/node_modules/zod/v4/locales/az.d.cts +4 -0
  3554. package/dist/node_modules/zod/v4/locales/az.d.ts +4 -0
  3555. package/dist/node_modules/zod/v4/locales/az.js +115 -0
  3556. package/dist/node_modules/zod/v4/locales/be.cjs +190 -0
  3557. package/dist/node_modules/zod/v4/locales/be.d.cts +4 -0
  3558. package/dist/node_modules/zod/v4/locales/be.d.ts +4 -0
  3559. package/dist/node_modules/zod/v4/locales/be.js +164 -0
  3560. package/dist/node_modules/zod/v4/locales/ca.cjs +144 -0
  3561. package/dist/node_modules/zod/v4/locales/ca.d.cts +4 -0
  3562. package/dist/node_modules/zod/v4/locales/ca.d.ts +4 -0
  3563. package/dist/node_modules/zod/v4/locales/ca.js +118 -0
  3564. package/dist/node_modules/zod/v4/locales/cs.cjs +161 -0
  3565. package/dist/node_modules/zod/v4/locales/cs.d.cts +4 -0
  3566. package/dist/node_modules/zod/v4/locales/cs.d.ts +4 -0
  3567. package/dist/node_modules/zod/v4/locales/cs.js +135 -0
  3568. package/dist/node_modules/zod/v4/locales/de.cjs +142 -0
  3569. package/dist/node_modules/zod/v4/locales/de.d.cts +4 -0
  3570. package/dist/node_modules/zod/v4/locales/de.d.ts +4 -0
  3571. package/dist/node_modules/zod/v4/locales/de.js +116 -0
  3572. package/dist/node_modules/zod/v4/locales/en.cjs +145 -0
  3573. package/dist/node_modules/zod/v4/locales/en.d.cts +5 -0
  3574. package/dist/node_modules/zod/v4/locales/en.d.ts +5 -0
  3575. package/dist/node_modules/zod/v4/locales/en.js +117 -0
  3576. package/dist/node_modules/zod/v4/locales/eo.cjs +144 -0
  3577. package/dist/node_modules/zod/v4/locales/eo.d.cts +5 -0
  3578. package/dist/node_modules/zod/v4/locales/eo.d.ts +5 -0
  3579. package/dist/node_modules/zod/v4/locales/eo.js +116 -0
  3580. package/dist/node_modules/zod/v4/locales/es.cjs +143 -0
  3581. package/dist/node_modules/zod/v4/locales/es.d.cts +4 -0
  3582. package/dist/node_modules/zod/v4/locales/es.d.ts +4 -0
  3583. package/dist/node_modules/zod/v4/locales/es.js +117 -0
  3584. package/dist/node_modules/zod/v4/locales/fa.cjs +148 -0
  3585. package/dist/node_modules/zod/v4/locales/fa.d.cts +4 -0
  3586. package/dist/node_modules/zod/v4/locales/fa.d.ts +4 -0
  3587. package/dist/node_modules/zod/v4/locales/fa.js +122 -0
  3588. package/dist/node_modules/zod/v4/locales/fi.cjs +148 -0
  3589. package/dist/node_modules/zod/v4/locales/fi.d.cts +4 -0
  3590. package/dist/node_modules/zod/v4/locales/fi.d.ts +4 -0
  3591. package/dist/node_modules/zod/v4/locales/fi.js +122 -0
  3592. package/dist/node_modules/zod/v4/locales/fr-CA.cjs +143 -0
  3593. package/dist/node_modules/zod/v4/locales/fr-CA.d.cts +4 -0
  3594. package/dist/node_modules/zod/v4/locales/fr-CA.d.ts +4 -0
  3595. package/dist/node_modules/zod/v4/locales/fr-CA.js +117 -0
  3596. package/dist/node_modules/zod/v4/locales/fr.cjs +142 -0
  3597. package/dist/node_modules/zod/v4/locales/fr.d.cts +4 -0
  3598. package/dist/node_modules/zod/v4/locales/fr.d.ts +4 -0
  3599. package/dist/node_modules/zod/v4/locales/fr.js +116 -0
  3600. package/dist/node_modules/zod/v4/locales/he.cjs +143 -0
  3601. package/dist/node_modules/zod/v4/locales/he.d.cts +4 -0
  3602. package/dist/node_modules/zod/v4/locales/he.d.ts +4 -0
  3603. package/dist/node_modules/zod/v4/locales/he.js +117 -0
  3604. package/dist/node_modules/zod/v4/locales/hu.cjs +143 -0
  3605. package/dist/node_modules/zod/v4/locales/hu.d.cts +4 -0
  3606. package/dist/node_modules/zod/v4/locales/hu.d.ts +4 -0
  3607. package/dist/node_modules/zod/v4/locales/hu.js +117 -0
  3608. package/dist/node_modules/zod/v4/locales/id.cjs +142 -0
  3609. package/dist/node_modules/zod/v4/locales/id.d.cts +4 -0
  3610. package/dist/node_modules/zod/v4/locales/id.d.ts +4 -0
  3611. package/dist/node_modules/zod/v4/locales/id.js +116 -0
  3612. package/dist/node_modules/zod/v4/locales/index.cjs +84 -0
  3613. package/dist/node_modules/zod/v4/locales/index.d.cts +39 -0
  3614. package/dist/node_modules/zod/v4/locales/index.d.ts +39 -0
  3615. package/dist/node_modules/zod/v4/locales/index.js +39 -0
  3616. package/dist/node_modules/zod/v4/locales/it.cjs +143 -0
  3617. package/dist/node_modules/zod/v4/locales/it.d.cts +4 -0
  3618. package/dist/node_modules/zod/v4/locales/it.d.ts +4 -0
  3619. package/dist/node_modules/zod/v4/locales/it.js +117 -0
  3620. package/dist/node_modules/zod/v4/locales/ja.cjs +141 -0
  3621. package/dist/node_modules/zod/v4/locales/ja.d.cts +4 -0
  3622. package/dist/node_modules/zod/v4/locales/ja.d.ts +4 -0
  3623. package/dist/node_modules/zod/v4/locales/ja.js +115 -0
  3624. package/dist/node_modules/zod/v4/locales/kh.cjs +143 -0
  3625. package/dist/node_modules/zod/v4/locales/kh.d.cts +4 -0
  3626. package/dist/node_modules/zod/v4/locales/kh.d.ts +4 -0
  3627. package/dist/node_modules/zod/v4/locales/kh.js +117 -0
  3628. package/dist/node_modules/zod/v4/locales/ko.cjs +147 -0
  3629. package/dist/node_modules/zod/v4/locales/ko.d.cts +4 -0
  3630. package/dist/node_modules/zod/v4/locales/ko.d.ts +4 -0
  3631. package/dist/node_modules/zod/v4/locales/ko.js +121 -0
  3632. package/dist/node_modules/zod/v4/locales/mk.cjs +144 -0
  3633. package/dist/node_modules/zod/v4/locales/mk.d.cts +4 -0
  3634. package/dist/node_modules/zod/v4/locales/mk.d.ts +4 -0
  3635. package/dist/node_modules/zod/v4/locales/mk.js +118 -0
  3636. package/dist/node_modules/zod/v4/locales/ms.cjs +142 -0
  3637. package/dist/node_modules/zod/v4/locales/ms.d.cts +4 -0
  3638. package/dist/node_modules/zod/v4/locales/ms.d.ts +4 -0
  3639. package/dist/node_modules/zod/v4/locales/ms.js +116 -0
  3640. package/dist/node_modules/zod/v4/locales/nl.cjs +143 -0
  3641. package/dist/node_modules/zod/v4/locales/nl.d.cts +4 -0
  3642. package/dist/node_modules/zod/v4/locales/nl.d.ts +4 -0
  3643. package/dist/node_modules/zod/v4/locales/nl.js +117 -0
  3644. package/dist/node_modules/zod/v4/locales/no.cjs +142 -0
  3645. package/dist/node_modules/zod/v4/locales/no.d.cts +4 -0
  3646. package/dist/node_modules/zod/v4/locales/no.d.ts +4 -0
  3647. package/dist/node_modules/zod/v4/locales/no.js +116 -0
  3648. package/dist/node_modules/zod/v4/locales/ota.cjs +143 -0
  3649. package/dist/node_modules/zod/v4/locales/ota.d.cts +4 -0
  3650. package/dist/node_modules/zod/v4/locales/ota.d.ts +4 -0
  3651. package/dist/node_modules/zod/v4/locales/ota.js +117 -0
  3652. package/dist/node_modules/zod/v4/locales/pl.cjs +143 -0
  3653. package/dist/node_modules/zod/v4/locales/pl.d.cts +4 -0
  3654. package/dist/node_modules/zod/v4/locales/pl.d.ts +4 -0
  3655. package/dist/node_modules/zod/v4/locales/pl.js +117 -0
  3656. package/dist/node_modules/zod/v4/locales/ps.cjs +148 -0
  3657. package/dist/node_modules/zod/v4/locales/ps.d.cts +4 -0
  3658. package/dist/node_modules/zod/v4/locales/ps.d.ts +4 -0
  3659. package/dist/node_modules/zod/v4/locales/ps.js +122 -0
  3660. package/dist/node_modules/zod/v4/locales/pt.cjs +142 -0
  3661. package/dist/node_modules/zod/v4/locales/pt.d.cts +4 -0
  3662. package/dist/node_modules/zod/v4/locales/pt.d.ts +4 -0
  3663. package/dist/node_modules/zod/v4/locales/pt.js +116 -0
  3664. package/dist/node_modules/zod/v4/locales/ru.cjs +190 -0
  3665. package/dist/node_modules/zod/v4/locales/ru.d.cts +4 -0
  3666. package/dist/node_modules/zod/v4/locales/ru.d.ts +4 -0
  3667. package/dist/node_modules/zod/v4/locales/ru.js +164 -0
  3668. package/dist/node_modules/zod/v4/locales/sl.cjs +143 -0
  3669. package/dist/node_modules/zod/v4/locales/sl.d.cts +4 -0
  3670. package/dist/node_modules/zod/v4/locales/sl.d.ts +4 -0
  3671. package/dist/node_modules/zod/v4/locales/sl.js +117 -0
  3672. package/dist/node_modules/zod/v4/locales/sv.cjs +144 -0
  3673. package/dist/node_modules/zod/v4/locales/sv.d.cts +4 -0
  3674. package/dist/node_modules/zod/v4/locales/sv.d.ts +4 -0
  3675. package/dist/node_modules/zod/v4/locales/sv.js +118 -0
  3676. package/dist/node_modules/zod/v4/locales/ta.cjs +143 -0
  3677. package/dist/node_modules/zod/v4/locales/ta.d.cts +4 -0
  3678. package/dist/node_modules/zod/v4/locales/ta.d.ts +4 -0
  3679. package/dist/node_modules/zod/v4/locales/ta.js +117 -0
  3680. package/dist/node_modules/zod/v4/locales/th.cjs +143 -0
  3681. package/dist/node_modules/zod/v4/locales/th.d.cts +4 -0
  3682. package/dist/node_modules/zod/v4/locales/th.d.ts +4 -0
  3683. package/dist/node_modules/zod/v4/locales/th.js +117 -0
  3684. package/dist/node_modules/zod/v4/locales/tr.cjs +143 -0
  3685. package/dist/node_modules/zod/v4/locales/tr.d.cts +5 -0
  3686. package/dist/node_modules/zod/v4/locales/tr.d.ts +5 -0
  3687. package/dist/node_modules/zod/v4/locales/tr.js +115 -0
  3688. package/dist/node_modules/zod/v4/locales/ua.cjs +143 -0
  3689. package/dist/node_modules/zod/v4/locales/ua.d.cts +4 -0
  3690. package/dist/node_modules/zod/v4/locales/ua.d.ts +4 -0
  3691. package/dist/node_modules/zod/v4/locales/ua.js +117 -0
  3692. package/dist/node_modules/zod/v4/locales/ur.cjs +143 -0
  3693. package/dist/node_modules/zod/v4/locales/ur.d.cts +4 -0
  3694. package/dist/node_modules/zod/v4/locales/ur.d.ts +4 -0
  3695. package/dist/node_modules/zod/v4/locales/ur.js +117 -0
  3696. package/dist/node_modules/zod/v4/locales/vi.cjs +142 -0
  3697. package/dist/node_modules/zod/v4/locales/vi.d.cts +4 -0
  3698. package/dist/node_modules/zod/v4/locales/vi.d.ts +4 -0
  3699. package/dist/node_modules/zod/v4/locales/vi.js +116 -0
  3700. package/dist/node_modules/zod/v4/locales/zh-CN.cjs +142 -0
  3701. package/dist/node_modules/zod/v4/locales/zh-CN.d.cts +4 -0
  3702. package/dist/node_modules/zod/v4/locales/zh-CN.d.ts +4 -0
  3703. package/dist/node_modules/zod/v4/locales/zh-CN.js +116 -0
  3704. package/dist/node_modules/zod/v4/locales/zh-TW.cjs +143 -0
  3705. package/dist/node_modules/zod/v4/locales/zh-TW.d.cts +4 -0
  3706. package/dist/node_modules/zod/v4/locales/zh-TW.d.ts +4 -0
  3707. package/dist/node_modules/zod/v4/locales/zh-TW.js +117 -0
  3708. package/dist/node_modules/zod/v4/mini/checks.cjs +34 -0
  3709. package/dist/node_modules/zod/v4/mini/checks.d.cts +1 -0
  3710. package/dist/node_modules/zod/v4/mini/checks.d.ts +1 -0
  3711. package/dist/node_modules/zod/v4/mini/checks.js +1 -0
  3712. package/dist/node_modules/zod/v4/mini/coerce.cjs +47 -0
  3713. package/dist/node_modules/zod/v4/mini/coerce.d.cts +7 -0
  3714. package/dist/node_modules/zod/v4/mini/coerce.d.ts +7 -0
  3715. package/dist/node_modules/zod/v4/mini/coerce.js +17 -0
  3716. package/dist/node_modules/zod/v4/mini/external.cjs +62 -0
  3717. package/dist/node_modules/zod/v4/mini/external.d.cts +11 -0
  3718. package/dist/node_modules/zod/v4/mini/external.d.ts +11 -0
  3719. package/dist/node_modules/zod/v4/mini/external.js +13 -0
  3720. package/dist/node_modules/zod/v4/mini/index.cjs +32 -0
  3721. package/dist/node_modules/zod/v4/mini/index.d.cts +3 -0
  3722. package/dist/node_modules/zod/v4/mini/index.d.ts +3 -0
  3723. package/dist/node_modules/zod/v4/mini/index.js +3 -0
  3724. package/dist/node_modules/zod/v4/mini/iso.cjs +60 -0
  3725. package/dist/node_modules/zod/v4/mini/iso.d.cts +22 -0
  3726. package/dist/node_modules/zod/v4/mini/iso.d.ts +22 -0
  3727. package/dist/node_modules/zod/v4/mini/iso.js +30 -0
  3728. package/dist/node_modules/zod/v4/mini/parse.cjs +8 -0
  3729. package/dist/node_modules/zod/v4/mini/parse.d.cts +1 -0
  3730. package/dist/node_modules/zod/v4/mini/parse.d.ts +1 -0
  3731. package/dist/node_modules/zod/v4/mini/parse.js +1 -0
  3732. package/dist/node_modules/zod/v4/mini/schemas.cjs +839 -0
  3733. package/dist/node_modules/zod/v4/mini/schemas.d.cts +356 -0
  3734. package/dist/node_modules/zod/v4/mini/schemas.d.ts +356 -0
  3735. package/dist/node_modules/zod/v4/mini/schemas.js +732 -0
  3736. package/dist/node_modules/zod/v4-mini/index.cjs +17 -0
  3737. package/dist/node_modules/zod/v4-mini/index.d.cts +1 -0
  3738. package/dist/node_modules/zod/v4-mini/index.d.ts +1 -0
  3739. package/dist/node_modules/zod/v4-mini/index.js +1 -0
  3740. package/dist/node_modules/zwitch/index.d.ts +67 -0
  3741. package/dist/node_modules/zwitch/index.js +118 -0
  3742. package/dist/node_modules/zwitch/license +22 -0
  3743. package/dist/node_modules/zwitch/package.json +72 -0
  3744. package/dist/node_modules/zwitch/readme.md +226 -0
  3745. package/dist/owner-report.d.ts +26 -0
  3746. package/dist/owner-report.js +98 -0
  3747. package/dist/policy-store.d.ts +6 -10
  3748. package/dist/policy-store.js +9 -23
  3749. package/dist/policy.d.ts +6 -35
  3750. package/dist/policy.js +6 -75
  3751. package/dist/runtime-manifest.json +1 -0
  3752. package/dist/server-ops.d.ts +22 -40
  3753. package/dist/server-ops.js +313 -220
  3754. package/dist/staged-connect.d.ts +37 -0
  3755. package/dist/staged-connect.js +333 -0
  3756. package/dist/staged-device.d.ts +109 -0
  3757. package/dist/staged-device.js +230 -0
  3758. package/dist/staged-session.d.ts +115 -0
  3759. package/dist/staged-session.js +354 -0
  3760. package/dist/state.d.ts +36 -8
  3761. package/dist/state.js +102 -15
  3762. package/package.json +10 -6
  3763. package/dist/commands/mode.d.ts +0 -69
  3764. package/dist/commands/mode.js +0 -129
  3765. package/dist/exec/fs-helper.d.ts +0 -21
  3766. package/dist/exec/fs-helper.js +0 -171
  3767. package/dist/exec/host.d.ts +0 -61
  3768. package/dist/exec/host.js +0 -203
  3769. package/dist/exec/listing.d.ts +0 -35
  3770. package/dist/exec/listing.js +0 -157
  3771. package/dist/exec/os.d.ts +0 -162
  3772. package/dist/exec/os.js +0 -616
  3773. package/dist/exec/procs.d.ts +0 -11
  3774. package/dist/exec/procs.js +0 -67
  3775. package/dist/exec/reap.d.ts +0 -41
  3776. package/dist/exec/reap.js +0 -89
  3777. package/dist/exec/switch.d.ts +0 -107
  3778. package/dist/exec/switch.js +0 -203
  3779. package/dist/network.d.ts +0 -45
  3780. package/dist/network.js +0 -154
@@ -0,0 +1,3946 @@
1
+ /**
2
+ * Javascript implementation of X.509 and related components (such as
3
+ * Certification Signing Requests) of a Public Key Infrastructure.
4
+ *
5
+ * @author Dave Longley
6
+ *
7
+ * Copyright (c) 2010-2014 Digital Bazaar, Inc.
8
+ *
9
+ * The ASN.1 representation of an X.509v3 certificate is as follows
10
+ * (see RFC 2459):
11
+ *
12
+ * Certificate ::= SEQUENCE {
13
+ * tbsCertificate TBSCertificate,
14
+ * signatureAlgorithm AlgorithmIdentifier,
15
+ * signatureValue BIT STRING
16
+ * }
17
+ *
18
+ * TBSCertificate ::= SEQUENCE {
19
+ * version [0] EXPLICIT Version DEFAULT v1,
20
+ * serialNumber CertificateSerialNumber,
21
+ * signature AlgorithmIdentifier,
22
+ * issuer Name,
23
+ * validity Validity,
24
+ * subject Name,
25
+ * subjectPublicKeyInfo SubjectPublicKeyInfo,
26
+ * issuerUniqueID [1] IMPLICIT UniqueIdentifier OPTIONAL,
27
+ * -- If present, version shall be v2 or v3
28
+ * subjectUniqueID [2] IMPLICIT UniqueIdentifier OPTIONAL,
29
+ * -- If present, version shall be v2 or v3
30
+ * extensions [3] EXPLICIT Extensions OPTIONAL
31
+ * -- If present, version shall be v3
32
+ * }
33
+ *
34
+ * Version ::= INTEGER { v1(0), v2(1), v3(2) }
35
+ *
36
+ * CertificateSerialNumber ::= INTEGER
37
+ *
38
+ * Name ::= CHOICE {
39
+ * // only one possible choice for now
40
+ * RDNSequence
41
+ * }
42
+ *
43
+ * RDNSequence ::= SEQUENCE OF RelativeDistinguishedName
44
+ *
45
+ * RelativeDistinguishedName ::= SET OF AttributeTypeAndValue
46
+ *
47
+ * AttributeTypeAndValue ::= SEQUENCE {
48
+ * type AttributeType,
49
+ * value AttributeValue
50
+ * }
51
+ * AttributeType ::= OBJECT IDENTIFIER
52
+ * AttributeValue ::= ANY DEFINED BY AttributeType
53
+ *
54
+ * Validity ::= SEQUENCE {
55
+ * notBefore Time,
56
+ * notAfter Time
57
+ * }
58
+ *
59
+ * Time ::= CHOICE {
60
+ * utcTime UTCTime,
61
+ * generalTime GeneralizedTime
62
+ * }
63
+ *
64
+ * UniqueIdentifier ::= BIT STRING
65
+ *
66
+ * SubjectPublicKeyInfo ::= SEQUENCE {
67
+ * algorithm AlgorithmIdentifier,
68
+ * subjectPublicKey BIT STRING
69
+ * }
70
+ *
71
+ * Extensions ::= SEQUENCE SIZE (1..MAX) OF Extension
72
+ *
73
+ * Extension ::= SEQUENCE {
74
+ * extnID OBJECT IDENTIFIER,
75
+ * critical BOOLEAN DEFAULT FALSE,
76
+ * extnValue OCTET STRING
77
+ * }
78
+ *
79
+ * The only key algorithm currently supported for PKI is RSA.
80
+ *
81
+ * RSASSA-PSS signatures are described in RFC 3447 and RFC 4055.
82
+ *
83
+ * PKCS#10 v1.7 describes certificate signing requests:
84
+ *
85
+ * CertificationRequestInfo:
86
+ *
87
+ * CertificationRequestInfo ::= SEQUENCE {
88
+ * version INTEGER { v1(0) } (v1,...),
89
+ * subject Name,
90
+ * subjectPKInfo SubjectPublicKeyInfo{{ PKInfoAlgorithms }},
91
+ * attributes [0] Attributes{{ CRIAttributes }}
92
+ * }
93
+ *
94
+ * Attributes { ATTRIBUTE:IOSet } ::= SET OF Attribute{{ IOSet }}
95
+ *
96
+ * CRIAttributes ATTRIBUTE ::= {
97
+ * ... -- add any locally defined attributes here -- }
98
+ *
99
+ * Attribute { ATTRIBUTE:IOSet } ::= SEQUENCE {
100
+ * type ATTRIBUTE.&id({IOSet}),
101
+ * values SET SIZE(1..MAX) OF ATTRIBUTE.&Type({IOSet}{@type})
102
+ * }
103
+ *
104
+ * CertificationRequest ::= SEQUENCE {
105
+ * certificationRequestInfo CertificationRequestInfo,
106
+ * signatureAlgorithm AlgorithmIdentifier{{ SignatureAlgorithms }},
107
+ * signature BIT STRING
108
+ * }
109
+ */
110
+ var forge = require('./forge');
111
+ require('./aes');
112
+ require('./asn1');
113
+ require('./des');
114
+ require('./md');
115
+ require('./mgf');
116
+ require('./oids');
117
+ require('./pem');
118
+ require('./pss');
119
+ require('./rsa');
120
+ require('./util');
121
+
122
+ // shortcut for asn.1 API
123
+ var asn1 = forge.asn1;
124
+
125
+ /* Public Key Infrastructure (PKI) implementation. */
126
+ var pki = module.exports = forge.pki = forge.pki || {};
127
+ var oids = pki.oids;
128
+
129
+ // short name OID mappings
130
+ var _shortNames = {};
131
+ _shortNames['CN'] = oids['commonName'];
132
+ _shortNames['commonName'] = 'CN';
133
+ _shortNames['C'] = oids['countryName'];
134
+ _shortNames['countryName'] = 'C';
135
+ _shortNames['L'] = oids['localityName'];
136
+ _shortNames['localityName'] = 'L';
137
+ _shortNames['ST'] = oids['stateOrProvinceName'];
138
+ _shortNames['stateOrProvinceName'] = 'ST';
139
+ _shortNames['O'] = oids['organizationName'];
140
+ _shortNames['organizationName'] = 'O';
141
+ _shortNames['OU'] = oids['organizationalUnitName'];
142
+ _shortNames['organizationalUnitName'] = 'OU';
143
+ _shortNames['E'] = oids['emailAddress'];
144
+ _shortNames['emailAddress'] = 'E';
145
+
146
+ // validator for an SubjectPublicKeyInfo structure
147
+ // Note: Currently only works with an RSA public key
148
+ var publicKeyValidator = forge.pki.rsa.publicKeyValidator;
149
+
150
+ // validator for an X.509v3 certificate
151
+ var x509CertificateValidator = {
152
+ name: 'Certificate',
153
+ tagClass: asn1.Class.UNIVERSAL,
154
+ type: asn1.Type.SEQUENCE,
155
+ constructed: true,
156
+ value: [{
157
+ name: 'Certificate.TBSCertificate',
158
+ tagClass: asn1.Class.UNIVERSAL,
159
+ type: asn1.Type.SEQUENCE,
160
+ constructed: true,
161
+ captureAsn1: 'tbsCertificate',
162
+ value: [{
163
+ name: 'Certificate.TBSCertificate.version',
164
+ tagClass: asn1.Class.CONTEXT_SPECIFIC,
165
+ type: 0,
166
+ constructed: true,
167
+ optional: true,
168
+ value: [{
169
+ name: 'Certificate.TBSCertificate.version.integer',
170
+ tagClass: asn1.Class.UNIVERSAL,
171
+ type: asn1.Type.INTEGER,
172
+ constructed: false,
173
+ capture: 'certVersion'
174
+ }]
175
+ }, {
176
+ name: 'Certificate.TBSCertificate.serialNumber',
177
+ tagClass: asn1.Class.UNIVERSAL,
178
+ type: asn1.Type.INTEGER,
179
+ constructed: false,
180
+ capture: 'certSerialNumber'
181
+ }, {
182
+ name: 'Certificate.TBSCertificate.signature',
183
+ tagClass: asn1.Class.UNIVERSAL,
184
+ type: asn1.Type.SEQUENCE,
185
+ constructed: true,
186
+ value: [{
187
+ name: 'Certificate.TBSCertificate.signature.algorithm',
188
+ tagClass: asn1.Class.UNIVERSAL,
189
+ type: asn1.Type.OID,
190
+ constructed: false,
191
+ capture: 'certinfoSignatureOid'
192
+ }, {
193
+ name: 'Certificate.TBSCertificate.signature.parameters',
194
+ tagClass: asn1.Class.UNIVERSAL,
195
+ optional: true,
196
+ captureAsn1: 'certinfoSignatureParams'
197
+ }]
198
+ }, {
199
+ name: 'Certificate.TBSCertificate.issuer',
200
+ tagClass: asn1.Class.UNIVERSAL,
201
+ type: asn1.Type.SEQUENCE,
202
+ constructed: true,
203
+ captureAsn1: 'certIssuer'
204
+ }, {
205
+ name: 'Certificate.TBSCertificate.validity',
206
+ tagClass: asn1.Class.UNIVERSAL,
207
+ type: asn1.Type.SEQUENCE,
208
+ constructed: true,
209
+ // Note: UTC and generalized times may both appear so the capture
210
+ // names are based on their detected order, the names used below
211
+ // are only for the common case, which validity time really means
212
+ // "notBefore" and which means "notAfter" will be determined by order
213
+ value: [{
214
+ // notBefore (Time) (UTC time case)
215
+ name: 'Certificate.TBSCertificate.validity.notBefore (utc)',
216
+ tagClass: asn1.Class.UNIVERSAL,
217
+ type: asn1.Type.UTCTIME,
218
+ constructed: false,
219
+ optional: true,
220
+ capture: 'certValidity1UTCTime'
221
+ }, {
222
+ // notBefore (Time) (generalized time case)
223
+ name: 'Certificate.TBSCertificate.validity.notBefore (generalized)',
224
+ tagClass: asn1.Class.UNIVERSAL,
225
+ type: asn1.Type.GENERALIZEDTIME,
226
+ constructed: false,
227
+ optional: true,
228
+ capture: 'certValidity2GeneralizedTime'
229
+ }, {
230
+ // notAfter (Time) (only UTC time is supported)
231
+ name: 'Certificate.TBSCertificate.validity.notAfter (utc)',
232
+ tagClass: asn1.Class.UNIVERSAL,
233
+ type: asn1.Type.UTCTIME,
234
+ constructed: false,
235
+ optional: true,
236
+ capture: 'certValidity3UTCTime'
237
+ }, {
238
+ // notAfter (Time) (only UTC time is supported)
239
+ name: 'Certificate.TBSCertificate.validity.notAfter (generalized)',
240
+ tagClass: asn1.Class.UNIVERSAL,
241
+ type: asn1.Type.GENERALIZEDTIME,
242
+ constructed: false,
243
+ optional: true,
244
+ capture: 'certValidity4GeneralizedTime'
245
+ }]
246
+ }, {
247
+ // Name (subject) (RDNSequence)
248
+ name: 'Certificate.TBSCertificate.subject',
249
+ tagClass: asn1.Class.UNIVERSAL,
250
+ type: asn1.Type.SEQUENCE,
251
+ constructed: true,
252
+ captureAsn1: 'certSubject'
253
+ },
254
+ // SubjectPublicKeyInfo
255
+ publicKeyValidator,
256
+ {
257
+ // issuerUniqueID (optional)
258
+ name: 'Certificate.TBSCertificate.issuerUniqueID',
259
+ tagClass: asn1.Class.CONTEXT_SPECIFIC,
260
+ type: 1,
261
+ constructed: true,
262
+ optional: true,
263
+ value: [{
264
+ name: 'Certificate.TBSCertificate.issuerUniqueID.id',
265
+ tagClass: asn1.Class.UNIVERSAL,
266
+ type: asn1.Type.BITSTRING,
267
+ constructed: false,
268
+ // TODO: support arbitrary bit length ids
269
+ captureBitStringValue: 'certIssuerUniqueId'
270
+ }]
271
+ }, {
272
+ // subjectUniqueID (optional)
273
+ name: 'Certificate.TBSCertificate.subjectUniqueID',
274
+ tagClass: asn1.Class.CONTEXT_SPECIFIC,
275
+ type: 2,
276
+ constructed: true,
277
+ optional: true,
278
+ value: [{
279
+ name: 'Certificate.TBSCertificate.subjectUniqueID.id',
280
+ tagClass: asn1.Class.UNIVERSAL,
281
+ type: asn1.Type.BITSTRING,
282
+ constructed: false,
283
+ // TODO: support arbitrary bit length ids
284
+ captureBitStringValue: 'certSubjectUniqueId'
285
+ }]
286
+ }, {
287
+ // Extensions (optional)
288
+ name: 'Certificate.TBSCertificate.extensions',
289
+ tagClass: asn1.Class.CONTEXT_SPECIFIC,
290
+ type: 3,
291
+ constructed: true,
292
+ captureAsn1: 'certExtensions',
293
+ optional: true
294
+ }]
295
+ }, {
296
+ // AlgorithmIdentifier (signature algorithm)
297
+ name: 'Certificate.signatureAlgorithm',
298
+ tagClass: asn1.Class.UNIVERSAL,
299
+ type: asn1.Type.SEQUENCE,
300
+ constructed: true,
301
+ value: [{
302
+ // algorithm
303
+ name: 'Certificate.signatureAlgorithm.algorithm',
304
+ tagClass: asn1.Class.UNIVERSAL,
305
+ type: asn1.Type.OID,
306
+ constructed: false,
307
+ capture: 'certSignatureOid'
308
+ }, {
309
+ name: 'Certificate.TBSCertificate.signature.parameters',
310
+ tagClass: asn1.Class.UNIVERSAL,
311
+ optional: true,
312
+ captureAsn1: 'certSignatureParams'
313
+ }]
314
+ }, {
315
+ // SignatureValue
316
+ name: 'Certificate.signatureValue',
317
+ tagClass: asn1.Class.UNIVERSAL,
318
+ type: asn1.Type.BITSTRING,
319
+ constructed: false,
320
+ captureBitStringValue: 'certSignature'
321
+ }]
322
+ };
323
+
324
+ var rsassaPssParameterValidator = {
325
+ name: 'rsapss',
326
+ tagClass: asn1.Class.UNIVERSAL,
327
+ type: asn1.Type.SEQUENCE,
328
+ constructed: true,
329
+ value: [{
330
+ name: 'rsapss.hashAlgorithm',
331
+ tagClass: asn1.Class.CONTEXT_SPECIFIC,
332
+ type: 0,
333
+ constructed: true,
334
+ value: [{
335
+ name: 'rsapss.hashAlgorithm.AlgorithmIdentifier',
336
+ tagClass: asn1.Class.UNIVERSAL,
337
+ type: asn1.Class.SEQUENCE,
338
+ constructed: true,
339
+ optional: true,
340
+ value: [{
341
+ name: 'rsapss.hashAlgorithm.AlgorithmIdentifier.algorithm',
342
+ tagClass: asn1.Class.UNIVERSAL,
343
+ type: asn1.Type.OID,
344
+ constructed: false,
345
+ capture: 'hashOid'
346
+ /* parameter block omitted, for SHA1 NULL anyhow. */
347
+ }]
348
+ }]
349
+ }, {
350
+ name: 'rsapss.maskGenAlgorithm',
351
+ tagClass: asn1.Class.CONTEXT_SPECIFIC,
352
+ type: 1,
353
+ constructed: true,
354
+ value: [{
355
+ name: 'rsapss.maskGenAlgorithm.AlgorithmIdentifier',
356
+ tagClass: asn1.Class.UNIVERSAL,
357
+ type: asn1.Class.SEQUENCE,
358
+ constructed: true,
359
+ optional: true,
360
+ value: [{
361
+ name: 'rsapss.maskGenAlgorithm.AlgorithmIdentifier.algorithm',
362
+ tagClass: asn1.Class.UNIVERSAL,
363
+ type: asn1.Type.OID,
364
+ constructed: false,
365
+ capture: 'maskGenOid'
366
+ }, {
367
+ name: 'rsapss.maskGenAlgorithm.AlgorithmIdentifier.params',
368
+ tagClass: asn1.Class.UNIVERSAL,
369
+ type: asn1.Type.SEQUENCE,
370
+ constructed: true,
371
+ value: [{
372
+ name: 'rsapss.maskGenAlgorithm.AlgorithmIdentifier.params.algorithm',
373
+ tagClass: asn1.Class.UNIVERSAL,
374
+ type: asn1.Type.OID,
375
+ constructed: false,
376
+ capture: 'maskGenHashOid'
377
+ /* parameter block omitted, for SHA1 NULL anyhow. */
378
+ }]
379
+ }]
380
+ }]
381
+ }, {
382
+ name: 'rsapss.saltLength',
383
+ tagClass: asn1.Class.CONTEXT_SPECIFIC,
384
+ type: 2,
385
+ optional: true,
386
+ value: [{
387
+ name: 'rsapss.saltLength.saltLength',
388
+ tagClass: asn1.Class.UNIVERSAL,
389
+ type: asn1.Class.INTEGER,
390
+ constructed: false,
391
+ capture: 'saltLength'
392
+ }]
393
+ }, {
394
+ name: 'rsapss.trailerField',
395
+ tagClass: asn1.Class.CONTEXT_SPECIFIC,
396
+ type: 3,
397
+ optional: true,
398
+ value: [{
399
+ name: 'rsapss.trailer.trailer',
400
+ tagClass: asn1.Class.UNIVERSAL,
401
+ type: asn1.Class.INTEGER,
402
+ constructed: false,
403
+ capture: 'trailer'
404
+ }]
405
+ }]
406
+ };
407
+
408
+ // validator for a CertificationRequestInfo structure
409
+ var certificationRequestInfoValidator = {
410
+ name: 'CertificationRequestInfo',
411
+ tagClass: asn1.Class.UNIVERSAL,
412
+ type: asn1.Type.SEQUENCE,
413
+ constructed: true,
414
+ captureAsn1: 'certificationRequestInfo',
415
+ value: [{
416
+ name: 'CertificationRequestInfo.integer',
417
+ tagClass: asn1.Class.UNIVERSAL,
418
+ type: asn1.Type.INTEGER,
419
+ constructed: false,
420
+ capture: 'certificationRequestInfoVersion'
421
+ }, {
422
+ // Name (subject) (RDNSequence)
423
+ name: 'CertificationRequestInfo.subject',
424
+ tagClass: asn1.Class.UNIVERSAL,
425
+ type: asn1.Type.SEQUENCE,
426
+ constructed: true,
427
+ captureAsn1: 'certificationRequestInfoSubject'
428
+ },
429
+ // SubjectPublicKeyInfo
430
+ publicKeyValidator,
431
+ {
432
+ name: 'CertificationRequestInfo.attributes',
433
+ tagClass: asn1.Class.CONTEXT_SPECIFIC,
434
+ type: 0,
435
+ constructed: true,
436
+ optional: true,
437
+ capture: 'certificationRequestInfoAttributes',
438
+ value: [{
439
+ name: 'CertificationRequestInfo.attributes',
440
+ tagClass: asn1.Class.UNIVERSAL,
441
+ type: asn1.Type.SEQUENCE,
442
+ constructed: true,
443
+ value: [{
444
+ name: 'CertificationRequestInfo.attributes.type',
445
+ tagClass: asn1.Class.UNIVERSAL,
446
+ type: asn1.Type.OID,
447
+ constructed: false
448
+ }, {
449
+ name: 'CertificationRequestInfo.attributes.value',
450
+ tagClass: asn1.Class.UNIVERSAL,
451
+ type: asn1.Type.SET,
452
+ constructed: true
453
+ }]
454
+ }]
455
+ }]
456
+ };
457
+
458
+ // validator for a CertificationRequest structure
459
+ var certificationRequestValidator = {
460
+ name: 'CertificationRequest',
461
+ tagClass: asn1.Class.UNIVERSAL,
462
+ type: asn1.Type.SEQUENCE,
463
+ constructed: true,
464
+ captureAsn1: 'csr',
465
+ value: [
466
+ certificationRequestInfoValidator, {
467
+ // AlgorithmIdentifier (signature algorithm)
468
+ name: 'CertificationRequest.signatureAlgorithm',
469
+ tagClass: asn1.Class.UNIVERSAL,
470
+ type: asn1.Type.SEQUENCE,
471
+ constructed: true,
472
+ value: [{
473
+ // algorithm
474
+ name: 'CertificationRequest.signatureAlgorithm.algorithm',
475
+ tagClass: asn1.Class.UNIVERSAL,
476
+ type: asn1.Type.OID,
477
+ constructed: false,
478
+ capture: 'csrSignatureOid'
479
+ }, {
480
+ name: 'CertificationRequest.signatureAlgorithm.parameters',
481
+ tagClass: asn1.Class.UNIVERSAL,
482
+ optional: true,
483
+ captureAsn1: 'csrSignatureParams'
484
+ }]
485
+ }, {
486
+ // signature
487
+ name: 'CertificationRequest.signature',
488
+ tagClass: asn1.Class.UNIVERSAL,
489
+ type: asn1.Type.BITSTRING,
490
+ constructed: false,
491
+ captureBitStringValue: 'csrSignature'
492
+ }
493
+ ]
494
+ };
495
+
496
+ /**
497
+ * Converts an RDNSequence of ASN.1 DER-encoded RelativeDistinguishedName
498
+ * sets into an array with objects that have type and value properties.
499
+ *
500
+ * @param rdn the RDNSequence to convert.
501
+ * @param md a message digest to append type and value to if provided.
502
+ */
503
+ pki.RDNAttributesAsArray = function(rdn, md) {
504
+ var rval = [];
505
+
506
+ // each value in 'rdn' in is a SET of RelativeDistinguishedName
507
+ var set, attr, obj;
508
+ for(var si = 0; si < rdn.value.length; ++si) {
509
+ // get the RelativeDistinguishedName set
510
+ set = rdn.value[si];
511
+
512
+ // each value in the SET is an AttributeTypeAndValue sequence
513
+ // containing first a type (an OID) and second a value (defined by
514
+ // the OID)
515
+ for(var i = 0; i < set.value.length; ++i) {
516
+ obj = {};
517
+ attr = set.value[i];
518
+ obj.type = asn1.derToOid(attr.value[0].value);
519
+ obj.value = attr.value[1].value;
520
+ obj.valueTagClass = attr.value[1].type;
521
+ // if the OID is known, get its name and short name
522
+ if(obj.type in oids) {
523
+ obj.name = oids[obj.type];
524
+ if(obj.name in _shortNames) {
525
+ obj.shortName = _shortNames[obj.name];
526
+ }
527
+ }
528
+ if(md) {
529
+ md.update(obj.type);
530
+ md.update(obj.value);
531
+ }
532
+ rval.push(obj);
533
+ }
534
+ }
535
+
536
+ return rval;
537
+ };
538
+
539
+ /**
540
+ * Converts ASN.1 CRIAttributes into an array with objects that have type and
541
+ * value properties.
542
+ *
543
+ * @param attributes the CRIAttributes to convert.
544
+ */
545
+ pki.CRIAttributesAsArray = function(attributes) {
546
+ var rval = [];
547
+
548
+ // each value in 'attributes' in is a SEQUENCE with an OID and a SET
549
+ for(var si = 0; si < attributes.length; ++si) {
550
+ // get the attribute sequence
551
+ var seq = attributes[si];
552
+
553
+ // each value in the SEQUENCE containing first a type (an OID) and
554
+ // second a set of values (defined by the OID)
555
+ var type = asn1.derToOid(seq.value[0].value);
556
+ var values = seq.value[1].value;
557
+ for(var vi = 0; vi < values.length; ++vi) {
558
+ var obj = {};
559
+ obj.type = type;
560
+ obj.value = values[vi].value;
561
+ obj.valueTagClass = values[vi].type;
562
+ // if the OID is known, get its name and short name
563
+ if(obj.type in oids) {
564
+ obj.name = oids[obj.type];
565
+ if(obj.name in _shortNames) {
566
+ obj.shortName = _shortNames[obj.name];
567
+ }
568
+ }
569
+ // parse extensions
570
+ if(obj.type === oids.extensionRequest) {
571
+ obj.extensions = [];
572
+ for(var ei = 0; ei < obj.value.length; ++ei) {
573
+ obj.extensions.push(pki.certificateExtensionFromAsn1(obj.value[ei]));
574
+ }
575
+ }
576
+ rval.push(obj);
577
+ }
578
+ }
579
+
580
+ return rval;
581
+ };
582
+
583
+ /**
584
+ * Gets an issuer or subject attribute from its name, type, or short name.
585
+ *
586
+ * @param obj the issuer or subject object.
587
+ * @param options a short name string or an object with:
588
+ * shortName the short name for the attribute.
589
+ * name the name for the attribute.
590
+ * type the type for the attribute.
591
+ *
592
+ * @return the attribute.
593
+ */
594
+ function _getAttribute(obj, options) {
595
+ if(typeof options === 'string') {
596
+ options = {shortName: options};
597
+ }
598
+
599
+ var rval = null;
600
+ var attr;
601
+ for(var i = 0; rval === null && i < obj.attributes.length; ++i) {
602
+ attr = obj.attributes[i];
603
+ if(options.type && options.type === attr.type) {
604
+ rval = attr;
605
+ } else if(options.name && options.name === attr.name) {
606
+ rval = attr;
607
+ } else if(options.shortName && options.shortName === attr.shortName) {
608
+ rval = attr;
609
+ }
610
+ }
611
+ return rval;
612
+ }
613
+
614
+ /**
615
+ * Converts signature parameters from ASN.1 structure.
616
+ *
617
+ * Currently only RSASSA-PSS supported. The PKCS#1 v1.5 signature scheme had
618
+ * no parameters.
619
+ *
620
+ * RSASSA-PSS-params ::= SEQUENCE {
621
+ * hashAlgorithm [0] HashAlgorithm DEFAULT
622
+ * sha1Identifier,
623
+ * maskGenAlgorithm [1] MaskGenAlgorithm DEFAULT
624
+ * mgf1SHA1Identifier,
625
+ * saltLength [2] INTEGER DEFAULT 20,
626
+ * trailerField [3] INTEGER DEFAULT 1
627
+ * }
628
+ *
629
+ * HashAlgorithm ::= AlgorithmIdentifier
630
+ *
631
+ * MaskGenAlgorithm ::= AlgorithmIdentifier
632
+ *
633
+ * AlgorithmIdentifer ::= SEQUENCE {
634
+ * algorithm OBJECT IDENTIFIER,
635
+ * parameters ANY DEFINED BY algorithm OPTIONAL
636
+ * }
637
+ *
638
+ * @param oid The OID specifying the signature algorithm
639
+ * @param obj The ASN.1 structure holding the parameters
640
+ * @param fillDefaults Whether to use return default values where omitted
641
+ * @return signature parameter object
642
+ */
643
+ var _readSignatureParameters = function(oid, obj, fillDefaults) {
644
+ var params = {};
645
+
646
+ if(oid !== oids['RSASSA-PSS']) {
647
+ return params;
648
+ }
649
+
650
+ if(fillDefaults) {
651
+ params = {
652
+ hash: {
653
+ algorithmOid: oids['sha1']
654
+ },
655
+ mgf: {
656
+ algorithmOid: oids['mgf1'],
657
+ hash: {
658
+ algorithmOid: oids['sha1']
659
+ }
660
+ },
661
+ saltLength: 20
662
+ };
663
+ }
664
+
665
+ var capture = {};
666
+ var errors = [];
667
+ if(!asn1.validate(obj, rsassaPssParameterValidator, capture, errors)) {
668
+ var error = new Error('Cannot read RSASSA-PSS parameter block.');
669
+ error.errors = errors;
670
+ throw error;
671
+ }
672
+
673
+ if(capture.hashOid !== undefined) {
674
+ params.hash = params.hash || {};
675
+ params.hash.algorithmOid = asn1.derToOid(capture.hashOid);
676
+ }
677
+
678
+ if(capture.maskGenOid !== undefined) {
679
+ params.mgf = params.mgf || {};
680
+ params.mgf.algorithmOid = asn1.derToOid(capture.maskGenOid);
681
+ params.mgf.hash = params.mgf.hash || {};
682
+ params.mgf.hash.algorithmOid = asn1.derToOid(capture.maskGenHashOid);
683
+ }
684
+
685
+ if(capture.saltLength !== undefined) {
686
+ params.saltLength = capture.saltLength.charCodeAt(0);
687
+ }
688
+
689
+ return params;
690
+ };
691
+
692
+ /**
693
+ * Create signature digest for OID.
694
+ *
695
+ * @param options
696
+ * signatureOid: the OID specifying the signature algorithm.
697
+ * type: a human readable type for error messages
698
+ * @return a created md instance. throws if unknown oid.
699
+ */
700
+ var _createSignatureDigest = function(options) {
701
+ switch(oids[options.signatureOid]) {
702
+ case 'sha1WithRSAEncryption':
703
+ // deprecated alias
704
+ case 'sha1WithRSASignature':
705
+ return forge.md.sha1.create();
706
+ case 'md5WithRSAEncryption':
707
+ return forge.md.md5.create();
708
+ case 'sha256WithRSAEncryption':
709
+ return forge.md.sha256.create();
710
+ case 'sha384WithRSAEncryption':
711
+ return forge.md.sha384.create();
712
+ case 'sha512WithRSAEncryption':
713
+ return forge.md.sha512.create();
714
+ case 'RSASSA-PSS':
715
+ return forge.md.sha256.create();
716
+ default:
717
+ var error = new Error(
718
+ 'Could not compute ' + options.type + ' digest. ' +
719
+ 'Unknown signature OID.');
720
+ error.signatureOid = options.signatureOid;
721
+ throw error;
722
+ }
723
+ };
724
+
725
+ /**
726
+ * Verify signature on certificate or CSR.
727
+ *
728
+ * @param options:
729
+ * certificate the certificate or CSR to verify.
730
+ * publicKey the optional public key to verify with.
731
+ * md the signature digest.
732
+ * signature the signature
733
+ * @return a created md instance. throws if unknown oid.
734
+ */
735
+ var _verifySignature = function(options) {
736
+ var cert = options.certificate;
737
+ var publicKey = options.publicKey || cert.publicKey;
738
+ var scheme;
739
+
740
+ switch(cert.signatureOid) {
741
+ case oids.sha1WithRSAEncryption:
742
+ // deprecated alias
743
+ case oids.sha1WithRSASignature:
744
+ /* use PKCS#1 v1.5 padding scheme */
745
+ break;
746
+ case oids['RSASSA-PSS']:
747
+ var hash, mgf;
748
+
749
+ /* initialize mgf */
750
+ hash = oids[cert.signatureParameters.mgf.hash.algorithmOid];
751
+ if(hash === undefined || forge.md[hash] === undefined) {
752
+ var error = new Error('Unsupported MGF hash function.');
753
+ error.oid = cert.signatureParameters.mgf.hash.algorithmOid;
754
+ error.name = hash;
755
+ throw error;
756
+ }
757
+
758
+ mgf = oids[cert.signatureParameters.mgf.algorithmOid];
759
+ if(mgf === undefined || forge.mgf[mgf] === undefined) {
760
+ var error = new Error('Unsupported MGF function.');
761
+ error.oid = cert.signatureParameters.mgf.algorithmOid;
762
+ error.name = mgf;
763
+ throw error;
764
+ }
765
+
766
+ mgf = forge.mgf[mgf].create(forge.md[hash].create());
767
+
768
+ /* initialize hash function */
769
+ hash = oids[cert.signatureParameters.hash.algorithmOid];
770
+ if(hash === undefined || forge.md[hash] === undefined) {
771
+ var error = new Error('Unsupported RSASSA-PSS hash function.');
772
+ error.oid = cert.signatureParameters.hash.algorithmOid;
773
+ error.name = hash;
774
+ throw error;
775
+ }
776
+
777
+ scheme = forge.pss.create(
778
+ forge.md[hash].create(), mgf, cert.signatureParameters.saltLength
779
+ );
780
+ break;
781
+ }
782
+
783
+ // verify signature on cert using public key
784
+ return publicKey.verify(
785
+ options.md.digest().getBytes(), options.signature, scheme
786
+ );
787
+ };
788
+
789
+ /**
790
+ * Converts an X.509 certificate from PEM format.
791
+ *
792
+ * Note: If the certificate is to be verified then compute hash should
793
+ * be set to true. This will scan the TBSCertificate part of the ASN.1
794
+ * object while it is converted so it doesn't need to be converted back
795
+ * to ASN.1-DER-encoding later.
796
+ *
797
+ * @param pem the PEM-formatted certificate.
798
+ * @param computeHash true to compute the hash for verification.
799
+ * @param strict true to be strict when checking ASN.1 value lengths, false to
800
+ * allow truncated values (default: true).
801
+ *
802
+ * @return the certificate.
803
+ */
804
+ pki.certificateFromPem = function(pem, computeHash, strict) {
805
+ var msg = forge.pem.decode(pem)[0];
806
+
807
+ if(msg.type !== 'CERTIFICATE' &&
808
+ msg.type !== 'X509 CERTIFICATE' &&
809
+ msg.type !== 'TRUSTED CERTIFICATE') {
810
+ var error = new Error(
811
+ 'Could not convert certificate from PEM; PEM header type ' +
812
+ 'is not "CERTIFICATE", "X509 CERTIFICATE", or "TRUSTED CERTIFICATE".');
813
+ error.headerType = msg.type;
814
+ throw error;
815
+ }
816
+ if(msg.procType && msg.procType.type === 'ENCRYPTED') {
817
+ throw new Error(
818
+ 'Could not convert certificate from PEM; PEM is encrypted.');
819
+ }
820
+
821
+ // convert DER to ASN.1 object
822
+ var obj = asn1.fromDer(msg.body, strict);
823
+
824
+ return pki.certificateFromAsn1(obj, computeHash);
825
+ };
826
+
827
+ /**
828
+ * Converts an X.509 certificate to PEM format.
829
+ *
830
+ * @param cert the certificate.
831
+ * @param maxline the maximum characters per line, defaults to 64.
832
+ *
833
+ * @return the PEM-formatted certificate.
834
+ */
835
+ pki.certificateToPem = function(cert, maxline) {
836
+ // convert to ASN.1, then DER, then PEM-encode
837
+ var msg = {
838
+ type: 'CERTIFICATE',
839
+ body: asn1.toDer(pki.certificateToAsn1(cert)).getBytes()
840
+ };
841
+ return forge.pem.encode(msg, {maxline: maxline});
842
+ };
843
+
844
+ /**
845
+ * Converts an RSA public key from PEM format.
846
+ *
847
+ * @param pem the PEM-formatted public key.
848
+ *
849
+ * @return the public key.
850
+ */
851
+ pki.publicKeyFromPem = function(pem) {
852
+ var msg = forge.pem.decode(pem)[0];
853
+
854
+ if(msg.type !== 'PUBLIC KEY' && msg.type !== 'RSA PUBLIC KEY') {
855
+ var error = new Error('Could not convert public key from PEM; PEM header ' +
856
+ 'type is not "PUBLIC KEY" or "RSA PUBLIC KEY".');
857
+ error.headerType = msg.type;
858
+ throw error;
859
+ }
860
+ if(msg.procType && msg.procType.type === 'ENCRYPTED') {
861
+ throw new Error('Could not convert public key from PEM; PEM is encrypted.');
862
+ }
863
+
864
+ // convert DER to ASN.1 object
865
+ var obj = asn1.fromDer(msg.body);
866
+
867
+ return pki.publicKeyFromAsn1(obj);
868
+ };
869
+
870
+ /**
871
+ * Converts an RSA public key to PEM format (using a SubjectPublicKeyInfo).
872
+ *
873
+ * @param key the public key.
874
+ * @param maxline the maximum characters per line, defaults to 64.
875
+ *
876
+ * @return the PEM-formatted public key.
877
+ */
878
+ pki.publicKeyToPem = function(key, maxline) {
879
+ // convert to ASN.1, then DER, then PEM-encode
880
+ var msg = {
881
+ type: 'PUBLIC KEY',
882
+ body: asn1.toDer(pki.publicKeyToAsn1(key)).getBytes()
883
+ };
884
+ return forge.pem.encode(msg, {maxline: maxline});
885
+ };
886
+
887
+ /**
888
+ * Converts an RSA public key to PEM format (using an RSAPublicKey).
889
+ *
890
+ * @param key the public key.
891
+ * @param maxline the maximum characters per line, defaults to 64.
892
+ *
893
+ * @return the PEM-formatted public key.
894
+ */
895
+ pki.publicKeyToRSAPublicKeyPem = function(key, maxline) {
896
+ // convert to ASN.1, then DER, then PEM-encode
897
+ var msg = {
898
+ type: 'RSA PUBLIC KEY',
899
+ body: asn1.toDer(pki.publicKeyToRSAPublicKey(key)).getBytes()
900
+ };
901
+ return forge.pem.encode(msg, {maxline: maxline});
902
+ };
903
+
904
+ /**
905
+ * Gets a fingerprint for the given public key.
906
+ *
907
+ * @param options the options to use.
908
+ * [md] the message digest object to use (defaults to forge.md.sha1).
909
+ * [type] the type of fingerprint, such as 'RSAPublicKey',
910
+ * 'SubjectPublicKeyInfo' (defaults to 'RSAPublicKey').
911
+ * [encoding] an alternative output encoding, such as 'hex'
912
+ * (defaults to none, outputs a byte buffer).
913
+ * [delimiter] the delimiter to use between bytes for 'hex' encoded
914
+ * output, eg: ':' (defaults to none).
915
+ *
916
+ * @return the fingerprint as a byte buffer or other encoding based on options.
917
+ */
918
+ pki.getPublicKeyFingerprint = function(key, options) {
919
+ options = options || {};
920
+ var md = options.md || forge.md.sha1.create();
921
+ var type = options.type || 'RSAPublicKey';
922
+
923
+ var bytes;
924
+ switch(type) {
925
+ case 'RSAPublicKey':
926
+ bytes = asn1.toDer(pki.publicKeyToRSAPublicKey(key)).getBytes();
927
+ break;
928
+ case 'SubjectPublicKeyInfo':
929
+ bytes = asn1.toDer(pki.publicKeyToAsn1(key)).getBytes();
930
+ break;
931
+ default:
932
+ throw new Error('Unknown fingerprint type "' + options.type + '".');
933
+ }
934
+
935
+ // hash public key bytes
936
+ md.start();
937
+ md.update(bytes);
938
+ var digest = md.digest();
939
+ if(options.encoding === 'hex') {
940
+ var hex = digest.toHex();
941
+ if(options.delimiter) {
942
+ return hex.match(/.{2}/g).join(options.delimiter);
943
+ }
944
+ return hex;
945
+ } else if(options.encoding === 'binary') {
946
+ return digest.getBytes();
947
+ } else if(options.encoding) {
948
+ throw new Error('Unknown encoding "' + options.encoding + '".');
949
+ }
950
+ return digest;
951
+ };
952
+
953
+ /**
954
+ * Converts a PKCS#10 certification request (CSR) from PEM format.
955
+ *
956
+ * Note: If the certification request is to be verified then compute hash
957
+ * should be set to true. This will scan the CertificationRequestInfo part of
958
+ * the ASN.1 object while it is converted so it doesn't need to be converted
959
+ * back to ASN.1-DER-encoding later.
960
+ *
961
+ * @param pem the PEM-formatted certificate.
962
+ * @param computeHash true to compute the hash for verification.
963
+ * @param strict true to be strict when checking ASN.1 value lengths, false to
964
+ * allow truncated values (default: true).
965
+ *
966
+ * @return the certification request (CSR).
967
+ */
968
+ pki.certificationRequestFromPem = function(pem, computeHash, strict) {
969
+ var msg = forge.pem.decode(pem)[0];
970
+
971
+ if(msg.type !== 'CERTIFICATE REQUEST') {
972
+ var error = new Error('Could not convert certification request from PEM; ' +
973
+ 'PEM header type is not "CERTIFICATE REQUEST".');
974
+ error.headerType = msg.type;
975
+ throw error;
976
+ }
977
+ if(msg.procType && msg.procType.type === 'ENCRYPTED') {
978
+ throw new Error('Could not convert certification request from PEM; ' +
979
+ 'PEM is encrypted.');
980
+ }
981
+
982
+ // convert DER to ASN.1 object
983
+ var obj = asn1.fromDer(msg.body, strict);
984
+
985
+ return pki.certificationRequestFromAsn1(obj, computeHash);
986
+ };
987
+
988
+ /**
989
+ * Converts a PKCS#10 certification request (CSR) to PEM format.
990
+ *
991
+ * @param csr the certification request.
992
+ * @param maxline the maximum characters per line, defaults to 64.
993
+ *
994
+ * @return the PEM-formatted certification request.
995
+ */
996
+ pki.certificationRequestToPem = function(csr, maxline) {
997
+ // convert to ASN.1, then DER, then PEM-encode
998
+ var msg = {
999
+ type: 'CERTIFICATE REQUEST',
1000
+ body: asn1.toDer(pki.certificationRequestToAsn1(csr)).getBytes()
1001
+ };
1002
+ return forge.pem.encode(msg, {maxline: maxline});
1003
+ };
1004
+
1005
+ /**
1006
+ * Creates an empty X.509v3 RSA certificate.
1007
+ *
1008
+ * @return the certificate.
1009
+ */
1010
+ pki.createCertificate = function() {
1011
+ var cert = {};
1012
+ cert.version = 0x02;
1013
+ cert.serialNumber = '00';
1014
+ cert.signatureOid = null;
1015
+ cert.signature = null;
1016
+ cert.siginfo = {};
1017
+ cert.siginfo.algorithmOid = null;
1018
+ cert.validity = {};
1019
+ cert.validity.notBefore = new Date();
1020
+ cert.validity.notAfter = new Date();
1021
+
1022
+ cert.issuer = {};
1023
+ cert.issuer.getField = function(sn) {
1024
+ return _getAttribute(cert.issuer, sn);
1025
+ };
1026
+ cert.issuer.addField = function(attr) {
1027
+ _fillMissingFields([attr]);
1028
+ cert.issuer.attributes.push(attr);
1029
+ };
1030
+ cert.issuer.attributes = [];
1031
+ cert.issuer.hash = null;
1032
+
1033
+ cert.subject = {};
1034
+ cert.subject.getField = function(sn) {
1035
+ return _getAttribute(cert.subject, sn);
1036
+ };
1037
+ cert.subject.addField = function(attr) {
1038
+ _fillMissingFields([attr]);
1039
+ cert.subject.attributes.push(attr);
1040
+ };
1041
+ cert.subject.attributes = [];
1042
+ cert.subject.hash = null;
1043
+
1044
+ cert.extensions = [];
1045
+ cert.publicKey = null;
1046
+ cert.md = null;
1047
+
1048
+ /**
1049
+ * Sets the subject of this certificate.
1050
+ *
1051
+ * @param attrs the array of subject attributes to use.
1052
+ * @param uniqueId an optional a unique ID to use.
1053
+ */
1054
+ cert.setSubject = function(attrs, uniqueId) {
1055
+ // set new attributes, clear hash
1056
+ _fillMissingFields(attrs);
1057
+ cert.subject.attributes = attrs;
1058
+ delete cert.subject.uniqueId;
1059
+ if(uniqueId) {
1060
+ // TODO: support arbitrary bit length ids
1061
+ cert.subject.uniqueId = uniqueId;
1062
+ }
1063
+ cert.subject.hash = null;
1064
+ };
1065
+
1066
+ /**
1067
+ * Sets the issuer of this certificate.
1068
+ *
1069
+ * @param attrs the array of issuer attributes to use.
1070
+ * @param uniqueId an optional a unique ID to use.
1071
+ */
1072
+ cert.setIssuer = function(attrs, uniqueId) {
1073
+ // set new attributes, clear hash
1074
+ _fillMissingFields(attrs);
1075
+ cert.issuer.attributes = attrs;
1076
+ delete cert.issuer.uniqueId;
1077
+ if(uniqueId) {
1078
+ // TODO: support arbitrary bit length ids
1079
+ cert.issuer.uniqueId = uniqueId;
1080
+ }
1081
+ cert.issuer.hash = null;
1082
+ };
1083
+
1084
+ /**
1085
+ * Sets the extensions of this certificate.
1086
+ *
1087
+ * @param exts the array of extensions to use.
1088
+ */
1089
+ cert.setExtensions = function(exts) {
1090
+ for(var i = 0; i < exts.length; ++i) {
1091
+ _fillMissingExtensionFields(exts[i], {cert: cert});
1092
+ }
1093
+ // set new extensions
1094
+ cert.extensions = exts;
1095
+ };
1096
+
1097
+ /**
1098
+ * Gets an extension by its name or id.
1099
+ *
1100
+ * @param options the name to use or an object with:
1101
+ * name the name to use.
1102
+ * id the id to use.
1103
+ *
1104
+ * @return the extension or null if not found.
1105
+ */
1106
+ cert.getExtension = function(options) {
1107
+ if(typeof options === 'string') {
1108
+ options = {name: options};
1109
+ }
1110
+
1111
+ var rval = null;
1112
+ var ext;
1113
+ for(var i = 0; rval === null && i < cert.extensions.length; ++i) {
1114
+ ext = cert.extensions[i];
1115
+ if(options.id && ext.id === options.id) {
1116
+ rval = ext;
1117
+ } else if(options.name && ext.name === options.name) {
1118
+ rval = ext;
1119
+ }
1120
+ }
1121
+ return rval;
1122
+ };
1123
+
1124
+ /**
1125
+ * Signs this certificate using the given private key.
1126
+ *
1127
+ * @param key the private key to sign with.
1128
+ * @param md the message digest object to use (defaults to forge.md.sha1).
1129
+ */
1130
+ cert.sign = function(key, md) {
1131
+ // TODO: get signature OID from private key
1132
+ cert.md = md || forge.md.sha1.create();
1133
+ var algorithmOid = oids[cert.md.algorithm + 'WithRSAEncryption'];
1134
+ if(!algorithmOid) {
1135
+ var error = new Error('Could not compute certificate digest. ' +
1136
+ 'Unknown message digest algorithm OID.');
1137
+ error.algorithm = cert.md.algorithm;
1138
+ throw error;
1139
+ }
1140
+ cert.signatureOid = cert.siginfo.algorithmOid = algorithmOid;
1141
+
1142
+ // get TBSCertificate, convert to DER
1143
+ cert.tbsCertificate = pki.getTBSCertificate(cert);
1144
+ var bytes = asn1.toDer(cert.tbsCertificate);
1145
+
1146
+ // digest and sign
1147
+ cert.md.update(bytes.getBytes());
1148
+ cert.signature = key.sign(cert.md);
1149
+ };
1150
+
1151
+ /**
1152
+ * Attempts verify the signature on the passed certificate using this
1153
+ * certificate's public key.
1154
+ *
1155
+ * @param child the certificate to verify.
1156
+ *
1157
+ * @return true if verified, false if not.
1158
+ */
1159
+ cert.verify = function(child) {
1160
+ var rval = false;
1161
+
1162
+ if(!cert.issued(child)) {
1163
+ var issuer = child.issuer;
1164
+ var subject = cert.subject;
1165
+ var error = new Error(
1166
+ 'The parent certificate did not issue the given child ' +
1167
+ 'certificate; the child certificate\'s issuer does not match the ' +
1168
+ 'parent\'s subject.');
1169
+ error.expectedIssuer = subject.attributes;
1170
+ error.actualIssuer = issuer.attributes;
1171
+ throw error;
1172
+ }
1173
+
1174
+ var md = child.md;
1175
+ if(md === null) {
1176
+ // create digest for OID signature types
1177
+ md = _createSignatureDigest({
1178
+ signatureOid: child.signatureOid,
1179
+ type: 'certificate'
1180
+ });
1181
+
1182
+ // produce DER formatted TBSCertificate and digest it
1183
+ var tbsCertificate = child.tbsCertificate || pki.getTBSCertificate(child);
1184
+ var bytes = asn1.toDer(tbsCertificate);
1185
+ md.update(bytes.getBytes());
1186
+ }
1187
+
1188
+ if(md !== null) {
1189
+ // the padding scheme comes from the child's signature algorithm
1190
+ rval = _verifySignature({
1191
+ certificate: child,
1192
+ publicKey: cert.publicKey,
1193
+ md: md,
1194
+ signature: child.signature
1195
+ });
1196
+ }
1197
+
1198
+ return rval;
1199
+ };
1200
+
1201
+ /**
1202
+ * Returns true if this certificate's issuer matches the passed
1203
+ * certificate's subject. Note that no signature check is performed.
1204
+ *
1205
+ * @param parent the certificate to check.
1206
+ *
1207
+ * @return true if this certificate's issuer matches the passed certificate's
1208
+ * subject.
1209
+ */
1210
+ cert.isIssuer = function(parent) {
1211
+ var rval = false;
1212
+
1213
+ var i = cert.issuer;
1214
+ var s = parent.subject;
1215
+
1216
+ // compare hashes if present
1217
+ if(i.hash && s.hash) {
1218
+ rval = (i.hash === s.hash);
1219
+ } else if(i.attributes.length === s.attributes.length) {
1220
+ // all attributes are the same so issuer matches subject
1221
+ rval = true;
1222
+ var iattr, sattr;
1223
+ for(var n = 0; rval && n < i.attributes.length; ++n) {
1224
+ iattr = i.attributes[n];
1225
+ sattr = s.attributes[n];
1226
+ if(iattr.type !== sattr.type || iattr.value !== sattr.value) {
1227
+ // attribute mismatch
1228
+ rval = false;
1229
+ }
1230
+ }
1231
+ }
1232
+
1233
+ return rval;
1234
+ };
1235
+
1236
+ /**
1237
+ * Returns true if this certificate's subject matches the issuer of the
1238
+ * given certificate). Note that not signature check is performed.
1239
+ *
1240
+ * @param child the certificate to check.
1241
+ *
1242
+ * @return true if this certificate's subject matches the passed
1243
+ * certificate's issuer.
1244
+ */
1245
+ cert.issued = function(child) {
1246
+ return child.isIssuer(cert);
1247
+ };
1248
+
1249
+ /**
1250
+ * Generates the subjectKeyIdentifier for this certificate as byte buffer.
1251
+ *
1252
+ * @return the subjectKeyIdentifier for this certificate as byte buffer.
1253
+ */
1254
+ cert.generateSubjectKeyIdentifier = function() {
1255
+ /* See: 4.2.1.2 section of the the RFC3280, keyIdentifier is either:
1256
+
1257
+ (1) The keyIdentifier is composed of the 160-bit SHA-1 hash of the
1258
+ value of the BIT STRING subjectPublicKey (excluding the tag,
1259
+ length, and number of unused bits).
1260
+
1261
+ (2) The keyIdentifier is composed of a four bit type field with
1262
+ the value 0100 followed by the least significant 60 bits of the
1263
+ SHA-1 hash of the value of the BIT STRING subjectPublicKey
1264
+ (excluding the tag, length, and number of unused bit string bits).
1265
+ */
1266
+
1267
+ // skipping the tag, length, and number of unused bits is the same
1268
+ // as just using the RSAPublicKey (for RSA keys, which are the
1269
+ // only ones supported)
1270
+ return pki.getPublicKeyFingerprint(cert.publicKey, {type: 'RSAPublicKey'});
1271
+ };
1272
+
1273
+ /**
1274
+ * Verifies the subjectKeyIdentifier extension value for this certificate
1275
+ * against its public key. If no extension is found, false will be
1276
+ * returned.
1277
+ *
1278
+ * @return true if verified, false if not.
1279
+ */
1280
+ cert.verifySubjectKeyIdentifier = function() {
1281
+ var oid = oids['subjectKeyIdentifier'];
1282
+ for(var i = 0; i < cert.extensions.length; ++i) {
1283
+ var ext = cert.extensions[i];
1284
+ if(ext.id === oid) {
1285
+ var ski = cert.generateSubjectKeyIdentifier().getBytes();
1286
+ return (forge.util.hexToBytes(ext.subjectKeyIdentifier) === ski);
1287
+ }
1288
+ }
1289
+ return false;
1290
+ };
1291
+
1292
+ return cert;
1293
+ };
1294
+
1295
+ /**
1296
+ * Converts an X.509v3 RSA certificate from an ASN.1 object.
1297
+ *
1298
+ * Note: If the certificate is to be verified then compute hash should
1299
+ * be set to true. There is currently no implementation for converting
1300
+ * a certificate back to ASN.1 so the TBSCertificate part of the ASN.1
1301
+ * object needs to be scanned before the cert object is created.
1302
+ *
1303
+ * @param obj the asn1 representation of an X.509v3 RSA certificate.
1304
+ * @param computeHash true to compute the hash for verification.
1305
+ *
1306
+ * @return the certificate.
1307
+ */
1308
+ pki.certificateFromAsn1 = function(obj, computeHash) {
1309
+ // validate certificate and capture data
1310
+ var capture = {};
1311
+ var errors = [];
1312
+ if(!asn1.validate(obj, x509CertificateValidator, capture, errors)) {
1313
+ var error = new Error('Cannot read X.509 certificate. ' +
1314
+ 'ASN.1 object is not an X509v3 Certificate.');
1315
+ error.errors = errors;
1316
+ throw error;
1317
+ }
1318
+
1319
+ // get oid
1320
+ var oid = asn1.derToOid(capture.publicKeyOid);
1321
+ if(oid !== pki.oids.rsaEncryption) {
1322
+ throw new Error('Cannot read public key. OID is not RSA.');
1323
+ }
1324
+
1325
+ // create certificate
1326
+ var cert = pki.createCertificate();
1327
+ cert.version = capture.certVersion ?
1328
+ capture.certVersion.charCodeAt(0) : 0;
1329
+ var serial = forge.util.createBuffer(capture.certSerialNumber);
1330
+ cert.serialNumber = serial.toHex();
1331
+ cert.signatureOid = forge.asn1.derToOid(capture.certSignatureOid);
1332
+ cert.signatureParameters = _readSignatureParameters(
1333
+ cert.signatureOid, capture.certSignatureParams, true);
1334
+ cert.siginfo.algorithmOid = forge.asn1.derToOid(capture.certinfoSignatureOid);
1335
+ cert.siginfo.parameters = _readSignatureParameters(cert.siginfo.algorithmOid,
1336
+ capture.certinfoSignatureParams, false);
1337
+ cert.signature = capture.certSignature;
1338
+
1339
+ var validity = [];
1340
+ if(capture.certValidity1UTCTime !== undefined) {
1341
+ validity.push(asn1.utcTimeToDate(capture.certValidity1UTCTime));
1342
+ }
1343
+ if(capture.certValidity2GeneralizedTime !== undefined) {
1344
+ validity.push(asn1.generalizedTimeToDate(
1345
+ capture.certValidity2GeneralizedTime));
1346
+ }
1347
+ if(capture.certValidity3UTCTime !== undefined) {
1348
+ validity.push(asn1.utcTimeToDate(capture.certValidity3UTCTime));
1349
+ }
1350
+ if(capture.certValidity4GeneralizedTime !== undefined) {
1351
+ validity.push(asn1.generalizedTimeToDate(
1352
+ capture.certValidity4GeneralizedTime));
1353
+ }
1354
+ if(validity.length > 2) {
1355
+ throw new Error('Cannot read notBefore/notAfter validity times; more ' +
1356
+ 'than two times were provided in the certificate.');
1357
+ }
1358
+ if(validity.length < 2) {
1359
+ throw new Error('Cannot read notBefore/notAfter validity times; they ' +
1360
+ 'were not provided as either UTCTime or GeneralizedTime.');
1361
+ }
1362
+ cert.validity.notBefore = validity[0];
1363
+ cert.validity.notAfter = validity[1];
1364
+
1365
+ // keep TBSCertificate to preserve signature when exporting
1366
+ cert.tbsCertificate = capture.tbsCertificate;
1367
+
1368
+ if(computeHash) {
1369
+ // create digest for OID signature type
1370
+ cert.md = _createSignatureDigest({
1371
+ signatureOid: cert.signatureOid,
1372
+ type: 'certificate'
1373
+ });
1374
+
1375
+ // produce DER formatted TBSCertificate and digest it
1376
+ var bytes = asn1.toDer(cert.tbsCertificate);
1377
+ cert.md.update(bytes.getBytes());
1378
+ }
1379
+
1380
+ // handle issuer, build issuer message digest
1381
+ var imd = forge.md.sha1.create();
1382
+ var ibytes = asn1.toDer(capture.certIssuer);
1383
+ imd.update(ibytes.getBytes());
1384
+ cert.issuer.getField = function(sn) {
1385
+ return _getAttribute(cert.issuer, sn);
1386
+ };
1387
+ cert.issuer.addField = function(attr) {
1388
+ _fillMissingFields([attr]);
1389
+ cert.issuer.attributes.push(attr);
1390
+ };
1391
+ cert.issuer.attributes = pki.RDNAttributesAsArray(capture.certIssuer);
1392
+ if(capture.certIssuerUniqueId) {
1393
+ cert.issuer.uniqueId = capture.certIssuerUniqueId;
1394
+ }
1395
+ cert.issuer.hash = imd.digest().toHex();
1396
+
1397
+ // handle subject, build subject message digest
1398
+ var smd = forge.md.sha1.create();
1399
+ var sbytes = asn1.toDer(capture.certSubject);
1400
+ smd.update(sbytes.getBytes());
1401
+ cert.subject.getField = function(sn) {
1402
+ return _getAttribute(cert.subject, sn);
1403
+ };
1404
+ cert.subject.addField = function(attr) {
1405
+ _fillMissingFields([attr]);
1406
+ cert.subject.attributes.push(attr);
1407
+ };
1408
+ cert.subject.attributes = pki.RDNAttributesAsArray(capture.certSubject);
1409
+ if(capture.certSubjectUniqueId) {
1410
+ cert.subject.uniqueId = capture.certSubjectUniqueId;
1411
+ }
1412
+ cert.subject.hash = smd.digest().toHex();
1413
+
1414
+ // handle extensions
1415
+ if(capture.certExtensions) {
1416
+ cert.extensions = pki.certificateExtensionsFromAsn1(capture.certExtensions);
1417
+ } else {
1418
+ cert.extensions = [];
1419
+ }
1420
+
1421
+ // convert RSA public key from ASN.1
1422
+ cert.publicKey = pki.publicKeyFromAsn1(capture.subjectPublicKeyInfo);
1423
+
1424
+ return cert;
1425
+ };
1426
+
1427
+ /**
1428
+ * Converts an ASN.1 extensions object (with extension sequences as its
1429
+ * values) into an array of extension objects with types and values.
1430
+ *
1431
+ * Supported extensions:
1432
+ *
1433
+ * id-ce-keyUsage OBJECT IDENTIFIER ::= { id-ce 15 }
1434
+ * KeyUsage ::= BIT STRING {
1435
+ * digitalSignature (0),
1436
+ * nonRepudiation (1),
1437
+ * keyEncipherment (2),
1438
+ * dataEncipherment (3),
1439
+ * keyAgreement (4),
1440
+ * keyCertSign (5),
1441
+ * cRLSign (6),
1442
+ * encipherOnly (7),
1443
+ * decipherOnly (8)
1444
+ * }
1445
+ *
1446
+ * id-ce-basicConstraints OBJECT IDENTIFIER ::= { id-ce 19 }
1447
+ * BasicConstraints ::= SEQUENCE {
1448
+ * cA BOOLEAN DEFAULT FALSE,
1449
+ * pathLenConstraint INTEGER (0..MAX) OPTIONAL
1450
+ * }
1451
+ *
1452
+ * subjectAltName EXTENSION ::= {
1453
+ * SYNTAX GeneralNames
1454
+ * IDENTIFIED BY id-ce-subjectAltName
1455
+ * }
1456
+ *
1457
+ * GeneralNames ::= SEQUENCE SIZE (1..MAX) OF GeneralName
1458
+ *
1459
+ * GeneralName ::= CHOICE {
1460
+ * otherName [0] INSTANCE OF OTHER-NAME,
1461
+ * rfc822Name [1] IA5String,
1462
+ * dNSName [2] IA5String,
1463
+ * x400Address [3] ORAddress,
1464
+ * directoryName [4] Name,
1465
+ * ediPartyName [5] EDIPartyName,
1466
+ * uniformResourceIdentifier [6] IA5String,
1467
+ * IPAddress [7] OCTET STRING,
1468
+ * registeredID [8] OBJECT IDENTIFIER
1469
+ * }
1470
+ *
1471
+ * OTHER-NAME ::= TYPE-IDENTIFIER
1472
+ *
1473
+ * EDIPartyName ::= SEQUENCE {
1474
+ * nameAssigner [0] DirectoryString {ub-name} OPTIONAL,
1475
+ * partyName [1] DirectoryString {ub-name}
1476
+ * }
1477
+ *
1478
+ * @param exts the extensions ASN.1 with extension sequences to parse.
1479
+ *
1480
+ * @return the array.
1481
+ */
1482
+ pki.certificateExtensionsFromAsn1 = function(exts) {
1483
+ var rval = [];
1484
+ for(var i = 0; i < exts.value.length; ++i) {
1485
+ // get extension sequence
1486
+ var extseq = exts.value[i];
1487
+ for(var ei = 0; ei < extseq.value.length; ++ei) {
1488
+ rval.push(pki.certificateExtensionFromAsn1(extseq.value[ei]));
1489
+ }
1490
+ }
1491
+
1492
+ return rval;
1493
+ };
1494
+
1495
+ /**
1496
+ * Parses a single certificate extension from ASN.1.
1497
+ *
1498
+ * @param ext the extension in ASN.1 format.
1499
+ *
1500
+ * @return the parsed extension as an object.
1501
+ */
1502
+ pki.certificateExtensionFromAsn1 = function(ext) {
1503
+ // an extension has:
1504
+ // [0] extnID OBJECT IDENTIFIER
1505
+ // [1] critical BOOLEAN DEFAULT FALSE
1506
+ // [2] extnValue OCTET STRING
1507
+ var e = {};
1508
+ e.id = asn1.derToOid(ext.value[0].value);
1509
+ e.critical = false;
1510
+ if(ext.value[1].type === asn1.Type.BOOLEAN) {
1511
+ e.critical = (ext.value[1].value.charCodeAt(0) !== 0x00);
1512
+ e.value = ext.value[2].value;
1513
+ } else {
1514
+ e.value = ext.value[1].value;
1515
+ }
1516
+ // if the oid is known, get its name
1517
+ if(e.id in oids) {
1518
+ e.name = oids[e.id];
1519
+
1520
+ // handle key usage
1521
+ if(e.name === 'keyUsage') {
1522
+ // get value as BIT STRING
1523
+ var ev = asn1.fromDer(e.value);
1524
+ var b2 = 0x00;
1525
+ var b3 = 0x00;
1526
+ if(ev.value.length > 1) {
1527
+ // skip first byte, just indicates unused bits which
1528
+ // will be padded with 0s anyway
1529
+ // get bytes with flag bits
1530
+ b2 = ev.value.charCodeAt(1);
1531
+ b3 = ev.value.length > 2 ? ev.value.charCodeAt(2) : 0;
1532
+ }
1533
+ // set flags
1534
+ e.digitalSignature = (b2 & 0x80) === 0x80;
1535
+ e.nonRepudiation = (b2 & 0x40) === 0x40;
1536
+ e.keyEncipherment = (b2 & 0x20) === 0x20;
1537
+ e.dataEncipherment = (b2 & 0x10) === 0x10;
1538
+ e.keyAgreement = (b2 & 0x08) === 0x08;
1539
+ e.keyCertSign = (b2 & 0x04) === 0x04;
1540
+ e.cRLSign = (b2 & 0x02) === 0x02;
1541
+ e.encipherOnly = (b2 & 0x01) === 0x01;
1542
+ e.decipherOnly = (b3 & 0x80) === 0x80;
1543
+ } else if(e.name === 'basicConstraints') {
1544
+ // handle basic constraints
1545
+ // get value as SEQUENCE
1546
+ var ev = asn1.fromDer(e.value);
1547
+ // get cA BOOLEAN flag (defaults to false)
1548
+ if(ev.value.length > 0 && ev.value[0].type === asn1.Type.BOOLEAN) {
1549
+ e.cA = (ev.value[0].value.charCodeAt(0) !== 0x00);
1550
+ } else {
1551
+ e.cA = false;
1552
+ }
1553
+ // get path length constraint
1554
+ var value = null;
1555
+ if(ev.value.length > 0 && ev.value[0].type === asn1.Type.INTEGER) {
1556
+ value = ev.value[0].value;
1557
+ } else if(ev.value.length > 1) {
1558
+ value = ev.value[1].value;
1559
+ }
1560
+ if(value !== null) {
1561
+ e.pathLenConstraint = asn1.derToInteger(value);
1562
+ }
1563
+ } else if(e.name === 'extKeyUsage') {
1564
+ // handle extKeyUsage
1565
+ // value is a SEQUENCE of OIDs
1566
+ var ev = asn1.fromDer(e.value);
1567
+ for(var vi = 0; vi < ev.value.length; ++vi) {
1568
+ var oid = asn1.derToOid(ev.value[vi].value);
1569
+ if(oid in oids) {
1570
+ e[oids[oid]] = true;
1571
+ } else {
1572
+ e[oid] = true;
1573
+ }
1574
+ }
1575
+ } else if(e.name === 'nsCertType') {
1576
+ // handle nsCertType
1577
+ // get value as BIT STRING
1578
+ var ev = asn1.fromDer(e.value);
1579
+ var b2 = 0x00;
1580
+ if(ev.value.length > 1) {
1581
+ // skip first byte, just indicates unused bits which
1582
+ // will be padded with 0s anyway
1583
+ // get bytes with flag bits
1584
+ b2 = ev.value.charCodeAt(1);
1585
+ }
1586
+ // set flags
1587
+ e.client = (b2 & 0x80) === 0x80;
1588
+ e.server = (b2 & 0x40) === 0x40;
1589
+ e.email = (b2 & 0x20) === 0x20;
1590
+ e.objsign = (b2 & 0x10) === 0x10;
1591
+ e.reserved = (b2 & 0x08) === 0x08;
1592
+ e.sslCA = (b2 & 0x04) === 0x04;
1593
+ e.emailCA = (b2 & 0x02) === 0x02;
1594
+ e.objCA = (b2 & 0x01) === 0x01;
1595
+ } else if(
1596
+ e.name === 'subjectAltName' ||
1597
+ e.name === 'issuerAltName') {
1598
+ // handle subjectAltName/issuerAltName
1599
+ e.altNames = [];
1600
+
1601
+ // ev is a SYNTAX SEQUENCE
1602
+ var gn;
1603
+ var ev = asn1.fromDer(e.value);
1604
+ for(var n = 0; n < ev.value.length; ++n) {
1605
+ // get GeneralName
1606
+ gn = ev.value[n];
1607
+
1608
+ var altName = {
1609
+ type: gn.type,
1610
+ value: gn.value
1611
+ };
1612
+ e.altNames.push(altName);
1613
+
1614
+ // Note: Support for types 1,2,6,7,8
1615
+ switch(gn.type) {
1616
+ // rfc822Name
1617
+ case 1:
1618
+ // dNSName
1619
+ case 2:
1620
+ // uniformResourceIdentifier (URI)
1621
+ case 6:
1622
+ break;
1623
+ // IPAddress
1624
+ case 7:
1625
+ // convert to IPv4/IPv6 string representation
1626
+ altName.ip = forge.util.bytesToIP(gn.value);
1627
+ break;
1628
+ // registeredID
1629
+ case 8:
1630
+ altName.oid = asn1.derToOid(gn.value);
1631
+ break;
1632
+ default:
1633
+ // unsupported
1634
+ }
1635
+ }
1636
+ } else if(e.name === 'nameConstraints' && e.id === '2.5.29.30') {
1637
+ // handle nameConstraints (id-ce-nameConstraints only, the deprecated
1638
+ // 2.5.29.11 OID has a different syntax and is not parsed)
1639
+ // (an invalid value is left unparsed; verifyCertificateChain()
1640
+ // rejects it)
1641
+ try {
1642
+ var nc = _readNameConstraints(asn1.fromDer(e.value));
1643
+ e.permittedSubtrees = nc.permittedSubtrees;
1644
+ e.excludedSubtrees = nc.excludedSubtrees;
1645
+ e.unsupportedSubtreeRange = nc.unsupportedSubtreeRange;
1646
+ } catch(ex) {
1647
+ // not parsed
1648
+ }
1649
+ } else if(e.name === 'subjectKeyIdentifier') {
1650
+ // value is an OCTETSTRING w/the hash of the key-type specific
1651
+ // public key structure (eg: RSAPublicKey)
1652
+ var ev = asn1.fromDer(e.value);
1653
+ e.subjectKeyIdentifier = forge.util.bytesToHex(ev.value);
1654
+ }
1655
+ }
1656
+ return e;
1657
+ };
1658
+
1659
+ /**
1660
+ * Reads the value of a NameConstraints extension (RFC 5280 4.2.1.10).
1661
+ *
1662
+ * NameConstraints ::= SEQUENCE {
1663
+ * permittedSubtrees [0] GeneralSubtrees OPTIONAL,
1664
+ * excludedSubtrees [1] GeneralSubtrees OPTIONAL }
1665
+ *
1666
+ * GeneralSubtrees ::= SEQUENCE SIZE (1..MAX) OF GeneralSubtree
1667
+ *
1668
+ * GeneralSubtree ::= SEQUENCE {
1669
+ * base GeneralName,
1670
+ * minimum [0] BaseDistance DEFAULT 0,
1671
+ * maximum [1] BaseDistance OPTIONAL }
1672
+ *
1673
+ * Each subtree is returned as an object with the GeneralName 'type' and
1674
+ * 'value' (as for subjectAltName), 'attributes' for a directoryName base and
1675
+ * 'minimum'/'maximum' when present.
1676
+ *
1677
+ * @param ev the extension value as an ASN.1 object.
1678
+ *
1679
+ * @return an object with permittedSubtrees, excludedSubtrees and
1680
+ * unsupportedSubtreeRange (true if any subtree has a minimum other
1681
+ * than 0 or a maximum, which RFC 5280 does not allow).
1682
+ */
1683
+ function _readNameConstraints(ev) {
1684
+ var rval = {
1685
+ permittedSubtrees: [],
1686
+ excludedSubtrees: [],
1687
+ unsupportedSubtreeRange: false
1688
+ };
1689
+ if(ev.tagClass !== asn1.Class.UNIVERSAL ||
1690
+ ev.type !== asn1.Type.SEQUENCE || !forge.util.isArray(ev.value)) {
1691
+ throw new Error('Invalid nameConstraints extension.');
1692
+ }
1693
+ for(var i = 0; i < ev.value.length; ++i) {
1694
+ var trees = ev.value[i];
1695
+ var list;
1696
+ if(trees.tagClass === asn1.Class.CONTEXT_SPECIFIC && trees.type === 0) {
1697
+ list = rval.permittedSubtrees;
1698
+ } else if(trees.tagClass === asn1.Class.CONTEXT_SPECIFIC &&
1699
+ trees.type === 1) {
1700
+ list = rval.excludedSubtrees;
1701
+ } else {
1702
+ throw new Error('Invalid nameConstraints extension.');
1703
+ }
1704
+ if(!forge.util.isArray(trees.value)) {
1705
+ throw new Error('Invalid nameConstraints extension.');
1706
+ }
1707
+ for(var n = 0; n < trees.value.length; ++n) {
1708
+ var subtree = trees.value[n];
1709
+ if(subtree.type !== asn1.Type.SEQUENCE ||
1710
+ !forge.util.isArray(subtree.value) || subtree.value.length === 0 ||
1711
+ subtree.value[0].tagClass !== asn1.Class.CONTEXT_SPECIFIC) {
1712
+ throw new Error('Invalid nameConstraints extension.');
1713
+ }
1714
+ // base GeneralName
1715
+ var gn = subtree.value[0];
1716
+ var base = {
1717
+ type: gn.type,
1718
+ value: gn.value
1719
+ };
1720
+ // directoryName is an EXPLICIT Name
1721
+ if(gn.type === 4 && forge.util.isArray(gn.value) &&
1722
+ gn.value.length === 1 &&
1723
+ gn.value[0].type === asn1.Type.SEQUENCE &&
1724
+ forge.util.isArray(gn.value[0].value)) {
1725
+ base.attributes = pki.RDNAttributesAsArray(gn.value[0]);
1726
+ }
1727
+ // minimum and maximum
1728
+ for(var m = 1; m < subtree.value.length; ++m) {
1729
+ var bd = subtree.value[m];
1730
+ if(bd.tagClass === asn1.Class.CONTEXT_SPECIFIC && bd.type === 0) {
1731
+ base.minimum = asn1.derToInteger(bd.value);
1732
+ if(base.minimum !== 0) {
1733
+ rval.unsupportedSubtreeRange = true;
1734
+ }
1735
+ } else if(bd.tagClass === asn1.Class.CONTEXT_SPECIFIC &&
1736
+ bd.type === 1) {
1737
+ base.maximum = asn1.derToInteger(bd.value);
1738
+ rval.unsupportedSubtreeRange = true;
1739
+ } else {
1740
+ throw new Error('Invalid nameConstraints extension.');
1741
+ }
1742
+ }
1743
+ list.push(base);
1744
+ }
1745
+ }
1746
+ return rval;
1747
+ }
1748
+
1749
+ /**
1750
+ * Converts a PKCS#10 certification request (CSR) from an ASN.1 object.
1751
+ *
1752
+ * Note: If the certification request is to be verified then compute hash
1753
+ * should be set to true. There is currently no implementation for converting
1754
+ * a certificate back to ASN.1 so the CertificationRequestInfo part of the
1755
+ * ASN.1 object needs to be scanned before the csr object is created.
1756
+ *
1757
+ * @param obj the asn1 representation of a PKCS#10 certification request (CSR).
1758
+ * @param computeHash true to compute the hash for verification.
1759
+ *
1760
+ * @return the certification request (CSR).
1761
+ */
1762
+ pki.certificationRequestFromAsn1 = function(obj, computeHash) {
1763
+ // validate certification request and capture data
1764
+ var capture = {};
1765
+ var errors = [];
1766
+ if(!asn1.validate(obj, certificationRequestValidator, capture, errors)) {
1767
+ var error = new Error('Cannot read PKCS#10 certificate request. ' +
1768
+ 'ASN.1 object is not a PKCS#10 CertificationRequest.');
1769
+ error.errors = errors;
1770
+ throw error;
1771
+ }
1772
+
1773
+ // get oid
1774
+ var oid = asn1.derToOid(capture.publicKeyOid);
1775
+ if(oid !== pki.oids.rsaEncryption) {
1776
+ throw new Error('Cannot read public key. OID is not RSA.');
1777
+ }
1778
+
1779
+ // create certification request
1780
+ var csr = pki.createCertificationRequest();
1781
+ csr.version = capture.csrVersion ? capture.csrVersion.charCodeAt(0) : 0;
1782
+ csr.signatureOid = forge.asn1.derToOid(capture.csrSignatureOid);
1783
+ csr.signatureParameters = _readSignatureParameters(
1784
+ csr.signatureOid, capture.csrSignatureParams, true);
1785
+ csr.siginfo.algorithmOid = forge.asn1.derToOid(capture.csrSignatureOid);
1786
+ csr.siginfo.parameters = _readSignatureParameters(
1787
+ csr.siginfo.algorithmOid, capture.csrSignatureParams, false);
1788
+ csr.signature = capture.csrSignature;
1789
+
1790
+ // keep CertificationRequestInfo to preserve signature when exporting
1791
+ csr.certificationRequestInfo = capture.certificationRequestInfo;
1792
+
1793
+ if(computeHash) {
1794
+ // create digest for OID signature type
1795
+ csr.md = _createSignatureDigest({
1796
+ signatureOid: csr.signatureOid,
1797
+ type: 'certification request'
1798
+ });
1799
+
1800
+ // produce DER formatted CertificationRequestInfo and digest it
1801
+ var bytes = asn1.toDer(csr.certificationRequestInfo);
1802
+ csr.md.update(bytes.getBytes());
1803
+ }
1804
+
1805
+ // handle subject, build subject message digest
1806
+ var smd = forge.md.sha1.create();
1807
+ csr.subject.getField = function(sn) {
1808
+ return _getAttribute(csr.subject, sn);
1809
+ };
1810
+ csr.subject.addField = function(attr) {
1811
+ _fillMissingFields([attr]);
1812
+ csr.subject.attributes.push(attr);
1813
+ };
1814
+ csr.subject.attributes = pki.RDNAttributesAsArray(
1815
+ capture.certificationRequestInfoSubject, smd);
1816
+ csr.subject.hash = smd.digest().toHex();
1817
+
1818
+ // convert RSA public key from ASN.1
1819
+ csr.publicKey = pki.publicKeyFromAsn1(capture.subjectPublicKeyInfo);
1820
+
1821
+ // convert attributes from ASN.1
1822
+ csr.getAttribute = function(sn) {
1823
+ return _getAttribute(csr, sn);
1824
+ };
1825
+ csr.addAttribute = function(attr) {
1826
+ _fillMissingFields([attr]);
1827
+ csr.attributes.push(attr);
1828
+ };
1829
+ csr.attributes = pki.CRIAttributesAsArray(
1830
+ capture.certificationRequestInfoAttributes || []);
1831
+
1832
+ return csr;
1833
+ };
1834
+
1835
+ /**
1836
+ * Creates an empty certification request (a CSR or certificate signing
1837
+ * request). Once created, its public key and attributes can be set and then
1838
+ * it can be signed.
1839
+ *
1840
+ * @return the empty certification request.
1841
+ */
1842
+ pki.createCertificationRequest = function() {
1843
+ var csr = {};
1844
+ csr.version = 0x00;
1845
+ csr.signatureOid = null;
1846
+ csr.signature = null;
1847
+ csr.siginfo = {};
1848
+ csr.siginfo.algorithmOid = null;
1849
+
1850
+ csr.subject = {};
1851
+ csr.subject.getField = function(sn) {
1852
+ return _getAttribute(csr.subject, sn);
1853
+ };
1854
+ csr.subject.addField = function(attr) {
1855
+ _fillMissingFields([attr]);
1856
+ csr.subject.attributes.push(attr);
1857
+ };
1858
+ csr.subject.attributes = [];
1859
+ csr.subject.hash = null;
1860
+
1861
+ csr.publicKey = null;
1862
+ csr.attributes = [];
1863
+ csr.getAttribute = function(sn) {
1864
+ return _getAttribute(csr, sn);
1865
+ };
1866
+ csr.addAttribute = function(attr) {
1867
+ _fillMissingFields([attr]);
1868
+ csr.attributes.push(attr);
1869
+ };
1870
+ csr.md = null;
1871
+
1872
+ /**
1873
+ * Sets the subject of this certification request.
1874
+ *
1875
+ * @param attrs the array of subject attributes to use.
1876
+ */
1877
+ csr.setSubject = function(attrs) {
1878
+ // set new attributes
1879
+ _fillMissingFields(attrs);
1880
+ csr.subject.attributes = attrs;
1881
+ csr.subject.hash = null;
1882
+ };
1883
+
1884
+ /**
1885
+ * Sets the attributes of this certification request.
1886
+ *
1887
+ * @param attrs the array of attributes to use.
1888
+ */
1889
+ csr.setAttributes = function(attrs) {
1890
+ // set new attributes
1891
+ _fillMissingFields(attrs);
1892
+ csr.attributes = attrs;
1893
+ };
1894
+
1895
+ /**
1896
+ * Signs this certification request using the given private key.
1897
+ *
1898
+ * @param key the private key to sign with.
1899
+ * @param md the message digest object to use (defaults to forge.md.sha1).
1900
+ */
1901
+ csr.sign = function(key, md) {
1902
+ // TODO: get signature OID from private key
1903
+ csr.md = md || forge.md.sha1.create();
1904
+ var algorithmOid = oids[csr.md.algorithm + 'WithRSAEncryption'];
1905
+ if(!algorithmOid) {
1906
+ var error = new Error('Could not compute certification request digest. ' +
1907
+ 'Unknown message digest algorithm OID.');
1908
+ error.algorithm = csr.md.algorithm;
1909
+ throw error;
1910
+ }
1911
+ csr.signatureOid = csr.siginfo.algorithmOid = algorithmOid;
1912
+
1913
+ // get CertificationRequestInfo, convert to DER
1914
+ csr.certificationRequestInfo = pki.getCertificationRequestInfo(csr);
1915
+ var bytes = asn1.toDer(csr.certificationRequestInfo);
1916
+
1917
+ // digest and sign
1918
+ csr.md.update(bytes.getBytes());
1919
+ csr.signature = key.sign(csr.md);
1920
+ };
1921
+
1922
+ /**
1923
+ * Attempts verify the signature on the passed certification request using
1924
+ * its public key.
1925
+ *
1926
+ * A CSR that has been exported to a file in PEM format can be verified using
1927
+ * OpenSSL using this command:
1928
+ *
1929
+ * openssl req -in <the-csr-pem-file> -verify -noout -text
1930
+ *
1931
+ * @return true if verified, false if not.
1932
+ */
1933
+ csr.verify = function() {
1934
+ var rval = false;
1935
+
1936
+ var md = csr.md;
1937
+ if(md === null) {
1938
+ md = _createSignatureDigest({
1939
+ signatureOid: csr.signatureOid,
1940
+ type: 'certification request'
1941
+ });
1942
+
1943
+ // produce DER formatted CertificationRequestInfo and digest it
1944
+ var cri = csr.certificationRequestInfo ||
1945
+ pki.getCertificationRequestInfo(csr);
1946
+ var bytes = asn1.toDer(cri);
1947
+ md.update(bytes.getBytes());
1948
+ }
1949
+
1950
+ if(md !== null) {
1951
+ rval = _verifySignature({
1952
+ certificate: csr, md: md, signature: csr.signature
1953
+ });
1954
+ }
1955
+
1956
+ return rval;
1957
+ };
1958
+
1959
+ return csr;
1960
+ };
1961
+
1962
+ /**
1963
+ * Converts an X.509 subject or issuer to an ASN.1 RDNSequence.
1964
+ *
1965
+ * @param obj the subject or issuer (distinguished name).
1966
+ *
1967
+ * @return the ASN.1 RDNSequence.
1968
+ */
1969
+ function _dnToAsn1(obj) {
1970
+ // create an empty RDNSequence
1971
+ var rval = asn1.create(
1972
+ asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, []);
1973
+
1974
+ // iterate over attributes
1975
+ var attr, set;
1976
+ var attrs = obj.attributes;
1977
+ for(var i = 0; i < attrs.length; ++i) {
1978
+ attr = attrs[i];
1979
+ var value = attr.value;
1980
+
1981
+ // reuse tag class for attribute value if available
1982
+ var valueTagClass = asn1.Type.PRINTABLESTRING;
1983
+ if('valueTagClass' in attr) {
1984
+ valueTagClass = attr.valueTagClass;
1985
+
1986
+ if(valueTagClass === asn1.Type.UTF8) {
1987
+ value = forge.util.encodeUtf8(value);
1988
+ }
1989
+ // FIXME: handle more encodings
1990
+ }
1991
+
1992
+ // create a RelativeDistinguishedName set
1993
+ // each value in the set is an AttributeTypeAndValue first
1994
+ // containing the type (an OID) and second the value
1995
+ set = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SET, true, [
1996
+ asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [
1997
+ // AttributeType
1998
+ asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false,
1999
+ asn1.oidToDer(attr.type).getBytes()),
2000
+ // AttributeValue
2001
+ asn1.create(asn1.Class.UNIVERSAL, valueTagClass, false, value)
2002
+ ])
2003
+ ]);
2004
+ rval.value.push(set);
2005
+ }
2006
+
2007
+ return rval;
2008
+ }
2009
+
2010
+ /**
2011
+ * Gets all printable attributes (typically of an issuer or subject) in a
2012
+ * simplified JSON format for display.
2013
+ *
2014
+ * @param attrs the attributes.
2015
+ *
2016
+ * @return the JSON for display.
2017
+ */
2018
+ function _getAttributesAsJson(attrs) {
2019
+ var rval = {};
2020
+ for(var i = 0; i < attrs.length; ++i) {
2021
+ var attr = attrs[i];
2022
+ if(attr.shortName && (
2023
+ attr.valueTagClass === asn1.Type.UTF8 ||
2024
+ attr.valueTagClass === asn1.Type.PRINTABLESTRING ||
2025
+ attr.valueTagClass === asn1.Type.IA5STRING)) {
2026
+ var value = attr.value;
2027
+ if(attr.valueTagClass === asn1.Type.UTF8) {
2028
+ value = forge.util.encodeUtf8(attr.value);
2029
+ }
2030
+ if(!(attr.shortName in rval)) {
2031
+ rval[attr.shortName] = value;
2032
+ } else if(forge.util.isArray(rval[attr.shortName])) {
2033
+ rval[attr.shortName].push(value);
2034
+ } else {
2035
+ rval[attr.shortName] = [rval[attr.shortName], value];
2036
+ }
2037
+ }
2038
+ }
2039
+ return rval;
2040
+ }
2041
+
2042
+ /**
2043
+ * Fills in missing fields in attributes.
2044
+ *
2045
+ * @param attrs the attributes to fill missing fields in.
2046
+ */
2047
+ function _fillMissingFields(attrs) {
2048
+ var attr;
2049
+ for(var i = 0; i < attrs.length; ++i) {
2050
+ attr = attrs[i];
2051
+
2052
+ // populate missing name
2053
+ if(typeof attr.name === 'undefined') {
2054
+ if(attr.type && attr.type in pki.oids) {
2055
+ attr.name = pki.oids[attr.type];
2056
+ } else if(attr.shortName && attr.shortName in _shortNames) {
2057
+ attr.name = pki.oids[_shortNames[attr.shortName]];
2058
+ }
2059
+ }
2060
+
2061
+ // populate missing type (OID)
2062
+ if(typeof attr.type === 'undefined') {
2063
+ if(attr.name && attr.name in pki.oids) {
2064
+ attr.type = pki.oids[attr.name];
2065
+ } else {
2066
+ var error = new Error('Attribute type not specified.');
2067
+ error.attribute = attr;
2068
+ throw error;
2069
+ }
2070
+ }
2071
+
2072
+ // populate missing shortname
2073
+ if(typeof attr.shortName === 'undefined') {
2074
+ if(attr.name && attr.name in _shortNames) {
2075
+ attr.shortName = _shortNames[attr.name];
2076
+ }
2077
+ }
2078
+
2079
+ // convert extensions to value
2080
+ if(attr.type === oids.extensionRequest) {
2081
+ attr.valueConstructed = true;
2082
+ attr.valueTagClass = asn1.Type.SEQUENCE;
2083
+ if(!attr.value && attr.extensions) {
2084
+ attr.value = [];
2085
+ for(var ei = 0; ei < attr.extensions.length; ++ei) {
2086
+ attr.value.push(pki.certificateExtensionToAsn1(
2087
+ _fillMissingExtensionFields(attr.extensions[ei])));
2088
+ }
2089
+ }
2090
+ }
2091
+
2092
+ if(typeof attr.value === 'undefined') {
2093
+ var error = new Error('Attribute value not specified.');
2094
+ error.attribute = attr;
2095
+ throw error;
2096
+ }
2097
+ }
2098
+ }
2099
+
2100
+ /**
2101
+ * Fills in missing fields in certificate extensions.
2102
+ *
2103
+ * @param e the extension.
2104
+ * @param [options] the options to use.
2105
+ * [cert] the certificate the extensions are for.
2106
+ *
2107
+ * @return the extension.
2108
+ */
2109
+ function _fillMissingExtensionFields(e, options) {
2110
+ options = options || {};
2111
+
2112
+ // populate missing name
2113
+ if(typeof e.name === 'undefined') {
2114
+ if(e.id && e.id in pki.oids) {
2115
+ e.name = pki.oids[e.id];
2116
+ }
2117
+ }
2118
+
2119
+ // populate missing id
2120
+ if(typeof e.id === 'undefined') {
2121
+ if(e.name && e.name in pki.oids) {
2122
+ e.id = pki.oids[e.name];
2123
+ } else {
2124
+ var error = new Error('Extension ID not specified.');
2125
+ error.extension = e;
2126
+ throw error;
2127
+ }
2128
+ }
2129
+
2130
+ if(typeof e.value !== 'undefined') {
2131
+ return e;
2132
+ }
2133
+
2134
+ // handle missing value:
2135
+
2136
+ // value is a BIT STRING
2137
+ if(e.name === 'keyUsage') {
2138
+ // build flags
2139
+ var unused = 0;
2140
+ var b2 = 0x00;
2141
+ var b3 = 0x00;
2142
+ if(e.digitalSignature) {
2143
+ b2 |= 0x80;
2144
+ unused = 7;
2145
+ }
2146
+ if(e.nonRepudiation) {
2147
+ b2 |= 0x40;
2148
+ unused = 6;
2149
+ }
2150
+ if(e.keyEncipherment) {
2151
+ b2 |= 0x20;
2152
+ unused = 5;
2153
+ }
2154
+ if(e.dataEncipherment) {
2155
+ b2 |= 0x10;
2156
+ unused = 4;
2157
+ }
2158
+ if(e.keyAgreement) {
2159
+ b2 |= 0x08;
2160
+ unused = 3;
2161
+ }
2162
+ if(e.keyCertSign) {
2163
+ b2 |= 0x04;
2164
+ unused = 2;
2165
+ }
2166
+ if(e.cRLSign) {
2167
+ b2 |= 0x02;
2168
+ unused = 1;
2169
+ }
2170
+ if(e.encipherOnly) {
2171
+ b2 |= 0x01;
2172
+ unused = 0;
2173
+ }
2174
+ if(e.decipherOnly) {
2175
+ b3 |= 0x80;
2176
+ unused = 7;
2177
+ }
2178
+
2179
+ // create bit string
2180
+ var value = String.fromCharCode(unused);
2181
+ if(b3 !== 0) {
2182
+ value += String.fromCharCode(b2) + String.fromCharCode(b3);
2183
+ } else if(b2 !== 0) {
2184
+ value += String.fromCharCode(b2);
2185
+ }
2186
+ e.value = asn1.create(
2187
+ asn1.Class.UNIVERSAL, asn1.Type.BITSTRING, false, value);
2188
+ } else if(e.name === 'basicConstraints') {
2189
+ // basicConstraints is a SEQUENCE
2190
+ e.value = asn1.create(
2191
+ asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, []);
2192
+ // cA BOOLEAN flag defaults to false
2193
+ if(e.cA) {
2194
+ e.value.value.push(asn1.create(
2195
+ asn1.Class.UNIVERSAL, asn1.Type.BOOLEAN, false,
2196
+ String.fromCharCode(0xFF)));
2197
+ }
2198
+ if('pathLenConstraint' in e) {
2199
+ e.value.value.push(asn1.create(
2200
+ asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false,
2201
+ asn1.integerToDer(e.pathLenConstraint).getBytes()));
2202
+ }
2203
+ } else if(e.name === 'extKeyUsage') {
2204
+ // extKeyUsage is a SEQUENCE of OIDs
2205
+ e.value = asn1.create(
2206
+ asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, []);
2207
+ var seq = e.value.value;
2208
+ for(var key in e) {
2209
+ if(e[key] !== true) {
2210
+ continue;
2211
+ }
2212
+ // key is name in OID map
2213
+ if(key in oids) {
2214
+ seq.push(asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID,
2215
+ false, asn1.oidToDer(oids[key]).getBytes()));
2216
+ } else if(key.indexOf('.') !== -1) {
2217
+ // assume key is an OID
2218
+ seq.push(asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID,
2219
+ false, asn1.oidToDer(key).getBytes()));
2220
+ }
2221
+ }
2222
+ } else if(e.name === 'nsCertType') {
2223
+ // nsCertType is a BIT STRING
2224
+ // build flags
2225
+ var unused = 0;
2226
+ var b2 = 0x00;
2227
+
2228
+ if(e.client) {
2229
+ b2 |= 0x80;
2230
+ unused = 7;
2231
+ }
2232
+ if(e.server) {
2233
+ b2 |= 0x40;
2234
+ unused = 6;
2235
+ }
2236
+ if(e.email) {
2237
+ b2 |= 0x20;
2238
+ unused = 5;
2239
+ }
2240
+ if(e.objsign) {
2241
+ b2 |= 0x10;
2242
+ unused = 4;
2243
+ }
2244
+ if(e.reserved) {
2245
+ b2 |= 0x08;
2246
+ unused = 3;
2247
+ }
2248
+ if(e.sslCA) {
2249
+ b2 |= 0x04;
2250
+ unused = 2;
2251
+ }
2252
+ if(e.emailCA) {
2253
+ b2 |= 0x02;
2254
+ unused = 1;
2255
+ }
2256
+ if(e.objCA) {
2257
+ b2 |= 0x01;
2258
+ unused = 0;
2259
+ }
2260
+
2261
+ // create bit string
2262
+ var value = String.fromCharCode(unused);
2263
+ if(b2 !== 0) {
2264
+ value += String.fromCharCode(b2);
2265
+ }
2266
+ e.value = asn1.create(
2267
+ asn1.Class.UNIVERSAL, asn1.Type.BITSTRING, false, value);
2268
+ } else if(e.name === 'subjectAltName' || e.name === 'issuerAltName') {
2269
+ // SYNTAX SEQUENCE
2270
+ e.value = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, []);
2271
+
2272
+ var altName;
2273
+ for(var n = 0; n < e.altNames.length; ++n) {
2274
+ altName = e.altNames[n];
2275
+ var value = altName.value;
2276
+ // handle IP
2277
+ if(altName.type === 7 && altName.ip) {
2278
+ value = forge.util.bytesFromIP(altName.ip);
2279
+ if(value === null) {
2280
+ var error = new Error(
2281
+ 'Extension "ip" value is not a valid IPv4 or IPv6 address.');
2282
+ error.extension = e;
2283
+ throw error;
2284
+ }
2285
+ } else if(altName.type === 8) {
2286
+ // handle OID
2287
+ if(altName.oid) {
2288
+ value = asn1.oidToDer(asn1.oidToDer(altName.oid));
2289
+ } else {
2290
+ // deprecated ... convert value to OID
2291
+ value = asn1.oidToDer(value);
2292
+ }
2293
+ }
2294
+ e.value.value.push(asn1.create(
2295
+ asn1.Class.CONTEXT_SPECIFIC, altName.type, false,
2296
+ value));
2297
+ }
2298
+ } else if(e.name === 'nsComment' && options.cert) {
2299
+ // sanity check value is ASCII (req'd) and not too big
2300
+ if(!(/^[\x00-\x7F]*$/.test(e.comment)) ||
2301
+ (e.comment.length < 1) || (e.comment.length > 128)) {
2302
+ throw new Error('Invalid "nsComment" content.');
2303
+ }
2304
+ // IA5STRING opaque comment
2305
+ e.value = asn1.create(
2306
+ asn1.Class.UNIVERSAL, asn1.Type.IA5STRING, false, e.comment);
2307
+ } else if(e.name === 'subjectKeyIdentifier' && options.cert) {
2308
+ var ski = options.cert.generateSubjectKeyIdentifier();
2309
+ e.subjectKeyIdentifier = ski.toHex();
2310
+ // OCTETSTRING w/digest
2311
+ e.value = asn1.create(
2312
+ asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, ski.getBytes());
2313
+ } else if(e.name === 'authorityKeyIdentifier' && options.cert) {
2314
+ // SYNTAX SEQUENCE
2315
+ e.value = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, []);
2316
+ var seq = e.value.value;
2317
+
2318
+ if(e.keyIdentifier) {
2319
+ var keyIdentifier = (e.keyIdentifier === true ?
2320
+ options.cert.generateSubjectKeyIdentifier().getBytes() :
2321
+ e.keyIdentifier);
2322
+ seq.push(
2323
+ asn1.create(asn1.Class.CONTEXT_SPECIFIC, 0, false, keyIdentifier));
2324
+ }
2325
+
2326
+ if(e.authorityCertIssuer) {
2327
+ var authorityCertIssuer = [
2328
+ asn1.create(asn1.Class.CONTEXT_SPECIFIC, 4, true, [
2329
+ _dnToAsn1(e.authorityCertIssuer === true ?
2330
+ options.cert.issuer : e.authorityCertIssuer)
2331
+ ])
2332
+ ];
2333
+ seq.push(
2334
+ asn1.create(asn1.Class.CONTEXT_SPECIFIC, 1, true, authorityCertIssuer));
2335
+ }
2336
+
2337
+ if(e.serialNumber) {
2338
+ var serialNumber = forge.util.hexToBytes(e.serialNumber === true ?
2339
+ options.cert.serialNumber : e.serialNumber);
2340
+ seq.push(
2341
+ asn1.create(asn1.Class.CONTEXT_SPECIFIC, 2, false, serialNumber));
2342
+ }
2343
+ } else if(e.name === 'cRLDistributionPoints') {
2344
+ e.value = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, []);
2345
+ var seq = e.value.value;
2346
+
2347
+ // Create sub SEQUENCE of DistributionPointName
2348
+ var subSeq = asn1.create(
2349
+ asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, []);
2350
+
2351
+ // Create fullName CHOICE
2352
+ var fullNameGeneralNames = asn1.create(
2353
+ asn1.Class.CONTEXT_SPECIFIC, 0, true, []);
2354
+ var altName;
2355
+ for(var n = 0; n < e.altNames.length; ++n) {
2356
+ altName = e.altNames[n];
2357
+ var value = altName.value;
2358
+ // handle IP
2359
+ if(altName.type === 7 && altName.ip) {
2360
+ value = forge.util.bytesFromIP(altName.ip);
2361
+ if(value === null) {
2362
+ var error = new Error(
2363
+ 'Extension "ip" value is not a valid IPv4 or IPv6 address.');
2364
+ error.extension = e;
2365
+ throw error;
2366
+ }
2367
+ } else if(altName.type === 8) {
2368
+ // handle OID
2369
+ if(altName.oid) {
2370
+ value = asn1.oidToDer(asn1.oidToDer(altName.oid));
2371
+ } else {
2372
+ // deprecated ... convert value to OID
2373
+ value = asn1.oidToDer(value);
2374
+ }
2375
+ }
2376
+ fullNameGeneralNames.value.push(asn1.create(
2377
+ asn1.Class.CONTEXT_SPECIFIC, altName.type, false,
2378
+ value));
2379
+ }
2380
+
2381
+ // Add to the parent SEQUENCE
2382
+ subSeq.value.push(asn1.create(
2383
+ asn1.Class.CONTEXT_SPECIFIC, 0, true, [fullNameGeneralNames]));
2384
+ seq.push(subSeq);
2385
+ }
2386
+
2387
+ // ensure value has been defined by now
2388
+ if(typeof e.value === 'undefined') {
2389
+ var error = new Error('Extension value not specified.');
2390
+ error.extension = e;
2391
+ throw error;
2392
+ }
2393
+
2394
+ return e;
2395
+ }
2396
+
2397
+ /**
2398
+ * Convert signature parameters object to ASN.1
2399
+ *
2400
+ * @param {String} oid Signature algorithm OID
2401
+ * @param params The signature parameters object
2402
+ * @return ASN.1 object representing signature parameters
2403
+ */
2404
+ function _signatureParametersToAsn1(oid, params) {
2405
+ switch(oid) {
2406
+ case oids['RSASSA-PSS']:
2407
+ var parts = [];
2408
+
2409
+ if(params.hash.algorithmOid !== undefined) {
2410
+ parts.push(asn1.create(asn1.Class.CONTEXT_SPECIFIC, 0, true, [
2411
+ asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [
2412
+ asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false,
2413
+ asn1.oidToDer(params.hash.algorithmOid).getBytes()),
2414
+ asn1.create(asn1.Class.UNIVERSAL, asn1.Type.NULL, false, '')
2415
+ ])
2416
+ ]));
2417
+ }
2418
+
2419
+ if(params.mgf.algorithmOid !== undefined) {
2420
+ parts.push(asn1.create(asn1.Class.CONTEXT_SPECIFIC, 1, true, [
2421
+ asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [
2422
+ asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false,
2423
+ asn1.oidToDer(params.mgf.algorithmOid).getBytes()),
2424
+ asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [
2425
+ asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false,
2426
+ asn1.oidToDer(params.mgf.hash.algorithmOid).getBytes()),
2427
+ asn1.create(asn1.Class.UNIVERSAL, asn1.Type.NULL, false, '')
2428
+ ])
2429
+ ])
2430
+ ]));
2431
+ }
2432
+
2433
+ if(params.saltLength !== undefined) {
2434
+ parts.push(asn1.create(asn1.Class.CONTEXT_SPECIFIC, 2, true, [
2435
+ asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false,
2436
+ asn1.integerToDer(params.saltLength).getBytes())
2437
+ ]));
2438
+ }
2439
+
2440
+ return asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, parts);
2441
+
2442
+ default:
2443
+ return asn1.create(asn1.Class.UNIVERSAL, asn1.Type.NULL, false, '');
2444
+ }
2445
+ }
2446
+
2447
+ /**
2448
+ * Converts a certification request's attributes to an ASN.1 set of
2449
+ * CRIAttributes.
2450
+ *
2451
+ * @param csr certification request.
2452
+ *
2453
+ * @return the ASN.1 set of CRIAttributes.
2454
+ */
2455
+ function _CRIAttributesToAsn1(csr) {
2456
+ // create an empty context-specific container
2457
+ var rval = asn1.create(asn1.Class.CONTEXT_SPECIFIC, 0, true, []);
2458
+
2459
+ // no attributes, return empty container
2460
+ if(csr.attributes.length === 0) {
2461
+ return rval;
2462
+ }
2463
+
2464
+ // each attribute has a sequence with a type and a set of values
2465
+ var attrs = csr.attributes;
2466
+ for(var i = 0; i < attrs.length; ++i) {
2467
+ var attr = attrs[i];
2468
+ var value = attr.value;
2469
+
2470
+ // reuse tag class for attribute value if available
2471
+ var valueTagClass = asn1.Type.UTF8;
2472
+ if('valueTagClass' in attr) {
2473
+ valueTagClass = attr.valueTagClass;
2474
+ }
2475
+ if(valueTagClass === asn1.Type.UTF8) {
2476
+ value = forge.util.encodeUtf8(value);
2477
+ }
2478
+ var valueConstructed = false;
2479
+ if('valueConstructed' in attr) {
2480
+ valueConstructed = attr.valueConstructed;
2481
+ }
2482
+ // FIXME: handle more encodings
2483
+
2484
+ // create a RelativeDistinguishedName set
2485
+ // each value in the set is an AttributeTypeAndValue first
2486
+ // containing the type (an OID) and second the value
2487
+ var seq = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [
2488
+ // AttributeType
2489
+ asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false,
2490
+ asn1.oidToDer(attr.type).getBytes()),
2491
+ asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SET, true, [
2492
+ // AttributeValue
2493
+ asn1.create(
2494
+ asn1.Class.UNIVERSAL, valueTagClass, valueConstructed, value)
2495
+ ])
2496
+ ]);
2497
+ rval.value.push(seq);
2498
+ }
2499
+
2500
+ return rval;
2501
+ }
2502
+
2503
+ var jan_1_1950 = new Date('1950-01-01T00:00:00Z');
2504
+ var jan_1_2050 = new Date('2050-01-01T00:00:00Z');
2505
+
2506
+ /**
2507
+ * Converts a Date object to ASN.1
2508
+ * Handles the different format before and after 1st January 2050
2509
+ *
2510
+ * @param date date object.
2511
+ *
2512
+ * @return the ASN.1 object representing the date.
2513
+ */
2514
+ function _dateToAsn1(date) {
2515
+ if(date >= jan_1_1950 && date < jan_1_2050) {
2516
+ return asn1.create(
2517
+ asn1.Class.UNIVERSAL, asn1.Type.UTCTIME, false,
2518
+ asn1.dateToUtcTime(date));
2519
+ } else {
2520
+ return asn1.create(
2521
+ asn1.Class.UNIVERSAL, asn1.Type.GENERALIZEDTIME, false,
2522
+ asn1.dateToGeneralizedTime(date));
2523
+ }
2524
+ }
2525
+
2526
+ /**
2527
+ * Gets the ASN.1 TBSCertificate part of an X.509v3 certificate.
2528
+ *
2529
+ * @param cert the certificate.
2530
+ *
2531
+ * @return the asn1 TBSCertificate.
2532
+ */
2533
+ pki.getTBSCertificate = function(cert) {
2534
+ // TBSCertificate
2535
+ var notBefore = _dateToAsn1(cert.validity.notBefore);
2536
+ var notAfter = _dateToAsn1(cert.validity.notAfter);
2537
+ var tbs = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [
2538
+ // version
2539
+ asn1.create(asn1.Class.CONTEXT_SPECIFIC, 0, true, [
2540
+ // integer
2541
+ asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false,
2542
+ asn1.integerToDer(cert.version).getBytes())
2543
+ ]),
2544
+ // serialNumber
2545
+ asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false,
2546
+ forge.util.hexToBytes(cert.serialNumber)),
2547
+ // signature
2548
+ asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [
2549
+ // algorithm
2550
+ asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false,
2551
+ asn1.oidToDer(cert.siginfo.algorithmOid).getBytes()),
2552
+ // parameters
2553
+ _signatureParametersToAsn1(
2554
+ cert.siginfo.algorithmOid, cert.siginfo.parameters)
2555
+ ]),
2556
+ // issuer
2557
+ _dnToAsn1(cert.issuer),
2558
+ // validity
2559
+ asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [
2560
+ notBefore,
2561
+ notAfter
2562
+ ]),
2563
+ // subject
2564
+ _dnToAsn1(cert.subject),
2565
+ // SubjectPublicKeyInfo
2566
+ pki.publicKeyToAsn1(cert.publicKey)
2567
+ ]);
2568
+
2569
+ if(cert.issuer.uniqueId) {
2570
+ // issuerUniqueID (optional)
2571
+ tbs.value.push(
2572
+ asn1.create(asn1.Class.CONTEXT_SPECIFIC, 1, true, [
2573
+ asn1.create(asn1.Class.UNIVERSAL, asn1.Type.BITSTRING, false,
2574
+ // TODO: support arbitrary bit length ids
2575
+ String.fromCharCode(0x00) +
2576
+ cert.issuer.uniqueId
2577
+ )
2578
+ ])
2579
+ );
2580
+ }
2581
+ if(cert.subject.uniqueId) {
2582
+ // subjectUniqueID (optional)
2583
+ tbs.value.push(
2584
+ asn1.create(asn1.Class.CONTEXT_SPECIFIC, 2, true, [
2585
+ asn1.create(asn1.Class.UNIVERSAL, asn1.Type.BITSTRING, false,
2586
+ // TODO: support arbitrary bit length ids
2587
+ String.fromCharCode(0x00) +
2588
+ cert.subject.uniqueId
2589
+ )
2590
+ ])
2591
+ );
2592
+ }
2593
+
2594
+ if(cert.extensions.length > 0) {
2595
+ // extensions (optional)
2596
+ tbs.value.push(pki.certificateExtensionsToAsn1(cert.extensions));
2597
+ }
2598
+
2599
+ return tbs;
2600
+ };
2601
+
2602
+ /**
2603
+ * Gets the ASN.1 CertificationRequestInfo part of a
2604
+ * PKCS#10 CertificationRequest.
2605
+ *
2606
+ * @param csr the certification request.
2607
+ *
2608
+ * @return the asn1 CertificationRequestInfo.
2609
+ */
2610
+ pki.getCertificationRequestInfo = function(csr) {
2611
+ // CertificationRequestInfo
2612
+ var cri = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [
2613
+ // version
2614
+ asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false,
2615
+ asn1.integerToDer(csr.version).getBytes()),
2616
+ // subject
2617
+ _dnToAsn1(csr.subject),
2618
+ // SubjectPublicKeyInfo
2619
+ pki.publicKeyToAsn1(csr.publicKey),
2620
+ // attributes
2621
+ _CRIAttributesToAsn1(csr)
2622
+ ]);
2623
+
2624
+ return cri;
2625
+ };
2626
+
2627
+ /**
2628
+ * Converts a DistinguishedName (subject or issuer) to an ASN.1 object.
2629
+ *
2630
+ * @param dn the DistinguishedName.
2631
+ *
2632
+ * @return the asn1 representation of a DistinguishedName.
2633
+ */
2634
+ pki.distinguishedNameToAsn1 = function(dn) {
2635
+ return _dnToAsn1(dn);
2636
+ };
2637
+
2638
+ /**
2639
+ * Converts an X.509v3 RSA certificate to an ASN.1 object.
2640
+ *
2641
+ * @param cert the certificate.
2642
+ *
2643
+ * @return the asn1 representation of an X.509v3 RSA certificate.
2644
+ */
2645
+ pki.certificateToAsn1 = function(cert) {
2646
+ // prefer cached TBSCertificate over generating one
2647
+ var tbsCertificate = cert.tbsCertificate || pki.getTBSCertificate(cert);
2648
+
2649
+ // Certificate
2650
+ return asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [
2651
+ // TBSCertificate
2652
+ tbsCertificate,
2653
+ // AlgorithmIdentifier (signature algorithm)
2654
+ asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [
2655
+ // algorithm
2656
+ asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false,
2657
+ asn1.oidToDer(cert.signatureOid).getBytes()),
2658
+ // parameters
2659
+ _signatureParametersToAsn1(cert.signatureOid, cert.signatureParameters)
2660
+ ]),
2661
+ // SignatureValue
2662
+ asn1.create(asn1.Class.UNIVERSAL, asn1.Type.BITSTRING, false,
2663
+ String.fromCharCode(0x00) + cert.signature)
2664
+ ]);
2665
+ };
2666
+
2667
+ /**
2668
+ * Converts X.509v3 certificate extensions to ASN.1.
2669
+ *
2670
+ * @param exts the extensions to convert.
2671
+ *
2672
+ * @return the extensions in ASN.1 format.
2673
+ */
2674
+ pki.certificateExtensionsToAsn1 = function(exts) {
2675
+ // create top-level extension container
2676
+ var rval = asn1.create(asn1.Class.CONTEXT_SPECIFIC, 3, true, []);
2677
+
2678
+ // create extension sequence (stores a sequence for each extension)
2679
+ var seq = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, []);
2680
+ rval.value.push(seq);
2681
+
2682
+ for(var i = 0; i < exts.length; ++i) {
2683
+ seq.value.push(pki.certificateExtensionToAsn1(exts[i]));
2684
+ }
2685
+
2686
+ return rval;
2687
+ };
2688
+
2689
+ /**
2690
+ * Converts a single certificate extension to ASN.1.
2691
+ *
2692
+ * @param ext the extension to convert.
2693
+ *
2694
+ * @return the extension in ASN.1 format.
2695
+ */
2696
+ pki.certificateExtensionToAsn1 = function(ext) {
2697
+ // create a sequence for each extension
2698
+ var extseq = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, []);
2699
+
2700
+ // extnID (OID)
2701
+ extseq.value.push(asn1.create(
2702
+ asn1.Class.UNIVERSAL, asn1.Type.OID, false,
2703
+ asn1.oidToDer(ext.id).getBytes()));
2704
+
2705
+ // critical defaults to false
2706
+ if(ext.critical) {
2707
+ // critical BOOLEAN DEFAULT FALSE
2708
+ extseq.value.push(asn1.create(
2709
+ asn1.Class.UNIVERSAL, asn1.Type.BOOLEAN, false,
2710
+ String.fromCharCode(0xFF)));
2711
+ }
2712
+
2713
+ var value = ext.value;
2714
+ if(typeof ext.value !== 'string') {
2715
+ // value is asn.1
2716
+ value = asn1.toDer(value).getBytes();
2717
+ }
2718
+
2719
+ // extnValue (OCTET STRING)
2720
+ extseq.value.push(asn1.create(
2721
+ asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, value));
2722
+
2723
+ return extseq;
2724
+ };
2725
+
2726
+ /**
2727
+ * Converts a PKCS#10 certification request to an ASN.1 object.
2728
+ *
2729
+ * @param csr the certification request.
2730
+ *
2731
+ * @return the asn1 representation of a certification request.
2732
+ */
2733
+ pki.certificationRequestToAsn1 = function(csr) {
2734
+ // prefer cached CertificationRequestInfo over generating one
2735
+ var cri = csr.certificationRequestInfo ||
2736
+ pki.getCertificationRequestInfo(csr);
2737
+
2738
+ // Certificate
2739
+ return asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [
2740
+ // CertificationRequestInfo
2741
+ cri,
2742
+ // AlgorithmIdentifier (signature algorithm)
2743
+ asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [
2744
+ // algorithm
2745
+ asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false,
2746
+ asn1.oidToDer(csr.signatureOid).getBytes()),
2747
+ // parameters
2748
+ _signatureParametersToAsn1(csr.signatureOid, csr.signatureParameters)
2749
+ ]),
2750
+ // signature
2751
+ asn1.create(asn1.Class.UNIVERSAL, asn1.Type.BITSTRING, false,
2752
+ String.fromCharCode(0x00) + csr.signature)
2753
+ ]);
2754
+ };
2755
+
2756
+ /**
2757
+ * Creates a CA store.
2758
+ *
2759
+ * @param certs an optional array of certificate objects or PEM-formatted
2760
+ * certificate strings to add to the CA store.
2761
+ *
2762
+ * @return the CA store.
2763
+ */
2764
+ pki.createCaStore = function(certs) {
2765
+ // create CA store
2766
+ var caStore = {
2767
+ // stored certificates
2768
+ certs: {}
2769
+ };
2770
+
2771
+ /**
2772
+ * Gets the certificate that issued the passed certificate or its
2773
+ * 'parent'.
2774
+ *
2775
+ * @param cert the certificate to get the parent for.
2776
+ *
2777
+ * @return the parent certificate or null if none was found.
2778
+ */
2779
+ caStore.getIssuer = function(cert) {
2780
+ var rval = getBySubject(cert.issuer);
2781
+
2782
+ // see if there are multiple matches
2783
+ /*if(forge.util.isArray(rval)) {
2784
+ // TODO: resolve multiple matches by checking
2785
+ // authorityKey/subjectKey/issuerUniqueID/other identifiers, etc.
2786
+ // FIXME: or alternatively do authority key mapping
2787
+ // if possible (X.509v1 certs can't work?)
2788
+ throw new Error('Resolving multiple issuer matches not implemented yet.');
2789
+ }*/
2790
+
2791
+ return rval;
2792
+ };
2793
+
2794
+ /**
2795
+ * Adds a trusted certificate to the store.
2796
+ *
2797
+ * @param cert the certificate to add as a trusted certificate (either a
2798
+ * pki.certificate object or a PEM-formatted certificate).
2799
+ */
2800
+ caStore.addCertificate = function(cert) {
2801
+ // convert from pem if necessary
2802
+ if(typeof cert === 'string') {
2803
+ cert = forge.pki.certificateFromPem(cert);
2804
+ }
2805
+
2806
+ ensureSubjectHasHash(cert.subject);
2807
+
2808
+ if(!caStore.hasCertificate(cert)) { // avoid duplicate certificates in store
2809
+ if(cert.subject.hash in caStore.certs) {
2810
+ // subject hash already exists, append to array
2811
+ var tmp = caStore.certs[cert.subject.hash];
2812
+ if(!forge.util.isArray(tmp)) {
2813
+ tmp = [tmp];
2814
+ }
2815
+ tmp.push(cert);
2816
+ caStore.certs[cert.subject.hash] = tmp;
2817
+ } else {
2818
+ caStore.certs[cert.subject.hash] = cert;
2819
+ }
2820
+ }
2821
+ };
2822
+
2823
+ /**
2824
+ * Checks to see if the given certificate is in the store.
2825
+ *
2826
+ * @param cert the certificate to check (either a pki.certificate or a
2827
+ * PEM-formatted certificate).
2828
+ *
2829
+ * @return true if the certificate is in the store, false if not.
2830
+ */
2831
+ caStore.hasCertificate = function(cert) {
2832
+ // convert from pem if necessary
2833
+ if(typeof cert === 'string') {
2834
+ cert = forge.pki.certificateFromPem(cert);
2835
+ }
2836
+
2837
+ var match = getBySubject(cert.subject);
2838
+ if(!match) {
2839
+ return false;
2840
+ }
2841
+ if(!forge.util.isArray(match)) {
2842
+ match = [match];
2843
+ }
2844
+ // compare DER-encoding of certificates
2845
+ var der1 = asn1.toDer(pki.certificateToAsn1(cert)).getBytes();
2846
+ for(var i = 0; i < match.length; ++i) {
2847
+ var der2 = asn1.toDer(pki.certificateToAsn1(match[i])).getBytes();
2848
+ if(der1 === der2) {
2849
+ return true;
2850
+ }
2851
+ }
2852
+ return false;
2853
+ };
2854
+
2855
+ /**
2856
+ * Lists all of the certificates kept in the store.
2857
+ *
2858
+ * @return an array of all of the pki.certificate objects in the store.
2859
+ */
2860
+ caStore.listAllCertificates = function() {
2861
+ var certList = [];
2862
+
2863
+ for(var hash in caStore.certs) {
2864
+ if(caStore.certs.hasOwnProperty(hash)) {
2865
+ var value = caStore.certs[hash];
2866
+ if(!forge.util.isArray(value)) {
2867
+ certList.push(value);
2868
+ } else {
2869
+ for(var i = 0; i < value.length; ++i) {
2870
+ certList.push(value[i]);
2871
+ }
2872
+ }
2873
+ }
2874
+ }
2875
+
2876
+ return certList;
2877
+ };
2878
+
2879
+ /**
2880
+ * Removes a certificate from the store.
2881
+ *
2882
+ * @param cert the certificate to remove (either a pki.certificate or a
2883
+ * PEM-formatted certificate).
2884
+ *
2885
+ * @return the certificate that was removed or null if the certificate
2886
+ * wasn't in store.
2887
+ */
2888
+ caStore.removeCertificate = function(cert) {
2889
+ var result;
2890
+
2891
+ // convert from pem if necessary
2892
+ if(typeof cert === 'string') {
2893
+ cert = forge.pki.certificateFromPem(cert);
2894
+ }
2895
+ ensureSubjectHasHash(cert.subject);
2896
+ if(!caStore.hasCertificate(cert)) {
2897
+ return null;
2898
+ }
2899
+
2900
+ var match = getBySubject(cert.subject);
2901
+
2902
+ if(!forge.util.isArray(match)) {
2903
+ result = caStore.certs[cert.subject.hash];
2904
+ delete caStore.certs[cert.subject.hash];
2905
+ return result;
2906
+ }
2907
+
2908
+ // compare DER-encoding of certificates
2909
+ var der1 = asn1.toDer(pki.certificateToAsn1(cert)).getBytes();
2910
+ for(var i = 0; i < match.length; ++i) {
2911
+ var der2 = asn1.toDer(pki.certificateToAsn1(match[i])).getBytes();
2912
+ if(der1 === der2) {
2913
+ result = match[i];
2914
+ match.splice(i, 1);
2915
+ }
2916
+ }
2917
+ if(match.length === 0) {
2918
+ delete caStore.certs[cert.subject.hash];
2919
+ }
2920
+
2921
+ return result;
2922
+ };
2923
+
2924
+ function getBySubject(subject) {
2925
+ ensureSubjectHasHash(subject);
2926
+ return caStore.certs[subject.hash] || null;
2927
+ }
2928
+
2929
+ function ensureSubjectHasHash(subject) {
2930
+ // produce subject hash if it doesn't exist
2931
+ if(!subject.hash) {
2932
+ var md = forge.md.sha1.create();
2933
+ subject.attributes = pki.RDNAttributesAsArray(_dnToAsn1(subject), md);
2934
+ subject.hash = md.digest().toHex();
2935
+ }
2936
+ }
2937
+
2938
+ // auto-add passed in certs
2939
+ if(certs) {
2940
+ // parse PEM-formatted certificates as necessary
2941
+ for(var i = 0; i < certs.length; ++i) {
2942
+ var cert = certs[i];
2943
+ caStore.addCertificate(cert);
2944
+ }
2945
+ }
2946
+
2947
+ return caStore;
2948
+ };
2949
+
2950
+ /**
2951
+ * Certificate verification errors, based on TLS.
2952
+ */
2953
+ pki.certificateError = {
2954
+ bad_certificate: 'forge.pki.BadCertificate',
2955
+ unsupported_certificate: 'forge.pki.UnsupportedCertificate',
2956
+ certificate_revoked: 'forge.pki.CertificateRevoked',
2957
+ certificate_expired: 'forge.pki.CertificateExpired',
2958
+ certificate_unknown: 'forge.pki.CertificateUnknown',
2959
+ unknown_ca: 'forge.pki.UnknownCertificateAuthority'
2960
+ };
2961
+
2962
+ // GeneralName type names, by context-specific tag
2963
+ var _generalNameTypes = {
2964
+ 0: 'otherName',
2965
+ 1: 'rfc822Name',
2966
+ 2: 'dNSName',
2967
+ 3: 'x400Address',
2968
+ 4: 'directoryName',
2969
+ 5: 'ediPartyName',
2970
+ 6: 'uniformResourceIdentifier',
2971
+ 7: 'iPAddress',
2972
+ 8: 'registeredID'
2973
+ };
2974
+
2975
+ // the most name and subtree comparisons done for one chain, which bounds the
2976
+ // work an attacker's certificates can cause before the chain is known to be
2977
+ // trusted (OpenSSL limits names * subtrees to 2^20 too, NAME_CHECK_MAX)
2978
+ var _maxNameConstraintChecks = 1 << 20;
2979
+
2980
+ /**
2981
+ * Gets the name constraints from each id-ce-nameConstraints extension of a
2982
+ * certificate, prepared for checking. The extension value is always parsed
2983
+ * again, so this also works for extensions that were set in memory or that
2984
+ * could not be parsed by certificateExtensionFromAsn1.
2985
+ *
2986
+ * @param cert the certificate.
2987
+ *
2988
+ * @return an array of objects with permitted and excluded subtrees or, if
2989
+ * the extension could not be parsed, invalid set to true.
2990
+ */
2991
+ function _getNameConstraints(cert) {
2992
+ var rval = [];
2993
+ for(var i = 0; i < cert.extensions.length; ++i) {
2994
+ var ext = cert.extensions[i];
2995
+ if(ext.id !== '2.5.29.30') {
2996
+ continue;
2997
+ }
2998
+ var nc;
2999
+ try {
3000
+ var value = ext.value;
3001
+ if(typeof value === 'string') {
3002
+ value = asn1.fromDer(value);
3003
+ }
3004
+ nc = _readNameConstraints(value);
3005
+ } catch(ex) {
3006
+ rval.push({invalid: true});
3007
+ continue;
3008
+ }
3009
+ rval.push({
3010
+ permitted: _prepareSubtrees(nc.permittedSubtrees),
3011
+ excluded: _prepareSubtrees(nc.excludedSubtrees)
3012
+ });
3013
+ }
3014
+ return rval;
3015
+ }
3016
+
3017
+ /**
3018
+ * Prepares subtrees for checking: lowercases host names and canonicalizes
3019
+ * directory names once instead of on every comparison.
3020
+ *
3021
+ * @param subtrees the subtrees from _readNameConstraints.
3022
+ *
3023
+ * @return an array of {type, supported, ...} objects.
3024
+ */
3025
+ function _prepareSubtrees(subtrees) {
3026
+ var rval = [];
3027
+ for(var i = 0; i < subtrees.length; ++i) {
3028
+ var subtree = subtrees[i];
3029
+ var st = {type: subtree.type, supported: _isSupportedSubtree(subtree)};
3030
+ if(st.supported) {
3031
+ switch(st.type) {
3032
+ case 1:
3033
+ // a mailbox (local@host), all mailboxes on a host (host or
3034
+ // @host) or in a domain (.domain)
3035
+ var at = subtree.value.lastIndexOf('@');
3036
+ st.local = (at === -1) ? null : subtree.value.substr(0, at);
3037
+ st.host = subtree.value.substr(at + 1).toLowerCase();
3038
+ break;
3039
+ case 2:
3040
+ case 6:
3041
+ st.host = subtree.value.toLowerCase();
3042
+ break;
3043
+ case 4:
3044
+ st.attributes = _canonicalAttributes(subtree.attributes);
3045
+ break;
3046
+ case 7:
3047
+ st.value = subtree.value;
3048
+ break;
3049
+ }
3050
+ }
3051
+ rval.push(st);
3052
+ }
3053
+ return rval;
3054
+ }
3055
+
3056
+ /**
3057
+ * Returns true if a name constraint subtree can be evaluated.
3058
+ *
3059
+ * @param subtree the subtree.
3060
+ *
3061
+ * @return true if supported, false if not.
3062
+ */
3063
+ function _isSupportedSubtree(subtree) {
3064
+ if((subtree.minimum && subtree.minimum !== 0) || 'maximum' in subtree) {
3065
+ return false;
3066
+ }
3067
+ switch(subtree.type) {
3068
+ case 1:
3069
+ case 2:
3070
+ case 6:
3071
+ return typeof subtree.value === 'string';
3072
+ case 4:
3073
+ return forge.util.isArray(subtree.attributes);
3074
+ case 7:
3075
+ // address and mask, IPv4 or IPv6
3076
+ return typeof subtree.value === 'string' &&
3077
+ (subtree.value.length === 8 || subtree.value.length === 32);
3078
+ }
3079
+ return false;
3080
+ }
3081
+
3082
+ /**
3083
+ * Canonicalizes the attribute values of a distinguished name for comparison
3084
+ * (RFC 5280 7.1; like OpenSSL): leading and trailing whitespace is removed,
3085
+ * other runs of whitespace become one space and ASCII letters are lowercased.
3086
+ *
3087
+ * @param attrs the attributes.
3088
+ *
3089
+ * @return an array of {type, value}.
3090
+ */
3091
+ function _canonicalAttributes(attrs) {
3092
+ var rval = [];
3093
+ for(var i = 0; i < attrs.length; ++i) {
3094
+ var value = attrs[i].value;
3095
+ if(typeof value === 'string') {
3096
+ value = value.replace(/[ \t\n\v\f\r]+/g, ' ');
3097
+ if(value.charAt(0) === ' ') {
3098
+ value = value.substr(1);
3099
+ }
3100
+ if(value.charAt(value.length - 1) === ' ') {
3101
+ value = value.substr(0, value.length - 1);
3102
+ }
3103
+ value = value.replace(/[A-Z]+/g, function(s) {
3104
+ return s.toLowerCase();
3105
+ });
3106
+ }
3107
+ rval.push({type: attrs[i].type, value: value});
3108
+ }
3109
+ return rval;
3110
+ }
3111
+
3112
+ /**
3113
+ * Returns true if a commonName value looks like a host name: letters,
3114
+ * digits, '_', and '-' and '.' only inside labels, with at least two
3115
+ * labels (as OpenSSL's cn2dnsid()).
3116
+ *
3117
+ * @param value the commonName value.
3118
+ *
3119
+ * @return true if the value looks like a host name.
3120
+ */
3121
+ function _isHostName(value) {
3122
+ if(typeof value !== 'string') {
3123
+ return false;
3124
+ }
3125
+ var labels = false;
3126
+ for(var i = 0; i < value.length; ++i) {
3127
+ var c = value.charAt(i);
3128
+ if(/[a-zA-Z0-9_]/.test(c)) {
3129
+ continue;
3130
+ }
3131
+ if(i > 0 && i < value.length - 1) {
3132
+ if(c === '-') {
3133
+ continue;
3134
+ }
3135
+ var next = value.charAt(i + 1);
3136
+ if(c === '.' && next !== '.' && next !== '-' &&
3137
+ value.charAt(i - 1) !== '-') {
3138
+ labels = true;
3139
+ continue;
3140
+ }
3141
+ }
3142
+ return false;
3143
+ }
3144
+ return labels;
3145
+ }
3146
+
3147
+ /**
3148
+ * Gets the names of a certificate's subject that name constraints apply to:
3149
+ * the subject DN, any emailAddress attributes in the subject DN (as
3150
+ * rfc822Name) and the subjectAltName entries. For an end-entity certificate
3151
+ * without a dNSName subjectAltName, commonName values that look like host
3152
+ * names are included as dNSNames, as OpenSSL does, because applications
3153
+ * may match a host name against them.
3154
+ *
3155
+ * @param cert the certificate.
3156
+ * @param leaf true if cert is the end-entity certificate.
3157
+ *
3158
+ * @return an object with 'names', an array of {type, value, ...},
3159
+ * 'unsupported', a map of the GeneralName types of names that
3160
+ * cannot be checked, and 'types', a map of the types of all names.
3161
+ */
3162
+ function _getConstrainedNames(cert, leaf) {
3163
+ var rval = {names: [], unsupported: {}, types: {}};
3164
+ var attrs = cert.subject.attributes;
3165
+ var i;
3166
+ if(attrs.length > 0) {
3167
+ _addConstrainedName(rval, 4, attrs);
3168
+ }
3169
+ // RFC 5280 4.2.1.10: rfc822Name constraints apply to emailAddress
3170
+ // attributes in the subject DN
3171
+ for(i = 0; i < attrs.length; ++i) {
3172
+ if(attrs[i].type === oids.emailAddress) {
3173
+ _addConstrainedName(rval, 1, attrs[i].value);
3174
+ }
3175
+ }
3176
+ var hasDnsName = false;
3177
+ for(i = 0; i < cert.extensions.length; ++i) {
3178
+ var san = cert.extensions[i];
3179
+ if(san.id !== '2.5.29.17') {
3180
+ continue;
3181
+ }
3182
+ var altNames = san.altNames || [];
3183
+ for(var n = 0; n < altNames.length; ++n) {
3184
+ var altName = altNames[n];
3185
+ var value = altName.value;
3186
+ if(altName.type === 2) {
3187
+ hasDnsName = true;
3188
+ }
3189
+ switch(altName.type) {
3190
+ case 4:
3191
+ value = null;
3192
+ if(forge.util.isArray(altName.value) &&
3193
+ altName.value.length === 1 &&
3194
+ altName.value[0].type === asn1.Type.SEQUENCE &&
3195
+ forge.util.isArray(altName.value[0].value)) {
3196
+ value = pki.RDNAttributesAsArray(altName.value[0]);
3197
+ }
3198
+ break;
3199
+ case 7:
3200
+ if(altName.ip) {
3201
+ value = forge.util.bytesFromIP(altName.ip);
3202
+ }
3203
+ break;
3204
+ }
3205
+ _addConstrainedName(rval, altName.type, value);
3206
+ }
3207
+ }
3208
+ if(leaf && !hasDnsName) {
3209
+ for(i = 0; i < attrs.length; ++i) {
3210
+ if(attrs[i].type === oids.commonName && _isHostName(attrs[i].value)) {
3211
+ _addConstrainedName(rval, 2, attrs[i].value);
3212
+ }
3213
+ }
3214
+ }
3215
+ return rval;
3216
+ }
3217
+
3218
+ /**
3219
+ * Adds a name to the result of _getConstrainedNames, prepared for checking,
3220
+ * or marks its type unsupported if it cannot be checked.
3221
+ *
3222
+ * @param names the result of _getConstrainedNames.
3223
+ * @param type the GeneralName type.
3224
+ * @param value the name.
3225
+ */
3226
+ function _addConstrainedName(names, type, value) {
3227
+ var name = {type: type, value: value};
3228
+ var ok = false;
3229
+ names.types[type] = true;
3230
+ switch(type) {
3231
+ case 1:
3232
+ // must be a mailbox (local@host)
3233
+ ok = (typeof value === 'string' && value.lastIndexOf('@') !== -1);
3234
+ if(ok) {
3235
+ var at = value.lastIndexOf('@');
3236
+ name.local = value.substr(0, at);
3237
+ name.host = value.substr(at + 1).toLowerCase();
3238
+ }
3239
+ break;
3240
+ case 2:
3241
+ ok = (typeof value === 'string');
3242
+ if(ok) {
3243
+ name.host = value.toLowerCase();
3244
+ }
3245
+ break;
3246
+ case 4:
3247
+ ok = forge.util.isArray(value);
3248
+ if(ok) {
3249
+ name.attributes = _canonicalAttributes(value);
3250
+ }
3251
+ break;
3252
+ case 6:
3253
+ // constraint applies to the host part, which must be present
3254
+ var m = (typeof value === 'string') &&
3255
+ /^[a-zA-Z][a-zA-Z0-9+.\-]*:\/\/([^\/?#]*)/.exec(value);
3256
+ if(m) {
3257
+ var host = m[1].substr(m[1].lastIndexOf('@') + 1);
3258
+ if(host.charAt(0) === '[') {
3259
+ // IP literal, never within a host name subtree
3260
+ name.host = null;
3261
+ } else {
3262
+ var colon = host.indexOf(':');
3263
+ if(colon !== -1) {
3264
+ host = host.substr(0, colon);
3265
+ }
3266
+ name.host = host.toLowerCase();
3267
+ }
3268
+ ok = (host.length > 0);
3269
+ }
3270
+ break;
3271
+ case 7:
3272
+ ok = (typeof value === 'string' &&
3273
+ (value.length === 4 || value.length === 16));
3274
+ break;
3275
+ }
3276
+ if(ok) {
3277
+ names.names.push(name);
3278
+ } else {
3279
+ names.unsupported[type] = true;
3280
+ }
3281
+ }
3282
+
3283
+ /**
3284
+ * Returns true if a host name is within a host constraint, as used for
3285
+ * rfc822Name and uniformResourceIdentifier: a base that starts with a period
3286
+ * matches any subdomain, otherwise the host must match exactly. Both must be
3287
+ * lowercase.
3288
+ */
3289
+ function _hostMatchesConstraint(host, base) {
3290
+ if(base.length === 0) {
3291
+ return true;
3292
+ }
3293
+ if(base.charAt(0) === '.') {
3294
+ return host.length > base.length &&
3295
+ host.substr(host.length - base.length) === base;
3296
+ }
3297
+ return host === base;
3298
+ }
3299
+
3300
+ /**
3301
+ * Returns true if a name is within the given name constraint subtree. The
3302
+ * subtree must be of the same type as the name and be supported.
3303
+ *
3304
+ * @param name the name from _getConstrainedNames.
3305
+ * @param subtree the subtree from _prepareSubtrees.
3306
+ *
3307
+ * @return true if the name is within the subtree, false if not.
3308
+ */
3309
+ function _nameMatchesConstraint(name, subtree) {
3310
+ var value = name.host;
3311
+ var base = subtree.host;
3312
+ var i;
3313
+ switch(name.type) {
3314
+ case 1:
3315
+ // rfc822Name: the local part is case-sensitive, the host is not
3316
+ if(subtree.local !== null) {
3317
+ return (subtree.local === '' || name.local === subtree.local) &&
3318
+ value === base;
3319
+ }
3320
+ return _hostMatchesConstraint(value, base);
3321
+ case 2:
3322
+ // dNSName: zero or more labels may be added to the left of the base
3323
+ if(base.length === 0) {
3324
+ return true;
3325
+ }
3326
+ if(base.charAt(0) === '.') {
3327
+ return value.length > base.length &&
3328
+ value.substr(value.length - base.length) === base;
3329
+ }
3330
+ return value === base || (value.length > base.length &&
3331
+ value.substr(value.length - base.length - 1) === '.' + base);
3332
+ case 6:
3333
+ // uniformResourceIdentifier: constraint applies to the host part
3334
+ return value !== null && _hostMatchesConstraint(value, base);
3335
+ case 4:
3336
+ // directoryName: base must be a prefix of the name
3337
+ var battrs = subtree.attributes;
3338
+ var attrs = name.attributes;
3339
+ if(battrs.length > attrs.length) {
3340
+ return false;
3341
+ }
3342
+ for(i = 0; i < battrs.length; ++i) {
3343
+ if(battrs[i].type !== attrs[i].type ||
3344
+ battrs[i].value !== attrs[i].value) {
3345
+ return false;
3346
+ }
3347
+ }
3348
+ return true;
3349
+ case 7:
3350
+ // iPAddress: base is address followed by mask
3351
+ value = name.value;
3352
+ base = subtree.value;
3353
+ if(base.length !== value.length * 2) {
3354
+ return false;
3355
+ }
3356
+ for(i = 0; i < value.length; ++i) {
3357
+ var mask = base.charCodeAt(value.length + i);
3358
+ if((value.charCodeAt(i) & mask) !== (base.charCodeAt(i) & mask)) {
3359
+ return false;
3360
+ }
3361
+ }
3362
+ return true;
3363
+ }
3364
+ return false;
3365
+ }
3366
+
3367
+ /**
3368
+ * Gets a printable form of a name for error reporting.
3369
+ */
3370
+ function _nameToString(name) {
3371
+ if(name.type === 4) {
3372
+ var parts = [];
3373
+ for(var i = 0; i < name.value.length; ++i) {
3374
+ var attr = name.value[i];
3375
+ parts.push((attr.shortName || attr.name || attr.type) + '=' +
3376
+ attr.value);
3377
+ }
3378
+ return parts.join(', ');
3379
+ }
3380
+ if(name.type === 7) {
3381
+ return forge.util.bytesToIP(name.value);
3382
+ }
3383
+ return name.value;
3384
+ }
3385
+
3386
+ /**
3387
+ * Checks the names of a certificate against the name constraints of the
3388
+ * certificates above it in the chain (RFC 5280 6.1.3 (b) and (c)). Each
3389
+ * name must be within the permitted subtrees of its type of every
3390
+ * constraint that has such subtrees, which is the same as being within
3391
+ * their intersection, and must not be within any excluded subtree.
3392
+ *
3393
+ * @param cert the certificate to check.
3394
+ * @param constraints the name constraints from _getNameConstraints.
3395
+ * @param count the number of constraints (from the start) that apply.
3396
+ * @param leaf true if cert is the end-entity certificate.
3397
+ * @param work {checks} to count the work done for the chain.
3398
+ *
3399
+ * @return null if the names are acceptable, otherwise an error object.
3400
+ */
3401
+ function _checkNameConstraints(cert, constraints, count, leaf, work) {
3402
+ if(count === 0) {
3403
+ return null;
3404
+ }
3405
+ var subject = _getConstrainedNames(cert, leaf);
3406
+ var names = subject.names;
3407
+ var i;
3408
+ var n;
3409
+ var k;
3410
+ var nc;
3411
+ var subtree;
3412
+ var typeName;
3413
+
3414
+ for(i = 0; i < count && work.checks <= _maxNameConstraintChecks; ++i) {
3415
+ nc = constraints[i];
3416
+ work.checks += (names.length + 1) *
3417
+ (nc.invalid ? 1 : nc.permitted.length + nc.excluded.length + 1);
3418
+ }
3419
+ if(work.checks > _maxNameConstraintChecks) {
3420
+ return {
3421
+ message: 'Certificate name constraints require too many checks.',
3422
+ error: pki.certificateError.unsupported_certificate
3423
+ };
3424
+ }
3425
+
3426
+ // fail closed on constraints that cannot be evaluated; a subtree only
3427
+ // applies to names of its own type (RFC 5280 4.2.1.10)
3428
+ for(i = 0; i < count; ++i) {
3429
+ nc = constraints[i];
3430
+ if(nc.invalid) {
3431
+ return {
3432
+ message: 'Certificate name constraint could not be parsed.',
3433
+ error: pki.certificateError.unsupported_certificate
3434
+ };
3435
+ }
3436
+ var all = nc.permitted.concat(nc.excluded);
3437
+ for(n = 0; n < all.length; ++n) {
3438
+ subtree = all[n];
3439
+ if((subtree.type in subject.unsupported) ||
3440
+ (!subtree.supported && subtree.type in subject.types)) {
3441
+ typeName = _generalNameTypes[subtree.type] || String(subtree.type);
3442
+ return {
3443
+ message: 'Certificate name constraint of type ' + typeName +
3444
+ ' is not supported.',
3445
+ error: pki.certificateError.unsupported_certificate,
3446
+ nameType: typeName
3447
+ };
3448
+ }
3449
+ }
3450
+ }
3451
+
3452
+ for(k = 0; k < names.length; ++k) {
3453
+ var name = names[k];
3454
+ for(i = 0; i < count; ++i) {
3455
+ nc = constraints[i];
3456
+ // permitted: must match one subtree of its type, if there are any
3457
+ var found = false;
3458
+ var matched = false;
3459
+ for(n = 0; !matched && n < nc.permitted.length; ++n) {
3460
+ subtree = nc.permitted[n];
3461
+ if(subtree.type === name.type) {
3462
+ found = true;
3463
+ matched = _nameMatchesConstraint(name, subtree);
3464
+ }
3465
+ }
3466
+ if(found && !matched) {
3467
+ return {
3468
+ message: 'Certificate subject name is not permitted by a name ' +
3469
+ 'constraint.',
3470
+ error: pki.certificateError.bad_certificate,
3471
+ nameValue: _nameToString(name),
3472
+ nameType: _generalNameTypes[name.type]
3473
+ };
3474
+ }
3475
+ // excluded: must not match any subtree of its type
3476
+ for(n = 0; n < nc.excluded.length; ++n) {
3477
+ subtree = nc.excluded[n];
3478
+ if(subtree.type === name.type &&
3479
+ _nameMatchesConstraint(name, subtree)) {
3480
+ return {
3481
+ message: 'Certificate subject name is excluded by a name ' +
3482
+ 'constraint.',
3483
+ error: pki.certificateError.bad_certificate,
3484
+ nameValue: _nameToString(name),
3485
+ nameType: _generalNameTypes[name.type]
3486
+ };
3487
+ }
3488
+ }
3489
+ }
3490
+ }
3491
+ return null;
3492
+ }
3493
+
3494
+ /**
3495
+ * Verifies a certificate chain against the given Certificate Authority store
3496
+ * with an optional custom verify callback.
3497
+ *
3498
+ * @param caStore a certificate store to verify against.
3499
+ * @param chain the certificate chain to verify, with the root or highest
3500
+ * authority at the end (an array of certificates).
3501
+ * @param options a callback to be called for every certificate in the chain or
3502
+ * an object with:
3503
+ * verify a callback to be called for every certificate in the
3504
+ * chain
3505
+ * validityCheckDate the date against which the certificate
3506
+ * validity period should be checked. Pass null to not check
3507
+ * the validity period. By default, the current date is used.
3508
+ *
3509
+ * The verify callback has the following signature:
3510
+ *
3511
+ * verified - Set to true if certificate was verified, otherwise the
3512
+ * pki.certificateError for why the certificate failed.
3513
+ * depth - The current index in the chain, where 0 is the end point's cert.
3514
+ * certs - The certificate chain, *NOTE* an empty chain indicates an anonymous
3515
+ * end point.
3516
+ *
3517
+ * The function returns true on success and on failure either the appropriate
3518
+ * pki.certificateError or an object with 'error' set to the appropriate
3519
+ * pki.certificateError and 'message' set to a custom error message.
3520
+ *
3521
+ * @return true if successful, error thrown if not.
3522
+ */
3523
+ pki.verifyCertificateChain = function(caStore, chain, options) {
3524
+ /* From: RFC3280 - Internet X.509 Public Key Infrastructure Certificate
3525
+ Section 6: Certification Path Validation
3526
+ See inline parentheticals related to this particular implementation.
3527
+
3528
+ The primary goal of path validation is to verify the binding between
3529
+ a subject distinguished name or a subject alternative name and subject
3530
+ public key, as represented in the end entity certificate, based on the
3531
+ public key of the trust anchor. This requires obtaining a sequence of
3532
+ certificates that support that binding. That sequence should be provided
3533
+ in the passed 'chain'. The trust anchor should be in the given CA
3534
+ store. The 'end entity' certificate is the certificate provided by the
3535
+ end point (typically a server) and is the first in the chain.
3536
+
3537
+ To meet this goal, the path validation process verifies, among other
3538
+ things, that a prospective certification path (a sequence of n
3539
+ certificates or a 'chain') satisfies the following conditions:
3540
+
3541
+ (a) for all x in {1, ..., n-1}, the subject of certificate x is
3542
+ the issuer of certificate x+1;
3543
+
3544
+ (b) certificate 1 is issued by the trust anchor;
3545
+
3546
+ (c) certificate n is the certificate to be validated; and
3547
+
3548
+ (d) for all x in {1, ..., n}, the certificate was valid at the
3549
+ time in question.
3550
+
3551
+ Note that here 'n' is index 0 in the chain and 1 is the last certificate
3552
+ in the chain and it must be signed by a certificate in the connection's
3553
+ CA store.
3554
+
3555
+ The path validation process also determines the set of certificate
3556
+ policies that are valid for this path, based on the certificate policies
3557
+ extension, policy mapping extension, policy constraints extension, and
3558
+ inhibit any-policy extension.
3559
+
3560
+ Note: Policy mapping extension not supported (Not Required).
3561
+
3562
+ Note: If the certificate has an unsupported critical extension, then it
3563
+ must be rejected.
3564
+
3565
+ Note: A certificate is self-issued if the DNs that appear in the subject
3566
+ and issuer fields are identical and are not empty.
3567
+
3568
+ The path validation algorithm assumes the following seven inputs are
3569
+ provided to the path processing logic. What this specific implementation
3570
+ will use is provided parenthetically:
3571
+
3572
+ (a) a prospective certification path of length n (the 'chain')
3573
+ (b) the current date/time: ('now').
3574
+ (c) user-initial-policy-set: A set of certificate policy identifiers
3575
+ naming the policies that are acceptable to the certificate user.
3576
+ The user-initial-policy-set contains the special value any-policy
3577
+ if the user is not concerned about certificate policy
3578
+ (Not implemented. Any policy is accepted).
3579
+ (d) trust anchor information, describing a CA that serves as a trust
3580
+ anchor for the certification path. The trust anchor information
3581
+ includes:
3582
+
3583
+ (1) the trusted issuer name,
3584
+ (2) the trusted public key algorithm,
3585
+ (3) the trusted public key, and
3586
+ (4) optionally, the trusted public key parameters associated
3587
+ with the public key.
3588
+
3589
+ (Trust anchors are provided via certificates in the CA store).
3590
+
3591
+ The trust anchor information may be provided to the path processing
3592
+ procedure in the form of a self-signed certificate. The trusted anchor
3593
+ information is trusted because it was delivered to the path processing
3594
+ procedure by some trustworthy out-of-band procedure. If the trusted
3595
+ public key algorithm requires parameters, then the parameters are
3596
+ provided along with the trusted public key (No parameters used in this
3597
+ implementation).
3598
+
3599
+ (e) initial-policy-mapping-inhibit, which indicates if policy mapping is
3600
+ allowed in the certification path.
3601
+ (Not implemented, no policy checking)
3602
+
3603
+ (f) initial-explicit-policy, which indicates if the path must be valid
3604
+ for at least one of the certificate policies in the user-initial-
3605
+ policy-set.
3606
+ (Not implemented, no policy checking)
3607
+
3608
+ (g) initial-any-policy-inhibit, which indicates whether the
3609
+ anyPolicy OID should be processed if it is included in a
3610
+ certificate.
3611
+ (Not implemented, so any policy is valid provided that it is
3612
+ not marked as critical) */
3613
+
3614
+ /* Basic Path Processing:
3615
+
3616
+ For each certificate in the 'chain', the following is checked:
3617
+
3618
+ 1. The certificate validity period includes the current time.
3619
+ 2. The certificate was signed by its parent (where the parent is either
3620
+ the next in the chain or from the CA store). Allow processing to
3621
+ continue to the next step if no parent is found but the certificate is
3622
+ in the CA store.
3623
+ 3. TODO: The certificate has not been revoked.
3624
+ 4. The certificate issuer name matches the parent's subject name.
3625
+ 5. If the certificate is self-issued and not the final certificate
3626
+ in the chain, skip this step, otherwise verify that the subject name
3627
+ is within one of the permitted subtrees of X.500 distinguished names
3628
+ and that each of the alternative names in the subjectAltName extension
3629
+ (critical or non-critical) is within one of the permitted subtrees for
3630
+ that name type.
3631
+ 6. If the certificate is self-issued and not the final certificate
3632
+ in the chain, skip this step, otherwise verify that the subject name
3633
+ is not within one of the excluded subtrees for X.500 distinguished
3634
+ names and none of the subjectAltName extension names are excluded for
3635
+ that name type.
3636
+ (Steps 5 and 6 use the nameConstraints extensions of all certificates
3637
+ above the certificate in the chain and of a trust anchor from the CA
3638
+ store that issued the last certificate in the chain. Supported name
3639
+ types are rfc822Name, dNSName, directoryName,
3640
+ uniformResourceIdentifier and iPAddress. As in OpenSSL, commonName
3641
+ values that look like host names are checked as dNSNames when the
3642
+ end-entity certificate has no dNSName subjectAltName. A constraint
3643
+ that cannot be evaluated for a name of its type, or more than 2^20
3644
+ name and subtree comparisons for the chain, cause the certificate to
3645
+ be rejected as not supported.)
3646
+ 7. The other steps in the algorithm for basic path processing involve
3647
+ handling the policy extension which is not presently supported in this
3648
+ implementation. Instead, if a critical policy extension is found, the
3649
+ certificate is rejected as not supported.
3650
+ 8. If the certificate is not the first or if its the only certificate in
3651
+ the chain (having no parent from the CA store or is self-signed) and it
3652
+ has a critical key usage extension, verify that the keyCertSign bit is
3653
+ set. If the key usage extension exists, verify that the basic
3654
+ constraints extension exists. If the basic constraints extension exists,
3655
+ verify that the cA flag is set. If pathLenConstraint is set, ensure that
3656
+ the number of certificates that precede in the chain (come earlier
3657
+ in the chain as implemented below), excluding the very first in the
3658
+ chain (typically the end-entity one), isn't greater than the
3659
+ pathLenConstraint. This constraint limits the number of intermediate
3660
+ CAs that may appear below a CA before only end-entity certificates
3661
+ may be issued. */
3662
+
3663
+ // if a verify callback is passed as the third parameter, package it within
3664
+ // the options object. This is to support a legacy function signature that
3665
+ // expected the verify callback as the third parameter.
3666
+ if(typeof options === 'function') {
3667
+ options = {verify: options};
3668
+ }
3669
+ options = options || {};
3670
+
3671
+ // copy cert chain references to another array to protect against changes
3672
+ // in verify callback
3673
+ chain = chain.slice(0);
3674
+ var certs = chain.slice(0);
3675
+
3676
+ var validityCheckDate = options.validityCheckDate;
3677
+ // if no validityCheckDate is specified, default to the current date. Make
3678
+ // sure to maintain the value null because it indicates that the validity
3679
+ // period should not be checked.
3680
+ if(typeof validityCheckDate === 'undefined') {
3681
+ validityCheckDate = new Date();
3682
+ }
3683
+
3684
+ // collect the name constraints that apply to each certificate in the
3685
+ // chain: those of the trust anchor that issued the last certificate (if
3686
+ // it is in the CA store and not in the chain) and those of every
3687
+ // certificate above it in the chain; the first ncCount[i] entries of
3688
+ // ncList apply to certs[i]
3689
+ var ncList = [];
3690
+ var ncCount = [];
3691
+ var ncWork = {checks: 0};
3692
+ var last = certs[certs.length - 1];
3693
+ if(last && !last.isIssuer(last)) {
3694
+ var anchors = caStore.getIssuer(last);
3695
+ anchors = anchors ?
3696
+ (forge.util.isArray(anchors) ? anchors.slice() : [anchors]) : [];
3697
+ for(var ai = 0; ai < anchors.length; ++ai) {
3698
+ var anchorNc = _getNameConstraints(anchors[ai]);
3699
+ if(anchorNc.length > 0) {
3700
+ var anchorVerified = false;
3701
+ try {
3702
+ anchorVerified = anchors[ai].verify(last);
3703
+ } catch(ex) {
3704
+ // not the issuer
3705
+ }
3706
+ for(var an = 0; anchorVerified && an < anchorNc.length; ++an) {
3707
+ ncList.push(anchorNc[an]);
3708
+ }
3709
+ }
3710
+ }
3711
+ }
3712
+ for(var ci = certs.length - 1; ci >= 0; --ci) {
3713
+ ncCount[ci] = ncList.length;
3714
+ var certNc = (ci > 0) ? _getNameConstraints(certs[ci]) : [];
3715
+ for(var cn = 0; cn < certNc.length; ++cn) {
3716
+ ncList.push(certNc[cn]);
3717
+ }
3718
+ }
3719
+
3720
+ // verify each cert in the chain using its parent, where the parent
3721
+ // is either the next in the chain or from the CA store
3722
+ var first = true;
3723
+ var error = null;
3724
+ var depth = 0;
3725
+ do {
3726
+ var cert = chain.shift();
3727
+ var parent = null;
3728
+ var selfSigned = false;
3729
+
3730
+ if(validityCheckDate) {
3731
+ // 1. check valid time
3732
+ if(validityCheckDate < cert.validity.notBefore ||
3733
+ validityCheckDate > cert.validity.notAfter) {
3734
+ error = {
3735
+ message: 'Certificate is not valid yet or has expired.',
3736
+ error: pki.certificateError.certificate_expired,
3737
+ notBefore: cert.validity.notBefore,
3738
+ notAfter: cert.validity.notAfter,
3739
+ // TODO: we might want to reconsider renaming 'now' to
3740
+ // 'validityCheckDate' should this API be changed in the future.
3741
+ now: validityCheckDate
3742
+ };
3743
+ }
3744
+ }
3745
+
3746
+ // 2. verify with parent from chain or CA store
3747
+ if(error === null) {
3748
+ parent = chain[0] || caStore.getIssuer(cert);
3749
+ if(parent === null) {
3750
+ // check for self-signed cert
3751
+ if(cert.isIssuer(cert)) {
3752
+ selfSigned = true;
3753
+ parent = cert;
3754
+ }
3755
+ }
3756
+
3757
+ if(parent) {
3758
+ // FIXME: current CA store implementation might have multiple
3759
+ // certificates where the issuer can't be determined from the
3760
+ // certificate (happens rarely with, eg: old certificates) so normalize
3761
+ // by always putting parents into an array
3762
+ // TODO: there's may be an extreme degenerate case currently uncovered
3763
+ // where an old intermediate certificate seems to have a matching parent
3764
+ // but none of the parents actually verify ... but the intermediate
3765
+ // is in the CA and it should pass this check; needs investigation
3766
+ // copy the CA store's array so that shift() below does not remove
3767
+ // certificates from the store
3768
+ var parents = forge.util.isArray(parent) ? parent.slice() : [parent];
3769
+
3770
+ // try to verify with each possible parent (typically only one)
3771
+ var verified = false;
3772
+ while(!verified && parents.length > 0) {
3773
+ parent = parents.shift();
3774
+ try {
3775
+ verified = parent.verify(cert);
3776
+ } catch(ex) {
3777
+ // failure to verify, don't care why, try next one
3778
+ }
3779
+ }
3780
+
3781
+ if(!verified) {
3782
+ error = {
3783
+ message: 'Certificate signature is invalid.',
3784
+ error: pki.certificateError.bad_certificate
3785
+ };
3786
+ }
3787
+ }
3788
+
3789
+ if(error === null && (!parent || selfSigned) &&
3790
+ !caStore.hasCertificate(cert)) {
3791
+ // no parent issuer and certificate itself is not trusted
3792
+ error = {
3793
+ message: 'Certificate is not trusted.',
3794
+ error: pki.certificateError.unknown_ca
3795
+ };
3796
+ }
3797
+ }
3798
+
3799
+ // TODO: 3. check revoked
3800
+
3801
+ // 4. check for matching issuer/subject
3802
+ if(error === null && parent && !cert.isIssuer(parent)) {
3803
+ // parent is not issuer
3804
+ error = {
3805
+ message: 'Certificate issuer is invalid.',
3806
+ error: pki.certificateError.bad_certificate
3807
+ };
3808
+ }
3809
+
3810
+ // 5. check names with permitted names tree
3811
+ // 6. check names against excluded names tree
3812
+ // (skipped for self-issued certificates that are not the final one)
3813
+ if(error === null && (first || !cert.isIssuer(cert))) {
3814
+ error = _checkNameConstraints(
3815
+ cert, ncList, ncCount[depth], first, ncWork);
3816
+ }
3817
+
3818
+ // 7. check for unsupported critical extensions
3819
+ if(error === null) {
3820
+ // supported extensions
3821
+ var se = {
3822
+ keyUsage: true,
3823
+ basicConstraints: true,
3824
+ nameConstraints: true
3825
+ };
3826
+ for(var i = 0; error === null && i < cert.extensions.length; ++i) {
3827
+ var ext = cert.extensions[i];
3828
+ // only id-ce-nameConstraints (2.5.29.30) is enforced, not the
3829
+ // deprecated 2.5.29.11 OID that has the same name
3830
+ if(ext.critical && (!(ext.name in se) ||
3831
+ (ext.name === 'nameConstraints' && ext.id !== '2.5.29.30'))) {
3832
+ error = {
3833
+ message:
3834
+ 'Certificate has an unsupported critical extension.',
3835
+ error: pki.certificateError.unsupported_certificate
3836
+ };
3837
+ }
3838
+ }
3839
+ }
3840
+
3841
+ // 8. check for CA if cert is not first or is the only certificate
3842
+ // remaining in chain with no parent or is self-signed
3843
+ if(error === null &&
3844
+ (!first || (chain.length === 0 && (!parent || selfSigned)))) {
3845
+ // first check keyUsage extension and then basic constraints
3846
+ // (by id: deprecated OIDs are also named 'basicConstraints', but only
3847
+ // id-ce-basicConstraints 2.5.29.19 is valid, RFC 5280 4.2.1.9)
3848
+ var bcExt = cert.getExtension({id: '2.5.29.19'});
3849
+ var keyUsageExt = cert.getExtension('keyUsage');
3850
+ if(keyUsageExt !== null) {
3851
+ // keyCertSign must be true and there must be a basic
3852
+ // constraints extension
3853
+ if(!keyUsageExt.keyCertSign || bcExt === null) {
3854
+ // bad certificate
3855
+ error = {
3856
+ message:
3857
+ 'Certificate keyUsage or basicConstraints conflict ' +
3858
+ 'or indicate that the certificate is not a CA. ' +
3859
+ 'If the certificate is the only one in the chain or ' +
3860
+ 'isn\'t the first then the certificate must be a ' +
3861
+ 'valid CA.',
3862
+ error: pki.certificateError.bad_certificate
3863
+ };
3864
+ }
3865
+ }
3866
+ // check for absent basicConstraints on non-leaf certificates
3867
+ if(error === null && bcExt === null) {
3868
+ error = {
3869
+ message:
3870
+ 'Certificate is missing basicConstraints extension and cannot ' +
3871
+ 'be used as a CA.',
3872
+ error: pki.certificateError.bad_certificate
3873
+ };
3874
+ }
3875
+ // basic constraints cA flag must be set
3876
+ if(error === null && bcExt !== null && !bcExt.cA) {
3877
+ // bad certificate
3878
+ error = {
3879
+ message:
3880
+ 'Certificate basicConstraints indicates the certificate ' +
3881
+ 'is not a CA.',
3882
+ error: pki.certificateError.bad_certificate
3883
+ };
3884
+ }
3885
+ // check pathLenConstraint (if it exists) regardless of whether the
3886
+ // keyUsage extension is present (RFC 5280 6.1.4)
3887
+ if(error === null && bcExt !== null &&
3888
+ 'pathLenConstraint' in bcExt) {
3889
+ // pathLen is the maximum # of intermediate CA certs that can be
3890
+ // found between the current certificate and the end-entity (depth 0)
3891
+ // certificate; this number does not include the end-entity (depth 0,
3892
+ // last in the chain) even if it happens to be a CA certificate itself
3893
+ var pathLen = depth - 1;
3894
+ if(pathLen > bcExt.pathLenConstraint) {
3895
+ // pathLenConstraint violated, bad certificate
3896
+ error = {
3897
+ message:
3898
+ 'Certificate basicConstraints pathLenConstraint violated.',
3899
+ error: pki.certificateError.bad_certificate
3900
+ };
3901
+ }
3902
+ }
3903
+ }
3904
+
3905
+ // call application callback
3906
+ var vfd = (error === null) ? true : error.error;
3907
+ var ret = options.verify ? options.verify(vfd, depth, certs) : vfd;
3908
+ if(ret === true) {
3909
+ // clear any set error
3910
+ error = null;
3911
+ } else {
3912
+ // if passed basic tests, set default message and alert
3913
+ if(vfd === true) {
3914
+ error = {
3915
+ message: 'The application rejected the certificate.',
3916
+ error: pki.certificateError.bad_certificate
3917
+ };
3918
+ }
3919
+
3920
+ // check for custom error info
3921
+ if(ret || ret === 0) {
3922
+ // set custom message and error
3923
+ if(typeof ret === 'object' && !forge.util.isArray(ret)) {
3924
+ if(ret.message) {
3925
+ error.message = ret.message;
3926
+ }
3927
+ if(ret.error) {
3928
+ error.error = ret.error;
3929
+ }
3930
+ } else if(typeof ret === 'string') {
3931
+ // set custom error
3932
+ error.error = ret;
3933
+ }
3934
+ }
3935
+
3936
+ // throw error
3937
+ throw error;
3938
+ }
3939
+
3940
+ // no longer first cert in chain
3941
+ first = false;
3942
+ ++depth;
3943
+ } while(chain.length > 0);
3944
+
3945
+ return true;
3946
+ };