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

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 (3747) hide show
  1. package/README.md +34 -0
  2. package/dist/args.d.ts +12 -2
  3. package/dist/args.js +35 -0
  4. package/dist/boot-id.d.ts +17 -0
  5. package/dist/boot-id.js +43 -0
  6. package/dist/cli.d.ts +5 -0
  7. package/dist/cli.js +38 -0
  8. package/dist/client.d.ts +8 -0
  9. package/dist/client.js +15 -3
  10. package/dist/commands/ceiling.d.ts +28 -0
  11. package/dist/commands/ceiling.js +120 -0
  12. package/dist/commands/login.js +18 -4
  13. package/dist/commands/mode.js +7 -3
  14. package/dist/commands/policy.js +3 -3
  15. package/dist/commands/start.d.ts +16 -1
  16. package/dist/commands/start.js +73 -8
  17. package/dist/commands/status.js +2 -2
  18. package/dist/exec/docker-operations.d.ts +44 -0
  19. package/dist/exec/docker-operations.js +288 -0
  20. package/dist/exec/docker.d.ts +11 -0
  21. package/dist/exec/docker.js +22 -1
  22. package/dist/exec/instance-binding.d.ts +107 -0
  23. package/dist/exec/instance-binding.js +267 -0
  24. package/dist/exec/linux-agent.d.ts +27 -0
  25. package/dist/exec/linux-agent.js +866 -0
  26. package/dist/exec/linux-operation-backend.d.ts +60 -0
  27. package/dist/exec/linux-operation-backend.js +85 -0
  28. package/dist/exec/linux-operation-worker.d.ts +33 -0
  29. package/dist/exec/linux-operation-worker.js +304 -0
  30. package/dist/exec/linux-runtime.d.ts +80 -0
  31. package/dist/exec/linux-runtime.js +181 -0
  32. package/dist/exec/mac-operation-backend.d.ts +113 -0
  33. package/dist/exec/mac-operation-backend.js +370 -0
  34. package/dist/exec/mac-self-check.d.ts +37 -0
  35. package/dist/exec/mac-self-check.js +163 -0
  36. package/dist/exec/mac-write-policy.d.ts +34 -0
  37. package/dist/exec/mac-write-policy.js +194 -0
  38. package/dist/exec/native-helper-client.d.ts +46 -0
  39. package/dist/exec/native-helper-client.js +204 -0
  40. package/dist/exec/operation-supervisor.d.ts +187 -0
  41. package/dist/exec/operation-supervisor.js +1307 -0
  42. package/dist/exec/operation-types.d.ts +55 -0
  43. package/dist/exec/operation-types.js +164 -0
  44. package/dist/exec/operation-worker.d.ts +83 -0
  45. package/dist/exec/operation-worker.js +649 -0
  46. package/dist/exec/output-spool-helper.d.ts +2 -0
  47. package/dist/exec/output-spool-helper.js +149 -0
  48. package/dist/exec/output-spool.d.ts +72 -0
  49. package/dist/exec/output-spool.js +324 -0
  50. package/dist/exec/runtime-manifest.d.ts +115 -0
  51. package/dist/exec/runtime-manifest.js +642 -0
  52. package/dist/exec/runtime-source.d.ts +87 -0
  53. package/dist/exec/runtime-source.js +305 -0
  54. package/dist/exec/switch.js +6 -5
  55. package/dist/node_modules/@anthropic-ai/sandbox-runtime/CAPYBARA-MODIFICATIONS.md +3 -0
  56. package/dist/node_modules/@anthropic-ai/sandbox-runtime/CAPYBARA-MODIFICATIONS.patch +70 -0
  57. package/{LICENSE → dist/node_modules/@anthropic-ai/sandbox-runtime/LICENSE} +1 -2
  58. package/dist/node_modules/@anthropic-ai/sandbox-runtime/README.md +1288 -0
  59. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/cli.d.ts +3 -0
  60. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/cli.d.ts.map +1 -0
  61. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/cli.js +527 -0
  62. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/cli.js.map +1 -0
  63. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/index.d.ts +22 -0
  64. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/index.d.ts.map +1 -0
  65. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/index.js +20 -0
  66. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/index.js.map +1 -0
  67. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/proxy-cli.d.ts +4 -0
  68. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/proxy-cli.d.ts.map +1 -0
  69. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/proxy-cli.js +119 -0
  70. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/proxy-cli.js.map +1 -0
  71. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/proxy-main.d.ts +3 -0
  72. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/proxy-main.d.ts.map +1 -0
  73. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/proxy-main.js +5 -0
  74. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/proxy-main.js.map +1 -0
  75. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/address.d.ts +52 -0
  76. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/address.d.ts.map +1 -0
  77. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/address.js +153 -0
  78. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/address.js.map +1 -0
  79. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/aws-sigv4.d.ts +168 -0
  80. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/aws-sigv4.d.ts.map +1 -0
  81. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/aws-sigv4.js +250 -0
  82. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/aws-sigv4.js.map +1 -0
  83. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/body-substitution.d.ts +58 -0
  84. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/body-substitution.d.ts.map +1 -0
  85. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/body-substitution.js +128 -0
  86. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/body-substitution.js.map +1 -0
  87. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-aws-pairs.d.ts +124 -0
  88. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-aws-pairs.d.ts.map +1 -0
  89. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-aws-pairs.js +258 -0
  90. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-aws-pairs.js.map +1 -0
  91. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-decode.d.ts +87 -0
  92. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-decode.d.ts.map +1 -0
  93. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-decode.js +138 -0
  94. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-decode.js.map +1 -0
  95. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-extract.d.ts +67 -0
  96. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-extract.d.ts.map +1 -0
  97. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-extract.js +113 -0
  98. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-extract.js.map +1 -0
  99. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-mask-env.d.ts +70 -0
  100. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-mask-env.d.ts.map +1 -0
  101. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-mask-env.js +171 -0
  102. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-mask-env.js.map +1 -0
  103. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-mask-files.d.ts +121 -0
  104. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-mask-files.d.ts.map +1 -0
  105. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-mask-files.js +282 -0
  106. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-mask-files.js.map +1 -0
  107. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-sentinel.d.ts +108 -0
  108. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-sentinel.d.ts.map +1 -0
  109. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-sentinel.js +208 -0
  110. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-sentinel.js.map +1 -0
  111. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/decider-client.d.ts +130 -0
  112. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/decider-client.d.ts.map +1 -0
  113. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/decider-client.js +780 -0
  114. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/decider-client.js.map +1 -0
  115. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/domain-pattern.d.ts +106 -0
  116. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/domain-pattern.d.ts.map +1 -0
  117. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/domain-pattern.js +221 -0
  118. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/domain-pattern.js.map +1 -0
  119. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/emitted-connection.d.ts +98 -0
  120. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/emitted-connection.d.ts.map +1 -0
  121. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/emitted-connection.js +194 -0
  122. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/emitted-connection.js.map +1 -0
  123. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/generate-seccomp-filter.d.ts +44 -0
  124. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/generate-seccomp-filter.d.ts.map +1 -0
  125. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/generate-seccomp-filter.js +220 -0
  126. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/generate-seccomp-filter.js.map +1 -0
  127. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/glob-pattern.d.ts +89 -0
  128. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/glob-pattern.d.ts.map +1 -0
  129. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/glob-pattern.js +230 -0
  130. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/glob-pattern.js.map +1 -0
  131. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/http-proxy.d.ts +316 -0
  132. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/http-proxy.d.ts.map +1 -0
  133. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/http-proxy.js +920 -0
  134. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/http-proxy.js.map +1 -0
  135. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/java-proxy-agent.d.ts +32 -0
  136. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/java-proxy-agent.d.ts.map +1 -0
  137. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/java-proxy-agent.js +111 -0
  138. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/java-proxy-agent.js.map +1 -0
  139. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/linux-sandbox-utils.d.ts +348 -0
  140. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/linux-sandbox-utils.d.ts.map +1 -0
  141. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/linux-sandbox-utils.js +3147 -0
  142. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/linux-sandbox-utils.js.map +1 -0
  143. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/linux-violation-monitor.d.ts +55 -0
  144. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/linux-violation-monitor.d.ts.map +1 -0
  145. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/linux-violation-monitor.js +152 -0
  146. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/linux-violation-monitor.js.map +1 -0
  147. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/listen-in-range.d.ts +12 -0
  148. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/listen-in-range.d.ts.map +1 -0
  149. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/listen-in-range.js +43 -0
  150. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/listen-in-range.js.map +1 -0
  151. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/macos-sandbox-utils.d.ts +117 -0
  152. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/macos-sandbox-utils.d.ts.map +1 -0
  153. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/macos-sandbox-utils.js +1286 -0
  154. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/macos-sandbox-utils.js.map +1 -0
  155. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mitm-ca.d.ts +209 -0
  156. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mitm-ca.d.ts.map +1 -0
  157. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mitm-ca.js +464 -0
  158. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mitm-ca.js.map +1 -0
  159. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mitm-leaf.d.ts +28 -0
  160. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mitm-leaf.d.ts.map +1 -0
  161. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mitm-leaf.js +139 -0
  162. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mitm-leaf.js.map +1 -0
  163. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mux-proxy.d.ts +64 -0
  164. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mux-proxy.d.ts.map +1 -0
  165. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mux-proxy.js +182 -0
  166. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mux-proxy.js.map +1 -0
  167. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/own-files.d.ts +13 -0
  168. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/own-files.d.ts.map +1 -0
  169. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/own-files.js +32 -0
  170. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/own-files.js.map +1 -0
  171. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/parent-proxy.d.ts +179 -0
  172. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/parent-proxy.d.ts.map +1 -0
  173. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/parent-proxy.js +510 -0
  174. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/parent-proxy.js.map +1 -0
  175. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/path-entries.d.ts +133 -0
  176. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/path-entries.d.ts.map +1 -0
  177. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/path-entries.js +340 -0
  178. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/path-entries.js.map +1 -0
  179. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/proxy-only.d.ts +99 -0
  180. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/proxy-only.d.ts.map +1 -0
  181. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/proxy-only.js +259 -0
  182. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/proxy-only.js.map +1 -0
  183. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/read-deny-glob.d.ts +28 -0
  184. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/read-deny-glob.d.ts.map +1 -0
  185. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/read-deny-glob.js +176 -0
  186. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/read-deny-glob.js.map +1 -0
  187. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/request-filter.d.ts +332 -0
  188. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/request-filter.d.ts.map +1 -0
  189. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/request-filter.js +754 -0
  190. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/request-filter.js.map +1 -0
  191. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/resolved-address-guard.d.ts +76 -0
  192. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/resolved-address-guard.d.ts.map +1 -0
  193. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/resolved-address-guard.js +221 -0
  194. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/resolved-address-guard.js.map +1 -0
  195. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-config.d.ts +1967 -0
  196. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-config.d.ts.map +1 -0
  197. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-config.js +1311 -0
  198. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-config.js.map +1 -0
  199. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-manager.d.ts +188 -0
  200. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-manager.d.ts.map +1 -0
  201. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-manager.js +2646 -0
  202. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-manager.js.map +1 -0
  203. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-schemas.d.ts +158 -0
  204. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-schemas.d.ts.map +1 -0
  205. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-schemas.js +3 -0
  206. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-schemas.js.map +1 -0
  207. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-utils.d.ts +479 -0
  208. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-utils.d.ts.map +1 -0
  209. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-utils.js +1637 -0
  210. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-utils.js.map +1 -0
  211. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-violation-store.d.ts +50 -0
  212. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-violation-store.d.ts.map +1 -0
  213. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-violation-store.js +143 -0
  214. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-violation-store.js.map +1 -0
  215. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/socks-proxy.d.ts +67 -0
  216. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/socks-proxy.d.ts.map +1 -0
  217. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/socks-proxy.js +345 -0
  218. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/socks-proxy.js.map +1 -0
  219. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/tls-terminate-proxy.d.ts +212 -0
  220. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/tls-terminate-proxy.d.ts.map +1 -0
  221. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/tls-terminate-proxy.js +1174 -0
  222. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/tls-terminate-proxy.js.map +1 -0
  223. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/windows-sandbox-utils.d.ts +1615 -0
  224. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/windows-sandbox-utils.d.ts.map +1 -0
  225. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/windows-sandbox-utils.js +2848 -0
  226. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/windows-sandbox-utils.js.map +1 -0
  227. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/config-loader.d.ts +31 -0
  228. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/config-loader.d.ts.map +1 -0
  229. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/config-loader.js +69 -0
  230. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/config-loader.js.map +1 -0
  231. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/debug.d.ts +7 -0
  232. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/debug.d.ts.map +1 -0
  233. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/debug.js +25 -0
  234. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/debug.js.map +1 -0
  235. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/platform.d.ts +15 -0
  236. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/platform.d.ts.map +1 -0
  237. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/platform.js +49 -0
  238. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/platform.js.map +1 -0
  239. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/real-path.d.ts +35 -0
  240. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/real-path.d.ts.map +1 -0
  241. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/real-path.js +106 -0
  242. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/real-path.js.map +1 -0
  243. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/ripgrep.d.ts +29 -0
  244. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/ripgrep.d.ts.map +1 -0
  245. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/ripgrep.js +51 -0
  246. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/ripgrep.js.map +1 -0
  247. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/shell-quote.d.ts +27 -0
  248. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/shell-quote.d.ts.map +1 -0
  249. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/shell-quote.js +47 -0
  250. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/shell-quote.js.map +1 -0
  251. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/which.d.ts +9 -0
  252. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/which.d.ts.map +1 -0
  253. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/which.js +25 -0
  254. package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/which.js.map +1 -0
  255. package/dist/node_modules/@anthropic-ai/sandbox-runtime/package.json +90 -0
  256. package/dist/node_modules/@anthropic-ai/sandbox-runtime/vendor/java-proxy-agent/build.ts +95 -0
  257. package/dist/node_modules/@anthropic-ai/sandbox-runtime/vendor/java-proxy-agent/srt-proxy-agent.jar +0 -0
  258. package/dist/node_modules/@anthropic-ai/sandbox-runtime/vendor/seccomp/arm64/apply-seccomp +0 -0
  259. package/dist/node_modules/@anthropic-ai/sandbox-runtime/vendor/seccomp/build.ts +73 -0
  260. package/dist/node_modules/@anthropic-ai/sandbox-runtime/vendor/seccomp/x64/apply-seccomp +0 -0
  261. package/dist/node_modules/@anthropic-ai/sandbox-runtime/vendor/srt-win/arm64/srt-win.exe +0 -0
  262. package/dist/node_modules/@anthropic-ai/sandbox-runtime/vendor/srt-win/build.ts +28 -0
  263. package/dist/node_modules/@anthropic-ai/sandbox-runtime/vendor/srt-win/x64/srt-win.exe +0 -0
  264. package/dist/node_modules/@capybara-hq/plugin-sdk/NOTICE +2 -0
  265. package/dist/node_modules/@capybara-hq/plugin-sdk/README.md +28 -0
  266. package/dist/node_modules/@capybara-hq/plugin-sdk/agent-docs/agent-templates.md +59 -0
  267. package/dist/node_modules/@capybara-hq/plugin-sdk/agent-docs/concepts.md +63 -0
  268. package/dist/node_modules/@capybara-hq/plugin-sdk/agent-docs/connector-templates.md +48 -0
  269. package/dist/node_modules/@capybara-hq/plugin-sdk/agent-docs/extension-points/channel.md +15 -0
  270. package/dist/node_modules/@capybara-hq/plugin-sdk/agent-docs/extension-points/config-source.md +15 -0
  271. package/dist/node_modules/@capybara-hq/plugin-sdk/agent-docs/extension-points/connector.md +15 -0
  272. package/dist/node_modules/@capybara-hq/plugin-sdk/agent-docs/extension-points/context.md +15 -0
  273. package/dist/node_modules/@capybara-hq/plugin-sdk/agent-docs/extension-points/counter.md +15 -0
  274. package/dist/node_modules/@capybara-hq/plugin-sdk/agent-docs/extension-points/directory.md +15 -0
  275. package/dist/node_modules/@capybara-hq/plugin-sdk/agent-docs/extension-points/file-preview.md +15 -0
  276. package/dist/node_modules/@capybara-hq/plugin-sdk/agent-docs/extension-points/identity-source.md +15 -0
  277. package/dist/node_modules/@capybara-hq/plugin-sdk/agent-docs/extension-points/model-provider.md +17 -0
  278. package/dist/node_modules/@capybara-hq/plugin-sdk/agent-docs/extension-points/object-store.md +17 -0
  279. package/dist/node_modules/@capybara-hq/plugin-sdk/agent-docs/extension-points/sandbox.md +15 -0
  280. package/dist/node_modules/@capybara-hq/plugin-sdk/agent-docs/extension-points/secret-store.md +15 -0
  281. package/dist/node_modules/@capybara-hq/plugin-sdk/agent-docs/extension-points/web-fetch.md +15 -0
  282. package/dist/node_modules/@capybara-hq/plugin-sdk/agent-docs/extension-points/web-search.md +15 -0
  283. package/dist/node_modules/@capybara-hq/plugin-sdk/agent-docs/extensions.md +88 -0
  284. package/dist/node_modules/@capybara-hq/plugin-sdk/agent-docs/plugin-format.md +100 -0
  285. package/dist/node_modules/@capybara-hq/plugin-sdk/agent-docs/setup.md +46 -0
  286. package/dist/node_modules/@capybara-hq/plugin-sdk/agent-docs/skills.md +44 -0
  287. package/dist/node_modules/@capybara-hq/plugin-sdk/agent-docs/tool-naming.md +21 -0
  288. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/agent-template.d.ts +141 -0
  289. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/agent-template.js +501 -0
  290. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/bootstrap.d.ts +81 -0
  291. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/bootstrap.js +125 -0
  292. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/cards.d.ts +107 -0
  293. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/cards.js +287 -0
  294. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/channel.d.ts +293 -0
  295. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/channel.js +31 -0
  296. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/client-css.d.ts +36 -0
  297. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/client-css.js +326 -0
  298. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/client-section.d.ts +35 -0
  299. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/client-section.js +133 -0
  300. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/config-ui.d.ts +153 -0
  301. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/config-ui.js +662 -0
  302. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/connector-auth.d.ts +69 -0
  303. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/connector-auth.js +117 -0
  304. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/connector.d.ts +196 -0
  305. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/connector.js +1 -0
  306. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/context.d.ts +40 -0
  307. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/context.js +2 -0
  308. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/ctx.d.ts +287 -0
  309. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/ctx.js +1 -0
  310. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/define-extension.d.ts +55 -0
  311. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/define-extension.js +92 -0
  312. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/device-protocol-v3.d.ts +117 -0
  313. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/device-protocol-v3.js +409 -0
  314. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/device-protocol.d.ts +330 -0
  315. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/device-protocol.js +567 -0
  316. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/directory.d.ts +38 -0
  317. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/directory.js +1 -0
  318. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/extension-point.d.ts +40 -0
  319. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/extension-point.js +44 -0
  320. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/file-preview.d.ts +72 -0
  321. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/file-preview.js +72 -0
  322. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/frontmatter.d.ts +12 -0
  323. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/frontmatter.js +36 -0
  324. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/git-hosts.d.ts +44 -0
  325. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/git-hosts.js +81 -0
  326. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/hooks.d.ts +295 -0
  327. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/hooks.js +19 -0
  328. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/http-access.d.ts +52 -0
  329. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/http-access.js +12 -0
  330. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/identity.d.ts +57 -0
  331. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/identity.js +1 -0
  332. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/index.d.ts +53 -0
  333. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/index.js +54 -0
  334. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/marketplace.d.ts +152 -0
  335. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/marketplace.js +326 -0
  336. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/model-params.d.ts +101 -0
  337. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/model-params.js +235 -0
  338. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/model.d.ts +336 -0
  339. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/model.js +204 -0
  340. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/net.d.ts +52 -0
  341. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/net.js +34 -0
  342. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/org-access.d.ts +27 -0
  343. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/org-access.js +35 -0
  344. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/permissions.d.ts +89 -0
  345. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/permissions.js +328 -0
  346. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/plugin-manifest.d.ts +204 -0
  347. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/plugin-manifest.js +504 -0
  348. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/plugin-package.d.ts +183 -0
  349. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/plugin-package.js +480 -0
  350. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/sandbox-linux-runtime-source.d.ts +1 -0
  351. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/sandbox-linux-runtime-source.js +1886 -0
  352. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/sandbox-native-runtime-source.d.ts +8 -0
  353. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/sandbox-native-runtime-source.js +325 -0
  354. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/sandbox-operation.d.ts +248 -0
  355. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/sandbox-operation.js +245 -0
  356. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/sandbox-runtime-source.d.ts +19 -0
  357. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/sandbox-runtime-source.js +28 -0
  358. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/sandbox-write-denies.d.ts +60 -0
  359. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/sandbox-write-denies.js +630 -0
  360. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/sandbox.d.ts +417 -0
  361. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/sandbox.js +195 -0
  362. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/secret.d.ts +11 -0
  363. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/secret.js +14 -0
  364. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/semver-range.d.ts +6 -0
  365. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/semver-range.js +12 -0
  366. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/setup-check.d.ts +115 -0
  367. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/setup-check.js +142 -0
  368. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/setup-guide-parse.d.ts +121 -0
  369. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/setup-guide-parse.js +350 -0
  370. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/setup-guide-render.d.ts +45 -0
  371. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/setup-guide-render.js +351 -0
  372. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/setup-guide.d.ts +94 -0
  373. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/setup-guide.js +336 -0
  374. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/skill-invocation.d.ts +87 -0
  375. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/skill-invocation.js +211 -0
  376. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/skill-keys.d.ts +9 -0
  377. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/skill-keys.js +16 -0
  378. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/skill.d.ts +107 -0
  379. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/skill.js +283 -0
  380. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/storage.d.ts +123 -0
  381. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/storage.js +9 -0
  382. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/theme-assets.d.ts +39 -0
  383. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/theme-assets.js +449 -0
  384. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/theme-readability.d.ts +37 -0
  385. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/theme-readability.js +145 -0
  386. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/theme-tokens.generated.d.ts +279 -0
  387. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/theme-tokens.generated.js +174 -0
  388. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/theme.d.ts +152 -0
  389. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/theme.js +392 -0
  390. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/tool-key.d.ts +28 -0
  391. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/tool-key.js +40 -0
  392. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/tool.d.ts +205 -0
  393. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/tool.js +238 -0
  394. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/ui-parts.d.ts +23 -0
  395. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/ui-parts.js +337 -0
  396. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/ui-resolve.d.ts +35 -0
  397. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/ui-resolve.js +42 -0
  398. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/ui-slots.d.ts +53 -0
  399. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/ui-slots.js +238 -0
  400. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/ui.d.ts +385 -0
  401. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/ui.js +432 -0
  402. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/url.d.ts +5 -0
  403. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/url.js +15 -0
  404. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/web.d.ts +105 -0
  405. package/dist/node_modules/@capybara-hq/plugin-sdk/dist/web.js +135 -0
  406. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/LICENSE +21 -0
  407. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/README.md +218 -0
  408. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/compile.cjs +96 -0
  409. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/compile.d.cts +1 -0
  410. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/compile.d.ts +1 -0
  411. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/compile.js +52 -0
  412. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/index.cjs +52 -0
  413. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/index.d.cts +3 -0
  414. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/index.d.ts +3 -0
  415. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/index.js +7 -0
  416. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/locales/index.cjs +36 -0
  417. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/locales/index.d.cts +1 -0
  418. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/locales/index.d.ts +1 -0
  419. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/locales/index.js +1 -0
  420. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/locales/package.json +7 -0
  421. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/mini/index.cjs +51 -0
  422. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/mini/index.d.cts +3 -0
  423. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/mini/index.d.ts +3 -0
  424. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/mini/index.js +3 -0
  425. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/mini/package.json +7 -0
  426. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/package.json +147 -0
  427. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/compile.ts +56 -0
  428. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/index.ts +7 -0
  429. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/locales/index.ts +1 -0
  430. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/mini/index.ts +3 -0
  431. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/ZodError.ts +340 -0
  432. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/benchmarks/datetime.ts +58 -0
  433. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +80 -0
  434. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/benchmarks/index.ts +59 -0
  435. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/benchmarks/ipv4.ts +57 -0
  436. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/benchmarks/object.ts +69 -0
  437. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/benchmarks/primitives.ts +162 -0
  438. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/benchmarks/realworld.ts +63 -0
  439. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/benchmarks/string.ts +55 -0
  440. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/benchmarks/union.ts +80 -0
  441. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/errors.ts +13 -0
  442. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/external.ts +6 -0
  443. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/helpers/enumUtil.ts +17 -0
  444. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/helpers/errorUtil.ts +8 -0
  445. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/helpers/parseUtil.ts +176 -0
  446. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/helpers/partialUtil.ts +34 -0
  447. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/helpers/typeAliases.ts +2 -0
  448. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/helpers/util.ts +224 -0
  449. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/index.ts +4 -0
  450. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/locales/en.ts +124 -0
  451. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/standard-schema.ts +113 -0
  452. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/Mocker.ts +54 -0
  453. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/all-errors.test.ts +157 -0
  454. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/anyunknown.test.ts +28 -0
  455. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/array.test.ts +71 -0
  456. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/async-parsing.test.ts +388 -0
  457. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/async-refinements.test.ts +46 -0
  458. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/base.test.ts +29 -0
  459. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/bigint.test.ts +55 -0
  460. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/branded.test.ts +53 -0
  461. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/catch.test.ts +220 -0
  462. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/coerce.test.ts +133 -0
  463. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/complex.test.ts +70 -0
  464. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/custom.test.ts +31 -0
  465. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/date.test.ts +32 -0
  466. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/deepmasking.test.ts +186 -0
  467. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/default.test.ts +112 -0
  468. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/description.test.ts +33 -0
  469. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +315 -0
  470. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/enum.test.ts +80 -0
  471. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/error.test.ts +586 -0
  472. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/firstparty.test.ts +87 -0
  473. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +21 -0
  474. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/function.test.ts +261 -0
  475. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/generics.test.ts +48 -0
  476. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/instanceof.test.ts +37 -0
  477. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/intersection.test.ts +128 -0
  478. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/language-server.source.ts +76 -0
  479. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/language-server.test.ts +206 -0
  480. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/literal.test.ts +36 -0
  481. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/map.test.ts +110 -0
  482. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/masking.test.ts +4 -0
  483. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/mocker.test.ts +19 -0
  484. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/nan.test.ts +24 -0
  485. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/nativeEnum.test.ts +87 -0
  486. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/nullable.test.ts +42 -0
  487. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/number.test.ts +176 -0
  488. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/object-augmentation.test.ts +29 -0
  489. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +29 -0
  490. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/object.test.ts +431 -0
  491. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/optional.test.ts +42 -0
  492. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/parseUtil.test.ts +23 -0
  493. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/parser.test.ts +41 -0
  494. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/partials.test.ts +243 -0
  495. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/pickomit.test.ts +111 -0
  496. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/pipeline.test.ts +29 -0
  497. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/preprocess.test.ts +186 -0
  498. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/primitive.test.ts +440 -0
  499. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/promise.test.ts +90 -0
  500. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/readonly.test.ts +114 -0
  501. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/record.test.ts +171 -0
  502. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/recursive.test.ts +197 -0
  503. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/refine.test.ts +313 -0
  504. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/safeparse.test.ts +27 -0
  505. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/set.test.ts +142 -0
  506. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/standard-schema.test.ts +83 -0
  507. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/string.test.ts +922 -0
  508. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/transformer.test.ts +233 -0
  509. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/tuple.test.ts +90 -0
  510. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/unions.test.ts +57 -0
  511. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/validations.test.ts +133 -0
  512. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/void.test.ts +15 -0
  513. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/types.ts +5138 -0
  514. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/checks.ts +33 -0
  515. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/coerce.ts +27 -0
  516. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/compat.ts +78 -0
  517. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/deep-partial.ts +76 -0
  518. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/errors.ts +97 -0
  519. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/external.ts +57 -0
  520. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/from-json-schema.ts +944 -0
  521. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/in-out.ts +45 -0
  522. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/index.ts +5 -0
  523. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/iso.ts +20 -0
  524. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/parse.ts +88 -0
  525. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/schemas.ts +2937 -0
  526. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +26 -0
  527. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/apply.test.ts +86 -0
  528. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/array.test.ts +291 -0
  529. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/assignability.test.ts +402 -0
  530. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +381 -0
  531. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +68 -0
  532. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/base.test.ts +7 -0
  533. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/bigint.test.ts +89 -0
  534. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/brand.test.ts +106 -0
  535. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/catch.test.ts +604 -0
  536. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +20 -0
  537. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +572 -0
  538. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/codec.test.ts +704 -0
  539. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/coerce.test.ts +160 -0
  540. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/continuability.test.ts +374 -0
  541. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/credit-card.test.ts +76 -0
  542. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/custom.test.ts +40 -0
  543. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/cyclic-data.test.ts +985 -0
  544. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/date.test.ts +92 -0
  545. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/datetime.test.ts +316 -0
  546. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/deep-partial.test.ts +380 -0
  547. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/default-locale.test.ts +32 -0
  548. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/default.test.ts +455 -0
  549. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/describe-meta-checks.test.ts +27 -0
  550. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/description.test.ts +32 -0
  551. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/detached-methods.test.ts +221 -0
  552. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +942 -0
  553. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/enum.test.ts +305 -0
  554. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +917 -0
  555. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/error.test.ts +1108 -0
  556. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/file.test.ts +96 -0
  557. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +179 -0
  558. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/fix-json-issue.test.ts +26 -0
  559. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +1467 -0
  560. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/function.test.ts +391 -0
  561. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/generics.test.ts +72 -0
  562. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/global-config.test.ts +32 -0
  563. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/hash.test.ts +67 -0
  564. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/iban.test.ts +81 -0
  565. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/in-out.test.ts +159 -0
  566. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/index.test.ts +958 -0
  567. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/instance-footprint.test.ts +319 -0
  568. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +127 -0
  569. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/intersection.test.ts +334 -0
  570. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/issue-schema.test.ts +215 -0
  571. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/jitless-allows-eval.test.ts +39 -0
  572. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/json.test.ts +109 -0
  573. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/lazy.test.ts +262 -0
  574. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/literal.test.ts +128 -0
  575. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/locales_ka.test.ts +29 -0
  576. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/locales_ro.test.ts +24 -0
  577. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/map.test.ts +349 -0
  578. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/nan.test.ts +21 -0
  579. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +168 -0
  580. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +101 -0
  581. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/nullable.test.ts +22 -0
  582. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/number.test.ts +401 -0
  583. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/object.test.ts +1006 -0
  584. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/optin-ladder.test.ts +235 -0
  585. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/optional.test.ts +366 -0
  586. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/partial.test.ts +497 -0
  587. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +211 -0
  588. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/pipe.test.ts +101 -0
  589. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/prefault.test.ts +144 -0
  590. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/preprocess-types.test.ts +44 -0
  591. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +351 -0
  592. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/primitive.test.ts +175 -0
  593. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/promise.test.ts +81 -0
  594. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/properties.test.ts +141 -0
  595. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +23 -0
  596. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/readonly.test.ts +184 -0
  597. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/record.test.ts +885 -0
  598. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +707 -0
  599. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/redos.test.ts +68 -0
  600. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/refine.test.ts +693 -0
  601. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/registries.test.ts +243 -0
  602. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/set.test.ts +196 -0
  603. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +153 -0
  604. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +125 -0
  605. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/string.test.ts +1440 -0
  606. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +124 -0
  607. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +812 -0
  608. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/to-json-schema-methods.test.ts +438 -0
  609. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +4733 -0
  610. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/transform.test.ts +378 -0
  611. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/tuple.test.ts +511 -0
  612. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/union.test.ts +310 -0
  613. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/url.test.ts +13 -0
  614. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/validate.test.ts +645 -0
  615. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/validations.test.ts +283 -0
  616. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/void.test.ts +12 -0
  617. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/api.ts +1875 -0
  618. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/checks.ts +1266 -0
  619. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/compile.ts +2322 -0
  620. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/core.ts +230 -0
  621. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/doc.ts +52 -0
  622. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/errors.ts +543 -0
  623. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/index.ts +19 -0
  624. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/json-schema-generator.ts +131 -0
  625. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/json-schema-processors.ts +934 -0
  626. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/json-schema.ts +148 -0
  627. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/memoizer.ts +331 -0
  628. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/parse.ts +309 -0
  629. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/regexes.ts +217 -0
  630. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/registries.ts +105 -0
  631. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/schemas.ts +5226 -0
  632. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/standard-schema.ts +159 -0
  633. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/cached.test.ts +54 -0
  634. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/compile-differential.test.ts +1004 -0
  635. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/compile-generative.test.ts +445 -0
  636. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/compile-global.test.ts +89 -0
  637. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/compile-off-by-default.test.ts +26 -0
  638. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/compile-stats.test.ts +34 -0
  639. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/compile.test.ts +2036 -0
  640. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/email-regex.test.ts +140 -0
  641. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/extend.test.ts +59 -0
  642. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/index.test.ts +46 -0
  643. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/locales/be.test.ts +124 -0
  644. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/locales/el.test.ts +214 -0
  645. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/locales/en.test.ts +22 -0
  646. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/locales/es.test.ts +180 -0
  647. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/locales/fr.test.ts +72 -0
  648. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/locales/he.test.ts +379 -0
  649. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/locales/hr.test.ts +163 -0
  650. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/locales/nl.test.ts +46 -0
  651. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/locales/parity.test.ts +42 -0
  652. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +128 -0
  653. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/locales/tg.test.ts +85 -0
  654. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/locales/tk.test.ts +69 -0
  655. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +69 -0
  656. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/locales/uz.test.ts +105 -0
  657. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/polyfill-collision.test.ts +46 -0
  658. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/record-constructor.test.ts +125 -0
  659. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/recursive-tuples.test.ts +45 -0
  660. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/treeshake.test.ts +51 -0
  661. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/url-no-canparse.test.ts +133 -0
  662. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/to-json-schema.ts +857 -0
  663. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/util.ts +1293 -0
  664. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/versions.ts +5 -0
  665. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/visit.ts +193 -0
  666. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/zsf.ts +323 -0
  667. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/index.ts +4 -0
  668. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/ar.ts +120 -0
  669. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/az.ts +116 -0
  670. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/be.ts +188 -0
  671. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/bg.ts +133 -0
  672. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/bn.ts +123 -0
  673. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/ca.ts +121 -0
  674. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/ckb.ts +140 -0
  675. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/cs.ts +123 -0
  676. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/da.ts +128 -0
  677. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/de.ts +121 -0
  678. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/el.ts +124 -0
  679. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/en.ts +136 -0
  680. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/eo.ts +123 -0
  681. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/es.ts +145 -0
  682. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/fa.ts +131 -0
  683. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/fi.ts +126 -0
  684. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/fr-CA.ts +121 -0
  685. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/fr.ts +139 -0
  686. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/gu.ts +123 -0
  687. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/he.ts +253 -0
  688. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/hi.ts +126 -0
  689. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/hr.ts +135 -0
  690. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/hu.ts +122 -0
  691. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/hy.ts +175 -0
  692. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/id.ts +120 -0
  693. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/index.ts +63 -0
  694. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/is.ts +124 -0
  695. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/it.ts +121 -0
  696. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/ja.ts +119 -0
  697. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/ka.ts +128 -0
  698. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/kh.ts +7 -0
  699. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/km.ts +124 -0
  700. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/kn.ts +126 -0
  701. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/ko.ts +126 -0
  702. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/lt.ts +243 -0
  703. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/mk.ts +123 -0
  704. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/ms.ts +120 -0
  705. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/ne.ts +128 -0
  706. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/nl.ts +126 -0
  707. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/nn.ts +121 -0
  708. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/no.ts +121 -0
  709. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/ota.ts +122 -0
  710. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/pl.ts +123 -0
  711. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/ps.ts +131 -0
  712. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/pt-BR.ts +161 -0
  713. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/pt.ts +159 -0
  714. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/ro.ts +132 -0
  715. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/ru.ts +188 -0
  716. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/sk.ts +123 -0
  717. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/sl.ts +123 -0
  718. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/sv.ts +124 -0
  719. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/ta.ts +123 -0
  720. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/tg.ts +135 -0
  721. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/th.ts +124 -0
  722. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/tk.ts +113 -0
  723. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/tr.ts +116 -0
  724. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/ua.ts +7 -0
  725. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/uk.ts +122 -0
  726. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/ur.ts +124 -0
  727. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/uz.ts +120 -0
  728. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/vi.ts +122 -0
  729. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/yo.ts +129 -0
  730. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/zh-CN.ts +121 -0
  731. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/zh-TW.ts +120 -0
  732. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/checks.ts +33 -0
  733. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/coerce.ts +27 -0
  734. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/deep-partial.ts +73 -0
  735. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/external.ts +52 -0
  736. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/in-out.ts +45 -0
  737. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/index.ts +3 -0
  738. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/iso.ts +66 -0
  739. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/parse.ts +16 -0
  740. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/schemas.ts +2051 -0
  741. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/tests/apply.test.ts +57 -0
  742. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/tests/assignability.test.ts +190 -0
  743. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/tests/brand.test.ts +94 -0
  744. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/tests/checks.test.ts +158 -0
  745. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/tests/codec.test.ts +582 -0
  746. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/tests/computed.test.ts +30 -0
  747. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/tests/cyclic-data.test.ts +84 -0
  748. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/tests/deep-partial.test.ts +54 -0
  749. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/tests/error.test.ts +41 -0
  750. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/tests/functions.test.ts +14 -0
  751. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/tests/index.test.ts +1146 -0
  752. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/tests/number.test.ts +109 -0
  753. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/tests/object.test.ts +292 -0
  754. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +43 -0
  755. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +341 -0
  756. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/tests/standard-schema.test.ts +50 -0
  757. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/tests/string.test.ts +396 -0
  758. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4-mini/index.ts +3 -0
  759. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/ZodError.cjs +167 -0
  760. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/ZodError.d.cts +164 -0
  761. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/ZodError.d.ts +164 -0
  762. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/ZodError.js +143 -0
  763. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/errors.cjs +36 -0
  764. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/errors.d.cts +5 -0
  765. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/errors.d.ts +5 -0
  766. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/errors.js +9 -0
  767. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/external.cjs +41 -0
  768. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/external.d.cts +6 -0
  769. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/external.d.ts +6 -0
  770. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/external.js +6 -0
  771. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/enumUtil.cjs +21 -0
  772. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/enumUtil.d.cts +8 -0
  773. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/enumUtil.d.ts +8 -0
  774. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/enumUtil.js +1 -0
  775. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/errorUtil.cjs +28 -0
  776. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/errorUtil.d.cts +9 -0
  777. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/errorUtil.d.ts +9 -0
  778. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/errorUtil.js +6 -0
  779. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/parseUtil.cjs +143 -0
  780. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/parseUtil.d.cts +78 -0
  781. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/parseUtil.d.ts +78 -0
  782. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/parseUtil.js +109 -0
  783. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/partialUtil.cjs +21 -0
  784. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/partialUtil.d.cts +8 -0
  785. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/partialUtil.d.ts +8 -0
  786. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/partialUtil.js +1 -0
  787. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/typeAliases.cjs +21 -0
  788. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/typeAliases.d.cts +2 -0
  789. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/typeAliases.d.ts +2 -0
  790. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/typeAliases.js +1 -0
  791. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/util.cjs +156 -0
  792. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/util.d.cts +85 -0
  793. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/util.d.ts +85 -0
  794. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/util.js +133 -0
  795. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/index.cjs +52 -0
  796. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/index.d.cts +4 -0
  797. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/index.d.ts +4 -0
  798. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/index.js +4 -0
  799. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/locales/en.cjs +112 -0
  800. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/locales/en.d.cts +3 -0
  801. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/locales/en.d.ts +3 -0
  802. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/locales/en.js +109 -0
  803. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/package.json +7 -0
  804. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/standard-schema.cjs +21 -0
  805. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/standard-schema.d.cts +102 -0
  806. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/standard-schema.d.ts +102 -0
  807. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/standard-schema.js +1 -0
  808. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/types.cjs +3798 -0
  809. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/types.d.cts +1034 -0
  810. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/types.d.ts +1034 -0
  811. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/types.js +3697 -0
  812. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/checks.cjs +53 -0
  813. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/checks.d.cts +1 -0
  814. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/checks.d.ts +1 -0
  815. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/checks.js +1 -0
  816. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/coerce.cjs +66 -0
  817. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/coerce.d.cts +17 -0
  818. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/coerce.d.ts +17 -0
  819. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/coerce.js +17 -0
  820. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/compat.cjs +80 -0
  821. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/compat.d.cts +48 -0
  822. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/compat.d.ts +48 -0
  823. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/compat.js +31 -0
  824. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/deep-partial.cjs +58 -0
  825. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/deep-partial.d.cts +14 -0
  826. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/deep-partial.d.ts +14 -0
  827. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/deep-partial.js +13 -0
  828. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/errors.cjs +102 -0
  829. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/errors.d.cts +29 -0
  830. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/errors.d.ts +29 -0
  831. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/errors.js +57 -0
  832. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/external.cjs +97 -0
  833. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/external.d.cts +19 -0
  834. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/external.d.ts +19 -0
  835. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/external.js +17 -0
  836. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/from-json-schema.cjs +926 -0
  837. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/from-json-schema.d.cts +12 -0
  838. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/from-json-schema.d.ts +12 -0
  839. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/from-json-schema.js +881 -0
  840. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/in-out.cjs +82 -0
  841. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/in-out.d.cts +8 -0
  842. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/in-out.d.ts +8 -0
  843. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/in-out.js +36 -0
  844. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/index.cjs +52 -0
  845. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/index.d.cts +3 -0
  846. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/index.d.ts +3 -0
  847. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/index.js +4 -0
  848. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/iso.cjs +68 -0
  849. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/iso.d.cts +7 -0
  850. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/iso.d.ts +7 -0
  851. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/iso.js +15 -0
  852. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/package.json +7 -0
  853. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/parse.cjs +63 -0
  854. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/parse.d.cts +44 -0
  855. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/parse.d.ts +44 -0
  856. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/parse.js +16 -0
  857. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/schemas.cjs +1676 -0
  858. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/schemas.d.cts +816 -0
  859. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/schemas.d.ts +816 -0
  860. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/schemas.js +1535 -0
  861. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/api.cjs +1269 -0
  862. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/api.d.cts +335 -0
  863. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/api.d.ts +335 -0
  864. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/api.js +1107 -0
  865. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/checks.cjs +561 -0
  866. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/checks.d.cts +294 -0
  867. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/checks.d.ts +294 -0
  868. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/checks.js +516 -0
  869. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/compile.cjs +1916 -0
  870. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/compile.d.cts +65 -0
  871. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/compile.d.ts +65 -0
  872. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/compile.js +1866 -0
  873. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/core.cjs +167 -0
  874. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/core.d.cts +82 -0
  875. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/core.d.ts +82 -0
  876. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/core.js +141 -0
  877. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/doc.cjs +61 -0
  878. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/doc.d.cts +16 -0
  879. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/doc.d.ts +16 -0
  880. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/doc.js +38 -0
  881. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/errors.cjs +317 -0
  882. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/errors.d.cts +225 -0
  883. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/errors.d.ts +225 -0
  884. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/errors.js +267 -0
  885. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/index.cjs +70 -0
  886. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/index.d.cts +19 -0
  887. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/index.d.ts +19 -0
  888. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/index.js +19 -0
  889. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/json-schema-generator.cjs +122 -0
  890. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/json-schema-generator.d.cts +65 -0
  891. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/json-schema-generator.d.ts +65 -0
  892. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/json-schema-generator.js +99 -0
  893. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/json-schema-processors.cjs +929 -0
  894. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/json-schema-processors.d.cts +65 -0
  895. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/json-schema-processors.d.ts +65 -0
  896. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/json-schema-processors.js +843 -0
  897. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/json-schema.cjs +21 -0
  898. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/json-schema.d.cts +89 -0
  899. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/json-schema.d.ts +89 -0
  900. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/json-schema.js +1 -0
  901. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/memoizer.cjs +360 -0
  902. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/memoizer.d.cts +15 -0
  903. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/memoizer.d.ts +15 -0
  904. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/memoizer.js +311 -0
  905. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/package.json +7 -0
  906. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/parse.cjs +233 -0
  907. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/parse.d.cts +52 -0
  908. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/parse.d.ts +52 -0
  909. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/parse.js +175 -0
  910. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/regexes.cjs +209 -0
  911. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/regexes.d.cts +90 -0
  912. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/regexes.d.ts +90 -0
  913. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/regexes.js +156 -0
  914. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/registries.cjs +75 -0
  915. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/registries.d.cts +35 -0
  916. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/registries.d.ts +35 -0
  917. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/registries.js +51 -0
  918. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/schemas.cjs +2699 -0
  919. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/schemas.d.cts +1275 -0
  920. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/schemas.d.ts +1275 -0
  921. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/schemas.js +2636 -0
  922. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/standard-schema.cjs +21 -0
  923. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/standard-schema.d.cts +126 -0
  924. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/standard-schema.d.ts +126 -0
  925. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/standard-schema.js +1 -0
  926. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/to-json-schema.cjs +681 -0
  927. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/to-json-schema.d.cts +154 -0
  928. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/to-json-schema.d.ts +154 -0
  929. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/to-json-schema.js +651 -0
  930. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/util.cjs +964 -0
  931. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/util.d.cts +280 -0
  932. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/util.d.ts +280 -0
  933. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/util.js +873 -0
  934. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/versions.cjs +27 -0
  935. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/versions.d.cts +5 -0
  936. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/versions.d.ts +5 -0
  937. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/versions.js +5 -0
  938. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/visit.cjs +214 -0
  939. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/visit.d.cts +30 -0
  940. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/visit.d.ts +30 -0
  941. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/visit.js +169 -0
  942. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/index.cjs +51 -0
  943. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/index.d.cts +3 -0
  944. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/index.d.ts +3 -0
  945. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/index.js +4 -0
  946. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ar.cjs +138 -0
  947. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ar.d.cts +5 -0
  948. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ar.d.ts +4 -0
  949. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ar.js +111 -0
  950. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/az.cjs +137 -0
  951. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/az.d.cts +5 -0
  952. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/az.d.ts +4 -0
  953. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/az.js +110 -0
  954. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/be.cjs +195 -0
  955. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/be.d.cts +5 -0
  956. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/be.d.ts +4 -0
  957. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/be.js +168 -0
  958. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/bg.cjs +152 -0
  959. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/bg.d.cts +5 -0
  960. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/bg.d.ts +4 -0
  961. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/bg.js +125 -0
  962. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/bn.cjs +140 -0
  963. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/bn.d.cts +5 -0
  964. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/bn.d.ts +4 -0
  965. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/bn.js +113 -0
  966. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ca.cjs +139 -0
  967. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ca.d.cts +5 -0
  968. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ca.d.ts +4 -0
  969. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ca.js +112 -0
  970. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ckb.cjs +160 -0
  971. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ckb.d.cts +5 -0
  972. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ckb.d.ts +4 -0
  973. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ckb.js +133 -0
  974. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/cs.cjs +143 -0
  975. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/cs.d.cts +5 -0
  976. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/cs.d.ts +4 -0
  977. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/cs.js +116 -0
  978. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/da.cjs +147 -0
  979. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/da.d.cts +5 -0
  980. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/da.d.ts +4 -0
  981. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/da.js +120 -0
  982. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/de.cjs +140 -0
  983. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/de.d.cts +5 -0
  984. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/de.d.ts +4 -0
  985. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/de.js +113 -0
  986. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/el.cjs +139 -0
  987. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/el.d.cts +5 -0
  988. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/el.d.ts +4 -0
  989. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/el.js +112 -0
  990. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/en.cjs +152 -0
  991. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/en.d.cts +5 -0
  992. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/en.d.ts +4 -0
  993. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/en.js +125 -0
  994. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/eo.cjs +141 -0
  995. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/eo.d.cts +5 -0
  996. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/eo.d.ts +4 -0
  997. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/eo.js +114 -0
  998. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/es.cjs +163 -0
  999. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/es.d.cts +5 -0
  1000. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/es.d.ts +4 -0
  1001. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/es.js +136 -0
  1002. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/fa.cjs +146 -0
  1003. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/fa.d.cts +5 -0
  1004. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/fa.d.ts +4 -0
  1005. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/fa.js +119 -0
  1006. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/fi.cjs +144 -0
  1007. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/fi.d.cts +5 -0
  1008. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/fi.d.ts +4 -0
  1009. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/fi.js +117 -0
  1010. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/fr-CA.cjs +139 -0
  1011. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/fr-CA.d.cts +5 -0
  1012. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/fr-CA.d.ts +4 -0
  1013. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/fr-CA.js +112 -0
  1014. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/fr.cjs +156 -0
  1015. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/fr.d.cts +5 -0
  1016. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/fr.d.ts +4 -0
  1017. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/fr.js +129 -0
  1018. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/gu.cjs +140 -0
  1019. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/gu.d.cts +5 -0
  1020. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/gu.d.ts +4 -0
  1021. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/gu.js +113 -0
  1022. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/he.cjs +248 -0
  1023. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/he.d.cts +5 -0
  1024. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/he.d.ts +4 -0
  1025. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/he.js +221 -0
  1026. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/hi.cjs +138 -0
  1027. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/hi.d.cts +5 -0
  1028. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/hi.d.ts +4 -0
  1029. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/hi.js +111 -0
  1030. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/hr.cjs +153 -0
  1031. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/hr.d.cts +5 -0
  1032. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/hr.d.ts +4 -0
  1033. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/hr.js +126 -0
  1034. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/hu.cjs +140 -0
  1035. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/hu.d.cts +5 -0
  1036. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/hu.d.ts +4 -0
  1037. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/hu.js +113 -0
  1038. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/hy.cjs +185 -0
  1039. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/hy.d.cts +5 -0
  1040. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/hy.d.ts +4 -0
  1041. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/hy.js +158 -0
  1042. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/id.cjs +138 -0
  1043. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/id.d.cts +5 -0
  1044. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/id.d.ts +4 -0
  1045. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/id.js +111 -0
  1046. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/index.cjs +152 -0
  1047. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/index.d.cts +63 -0
  1048. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/index.d.ts +63 -0
  1049. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/index.js +63 -0
  1050. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/is.cjs +141 -0
  1051. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/is.d.cts +5 -0
  1052. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/is.d.ts +4 -0
  1053. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/is.js +114 -0
  1054. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/it.cjs +140 -0
  1055. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/it.d.cts +5 -0
  1056. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/it.d.ts +4 -0
  1057. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/it.js +113 -0
  1058. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ja.cjs +139 -0
  1059. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ja.d.cts +5 -0
  1060. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ja.d.ts +4 -0
  1061. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ja.js +112 -0
  1062. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ka.cjs +144 -0
  1063. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ka.d.cts +5 -0
  1064. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ka.d.ts +4 -0
  1065. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ka.js +117 -0
  1066. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/kh.cjs +12 -0
  1067. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/kh.d.cts +5 -0
  1068. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/kh.d.ts +5 -0
  1069. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/kh.js +5 -0
  1070. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/km.cjs +142 -0
  1071. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/km.d.cts +5 -0
  1072. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/km.d.ts +4 -0
  1073. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/km.js +115 -0
  1074. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/kn.cjs +143 -0
  1075. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/kn.d.cts +5 -0
  1076. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/kn.d.ts +4 -0
  1077. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/kn.js +116 -0
  1078. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ko.cjs +143 -0
  1079. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ko.d.cts +5 -0
  1080. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ko.d.ts +4 -0
  1081. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ko.js +116 -0
  1082. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/lt.cjs +234 -0
  1083. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/lt.d.cts +5 -0
  1084. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/lt.d.ts +4 -0
  1085. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/lt.js +207 -0
  1086. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/mk.cjs +141 -0
  1087. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/mk.d.cts +5 -0
  1088. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/mk.d.ts +4 -0
  1089. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/mk.js +114 -0
  1090. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ms.cjs +139 -0
  1091. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ms.d.cts +5 -0
  1092. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ms.d.ts +4 -0
  1093. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ms.js +112 -0
  1094. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ne.cjs +138 -0
  1095. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ne.d.cts +5 -0
  1096. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ne.d.ts +4 -0
  1097. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ne.js +111 -0
  1098. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/nl.cjs +142 -0
  1099. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/nl.d.cts +5 -0
  1100. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/nl.d.ts +4 -0
  1101. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/nl.js +115 -0
  1102. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/nn.cjs +140 -0
  1103. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/nn.d.cts +5 -0
  1104. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/nn.d.ts +4 -0
  1105. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/nn.js +113 -0
  1106. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/no.cjs +140 -0
  1107. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/no.d.cts +5 -0
  1108. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/no.d.ts +4 -0
  1109. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/no.js +113 -0
  1110. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ota.cjs +141 -0
  1111. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ota.d.cts +5 -0
  1112. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ota.d.ts +4 -0
  1113. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ota.js +114 -0
  1114. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/package.json +7 -0
  1115. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/pl.cjs +141 -0
  1116. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/pl.d.cts +5 -0
  1117. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/pl.d.ts +4 -0
  1118. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/pl.js +114 -0
  1119. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ps.cjs +146 -0
  1120. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ps.d.cts +5 -0
  1121. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ps.d.ts +4 -0
  1122. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ps.js +119 -0
  1123. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/pt-BR.cjs +170 -0
  1124. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/pt-BR.d.cts +5 -0
  1125. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/pt-BR.d.ts +4 -0
  1126. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/pt-BR.js +143 -0
  1127. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/pt.cjs +169 -0
  1128. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/pt.d.cts +5 -0
  1129. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/pt.d.ts +4 -0
  1130. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/pt.js +142 -0
  1131. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ro.cjs +149 -0
  1132. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ro.d.cts +5 -0
  1133. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ro.d.ts +4 -0
  1134. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ro.js +122 -0
  1135. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ru.cjs +195 -0
  1136. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ru.d.cts +5 -0
  1137. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ru.d.ts +4 -0
  1138. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ru.js +168 -0
  1139. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/sk.cjs +143 -0
  1140. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/sk.d.cts +5 -0
  1141. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/sk.d.ts +4 -0
  1142. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/sk.js +116 -0
  1143. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/sl.cjs +141 -0
  1144. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/sl.d.cts +5 -0
  1145. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/sl.d.ts +4 -0
  1146. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/sl.js +114 -0
  1147. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/sv.cjs +142 -0
  1148. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/sv.d.cts +5 -0
  1149. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/sv.d.ts +4 -0
  1150. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/sv.js +115 -0
  1151. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ta.cjs +142 -0
  1152. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ta.d.cts +5 -0
  1153. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ta.d.ts +4 -0
  1154. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ta.js +115 -0
  1155. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/tg.cjs +144 -0
  1156. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/tg.d.cts +5 -0
  1157. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/tg.d.ts +4 -0
  1158. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/tg.js +117 -0
  1159. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/th.cjs +142 -0
  1160. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/th.d.cts +5 -0
  1161. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/th.d.ts +4 -0
  1162. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/th.js +115 -0
  1163. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/tk.cjs +134 -0
  1164. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/tk.d.cts +5 -0
  1165. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/tk.d.ts +4 -0
  1166. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/tk.js +107 -0
  1167. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/tr.cjs +137 -0
  1168. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/tr.d.cts +5 -0
  1169. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/tr.d.ts +4 -0
  1170. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/tr.js +110 -0
  1171. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ua.cjs +12 -0
  1172. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ua.d.cts +5 -0
  1173. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ua.d.ts +5 -0
  1174. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ua.js +5 -0
  1175. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/uk.cjs +140 -0
  1176. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/uk.d.cts +5 -0
  1177. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/uk.d.ts +4 -0
  1178. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/uk.js +113 -0
  1179. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ur.cjs +142 -0
  1180. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ur.d.cts +5 -0
  1181. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ur.d.ts +4 -0
  1182. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ur.js +115 -0
  1183. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/uz.cjs +140 -0
  1184. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/uz.d.cts +5 -0
  1185. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/uz.d.ts +4 -0
  1186. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/uz.js +113 -0
  1187. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/vi.cjs +140 -0
  1188. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/vi.d.cts +5 -0
  1189. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/vi.d.ts +4 -0
  1190. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/vi.js +113 -0
  1191. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/yo.cjs +139 -0
  1192. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/yo.d.cts +5 -0
  1193. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/yo.d.ts +4 -0
  1194. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/yo.js +112 -0
  1195. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/zh-CN.cjs +141 -0
  1196. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/zh-CN.d.cts +5 -0
  1197. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/zh-CN.d.ts +4 -0
  1198. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/zh-CN.js +114 -0
  1199. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/zh-TW.cjs +139 -0
  1200. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/zh-TW.d.cts +5 -0
  1201. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/zh-TW.d.ts +4 -0
  1202. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/zh-TW.js +112 -0
  1203. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/checks.cjs +54 -0
  1204. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/checks.d.cts +1 -0
  1205. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/checks.d.ts +1 -0
  1206. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/checks.js +1 -0
  1207. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/coerce.cjs +71 -0
  1208. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/coerce.d.cts +7 -0
  1209. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/coerce.d.ts +7 -0
  1210. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/coerce.js +22 -0
  1211. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/deep-partial.cjs +58 -0
  1212. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/deep-partial.d.cts +14 -0
  1213. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/deep-partial.d.ts +14 -0
  1214. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/deep-partial.js +13 -0
  1215. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/external.cjs +95 -0
  1216. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/external.d.cts +16 -0
  1217. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/external.d.ts +16 -0
  1218. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/external.js +16 -0
  1219. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/in-out.cjs +82 -0
  1220. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/in-out.d.cts +8 -0
  1221. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/in-out.d.ts +8 -0
  1222. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/in-out.js +36 -0
  1223. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/index.cjs +51 -0
  1224. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/index.d.cts +3 -0
  1225. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/index.d.ts +3 -0
  1226. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/index.js +3 -0
  1227. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/iso.cjs +83 -0
  1228. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/iso.d.cts +22 -0
  1229. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/iso.d.ts +22 -0
  1230. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/iso.js +34 -0
  1231. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/package.json +7 -0
  1232. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/parse.cjs +37 -0
  1233. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/parse.d.cts +1 -0
  1234. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/parse.d.ts +1 -0
  1235. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/parse.js +1 -0
  1236. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/schemas.cjs +1147 -0
  1237. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/schemas.d.cts +480 -0
  1238. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/schemas.d.ts +480 -0
  1239. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/schemas.js +1002 -0
  1240. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/package.json +7 -0
  1241. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4-mini/index.cjs +51 -0
  1242. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4-mini/index.d.cts +3 -0
  1243. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4-mini/index.d.ts +3 -0
  1244. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4-mini/index.js +3 -0
  1245. package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4-mini/package.json +7 -0
  1246. package/dist/node_modules/@capybara-hq/plugin-sdk/package.json +61 -0
  1247. package/dist/node_modules/@capybara-hq/plugin-sdk/schemas/bootstrap.v1.schema.json +131 -0
  1248. package/dist/node_modules/@capybara-hq/plugin-sdk/schemas/connector-template.v1.schema.json +151 -0
  1249. package/dist/node_modules/@capybara-hq/plugin-sdk/schemas/marketplace.v1.schema.json +320 -0
  1250. package/dist/node_modules/@capybara-hq/plugin-sdk/schemas/plugin.v1.schema.json +487 -0
  1251. package/dist/node_modules/@capybara-hq/plugin-sdk/schemas/theme.v1.schema.json +225 -0
  1252. package/dist/node_modules/@pondwader/socks5-server/.github/workflows/ci.yml +27 -0
  1253. package/dist/node_modules/@pondwader/socks5-server/LICENSE +20 -0
  1254. package/dist/node_modules/@pondwader/socks5-server/README.md +151 -0
  1255. package/dist/node_modules/@pondwader/socks5-server/dist/index.d.mts +87 -0
  1256. package/dist/node_modules/@pondwader/socks5-server/dist/index.d.ts +87 -0
  1257. package/dist/node_modules/@pondwader/socks5-server/dist/index.js +346 -0
  1258. package/dist/node_modules/@pondwader/socks5-server/dist/index.mjs +307 -0
  1259. package/dist/node_modules/@pondwader/socks5-server/package.json +31 -0
  1260. package/dist/node_modules/@types/debug/LICENSE +21 -0
  1261. package/dist/node_modules/@types/debug/README.md +69 -0
  1262. package/dist/node_modules/@types/debug/index.d.ts +50 -0
  1263. package/dist/node_modules/@types/debug/package.json +58 -0
  1264. package/dist/node_modules/@types/mdast/LICENSE +21 -0
  1265. package/dist/node_modules/@types/mdast/README.md +15 -0
  1266. package/dist/node_modules/@types/mdast/index.d.ts +1123 -0
  1267. package/dist/node_modules/@types/mdast/package.json +47 -0
  1268. package/dist/node_modules/@types/ms/LICENSE +21 -0
  1269. package/dist/node_modules/@types/ms/README.md +82 -0
  1270. package/dist/node_modules/@types/ms/index.d.ts +63 -0
  1271. package/dist/node_modules/@types/ms/package.json +26 -0
  1272. package/dist/node_modules/@types/unist/LICENSE +21 -0
  1273. package/dist/node_modules/@types/unist/README.md +15 -0
  1274. package/dist/node_modules/@types/unist/index.d.ts +119 -0
  1275. package/dist/node_modules/@types/unist/package.json +60 -0
  1276. package/dist/node_modules/ccount/index.d.ts +11 -0
  1277. package/dist/node_modules/ccount/index.js +27 -0
  1278. package/dist/node_modules/ccount/license +22 -0
  1279. package/dist/node_modules/ccount/package.json +71 -0
  1280. package/dist/node_modules/ccount/readme.md +149 -0
  1281. package/dist/node_modules/character-entities/index.d.ts +6 -0
  1282. package/dist/node_modules/character-entities/index.js +2132 -0
  1283. package/dist/node_modules/character-entities/license +22 -0
  1284. package/dist/node_modules/character-entities/package.json +78 -0
  1285. package/dist/node_modules/character-entities/readme.md +152 -0
  1286. package/dist/node_modules/commander/LICENSE +22 -0
  1287. package/dist/node_modules/commander/Readme.md +1157 -0
  1288. package/dist/node_modules/commander/esm.mjs +16 -0
  1289. package/dist/node_modules/commander/index.js +24 -0
  1290. package/dist/node_modules/commander/lib/argument.js +149 -0
  1291. package/dist/node_modules/commander/lib/command.js +2509 -0
  1292. package/dist/node_modules/commander/lib/error.js +39 -0
  1293. package/dist/node_modules/commander/lib/help.js +520 -0
  1294. package/dist/node_modules/commander/lib/option.js +330 -0
  1295. package/dist/node_modules/commander/lib/suggestSimilar.js +101 -0
  1296. package/dist/node_modules/commander/package-support.json +16 -0
  1297. package/dist/node_modules/commander/package.json +84 -0
  1298. package/dist/node_modules/commander/typings/esm.d.mts +3 -0
  1299. package/dist/node_modules/commander/typings/index.d.ts +969 -0
  1300. package/dist/node_modules/debug/LICENSE +20 -0
  1301. package/dist/node_modules/debug/README.md +481 -0
  1302. package/dist/node_modules/debug/package.json +64 -0
  1303. package/dist/node_modules/debug/src/browser.js +272 -0
  1304. package/dist/node_modules/debug/src/common.js +292 -0
  1305. package/dist/node_modules/debug/src/index.js +10 -0
  1306. package/dist/node_modules/debug/src/node.js +263 -0
  1307. package/dist/node_modules/decode-named-character-reference/index.d.ts +13 -0
  1308. package/dist/node_modules/decode-named-character-reference/index.d.ts.map +1 -0
  1309. package/dist/node_modules/decode-named-character-reference/index.dom.d.ts +6 -0
  1310. package/dist/node_modules/decode-named-character-reference/index.dom.d.ts.map +1 -0
  1311. package/dist/node_modules/decode-named-character-reference/index.dom.js +32 -0
  1312. package/dist/node_modules/decode-named-character-reference/index.js +19 -0
  1313. package/dist/node_modules/decode-named-character-reference/license +22 -0
  1314. package/dist/node_modules/decode-named-character-reference/package.json +90 -0
  1315. package/dist/node_modules/decode-named-character-reference/readme.md +136 -0
  1316. package/dist/node_modules/dequal/dist/index.js +86 -0
  1317. package/dist/node_modules/dequal/dist/index.min.js +1 -0
  1318. package/dist/node_modules/dequal/dist/index.mjs +84 -0
  1319. package/dist/node_modules/dequal/index.d.ts +1 -0
  1320. package/dist/node_modules/dequal/license +21 -0
  1321. package/dist/node_modules/dequal/lite/index.d.ts +1 -0
  1322. package/dist/node_modules/dequal/lite/index.js +31 -0
  1323. package/dist/node_modules/dequal/lite/index.min.js +1 -0
  1324. package/dist/node_modules/dequal/lite/index.mjs +29 -0
  1325. package/dist/node_modules/dequal/package.json +57 -0
  1326. package/dist/node_modules/dequal/readme.md +112 -0
  1327. package/dist/node_modules/devlop/lib/default.js +9 -0
  1328. package/dist/node_modules/devlop/lib/development.d.ts +84 -0
  1329. package/dist/node_modules/devlop/lib/development.js +238 -0
  1330. package/dist/node_modules/devlop/license +22 -0
  1331. package/dist/node_modules/devlop/package.json +80 -0
  1332. package/dist/node_modules/devlop/readme.md +360 -0
  1333. package/dist/node_modules/escape-string-regexp/index.d.ts +16 -0
  1334. package/dist/node_modules/escape-string-regexp/index.js +11 -0
  1335. package/dist/node_modules/escape-string-regexp/license +9 -0
  1336. package/dist/node_modules/escape-string-regexp/package.json +40 -0
  1337. package/dist/node_modules/escape-string-regexp/readme.md +34 -0
  1338. package/dist/node_modules/kysely/LICENSE +21 -0
  1339. package/dist/node_modules/kysely/README.md +242 -0
  1340. package/dist/node_modules/kysely/dist/dialect/database-introspector.d.ts +50 -0
  1341. package/dist/node_modules/kysely/dist/dialect/database-introspector.js +2 -0
  1342. package/dist/node_modules/kysely/dist/dialect/dialect-adapter-base.d.ts +79 -0
  1343. package/dist/node_modules/kysely/dist/dialect/dialect-adapter-base.js +24 -0
  1344. package/dist/node_modules/kysely/dist/dialect/dialect-adapter.d.ts +131 -0
  1345. package/dist/node_modules/kysely/dist/dialect/dialect-adapter.js +2 -0
  1346. package/dist/node_modules/kysely/dist/dialect/dialect.d.ts +34 -0
  1347. package/dist/node_modules/kysely/dist/dialect/dialect.js +2 -0
  1348. package/dist/node_modules/kysely/dist/dialect/mssql/mssql-adapter.d.ts +72 -0
  1349. package/dist/node_modules/kysely/dist/dialect/mssql/mssql-adapter.js +31 -0
  1350. package/dist/node_modules/kysely/dist/dialect/mssql/mssql-dialect-config.d.ts +171 -0
  1351. package/dist/node_modules/kysely/dist/dialect/mssql/mssql-dialect-config.js +2 -0
  1352. package/dist/node_modules/kysely/dist/dialect/mssql/mssql-dialect.d.ts +70 -0
  1353. package/dist/node_modules/kysely/dist/dialect/mssql/mssql-dialect.js +62 -0
  1354. package/dist/node_modules/kysely/dist/dialect/mssql/mssql-driver.d.ts +60 -0
  1355. package/dist/node_modules/kysely/dist/dialect/mssql/mssql-driver.js +358 -0
  1356. package/dist/node_modules/kysely/dist/dialect/mssql/mssql-introspector.d.ts +14 -0
  1357. package/dist/node_modules/kysely/dist/dialect/mssql/mssql-introspector.js +103 -0
  1358. package/dist/node_modules/kysely/dist/dialect/mssql/mssql-query-compiler.d.ts +17 -0
  1359. package/dist/node_modules/kysely/dist/dialect/mssql/mssql-query-compiler.js +89 -0
  1360. package/dist/node_modules/kysely/dist/dialect/mysql/mysql-adapter.d.ts +71 -0
  1361. package/dist/node_modules/kysely/dist/dialect/mysql/mysql-adapter.js +25 -0
  1362. package/dist/node_modules/kysely/dist/dialect/mysql/mysql-dialect-config.d.ts +71 -0
  1363. package/dist/node_modules/kysely/dist/dialect/mysql/mysql-dialect-config.js +2 -0
  1364. package/dist/node_modules/kysely/dist/dialect/mysql/mysql-dialect.d.ts +61 -0
  1365. package/dist/node_modules/kysely/dist/dialect/mysql/mysql-dialect.js +53 -0
  1366. package/dist/node_modules/kysely/dist/dialect/mysql/mysql-driver.d.ts +56 -0
  1367. package/dist/node_modules/kysely/dist/dialect/mysql/mysql-driver.js +252 -0
  1368. package/dist/node_modules/kysely/dist/dialect/mysql/mysql-introspector.d.ts +14 -0
  1369. package/dist/node_modules/kysely/dist/dialect/mysql/mysql-introspector.js +73 -0
  1370. package/dist/node_modules/kysely/dist/dialect/mysql/mysql-query-compiler.d.ts +27 -0
  1371. package/dist/node_modules/kysely/dist/dialect/mysql/mysql-query-compiler.js +77 -0
  1372. package/dist/node_modules/kysely/dist/dialect/pglite/pglite-adapter.d.ts +68 -0
  1373. package/dist/node_modules/kysely/dist/dialect/pglite/pglite-adapter.js +17 -0
  1374. package/dist/node_modules/kysely/dist/dialect/pglite/pglite-dialect-config.d.ts +58 -0
  1375. package/dist/node_modules/kysely/dist/dialect/pglite/pglite-dialect-config.js +2 -0
  1376. package/dist/node_modules/kysely/dist/dialect/pglite/pglite-dialect.d.ts +55 -0
  1377. package/dist/node_modules/kysely/dist/dialect/pglite/pglite-dialect.js +47 -0
  1378. package/dist/node_modules/kysely/dist/dialect/pglite/pglite-driver.d.ts +57 -0
  1379. package/dist/node_modules/kysely/dist/dialect/pglite/pglite-driver.js +119 -0
  1380. package/dist/node_modules/kysely/dist/dialect/postgres/postgres-adapter.d.ts +71 -0
  1381. package/dist/node_modules/kysely/dist/dialect/postgres/postgres-adapter.js +28 -0
  1382. package/dist/node_modules/kysely/dist/dialect/postgres/postgres-dialect-config.d.ts +123 -0
  1383. package/dist/node_modules/kysely/dist/dialect/postgres/postgres-dialect-config.js +2 -0
  1384. package/dist/node_modules/kysely/dist/dialect/postgres/postgres-dialect.d.ts +61 -0
  1385. package/dist/node_modules/kysely/dist/dialect/postgres/postgres-dialect.js +53 -0
  1386. package/dist/node_modules/kysely/dist/dialect/postgres/postgres-driver.d.ts +61 -0
  1387. package/dist/node_modules/kysely/dist/dialect/postgres/postgres-driver.js +198 -0
  1388. package/dist/node_modules/kysely/dist/dialect/postgres/postgres-introspector.d.ts +14 -0
  1389. package/dist/node_modules/kysely/dist/dialect/postgres/postgres-introspector.js +102 -0
  1390. package/dist/node_modules/kysely/dist/dialect/postgres/postgres-query-compiler.d.ts +4 -0
  1391. package/dist/node_modules/kysely/dist/dialect/postgres/postgres-query-compiler.js +8 -0
  1392. package/dist/node_modules/kysely/dist/dialect/sqlite/sqlite-adapter.d.ts +72 -0
  1393. package/dist/node_modules/kysely/dist/dialect/sqlite/sqlite-adapter.js +23 -0
  1394. package/dist/node_modules/kysely/dist/dialect/sqlite/sqlite-dialect-config.d.ts +42 -0
  1395. package/dist/node_modules/kysely/dist/dialect/sqlite/sqlite-dialect-config.js +2 -0
  1396. package/dist/node_modules/kysely/dist/dialect/sqlite/sqlite-dialect.d.ts +55 -0
  1397. package/dist/node_modules/kysely/dist/dialect/sqlite/sqlite-dialect.js +48 -0
  1398. package/dist/node_modules/kysely/dist/dialect/sqlite/sqlite-driver.d.ts +43 -0
  1399. package/dist/node_modules/kysely/dist/dialect/sqlite/sqlite-driver.js +84 -0
  1400. package/dist/node_modules/kysely/dist/dialect/sqlite/sqlite-introspector.d.ts +14 -0
  1401. package/dist/node_modules/kysely/dist/dialect/sqlite/sqlite-introspector.js +87 -0
  1402. package/dist/node_modules/kysely/dist/dialect/sqlite/sqlite-query-compiler.d.ts +15 -0
  1403. package/dist/node_modules/kysely/dist/dialect/sqlite/sqlite-query-compiler.js +38 -0
  1404. package/dist/node_modules/kysely/dist/driver/connection-mutex.d.ts +12 -0
  1405. package/dist/node_modules/kysely/dist/driver/connection-mutex.js +26 -0
  1406. package/dist/node_modules/kysely/dist/driver/connection-provider.d.ts +9 -0
  1407. package/dist/node_modules/kysely/dist/driver/connection-provider.js +2 -0
  1408. package/dist/node_modules/kysely/dist/driver/database-connection.d.ts +49 -0
  1409. package/dist/node_modules/kysely/dist/driver/database-connection.js +2 -0
  1410. package/dist/node_modules/kysely/dist/driver/default-connection-provider.d.ts +13 -0
  1411. package/dist/node_modules/kysely/dist/driver/default-connection-provider.js +16 -0
  1412. package/dist/node_modules/kysely/dist/driver/driver.d.ts +62 -0
  1413. package/dist/node_modules/kysely/dist/driver/driver.js +19 -0
  1414. package/dist/node_modules/kysely/dist/driver/dummy-driver.d.ts +75 -0
  1415. package/dist/node_modules/kysely/dist/driver/dummy-driver.js +80 -0
  1416. package/dist/node_modules/kysely/dist/driver/runtime-driver.d.ts +49 -0
  1417. package/dist/node_modules/kysely/dist/driver/runtime-driver.js +174 -0
  1418. package/dist/node_modules/kysely/dist/driver/single-connection-provider.d.ts +11 -0
  1419. package/dist/node_modules/kysely/dist/driver/single-connection-provider.js +26 -0
  1420. package/dist/node_modules/kysely/dist/dynamic/dynamic-reference-builder.d.ts +18 -0
  1421. package/dist/node_modules/kysely/dist/dynamic/dynamic-reference-builder.js +32 -0
  1422. package/dist/node_modules/kysely/dist/dynamic/dynamic-table-builder.d.ts +16 -0
  1423. package/dist/node_modules/kysely/dist/dynamic/dynamic-table-builder.js +41 -0
  1424. package/dist/node_modules/kysely/dist/dynamic/dynamic.d.ts +124 -0
  1425. package/dist/node_modules/kysely/dist/dynamic/dynamic.js +129 -0
  1426. package/dist/node_modules/kysely/dist/expression/expression-builder.d.ts +914 -0
  1427. package/dist/node_modules/kysely/dist/expression/expression-builder.js +121 -0
  1428. package/dist/node_modules/kysely/dist/expression/expression-wrapper.d.ts +631 -0
  1429. package/dist/node_modules/kysely/dist/expression/expression-wrapper.js +128 -0
  1430. package/dist/node_modules/kysely/dist/expression/expression.d.ts +198 -0
  1431. package/dist/node_modules/kysely/dist/expression/expression.js +12 -0
  1432. package/dist/node_modules/kysely/dist/helpers/mssql.d.ts +212 -0
  1433. package/dist/node_modules/kysely/dist/helpers/mssql.js +215 -0
  1434. package/dist/node_modules/kysely/dist/helpers/mysql.d.ts +147 -0
  1435. package/dist/node_modules/kysely/dist/helpers/mysql.js +158 -0
  1436. package/dist/node_modules/kysely/dist/helpers/postgres.d.ts +199 -0
  1437. package/dist/node_modules/kysely/dist/helpers/postgres.js +203 -0
  1438. package/dist/node_modules/kysely/dist/helpers/sqlite.d.ts +189 -0
  1439. package/dist/node_modules/kysely/dist/helpers/sqlite.js +200 -0
  1440. package/dist/node_modules/kysely/dist/index.d.ts +314 -0
  1441. package/dist/node_modules/kysely/dist/index.js +200 -0
  1442. package/dist/node_modules/kysely/dist/kysely.d.ts +796 -0
  1443. package/dist/node_modules/kysely/dist/kysely.js +1032 -0
  1444. package/dist/node_modules/kysely/dist/migration/file-migration-provider.d.ts +51 -0
  1445. package/dist/node_modules/kysely/dist/migration/file-migration-provider.js +61 -0
  1446. package/dist/node_modules/kysely/dist/migration/index.d.ts +2 -0
  1447. package/dist/node_modules/kysely/dist/migration/index.js +3 -0
  1448. package/dist/node_modules/kysely/dist/migration/migrator.d.ts +393 -0
  1449. package/dist/node_modules/kysely/dist/migration/migrator.js +614 -0
  1450. package/dist/node_modules/kysely/dist/operation-node/add-column-node.d.ts +15 -0
  1451. package/dist/node_modules/kysely/dist/operation-node/add-column-node.js +16 -0
  1452. package/dist/node_modules/kysely/dist/operation-node/add-constraint-node.d.ts +15 -0
  1453. package/dist/node_modules/kysely/dist/operation-node/add-constraint-node.js +16 -0
  1454. package/dist/node_modules/kysely/dist/operation-node/add-index-node.d.ts +29 -0
  1455. package/dist/node_modules/kysely/dist/operation-node/add-index-node.js +29 -0
  1456. package/dist/node_modules/kysely/dist/operation-node/add-value-node.d.ts +20 -0
  1457. package/dist/node_modules/kysely/dist/operation-node/add-value-node.js +22 -0
  1458. package/dist/node_modules/kysely/dist/operation-node/aggregate-function-node.d.ts +29 -0
  1459. package/dist/node_modules/kysely/dist/operation-node/aggregate-function-node.js +56 -0
  1460. package/dist/node_modules/kysely/dist/operation-node/alias-node.d.ts +15 -0
  1461. package/dist/node_modules/kysely/dist/operation-node/alias-node.js +17 -0
  1462. package/dist/node_modules/kysely/dist/operation-node/alter-column-node.d.ts +23 -0
  1463. package/dist/node_modules/kysely/dist/operation-node/alter-column-node.js +18 -0
  1464. package/dist/node_modules/kysely/dist/operation-node/alter-table-node.d.ts +38 -0
  1465. package/dist/node_modules/kysely/dist/operation-node/alter-table-node.js +30 -0
  1466. package/dist/node_modules/kysely/dist/operation-node/alter-type-node.d.ts +24 -0
  1467. package/dist/node_modules/kysely/dist/operation-node/alter-type-node.js +22 -0
  1468. package/dist/node_modules/kysely/dist/operation-node/and-node.d.ts +15 -0
  1469. package/dist/node_modules/kysely/dist/operation-node/and-node.js +17 -0
  1470. package/dist/node_modules/kysely/dist/operation-node/binary-operation-node.d.ts +16 -0
  1471. package/dist/node_modules/kysely/dist/operation-node/binary-operation-node.js +18 -0
  1472. package/dist/node_modules/kysely/dist/operation-node/case-node.d.ts +21 -0
  1473. package/dist/node_modules/kysely/dist/operation-node/case-node.js +40 -0
  1474. package/dist/node_modules/kysely/dist/operation-node/cast-node.d.ts +15 -0
  1475. package/dist/node_modules/kysely/dist/operation-node/cast-node.js +17 -0
  1476. package/dist/node_modules/kysely/dist/operation-node/check-constraint-node.d.ts +16 -0
  1477. package/dist/node_modules/kysely/dist/operation-node/check-constraint-node.js +20 -0
  1478. package/dist/node_modules/kysely/dist/operation-node/collate-node.d.ts +15 -0
  1479. package/dist/node_modules/kysely/dist/operation-node/collate-node.js +17 -0
  1480. package/dist/node_modules/kysely/dist/operation-node/column-definition-node.d.ts +38 -0
  1481. package/dist/node_modules/kysely/dist/operation-node/column-definition-node.js +40 -0
  1482. package/dist/node_modules/kysely/dist/operation-node/column-node.d.ts +15 -0
  1483. package/dist/node_modules/kysely/dist/operation-node/column-node.js +17 -0
  1484. package/dist/node_modules/kysely/dist/operation-node/column-update-node.d.ts +15 -0
  1485. package/dist/node_modules/kysely/dist/operation-node/column-update-node.js +17 -0
  1486. package/dist/node_modules/kysely/dist/operation-node/common-table-expression-name-node.d.ts +17 -0
  1487. package/dist/node_modules/kysely/dist/operation-node/common-table-expression-name-node.js +21 -0
  1488. package/dist/node_modules/kysely/dist/operation-node/common-table-expression-node.d.ts +19 -0
  1489. package/dist/node_modules/kysely/dist/operation-node/common-table-expression-node.js +23 -0
  1490. package/dist/node_modules/kysely/dist/operation-node/constraint-node.d.ts +5 -0
  1491. package/dist/node_modules/kysely/dist/operation-node/constraint-node.js +2 -0
  1492. package/dist/node_modules/kysely/dist/operation-node/create-index-node.d.ts +29 -0
  1493. package/dist/node_modules/kysely/dist/operation-node/create-index-node.js +29 -0
  1494. package/dist/node_modules/kysely/dist/operation-node/create-schema-node.d.ts +18 -0
  1495. package/dist/node_modules/kysely/dist/operation-node/create-schema-node.js +24 -0
  1496. package/dist/node_modules/kysely/dist/operation-node/create-table-node.d.ts +37 -0
  1497. package/dist/node_modules/kysely/dist/operation-node/create-table-node.js +62 -0
  1498. package/dist/node_modules/kysely/dist/operation-node/create-type-node.d.ts +19 -0
  1499. package/dist/node_modules/kysely/dist/operation-node/create-type-node.js +24 -0
  1500. package/dist/node_modules/kysely/dist/operation-node/create-view-node.d.ts +26 -0
  1501. package/dist/node_modules/kysely/dist/operation-node/create-view-node.js +23 -0
  1502. package/dist/node_modules/kysely/dist/operation-node/data-type-node.d.ts +18 -0
  1503. package/dist/node_modules/kysely/dist/operation-node/data-type-node.js +80 -0
  1504. package/dist/node_modules/kysely/dist/operation-node/default-insert-value-node.d.ts +13 -0
  1505. package/dist/node_modules/kysely/dist/operation-node/default-insert-value-node.js +15 -0
  1506. package/dist/node_modules/kysely/dist/operation-node/default-value-node.d.ts +14 -0
  1507. package/dist/node_modules/kysely/dist/operation-node/default-value-node.js +16 -0
  1508. package/dist/node_modules/kysely/dist/operation-node/delete-query-node.d.ts +42 -0
  1509. package/dist/node_modules/kysely/dist/operation-node/delete-query-node.js +50 -0
  1510. package/dist/node_modules/kysely/dist/operation-node/drop-column-node.d.ts +18 -0
  1511. package/dist/node_modules/kysely/dist/operation-node/drop-column-node.js +23 -0
  1512. package/dist/node_modules/kysely/dist/operation-node/drop-constraint-node.d.ts +19 -0
  1513. package/dist/node_modules/kysely/dist/operation-node/drop-constraint-node.js +23 -0
  1514. package/dist/node_modules/kysely/dist/operation-node/drop-index-node.d.ts +21 -0
  1515. package/dist/node_modules/kysely/dist/operation-node/drop-index-node.js +24 -0
  1516. package/dist/node_modules/kysely/dist/operation-node/drop-schema-node.d.ts +19 -0
  1517. package/dist/node_modules/kysely/dist/operation-node/drop-schema-node.js +24 -0
  1518. package/dist/node_modules/kysely/dist/operation-node/drop-table-node.d.ts +24 -0
  1519. package/dist/node_modules/kysely/dist/operation-node/drop-table-node.js +23 -0
  1520. package/dist/node_modules/kysely/dist/operation-node/drop-type-node.d.ts +20 -0
  1521. package/dist/node_modules/kysely/dist/operation-node/drop-type-node.js +26 -0
  1522. package/dist/node_modules/kysely/dist/operation-node/drop-view-node.d.ts +20 -0
  1523. package/dist/node_modules/kysely/dist/operation-node/drop-view-node.js +23 -0
  1524. package/dist/node_modules/kysely/dist/operation-node/explain-node.d.ts +16 -0
  1525. package/dist/node_modules/kysely/dist/operation-node/explain-node.js +17 -0
  1526. package/dist/node_modules/kysely/dist/operation-node/fetch-node.d.ts +17 -0
  1527. package/dist/node_modules/kysely/dist/operation-node/fetch-node.js +18 -0
  1528. package/dist/node_modules/kysely/dist/operation-node/foreign-key-constraint-node.d.ts +26 -0
  1529. package/dist/node_modules/kysely/dist/operation-node/foreign-key-constraint-node.js +28 -0
  1530. package/dist/node_modules/kysely/dist/operation-node/from-node.d.ts +15 -0
  1531. package/dist/node_modules/kysely/dist/operation-node/from-node.js +22 -0
  1532. package/dist/node_modules/kysely/dist/operation-node/function-node.d.ts +15 -0
  1533. package/dist/node_modules/kysely/dist/operation-node/function-node.js +17 -0
  1534. package/dist/node_modules/kysely/dist/operation-node/generated-node.d.ts +21 -0
  1535. package/dist/node_modules/kysely/dist/operation-node/generated-node.js +29 -0
  1536. package/dist/node_modules/kysely/dist/operation-node/group-by-item-node.d.ts +14 -0
  1537. package/dist/node_modules/kysely/dist/operation-node/group-by-item-node.js +16 -0
  1538. package/dist/node_modules/kysely/dist/operation-node/group-by-node.d.ts +16 -0
  1539. package/dist/node_modules/kysely/dist/operation-node/group-by-node.js +22 -0
  1540. package/dist/node_modules/kysely/dist/operation-node/having-node.d.ts +15 -0
  1541. package/dist/node_modules/kysely/dist/operation-node/having-node.js +26 -0
  1542. package/dist/node_modules/kysely/dist/operation-node/identifier-node.d.ts +14 -0
  1543. package/dist/node_modules/kysely/dist/operation-node/identifier-node.js +16 -0
  1544. package/dist/node_modules/kysely/dist/operation-node/insert-query-node.d.ts +40 -0
  1545. package/dist/node_modules/kysely/dist/operation-node/insert-query-node.js +29 -0
  1546. package/dist/node_modules/kysely/dist/operation-node/join-node.d.ts +20 -0
  1547. package/dist/node_modules/kysely/dist/operation-node/join-node.js +35 -0
  1548. package/dist/node_modules/kysely/dist/operation-node/json-operator-chain-node.d.ts +18 -0
  1549. package/dist/node_modules/kysely/dist/operation-node/json-operator-chain-node.js +23 -0
  1550. package/dist/node_modules/kysely/dist/operation-node/json-path-leg-node.d.ts +16 -0
  1551. package/dist/node_modules/kysely/dist/operation-node/json-path-leg-node.js +17 -0
  1552. package/dist/node_modules/kysely/dist/operation-node/json-path-node.d.ts +18 -0
  1553. package/dist/node_modules/kysely/dist/operation-node/json-path-node.js +23 -0
  1554. package/dist/node_modules/kysely/dist/operation-node/json-reference-node.d.ts +19 -0
  1555. package/dist/node_modules/kysely/dist/operation-node/json-reference-node.js +23 -0
  1556. package/dist/node_modules/kysely/dist/operation-node/limit-node.d.ts +14 -0
  1557. package/dist/node_modules/kysely/dist/operation-node/limit-node.js +16 -0
  1558. package/dist/node_modules/kysely/dist/operation-node/list-node.d.ts +14 -0
  1559. package/dist/node_modules/kysely/dist/operation-node/list-node.js +16 -0
  1560. package/dist/node_modules/kysely/dist/operation-node/matched-node.d.ts +15 -0
  1561. package/dist/node_modules/kysely/dist/operation-node/matched-node.js +17 -0
  1562. package/dist/node_modules/kysely/dist/operation-node/merge-query-node.d.ts +32 -0
  1563. package/dist/node_modules/kysely/dist/operation-node/merge-query-node.js +43 -0
  1564. package/dist/node_modules/kysely/dist/operation-node/modify-column-node.d.ts +15 -0
  1565. package/dist/node_modules/kysely/dist/operation-node/modify-column-node.js +16 -0
  1566. package/dist/node_modules/kysely/dist/operation-node/offset-node.d.ts +14 -0
  1567. package/dist/node_modules/kysely/dist/operation-node/offset-node.js +16 -0
  1568. package/dist/node_modules/kysely/dist/operation-node/on-conflict-node.d.ts +32 -0
  1569. package/dist/node_modules/kysely/dist/operation-node/on-conflict-node.js +66 -0
  1570. package/dist/node_modules/kysely/dist/operation-node/on-duplicate-key-node.d.ts +16 -0
  1571. package/dist/node_modules/kysely/dist/operation-node/on-duplicate-key-node.js +16 -0
  1572. package/dist/node_modules/kysely/dist/operation-node/on-node.d.ts +15 -0
  1573. package/dist/node_modules/kysely/dist/operation-node/on-node.js +26 -0
  1574. package/dist/node_modules/kysely/dist/operation-node/operation-node-source.d.ts +5 -0
  1575. package/dist/node_modules/kysely/dist/operation-node/operation-node-source.js +5 -0
  1576. package/dist/node_modules/kysely/dist/operation-node/operation-node-transformer.d.ts +244 -0
  1577. package/dist/node_modules/kysely/dist/operation-node/operation-node-transformer.js +958 -0
  1578. package/dist/node_modules/kysely/dist/operation-node/operation-node-visitor.d.ts +207 -0
  1579. package/dist/node_modules/kysely/dist/operation-node/operation-node-visitor.js +115 -0
  1580. package/dist/node_modules/kysely/dist/operation-node/operation-node.d.ts +5 -0
  1581. package/dist/node_modules/kysely/dist/operation-node/operation-node.js +5 -0
  1582. package/dist/node_modules/kysely/dist/operation-node/operator-node.d.ts +65 -0
  1583. package/dist/node_modules/kysely/dist/operation-node/operator-node.js +148 -0
  1584. package/dist/node_modules/kysely/dist/operation-node/or-action-node.d.ts +14 -0
  1585. package/dist/node_modules/kysely/dist/operation-node/or-action-node.js +16 -0
  1586. package/dist/node_modules/kysely/dist/operation-node/or-node.d.ts +15 -0
  1587. package/dist/node_modules/kysely/dist/operation-node/or-node.js +17 -0
  1588. package/dist/node_modules/kysely/dist/operation-node/order-by-item-node.d.ts +20 -0
  1589. package/dist/node_modules/kysely/dist/operation-node/order-by-item-node.js +23 -0
  1590. package/dist/node_modules/kysely/dist/operation-node/order-by-node.d.ts +16 -0
  1591. package/dist/node_modules/kysely/dist/operation-node/order-by-node.js +22 -0
  1592. package/dist/node_modules/kysely/dist/operation-node/output-node.d.ts +15 -0
  1593. package/dist/node_modules/kysely/dist/operation-node/output-node.js +24 -0
  1594. package/dist/node_modules/kysely/dist/operation-node/over-node.d.ts +21 -0
  1595. package/dist/node_modules/kysely/dist/operation-node/over-node.js +33 -0
  1596. package/dist/node_modules/kysely/dist/operation-node/parens-node.d.ts +14 -0
  1597. package/dist/node_modules/kysely/dist/operation-node/parens-node.js +16 -0
  1598. package/dist/node_modules/kysely/dist/operation-node/partition-by-item-node.d.ts +15 -0
  1599. package/dist/node_modules/kysely/dist/operation-node/partition-by-item-node.js +16 -0
  1600. package/dist/node_modules/kysely/dist/operation-node/partition-by-node.d.ts +16 -0
  1601. package/dist/node_modules/kysely/dist/operation-node/partition-by-node.js +22 -0
  1602. package/dist/node_modules/kysely/dist/operation-node/primary-key-constraint-node.d.ts +21 -0
  1603. package/dist/node_modules/kysely/dist/operation-node/primary-key-constraint-node.js +24 -0
  1604. package/dist/node_modules/kysely/dist/operation-node/primitive-value-list-node.d.ts +19 -0
  1605. package/dist/node_modules/kysely/dist/operation-node/primitive-value-list-node.js +16 -0
  1606. package/dist/node_modules/kysely/dist/operation-node/query-node.d.ts +61 -0
  1607. package/dist/node_modules/kysely/dist/operation-node/query-node.js +100 -0
  1608. package/dist/node_modules/kysely/dist/operation-node/raw-node.d.ts +18 -0
  1609. package/dist/node_modules/kysely/dist/operation-node/raw-node.js +26 -0
  1610. package/dist/node_modules/kysely/dist/operation-node/reference-node.d.ts +19 -0
  1611. package/dist/node_modules/kysely/dist/operation-node/reference-node.js +25 -0
  1612. package/dist/node_modules/kysely/dist/operation-node/references-node.d.ts +27 -0
  1613. package/dist/node_modules/kysely/dist/operation-node/references-node.js +43 -0
  1614. package/dist/node_modules/kysely/dist/operation-node/refresh-materialized-view-node.d.ts +19 -0
  1615. package/dist/node_modules/kysely/dist/operation-node/refresh-materialized-view-node.js +23 -0
  1616. package/dist/node_modules/kysely/dist/operation-node/rename-column-node.d.ts +16 -0
  1617. package/dist/node_modules/kysely/dist/operation-node/rename-column-node.js +18 -0
  1618. package/dist/node_modules/kysely/dist/operation-node/rename-constraint-node.d.ts +16 -0
  1619. package/dist/node_modules/kysely/dist/operation-node/rename-constraint-node.js +18 -0
  1620. package/dist/node_modules/kysely/dist/operation-node/rename-value-node.d.ts +14 -0
  1621. package/dist/node_modules/kysely/dist/operation-node/rename-value-node.js +14 -0
  1622. package/dist/node_modules/kysely/dist/operation-node/returning-node.d.ts +16 -0
  1623. package/dist/node_modules/kysely/dist/operation-node/returning-node.js +24 -0
  1624. package/dist/node_modules/kysely/dist/operation-node/root-operation-node.d.ts +17 -0
  1625. package/dist/node_modules/kysely/dist/operation-node/root-operation-node.js +27 -0
  1626. package/dist/node_modules/kysely/dist/operation-node/schemable-identifier-node.d.ts +17 -0
  1627. package/dist/node_modules/kysely/dist/operation-node/schemable-identifier-node.js +24 -0
  1628. package/dist/node_modules/kysely/dist/operation-node/select-all-node.d.ts +13 -0
  1629. package/dist/node_modules/kysely/dist/operation-node/select-all-node.js +15 -0
  1630. package/dist/node_modules/kysely/dist/operation-node/select-modifier-node.d.ts +18 -0
  1631. package/dist/node_modules/kysely/dist/operation-node/select-modifier-node.js +23 -0
  1632. package/dist/node_modules/kysely/dist/operation-node/select-query-node.d.ts +63 -0
  1633. package/dist/node_modules/kysely/dist/operation-node/select-query-node.js +127 -0
  1634. package/dist/node_modules/kysely/dist/operation-node/selection-node.d.ts +21 -0
  1635. package/dist/node_modules/kysely/dist/operation-node/selection-node.js +30 -0
  1636. package/dist/node_modules/kysely/dist/operation-node/set-operation-node.d.ts +17 -0
  1637. package/dist/node_modules/kysely/dist/operation-node/set-operation-node.js +18 -0
  1638. package/dist/node_modules/kysely/dist/operation-node/simple-reference-expression-node.d.ts +3 -0
  1639. package/dist/node_modules/kysely/dist/operation-node/simple-reference-expression-node.js +2 -0
  1640. package/dist/node_modules/kysely/dist/operation-node/table-node.d.ts +16 -0
  1641. package/dist/node_modules/kysely/dist/operation-node/table-node.js +23 -0
  1642. package/dist/node_modules/kysely/dist/operation-node/top-node.d.ts +16 -0
  1643. package/dist/node_modules/kysely/dist/operation-node/top-node.js +17 -0
  1644. package/dist/node_modules/kysely/dist/operation-node/tuple-node.d.ts +14 -0
  1645. package/dist/node_modules/kysely/dist/operation-node/tuple-node.js +16 -0
  1646. package/dist/node_modules/kysely/dist/operation-node/unary-operation-node.d.ts +15 -0
  1647. package/dist/node_modules/kysely/dist/operation-node/unary-operation-node.js +17 -0
  1648. package/dist/node_modules/kysely/dist/operation-node/unique-constraint-node.d.ts +30 -0
  1649. package/dist/node_modules/kysely/dist/operation-node/unique-constraint-node.js +29 -0
  1650. package/dist/node_modules/kysely/dist/operation-node/update-query-node.d.ts +41 -0
  1651. package/dist/node_modules/kysely/dist/operation-node/update-query-node.js +48 -0
  1652. package/dist/node_modules/kysely/dist/operation-node/using-node.d.ts +15 -0
  1653. package/dist/node_modules/kysely/dist/operation-node/using-node.js +22 -0
  1654. package/dist/node_modules/kysely/dist/operation-node/value-list-node.d.ts +14 -0
  1655. package/dist/node_modules/kysely/dist/operation-node/value-list-node.js +16 -0
  1656. package/dist/node_modules/kysely/dist/operation-node/value-node.d.ts +16 -0
  1657. package/dist/node_modules/kysely/dist/operation-node/value-node.js +23 -0
  1658. package/dist/node_modules/kysely/dist/operation-node/values-node.d.ts +17 -0
  1659. package/dist/node_modules/kysely/dist/operation-node/values-node.js +16 -0
  1660. package/dist/node_modules/kysely/dist/operation-node/when-node.d.ts +16 -0
  1661. package/dist/node_modules/kysely/dist/operation-node/when-node.js +22 -0
  1662. package/dist/node_modules/kysely/dist/operation-node/where-node.d.ts +15 -0
  1663. package/dist/node_modules/kysely/dist/operation-node/where-node.js +26 -0
  1664. package/dist/node_modules/kysely/dist/operation-node/with-node.d.ts +18 -0
  1665. package/dist/node_modules/kysely/dist/operation-node/with-node.js +23 -0
  1666. package/dist/node_modules/kysely/dist/parser/binary-operation-parser.d.ts +23 -0
  1667. package/dist/node_modules/kysely/dist/parser/binary-operation-parser.js +68 -0
  1668. package/dist/node_modules/kysely/dist/parser/coalesce-parser.d.ts +12 -0
  1669. package/dist/node_modules/kysely/dist/parser/coalesce-parser.js +2 -0
  1670. package/dist/node_modules/kysely/dist/parser/collate-parser.d.ts +1 -0
  1671. package/dist/node_modules/kysely/dist/parser/collate-parser.js +2 -0
  1672. package/dist/node_modules/kysely/dist/parser/data-type-parser.d.ts +5 -0
  1673. package/dist/node_modules/kysely/dist/parser/data-type-parser.js +12 -0
  1674. package/dist/node_modules/kysely/dist/parser/default-value-parser.d.ts +4 -0
  1675. package/dist/node_modules/kysely/dist/parser/default-value-parser.js +8 -0
  1676. package/dist/node_modules/kysely/dist/parser/delete-from-parser.d.ts +9 -0
  1677. package/dist/node_modules/kysely/dist/parser/delete-from-parser.js +2 -0
  1678. package/dist/node_modules/kysely/dist/parser/expression-parser.d.ts +20 -0
  1679. package/dist/node_modules/kysely/dist/parser/expression-parser.js +26 -0
  1680. package/dist/node_modules/kysely/dist/parser/fetch-parser.d.ts +2 -0
  1681. package/dist/node_modules/kysely/dist/parser/fetch-parser.js +15 -0
  1682. package/dist/node_modules/kysely/dist/parser/group-by-parser.d.ts +6 -0
  1683. package/dist/node_modules/kysely/dist/parser/group-by-parser.js +9 -0
  1684. package/dist/node_modules/kysely/dist/parser/identifier-parser.d.ts +3 -0
  1685. package/dist/node_modules/kysely/dist/parser/identifier-parser.js +26 -0
  1686. package/dist/node_modules/kysely/dist/parser/insert-values-parser.d.ts +14 -0
  1687. package/dist/node_modules/kysely/dist/parser/insert-values-parser.js +62 -0
  1688. package/dist/node_modules/kysely/dist/parser/join-parser.d.ts +10 -0
  1689. package/dist/node_modules/kysely/dist/parser/join-parser.js +28 -0
  1690. package/dist/node_modules/kysely/dist/parser/merge-into-parser.d.ts +7 -0
  1691. package/dist/node_modules/kysely/dist/parser/merge-into-parser.js +2 -0
  1692. package/dist/node_modules/kysely/dist/parser/merge-parser.d.ts +9 -0
  1693. package/dist/node_modules/kysely/dist/parser/merge-parser.js +28 -0
  1694. package/dist/node_modules/kysely/dist/parser/on-commit-action-parse.d.ts +2 -0
  1695. package/dist/node_modules/kysely/dist/parser/on-commit-action-parse.js +8 -0
  1696. package/dist/node_modules/kysely/dist/parser/on-modify-action-parser.d.ts +2 -0
  1697. package/dist/node_modules/kysely/dist/parser/on-modify-action-parser.js +8 -0
  1698. package/dist/node_modules/kysely/dist/parser/order-by-parser.d.ts +25 -0
  1699. package/dist/node_modules/kysely/dist/parser/order-by-parser.js +67 -0
  1700. package/dist/node_modules/kysely/dist/parser/parse-utils.d.ts +10 -0
  1701. package/dist/node_modules/kysely/dist/parser/parse-utils.js +33 -0
  1702. package/dist/node_modules/kysely/dist/parser/partition-by-parser.d.ts +6 -0
  1703. package/dist/node_modules/kysely/dist/parser/partition-by-parser.js +6 -0
  1704. package/dist/node_modules/kysely/dist/parser/reference-parser.d.ts +31 -0
  1705. package/dist/node_modules/kysely/dist/parser/reference-parser.js +93 -0
  1706. package/dist/node_modules/kysely/dist/parser/returning-parser.d.ts +8 -0
  1707. package/dist/node_modules/kysely/dist/parser/returning-parser.js +2 -0
  1708. package/dist/node_modules/kysely/dist/parser/savepoint-parser.d.ts +4 -0
  1709. package/dist/node_modules/kysely/dist/parser/savepoint-parser.js +9 -0
  1710. package/dist/node_modules/kysely/dist/parser/select-from-parser.d.ts +6 -0
  1711. package/dist/node_modules/kysely/dist/parser/select-from-parser.js +2 -0
  1712. package/dist/node_modules/kysely/dist/parser/select-parser.d.ts +36 -0
  1713. package/dist/node_modules/kysely/dist/parser/select-parser.js +47 -0
  1714. package/dist/node_modules/kysely/dist/parser/set-operation-parser.d.ts +5 -0
  1715. package/dist/node_modules/kysely/dist/parser/set-operation-parser.js +14 -0
  1716. package/dist/node_modules/kysely/dist/parser/table-parser.d.ts +24 -0
  1717. package/dist/node_modules/kysely/dist/parser/table-parser.js +49 -0
  1718. package/dist/node_modules/kysely/dist/parser/top-parser.d.ts +2 -0
  1719. package/dist/node_modules/kysely/dist/parser/top-parser.js +17 -0
  1720. package/dist/node_modules/kysely/dist/parser/tuple-parser.d.ts +47 -0
  1721. package/dist/node_modules/kysely/dist/parser/tuple-parser.js +2 -0
  1722. package/dist/node_modules/kysely/dist/parser/unary-operation-parser.d.ts +8 -0
  1723. package/dist/node_modules/kysely/dist/parser/unary-operation-parser.js +16 -0
  1724. package/dist/node_modules/kysely/dist/parser/update-parser.d.ts +9 -0
  1725. package/dist/node_modules/kysely/dist/parser/update-parser.js +2 -0
  1726. package/dist/node_modules/kysely/dist/parser/update-set-parser.d.ts +16 -0
  1727. package/dist/node_modules/kysely/dist/parser/update-set-parser.js +23 -0
  1728. package/dist/node_modules/kysely/dist/parser/value-parser.d.ts +13 -0
  1729. package/dist/node_modules/kysely/dist/parser/value-parser.js +33 -0
  1730. package/dist/node_modules/kysely/dist/parser/with-parser.d.ts +46 -0
  1731. package/dist/node_modules/kysely/dist/parser/with-parser.js +34 -0
  1732. package/dist/node_modules/kysely/dist/plugin/camel-case/camel-case-plugin.d.ts +170 -0
  1733. package/dist/node_modules/kysely/dist/plugin/camel-case/camel-case-plugin.js +119 -0
  1734. package/dist/node_modules/kysely/dist/plugin/camel-case/camel-case-transformer.d.ts +9 -0
  1735. package/dist/node_modules/kysely/dist/plugin/camel-case/camel-case-transformer.js +16 -0
  1736. package/dist/node_modules/kysely/dist/plugin/camel-case/camel-case.d.ts +15 -0
  1737. package/dist/node_modules/kysely/dist/plugin/camel-case/camel-case.js +108 -0
  1738. package/dist/node_modules/kysely/dist/plugin/deduplicate-joins/deduplicate-joins-plugin.d.ts +70 -0
  1739. package/dist/node_modules/kysely/dist/plugin/deduplicate-joins/deduplicate-joins-plugin.js +16 -0
  1740. package/dist/node_modules/kysely/dist/plugin/deduplicate-joins/deduplicate-joins-transformer.d.ts +11 -0
  1741. package/dist/node_modules/kysely/dist/plugin/deduplicate-joins/deduplicate-joins-transformer.js +39 -0
  1742. package/dist/node_modules/kysely/dist/plugin/handle-empty-in-lists/handle-empty-in-lists-plugin.d.ts +211 -0
  1743. package/dist/node_modules/kysely/dist/plugin/handle-empty-in-lists/handle-empty-in-lists-plugin.js +159 -0
  1744. package/dist/node_modules/kysely/dist/plugin/handle-empty-in-lists/handle-empty-in-lists-transformer.d.ts +8 -0
  1745. package/dist/node_modules/kysely/dist/plugin/handle-empty-in-lists/handle-empty-in-lists-transformer.js +26 -0
  1746. package/dist/node_modules/kysely/dist/plugin/handle-empty-in-lists/handle-empty-in-lists.d.ts +44 -0
  1747. package/dist/node_modules/kysely/dist/plugin/handle-empty-in-lists/handle-empty-in-lists.js +63 -0
  1748. package/dist/node_modules/kysely/dist/plugin/immediate-value/immediate-value-plugin.d.ts +73 -0
  1749. package/dist/node_modules/kysely/dist/plugin/immediate-value/immediate-value-plugin.js +19 -0
  1750. package/dist/node_modules/kysely/dist/plugin/immediate-value/immediate-value-transformer.d.ts +15 -0
  1751. package/dist/node_modules/kysely/dist/plugin/immediate-value/immediate-value-transformer.js +20 -0
  1752. package/dist/node_modules/kysely/dist/plugin/kysely-plugin.d.ts +73 -0
  1753. package/dist/node_modules/kysely/dist/plugin/kysely-plugin.js +2 -0
  1754. package/dist/node_modules/kysely/dist/plugin/noop-plugin.d.ts +64 -0
  1755. package/dist/node_modules/kysely/dist/plugin/noop-plugin.js +9 -0
  1756. package/dist/node_modules/kysely/dist/plugin/parse-json-results/parse-json-results-plugin.d.ts +141 -0
  1757. package/dist/node_modules/kysely/dist/plugin/parse-json-results/parse-json-results-plugin.js +143 -0
  1758. package/dist/node_modules/kysely/dist/plugin/safe-null-comparison/safe-null-comparison-plugin.d.ts +81 -0
  1759. package/dist/node_modules/kysely/dist/plugin/safe-null-comparison/safe-null-comparison-plugin.js +27 -0
  1760. package/dist/node_modules/kysely/dist/plugin/safe-null-comparison/safe-null-comparison-transformer.d.ts +5 -0
  1761. package/dist/node_modules/kysely/dist/plugin/safe-null-comparison/safe-null-comparison-transformer.js +20 -0
  1762. package/dist/node_modules/kysely/dist/plugin/with-schema/with-schema-plugin.d.ts +66 -0
  1763. package/dist/node_modules/kysely/dist/plugin/with-schema/with-schema-plugin.js +14 -0
  1764. package/dist/node_modules/kysely/dist/plugin/with-schema/with-schema-transformer.d.ts +18 -0
  1765. package/dist/node_modules/kysely/dist/plugin/with-schema/with-schema-transformer.js +170 -0
  1766. package/dist/node_modules/kysely/dist/query-builder/aggregate-function-builder.d.ts +379 -0
  1767. package/dist/node_modules/kysely/dist/query-builder/aggregate-function-builder.js +238 -0
  1768. package/dist/node_modules/kysely/dist/query-builder/case-builder.d.ts +184 -0
  1769. package/dist/node_modules/kysely/dist/query-builder/case-builder.js +116 -0
  1770. package/dist/node_modules/kysely/dist/query-builder/cte-builder.d.ts +20 -0
  1771. package/dist/node_modules/kysely/dist/query-builder/cte-builder.js +34 -0
  1772. package/dist/node_modules/kysely/dist/query-builder/delete-query-builder.d.ts +1344 -0
  1773. package/dist/node_modules/kysely/dist/query-builder/delete-query-builder.js +497 -0
  1774. package/dist/node_modules/kysely/dist/query-builder/delete-result.d.ts +4 -0
  1775. package/dist/node_modules/kysely/dist/query-builder/delete-result.js +7 -0
  1776. package/dist/node_modules/kysely/dist/query-builder/function-module.d.ts +592 -0
  1777. package/dist/node_modules/kysely/dist/query-builder/function-module.js +60 -0
  1778. package/dist/node_modules/kysely/dist/query-builder/having-interface.d.ts +15 -0
  1779. package/dist/node_modules/kysely/dist/query-builder/having-interface.js +2 -0
  1780. package/dist/node_modules/kysely/dist/query-builder/insert-query-builder.d.ts +1231 -0
  1781. package/dist/node_modules/kysely/dist/query-builder/insert-query-builder.js +1151 -0
  1782. package/dist/node_modules/kysely/dist/query-builder/insert-result.d.ts +46 -0
  1783. package/dist/node_modules/kysely/dist/query-builder/insert-result.js +50 -0
  1784. package/dist/node_modules/kysely/dist/query-builder/join-builder.d.ts +38 -0
  1785. package/dist/node_modules/kysely/dist/query-builder/join-builder.js +48 -0
  1786. package/dist/node_modules/kysely/dist/query-builder/json-path-builder.d.ts +294 -0
  1787. package/dist/node_modules/kysely/dist/query-builder/json-path-builder.js +203 -0
  1788. package/dist/node_modules/kysely/dist/query-builder/merge-query-builder.d.ts +993 -0
  1789. package/dist/node_modules/kysely/dist/query-builder/merge-query-builder.js +613 -0
  1790. package/dist/node_modules/kysely/dist/query-builder/merge-result.d.ts +4 -0
  1791. package/dist/node_modules/kysely/dist/query-builder/merge-result.js +7 -0
  1792. package/dist/node_modules/kysely/dist/query-builder/no-result-error.d.ts +10 -0
  1793. package/dist/node_modules/kysely/dist/query-builder/no-result-error.js +14 -0
  1794. package/dist/node_modules/kysely/dist/query-builder/on-conflict-builder.d.ts +875 -0
  1795. package/dist/node_modules/kysely/dist/query-builder/on-conflict-builder.js +254 -0
  1796. package/dist/node_modules/kysely/dist/query-builder/order-by-interface.d.ts +158 -0
  1797. package/dist/node_modules/kysely/dist/query-builder/order-by-interface.js +2 -0
  1798. package/dist/node_modules/kysely/dist/query-builder/order-by-item-builder.d.ts +43 -0
  1799. package/dist/node_modules/kysely/dist/query-builder/order-by-item-builder.js +72 -0
  1800. package/dist/node_modules/kysely/dist/query-builder/output-interface.d.ts +138 -0
  1801. package/dist/node_modules/kysely/dist/query-builder/output-interface.js +2 -0
  1802. package/dist/node_modules/kysely/dist/query-builder/over-builder.d.ts +101 -0
  1803. package/dist/node_modules/kysely/dist/query-builder/over-builder.js +37 -0
  1804. package/dist/node_modules/kysely/dist/query-builder/returning-interface.d.ts +87 -0
  1805. package/dist/node_modules/kysely/dist/query-builder/returning-interface.js +2 -0
  1806. package/dist/node_modules/kysely/dist/query-builder/select-query-builder-expression.d.ts +28 -0
  1807. package/dist/node_modules/kysely/dist/query-builder/select-query-builder-expression.js +2 -0
  1808. package/dist/node_modules/kysely/dist/query-builder/select-query-builder.d.ts +2413 -0
  1809. package/dist/node_modules/kysely/dist/query-builder/select-query-builder.js +387 -0
  1810. package/dist/node_modules/kysely/dist/query-builder/update-query-builder.d.ts +1388 -0
  1811. package/dist/node_modules/kysely/dist/query-builder/update-query-builder.js +506 -0
  1812. package/dist/node_modules/kysely/dist/query-builder/update-result.d.ts +14 -0
  1813. package/dist/node_modules/kysely/dist/query-builder/update-result.js +18 -0
  1814. package/dist/node_modules/kysely/dist/query-builder/where-interface.d.ts +382 -0
  1815. package/dist/node_modules/kysely/dist/query-builder/where-interface.js +2 -0
  1816. package/dist/node_modules/kysely/dist/query-compiler/compiled-query.d.ts +14 -0
  1817. package/dist/node_modules/kysely/dist/query-compiler/compiled-query.js +25 -0
  1818. package/dist/node_modules/kysely/dist/query-compiler/default-query-compiler.d.ts +243 -0
  1819. package/dist/node_modules/kysely/dist/query-compiler/default-query-compiler.js +1452 -0
  1820. package/dist/node_modules/kysely/dist/query-compiler/query-compiler.d.ts +9 -0
  1821. package/dist/node_modules/kysely/dist/query-compiler/query-compiler.js +2 -0
  1822. package/dist/node_modules/kysely/dist/query-creator.d.ts +593 -0
  1823. package/dist/node_modules/kysely/dist/query-creator.js +620 -0
  1824. package/dist/node_modules/kysely/dist/query-executor/default-query-executor.d.ts +52 -0
  1825. package/dist/node_modules/kysely/dist/query-executor/default-query-executor.js +37 -0
  1826. package/dist/node_modules/kysely/dist/query-executor/noop-query-executor.d.ts +50 -0
  1827. package/dist/node_modules/kysely/dist/query-executor/noop-query-executor.js +34 -0
  1828. package/dist/node_modules/kysely/dist/query-executor/query-executor-base.d.ts +69 -0
  1829. package/dist/node_modules/kysely/dist/query-executor/query-executor-base.js +169 -0
  1830. package/dist/node_modules/kysely/dist/query-executor/query-executor-provider.d.ts +8 -0
  1831. package/dist/node_modules/kysely/dist/query-executor/query-executor-provider.js +2 -0
  1832. package/dist/node_modules/kysely/dist/query-executor/query-executor.d.ts +75 -0
  1833. package/dist/node_modules/kysely/dist/query-executor/query-executor.js +2 -0
  1834. package/dist/node_modules/kysely/dist/query-finalizer.d.ts +27 -0
  1835. package/dist/node_modules/kysely/dist/query-finalizer.js +23 -0
  1836. package/dist/node_modules/kysely/dist/raw-builder/raw-builder.d.ts +219 -0
  1837. package/dist/node_modules/kysely/dist/raw-builder/raw-builder.js +84 -0
  1838. package/dist/node_modules/kysely/dist/raw-builder/sql.d.ts +358 -0
  1839. package/dist/node_modules/kysely/dist/raw-builder/sql.js +76 -0
  1840. package/dist/node_modules/kysely/dist/readonly/index.d.ts +6 -0
  1841. package/dist/node_modules/kysely/dist/readonly/index.js +2 -0
  1842. package/dist/node_modules/kysely/dist/readonly/readonly-compiled-query.d.ts +6 -0
  1843. package/dist/node_modules/kysely/dist/readonly/readonly-compiled-query.js +6 -0
  1844. package/dist/node_modules/kysely/dist/readonly/readonly-database-connection.d.ts +19 -0
  1845. package/dist/node_modules/kysely/dist/readonly/readonly-database-connection.js +2 -0
  1846. package/dist/node_modules/kysely/dist/readonly/readonly-driver.d.ts +5 -0
  1847. package/dist/node_modules/kysely/dist/readonly/readonly-driver.js +2 -0
  1848. package/dist/node_modules/kysely/dist/readonly/readonly-kysely.d.ts +230 -0
  1849. package/dist/node_modules/kysely/dist/readonly/readonly-kysely.js +2 -0
  1850. package/dist/node_modules/kysely/dist/readonly/readonly-query-creator.d.ts +37 -0
  1851. package/dist/node_modules/kysely/dist/readonly/readonly-query-creator.js +2 -0
  1852. package/dist/node_modules/kysely/dist/readonly/readonly-with-parser.d.ts +32 -0
  1853. package/dist/node_modules/kysely/dist/readonly/readonly-with-parser.js +2 -0
  1854. package/dist/node_modules/kysely/dist/schema/alter-column-builder.d.ts +53 -0
  1855. package/dist/node_modules/kysely/dist/schema/alter-column-builder.js +70 -0
  1856. package/dist/node_modules/kysely/dist/schema/alter-table-add-foreign-key-constraint-builder.d.ts +33 -0
  1857. package/dist/node_modules/kysely/dist/schema/alter-table-add-foreign-key-constraint-builder.js +64 -0
  1858. package/dist/node_modules/kysely/dist/schema/alter-table-add-index-builder.d.ts +157 -0
  1859. package/dist/node_modules/kysely/dist/schema/alter-table-add-index-builder.js +151 -0
  1860. package/dist/node_modules/kysely/dist/schema/alter-table-builder.d.ts +151 -0
  1861. package/dist/node_modules/kysely/dist/schema/alter-table-builder.js +269 -0
  1862. package/dist/node_modules/kysely/dist/schema/alter-table-drop-constraint-builder.d.ts +27 -0
  1863. package/dist/node_modules/kysely/dist/schema/alter-table-drop-constraint-builder.js +56 -0
  1864. package/dist/node_modules/kysely/dist/schema/alter-table-executor.d.ts +19 -0
  1865. package/dist/node_modules/kysely/dist/schema/alter-table-executor.js +17 -0
  1866. package/dist/node_modules/kysely/dist/schema/alter-type-add-value-builder.d.ts +25 -0
  1867. package/dist/node_modules/kysely/dist/schema/alter-type-add-value-builder.js +50 -0
  1868. package/dist/node_modules/kysely/dist/schema/alter-type-builder.d.ts +33 -0
  1869. package/dist/node_modules/kysely/dist/schema/alter-type-builder.js +62 -0
  1870. package/dist/node_modules/kysely/dist/schema/check-constraint-builder.d.ts +13 -0
  1871. package/dist/node_modules/kysely/dist/schema/check-constraint-builder.js +17 -0
  1872. package/dist/node_modules/kysely/dist/schema/column-definition-builder.d.ts +514 -0
  1873. package/dist/node_modules/kysely/dist/schema/column-definition-builder.js +597 -0
  1874. package/dist/node_modules/kysely/dist/schema/create-index-builder.d.ts +205 -0
  1875. package/dist/node_modules/kysely/dist/schema/create-index-builder.js +185 -0
  1876. package/dist/node_modules/kysely/dist/schema/create-schema-builder.d.ts +25 -0
  1877. package/dist/node_modules/kysely/dist/schema/create-schema-builder.js +31 -0
  1878. package/dist/node_modules/kysely/dist/schema/create-table-add-index-builder.d.ts +35 -0
  1879. package/dist/node_modules/kysely/dist/schema/create-table-add-index-builder.js +24 -0
  1880. package/dist/node_modules/kysely/dist/schema/create-table-builder.d.ts +379 -0
  1881. package/dist/node_modules/kysely/dist/schema/create-table-builder.js +465 -0
  1882. package/dist/node_modules/kysely/dist/schema/create-type-builder.d.ts +34 -0
  1883. package/dist/node_modules/kysely/dist/schema/create-type-builder.js +40 -0
  1884. package/dist/node_modules/kysely/dist/schema/create-view-builder.d.ts +49 -0
  1885. package/dist/node_modules/kysely/dist/schema/create-view-builder.js +95 -0
  1886. package/dist/node_modules/kysely/dist/schema/drop-column-builder.d.ts +12 -0
  1887. package/dist/node_modules/kysely/dist/schema/drop-column-builder.js +18 -0
  1888. package/dist/node_modules/kysely/dist/schema/drop-index-builder.d.ts +31 -0
  1889. package/dist/node_modules/kysely/dist/schema/drop-index-builder.js +54 -0
  1890. package/dist/node_modules/kysely/dist/schema/drop-schema-builder.d.ts +26 -0
  1891. package/dist/node_modules/kysely/dist/schema/drop-schema-builder.js +41 -0
  1892. package/dist/node_modules/kysely/dist/schema/drop-table-builder.d.ts +32 -0
  1893. package/dist/node_modules/kysely/dist/schema/drop-table-builder.js +54 -0
  1894. package/dist/node_modules/kysely/dist/schema/drop-type-builder.d.ts +32 -0
  1895. package/dist/node_modules/kysely/dist/schema/drop-type-builder.js +47 -0
  1896. package/dist/node_modules/kysely/dist/schema/drop-view-builder.d.ts +27 -0
  1897. package/dist/node_modules/kysely/dist/schema/drop-view-builder.js +49 -0
  1898. package/dist/node_modules/kysely/dist/schema/foreign-key-constraint-builder.d.ts +28 -0
  1899. package/dist/node_modules/kysely/dist/schema/foreign-key-constraint-builder.js +45 -0
  1900. package/dist/node_modules/kysely/dist/schema/primary-key-constraint-builder.d.ts +17 -0
  1901. package/dist/node_modules/kysely/dist/schema/primary-key-constraint-builder.js +34 -0
  1902. package/dist/node_modules/kysely/dist/schema/refresh-materialized-view-builder.d.ts +48 -0
  1903. package/dist/node_modules/kysely/dist/schema/refresh-materialized-view-builder.js +72 -0
  1904. package/dist/node_modules/kysely/dist/schema/schema-module.d.ts +254 -0
  1905. package/dist/node_modules/kysely/dist/schema/schema-module.js +356 -0
  1906. package/dist/node_modules/kysely/dist/schema/unique-constraint-builder.d.ts +23 -0
  1907. package/dist/node_modules/kysely/dist/schema/unique-constraint-builder.js +42 -0
  1908. package/dist/node_modules/kysely/dist/util/abort.d.ts +49 -0
  1909. package/dist/node_modules/kysely/dist/util/abort.js +78 -0
  1910. package/dist/node_modules/kysely/dist/util/column-type.d.ts +229 -0
  1911. package/dist/node_modules/kysely/dist/util/column-type.js +2 -0
  1912. package/dist/node_modules/kysely/dist/util/compilable.d.ts +5 -0
  1913. package/dist/node_modules/kysely/dist/util/compilable.js +5 -0
  1914. package/dist/node_modules/kysely/dist/util/deferred.d.ts +7 -0
  1915. package/dist/node_modules/kysely/dist/util/deferred.js +23 -0
  1916. package/dist/node_modules/kysely/dist/util/executable.d.ts +35 -0
  1917. package/dist/node_modules/kysely/dist/util/executable.js +2 -0
  1918. package/dist/node_modules/kysely/dist/util/explainable.d.ts +40 -0
  1919. package/dist/node_modules/kysely/dist/util/explainable.js +2 -0
  1920. package/dist/node_modules/kysely/dist/util/infer-result.d.ts +48 -0
  1921. package/dist/node_modules/kysely/dist/util/infer-result.js +2 -0
  1922. package/dist/node_modules/kysely/dist/util/json-object-args.d.ts +3 -0
  1923. package/dist/node_modules/kysely/dist/util/json-object-args.js +32 -0
  1924. package/dist/node_modules/kysely/dist/util/log-once.d.ts +5 -0
  1925. package/dist/node_modules/kysely/dist/util/log-once.js +13 -0
  1926. package/dist/node_modules/kysely/dist/util/log.d.ts +28 -0
  1927. package/dist/node_modules/kysely/dist/util/log.js +56 -0
  1928. package/dist/node_modules/kysely/dist/util/object-utils.d.ts +24 -0
  1929. package/dist/node_modules/kysely/dist/util/object-utils.js +144 -0
  1930. package/dist/node_modules/kysely/dist/util/performance-now.d.ts +1 -0
  1931. package/dist/node_modules/kysely/dist/util/performance-now.js +10 -0
  1932. package/dist/node_modules/kysely/dist/util/provide-controlled-connection.d.ts +8 -0
  1933. package/dist/node_modules/kysely/dist/util/provide-controlled-connection.js +22 -0
  1934. package/dist/node_modules/kysely/dist/util/query-id.d.ts +4 -0
  1935. package/dist/node_modules/kysely/dist/util/query-id.js +14 -0
  1936. package/dist/node_modules/kysely/dist/util/random-string.d.ts +1 -0
  1937. package/dist/node_modules/kysely/dist/util/random-string.js +75 -0
  1938. package/dist/node_modules/kysely/dist/util/stack-trace-utils.d.ts +1 -0
  1939. package/dist/node_modules/kysely/dist/util/stack-trace-utils.js +14 -0
  1940. package/dist/node_modules/kysely/dist/util/streamable.d.ts +38 -0
  1941. package/dist/node_modules/kysely/dist/util/streamable.js +2 -0
  1942. package/dist/node_modules/kysely/dist/util/type-error.d.ts +3 -0
  1943. package/dist/node_modules/kysely/dist/util/type-error.js +2 -0
  1944. package/dist/node_modules/kysely/dist/util/type-utils.d.ts +205 -0
  1945. package/dist/node_modules/kysely/dist/util/type-utils.js +2 -0
  1946. package/dist/node_modules/kysely/outdated-typescript.d.ts +5 -0
  1947. package/dist/node_modules/kysely/package.json +128 -0
  1948. package/dist/node_modules/longest-streak/index.d.ts +11 -0
  1949. package/dist/node_modules/longest-streak/index.js +36 -0
  1950. package/dist/node_modules/longest-streak/license +22 -0
  1951. package/dist/node_modules/longest-streak/package.json +73 -0
  1952. package/dist/node_modules/longest-streak/readme.md +150 -0
  1953. package/dist/node_modules/markdown-table/index.d.ts +171 -0
  1954. package/dist/node_modules/markdown-table/index.d.ts.map +1 -0
  1955. package/dist/node_modules/markdown-table/index.js +393 -0
  1956. package/dist/node_modules/markdown-table/license +22 -0
  1957. package/dist/node_modules/markdown-table/package.json +77 -0
  1958. package/dist/node_modules/markdown-table/readme.md +344 -0
  1959. package/dist/node_modules/mdast-util-find-and-replace/index.d.ts +9 -0
  1960. package/dist/node_modules/mdast-util-find-and-replace/index.d.ts.map +1 -0
  1961. package/dist/node_modules/mdast-util-find-and-replace/index.js +11 -0
  1962. package/dist/node_modules/mdast-util-find-and-replace/lib/index.d.ts +79 -0
  1963. package/dist/node_modules/mdast-util-find-and-replace/lib/index.d.ts.map +1 -0
  1964. package/dist/node_modules/mdast-util-find-and-replace/lib/index.js +257 -0
  1965. package/dist/node_modules/mdast-util-find-and-replace/license +22 -0
  1966. package/dist/node_modules/mdast-util-find-and-replace/package.json +78 -0
  1967. package/dist/node_modules/mdast-util-find-and-replace/readme.md +366 -0
  1968. package/dist/node_modules/mdast-util-from-markdown/dev/index.d.ts +23 -0
  1969. package/dist/node_modules/mdast-util-from-markdown/dev/index.js +2 -0
  1970. package/dist/node_modules/mdast-util-from-markdown/dev/lib/index.d.ts +53 -0
  1971. package/dist/node_modules/mdast-util-from-markdown/dev/lib/index.d.ts.map +1 -0
  1972. package/dist/node_modules/mdast-util-from-markdown/dev/lib/index.js +1455 -0
  1973. package/dist/node_modules/mdast-util-from-markdown/dev/lib/types.d.ts +321 -0
  1974. package/dist/node_modules/mdast-util-from-markdown/dev/lib/types.js +2 -0
  1975. package/dist/node_modules/mdast-util-from-markdown/index.d.ts +23 -0
  1976. package/dist/node_modules/mdast-util-from-markdown/index.js +2 -0
  1977. package/dist/node_modules/mdast-util-from-markdown/lib/index.d.ts +53 -0
  1978. package/dist/node_modules/mdast-util-from-markdown/lib/index.d.ts.map +1 -0
  1979. package/dist/node_modules/mdast-util-from-markdown/lib/index.js +1270 -0
  1980. package/dist/node_modules/mdast-util-from-markdown/lib/types.d.ts +321 -0
  1981. package/dist/node_modules/mdast-util-from-markdown/lib/types.js +2 -0
  1982. package/dist/node_modules/mdast-util-from-markdown/license +22 -0
  1983. package/dist/node_modules/mdast-util-from-markdown/package.json +98 -0
  1984. package/dist/node_modules/mdast-util-from-markdown/readme.md +549 -0
  1985. package/dist/node_modules/mdast-util-gfm/index.d.ts +12 -0
  1986. package/dist/node_modules/mdast-util-gfm/index.js +2 -0
  1987. package/dist/node_modules/mdast-util-gfm/lib/index.d.ts +24 -0
  1988. package/dist/node_modules/mdast-util-gfm/lib/index.d.ts.map +1 -0
  1989. package/dist/node_modules/mdast-util-gfm/lib/index.js +63 -0
  1990. package/dist/node_modules/mdast-util-gfm/license +22 -0
  1991. package/dist/node_modules/mdast-util-gfm/package.json +125 -0
  1992. package/dist/node_modules/mdast-util-gfm/readme.md +497 -0
  1993. package/dist/node_modules/mdast-util-gfm-autolink-literal/index.d.ts +1 -0
  1994. package/dist/node_modules/mdast-util-gfm-autolink-literal/index.js +4 -0
  1995. package/dist/node_modules/mdast-util-gfm-autolink-literal/lib/index.d.ts +18 -0
  1996. package/dist/node_modules/mdast-util-gfm-autolink-literal/lib/index.js +280 -0
  1997. package/dist/node_modules/mdast-util-gfm-autolink-literal/license +22 -0
  1998. package/dist/node_modules/mdast-util-gfm-autolink-literal/package.json +106 -0
  1999. package/dist/node_modules/mdast-util-gfm-autolink-literal/readme.md +334 -0
  2000. package/dist/node_modules/mdast-util-gfm-footnote/index.d.ts +34 -0
  2001. package/dist/node_modules/mdast-util-gfm-footnote/index.js +2 -0
  2002. package/dist/node_modules/mdast-util-gfm-footnote/lib/index.d.ts +22 -0
  2003. package/dist/node_modules/mdast-util-gfm-footnote/lib/index.d.ts.map +1 -0
  2004. package/dist/node_modules/mdast-util-gfm-footnote/lib/index.js +212 -0
  2005. package/dist/node_modules/mdast-util-gfm-footnote/license +22 -0
  2006. package/dist/node_modules/mdast-util-gfm-footnote/package.json +111 -0
  2007. package/dist/node_modules/mdast-util-gfm-footnote/readme.md +494 -0
  2008. package/dist/node_modules/mdast-util-gfm-strikethrough/index.d.ts +19 -0
  2009. package/dist/node_modules/mdast-util-gfm-strikethrough/index.js +5 -0
  2010. package/dist/node_modules/mdast-util-gfm-strikethrough/lib/index.d.ts +19 -0
  2011. package/dist/node_modules/mdast-util-gfm-strikethrough/lib/index.d.ts.map +1 -0
  2012. package/dist/node_modules/mdast-util-gfm-strikethrough/lib/index.js +133 -0
  2013. package/dist/node_modules/mdast-util-gfm-strikethrough/license +22 -0
  2014. package/dist/node_modules/mdast-util-gfm-strikethrough/package.json +84 -0
  2015. package/dist/node_modules/mdast-util-gfm-strikethrough/readme.md +350 -0
  2016. package/dist/node_modules/mdast-util-gfm-table/index.d.ts +54 -0
  2017. package/dist/node_modules/mdast-util-gfm-table/index.js +2 -0
  2018. package/dist/node_modules/mdast-util-gfm-table/lib/index.d.ts +51 -0
  2019. package/dist/node_modules/mdast-util-gfm-table/lib/index.js +300 -0
  2020. package/dist/node_modules/mdast-util-gfm-table/license +22 -0
  2021. package/dist/node_modules/mdast-util-gfm-table/package.json +101 -0
  2022. package/dist/node_modules/mdast-util-gfm-table/readme.md +605 -0
  2023. package/dist/node_modules/mdast-util-gfm-task-list-item/index.d.ts +4 -0
  2024. package/dist/node_modules/mdast-util-gfm-task-list-item/index.js +4 -0
  2025. package/dist/node_modules/mdast-util-gfm-task-list-item/lib/index.d.ts +23 -0
  2026. package/dist/node_modules/mdast-util-gfm-task-list-item/lib/index.js +141 -0
  2027. package/dist/node_modules/mdast-util-gfm-task-list-item/license +22 -0
  2028. package/dist/node_modules/mdast-util-gfm-task-list-item/package.json +90 -0
  2029. package/dist/node_modules/mdast-util-gfm-task-list-item/readme.md +366 -0
  2030. package/dist/node_modules/mdast-util-phrasing/index.d.ts +1 -0
  2031. package/dist/node_modules/mdast-util-phrasing/index.js +1 -0
  2032. package/dist/node_modules/mdast-util-phrasing/lib/index.d.ts +3 -0
  2033. package/dist/node_modules/mdast-util-phrasing/lib/index.js +45 -0
  2034. package/dist/node_modules/mdast-util-phrasing/license +23 -0
  2035. package/dist/node_modules/mdast-util-phrasing/package.json +78 -0
  2036. package/dist/node_modules/mdast-util-phrasing/readme.md +200 -0
  2037. package/dist/node_modules/mdast-util-to-markdown/index.d.ts +18 -0
  2038. package/dist/node_modules/mdast-util-to-markdown/index.js +3 -0
  2039. package/dist/node_modules/mdast-util-to-markdown/lib/configure.d.ts +14 -0
  2040. package/dist/node_modules/mdast-util-to-markdown/lib/configure.d.ts.map +1 -0
  2041. package/dist/node_modules/mdast-util-to-markdown/lib/configure.js +98 -0
  2042. package/dist/node_modules/mdast-util-to-markdown/lib/handle/blockquote.d.ts +24 -0
  2043. package/dist/node_modules/mdast-util-to-markdown/lib/handle/blockquote.d.ts.map +1 -0
  2044. package/dist/node_modules/mdast-util-to-markdown/lib/handle/blockquote.js +40 -0
  2045. package/dist/node_modules/mdast-util-to-markdown/lib/handle/break.d.ts +20 -0
  2046. package/dist/node_modules/mdast-util-to-markdown/lib/handle/break.d.ts.map +1 -0
  2047. package/dist/node_modules/mdast-util-to-markdown/lib/handle/break.js +41 -0
  2048. package/dist/node_modules/mdast-util-to-markdown/lib/handle/code.d.ts +20 -0
  2049. package/dist/node_modules/mdast-util-to-markdown/lib/handle/code.d.ts.map +1 -0
  2050. package/dist/node_modules/mdast-util-to-markdown/lib/handle/code.js +86 -0
  2051. package/dist/node_modules/mdast-util-to-markdown/lib/handle/definition.d.ts +20 -0
  2052. package/dist/node_modules/mdast-util-to-markdown/lib/handle/definition.d.ts.map +1 -0
  2053. package/dist/node_modules/mdast-util-to-markdown/lib/handle/definition.js +83 -0
  2054. package/dist/node_modules/mdast-util-to-markdown/lib/handle/emphasis.d.ts +52 -0
  2055. package/dist/node_modules/mdast-util-to-markdown/lib/handle/emphasis.d.ts.map +1 -0
  2056. package/dist/node_modules/mdast-util-to-markdown/lib/handle/emphasis.js +67 -0
  2057. package/dist/node_modules/mdast-util-to-markdown/lib/handle/heading.d.ts +20 -0
  2058. package/dist/node_modules/mdast-util-to-markdown/lib/handle/heading.d.ts.map +1 -0
  2059. package/dist/node_modules/mdast-util-to-markdown/lib/handle/heading.js +84 -0
  2060. package/dist/node_modules/mdast-util-to-markdown/lib/handle/html.d.ts +22 -0
  2061. package/dist/node_modules/mdast-util-to-markdown/lib/handle/html.d.ts.map +1 -0
  2062. package/dist/node_modules/mdast-util-to-markdown/lib/handle/html.js +27 -0
  2063. package/dist/node_modules/mdast-util-to-markdown/lib/handle/image-reference.d.ts +31 -0
  2064. package/dist/node_modules/mdast-util-to-markdown/lib/handle/image-reference.d.ts.map +1 -0
  2065. package/dist/node_modules/mdast-util-to-markdown/lib/handle/image-reference.js +78 -0
  2066. package/dist/node_modules/mdast-util-to-markdown/lib/handle/image.d.ts +31 -0
  2067. package/dist/node_modules/mdast-util-to-markdown/lib/handle/image.d.ts.map +1 -0
  2068. package/dist/node_modules/mdast-util-to-markdown/lib/handle/image.js +92 -0
  2069. package/dist/node_modules/mdast-util-to-markdown/lib/handle/index.d.ts +42 -0
  2070. package/dist/node_modules/mdast-util-to-markdown/lib/handle/index.d.ts.map +1 -0
  2071. package/dist/node_modules/mdast-util-to-markdown/lib/handle/index.js +45 -0
  2072. package/dist/node_modules/mdast-util-to-markdown/lib/handle/inline-code.d.ts +28 -0
  2073. package/dist/node_modules/mdast-util-to-markdown/lib/handle/inline-code.d.ts.map +1 -0
  2074. package/dist/node_modules/mdast-util-to-markdown/lib/handle/inline-code.js +86 -0
  2075. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link-reference.d.ts +31 -0
  2076. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link-reference.d.ts.map +1 -0
  2077. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link-reference.js +78 -0
  2078. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link.d.ts +37 -0
  2079. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link.d.ts.map +1 -0
  2080. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link.js +129 -0
  2081. package/dist/node_modules/mdast-util-to-markdown/lib/handle/list-item.d.ts +20 -0
  2082. package/dist/node_modules/mdast-util-to-markdown/lib/handle/list-item.d.ts.map +1 -0
  2083. package/dist/node_modules/mdast-util-to-markdown/lib/handle/list-item.js +73 -0
  2084. package/dist/node_modules/mdast-util-to-markdown/lib/handle/list.d.ts +20 -0
  2085. package/dist/node_modules/mdast-util-to-markdown/lib/handle/list.d.ts.map +1 -0
  2086. package/dist/node_modules/mdast-util-to-markdown/lib/handle/list.js +107 -0
  2087. package/dist/node_modules/mdast-util-to-markdown/lib/handle/paragraph.d.ts +24 -0
  2088. package/dist/node_modules/mdast-util-to-markdown/lib/handle/paragraph.d.ts.map +1 -0
  2089. package/dist/node_modules/mdast-util-to-markdown/lib/handle/paragraph.js +27 -0
  2090. package/dist/node_modules/mdast-util-to-markdown/lib/handle/root.d.ts +20 -0
  2091. package/dist/node_modules/mdast-util-to-markdown/lib/handle/root.d.ts.map +1 -0
  2092. package/dist/node_modules/mdast-util-to-markdown/lib/handle/root.js +34 -0
  2093. package/dist/node_modules/mdast-util-to-markdown/lib/handle/strong.d.ts +52 -0
  2094. package/dist/node_modules/mdast-util-to-markdown/lib/handle/strong.d.ts.map +1 -0
  2095. package/dist/node_modules/mdast-util-to-markdown/lib/handle/strong.js +67 -0
  2096. package/dist/node_modules/mdast-util-to-markdown/lib/handle/text.d.ts +24 -0
  2097. package/dist/node_modules/mdast-util-to-markdown/lib/handle/text.d.ts.map +1 -0
  2098. package/dist/node_modules/mdast-util-to-markdown/lib/handle/text.js +30 -0
  2099. package/dist/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.d.ts +17 -0
  2100. package/dist/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.d.ts.map +1 -0
  2101. package/dist/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.js +27 -0
  2102. package/dist/node_modules/mdast-util-to-markdown/lib/index.d.ts +14 -0
  2103. package/dist/node_modules/mdast-util-to-markdown/lib/index.d.ts.map +1 -0
  2104. package/dist/node_modules/mdast-util-to-markdown/lib/index.js +213 -0
  2105. package/dist/node_modules/mdast-util-to-markdown/lib/join.d.ts +4 -0
  2106. package/dist/node_modules/mdast-util-to-markdown/lib/join.d.ts.map +1 -0
  2107. package/dist/node_modules/mdast-util-to-markdown/lib/join.js +56 -0
  2108. package/dist/node_modules/mdast-util-to-markdown/lib/types.d.ts +1005 -0
  2109. package/dist/node_modules/mdast-util-to-markdown/lib/types.js +2 -0
  2110. package/dist/node_modules/mdast-util-to-markdown/lib/unsafe.d.ts +4 -0
  2111. package/dist/node_modules/mdast-util-to-markdown/lib/unsafe.d.ts.map +1 -0
  2112. package/dist/node_modules/mdast-util-to-markdown/lib/unsafe.js +160 -0
  2113. package/dist/node_modules/mdast-util-to-markdown/lib/util/association.d.ts +2 -0
  2114. package/dist/node_modules/mdast-util-to-markdown/lib/util/association.d.ts.map +1 -0
  2115. package/dist/node_modules/mdast-util-to-markdown/lib/util/association.js +33 -0
  2116. package/dist/node_modules/mdast-util-to-markdown/lib/util/character.d.ts +23 -0
  2117. package/dist/node_modules/mdast-util-to-markdown/lib/util/character.d.ts.map +1 -0
  2118. package/dist/node_modules/mdast-util-to-markdown/lib/util/character.js +32 -0
  2119. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.d.ts +15 -0
  2120. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.d.ts.map +1 -0
  2121. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.js +25 -0
  2122. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.d.ts +12 -0
  2123. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.d.ts.map +1 -0
  2124. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.js +42 -0
  2125. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet.d.ts +15 -0
  2126. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet.d.ts.map +1 -0
  2127. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet.js +25 -0
  2128. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.d.ts +15 -0
  2129. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.d.ts.map +1 -0
  2130. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.js +25 -0
  2131. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-fence.d.ts +15 -0
  2132. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-fence.d.ts.map +1 -0
  2133. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-fence.js +25 -0
  2134. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.d.ts +15 -0
  2135. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.d.ts.map +1 -0
  2136. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js +25 -0
  2137. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-quote.d.ts +15 -0
  2138. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-quote.d.ts.map +1 -0
  2139. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-quote.js +25 -0
  2140. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.d.ts +15 -0
  2141. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.d.ts.map +1 -0
  2142. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.js +25 -0
  2143. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule.d.ts +15 -0
  2144. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule.d.ts.map +1 -0
  2145. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule.js +25 -0
  2146. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-strong.d.ts +15 -0
  2147. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-strong.d.ts.map +1 -0
  2148. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-strong.js +25 -0
  2149. package/dist/node_modules/mdast-util-to-markdown/lib/util/compile-pattern.d.ts +2 -0
  2150. package/dist/node_modules/mdast-util-to-markdown/lib/util/compile-pattern.d.ts.map +1 -0
  2151. package/dist/node_modules/mdast-util-to-markdown/lib/util/compile-pattern.js +30 -0
  2152. package/dist/node_modules/mdast-util-to-markdown/lib/util/container-flow.d.ts +21 -0
  2153. package/dist/node_modules/mdast-util-to-markdown/lib/util/container-flow.d.ts.map +1 -0
  2154. package/dist/node_modules/mdast-util-to-markdown/lib/util/container-flow.js +93 -0
  2155. package/dist/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.d.ts +110 -0
  2156. package/dist/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.d.ts.map +1 -0
  2157. package/dist/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.js +704 -0
  2158. package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.d.ts +10 -0
  2159. package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.d.ts.map +1 -0
  2160. package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.js +11 -0
  2161. package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-info.d.ts +33 -0
  2162. package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-info.d.ts.map +1 -0
  2163. package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-info.js +82 -0
  2164. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.d.ts +18 -0
  2165. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.d.ts.map +1 -0
  2166. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.js +27 -0
  2167. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.d.ts +14 -0
  2168. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.d.ts.map +1 -0
  2169. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js +39 -0
  2170. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.d.ts +14 -0
  2171. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.d.ts.map +1 -0
  2172. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.js +39 -0
  2173. package/dist/node_modules/mdast-util-to-markdown/lib/util/html-kind.d.ts +31 -0
  2174. package/dist/node_modules/mdast-util-to-markdown/lib/util/html-kind.d.ts.map +1 -0
  2175. package/dist/node_modules/mdast-util-to-markdown/lib/util/html-kind.js +63 -0
  2176. package/dist/node_modules/mdast-util-to-markdown/lib/util/indent-lines.d.ts +2 -0
  2177. package/dist/node_modules/mdast-util-to-markdown/lib/util/indent-lines.d.ts.map +1 -0
  2178. package/dist/node_modules/mdast-util-to-markdown/lib/util/indent-lines.js +40 -0
  2179. package/dist/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.d.ts +17 -0
  2180. package/dist/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.d.ts.map +1 -0
  2181. package/dist/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.js +52 -0
  2182. package/dist/node_modules/mdast-util-to-markdown/lib/util/safe.d.ts +29 -0
  2183. package/dist/node_modules/mdast-util-to-markdown/lib/util/safe.d.ts.map +1 -0
  2184. package/dist/node_modules/mdast-util-to-markdown/lib/util/safe.js +263 -0
  2185. package/dist/node_modules/mdast-util-to-markdown/lib/util/track.d.ts +2 -0
  2186. package/dist/node_modules/mdast-util-to-markdown/lib/util/track.d.ts.map +1 -0
  2187. package/dist/node_modules/mdast-util-to-markdown/lib/util/track.js +55 -0
  2188. package/dist/node_modules/mdast-util-to-markdown/license +22 -0
  2189. package/dist/node_modules/mdast-util-to-markdown/package.json +88 -0
  2190. package/dist/node_modules/mdast-util-to-markdown/readme.md +814 -0
  2191. package/dist/node_modules/mdast-util-to-string/index.d.ts +2 -0
  2192. package/dist/node_modules/mdast-util-to-string/index.js +5 -0
  2193. package/dist/node_modules/mdast-util-to-string/lib/index.d.ts +31 -0
  2194. package/dist/node_modules/mdast-util-to-string/lib/index.js +108 -0
  2195. package/dist/node_modules/mdast-util-to-string/license +22 -0
  2196. package/dist/node_modules/mdast-util-to-string/package.json +78 -0
  2197. package/dist/node_modules/mdast-util-to-string/readme.md +218 -0
  2198. package/dist/node_modules/micromark/dev/index.d.ts +82 -0
  2199. package/dist/node_modules/micromark/dev/index.d.ts.map +1 -0
  2200. package/dist/node_modules/micromark/dev/index.js +68 -0
  2201. package/dist/node_modules/micromark/dev/lib/compile.d.ts +16 -0
  2202. package/dist/node_modules/micromark/dev/lib/compile.d.ts.map +1 -0
  2203. package/dist/node_modules/micromark/dev/lib/compile.js +1162 -0
  2204. package/dist/node_modules/micromark/dev/lib/constructs.d.ts +73 -0
  2205. package/dist/node_modules/micromark/dev/lib/constructs.d.ts.map +1 -0
  2206. package/dist/node_modules/micromark/dev/lib/constructs.js +101 -0
  2207. package/dist/node_modules/micromark/dev/lib/create-tokenizer.d.ts +46 -0
  2208. package/dist/node_modules/micromark/dev/lib/create-tokenizer.d.ts.map +1 -0
  2209. package/dist/node_modules/micromark/dev/lib/create-tokenizer.js +718 -0
  2210. package/dist/node_modules/micromark/dev/lib/initialize/content.d.ts +4 -0
  2211. package/dist/node_modules/micromark/dev/lib/initialize/content.d.ts.map +1 -0
  2212. package/dist/node_modules/micromark/dev/lib/initialize/content.js +99 -0
  2213. package/dist/node_modules/micromark/dev/lib/initialize/document.d.ts +10 -0
  2214. package/dist/node_modules/micromark/dev/lib/initialize/document.d.ts.map +1 -0
  2215. package/dist/node_modules/micromark/dev/lib/initialize/document.js +449 -0
  2216. package/dist/node_modules/micromark/dev/lib/initialize/flow.d.ts +4 -0
  2217. package/dist/node_modules/micromark/dev/lib/initialize/flow.d.ts.map +1 -0
  2218. package/dist/node_modules/micromark/dev/lib/initialize/flow.js +86 -0
  2219. package/dist/node_modules/micromark/dev/lib/initialize/text.d.ts +8 -0
  2220. package/dist/node_modules/micromark/dev/lib/initialize/text.d.ts.map +1 -0
  2221. package/dist/node_modules/micromark/dev/lib/initialize/text.js +248 -0
  2222. package/dist/node_modules/micromark/dev/lib/parse.d.ts +10 -0
  2223. package/dist/node_modules/micromark/dev/lib/parse.d.ts.map +1 -0
  2224. package/dist/node_modules/micromark/dev/lib/parse.js +58 -0
  2225. package/dist/node_modules/micromark/dev/lib/postprocess.d.ts +9 -0
  2226. package/dist/node_modules/micromark/dev/lib/postprocess.d.ts.map +1 -0
  2227. package/dist/node_modules/micromark/dev/lib/postprocess.js +19 -0
  2228. package/dist/node_modules/micromark/dev/lib/preprocess.d.ts +13 -0
  2229. package/dist/node_modules/micromark/dev/lib/preprocess.d.ts.map +1 -0
  2230. package/dist/node_modules/micromark/dev/lib/preprocess.js +139 -0
  2231. package/dist/node_modules/micromark/dev/stream.d.ts +35 -0
  2232. package/dist/node_modules/micromark/dev/stream.d.ts.map +1 -0
  2233. package/dist/node_modules/micromark/dev/stream.js +270 -0
  2234. package/dist/node_modules/micromark/index.d.ts +82 -0
  2235. package/dist/node_modules/micromark/index.d.ts.map +1 -0
  2236. package/dist/node_modules/micromark/index.js +60 -0
  2237. package/dist/node_modules/micromark/lib/compile.d.ts +16 -0
  2238. package/dist/node_modules/micromark/lib/compile.d.ts.map +1 -0
  2239. package/dist/node_modules/micromark/lib/compile.js +1068 -0
  2240. package/dist/node_modules/micromark/lib/constructs.d.ts +73 -0
  2241. package/dist/node_modules/micromark/lib/constructs.d.ts.map +1 -0
  2242. package/dist/node_modules/micromark/lib/constructs.js +85 -0
  2243. package/dist/node_modules/micromark/lib/create-tokenizer.d.ts +46 -0
  2244. package/dist/node_modules/micromark/lib/create-tokenizer.d.ts.map +1 -0
  2245. package/dist/node_modules/micromark/lib/create-tokenizer.js +613 -0
  2246. package/dist/node_modules/micromark/lib/initialize/content.d.ts +4 -0
  2247. package/dist/node_modules/micromark/lib/initialize/content.d.ts.map +1 -0
  2248. package/dist/node_modules/micromark/lib/initialize/content.js +79 -0
  2249. package/dist/node_modules/micromark/lib/initialize/document.d.ts +10 -0
  2250. package/dist/node_modules/micromark/lib/initialize/document.d.ts.map +1 -0
  2251. package/dist/node_modules/micromark/lib/initialize/document.js +370 -0
  2252. package/dist/node_modules/micromark/lib/initialize/flow.d.ts +4 -0
  2253. package/dist/node_modules/micromark/lib/initialize/flow.d.ts.map +1 -0
  2254. package/dist/node_modules/micromark/lib/initialize/flow.js +58 -0
  2255. package/dist/node_modules/micromark/lib/initialize/text.d.ts +8 -0
  2256. package/dist/node_modules/micromark/lib/initialize/text.d.ts.map +1 -0
  2257. package/dist/node_modules/micromark/lib/initialize/text.js +216 -0
  2258. package/dist/node_modules/micromark/lib/parse.d.ts +10 -0
  2259. package/dist/node_modules/micromark/lib/parse.d.ts.map +1 -0
  2260. package/dist/node_modules/micromark/lib/parse.js +56 -0
  2261. package/dist/node_modules/micromark/lib/postprocess.d.ts +9 -0
  2262. package/dist/node_modules/micromark/lib/postprocess.d.ts.map +1 -0
  2263. package/dist/node_modules/micromark/lib/postprocess.js +18 -0
  2264. package/dist/node_modules/micromark/lib/preprocess.d.ts +13 -0
  2265. package/dist/node_modules/micromark/lib/preprocess.d.ts.map +1 -0
  2266. package/dist/node_modules/micromark/lib/preprocess.js +112 -0
  2267. package/dist/node_modules/micromark/license +22 -0
  2268. package/dist/node_modules/micromark/package.json +87 -0
  2269. package/dist/node_modules/micromark/readme.md +488 -0
  2270. package/dist/node_modules/micromark/stream.d.ts +35 -0
  2271. package/dist/node_modules/micromark/stream.d.ts.map +1 -0
  2272. package/dist/node_modules/micromark/stream.js +256 -0
  2273. package/dist/node_modules/micromark-core-commonmark/dev/index.d.ts +23 -0
  2274. package/dist/node_modules/micromark-core-commonmark/dev/index.d.ts.map +1 -0
  2275. package/dist/node_modules/micromark-core-commonmark/dev/index.js +22 -0
  2276. package/dist/node_modules/micromark-core-commonmark/dev/lib/attention.d.ts +4 -0
  2277. package/dist/node_modules/micromark-core-commonmark/dev/lib/attention.d.ts.map +1 -0
  2278. package/dist/node_modules/micromark-core-commonmark/dev/lib/attention.js +294 -0
  2279. package/dist/node_modules/micromark-core-commonmark/dev/lib/autolink.d.ts +4 -0
  2280. package/dist/node_modules/micromark-core-commonmark/dev/lib/autolink.d.ts.map +1 -0
  2281. package/dist/node_modules/micromark-core-commonmark/dev/lib/autolink.js +269 -0
  2282. package/dist/node_modules/micromark-core-commonmark/dev/lib/blank-line.d.ts +4 -0
  2283. package/dist/node_modules/micromark-core-commonmark/dev/lib/blank-line.d.ts.map +1 -0
  2284. package/dist/node_modules/micromark-core-commonmark/dev/lib/blank-line.js +62 -0
  2285. package/dist/node_modules/micromark-core-commonmark/dev/lib/block-quote.d.ts +4 -0
  2286. package/dist/node_modules/micromark-core-commonmark/dev/lib/block-quote.d.ts.map +1 -0
  2287. package/dist/node_modules/micromark-core-commonmark/dev/lib/block-quote.js +162 -0
  2288. package/dist/node_modules/micromark-core-commonmark/dev/lib/character-escape.d.ts +4 -0
  2289. package/dist/node_modules/micromark-core-commonmark/dev/lib/character-escape.d.ts.map +1 -0
  2290. package/dist/node_modules/micromark-core-commonmark/dev/lib/character-escape.js +69 -0
  2291. package/dist/node_modules/micromark-core-commonmark/dev/lib/character-reference.d.ts +4 -0
  2292. package/dist/node_modules/micromark-core-commonmark/dev/lib/character-reference.d.ts.map +1 -0
  2293. package/dist/node_modules/micromark-core-commonmark/dev/lib/character-reference.js +166 -0
  2294. package/dist/node_modules/micromark-core-commonmark/dev/lib/code-fenced.d.ts +4 -0
  2295. package/dist/node_modules/micromark-core-commonmark/dev/lib/code-fenced.d.ts.map +1 -0
  2296. package/dist/node_modules/micromark-core-commonmark/dev/lib/code-fenced.js +472 -0
  2297. package/dist/node_modules/micromark-core-commonmark/dev/lib/code-indented.d.ts +4 -0
  2298. package/dist/node_modules/micromark-core-commonmark/dev/lib/code-indented.d.ts.map +1 -0
  2299. package/dist/node_modules/micromark-core-commonmark/dev/lib/code-indented.js +178 -0
  2300. package/dist/node_modules/micromark-core-commonmark/dev/lib/code-text.d.ts +4 -0
  2301. package/dist/node_modules/micromark-core-commonmark/dev/lib/code-text.d.ts.map +1 -0
  2302. package/dist/node_modules/micromark-core-commonmark/dev/lib/code-text.js +257 -0
  2303. package/dist/node_modules/micromark-core-commonmark/dev/lib/content.d.ts +7 -0
  2304. package/dist/node_modules/micromark-core-commonmark/dev/lib/content.d.ts.map +1 -0
  2305. package/dist/node_modules/micromark-core-commonmark/dev/lib/content.js +185 -0
  2306. package/dist/node_modules/micromark-core-commonmark/dev/lib/definition.d.ts +4 -0
  2307. package/dist/node_modules/micromark-core-commonmark/dev/lib/definition.d.ts.map +1 -0
  2308. package/dist/node_modules/micromark-core-commonmark/dev/lib/definition.js +295 -0
  2309. package/dist/node_modules/micromark-core-commonmark/dev/lib/hard-break-escape.d.ts +4 -0
  2310. package/dist/node_modules/micromark-core-commonmark/dev/lib/hard-break-escape.d.ts.map +1 -0
  2311. package/dist/node_modules/micromark-core-commonmark/dev/lib/hard-break-escape.js +65 -0
  2312. package/dist/node_modules/micromark-core-commonmark/dev/lib/heading-atx.d.ts +4 -0
  2313. package/dist/node_modules/micromark-core-commonmark/dev/lib/heading-atx.d.ts.map +1 -0
  2314. package/dist/node_modules/micromark-core-commonmark/dev/lib/heading-atx.js +229 -0
  2315. package/dist/node_modules/micromark-core-commonmark/dev/lib/html-flow.d.ts +4 -0
  2316. package/dist/node_modules/micromark-core-commonmark/dev/lib/html-flow.d.ts.map +1 -0
  2317. package/dist/node_modules/micromark-core-commonmark/dev/lib/html-flow.js +938 -0
  2318. package/dist/node_modules/micromark-core-commonmark/dev/lib/html-text.d.ts +4 -0
  2319. package/dist/node_modules/micromark-core-commonmark/dev/lib/html-text.d.ts.map +1 -0
  2320. package/dist/node_modules/micromark-core-commonmark/dev/lib/html-text.js +783 -0
  2321. package/dist/node_modules/micromark-core-commonmark/dev/lib/label-end.d.ts +4 -0
  2322. package/dist/node_modules/micromark-core-commonmark/dev/lib/label-end.d.ts.map +1 -0
  2323. package/dist/node_modules/micromark-core-commonmark/dev/lib/label-end.js +658 -0
  2324. package/dist/node_modules/micromark-core-commonmark/dev/lib/label-start-image.d.ts +4 -0
  2325. package/dist/node_modules/micromark-core-commonmark/dev/lib/label-start-image.d.ts.map +1 -0
  2326. package/dist/node_modules/micromark-core-commonmark/dev/lib/label-start-image.js +119 -0
  2327. package/dist/node_modules/micromark-core-commonmark/dev/lib/label-start-link.d.ts +4 -0
  2328. package/dist/node_modules/micromark-core-commonmark/dev/lib/label-start-link.d.ts.map +1 -0
  2329. package/dist/node_modules/micromark-core-commonmark/dev/lib/label-start-link.js +71 -0
  2330. package/dist/node_modules/micromark-core-commonmark/dev/lib/line-ending.d.ts +4 -0
  2331. package/dist/node_modules/micromark-core-commonmark/dev/lib/line-ending.d.ts.map +1 -0
  2332. package/dist/node_modules/micromark-core-commonmark/dev/lib/line-ending.js +34 -0
  2333. package/dist/node_modules/micromark-core-commonmark/dev/lib/list.d.ts +4 -0
  2334. package/dist/node_modules/micromark-core-commonmark/dev/lib/list.d.ts.map +1 -0
  2335. package/dist/node_modules/micromark-core-commonmark/dev/lib/list.js +306 -0
  2336. package/dist/node_modules/micromark-core-commonmark/dev/lib/partial-non-lazy-continuation.d.ts +4 -0
  2337. package/dist/node_modules/micromark-core-commonmark/dev/lib/partial-non-lazy-continuation.d.ts.map +1 -0
  2338. package/dist/node_modules/micromark-core-commonmark/dev/lib/partial-non-lazy-continuation.js +67 -0
  2339. package/dist/node_modules/micromark-core-commonmark/dev/lib/setext-underline.d.ts +4 -0
  2340. package/dist/node_modules/micromark-core-commonmark/dev/lib/setext-underline.d.ts.map +1 -0
  2341. package/dist/node_modules/micromark-core-commonmark/dev/lib/setext-underline.js +213 -0
  2342. package/dist/node_modules/micromark-core-commonmark/dev/lib/thematic-break.d.ts +4 -0
  2343. package/dist/node_modules/micromark-core-commonmark/dev/lib/thematic-break.d.ts.map +1 -0
  2344. package/dist/node_modules/micromark-core-commonmark/dev/lib/thematic-break.js +120 -0
  2345. package/dist/node_modules/micromark-core-commonmark/index.d.ts +23 -0
  2346. package/dist/node_modules/micromark-core-commonmark/index.d.ts.map +1 -0
  2347. package/dist/node_modules/micromark-core-commonmark/index.js +22 -0
  2348. package/dist/node_modules/micromark-core-commonmark/lib/attention.d.ts +4 -0
  2349. package/dist/node_modules/micromark-core-commonmark/lib/attention.d.ts.map +1 -0
  2350. package/dist/node_modules/micromark-core-commonmark/lib/attention.js +231 -0
  2351. package/dist/node_modules/micromark-core-commonmark/lib/autolink.d.ts +4 -0
  2352. package/dist/node_modules/micromark-core-commonmark/lib/autolink.d.ts.map +1 -0
  2353. package/dist/node_modules/micromark-core-commonmark/lib/autolink.js +233 -0
  2354. package/dist/node_modules/micromark-core-commonmark/lib/blank-line.d.ts +4 -0
  2355. package/dist/node_modules/micromark-core-commonmark/lib/blank-line.d.ts.map +1 -0
  2356. package/dist/node_modules/micromark-core-commonmark/lib/blank-line.js +61 -0
  2357. package/dist/node_modules/micromark-core-commonmark/lib/block-quote.d.ts +4 -0
  2358. package/dist/node_modules/micromark-core-commonmark/lib/block-quote.d.ts.map +1 -0
  2359. package/dist/node_modules/micromark-core-commonmark/lib/block-quote.js +143 -0
  2360. package/dist/node_modules/micromark-core-commonmark/lib/character-escape.d.ts +4 -0
  2361. package/dist/node_modules/micromark-core-commonmark/lib/character-escape.d.ts.map +1 -0
  2362. package/dist/node_modules/micromark-core-commonmark/lib/character-escape.js +64 -0
  2363. package/dist/node_modules/micromark-core-commonmark/lib/character-reference.d.ts +4 -0
  2364. package/dist/node_modules/micromark-core-commonmark/lib/character-reference.d.ts.map +1 -0
  2365. package/dist/node_modules/micromark-core-commonmark/lib/character-reference.js +149 -0
  2366. package/dist/node_modules/micromark-core-commonmark/lib/code-fenced.d.ts +4 -0
  2367. package/dist/node_modules/micromark-core-commonmark/lib/code-fenced.d.ts.map +1 -0
  2368. package/dist/node_modules/micromark-core-commonmark/lib/code-fenced.js +422 -0
  2369. package/dist/node_modules/micromark-core-commonmark/lib/code-indented.d.ts +4 -0
  2370. package/dist/node_modules/micromark-core-commonmark/lib/code-indented.d.ts.map +1 -0
  2371. package/dist/node_modules/micromark-core-commonmark/lib/code-indented.js +159 -0
  2372. package/dist/node_modules/micromark-core-commonmark/lib/code-text.d.ts +4 -0
  2373. package/dist/node_modules/micromark-core-commonmark/lib/code-text.d.ts.map +1 -0
  2374. package/dist/node_modules/micromark-core-commonmark/lib/code-text.js +225 -0
  2375. package/dist/node_modules/micromark-core-commonmark/lib/content.d.ts +7 -0
  2376. package/dist/node_modules/micromark-core-commonmark/lib/content.d.ts.map +1 -0
  2377. package/dist/node_modules/micromark-core-commonmark/lib/content.js +163 -0
  2378. package/dist/node_modules/micromark-core-commonmark/lib/definition.d.ts +4 -0
  2379. package/dist/node_modules/micromark-core-commonmark/lib/definition.d.ts.map +1 -0
  2380. package/dist/node_modules/micromark-core-commonmark/lib/definition.js +254 -0
  2381. package/dist/node_modules/micromark-core-commonmark/lib/hard-break-escape.d.ts +4 -0
  2382. package/dist/node_modules/micromark-core-commonmark/lib/hard-break-escape.d.ts.map +1 -0
  2383. package/dist/node_modules/micromark-core-commonmark/lib/hard-break-escape.js +60 -0
  2384. package/dist/node_modules/micromark-core-commonmark/lib/heading-atx.d.ts +4 -0
  2385. package/dist/node_modules/micromark-core-commonmark/lib/heading-atx.d.ts.map +1 -0
  2386. package/dist/node_modules/micromark-core-commonmark/lib/heading-atx.js +191 -0
  2387. package/dist/node_modules/micromark-core-commonmark/lib/html-flow.d.ts +4 -0
  2388. package/dist/node_modules/micromark-core-commonmark/lib/html-flow.d.ts.map +1 -0
  2389. package/dist/node_modules/micromark-core-commonmark/lib/html-flow.js +827 -0
  2390. package/dist/node_modules/micromark-core-commonmark/lib/html-text.d.ts +4 -0
  2391. package/dist/node_modules/micromark-core-commonmark/lib/html-text.d.ts.map +1 -0
  2392. package/dist/node_modules/micromark-core-commonmark/lib/html-text.js +678 -0
  2393. package/dist/node_modules/micromark-core-commonmark/lib/label-end.d.ts +4 -0
  2394. package/dist/node_modules/micromark-core-commonmark/lib/label-end.d.ts.map +1 -0
  2395. package/dist/node_modules/micromark-core-commonmark/lib/label-end.js +561 -0
  2396. package/dist/node_modules/micromark-core-commonmark/lib/label-start-image.d.ts +4 -0
  2397. package/dist/node_modules/micromark-core-commonmark/lib/label-start-image.d.ts.map +1 -0
  2398. package/dist/node_modules/micromark-core-commonmark/lib/label-start-image.js +110 -0
  2399. package/dist/node_modules/micromark-core-commonmark/lib/label-start-link.d.ts +4 -0
  2400. package/dist/node_modules/micromark-core-commonmark/lib/label-start-link.d.ts.map +1 -0
  2401. package/dist/node_modules/micromark-core-commonmark/lib/label-start-link.js +63 -0
  2402. package/dist/node_modules/micromark-core-commonmark/lib/line-ending.d.ts +4 -0
  2403. package/dist/node_modules/micromark-core-commonmark/lib/line-ending.d.ts.map +1 -0
  2404. package/dist/node_modules/micromark-core-commonmark/lib/line-ending.js +33 -0
  2405. package/dist/node_modules/micromark-core-commonmark/lib/list.d.ts +4 -0
  2406. package/dist/node_modules/micromark-core-commonmark/lib/list.d.ts.map +1 -0
  2407. package/dist/node_modules/micromark-core-commonmark/lib/list.js +213 -0
  2408. package/dist/node_modules/micromark-core-commonmark/lib/partial-non-lazy-continuation.d.ts +4 -0
  2409. package/dist/node_modules/micromark-core-commonmark/lib/partial-non-lazy-continuation.d.ts.map +1 -0
  2410. package/dist/node_modules/micromark-core-commonmark/lib/partial-non-lazy-continuation.js +61 -0
  2411. package/dist/node_modules/micromark-core-commonmark/lib/setext-underline.d.ts +4 -0
  2412. package/dist/node_modules/micromark-core-commonmark/lib/setext-underline.d.ts.map +1 -0
  2413. package/dist/node_modules/micromark-core-commonmark/lib/setext-underline.js +187 -0
  2414. package/dist/node_modules/micromark-core-commonmark/lib/thematic-break.d.ts +4 -0
  2415. package/dist/node_modules/micromark-core-commonmark/lib/thematic-break.d.ts.map +1 -0
  2416. package/dist/node_modules/micromark-core-commonmark/lib/thematic-break.js +102 -0
  2417. package/dist/node_modules/micromark-core-commonmark/license +22 -0
  2418. package/dist/node_modules/micromark-core-commonmark/package.json +62 -0
  2419. package/dist/node_modules/micromark-core-commonmark/readme.md +171 -0
  2420. package/dist/node_modules/micromark-extension-gfm/index.d.ts +28 -0
  2421. package/dist/node_modules/micromark-extension-gfm/index.js +69 -0
  2422. package/dist/node_modules/micromark-extension-gfm/license +22 -0
  2423. package/dist/node_modules/micromark-extension-gfm/package.json +107 -0
  2424. package/dist/node_modules/micromark-extension-gfm/readme.md +433 -0
  2425. package/dist/node_modules/micromark-extension-gfm-autolink-literal/dev/index.d.ts +24 -0
  2426. package/dist/node_modules/micromark-extension-gfm-autolink-literal/dev/index.js +2 -0
  2427. package/dist/node_modules/micromark-extension-gfm-autolink-literal/dev/lib/html.d.ts +10 -0
  2428. package/dist/node_modules/micromark-extension-gfm-autolink-literal/dev/lib/html.js +56 -0
  2429. package/dist/node_modules/micromark-extension-gfm-autolink-literal/dev/lib/syntax.d.ts +10 -0
  2430. package/dist/node_modules/micromark-extension-gfm-autolink-literal/dev/lib/syntax.js +983 -0
  2431. package/dist/node_modules/micromark-extension-gfm-autolink-literal/index.d.ts +24 -0
  2432. package/dist/node_modules/micromark-extension-gfm-autolink-literal/index.js +2 -0
  2433. package/dist/node_modules/micromark-extension-gfm-autolink-literal/lib/html.d.ts +10 -0
  2434. package/dist/node_modules/micromark-extension-gfm-autolink-literal/lib/html.js +60 -0
  2435. package/dist/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.d.ts +10 -0
  2436. package/dist/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.js +854 -0
  2437. package/dist/node_modules/micromark-extension-gfm-autolink-literal/license +22 -0
  2438. package/dist/node_modules/micromark-extension-gfm-autolink-literal/package.json +116 -0
  2439. package/dist/node_modules/micromark-extension-gfm-autolink-literal/readme.md +422 -0
  2440. package/dist/node_modules/micromark-extension-gfm-footnote/dev/index.d.ts +164 -0
  2441. package/dist/node_modules/micromark-extension-gfm-footnote/dev/index.js +3 -0
  2442. package/dist/node_modules/micromark-extension-gfm-footnote/dev/lib/html.d.ts +25 -0
  2443. package/dist/node_modules/micromark-extension-gfm-footnote/dev/lib/html.js +226 -0
  2444. package/dist/node_modules/micromark-extension-gfm-footnote/dev/lib/syntax.d.ts +9 -0
  2445. package/dist/node_modules/micromark-extension-gfm-footnote/dev/lib/syntax.js +558 -0
  2446. package/dist/node_modules/micromark-extension-gfm-footnote/index.d.ts +164 -0
  2447. package/dist/node_modules/micromark-extension-gfm-footnote/index.js +3 -0
  2448. package/dist/node_modules/micromark-extension-gfm-footnote/lib/html.d.ts +25 -0
  2449. package/dist/node_modules/micromark-extension-gfm-footnote/lib/html.js +154 -0
  2450. package/dist/node_modules/micromark-extension-gfm-footnote/lib/syntax.d.ts +9 -0
  2451. package/dist/node_modules/micromark-extension-gfm-footnote/lib/syntax.js +485 -0
  2452. package/dist/node_modules/micromark-extension-gfm-footnote/license +22 -0
  2453. package/dist/node_modules/micromark-extension-gfm-footnote/package.json +132 -0
  2454. package/dist/node_modules/micromark-extension-gfm-footnote/readme.md +656 -0
  2455. package/dist/node_modules/micromark-extension-gfm-strikethrough/dev/index.d.ts +30 -0
  2456. package/dist/node_modules/micromark-extension-gfm-strikethrough/dev/index.js +3 -0
  2457. package/dist/node_modules/micromark-extension-gfm-strikethrough/dev/lib/html.d.ts +13 -0
  2458. package/dist/node_modules/micromark-extension-gfm-strikethrough/dev/lib/html.js +26 -0
  2459. package/dist/node_modules/micromark-extension-gfm-strikethrough/dev/lib/syntax.d.ts +12 -0
  2460. package/dist/node_modules/micromark-extension-gfm-strikethrough/dev/lib/syntax.js +183 -0
  2461. package/dist/node_modules/micromark-extension-gfm-strikethrough/index.d.ts +24 -0
  2462. package/dist/node_modules/micromark-extension-gfm-strikethrough/index.js +3 -0
  2463. package/dist/node_modules/micromark-extension-gfm-strikethrough/lib/html.d.ts +13 -0
  2464. package/dist/node_modules/micromark-extension-gfm-strikethrough/lib/html.js +26 -0
  2465. package/dist/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.d.ts +12 -0
  2466. package/dist/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.js +142 -0
  2467. package/dist/node_modules/micromark-extension-gfm-strikethrough/license +22 -0
  2468. package/dist/node_modules/micromark-extension-gfm-strikethrough/package.json +129 -0
  2469. package/dist/node_modules/micromark-extension-gfm-strikethrough/readme.md +304 -0
  2470. package/dist/node_modules/micromark-extension-gfm-table/dev/index.d.ts +55 -0
  2471. package/dist/node_modules/micromark-extension-gfm-table/dev/index.js +2 -0
  2472. package/dist/node_modules/micromark-extension-gfm-table/dev/lib/edit-map.d.ts +51 -0
  2473. package/dist/node_modules/micromark-extension-gfm-table/dev/lib/edit-map.d.ts.map +1 -0
  2474. package/dist/node_modules/micromark-extension-gfm-table/dev/lib/edit-map.js +231 -0
  2475. package/dist/node_modules/micromark-extension-gfm-table/dev/lib/html.d.ts +11 -0
  2476. package/dist/node_modules/micromark-extension-gfm-table/dev/lib/html.d.ts.map +1 -0
  2477. package/dist/node_modules/micromark-extension-gfm-table/dev/lib/html.js +153 -0
  2478. package/dist/node_modules/micromark-extension-gfm-table/dev/lib/infer.d.ts +14 -0
  2479. package/dist/node_modules/micromark-extension-gfm-table/dev/lib/infer.d.ts.map +1 -0
  2480. package/dist/node_modules/micromark-extension-gfm-table/dev/lib/infer.js +64 -0
  2481. package/dist/node_modules/micromark-extension-gfm-table/dev/lib/syntax.d.ts +18 -0
  2482. package/dist/node_modules/micromark-extension-gfm-table/dev/lib/syntax.d.ts.map +1 -0
  2483. package/dist/node_modules/micromark-extension-gfm-table/dev/lib/syntax.js +964 -0
  2484. package/dist/node_modules/micromark-extension-gfm-table/index.d.ts +55 -0
  2485. package/dist/node_modules/micromark-extension-gfm-table/index.js +2 -0
  2486. package/dist/node_modules/micromark-extension-gfm-table/lib/edit-map.d.ts +51 -0
  2487. package/dist/node_modules/micromark-extension-gfm-table/lib/edit-map.d.ts.map +1 -0
  2488. package/dist/node_modules/micromark-extension-gfm-table/lib/edit-map.js +222 -0
  2489. package/dist/node_modules/micromark-extension-gfm-table/lib/html.d.ts +11 -0
  2490. package/dist/node_modules/micromark-extension-gfm-table/lib/html.d.ts.map +1 -0
  2491. package/dist/node_modules/micromark-extension-gfm-table/lib/html.js +135 -0
  2492. package/dist/node_modules/micromark-extension-gfm-table/lib/infer.d.ts +14 -0
  2493. package/dist/node_modules/micromark-extension-gfm-table/lib/infer.d.ts.map +1 -0
  2494. package/dist/node_modules/micromark-extension-gfm-table/lib/infer.js +52 -0
  2495. package/dist/node_modules/micromark-extension-gfm-table/lib/syntax.d.ts +18 -0
  2496. package/dist/node_modules/micromark-extension-gfm-table/lib/syntax.d.ts.map +1 -0
  2497. package/dist/node_modules/micromark-extension-gfm-table/lib/syntax.js +846 -0
  2498. package/dist/node_modules/micromark-extension-gfm-table/license +22 -0
  2499. package/dist/node_modules/micromark-extension-gfm-table/package.json +86 -0
  2500. package/dist/node_modules/micromark-extension-gfm-table/readme.md +515 -0
  2501. package/dist/node_modules/micromark-extension-gfm-tagfilter/index.d.ts +1 -0
  2502. package/dist/node_modules/micromark-extension-gfm-tagfilter/index.js +1 -0
  2503. package/dist/node_modules/micromark-extension-gfm-tagfilter/lib/index.d.ts +12 -0
  2504. package/dist/node_modules/micromark-extension-gfm-tagfilter/lib/index.js +51 -0
  2505. package/dist/node_modules/micromark-extension-gfm-tagfilter/license +22 -0
  2506. package/dist/node_modules/micromark-extension-gfm-tagfilter/package.json +82 -0
  2507. package/dist/node_modules/micromark-extension-gfm-tagfilter/readme.md +237 -0
  2508. package/dist/node_modules/micromark-extension-gfm-task-list-item/dev/index.d.ts +17 -0
  2509. package/dist/node_modules/micromark-extension-gfm-task-list-item/dev/index.js +2 -0
  2510. package/dist/node_modules/micromark-extension-gfm-task-list-item/dev/lib/html.d.ts +13 -0
  2511. package/dist/node_modules/micromark-extension-gfm-task-list-item/dev/lib/html.js +29 -0
  2512. package/dist/node_modules/micromark-extension-gfm-task-list-item/dev/lib/syntax.d.ts +10 -0
  2513. package/dist/node_modules/micromark-extension-gfm-task-list-item/dev/lib/syntax.js +166 -0
  2514. package/dist/node_modules/micromark-extension-gfm-task-list-item/index.d.ts +17 -0
  2515. package/dist/node_modules/micromark-extension-gfm-task-list-item/index.js +2 -0
  2516. package/dist/node_modules/micromark-extension-gfm-task-list-item/lib/html.d.ts +13 -0
  2517. package/dist/node_modules/micromark-extension-gfm-task-list-item/lib/html.js +29 -0
  2518. package/dist/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.d.ts +10 -0
  2519. package/dist/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.js +158 -0
  2520. package/dist/node_modules/micromark-extension-gfm-task-list-item/license +22 -0
  2521. package/dist/node_modules/micromark-extension-gfm-task-list-item/package.json +131 -0
  2522. package/dist/node_modules/micromark-extension-gfm-task-list-item/readme.md +305 -0
  2523. package/dist/node_modules/micromark-factory-destination/dev/index.d.ts +42 -0
  2524. package/dist/node_modules/micromark-factory-destination/dev/index.d.ts.map +1 -0
  2525. package/dist/node_modules/micromark-factory-destination/dev/index.js +255 -0
  2526. package/dist/node_modules/micromark-factory-destination/index.d.ts +42 -0
  2527. package/dist/node_modules/micromark-factory-destination/index.d.ts.map +1 -0
  2528. package/dist/node_modules/micromark-factory-destination/index.js +206 -0
  2529. package/dist/node_modules/micromark-factory-destination/license +22 -0
  2530. package/dist/node_modules/micromark-factory-destination/package.json +57 -0
  2531. package/dist/node_modules/micromark-factory-destination/readme.md +234 -0
  2532. package/dist/node_modules/micromark-factory-label/dev/index.d.ts +37 -0
  2533. package/dist/node_modules/micromark-factory-label/dev/index.d.ts.map +1 -0
  2534. package/dist/node_modules/micromark-factory-label/dev/index.js +172 -0
  2535. package/dist/node_modules/micromark-factory-label/index.d.ts +37 -0
  2536. package/dist/node_modules/micromark-factory-label/index.d.ts.map +1 -0
  2537. package/dist/node_modules/micromark-factory-label/index.js +148 -0
  2538. package/dist/node_modules/micromark-factory-label/license +22 -0
  2539. package/dist/node_modules/micromark-factory-label/package.json +60 -0
  2540. package/dist/node_modules/micromark-factory-label/readme.md +224 -0
  2541. package/dist/node_modules/micromark-factory-space/dev/index.d.ts +60 -0
  2542. package/dist/node_modules/micromark-factory-space/dev/index.d.ts.map +1 -0
  2543. package/dist/node_modules/micromark-factory-space/dev/index.js +122 -0
  2544. package/dist/node_modules/micromark-factory-space/index.d.ts +60 -0
  2545. package/dist/node_modules/micromark-factory-space/index.d.ts.map +1 -0
  2546. package/dist/node_modules/micromark-factory-space/index.js +116 -0
  2547. package/dist/node_modules/micromark-factory-space/license +22 -0
  2548. package/dist/node_modules/micromark-factory-space/package.json +46 -0
  2549. package/dist/node_modules/micromark-factory-space/readme.md +225 -0
  2550. package/dist/node_modules/micromark-factory-title/dev/index.d.ts +36 -0
  2551. package/dist/node_modules/micromark-factory-title/dev/index.d.ts.map +1 -0
  2552. package/dist/node_modules/micromark-factory-title/dev/index.js +169 -0
  2553. package/dist/node_modules/micromark-factory-title/index.d.ts +36 -0
  2554. package/dist/node_modules/micromark-factory-title/index.d.ts.map +1 -0
  2555. package/dist/node_modules/micromark-factory-title/index.js +158 -0
  2556. package/dist/node_modules/micromark-factory-title/license +22 -0
  2557. package/dist/node_modules/micromark-factory-title/package.json +58 -0
  2558. package/dist/node_modules/micromark-factory-title/readme.md +229 -0
  2559. package/dist/node_modules/micromark-factory-whitespace/dev/index.d.ts +22 -0
  2560. package/dist/node_modules/micromark-factory-whitespace/dev/index.d.ts.map +1 -0
  2561. package/dist/node_modules/micromark-factory-whitespace/dev/index.js +53 -0
  2562. package/dist/node_modules/micromark-factory-whitespace/index.d.ts +22 -0
  2563. package/dist/node_modules/micromark-factory-whitespace/index.d.ts.map +1 -0
  2564. package/dist/node_modules/micromark-factory-whitespace/index.js +44 -0
  2565. package/dist/node_modules/micromark-factory-whitespace/license +22 -0
  2566. package/dist/node_modules/micromark-factory-whitespace/package.json +57 -0
  2567. package/dist/node_modules/micromark-factory-whitespace/readme.md +205 -0
  2568. package/dist/node_modules/micromark-util-character/dev/index.d.ts +195 -0
  2569. package/dist/node_modules/micromark-util-character/dev/index.d.ts.map +1 -0
  2570. package/dist/node_modules/micromark-util-character/dev/index.js +252 -0
  2571. package/dist/node_modules/micromark-util-character/index.d.ts +195 -0
  2572. package/dist/node_modules/micromark-util-character/index.d.ts.map +1 -0
  2573. package/dist/node_modules/micromark-util-character/index.js +246 -0
  2574. package/dist/node_modules/micromark-util-character/license +22 -0
  2575. package/dist/node_modules/micromark-util-character/package.json +57 -0
  2576. package/dist/node_modules/micromark-util-character/readme.md +446 -0
  2577. package/dist/node_modules/micromark-util-chunked/dev/index.d.ts +41 -0
  2578. package/dist/node_modules/micromark-util-chunked/dev/index.d.ts.map +1 -0
  2579. package/dist/node_modules/micromark-util-chunked/dev/index.js +89 -0
  2580. package/dist/node_modules/micromark-util-chunked/index.d.ts +41 -0
  2581. package/dist/node_modules/micromark-util-chunked/index.d.ts.map +1 -0
  2582. package/dist/node_modules/micromark-util-chunked/index.js +81 -0
  2583. package/dist/node_modules/micromark-util-chunked/license +22 -0
  2584. package/dist/node_modules/micromark-util-chunked/package.json +57 -0
  2585. package/dist/node_modules/micromark-util-chunked/readme.md +219 -0
  2586. package/dist/node_modules/micromark-util-classify-character/dev/index.d.ts +18 -0
  2587. package/dist/node_modules/micromark-util-classify-character/dev/index.d.ts.map +1 -0
  2588. package/dist/node_modules/micromark-util-classify-character/dev/index.js +38 -0
  2589. package/dist/node_modules/micromark-util-classify-character/index.d.ts +18 -0
  2590. package/dist/node_modules/micromark-util-classify-character/index.d.ts.map +1 -0
  2591. package/dist/node_modules/micromark-util-classify-character/index.js +27 -0
  2592. package/dist/node_modules/micromark-util-classify-character/license +22 -0
  2593. package/dist/node_modules/micromark-util-classify-character/package.json +59 -0
  2594. package/dist/node_modules/micromark-util-classify-character/readme.md +205 -0
  2595. package/dist/node_modules/micromark-util-combine-extensions/index.d.ts +22 -0
  2596. package/dist/node_modules/micromark-util-combine-extensions/index.d.ts.map +1 -0
  2597. package/dist/node_modules/micromark-util-combine-extensions/index.js +143 -0
  2598. package/dist/node_modules/micromark-util-combine-extensions/license +22 -0
  2599. package/dist/node_modules/micromark-util-combine-extensions/package.json +52 -0
  2600. package/dist/node_modules/micromark-util-combine-extensions/readme.md +201 -0
  2601. package/dist/node_modules/micromark-util-decode-numeric-character-reference/dev/index.d.ts +16 -0
  2602. package/dist/node_modules/micromark-util-decode-numeric-character-reference/dev/index.d.ts.map +1 -0
  2603. package/dist/node_modules/micromark-util-decode-numeric-character-reference/dev/index.js +42 -0
  2604. package/dist/node_modules/micromark-util-decode-numeric-character-reference/index.d.ts +16 -0
  2605. package/dist/node_modules/micromark-util-decode-numeric-character-reference/index.d.ts.map +1 -0
  2606. package/dist/node_modules/micromark-util-decode-numeric-character-reference/index.js +32 -0
  2607. package/dist/node_modules/micromark-util-decode-numeric-character-reference/license +22 -0
  2608. package/dist/node_modules/micromark-util-decode-numeric-character-reference/package.json +59 -0
  2609. package/dist/node_modules/micromark-util-decode-numeric-character-reference/readme.md +184 -0
  2610. package/dist/node_modules/micromark-util-decode-string/dev/index.d.ts +14 -0
  2611. package/dist/node_modules/micromark-util-decode-string/dev/index.d.ts.map +1 -0
  2612. package/dist/node_modules/micromark-util-decode-string/dev/index.js +53 -0
  2613. package/dist/node_modules/micromark-util-decode-string/index.d.ts +14 -0
  2614. package/dist/node_modules/micromark-util-decode-string/index.d.ts.map +1 -0
  2615. package/dist/node_modules/micromark-util-decode-string/index.js +45 -0
  2616. package/dist/node_modules/micromark-util-decode-string/license +22 -0
  2617. package/dist/node_modules/micromark-util-decode-string/package.json +63 -0
  2618. package/dist/node_modules/micromark-util-decode-string/readme.md +179 -0
  2619. package/dist/node_modules/micromark-util-edit-map/dev/index.d.ts +78 -0
  2620. package/dist/node_modules/micromark-util-edit-map/dev/index.d.ts.map +1 -0
  2621. package/dist/node_modules/micromark-util-edit-map/dev/index.js +237 -0
  2622. package/dist/node_modules/micromark-util-edit-map/index.d.ts +78 -0
  2623. package/dist/node_modules/micromark-util-edit-map/index.d.ts.map +1 -0
  2624. package/dist/node_modules/micromark-util-edit-map/index.js +225 -0
  2625. package/dist/node_modules/micromark-util-edit-map/license +22 -0
  2626. package/dist/node_modules/micromark-util-edit-map/package.json +48 -0
  2627. package/dist/node_modules/micromark-util-edit-map/readme.md +234 -0
  2628. package/dist/node_modules/micromark-util-encode/index.d.ts +14 -0
  2629. package/dist/node_modules/micromark-util-encode/index.d.ts.map +1 -0
  2630. package/dist/node_modules/micromark-util-encode/index.js +33 -0
  2631. package/dist/node_modules/micromark-util-encode/license +22 -0
  2632. package/dist/node_modules/micromark-util-encode/package.json +47 -0
  2633. package/dist/node_modules/micromark-util-encode/readme.md +176 -0
  2634. package/dist/node_modules/micromark-util-html-tag-name/index.d.ts +30 -0
  2635. package/dist/node_modules/micromark-util-html-tag-name/index.d.ts.map +1 -0
  2636. package/dist/node_modules/micromark-util-html-tag-name/index.js +93 -0
  2637. package/dist/node_modules/micromark-util-html-tag-name/license +22 -0
  2638. package/dist/node_modules/micromark-util-html-tag-name/package.json +47 -0
  2639. package/dist/node_modules/micromark-util-html-tag-name/readme.md +193 -0
  2640. package/dist/node_modules/micromark-util-normalize-identifier/dev/index.d.ts +21 -0
  2641. package/dist/node_modules/micromark-util-normalize-identifier/dev/index.d.ts.map +1 -0
  2642. package/dist/node_modules/micromark-util-normalize-identifier/dev/index.js +38 -0
  2643. package/dist/node_modules/micromark-util-normalize-identifier/index.d.ts +21 -0
  2644. package/dist/node_modules/micromark-util-normalize-identifier/index.d.ts.map +1 -0
  2645. package/dist/node_modules/micromark-util-normalize-identifier/index.js +33 -0
  2646. package/dist/node_modules/micromark-util-normalize-identifier/license +22 -0
  2647. package/dist/node_modules/micromark-util-normalize-identifier/package.json +58 -0
  2648. package/dist/node_modules/micromark-util-normalize-identifier/readme.md +187 -0
  2649. package/dist/node_modules/micromark-util-resolve-all/index.d.ts +22 -0
  2650. package/dist/node_modules/micromark-util-resolve-all/index.d.ts.map +1 -0
  2651. package/dist/node_modules/micromark-util-resolve-all/index.js +32 -0
  2652. package/dist/node_modules/micromark-util-resolve-all/license +22 -0
  2653. package/dist/node_modules/micromark-util-resolve-all/package.json +48 -0
  2654. package/dist/node_modules/micromark-util-resolve-all/readme.md +238 -0
  2655. package/dist/node_modules/micromark-util-sanitize-uri/dev/index.d.ts +36 -0
  2656. package/dist/node_modules/micromark-util-sanitize-uri/dev/index.d.ts.map +1 -0
  2657. package/dist/node_modules/micromark-util-sanitize-uri/dev/index.js +124 -0
  2658. package/dist/node_modules/micromark-util-sanitize-uri/index.d.ts +36 -0
  2659. package/dist/node_modules/micromark-util-sanitize-uri/index.d.ts.map +1 -0
  2660. package/dist/node_modules/micromark-util-sanitize-uri/index.js +107 -0
  2661. package/dist/node_modules/micromark-util-sanitize-uri/license +22 -0
  2662. package/dist/node_modules/micromark-util-sanitize-uri/package.json +59 -0
  2663. package/dist/node_modules/micromark-util-sanitize-uri/readme.md +214 -0
  2664. package/dist/node_modules/micromark-util-subtokenize/dev/index.d.ts +12 -0
  2665. package/dist/node_modules/micromark-util-subtokenize/dev/index.d.ts.map +1 -0
  2666. package/dist/node_modules/micromark-util-subtokenize/dev/index.js +284 -0
  2667. package/dist/node_modules/micromark-util-subtokenize/dev/lib/splice-buffer.d.ts +161 -0
  2668. package/dist/node_modules/micromark-util-subtokenize/dev/lib/splice-buffer.d.ts.map +1 -0
  2669. package/dist/node_modules/micromark-util-subtokenize/dev/lib/splice-buffer.js +288 -0
  2670. package/dist/node_modules/micromark-util-subtokenize/index.d.ts +12 -0
  2671. package/dist/node_modules/micromark-util-subtokenize/index.d.ts.map +1 -0
  2672. package/dist/node_modules/micromark-util-subtokenize/index.js +228 -0
  2673. package/dist/node_modules/micromark-util-subtokenize/lib/splice-buffer.d.ts +161 -0
  2674. package/dist/node_modules/micromark-util-subtokenize/lib/splice-buffer.d.ts.map +1 -0
  2675. package/dist/node_modules/micromark-util-subtokenize/lib/splice-buffer.js +251 -0
  2676. package/dist/node_modules/micromark-util-subtokenize/license +22 -0
  2677. package/dist/node_modules/micromark-util-subtokenize/package.json +60 -0
  2678. package/dist/node_modules/micromark-util-subtokenize/readme.md +181 -0
  2679. package/dist/node_modules/micromark-util-symbol/lib/codes.d.ts +139 -0
  2680. package/dist/node_modules/micromark-util-symbol/lib/codes.d.ts.map +1 -0
  2681. package/dist/node_modules/micromark-util-symbol/lib/codes.js +158 -0
  2682. package/dist/node_modules/micromark-util-symbol/lib/constants.d.ts +37 -0
  2683. package/dist/node_modules/micromark-util-symbol/lib/constants.d.ts.map +1 -0
  2684. package/dist/node_modules/micromark-util-symbol/lib/constants.js +44 -0
  2685. package/dist/node_modules/micromark-util-symbol/lib/default.d.ts +5 -0
  2686. package/dist/node_modules/micromark-util-symbol/lib/default.d.ts.map +1 -0
  2687. package/dist/node_modules/micromark-util-symbol/lib/default.js +4 -0
  2688. package/dist/node_modules/micromark-util-symbol/lib/types.d.ts +106 -0
  2689. package/dist/node_modules/micromark-util-symbol/lib/types.d.ts.map +1 -0
  2690. package/dist/node_modules/micromark-util-symbol/lib/types.js +453 -0
  2691. package/dist/node_modules/micromark-util-symbol/lib/values.d.ts +102 -0
  2692. package/dist/node_modules/micromark-util-symbol/lib/values.d.ts.map +1 -0
  2693. package/dist/node_modules/micromark-util-symbol/lib/values.js +109 -0
  2694. package/dist/node_modules/micromark-util-symbol/license +22 -0
  2695. package/dist/node_modules/micromark-util-symbol/package.json +43 -0
  2696. package/dist/node_modules/micromark-util-symbol/readme.md +168 -0
  2697. package/dist/node_modules/micromark-util-types/index.d.ts +1315 -0
  2698. package/dist/node_modules/micromark-util-types/index.js +2 -0
  2699. package/dist/node_modules/micromark-util-types/license +22 -0
  2700. package/dist/node_modules/micromark-util-types/package.json +37 -0
  2701. package/dist/node_modules/micromark-util-types/readme.md +151 -0
  2702. package/dist/node_modules/ms/index.js +162 -0
  2703. package/dist/node_modules/ms/license.md +21 -0
  2704. package/dist/node_modules/ms/package.json +38 -0
  2705. package/dist/node_modules/ms/readme.md +59 -0
  2706. package/dist/node_modules/node-forge/LICENSE +331 -0
  2707. package/dist/node_modules/node-forge/README.md +2075 -0
  2708. package/dist/node_modules/node-forge/dist/forge.all.min.js +2 -0
  2709. package/dist/node_modules/node-forge/dist/forge.all.min.js.map +1 -0
  2710. package/dist/node_modules/node-forge/dist/forge.min.js +2 -0
  2711. package/dist/node_modules/node-forge/dist/forge.min.js.map +1 -0
  2712. package/dist/node_modules/node-forge/dist/prime.worker.min.js +2 -0
  2713. package/dist/node_modules/node-forge/dist/prime.worker.min.js.map +1 -0
  2714. package/dist/node_modules/node-forge/flash/swf/SocketPool.swf +0 -0
  2715. package/dist/node_modules/node-forge/lib/aes.js +1091 -0
  2716. package/dist/node_modules/node-forge/lib/aesCipherSuites.js +282 -0
  2717. package/dist/node_modules/node-forge/lib/asn1-validator.js +91 -0
  2718. package/dist/node_modules/node-forge/lib/asn1.js +1522 -0
  2719. package/dist/node_modules/node-forge/lib/baseN.js +186 -0
  2720. package/dist/node_modules/node-forge/lib/cipher.js +230 -0
  2721. package/dist/node_modules/node-forge/lib/cipherModes.js +1027 -0
  2722. package/dist/node_modules/node-forge/lib/des.js +496 -0
  2723. package/dist/node_modules/node-forge/lib/ed25519.js +1117 -0
  2724. package/dist/node_modules/node-forge/lib/forge.js +13 -0
  2725. package/dist/node_modules/node-forge/lib/form.js +149 -0
  2726. package/dist/node_modules/node-forge/lib/hmac.js +146 -0
  2727. package/dist/node_modules/node-forge/lib/http.js +1371 -0
  2728. package/dist/node_modules/node-forge/lib/index.all.js +16 -0
  2729. package/dist/node_modules/node-forge/lib/index.js +33 -0
  2730. package/dist/node_modules/node-forge/lib/jsbn.js +1294 -0
  2731. package/dist/node_modules/node-forge/lib/kem.js +168 -0
  2732. package/dist/node_modules/node-forge/lib/log.js +319 -0
  2733. package/dist/node_modules/node-forge/lib/md.all.js +13 -0
  2734. package/dist/node_modules/node-forge/lib/md.js +11 -0
  2735. package/dist/node_modules/node-forge/lib/md5.js +289 -0
  2736. package/dist/node_modules/node-forge/lib/mgf.js +12 -0
  2737. package/dist/node_modules/node-forge/lib/mgf1.js +57 -0
  2738. package/dist/node_modules/node-forge/lib/oids.js +180 -0
  2739. package/dist/node_modules/node-forge/lib/pbe.js +1029 -0
  2740. package/dist/node_modules/node-forge/lib/pbkdf2.js +211 -0
  2741. package/dist/node_modules/node-forge/lib/pem.js +413 -0
  2742. package/dist/node_modules/node-forge/lib/pkcs1.js +276 -0
  2743. package/dist/node_modules/node-forge/lib/pkcs12.js +1081 -0
  2744. package/dist/node_modules/node-forge/lib/pkcs7.js +1260 -0
  2745. package/dist/node_modules/node-forge/lib/pkcs7asn1.js +410 -0
  2746. package/dist/node_modules/node-forge/lib/pki.js +102 -0
  2747. package/dist/node_modules/node-forge/lib/prime.js +297 -0
  2748. package/dist/node_modules/node-forge/lib/prime.worker.js +168 -0
  2749. package/dist/node_modules/node-forge/lib/prng.js +419 -0
  2750. package/dist/node_modules/node-forge/lib/pss.js +241 -0
  2751. package/dist/node_modules/node-forge/lib/random.js +191 -0
  2752. package/dist/node_modules/node-forge/lib/rc2.js +410 -0
  2753. package/dist/node_modules/node-forge/lib/rsa.js +2014 -0
  2754. package/dist/node_modules/node-forge/lib/sha1.js +319 -0
  2755. package/dist/node_modules/node-forge/lib/sha256.js +327 -0
  2756. package/dist/node_modules/node-forge/lib/sha512.js +561 -0
  2757. package/dist/node_modules/node-forge/lib/socket.js +287 -0
  2758. package/dist/node_modules/node-forge/lib/ssh.js +236 -0
  2759. package/dist/node_modules/node-forge/lib/tls.js +4347 -0
  2760. package/dist/node_modules/node-forge/lib/tlssocket.js +249 -0
  2761. package/dist/node_modules/node-forge/lib/util.js +2652 -0
  2762. package/dist/node_modules/node-forge/lib/x509.js +3946 -0
  2763. package/dist/node_modules/node-forge/lib/xhr.js +738 -0
  2764. package/dist/node_modules/node-forge/package.json +123 -0
  2765. package/dist/node_modules/saxes/README.md +323 -0
  2766. package/dist/node_modules/saxes/package.json +71 -0
  2767. package/dist/node_modules/saxes/saxes.d.ts +635 -0
  2768. package/dist/node_modules/saxes/saxes.js +2053 -0
  2769. package/dist/node_modules/saxes/saxes.js.map +1 -0
  2770. package/dist/node_modules/semver/LICENSE +15 -0
  2771. package/dist/node_modules/semver/README.md +680 -0
  2772. package/dist/node_modules/semver/bin/semver.js +195 -0
  2773. package/dist/node_modules/semver/classes/comparator.js +143 -0
  2774. package/dist/node_modules/semver/classes/index.js +7 -0
  2775. package/dist/node_modules/semver/classes/range.js +577 -0
  2776. package/dist/node_modules/semver/classes/semver.js +350 -0
  2777. package/dist/node_modules/semver/functions/clean.js +8 -0
  2778. package/dist/node_modules/semver/functions/cmp.js +54 -0
  2779. package/dist/node_modules/semver/functions/coerce.js +62 -0
  2780. package/dist/node_modules/semver/functions/compare-build.js +9 -0
  2781. package/dist/node_modules/semver/functions/compare-loose.js +5 -0
  2782. package/dist/node_modules/semver/functions/compare.js +7 -0
  2783. package/dist/node_modules/semver/functions/diff.js +60 -0
  2784. package/dist/node_modules/semver/functions/eq.js +5 -0
  2785. package/dist/node_modules/semver/functions/gt.js +5 -0
  2786. package/dist/node_modules/semver/functions/gte.js +5 -0
  2787. package/dist/node_modules/semver/functions/inc.js +21 -0
  2788. package/dist/node_modules/semver/functions/lt.js +5 -0
  2789. package/dist/node_modules/semver/functions/lte.js +5 -0
  2790. package/dist/node_modules/semver/functions/major.js +5 -0
  2791. package/dist/node_modules/semver/functions/minor.js +5 -0
  2792. package/dist/node_modules/semver/functions/neq.js +5 -0
  2793. package/dist/node_modules/semver/functions/parse.js +18 -0
  2794. package/dist/node_modules/semver/functions/patch.js +5 -0
  2795. package/dist/node_modules/semver/functions/prerelease.js +8 -0
  2796. package/dist/node_modules/semver/functions/rcompare.js +5 -0
  2797. package/dist/node_modules/semver/functions/rsort.js +5 -0
  2798. package/dist/node_modules/semver/functions/satisfies.js +12 -0
  2799. package/dist/node_modules/semver/functions/sort.js +5 -0
  2800. package/dist/node_modules/semver/functions/truncate.js +48 -0
  2801. package/dist/node_modules/semver/functions/valid.js +8 -0
  2802. package/dist/node_modules/semver/index.js +93 -0
  2803. package/dist/node_modules/semver/internal/constants.js +37 -0
  2804. package/dist/node_modules/semver/internal/debug.js +11 -0
  2805. package/dist/node_modules/semver/internal/identifiers.js +29 -0
  2806. package/dist/node_modules/semver/internal/lrucache.js +42 -0
  2807. package/dist/node_modules/semver/internal/parse-options.js +17 -0
  2808. package/dist/node_modules/semver/internal/re.js +223 -0
  2809. package/dist/node_modules/semver/package.json +78 -0
  2810. package/dist/node_modules/semver/preload.js +4 -0
  2811. package/dist/node_modules/semver/range.bnf +17 -0
  2812. package/dist/node_modules/semver/ranges/gtr.js +6 -0
  2813. package/dist/node_modules/semver/ranges/intersects.js +9 -0
  2814. package/dist/node_modules/semver/ranges/ltr.js +6 -0
  2815. package/dist/node_modules/semver/ranges/max-satisfying.js +27 -0
  2816. package/dist/node_modules/semver/ranges/min-satisfying.js +26 -0
  2817. package/dist/node_modules/semver/ranges/min-version.js +63 -0
  2818. package/dist/node_modules/semver/ranges/outside.js +82 -0
  2819. package/dist/node_modules/semver/ranges/simplify.js +49 -0
  2820. package/dist/node_modules/semver/ranges/subset.js +249 -0
  2821. package/dist/node_modules/semver/ranges/to-comparators.js +10 -0
  2822. package/dist/node_modules/semver/ranges/valid.js +13 -0
  2823. package/dist/node_modules/unist-util-is/index.d.ts +5 -0
  2824. package/dist/node_modules/unist-util-is/index.d.ts.map +1 -0
  2825. package/dist/node_modules/unist-util-is/index.js +7 -0
  2826. package/dist/node_modules/unist-util-is/lib/index.d.ts +111 -0
  2827. package/dist/node_modules/unist-util-is/lib/index.d.ts.map +1 -0
  2828. package/dist/node_modules/unist-util-is/lib/index.js +296 -0
  2829. package/dist/node_modules/unist-util-is/license +22 -0
  2830. package/dist/node_modules/unist-util-is/package.json +103 -0
  2831. package/dist/node_modules/unist-util-is/readme.md +351 -0
  2832. package/dist/node_modules/unist-util-stringify-position/index.d.ts +1 -0
  2833. package/dist/node_modules/unist-util-stringify-position/index.js +1 -0
  2834. package/dist/node_modules/unist-util-stringify-position/lib/index.d.ts +61 -0
  2835. package/dist/node_modules/unist-util-stringify-position/lib/index.js +84 -0
  2836. package/dist/node_modules/unist-util-stringify-position/license +22 -0
  2837. package/dist/node_modules/unist-util-stringify-position/package.json +80 -0
  2838. package/dist/node_modules/unist-util-stringify-position/readme.md +206 -0
  2839. package/dist/node_modules/unist-util-visit/index.d.ts +16 -0
  2840. package/dist/node_modules/unist-util-visit/index.js +2 -0
  2841. package/dist/node_modules/unist-util-visit/lib/index.d.ts +219 -0
  2842. package/dist/node_modules/unist-util-visit/lib/index.d.ts.map +1 -0
  2843. package/dist/node_modules/unist-util-visit/lib/index.js +324 -0
  2844. package/dist/node_modules/unist-util-visit/license +22 -0
  2845. package/dist/node_modules/unist-util-visit/package.json +98 -0
  2846. package/dist/node_modules/unist-util-visit/readme.md +373 -0
  2847. package/dist/node_modules/unist-util-visit-parents/index.d.ts +18 -0
  2848. package/dist/node_modules/unist-util-visit-parents/index.js +2 -0
  2849. package/dist/node_modules/unist-util-visit-parents/lib/color.d.ts +10 -0
  2850. package/dist/node_modules/unist-util-visit-parents/lib/color.d.ts.map +1 -0
  2851. package/dist/node_modules/unist-util-visit-parents/lib/color.js +11 -0
  2852. package/dist/node_modules/unist-util-visit-parents/lib/color.node.d.ts +10 -0
  2853. package/dist/node_modules/unist-util-visit-parents/lib/color.node.d.ts.map +1 -0
  2854. package/dist/node_modules/unist-util-visit-parents/lib/color.node.js +11 -0
  2855. package/dist/node_modules/unist-util-visit-parents/lib/index.d.ts +540 -0
  2856. package/dist/node_modules/unist-util-visit-parents/lib/index.d.ts.map +1 -0
  2857. package/dist/node_modules/unist-util-visit-parents/lib/index.js +582 -0
  2858. package/dist/node_modules/unist-util-visit-parents/license +22 -0
  2859. package/dist/node_modules/unist-util-visit-parents/package.json +96 -0
  2860. package/dist/node_modules/unist-util-visit-parents/readme.md +499 -0
  2861. package/dist/node_modules/ws/LICENSE +20 -0
  2862. package/dist/node_modules/ws/README.md +548 -0
  2863. package/dist/node_modules/ws/browser.js +8 -0
  2864. package/dist/node_modules/ws/index.js +22 -0
  2865. package/dist/node_modules/ws/lib/buffer-util.js +131 -0
  2866. package/dist/node_modules/ws/lib/constants.js +19 -0
  2867. package/dist/node_modules/ws/lib/event-target.js +292 -0
  2868. package/dist/node_modules/ws/lib/extension.js +203 -0
  2869. package/dist/node_modules/ws/lib/limiter.js +55 -0
  2870. package/dist/node_modules/ws/lib/permessage-deflate.js +530 -0
  2871. package/dist/node_modules/ws/lib/receiver.js +743 -0
  2872. package/dist/node_modules/ws/lib/sender.js +607 -0
  2873. package/dist/node_modules/ws/lib/stream.js +161 -0
  2874. package/dist/node_modules/ws/lib/subprotocol.js +62 -0
  2875. package/dist/node_modules/ws/lib/validation.js +152 -0
  2876. package/dist/node_modules/ws/lib/websocket-server.js +562 -0
  2877. package/dist/node_modules/ws/lib/websocket.js +1421 -0
  2878. package/dist/node_modules/ws/package.json +74 -0
  2879. package/dist/node_modules/ws/wrapper.mjs +21 -0
  2880. package/dist/node_modules/xmlchars/LICENSE +18 -0
  2881. package/dist/node_modules/xmlchars/README.md +33 -0
  2882. package/dist/node_modules/xmlchars/package.json +51 -0
  2883. package/dist/node_modules/xmlchars/xml/1.0/ed4.d.ts +31 -0
  2884. package/dist/node_modules/xmlchars/xml/1.0/ed4.js +44 -0
  2885. package/dist/node_modules/xmlchars/xml/1.0/ed4.js.map +1 -0
  2886. package/dist/node_modules/xmlchars/xml/1.0/ed5.d.ts +51 -0
  2887. package/dist/node_modules/xmlchars/xml/1.0/ed5.js +105 -0
  2888. package/dist/node_modules/xmlchars/xml/1.0/ed5.js.map +1 -0
  2889. package/dist/node_modules/xmlchars/xml/1.1/ed2.d.ts +73 -0
  2890. package/dist/node_modules/xmlchars/xml/1.1/ed2.js +145 -0
  2891. package/dist/node_modules/xmlchars/xml/1.1/ed2.js.map +1 -0
  2892. package/dist/node_modules/xmlchars/xmlchars.d.ts +170 -0
  2893. package/dist/node_modules/xmlchars/xmlchars.js +191 -0
  2894. package/dist/node_modules/xmlchars/xmlchars.js.map +1 -0
  2895. package/dist/node_modules/xmlchars/xmlns/1.0/ed3.d.ts +28 -0
  2896. package/dist/node_modules/xmlchars/xmlns/1.0/ed3.js +65 -0
  2897. package/dist/node_modules/xmlchars/xmlns/1.0/ed3.js.map +1 -0
  2898. package/dist/node_modules/yaml/LICENSE +13 -0
  2899. package/dist/node_modules/yaml/README.md +172 -0
  2900. package/dist/node_modules/yaml/bin.mjs +11 -0
  2901. package/dist/node_modules/yaml/browser/dist/compose/compose-collection.js +88 -0
  2902. package/dist/node_modules/yaml/browser/dist/compose/compose-doc.js +43 -0
  2903. package/dist/node_modules/yaml/browser/dist/compose/compose-node.js +109 -0
  2904. package/dist/node_modules/yaml/browser/dist/compose/compose-scalar.js +86 -0
  2905. package/dist/node_modules/yaml/browser/dist/compose/composer.js +219 -0
  2906. package/dist/node_modules/yaml/browser/dist/compose/resolve-block-map.js +115 -0
  2907. package/dist/node_modules/yaml/browser/dist/compose/resolve-block-scalar.js +198 -0
  2908. package/dist/node_modules/yaml/browser/dist/compose/resolve-block-seq.js +49 -0
  2909. package/dist/node_modules/yaml/browser/dist/compose/resolve-end.js +37 -0
  2910. package/dist/node_modules/yaml/browser/dist/compose/resolve-flow-collection.js +207 -0
  2911. package/dist/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.js +226 -0
  2912. package/dist/node_modules/yaml/browser/dist/compose/resolve-props.js +146 -0
  2913. package/dist/node_modules/yaml/browser/dist/compose/util-contains-newline.js +34 -0
  2914. package/dist/node_modules/yaml/browser/dist/compose/util-empty-scalar-position.js +26 -0
  2915. package/dist/node_modules/yaml/browser/dist/compose/util-flow-indent-check.js +15 -0
  2916. package/dist/node_modules/yaml/browser/dist/compose/util-map-includes.js +13 -0
  2917. package/dist/node_modules/yaml/browser/dist/doc/Document.js +335 -0
  2918. package/dist/node_modules/yaml/browser/dist/doc/anchors.js +71 -0
  2919. package/dist/node_modules/yaml/browser/dist/doc/applyReviver.js +55 -0
  2920. package/dist/node_modules/yaml/browser/dist/doc/createNode.js +88 -0
  2921. package/dist/node_modules/yaml/browser/dist/doc/directives.js +176 -0
  2922. package/dist/node_modules/yaml/browser/dist/errors.js +57 -0
  2923. package/dist/node_modules/yaml/browser/dist/index.js +17 -0
  2924. package/dist/node_modules/yaml/browser/dist/log.js +11 -0
  2925. package/dist/node_modules/yaml/browser/dist/nodes/Alias.js +118 -0
  2926. package/dist/node_modules/yaml/browser/dist/nodes/Collection.js +147 -0
  2927. package/dist/node_modules/yaml/browser/dist/nodes/Node.js +38 -0
  2928. package/dist/node_modules/yaml/browser/dist/nodes/Pair.js +36 -0
  2929. package/dist/node_modules/yaml/browser/dist/nodes/Scalar.js +24 -0
  2930. package/dist/node_modules/yaml/browser/dist/nodes/YAMLMap.js +144 -0
  2931. package/dist/node_modules/yaml/browser/dist/nodes/YAMLSeq.js +113 -0
  2932. package/dist/node_modules/yaml/browser/dist/nodes/addPairToJSMap.js +63 -0
  2933. package/dist/node_modules/yaml/browser/dist/nodes/identity.js +36 -0
  2934. package/dist/node_modules/yaml/browser/dist/nodes/toJS.js +37 -0
  2935. package/dist/node_modules/yaml/browser/dist/parse/cst-scalar.js +214 -0
  2936. package/dist/node_modules/yaml/browser/dist/parse/cst-stringify.js +61 -0
  2937. package/dist/node_modules/yaml/browser/dist/parse/cst-visit.js +97 -0
  2938. package/dist/node_modules/yaml/browser/dist/parse/cst.js +98 -0
  2939. package/dist/node_modules/yaml/browser/dist/parse/lexer.js +721 -0
  2940. package/dist/node_modules/yaml/browser/dist/parse/line-counter.js +39 -0
  2941. package/dist/node_modules/yaml/browser/dist/parse/parser.js +975 -0
  2942. package/dist/node_modules/yaml/browser/dist/public-api.js +102 -0
  2943. package/dist/node_modules/yaml/browser/dist/schema/Schema.js +37 -0
  2944. package/dist/node_modules/yaml/browser/dist/schema/common/map.js +17 -0
  2945. package/dist/node_modules/yaml/browser/dist/schema/common/null.js +15 -0
  2946. package/dist/node_modules/yaml/browser/dist/schema/common/seq.js +17 -0
  2947. package/dist/node_modules/yaml/browser/dist/schema/common/string.js +14 -0
  2948. package/dist/node_modules/yaml/browser/dist/schema/core/bool.js +19 -0
  2949. package/dist/node_modules/yaml/browser/dist/schema/core/float.js +43 -0
  2950. package/dist/node_modules/yaml/browser/dist/schema/core/int.js +38 -0
  2951. package/dist/node_modules/yaml/browser/dist/schema/core/schema.js +23 -0
  2952. package/dist/node_modules/yaml/browser/dist/schema/json/schema.js +62 -0
  2953. package/dist/node_modules/yaml/browser/dist/schema/tags.js +96 -0
  2954. package/dist/node_modules/yaml/browser/dist/schema/yaml-1.1/binary.js +58 -0
  2955. package/dist/node_modules/yaml/browser/dist/schema/yaml-1.1/bool.js +26 -0
  2956. package/dist/node_modules/yaml/browser/dist/schema/yaml-1.1/float.js +46 -0
  2957. package/dist/node_modules/yaml/browser/dist/schema/yaml-1.1/int.js +71 -0
  2958. package/dist/node_modules/yaml/browser/dist/schema/yaml-1.1/merge.js +67 -0
  2959. package/dist/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.js +74 -0
  2960. package/dist/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.js +78 -0
  2961. package/dist/node_modules/yaml/browser/dist/schema/yaml-1.1/schema.js +39 -0
  2962. package/dist/node_modules/yaml/browser/dist/schema/yaml-1.1/set.js +93 -0
  2963. package/dist/node_modules/yaml/browser/dist/schema/yaml-1.1/timestamp.js +101 -0
  2964. package/dist/node_modules/yaml/browser/dist/stringify/foldFlowLines.js +146 -0
  2965. package/dist/node_modules/yaml/browser/dist/stringify/stringify.js +129 -0
  2966. package/dist/node_modules/yaml/browser/dist/stringify/stringifyCollection.js +153 -0
  2967. package/dist/node_modules/yaml/browser/dist/stringify/stringifyComment.js +20 -0
  2968. package/dist/node_modules/yaml/browser/dist/stringify/stringifyDocument.js +85 -0
  2969. package/dist/node_modules/yaml/browser/dist/stringify/stringifyNumber.js +25 -0
  2970. package/dist/node_modules/yaml/browser/dist/stringify/stringifyPair.js +150 -0
  2971. package/dist/node_modules/yaml/browser/dist/stringify/stringifyString.js +336 -0
  2972. package/dist/node_modules/yaml/browser/dist/util.js +11 -0
  2973. package/dist/node_modules/yaml/browser/dist/visit.js +233 -0
  2974. package/dist/node_modules/yaml/browser/index.js +5 -0
  2975. package/dist/node_modules/yaml/browser/package.json +3 -0
  2976. package/dist/node_modules/yaml/dist/cli.d.ts +8 -0
  2977. package/dist/node_modules/yaml/dist/cli.mjs +201 -0
  2978. package/dist/node_modules/yaml/dist/compose/compose-collection.d.ts +11 -0
  2979. package/dist/node_modules/yaml/dist/compose/compose-collection.js +90 -0
  2980. package/dist/node_modules/yaml/dist/compose/compose-doc.d.ts +7 -0
  2981. package/dist/node_modules/yaml/dist/compose/compose-doc.js +45 -0
  2982. package/dist/node_modules/yaml/dist/compose/compose-node.d.ts +29 -0
  2983. package/dist/node_modules/yaml/dist/compose/compose-node.js +112 -0
  2984. package/dist/node_modules/yaml/dist/compose/compose-scalar.d.ts +5 -0
  2985. package/dist/node_modules/yaml/dist/compose/compose-scalar.js +88 -0
  2986. package/dist/node_modules/yaml/dist/compose/composer.d.ts +63 -0
  2987. package/dist/node_modules/yaml/dist/compose/composer.js +224 -0
  2988. package/dist/node_modules/yaml/dist/compose/resolve-block-map.d.ts +6 -0
  2989. package/dist/node_modules/yaml/dist/compose/resolve-block-map.js +117 -0
  2990. package/dist/node_modules/yaml/dist/compose/resolve-block-scalar.d.ts +11 -0
  2991. package/dist/node_modules/yaml/dist/compose/resolve-block-scalar.js +200 -0
  2992. package/dist/node_modules/yaml/dist/compose/resolve-block-seq.d.ts +6 -0
  2993. package/dist/node_modules/yaml/dist/compose/resolve-block-seq.js +51 -0
  2994. package/dist/node_modules/yaml/dist/compose/resolve-end.d.ts +6 -0
  2995. package/dist/node_modules/yaml/dist/compose/resolve-end.js +39 -0
  2996. package/dist/node_modules/yaml/dist/compose/resolve-flow-collection.d.ts +7 -0
  2997. package/dist/node_modules/yaml/dist/compose/resolve-flow-collection.js +209 -0
  2998. package/dist/node_modules/yaml/dist/compose/resolve-flow-scalar.d.ts +10 -0
  2999. package/dist/node_modules/yaml/dist/compose/resolve-flow-scalar.js +228 -0
  3000. package/dist/node_modules/yaml/dist/compose/resolve-props.d.ts +23 -0
  3001. package/dist/node_modules/yaml/dist/compose/resolve-props.js +148 -0
  3002. package/dist/node_modules/yaml/dist/compose/util-contains-newline.d.ts +2 -0
  3003. package/dist/node_modules/yaml/dist/compose/util-contains-newline.js +36 -0
  3004. package/dist/node_modules/yaml/dist/compose/util-empty-scalar-position.d.ts +2 -0
  3005. package/dist/node_modules/yaml/dist/compose/util-empty-scalar-position.js +28 -0
  3006. package/dist/node_modules/yaml/dist/compose/util-flow-indent-check.d.ts +3 -0
  3007. package/dist/node_modules/yaml/dist/compose/util-flow-indent-check.js +17 -0
  3008. package/dist/node_modules/yaml/dist/compose/util-map-includes.d.ts +4 -0
  3009. package/dist/node_modules/yaml/dist/compose/util-map-includes.js +15 -0
  3010. package/dist/node_modules/yaml/dist/doc/Document.d.ts +141 -0
  3011. package/dist/node_modules/yaml/dist/doc/Document.js +337 -0
  3012. package/dist/node_modules/yaml/dist/doc/anchors.d.ts +24 -0
  3013. package/dist/node_modules/yaml/dist/doc/anchors.js +76 -0
  3014. package/dist/node_modules/yaml/dist/doc/applyReviver.d.ts +9 -0
  3015. package/dist/node_modules/yaml/dist/doc/applyReviver.js +57 -0
  3016. package/dist/node_modules/yaml/dist/doc/createNode.d.ts +17 -0
  3017. package/dist/node_modules/yaml/dist/doc/createNode.js +90 -0
  3018. package/dist/node_modules/yaml/dist/doc/directives.d.ts +49 -0
  3019. package/dist/node_modules/yaml/dist/doc/directives.js +178 -0
  3020. package/dist/node_modules/yaml/dist/errors.d.ts +21 -0
  3021. package/dist/node_modules/yaml/dist/errors.js +62 -0
  3022. package/dist/node_modules/yaml/dist/index.d.ts +25 -0
  3023. package/dist/node_modules/yaml/dist/index.js +50 -0
  3024. package/dist/node_modules/yaml/dist/log.d.ts +3 -0
  3025. package/dist/node_modules/yaml/dist/log.js +19 -0
  3026. package/dist/node_modules/yaml/dist/nodes/Alias.d.ts +29 -0
  3027. package/dist/node_modules/yaml/dist/nodes/Alias.js +120 -0
  3028. package/dist/node_modules/yaml/dist/nodes/Collection.d.ts +73 -0
  3029. package/dist/node_modules/yaml/dist/nodes/Collection.js +151 -0
  3030. package/dist/node_modules/yaml/dist/nodes/Node.d.ts +53 -0
  3031. package/dist/node_modules/yaml/dist/nodes/Node.js +40 -0
  3032. package/dist/node_modules/yaml/dist/nodes/Pair.d.ts +22 -0
  3033. package/dist/node_modules/yaml/dist/nodes/Pair.js +39 -0
  3034. package/dist/node_modules/yaml/dist/nodes/Scalar.d.ts +47 -0
  3035. package/dist/node_modules/yaml/dist/nodes/Scalar.js +27 -0
  3036. package/dist/node_modules/yaml/dist/nodes/YAMLMap.d.ts +53 -0
  3037. package/dist/node_modules/yaml/dist/nodes/YAMLMap.js +147 -0
  3038. package/dist/node_modules/yaml/dist/nodes/YAMLSeq.d.ts +60 -0
  3039. package/dist/node_modules/yaml/dist/nodes/YAMLSeq.js +115 -0
  3040. package/dist/node_modules/yaml/dist/nodes/addPairToJSMap.d.ts +4 -0
  3041. package/dist/node_modules/yaml/dist/nodes/addPairToJSMap.js +65 -0
  3042. package/dist/node_modules/yaml/dist/nodes/identity.d.ts +23 -0
  3043. package/dist/node_modules/yaml/dist/nodes/identity.js +53 -0
  3044. package/dist/node_modules/yaml/dist/nodes/toJS.d.ts +29 -0
  3045. package/dist/node_modules/yaml/dist/nodes/toJS.js +39 -0
  3046. package/dist/node_modules/yaml/dist/options.d.ts +350 -0
  3047. package/dist/node_modules/yaml/dist/parse/cst-scalar.d.ts +64 -0
  3048. package/dist/node_modules/yaml/dist/parse/cst-scalar.js +218 -0
  3049. package/dist/node_modules/yaml/dist/parse/cst-stringify.d.ts +8 -0
  3050. package/dist/node_modules/yaml/dist/parse/cst-stringify.js +63 -0
  3051. package/dist/node_modules/yaml/dist/parse/cst-visit.d.ts +39 -0
  3052. package/dist/node_modules/yaml/dist/parse/cst-visit.js +99 -0
  3053. package/dist/node_modules/yaml/dist/parse/cst.d.ts +109 -0
  3054. package/dist/node_modules/yaml/dist/parse/cst.js +112 -0
  3055. package/dist/node_modules/yaml/dist/parse/lexer.d.ts +87 -0
  3056. package/dist/node_modules/yaml/dist/parse/lexer.js +723 -0
  3057. package/dist/node_modules/yaml/dist/parse/line-counter.d.ts +22 -0
  3058. package/dist/node_modules/yaml/dist/parse/line-counter.js +41 -0
  3059. package/dist/node_modules/yaml/dist/parse/parser.d.ts +84 -0
  3060. package/dist/node_modules/yaml/dist/parse/parser.js +980 -0
  3061. package/dist/node_modules/yaml/dist/public-api.d.ts +44 -0
  3062. package/dist/node_modules/yaml/dist/public-api.js +107 -0
  3063. package/dist/node_modules/yaml/dist/schema/Schema.d.ts +17 -0
  3064. package/dist/node_modules/yaml/dist/schema/Schema.js +39 -0
  3065. package/dist/node_modules/yaml/dist/schema/common/map.d.ts +2 -0
  3066. package/dist/node_modules/yaml/dist/schema/common/map.js +19 -0
  3067. package/dist/node_modules/yaml/dist/schema/common/null.d.ts +4 -0
  3068. package/dist/node_modules/yaml/dist/schema/common/null.js +17 -0
  3069. package/dist/node_modules/yaml/dist/schema/common/seq.d.ts +2 -0
  3070. package/dist/node_modules/yaml/dist/schema/common/seq.js +19 -0
  3071. package/dist/node_modules/yaml/dist/schema/common/string.d.ts +2 -0
  3072. package/dist/node_modules/yaml/dist/schema/common/string.js +16 -0
  3073. package/dist/node_modules/yaml/dist/schema/core/bool.d.ts +4 -0
  3074. package/dist/node_modules/yaml/dist/schema/core/bool.js +21 -0
  3075. package/dist/node_modules/yaml/dist/schema/core/float.d.ts +4 -0
  3076. package/dist/node_modules/yaml/dist/schema/core/float.js +47 -0
  3077. package/dist/node_modules/yaml/dist/schema/core/int.d.ts +4 -0
  3078. package/dist/node_modules/yaml/dist/schema/core/int.js +42 -0
  3079. package/dist/node_modules/yaml/dist/schema/core/schema.d.ts +1 -0
  3080. package/dist/node_modules/yaml/dist/schema/core/schema.js +25 -0
  3081. package/dist/node_modules/yaml/dist/schema/json/schema.d.ts +2 -0
  3082. package/dist/node_modules/yaml/dist/schema/json/schema.js +64 -0
  3083. package/dist/node_modules/yaml/dist/schema/json-schema.d.ts +69 -0
  3084. package/dist/node_modules/yaml/dist/schema/tags.d.ts +48 -0
  3085. package/dist/node_modules/yaml/dist/schema/tags.js +99 -0
  3086. package/dist/node_modules/yaml/dist/schema/types.d.ts +92 -0
  3087. package/dist/node_modules/yaml/dist/schema/yaml-1.1/binary.d.ts +2 -0
  3088. package/dist/node_modules/yaml/dist/schema/yaml-1.1/binary.js +70 -0
  3089. package/dist/node_modules/yaml/dist/schema/yaml-1.1/bool.d.ts +7 -0
  3090. package/dist/node_modules/yaml/dist/schema/yaml-1.1/bool.js +29 -0
  3091. package/dist/node_modules/yaml/dist/schema/yaml-1.1/float.d.ts +4 -0
  3092. package/dist/node_modules/yaml/dist/schema/yaml-1.1/float.js +50 -0
  3093. package/dist/node_modules/yaml/dist/schema/yaml-1.1/int.d.ts +5 -0
  3094. package/dist/node_modules/yaml/dist/schema/yaml-1.1/int.js +76 -0
  3095. package/dist/node_modules/yaml/dist/schema/yaml-1.1/merge.d.ts +9 -0
  3096. package/dist/node_modules/yaml/dist/schema/yaml-1.1/merge.js +71 -0
  3097. package/dist/node_modules/yaml/dist/schema/yaml-1.1/omap.d.ts +22 -0
  3098. package/dist/node_modules/yaml/dist/schema/yaml-1.1/omap.js +77 -0
  3099. package/dist/node_modules/yaml/dist/schema/yaml-1.1/pairs.d.ts +10 -0
  3100. package/dist/node_modules/yaml/dist/schema/yaml-1.1/pairs.js +82 -0
  3101. package/dist/node_modules/yaml/dist/schema/yaml-1.1/schema.d.ts +1 -0
  3102. package/dist/node_modules/yaml/dist/schema/yaml-1.1/schema.js +41 -0
  3103. package/dist/node_modules/yaml/dist/schema/yaml-1.1/set.d.ts +28 -0
  3104. package/dist/node_modules/yaml/dist/schema/yaml-1.1/set.js +96 -0
  3105. package/dist/node_modules/yaml/dist/schema/yaml-1.1/timestamp.d.ts +6 -0
  3106. package/dist/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js +105 -0
  3107. package/dist/node_modules/yaml/dist/stringify/foldFlowLines.d.ts +34 -0
  3108. package/dist/node_modules/yaml/dist/stringify/foldFlowLines.js +151 -0
  3109. package/dist/node_modules/yaml/dist/stringify/stringify.d.ts +21 -0
  3110. package/dist/node_modules/yaml/dist/stringify/stringify.js +132 -0
  3111. package/dist/node_modules/yaml/dist/stringify/stringifyCollection.d.ts +17 -0
  3112. package/dist/node_modules/yaml/dist/stringify/stringifyCollection.js +155 -0
  3113. package/dist/node_modules/yaml/dist/stringify/stringifyComment.d.ts +10 -0
  3114. package/dist/node_modules/yaml/dist/stringify/stringifyComment.js +24 -0
  3115. package/dist/node_modules/yaml/dist/stringify/stringifyDocument.d.ts +4 -0
  3116. package/dist/node_modules/yaml/dist/stringify/stringifyDocument.js +87 -0
  3117. package/dist/node_modules/yaml/dist/stringify/stringifyNumber.d.ts +2 -0
  3118. package/dist/node_modules/yaml/dist/stringify/stringifyNumber.js +27 -0
  3119. package/dist/node_modules/yaml/dist/stringify/stringifyPair.d.ts +3 -0
  3120. package/dist/node_modules/yaml/dist/stringify/stringifyPair.js +152 -0
  3121. package/dist/node_modules/yaml/dist/stringify/stringifyString.d.ts +9 -0
  3122. package/dist/node_modules/yaml/dist/stringify/stringifyString.js +338 -0
  3123. package/dist/node_modules/yaml/dist/test-events.d.ts +4 -0
  3124. package/dist/node_modules/yaml/dist/test-events.js +134 -0
  3125. package/dist/node_modules/yaml/dist/util.d.ts +16 -0
  3126. package/dist/node_modules/yaml/dist/util.js +28 -0
  3127. package/dist/node_modules/yaml/dist/visit.d.ts +102 -0
  3128. package/dist/node_modules/yaml/dist/visit.js +236 -0
  3129. package/dist/node_modules/yaml/package.json +97 -0
  3130. package/dist/node_modules/yaml/util.js +2 -0
  3131. package/dist/node_modules/zod/LICENSE +21 -0
  3132. package/dist/node_modules/zod/README.md +208 -0
  3133. package/dist/node_modules/zod/index.cjs +33 -0
  3134. package/dist/node_modules/zod/index.d.cts +4 -0
  3135. package/dist/node_modules/zod/index.d.ts +4 -0
  3136. package/dist/node_modules/zod/index.js +4 -0
  3137. package/dist/node_modules/zod/package.json +118 -0
  3138. package/dist/node_modules/zod/src/index.ts +4 -0
  3139. package/dist/node_modules/zod/src/v3/ZodError.ts +330 -0
  3140. package/dist/node_modules/zod/src/v3/benchmarks/datetime.ts +58 -0
  3141. package/dist/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +80 -0
  3142. package/dist/node_modules/zod/src/v3/benchmarks/index.ts +59 -0
  3143. package/dist/node_modules/zod/src/v3/benchmarks/ipv4.ts +57 -0
  3144. package/dist/node_modules/zod/src/v3/benchmarks/object.ts +69 -0
  3145. package/dist/node_modules/zod/src/v3/benchmarks/primitives.ts +162 -0
  3146. package/dist/node_modules/zod/src/v3/benchmarks/realworld.ts +63 -0
  3147. package/dist/node_modules/zod/src/v3/benchmarks/string.ts +55 -0
  3148. package/dist/node_modules/zod/src/v3/benchmarks/union.ts +80 -0
  3149. package/dist/node_modules/zod/src/v3/errors.ts +13 -0
  3150. package/dist/node_modules/zod/src/v3/external.ts +6 -0
  3151. package/dist/node_modules/zod/src/v3/helpers/enumUtil.ts +17 -0
  3152. package/dist/node_modules/zod/src/v3/helpers/errorUtil.ts +8 -0
  3153. package/dist/node_modules/zod/src/v3/helpers/parseUtil.ts +176 -0
  3154. package/dist/node_modules/zod/src/v3/helpers/partialUtil.ts +34 -0
  3155. package/dist/node_modules/zod/src/v3/helpers/typeAliases.ts +2 -0
  3156. package/dist/node_modules/zod/src/v3/helpers/util.ts +224 -0
  3157. package/dist/node_modules/zod/src/v3/index.ts +4 -0
  3158. package/dist/node_modules/zod/src/v3/locales/en.ts +124 -0
  3159. package/dist/node_modules/zod/src/v3/standard-schema.ts +113 -0
  3160. package/dist/node_modules/zod/src/v3/tests/Mocker.ts +54 -0
  3161. package/dist/node_modules/zod/src/v3/tests/all-errors.test.ts +157 -0
  3162. package/dist/node_modules/zod/src/v3/tests/anyunknown.test.ts +28 -0
  3163. package/dist/node_modules/zod/src/v3/tests/array.test.ts +71 -0
  3164. package/dist/node_modules/zod/src/v3/tests/async-parsing.test.ts +388 -0
  3165. package/dist/node_modules/zod/src/v3/tests/async-refinements.test.ts +46 -0
  3166. package/dist/node_modules/zod/src/v3/tests/base.test.ts +29 -0
  3167. package/dist/node_modules/zod/src/v3/tests/bigint.test.ts +55 -0
  3168. package/dist/node_modules/zod/src/v3/tests/branded.test.ts +53 -0
  3169. package/dist/node_modules/zod/src/v3/tests/catch.test.ts +220 -0
  3170. package/dist/node_modules/zod/src/v3/tests/coerce.test.ts +133 -0
  3171. package/dist/node_modules/zod/src/v3/tests/complex.test.ts +56 -0
  3172. package/dist/node_modules/zod/src/v3/tests/custom.test.ts +31 -0
  3173. package/dist/node_modules/zod/src/v3/tests/date.test.ts +32 -0
  3174. package/dist/node_modules/zod/src/v3/tests/deepmasking.test.ts +186 -0
  3175. package/dist/node_modules/zod/src/v3/tests/default.test.ts +112 -0
  3176. package/dist/node_modules/zod/src/v3/tests/description.test.ts +33 -0
  3177. package/dist/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +315 -0
  3178. package/dist/node_modules/zod/src/v3/tests/enum.test.ts +80 -0
  3179. package/dist/node_modules/zod/src/v3/tests/error.test.ts +551 -0
  3180. package/dist/node_modules/zod/src/v3/tests/firstparty.test.ts +87 -0
  3181. package/dist/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +21 -0
  3182. package/dist/node_modules/zod/src/v3/tests/function.test.ts +257 -0
  3183. package/dist/node_modules/zod/src/v3/tests/generics.test.ts +48 -0
  3184. package/dist/node_modules/zod/src/v3/tests/instanceof.test.ts +37 -0
  3185. package/dist/node_modules/zod/src/v3/tests/intersection.test.ts +110 -0
  3186. package/dist/node_modules/zod/src/v3/tests/language-server.source.ts +76 -0
  3187. package/dist/node_modules/zod/src/v3/tests/language-server.test.ts +207 -0
  3188. package/dist/node_modules/zod/src/v3/tests/literal.test.ts +36 -0
  3189. package/dist/node_modules/zod/src/v3/tests/map.test.ts +110 -0
  3190. package/dist/node_modules/zod/src/v3/tests/masking.test.ts +4 -0
  3191. package/dist/node_modules/zod/src/v3/tests/mocker.test.ts +19 -0
  3192. package/dist/node_modules/zod/src/v3/tests/nan.test.ts +21 -0
  3193. package/dist/node_modules/zod/src/v3/tests/nativeEnum.test.ts +87 -0
  3194. package/dist/node_modules/zod/src/v3/tests/nullable.test.ts +42 -0
  3195. package/dist/node_modules/zod/src/v3/tests/number.test.ts +176 -0
  3196. package/dist/node_modules/zod/src/v3/tests/object-augmentation.test.ts +29 -0
  3197. package/dist/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +29 -0
  3198. package/dist/node_modules/zod/src/v3/tests/object.test.ts +434 -0
  3199. package/dist/node_modules/zod/src/v3/tests/optional.test.ts +42 -0
  3200. package/dist/node_modules/zod/src/v3/tests/parseUtil.test.ts +23 -0
  3201. package/dist/node_modules/zod/src/v3/tests/parser.test.ts +41 -0
  3202. package/dist/node_modules/zod/src/v3/tests/partials.test.ts +243 -0
  3203. package/dist/node_modules/zod/src/v3/tests/pickomit.test.ts +111 -0
  3204. package/dist/node_modules/zod/src/v3/tests/pipeline.test.ts +29 -0
  3205. package/dist/node_modules/zod/src/v3/tests/preprocess.test.ts +186 -0
  3206. package/dist/node_modules/zod/src/v3/tests/primitive.test.ts +440 -0
  3207. package/dist/node_modules/zod/src/v3/tests/promise.test.ts +90 -0
  3208. package/dist/node_modules/zod/src/v3/tests/readonly.test.ts +194 -0
  3209. package/dist/node_modules/zod/src/v3/tests/record.test.ts +171 -0
  3210. package/dist/node_modules/zod/src/v3/tests/recursive.test.ts +197 -0
  3211. package/dist/node_modules/zod/src/v3/tests/refine.test.ts +313 -0
  3212. package/dist/node_modules/zod/src/v3/tests/safeparse.test.ts +27 -0
  3213. package/dist/node_modules/zod/src/v3/tests/set.test.ts +142 -0
  3214. package/dist/node_modules/zod/src/v3/tests/standard-schema.test.ts +83 -0
  3215. package/dist/node_modules/zod/src/v3/tests/string.test.ts +916 -0
  3216. package/dist/node_modules/zod/src/v3/tests/transformer.test.ts +233 -0
  3217. package/dist/node_modules/zod/src/v3/tests/tuple.test.ts +90 -0
  3218. package/dist/node_modules/zod/src/v3/tests/unions.test.ts +57 -0
  3219. package/dist/node_modules/zod/src/v3/tests/validations.test.ts +133 -0
  3220. package/dist/node_modules/zod/src/v3/tests/void.test.ts +15 -0
  3221. package/dist/node_modules/zod/src/v3/types.ts +5136 -0
  3222. package/dist/node_modules/zod/src/v4/classic/checks.ts +30 -0
  3223. package/dist/node_modules/zod/src/v4/classic/coerce.ts +27 -0
  3224. package/dist/node_modules/zod/src/v4/classic/compat.ts +66 -0
  3225. package/dist/node_modules/zod/src/v4/classic/errors.ts +75 -0
  3226. package/dist/node_modules/zod/src/v4/classic/external.ts +50 -0
  3227. package/dist/node_modules/zod/src/v4/classic/index.ts +5 -0
  3228. package/dist/node_modules/zod/src/v4/classic/iso.ts +90 -0
  3229. package/dist/node_modules/zod/src/v4/classic/parse.ts +33 -0
  3230. package/dist/node_modules/zod/src/v4/classic/schemas.ts +2054 -0
  3231. package/dist/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +26 -0
  3232. package/dist/node_modules/zod/src/v4/classic/tests/array.test.ts +264 -0
  3233. package/dist/node_modules/zod/src/v4/classic/tests/assignability.test.ts +210 -0
  3234. package/dist/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +381 -0
  3235. package/dist/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +68 -0
  3236. package/dist/node_modules/zod/src/v4/classic/tests/base.test.ts +7 -0
  3237. package/dist/node_modules/zod/src/v4/classic/tests/bigint.test.ts +54 -0
  3238. package/dist/node_modules/zod/src/v4/classic/tests/brand.test.ts +63 -0
  3239. package/dist/node_modules/zod/src/v4/classic/tests/catch.test.ts +252 -0
  3240. package/dist/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +20 -0
  3241. package/dist/node_modules/zod/src/v4/classic/tests/coerce.test.ts +160 -0
  3242. package/dist/node_modules/zod/src/v4/classic/tests/continuability.test.ts +352 -0
  3243. package/dist/node_modules/zod/src/v4/classic/tests/custom.test.ts +40 -0
  3244. package/dist/node_modules/zod/src/v4/classic/tests/date.test.ts +31 -0
  3245. package/dist/node_modules/zod/src/v4/classic/tests/datetime.test.ts +296 -0
  3246. package/dist/node_modules/zod/src/v4/classic/tests/default.test.ts +313 -0
  3247. package/dist/node_modules/zod/src/v4/classic/tests/description.test.ts +32 -0
  3248. package/dist/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +619 -0
  3249. package/dist/node_modules/zod/src/v4/classic/tests/enum.test.ts +285 -0
  3250. package/dist/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +527 -0
  3251. package/dist/node_modules/zod/src/v4/classic/tests/error.test.ts +711 -0
  3252. package/dist/node_modules/zod/src/v4/classic/tests/file.test.ts +91 -0
  3253. package/dist/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +175 -0
  3254. package/dist/node_modules/zod/src/v4/classic/tests/function.test.ts +268 -0
  3255. package/dist/node_modules/zod/src/v4/classic/tests/generics.test.ts +72 -0
  3256. package/dist/node_modules/zod/src/v4/classic/tests/index.test.ts +829 -0
  3257. package/dist/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +34 -0
  3258. package/dist/node_modules/zod/src/v4/classic/tests/intersection.test.ts +171 -0
  3259. package/dist/node_modules/zod/src/v4/classic/tests/json.test.ts +108 -0
  3260. package/dist/node_modules/zod/src/v4/classic/tests/lazy.test.ts +227 -0
  3261. package/dist/node_modules/zod/src/v4/classic/tests/literal.test.ts +92 -0
  3262. package/dist/node_modules/zod/src/v4/classic/tests/map.test.ts +196 -0
  3263. package/dist/node_modules/zod/src/v4/classic/tests/nan.test.ts +21 -0
  3264. package/dist/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +168 -0
  3265. package/dist/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +86 -0
  3266. package/dist/node_modules/zod/src/v4/classic/tests/nullable.test.ts +22 -0
  3267. package/dist/node_modules/zod/src/v4/classic/tests/number.test.ts +247 -0
  3268. package/dist/node_modules/zod/src/v4/classic/tests/object.test.ts +563 -0
  3269. package/dist/node_modules/zod/src/v4/classic/tests/optional.test.ts +123 -0
  3270. package/dist/node_modules/zod/src/v4/classic/tests/partial.test.ts +147 -0
  3271. package/dist/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +127 -0
  3272. package/dist/node_modules/zod/src/v4/classic/tests/pipe.test.ts +81 -0
  3273. package/dist/node_modules/zod/src/v4/classic/tests/prefault.test.ts +37 -0
  3274. package/dist/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +298 -0
  3275. package/dist/node_modules/zod/src/v4/classic/tests/primitive.test.ts +175 -0
  3276. package/dist/node_modules/zod/src/v4/classic/tests/promise.test.ts +81 -0
  3277. package/dist/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +23 -0
  3278. package/dist/node_modules/zod/src/v4/classic/tests/readonly.test.ts +252 -0
  3279. package/dist/node_modules/zod/src/v4/classic/tests/record.test.ts +342 -0
  3280. package/dist/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +356 -0
  3281. package/dist/node_modules/zod/src/v4/classic/tests/refine.test.ts +532 -0
  3282. package/dist/node_modules/zod/src/v4/classic/tests/registries.test.ts +204 -0
  3283. package/dist/node_modules/zod/src/v4/classic/tests/set.test.ts +179 -0
  3284. package/dist/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +57 -0
  3285. package/dist/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +109 -0
  3286. package/dist/node_modules/zod/src/v4/classic/tests/string.test.ts +881 -0
  3287. package/dist/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +66 -0
  3288. package/dist/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +758 -0
  3289. package/dist/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +2314 -0
  3290. package/dist/node_modules/zod/src/v4/classic/tests/transform.test.ts +250 -0
  3291. package/dist/node_modules/zod/src/v4/classic/tests/tuple.test.ts +163 -0
  3292. package/dist/node_modules/zod/src/v4/classic/tests/union.test.ts +94 -0
  3293. package/dist/node_modules/zod/src/v4/classic/tests/validations.test.ts +283 -0
  3294. package/dist/node_modules/zod/src/v4/classic/tests/void.test.ts +12 -0
  3295. package/dist/node_modules/zod/src/v4/core/api.ts +1594 -0
  3296. package/dist/node_modules/zod/src/v4/core/checks.ts +1283 -0
  3297. package/dist/node_modules/zod/src/v4/core/config.ts +15 -0
  3298. package/dist/node_modules/zod/src/v4/core/core.ts +134 -0
  3299. package/dist/node_modules/zod/src/v4/core/doc.ts +44 -0
  3300. package/dist/node_modules/zod/src/v4/core/errors.ts +424 -0
  3301. package/dist/node_modules/zod/src/v4/core/function.ts +176 -0
  3302. package/dist/node_modules/zod/src/v4/core/index.ts +15 -0
  3303. package/dist/node_modules/zod/src/v4/core/json-schema.ts +143 -0
  3304. package/dist/node_modules/zod/src/v4/core/parse.ts +94 -0
  3305. package/dist/node_modules/zod/src/v4/core/regexes.ts +135 -0
  3306. package/dist/node_modules/zod/src/v4/core/registries.ts +96 -0
  3307. package/dist/node_modules/zod/src/v4/core/schemas.ts +3842 -0
  3308. package/dist/node_modules/zod/src/v4/core/standard-schema.ts +64 -0
  3309. package/dist/node_modules/zod/src/v4/core/tests/index.test.ts +46 -0
  3310. package/dist/node_modules/zod/src/v4/core/tests/locales/be.test.ts +124 -0
  3311. package/dist/node_modules/zod/src/v4/core/tests/locales/en.test.ts +22 -0
  3312. package/dist/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +128 -0
  3313. package/dist/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +69 -0
  3314. package/dist/node_modules/zod/src/v4/core/to-json-schema.ts +977 -0
  3315. package/dist/node_modules/zod/src/v4/core/util.ts +775 -0
  3316. package/dist/node_modules/zod/src/v4/core/versions.ts +5 -0
  3317. package/dist/node_modules/zod/src/v4/core/zsf.ts +323 -0
  3318. package/dist/node_modules/zod/src/v4/index.ts +4 -0
  3319. package/dist/node_modules/zod/src/v4/locales/ar.ts +125 -0
  3320. package/dist/node_modules/zod/src/v4/locales/az.ts +121 -0
  3321. package/dist/node_modules/zod/src/v4/locales/be.ts +184 -0
  3322. package/dist/node_modules/zod/src/v4/locales/ca.ts +127 -0
  3323. package/dist/node_modules/zod/src/v4/locales/cs.ts +142 -0
  3324. package/dist/node_modules/zod/src/v4/locales/de.ts +124 -0
  3325. package/dist/node_modules/zod/src/v4/locales/en.ts +127 -0
  3326. package/dist/node_modules/zod/src/v4/locales/eo.ts +125 -0
  3327. package/dist/node_modules/zod/src/v4/locales/es.ts +125 -0
  3328. package/dist/node_modules/zod/src/v4/locales/fa.ts +134 -0
  3329. package/dist/node_modules/zod/src/v4/locales/fi.ts +131 -0
  3330. package/dist/node_modules/zod/src/v4/locales/fr-CA.ts +126 -0
  3331. package/dist/node_modules/zod/src/v4/locales/fr.ts +124 -0
  3332. package/dist/node_modules/zod/src/v4/locales/he.ts +125 -0
  3333. package/dist/node_modules/zod/src/v4/locales/hu.ts +126 -0
  3334. package/dist/node_modules/zod/src/v4/locales/id.ts +125 -0
  3335. package/dist/node_modules/zod/src/v4/locales/index.ts +39 -0
  3336. package/dist/node_modules/zod/src/v4/locales/it.ts +125 -0
  3337. package/dist/node_modules/zod/src/v4/locales/ja.ts +122 -0
  3338. package/dist/node_modules/zod/src/v4/locales/kh.ts +126 -0
  3339. package/dist/node_modules/zod/src/v4/locales/ko.ts +131 -0
  3340. package/dist/node_modules/zod/src/v4/locales/mk.ts +127 -0
  3341. package/dist/node_modules/zod/src/v4/locales/ms.ts +124 -0
  3342. package/dist/node_modules/zod/src/v4/locales/nl.ts +126 -0
  3343. package/dist/node_modules/zod/src/v4/locales/no.ts +124 -0
  3344. package/dist/node_modules/zod/src/v4/locales/ota.ts +125 -0
  3345. package/dist/node_modules/zod/src/v4/locales/pl.ts +126 -0
  3346. package/dist/node_modules/zod/src/v4/locales/ps.ts +133 -0
  3347. package/dist/node_modules/zod/src/v4/locales/pt.ts +123 -0
  3348. package/dist/node_modules/zod/src/v4/locales/ru.ts +184 -0
  3349. package/dist/node_modules/zod/src/v4/locales/sl.ts +126 -0
  3350. package/dist/node_modules/zod/src/v4/locales/sv.ts +127 -0
  3351. package/dist/node_modules/zod/src/v4/locales/ta.ts +125 -0
  3352. package/dist/node_modules/zod/src/v4/locales/th.ts +126 -0
  3353. package/dist/node_modules/zod/src/v4/locales/tr.ts +121 -0
  3354. package/dist/node_modules/zod/src/v4/locales/ua.ts +126 -0
  3355. package/dist/node_modules/zod/src/v4/locales/ur.ts +126 -0
  3356. package/dist/node_modules/zod/src/v4/locales/vi.ts +125 -0
  3357. package/dist/node_modules/zod/src/v4/locales/zh-CN.ts +123 -0
  3358. package/dist/node_modules/zod/src/v4/locales/zh-TW.ts +125 -0
  3359. package/dist/node_modules/zod/src/v4/mini/checks.ts +32 -0
  3360. package/dist/node_modules/zod/src/v4/mini/coerce.ts +22 -0
  3361. package/dist/node_modules/zod/src/v4/mini/external.ts +40 -0
  3362. package/dist/node_modules/zod/src/v4/mini/index.ts +3 -0
  3363. package/dist/node_modules/zod/src/v4/mini/iso.ts +62 -0
  3364. package/dist/node_modules/zod/src/v4/mini/parse.ts +1 -0
  3365. package/dist/node_modules/zod/src/v4/mini/schemas.ts +1579 -0
  3366. package/dist/node_modules/zod/src/v4/mini/tests/assignability.test.ts +129 -0
  3367. package/dist/node_modules/zod/src/v4/mini/tests/brand.test.ts +51 -0
  3368. package/dist/node_modules/zod/src/v4/mini/tests/checks.test.ts +144 -0
  3369. package/dist/node_modules/zod/src/v4/mini/tests/computed.test.ts +36 -0
  3370. package/dist/node_modules/zod/src/v4/mini/tests/error.test.ts +22 -0
  3371. package/dist/node_modules/zod/src/v4/mini/tests/functions.test.ts +43 -0
  3372. package/dist/node_modules/zod/src/v4/mini/tests/index.test.ts +871 -0
  3373. package/dist/node_modules/zod/src/v4/mini/tests/number.test.ts +95 -0
  3374. package/dist/node_modules/zod/src/v4/mini/tests/object.test.ts +185 -0
  3375. package/dist/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +43 -0
  3376. package/dist/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +275 -0
  3377. package/dist/node_modules/zod/src/v4/mini/tests/string.test.ts +299 -0
  3378. package/dist/node_modules/zod/src/v4-mini/index.ts +1 -0
  3379. package/dist/node_modules/zod/v3/ZodError.cjs +138 -0
  3380. package/dist/node_modules/zod/v3/ZodError.d.cts +164 -0
  3381. package/dist/node_modules/zod/v3/ZodError.d.ts +164 -0
  3382. package/dist/node_modules/zod/v3/ZodError.js +133 -0
  3383. package/dist/node_modules/zod/v3/errors.cjs +17 -0
  3384. package/dist/node_modules/zod/v3/errors.d.cts +5 -0
  3385. package/dist/node_modules/zod/v3/errors.d.ts +5 -0
  3386. package/dist/node_modules/zod/v3/errors.js +9 -0
  3387. package/dist/node_modules/zod/v3/external.cjs +22 -0
  3388. package/dist/node_modules/zod/v3/external.d.cts +6 -0
  3389. package/dist/node_modules/zod/v3/external.d.ts +6 -0
  3390. package/dist/node_modules/zod/v3/external.js +6 -0
  3391. package/dist/node_modules/zod/v3/helpers/enumUtil.cjs +2 -0
  3392. package/dist/node_modules/zod/v3/helpers/enumUtil.d.cts +8 -0
  3393. package/dist/node_modules/zod/v3/helpers/enumUtil.d.ts +8 -0
  3394. package/dist/node_modules/zod/v3/helpers/enumUtil.js +1 -0
  3395. package/dist/node_modules/zod/v3/helpers/errorUtil.cjs +9 -0
  3396. package/dist/node_modules/zod/v3/helpers/errorUtil.d.cts +9 -0
  3397. package/dist/node_modules/zod/v3/helpers/errorUtil.d.ts +9 -0
  3398. package/dist/node_modules/zod/v3/helpers/errorUtil.js +6 -0
  3399. package/dist/node_modules/zod/v3/helpers/parseUtil.cjs +124 -0
  3400. package/dist/node_modules/zod/v3/helpers/parseUtil.d.cts +78 -0
  3401. package/dist/node_modules/zod/v3/helpers/parseUtil.d.ts +78 -0
  3402. package/dist/node_modules/zod/v3/helpers/parseUtil.js +109 -0
  3403. package/dist/node_modules/zod/v3/helpers/partialUtil.cjs +2 -0
  3404. package/dist/node_modules/zod/v3/helpers/partialUtil.d.cts +8 -0
  3405. package/dist/node_modules/zod/v3/helpers/partialUtil.d.ts +8 -0
  3406. package/dist/node_modules/zod/v3/helpers/partialUtil.js +1 -0
  3407. package/dist/node_modules/zod/v3/helpers/typeAliases.cjs +2 -0
  3408. package/dist/node_modules/zod/v3/helpers/typeAliases.d.cts +2 -0
  3409. package/dist/node_modules/zod/v3/helpers/typeAliases.d.ts +2 -0
  3410. package/dist/node_modules/zod/v3/helpers/typeAliases.js +1 -0
  3411. package/dist/node_modules/zod/v3/helpers/util.cjs +137 -0
  3412. package/dist/node_modules/zod/v3/helpers/util.d.cts +85 -0
  3413. package/dist/node_modules/zod/v3/helpers/util.d.ts +85 -0
  3414. package/dist/node_modules/zod/v3/helpers/util.js +133 -0
  3415. package/dist/node_modules/zod/v3/index.cjs +33 -0
  3416. package/dist/node_modules/zod/v3/index.d.cts +4 -0
  3417. package/dist/node_modules/zod/v3/index.d.ts +4 -0
  3418. package/dist/node_modules/zod/v3/index.js +4 -0
  3419. package/dist/node_modules/zod/v3/locales/en.cjs +111 -0
  3420. package/dist/node_modules/zod/v3/locales/en.d.cts +3 -0
  3421. package/dist/node_modules/zod/v3/locales/en.d.ts +3 -0
  3422. package/dist/node_modules/zod/v3/locales/en.js +109 -0
  3423. package/dist/node_modules/zod/v3/standard-schema.cjs +2 -0
  3424. package/dist/node_modules/zod/v3/standard-schema.d.cts +102 -0
  3425. package/dist/node_modules/zod/v3/standard-schema.d.ts +102 -0
  3426. package/dist/node_modules/zod/v3/standard-schema.js +1 -0
  3427. package/dist/node_modules/zod/v3/types.cjs +3775 -0
  3428. package/dist/node_modules/zod/v3/types.d.cts +1031 -0
  3429. package/dist/node_modules/zod/v3/types.d.ts +1031 -0
  3430. package/dist/node_modules/zod/v3/types.js +3693 -0
  3431. package/dist/node_modules/zod/v4/classic/checks.cjs +32 -0
  3432. package/dist/node_modules/zod/v4/classic/checks.d.cts +1 -0
  3433. package/dist/node_modules/zod/v4/classic/checks.d.ts +1 -0
  3434. package/dist/node_modules/zod/v4/classic/checks.js +1 -0
  3435. package/dist/node_modules/zod/v4/classic/coerce.cjs +47 -0
  3436. package/dist/node_modules/zod/v4/classic/coerce.d.cts +17 -0
  3437. package/dist/node_modules/zod/v4/classic/coerce.d.ts +17 -0
  3438. package/dist/node_modules/zod/v4/classic/coerce.js +17 -0
  3439. package/dist/node_modules/zod/v4/classic/compat.cjs +57 -0
  3440. package/dist/node_modules/zod/v4/classic/compat.d.cts +46 -0
  3441. package/dist/node_modules/zod/v4/classic/compat.d.ts +46 -0
  3442. package/dist/node_modules/zod/v4/classic/compat.js +27 -0
  3443. package/dist/node_modules/zod/v4/classic/errors.cjs +67 -0
  3444. package/dist/node_modules/zod/v4/classic/errors.d.cts +30 -0
  3445. package/dist/node_modules/zod/v4/classic/errors.d.ts +30 -0
  3446. package/dist/node_modules/zod/v4/classic/errors.js +41 -0
  3447. package/dist/node_modules/zod/v4/classic/external.cjs +70 -0
  3448. package/dist/node_modules/zod/v4/classic/external.d.cts +13 -0
  3449. package/dist/node_modules/zod/v4/classic/external.d.ts +13 -0
  3450. package/dist/node_modules/zod/v4/classic/external.js +18 -0
  3451. package/dist/node_modules/zod/v4/classic/index.cjs +33 -0
  3452. package/dist/node_modules/zod/v4/classic/index.d.cts +4 -0
  3453. package/dist/node_modules/zod/v4/classic/index.d.ts +4 -0
  3454. package/dist/node_modules/zod/v4/classic/index.js +4 -0
  3455. package/dist/node_modules/zod/v4/classic/iso.cjs +60 -0
  3456. package/dist/node_modules/zod/v4/classic/iso.d.cts +22 -0
  3457. package/dist/node_modules/zod/v4/classic/iso.d.ts +22 -0
  3458. package/dist/node_modules/zod/v4/classic/iso.js +30 -0
  3459. package/dist/node_modules/zod/v4/classic/parse.cjs +32 -0
  3460. package/dist/node_modules/zod/v4/classic/parse.d.cts +23 -0
  3461. package/dist/node_modules/zod/v4/classic/parse.d.ts +23 -0
  3462. package/dist/node_modules/zod/v4/classic/parse.js +6 -0
  3463. package/dist/node_modules/zod/v4/classic/schemas.cjs +1109 -0
  3464. package/dist/node_modules/zod/v4/classic/schemas.d.cts +630 -0
  3465. package/dist/node_modules/zod/v4/classic/schemas.d.ts +630 -0
  3466. package/dist/node_modules/zod/v4/classic/schemas.js +1006 -0
  3467. package/dist/node_modules/zod/v4/core/api.cjs +1039 -0
  3468. package/dist/node_modules/zod/v4/core/api.d.cts +284 -0
  3469. package/dist/node_modules/zod/v4/core/api.d.ts +284 -0
  3470. package/dist/node_modules/zod/v4/core/api.js +906 -0
  3471. package/dist/node_modules/zod/v4/core/checks.cjs +591 -0
  3472. package/dist/node_modules/zod/v4/core/checks.d.cts +278 -0
  3473. package/dist/node_modules/zod/v4/core/checks.d.ts +278 -0
  3474. package/dist/node_modules/zod/v4/core/checks.js +565 -0
  3475. package/dist/node_modules/zod/v4/core/core.cjs +67 -0
  3476. package/dist/node_modules/zod/v4/core/core.d.cts +49 -0
  3477. package/dist/node_modules/zod/v4/core/core.d.ts +49 -0
  3478. package/dist/node_modules/zod/v4/core/core.js +61 -0
  3479. package/dist/node_modules/zod/v4/core/doc.cjs +39 -0
  3480. package/dist/node_modules/zod/v4/core/doc.d.cts +14 -0
  3481. package/dist/node_modules/zod/v4/core/doc.d.ts +14 -0
  3482. package/dist/node_modules/zod/v4/core/doc.js +35 -0
  3483. package/dist/node_modules/zod/v4/core/errors.cjs +226 -0
  3484. package/dist/node_modules/zod/v4/core/errors.d.cts +208 -0
  3485. package/dist/node_modules/zod/v4/core/errors.d.ts +208 -0
  3486. package/dist/node_modules/zod/v4/core/errors.js +195 -0
  3487. package/dist/node_modules/zod/v4/core/function.cjs +102 -0
  3488. package/dist/node_modules/zod/v4/core/function.d.cts +52 -0
  3489. package/dist/node_modules/zod/v4/core/function.d.ts +52 -0
  3490. package/dist/node_modules/zod/v4/core/function.js +75 -0
  3491. package/dist/node_modules/zod/v4/core/index.cjs +44 -0
  3492. package/dist/node_modules/zod/v4/core/index.d.cts +15 -0
  3493. package/dist/node_modules/zod/v4/core/index.d.ts +15 -0
  3494. package/dist/node_modules/zod/v4/core/index.js +15 -0
  3495. package/dist/node_modules/zod/v4/core/json-schema.cjs +2 -0
  3496. package/dist/node_modules/zod/v4/core/json-schema.d.cts +87 -0
  3497. package/dist/node_modules/zod/v4/core/json-schema.d.ts +87 -0
  3498. package/dist/node_modules/zod/v4/core/json-schema.js +1 -0
  3499. package/dist/node_modules/zod/v4/core/parse.cjs +87 -0
  3500. package/dist/node_modules/zod/v4/core/parse.d.cts +25 -0
  3501. package/dist/node_modules/zod/v4/core/parse.d.ts +25 -0
  3502. package/dist/node_modules/zod/v4/core/parse.js +57 -0
  3503. package/dist/node_modules/zod/v4/core/regexes.cjs +103 -0
  3504. package/dist/node_modules/zod/v4/core/regexes.d.cts +62 -0
  3505. package/dist/node_modules/zod/v4/core/regexes.d.ts +62 -0
  3506. package/dist/node_modules/zod/v4/core/regexes.js +95 -0
  3507. package/dist/node_modules/zod/v4/core/registries.cjs +56 -0
  3508. package/dist/node_modules/zod/v4/core/registries.d.cts +35 -0
  3509. package/dist/node_modules/zod/v4/core/registries.d.ts +35 -0
  3510. package/dist/node_modules/zod/v4/core/registries.js +51 -0
  3511. package/dist/node_modules/zod/v4/core/schemas.cjs +1748 -0
  3512. package/dist/node_modules/zod/v4/core/schemas.d.cts +1041 -0
  3513. package/dist/node_modules/zod/v4/core/schemas.d.ts +1041 -0
  3514. package/dist/node_modules/zod/v4/core/schemas.js +1717 -0
  3515. package/dist/node_modules/zod/v4/core/standard-schema.cjs +2 -0
  3516. package/dist/node_modules/zod/v4/core/standard-schema.d.cts +55 -0
  3517. package/dist/node_modules/zod/v4/core/standard-schema.d.ts +55 -0
  3518. package/dist/node_modules/zod/v4/core/standard-schema.js +1 -0
  3519. package/dist/node_modules/zod/v4/core/to-json-schema.cjs +854 -0
  3520. package/dist/node_modules/zod/v4/core/to-json-schema.d.cts +88 -0
  3521. package/dist/node_modules/zod/v4/core/to-json-schema.d.ts +88 -0
  3522. package/dist/node_modules/zod/v4/core/to-json-schema.js +849 -0
  3523. package/dist/node_modules/zod/v4/core/util.cjs +539 -0
  3524. package/dist/node_modules/zod/v4/core/util.d.cts +183 -0
  3525. package/dist/node_modules/zod/v4/core/util.d.ts +183 -0
  3526. package/dist/node_modules/zod/v4/core/util.js +493 -0
  3527. package/dist/node_modules/zod/v4/core/versions.cjs +8 -0
  3528. package/dist/node_modules/zod/v4/core/versions.d.cts +5 -0
  3529. package/dist/node_modules/zod/v4/core/versions.d.ts +5 -0
  3530. package/dist/node_modules/zod/v4/core/versions.js +5 -0
  3531. package/dist/node_modules/zod/v4/index.cjs +22 -0
  3532. package/dist/node_modules/zod/v4/index.d.cts +3 -0
  3533. package/dist/node_modules/zod/v4/index.d.ts +3 -0
  3534. package/dist/node_modules/zod/v4/index.js +3 -0
  3535. package/dist/node_modules/zod/v4/locales/ar.cjs +142 -0
  3536. package/dist/node_modules/zod/v4/locales/ar.d.cts +4 -0
  3537. package/dist/node_modules/zod/v4/locales/ar.d.ts +4 -0
  3538. package/dist/node_modules/zod/v4/locales/ar.js +116 -0
  3539. package/dist/node_modules/zod/v4/locales/az.cjs +141 -0
  3540. package/dist/node_modules/zod/v4/locales/az.d.cts +4 -0
  3541. package/dist/node_modules/zod/v4/locales/az.d.ts +4 -0
  3542. package/dist/node_modules/zod/v4/locales/az.js +115 -0
  3543. package/dist/node_modules/zod/v4/locales/be.cjs +190 -0
  3544. package/dist/node_modules/zod/v4/locales/be.d.cts +4 -0
  3545. package/dist/node_modules/zod/v4/locales/be.d.ts +4 -0
  3546. package/dist/node_modules/zod/v4/locales/be.js +164 -0
  3547. package/dist/node_modules/zod/v4/locales/ca.cjs +144 -0
  3548. package/dist/node_modules/zod/v4/locales/ca.d.cts +4 -0
  3549. package/dist/node_modules/zod/v4/locales/ca.d.ts +4 -0
  3550. package/dist/node_modules/zod/v4/locales/ca.js +118 -0
  3551. package/dist/node_modules/zod/v4/locales/cs.cjs +161 -0
  3552. package/dist/node_modules/zod/v4/locales/cs.d.cts +4 -0
  3553. package/dist/node_modules/zod/v4/locales/cs.d.ts +4 -0
  3554. package/dist/node_modules/zod/v4/locales/cs.js +135 -0
  3555. package/dist/node_modules/zod/v4/locales/de.cjs +142 -0
  3556. package/dist/node_modules/zod/v4/locales/de.d.cts +4 -0
  3557. package/dist/node_modules/zod/v4/locales/de.d.ts +4 -0
  3558. package/dist/node_modules/zod/v4/locales/de.js +116 -0
  3559. package/dist/node_modules/zod/v4/locales/en.cjs +145 -0
  3560. package/dist/node_modules/zod/v4/locales/en.d.cts +5 -0
  3561. package/dist/node_modules/zod/v4/locales/en.d.ts +5 -0
  3562. package/dist/node_modules/zod/v4/locales/en.js +117 -0
  3563. package/dist/node_modules/zod/v4/locales/eo.cjs +144 -0
  3564. package/dist/node_modules/zod/v4/locales/eo.d.cts +5 -0
  3565. package/dist/node_modules/zod/v4/locales/eo.d.ts +5 -0
  3566. package/dist/node_modules/zod/v4/locales/eo.js +116 -0
  3567. package/dist/node_modules/zod/v4/locales/es.cjs +143 -0
  3568. package/dist/node_modules/zod/v4/locales/es.d.cts +4 -0
  3569. package/dist/node_modules/zod/v4/locales/es.d.ts +4 -0
  3570. package/dist/node_modules/zod/v4/locales/es.js +117 -0
  3571. package/dist/node_modules/zod/v4/locales/fa.cjs +148 -0
  3572. package/dist/node_modules/zod/v4/locales/fa.d.cts +4 -0
  3573. package/dist/node_modules/zod/v4/locales/fa.d.ts +4 -0
  3574. package/dist/node_modules/zod/v4/locales/fa.js +122 -0
  3575. package/dist/node_modules/zod/v4/locales/fi.cjs +148 -0
  3576. package/dist/node_modules/zod/v4/locales/fi.d.cts +4 -0
  3577. package/dist/node_modules/zod/v4/locales/fi.d.ts +4 -0
  3578. package/dist/node_modules/zod/v4/locales/fi.js +122 -0
  3579. package/dist/node_modules/zod/v4/locales/fr-CA.cjs +143 -0
  3580. package/dist/node_modules/zod/v4/locales/fr-CA.d.cts +4 -0
  3581. package/dist/node_modules/zod/v4/locales/fr-CA.d.ts +4 -0
  3582. package/dist/node_modules/zod/v4/locales/fr-CA.js +117 -0
  3583. package/dist/node_modules/zod/v4/locales/fr.cjs +142 -0
  3584. package/dist/node_modules/zod/v4/locales/fr.d.cts +4 -0
  3585. package/dist/node_modules/zod/v4/locales/fr.d.ts +4 -0
  3586. package/dist/node_modules/zod/v4/locales/fr.js +116 -0
  3587. package/dist/node_modules/zod/v4/locales/he.cjs +143 -0
  3588. package/dist/node_modules/zod/v4/locales/he.d.cts +4 -0
  3589. package/dist/node_modules/zod/v4/locales/he.d.ts +4 -0
  3590. package/dist/node_modules/zod/v4/locales/he.js +117 -0
  3591. package/dist/node_modules/zod/v4/locales/hu.cjs +143 -0
  3592. package/dist/node_modules/zod/v4/locales/hu.d.cts +4 -0
  3593. package/dist/node_modules/zod/v4/locales/hu.d.ts +4 -0
  3594. package/dist/node_modules/zod/v4/locales/hu.js +117 -0
  3595. package/dist/node_modules/zod/v4/locales/id.cjs +142 -0
  3596. package/dist/node_modules/zod/v4/locales/id.d.cts +4 -0
  3597. package/dist/node_modules/zod/v4/locales/id.d.ts +4 -0
  3598. package/dist/node_modules/zod/v4/locales/id.js +116 -0
  3599. package/dist/node_modules/zod/v4/locales/index.cjs +84 -0
  3600. package/dist/node_modules/zod/v4/locales/index.d.cts +39 -0
  3601. package/dist/node_modules/zod/v4/locales/index.d.ts +39 -0
  3602. package/dist/node_modules/zod/v4/locales/index.js +39 -0
  3603. package/dist/node_modules/zod/v4/locales/it.cjs +143 -0
  3604. package/dist/node_modules/zod/v4/locales/it.d.cts +4 -0
  3605. package/dist/node_modules/zod/v4/locales/it.d.ts +4 -0
  3606. package/dist/node_modules/zod/v4/locales/it.js +117 -0
  3607. package/dist/node_modules/zod/v4/locales/ja.cjs +141 -0
  3608. package/dist/node_modules/zod/v4/locales/ja.d.cts +4 -0
  3609. package/dist/node_modules/zod/v4/locales/ja.d.ts +4 -0
  3610. package/dist/node_modules/zod/v4/locales/ja.js +115 -0
  3611. package/dist/node_modules/zod/v4/locales/kh.cjs +143 -0
  3612. package/dist/node_modules/zod/v4/locales/kh.d.cts +4 -0
  3613. package/dist/node_modules/zod/v4/locales/kh.d.ts +4 -0
  3614. package/dist/node_modules/zod/v4/locales/kh.js +117 -0
  3615. package/dist/node_modules/zod/v4/locales/ko.cjs +147 -0
  3616. package/dist/node_modules/zod/v4/locales/ko.d.cts +4 -0
  3617. package/dist/node_modules/zod/v4/locales/ko.d.ts +4 -0
  3618. package/dist/node_modules/zod/v4/locales/ko.js +121 -0
  3619. package/dist/node_modules/zod/v4/locales/mk.cjs +144 -0
  3620. package/dist/node_modules/zod/v4/locales/mk.d.cts +4 -0
  3621. package/dist/node_modules/zod/v4/locales/mk.d.ts +4 -0
  3622. package/dist/node_modules/zod/v4/locales/mk.js +118 -0
  3623. package/dist/node_modules/zod/v4/locales/ms.cjs +142 -0
  3624. package/dist/node_modules/zod/v4/locales/ms.d.cts +4 -0
  3625. package/dist/node_modules/zod/v4/locales/ms.d.ts +4 -0
  3626. package/dist/node_modules/zod/v4/locales/ms.js +116 -0
  3627. package/dist/node_modules/zod/v4/locales/nl.cjs +143 -0
  3628. package/dist/node_modules/zod/v4/locales/nl.d.cts +4 -0
  3629. package/dist/node_modules/zod/v4/locales/nl.d.ts +4 -0
  3630. package/dist/node_modules/zod/v4/locales/nl.js +117 -0
  3631. package/dist/node_modules/zod/v4/locales/no.cjs +142 -0
  3632. package/dist/node_modules/zod/v4/locales/no.d.cts +4 -0
  3633. package/dist/node_modules/zod/v4/locales/no.d.ts +4 -0
  3634. package/dist/node_modules/zod/v4/locales/no.js +116 -0
  3635. package/dist/node_modules/zod/v4/locales/ota.cjs +143 -0
  3636. package/dist/node_modules/zod/v4/locales/ota.d.cts +4 -0
  3637. package/dist/node_modules/zod/v4/locales/ota.d.ts +4 -0
  3638. package/dist/node_modules/zod/v4/locales/ota.js +117 -0
  3639. package/dist/node_modules/zod/v4/locales/pl.cjs +143 -0
  3640. package/dist/node_modules/zod/v4/locales/pl.d.cts +4 -0
  3641. package/dist/node_modules/zod/v4/locales/pl.d.ts +4 -0
  3642. package/dist/node_modules/zod/v4/locales/pl.js +117 -0
  3643. package/dist/node_modules/zod/v4/locales/ps.cjs +148 -0
  3644. package/dist/node_modules/zod/v4/locales/ps.d.cts +4 -0
  3645. package/dist/node_modules/zod/v4/locales/ps.d.ts +4 -0
  3646. package/dist/node_modules/zod/v4/locales/ps.js +122 -0
  3647. package/dist/node_modules/zod/v4/locales/pt.cjs +142 -0
  3648. package/dist/node_modules/zod/v4/locales/pt.d.cts +4 -0
  3649. package/dist/node_modules/zod/v4/locales/pt.d.ts +4 -0
  3650. package/dist/node_modules/zod/v4/locales/pt.js +116 -0
  3651. package/dist/node_modules/zod/v4/locales/ru.cjs +190 -0
  3652. package/dist/node_modules/zod/v4/locales/ru.d.cts +4 -0
  3653. package/dist/node_modules/zod/v4/locales/ru.d.ts +4 -0
  3654. package/dist/node_modules/zod/v4/locales/ru.js +164 -0
  3655. package/dist/node_modules/zod/v4/locales/sl.cjs +143 -0
  3656. package/dist/node_modules/zod/v4/locales/sl.d.cts +4 -0
  3657. package/dist/node_modules/zod/v4/locales/sl.d.ts +4 -0
  3658. package/dist/node_modules/zod/v4/locales/sl.js +117 -0
  3659. package/dist/node_modules/zod/v4/locales/sv.cjs +144 -0
  3660. package/dist/node_modules/zod/v4/locales/sv.d.cts +4 -0
  3661. package/dist/node_modules/zod/v4/locales/sv.d.ts +4 -0
  3662. package/dist/node_modules/zod/v4/locales/sv.js +118 -0
  3663. package/dist/node_modules/zod/v4/locales/ta.cjs +143 -0
  3664. package/dist/node_modules/zod/v4/locales/ta.d.cts +4 -0
  3665. package/dist/node_modules/zod/v4/locales/ta.d.ts +4 -0
  3666. package/dist/node_modules/zod/v4/locales/ta.js +117 -0
  3667. package/dist/node_modules/zod/v4/locales/th.cjs +143 -0
  3668. package/dist/node_modules/zod/v4/locales/th.d.cts +4 -0
  3669. package/dist/node_modules/zod/v4/locales/th.d.ts +4 -0
  3670. package/dist/node_modules/zod/v4/locales/th.js +117 -0
  3671. package/dist/node_modules/zod/v4/locales/tr.cjs +143 -0
  3672. package/dist/node_modules/zod/v4/locales/tr.d.cts +5 -0
  3673. package/dist/node_modules/zod/v4/locales/tr.d.ts +5 -0
  3674. package/dist/node_modules/zod/v4/locales/tr.js +115 -0
  3675. package/dist/node_modules/zod/v4/locales/ua.cjs +143 -0
  3676. package/dist/node_modules/zod/v4/locales/ua.d.cts +4 -0
  3677. package/dist/node_modules/zod/v4/locales/ua.d.ts +4 -0
  3678. package/dist/node_modules/zod/v4/locales/ua.js +117 -0
  3679. package/dist/node_modules/zod/v4/locales/ur.cjs +143 -0
  3680. package/dist/node_modules/zod/v4/locales/ur.d.cts +4 -0
  3681. package/dist/node_modules/zod/v4/locales/ur.d.ts +4 -0
  3682. package/dist/node_modules/zod/v4/locales/ur.js +117 -0
  3683. package/dist/node_modules/zod/v4/locales/vi.cjs +142 -0
  3684. package/dist/node_modules/zod/v4/locales/vi.d.cts +4 -0
  3685. package/dist/node_modules/zod/v4/locales/vi.d.ts +4 -0
  3686. package/dist/node_modules/zod/v4/locales/vi.js +116 -0
  3687. package/dist/node_modules/zod/v4/locales/zh-CN.cjs +142 -0
  3688. package/dist/node_modules/zod/v4/locales/zh-CN.d.cts +4 -0
  3689. package/dist/node_modules/zod/v4/locales/zh-CN.d.ts +4 -0
  3690. package/dist/node_modules/zod/v4/locales/zh-CN.js +116 -0
  3691. package/dist/node_modules/zod/v4/locales/zh-TW.cjs +143 -0
  3692. package/dist/node_modules/zod/v4/locales/zh-TW.d.cts +4 -0
  3693. package/dist/node_modules/zod/v4/locales/zh-TW.d.ts +4 -0
  3694. package/dist/node_modules/zod/v4/locales/zh-TW.js +117 -0
  3695. package/dist/node_modules/zod/v4/mini/checks.cjs +34 -0
  3696. package/dist/node_modules/zod/v4/mini/checks.d.cts +1 -0
  3697. package/dist/node_modules/zod/v4/mini/checks.d.ts +1 -0
  3698. package/dist/node_modules/zod/v4/mini/checks.js +1 -0
  3699. package/dist/node_modules/zod/v4/mini/coerce.cjs +47 -0
  3700. package/dist/node_modules/zod/v4/mini/coerce.d.cts +7 -0
  3701. package/dist/node_modules/zod/v4/mini/coerce.d.ts +7 -0
  3702. package/dist/node_modules/zod/v4/mini/coerce.js +17 -0
  3703. package/dist/node_modules/zod/v4/mini/external.cjs +62 -0
  3704. package/dist/node_modules/zod/v4/mini/external.d.cts +11 -0
  3705. package/dist/node_modules/zod/v4/mini/external.d.ts +11 -0
  3706. package/dist/node_modules/zod/v4/mini/external.js +13 -0
  3707. package/dist/node_modules/zod/v4/mini/index.cjs +32 -0
  3708. package/dist/node_modules/zod/v4/mini/index.d.cts +3 -0
  3709. package/dist/node_modules/zod/v4/mini/index.d.ts +3 -0
  3710. package/dist/node_modules/zod/v4/mini/index.js +3 -0
  3711. package/dist/node_modules/zod/v4/mini/iso.cjs +60 -0
  3712. package/dist/node_modules/zod/v4/mini/iso.d.cts +22 -0
  3713. package/dist/node_modules/zod/v4/mini/iso.d.ts +22 -0
  3714. package/dist/node_modules/zod/v4/mini/iso.js +30 -0
  3715. package/dist/node_modules/zod/v4/mini/parse.cjs +8 -0
  3716. package/dist/node_modules/zod/v4/mini/parse.d.cts +1 -0
  3717. package/dist/node_modules/zod/v4/mini/parse.d.ts +1 -0
  3718. package/dist/node_modules/zod/v4/mini/parse.js +1 -0
  3719. package/dist/node_modules/zod/v4/mini/schemas.cjs +839 -0
  3720. package/dist/node_modules/zod/v4/mini/schemas.d.cts +356 -0
  3721. package/dist/node_modules/zod/v4/mini/schemas.d.ts +356 -0
  3722. package/dist/node_modules/zod/v4/mini/schemas.js +732 -0
  3723. package/dist/node_modules/zod/v4-mini/index.cjs +17 -0
  3724. package/dist/node_modules/zod/v4-mini/index.d.cts +1 -0
  3725. package/dist/node_modules/zod/v4-mini/index.d.ts +1 -0
  3726. package/dist/node_modules/zod/v4-mini/index.js +1 -0
  3727. package/dist/node_modules/zwitch/index.d.ts +67 -0
  3728. package/dist/node_modules/zwitch/index.js +118 -0
  3729. package/dist/node_modules/zwitch/license +22 -0
  3730. package/dist/node_modules/zwitch/package.json +72 -0
  3731. package/dist/node_modules/zwitch/readme.md +226 -0
  3732. package/dist/owner-report.d.ts +26 -0
  3733. package/dist/owner-report.js +98 -0
  3734. package/dist/policy.d.ts +3 -3
  3735. package/dist/policy.js +2 -1
  3736. package/dist/runtime-manifest.json +1 -0
  3737. package/dist/server-ops.d.ts +10 -0
  3738. package/dist/server-ops.js +231 -3
  3739. package/dist/staged-connect.d.ts +37 -0
  3740. package/dist/staged-connect.js +296 -0
  3741. package/dist/staged-device.d.ts +109 -0
  3742. package/dist/staged-device.js +227 -0
  3743. package/dist/staged-session.d.ts +115 -0
  3744. package/dist/staged-session.js +354 -0
  3745. package/dist/state.d.ts +36 -8
  3746. package/dist/state.js +101 -15
  3747. package/package.json +10 -6
@@ -0,0 +1,4347 @@
1
+ /**
2
+ * A Javascript implementation of Transport Layer Security (TLS).
3
+ *
4
+ * @author Dave Longley
5
+ *
6
+ * Copyright (c) 2009-2014 Digital Bazaar, Inc.
7
+ *
8
+ * The TLS Handshake Protocol involves the following steps:
9
+ *
10
+ * - Exchange hello messages to agree on algorithms, exchange random values,
11
+ * and check for session resumption.
12
+ *
13
+ * - Exchange the necessary cryptographic parameters to allow the client and
14
+ * server to agree on a premaster secret.
15
+ *
16
+ * - Exchange certificates and cryptographic information to allow the client
17
+ * and server to authenticate themselves.
18
+ *
19
+ * - Generate a master secret from the premaster secret and exchanged random
20
+ * values.
21
+ *
22
+ * - Provide security parameters to the record layer.
23
+ *
24
+ * - Allow the client and server to verify that their peer has calculated the
25
+ * same security parameters and that the handshake occurred without tampering
26
+ * by an attacker.
27
+ *
28
+ * Up to 4 different messages may be sent during a key exchange. The server
29
+ * certificate, the server key exchange, the client certificate, and the
30
+ * client key exchange.
31
+ *
32
+ * A typical handshake (from the client's perspective).
33
+ *
34
+ * 1. Client sends ClientHello.
35
+ * 2. Client receives ServerHello.
36
+ * 3. Client receives optional Certificate.
37
+ * 4. Client receives optional ServerKeyExchange.
38
+ * 5. Client receives ServerHelloDone.
39
+ * 6. Client sends optional Certificate.
40
+ * 7. Client sends ClientKeyExchange.
41
+ * 8. Client sends optional CertificateVerify.
42
+ * 9. Client sends ChangeCipherSpec.
43
+ * 10. Client sends Finished.
44
+ * 11. Client receives ChangeCipherSpec.
45
+ * 12. Client receives Finished.
46
+ * 13. Client sends/receives application data.
47
+ *
48
+ * To reuse an existing session:
49
+ *
50
+ * 1. Client sends ClientHello with session ID for reuse.
51
+ * 2. Client receives ServerHello with same session ID if reusing.
52
+ * 3. Client receives ChangeCipherSpec message if reusing.
53
+ * 4. Client receives Finished.
54
+ * 5. Client sends ChangeCipherSpec.
55
+ * 6. Client sends Finished.
56
+ *
57
+ * Note: Client ignores HelloRequest if in the middle of a handshake.
58
+ *
59
+ * Record Layer:
60
+ *
61
+ * The record layer fragments information blocks into TLSPlaintext records
62
+ * carrying data in chunks of 2^14 bytes or less. Client message boundaries are
63
+ * not preserved in the record layer (i.e., multiple client messages of the
64
+ * same ContentType MAY be coalesced into a single TLSPlaintext record, or a
65
+ * single message MAY be fragmented across several records).
66
+ *
67
+ * struct {
68
+ * uint8 major;
69
+ * uint8 minor;
70
+ * } ProtocolVersion;
71
+ *
72
+ * struct {
73
+ * ContentType type;
74
+ * ProtocolVersion version;
75
+ * uint16 length;
76
+ * opaque fragment[TLSPlaintext.length];
77
+ * } TLSPlaintext;
78
+ *
79
+ * type:
80
+ * The higher-level protocol used to process the enclosed fragment.
81
+ *
82
+ * version:
83
+ * The version of the protocol being employed. TLS Version 1.2 uses version
84
+ * {3, 3}. TLS Version 1.0 uses version {3, 1}. Note that a client that
85
+ * supports multiple versions of TLS may not know what version will be
86
+ * employed before it receives the ServerHello.
87
+ *
88
+ * length:
89
+ * The length (in bytes) of the following TLSPlaintext.fragment. The length
90
+ * MUST NOT exceed 2^14 = 16384 bytes.
91
+ *
92
+ * fragment:
93
+ * The application data. This data is transparent and treated as an
94
+ * independent block to be dealt with by the higher-level protocol specified
95
+ * by the type field.
96
+ *
97
+ * Implementations MUST NOT send zero-length fragments of Handshake, Alert, or
98
+ * ChangeCipherSpec content types. Zero-length fragments of Application data
99
+ * MAY be sent as they are potentially useful as a traffic analysis
100
+ * countermeasure.
101
+ *
102
+ * Note: Data of different TLS record layer content types MAY be interleaved.
103
+ * Application data is generally of lower precedence for transmission than
104
+ * other content types. However, records MUST be delivered to the network in
105
+ * the same order as they are protected by the record layer. Recipients MUST
106
+ * receive and process interleaved application layer traffic during handshakes
107
+ * subsequent to the first one on a connection.
108
+ *
109
+ * struct {
110
+ * ContentType type; // same as TLSPlaintext.type
111
+ * ProtocolVersion version;// same as TLSPlaintext.version
112
+ * uint16 length;
113
+ * opaque fragment[TLSCompressed.length];
114
+ * } TLSCompressed;
115
+ *
116
+ * length:
117
+ * The length (in bytes) of the following TLSCompressed.fragment.
118
+ * The length MUST NOT exceed 2^14 + 1024.
119
+ *
120
+ * fragment:
121
+ * The compressed form of TLSPlaintext.fragment.
122
+ *
123
+ * Note: A CompressionMethod.null operation is an identity operation; no fields
124
+ * are altered. In this implementation, since no compression is supported,
125
+ * uncompressed records are always the same as compressed records.
126
+ *
127
+ * Encryption Information:
128
+ *
129
+ * The encryption and MAC functions translate a TLSCompressed structure into a
130
+ * TLSCiphertext. The decryption functions reverse the process. The MAC of the
131
+ * record also includes a sequence number so that missing, extra, or repeated
132
+ * messages are detectable.
133
+ *
134
+ * struct {
135
+ * ContentType type;
136
+ * ProtocolVersion version;
137
+ * uint16 length;
138
+ * select (SecurityParameters.cipher_type) {
139
+ * case stream: GenericStreamCipher;
140
+ * case block: GenericBlockCipher;
141
+ * case aead: GenericAEADCipher;
142
+ * } fragment;
143
+ * } TLSCiphertext;
144
+ *
145
+ * type:
146
+ * The type field is identical to TLSCompressed.type.
147
+ *
148
+ * version:
149
+ * The version field is identical to TLSCompressed.version.
150
+ *
151
+ * length:
152
+ * The length (in bytes) of the following TLSCiphertext.fragment.
153
+ * The length MUST NOT exceed 2^14 + 2048.
154
+ *
155
+ * fragment:
156
+ * The encrypted form of TLSCompressed.fragment, with the MAC.
157
+ *
158
+ * Note: Only CBC Block Ciphers are supported by this implementation.
159
+ *
160
+ * The TLSCompressed.fragment structures are converted to/from block
161
+ * TLSCiphertext.fragment structures.
162
+ *
163
+ * struct {
164
+ * opaque IV[SecurityParameters.record_iv_length];
165
+ * block-ciphered struct {
166
+ * opaque content[TLSCompressed.length];
167
+ * opaque MAC[SecurityParameters.mac_length];
168
+ * uint8 padding[GenericBlockCipher.padding_length];
169
+ * uint8 padding_length;
170
+ * };
171
+ * } GenericBlockCipher;
172
+ *
173
+ * The MAC is generated as described in Section 6.2.3.1.
174
+ *
175
+ * IV:
176
+ * The Initialization Vector (IV) SHOULD be chosen at random, and MUST be
177
+ * unpredictable. Note that in versions of TLS prior to 1.1, there was no
178
+ * IV field, and the last ciphertext block of the previous record (the "CBC
179
+ * residue") was used as the IV. This was changed to prevent the attacks
180
+ * described in [CBCATT]. For block ciphers, the IV length is of length
181
+ * SecurityParameters.record_iv_length, which is equal to the
182
+ * SecurityParameters.block_size.
183
+ *
184
+ * padding:
185
+ * Padding that is added to force the length of the plaintext to be an
186
+ * integral multiple of the block cipher's block length. The padding MAY be
187
+ * any length up to 255 bytes, as long as it results in the
188
+ * TLSCiphertext.length being an integral multiple of the block length.
189
+ * Lengths longer than necessary might be desirable to frustrate attacks on
190
+ * a protocol that are based on analysis of the lengths of exchanged
191
+ * messages. Each uint8 in the padding data vector MUST be filled with the
192
+ * padding length value. The receiver MUST check this padding and MUST use
193
+ * the bad_record_mac alert to indicate padding errors.
194
+ *
195
+ * padding_length:
196
+ * The padding length MUST be such that the total size of the
197
+ * GenericBlockCipher structure is a multiple of the cipher's block length.
198
+ * Legal values range from zero to 255, inclusive. This length specifies the
199
+ * length of the padding field exclusive of the padding_length field itself.
200
+ *
201
+ * The encrypted data length (TLSCiphertext.length) is one more than the sum of
202
+ * SecurityParameters.block_length, TLSCompressed.length,
203
+ * SecurityParameters.mac_length, and padding_length.
204
+ *
205
+ * Example: If the block length is 8 bytes, the content length
206
+ * (TLSCompressed.length) is 61 bytes, and the MAC length is 20 bytes, then the
207
+ * length before padding is 82 bytes (this does not include the IV. Thus, the
208
+ * padding length modulo 8 must be equal to 6 in order to make the total length
209
+ * an even multiple of 8 bytes (the block length). The padding length can be
210
+ * 6, 14, 22, and so on, through 254. If the padding length were the minimum
211
+ * necessary, 6, the padding would be 6 bytes, each containing the value 6.
212
+ * Thus, the last 8 octets of the GenericBlockCipher before block encryption
213
+ * would be xx 06 06 06 06 06 06 06, where xx is the last octet of the MAC.
214
+ *
215
+ * Note: With block ciphers in CBC mode (Cipher Block Chaining), it is critical
216
+ * that the entire plaintext of the record be known before any ciphertext is
217
+ * transmitted. Otherwise, it is possible for the attacker to mount the attack
218
+ * described in [CBCATT].
219
+ *
220
+ * Implementation note: Canvel et al. [CBCTIME] have demonstrated a timing
221
+ * attack on CBC padding based on the time required to compute the MAC. In
222
+ * order to defend against this attack, implementations MUST ensure that
223
+ * record processing time is essentially the same whether or not the padding
224
+ * is correct. In general, the best way to do this is to compute the MAC even
225
+ * if the padding is incorrect, and only then reject the packet. For instance,
226
+ * if the pad appears to be incorrect, the implementation might assume a
227
+ * zero-length pad and then compute the MAC. This leaves a small timing
228
+ * channel, since MAC performance depends, to some extent, on the size of the
229
+ * data fragment, but it is not believed to be large enough to be exploitable,
230
+ * due to the large block size of existing MACs and the small size of the
231
+ * timing signal.
232
+ */
233
+ var forge = require('./forge');
234
+ require('./asn1');
235
+ require('./hmac');
236
+ require('./md5');
237
+ require('./pem');
238
+ require('./pki');
239
+ require('./random');
240
+ require('./sha1');
241
+ require('./util');
242
+
243
+ /**
244
+ * Generates pseudo random bytes by mixing the result of two hash functions,
245
+ * MD5 and SHA-1.
246
+ *
247
+ * prf_TLS1(secret, label, seed) =
248
+ * P_MD5(S1, label + seed) XOR P_SHA-1(S2, label + seed);
249
+ *
250
+ * Each P_hash function functions as follows:
251
+ *
252
+ * P_hash(secret, seed) = HMAC_hash(secret, A(1) + seed) +
253
+ * HMAC_hash(secret, A(2) + seed) +
254
+ * HMAC_hash(secret, A(3) + seed) + ...
255
+ * A() is defined as:
256
+ * A(0) = seed
257
+ * A(i) = HMAC_hash(secret, A(i-1))
258
+ *
259
+ * The '+' operator denotes concatenation.
260
+ *
261
+ * As many iterations A(N) as are needed are performed to generate enough
262
+ * pseudo random byte output. If an iteration creates more data than is
263
+ * necessary, then it is truncated.
264
+ *
265
+ * Therefore:
266
+ * A(1) = HMAC_hash(secret, A(0))
267
+ * = HMAC_hash(secret, seed)
268
+ * A(2) = HMAC_hash(secret, A(1))
269
+ * = HMAC_hash(secret, HMAC_hash(secret, seed))
270
+ *
271
+ * Therefore:
272
+ * P_hash(secret, seed) =
273
+ * HMAC_hash(secret, HMAC_hash(secret, A(0)) + seed) +
274
+ * HMAC_hash(secret, HMAC_hash(secret, A(1)) + seed) +
275
+ * ...
276
+ *
277
+ * Therefore:
278
+ * P_hash(secret, seed) =
279
+ * HMAC_hash(secret, HMAC_hash(secret, seed) + seed) +
280
+ * HMAC_hash(secret, HMAC_hash(secret, HMAC_hash(secret, seed)) + seed) +
281
+ * ...
282
+ *
283
+ * @param secret the secret to use.
284
+ * @param label the label to use.
285
+ * @param seed the seed value to use.
286
+ * @param length the number of bytes to generate.
287
+ *
288
+ * @return the pseudo random bytes in a byte buffer.
289
+ */
290
+ var prf_TLS1 = function(secret, label, seed, length) {
291
+ var rval = forge.util.createBuffer();
292
+
293
+ /* For TLS 1.0, the secret is split in half, into two secrets of equal
294
+ length. If the secret has an odd length then the last byte of the first
295
+ half will be the same as the first byte of the second. The length of the
296
+ two secrets is half of the secret rounded up. */
297
+ var idx = (secret.length >> 1);
298
+ var slen = idx + (secret.length & 1);
299
+ var s1 = secret.substr(0, slen);
300
+ var s2 = secret.substr(idx, slen);
301
+ var ai = forge.util.createBuffer();
302
+ var hmac = forge.hmac.create();
303
+ seed = label + seed;
304
+
305
+ // determine the number of iterations that must be performed to generate
306
+ // enough output bytes, md5 creates 16 byte hashes, sha1 creates 20
307
+ var md5itr = Math.ceil(length / 16);
308
+ var sha1itr = Math.ceil(length / 20);
309
+
310
+ // do md5 iterations
311
+ hmac.start('MD5', s1);
312
+ var md5bytes = forge.util.createBuffer();
313
+ ai.putBytes(seed);
314
+ for(var i = 0; i < md5itr; ++i) {
315
+ // HMAC_hash(secret, A(i-1))
316
+ hmac.start(null, null);
317
+ hmac.update(ai.getBytes());
318
+ ai.putBuffer(hmac.digest());
319
+
320
+ // HMAC_hash(secret, A(i) + seed)
321
+ hmac.start(null, null);
322
+ hmac.update(ai.bytes() + seed);
323
+ md5bytes.putBuffer(hmac.digest());
324
+ }
325
+
326
+ // do sha1 iterations
327
+ hmac.start('SHA1', s2);
328
+ var sha1bytes = forge.util.createBuffer();
329
+ ai.clear();
330
+ ai.putBytes(seed);
331
+ for(var i = 0; i < sha1itr; ++i) {
332
+ // HMAC_hash(secret, A(i-1))
333
+ hmac.start(null, null);
334
+ hmac.update(ai.getBytes());
335
+ ai.putBuffer(hmac.digest());
336
+
337
+ // HMAC_hash(secret, A(i) + seed)
338
+ hmac.start(null, null);
339
+ hmac.update(ai.bytes() + seed);
340
+ sha1bytes.putBuffer(hmac.digest());
341
+ }
342
+
343
+ // XOR the md5 bytes with the sha1 bytes
344
+ rval.putBytes(forge.util.xorBytes(
345
+ md5bytes.getBytes(), sha1bytes.getBytes(), length));
346
+
347
+ return rval;
348
+ };
349
+
350
+ /**
351
+ * Generates pseudo random bytes using a SHA256 algorithm. For TLS 1.2.
352
+ *
353
+ * @param secret the secret to use.
354
+ * @param label the label to use.
355
+ * @param seed the seed value to use.
356
+ * @param length the number of bytes to generate.
357
+ *
358
+ * @return the pseudo random bytes in a byte buffer.
359
+ */
360
+ var prf_sha256 = function(secret, label, seed, length) {
361
+ // FIXME: implement me for TLS 1.2
362
+ };
363
+
364
+ /**
365
+ * Gets a MAC for a record using the SHA-1 hash algorithm.
366
+ *
367
+ * @param key the mac key.
368
+ * @param state the sequence number (array of two 32-bit integers).
369
+ * @param record the record.
370
+ *
371
+ * @return the sha-1 hash (20 bytes) for the given record.
372
+ */
373
+ var hmac_sha1 = function(key, seqNum, record) {
374
+ /* MAC is computed like so:
375
+ HMAC_hash(
376
+ key, seqNum +
377
+ TLSCompressed.type +
378
+ TLSCompressed.version +
379
+ TLSCompressed.length +
380
+ TLSCompressed.fragment)
381
+ */
382
+ var hmac = forge.hmac.create();
383
+ hmac.start('SHA1', key);
384
+ var b = forge.util.createBuffer();
385
+ b.putInt32(seqNum[0]);
386
+ b.putInt32(seqNum[1]);
387
+ b.putByte(record.type);
388
+ b.putByte(record.version.major);
389
+ b.putByte(record.version.minor);
390
+ b.putInt16(record.length);
391
+ b.putBytes(record.fragment.bytes());
392
+ hmac.update(b.getBytes());
393
+ return hmac.digest().getBytes();
394
+ };
395
+
396
+ /**
397
+ * Compresses the TLSPlaintext record into a TLSCompressed record using the
398
+ * deflate algorithm.
399
+ *
400
+ * @param c the TLS connection.
401
+ * @param record the TLSPlaintext record to compress.
402
+ * @param s the ConnectionState to use.
403
+ *
404
+ * @return true on success, false on failure.
405
+ */
406
+ var deflate = function(c, record, s) {
407
+ var rval = false;
408
+
409
+ try {
410
+ var bytes = c.deflate(record.fragment.getBytes());
411
+ record.fragment = forge.util.createBuffer(bytes);
412
+ record.length = bytes.length;
413
+ rval = true;
414
+ } catch(ex) {
415
+ // deflate error, fail out
416
+ }
417
+
418
+ return rval;
419
+ };
420
+
421
+ /**
422
+ * Decompresses the TLSCompressed record into a TLSPlaintext record using the
423
+ * deflate algorithm.
424
+ *
425
+ * @param c the TLS connection.
426
+ * @param record the TLSCompressed record to decompress.
427
+ * @param s the ConnectionState to use.
428
+ *
429
+ * @return true on success, false on failure.
430
+ */
431
+ var inflate = function(c, record, s) {
432
+ var rval = false;
433
+
434
+ try {
435
+ var bytes = c.inflate(record.fragment.getBytes());
436
+ record.fragment = forge.util.createBuffer(bytes);
437
+ record.length = bytes.length;
438
+ rval = true;
439
+ } catch(ex) {
440
+ // inflate error, fail out
441
+ }
442
+
443
+ return rval;
444
+ };
445
+
446
+ /**
447
+ * Reads a TLS variable-length vector from a byte buffer.
448
+ *
449
+ * Variable-length vectors are defined by specifying a subrange of legal
450
+ * lengths, inclusively, using the notation <floor..ceiling>. When these are
451
+ * encoded, the actual length precedes the vector's contents in the byte
452
+ * stream. The length will be in the form of a number consuming as many bytes
453
+ * as required to hold the vector's specified maximum (ceiling) length. A
454
+ * variable-length vector with an actual length field of zero is referred to
455
+ * as an empty vector.
456
+ *
457
+ * @param b the byte buffer.
458
+ * @param lenBytes the number of bytes required to store the length.
459
+ *
460
+ * @return the resulting byte buffer.
461
+ */
462
+ var readVector = function(b, lenBytes) {
463
+ var len = 0;
464
+ switch(lenBytes) {
465
+ case 1:
466
+ len = b.getByte();
467
+ break;
468
+ case 2:
469
+ len = b.getInt16();
470
+ break;
471
+ case 3:
472
+ len = b.getInt24();
473
+ break;
474
+ case 4:
475
+ len = b.getInt32();
476
+ break;
477
+ }
478
+
479
+ // read vector bytes into a new buffer
480
+ return forge.util.createBuffer(b.getBytes(len));
481
+ };
482
+
483
+ /**
484
+ * Writes a TLS variable-length vector to a byte buffer.
485
+ *
486
+ * @param b the byte buffer.
487
+ * @param lenBytes the number of bytes required to store the length.
488
+ * @param v the byte buffer vector.
489
+ */
490
+ var writeVector = function(b, lenBytes, v) {
491
+ // encode length at the start of the vector, where the number of bytes for
492
+ // the length is the maximum number of bytes it would take to encode the
493
+ // vector's ceiling
494
+ b.putInt(v.length(), lenBytes << 3);
495
+ b.putBuffer(v);
496
+ };
497
+
498
+ /**
499
+ * The tls implementation.
500
+ */
501
+ var tls = {};
502
+
503
+ /**
504
+ * Version: TLS 1.2 = 3.3, TLS 1.1 = 3.2, TLS 1.0 = 3.1. Both TLS 1.1 and
505
+ * TLS 1.2 were still too new (ie: openSSL didn't implement them) at the time
506
+ * of this implementation so TLS 1.0 was implemented instead.
507
+ */
508
+ tls.Versions = {
509
+ TLS_1_0: {major: 3, minor: 1},
510
+ TLS_1_1: {major: 3, minor: 2},
511
+ TLS_1_2: {major: 3, minor: 3}
512
+ };
513
+ tls.SupportedVersions = [
514
+ tls.Versions.TLS_1_1,
515
+ tls.Versions.TLS_1_0
516
+ ];
517
+ tls.Version = tls.SupportedVersions[0];
518
+
519
+ /**
520
+ * Maximum fragment size. True maximum is 16384, but we fragment before that
521
+ * to allow for unusual small increases during compression.
522
+ */
523
+ tls.MaxFragment = 16384 - 1024;
524
+
525
+ /**
526
+ * Whether this entity is considered the "client" or "server".
527
+ * enum { server, client } ConnectionEnd;
528
+ */
529
+ tls.ConnectionEnd = {
530
+ server: 0,
531
+ client: 1
532
+ };
533
+
534
+ /**
535
+ * Pseudo-random function algorithm used to generate keys from the master
536
+ * secret.
537
+ * enum { tls_prf_sha256 } PRFAlgorithm;
538
+ */
539
+ tls.PRFAlgorithm = {
540
+ tls_prf_sha256: 0
541
+ };
542
+
543
+ /**
544
+ * Bulk encryption algorithms.
545
+ * enum { null, rc4, des3, aes } BulkCipherAlgorithm;
546
+ */
547
+ tls.BulkCipherAlgorithm = {
548
+ none: null,
549
+ rc4: 0,
550
+ des3: 1,
551
+ aes: 2
552
+ };
553
+
554
+ /**
555
+ * Cipher types.
556
+ * enum { stream, block, aead } CipherType;
557
+ */
558
+ tls.CipherType = {
559
+ stream: 0,
560
+ block: 1,
561
+ aead: 2
562
+ };
563
+
564
+ /**
565
+ * MAC (Message Authentication Code) algorithms.
566
+ * enum { null, hmac_md5, hmac_sha1, hmac_sha256,
567
+ * hmac_sha384, hmac_sha512} MACAlgorithm;
568
+ */
569
+ tls.MACAlgorithm = {
570
+ none: null,
571
+ hmac_md5: 0,
572
+ hmac_sha1: 1,
573
+ hmac_sha256: 2,
574
+ hmac_sha384: 3,
575
+ hmac_sha512: 4
576
+ };
577
+
578
+ /**
579
+ * Compression algorithms.
580
+ * enum { null(0), deflate(1), (255) } CompressionMethod;
581
+ */
582
+ tls.CompressionMethod = {
583
+ none: 0,
584
+ deflate: 1
585
+ };
586
+
587
+ /**
588
+ * TLS record content types.
589
+ * enum {
590
+ * change_cipher_spec(20), alert(21), handshake(22),
591
+ * application_data(23), (255)
592
+ * } ContentType;
593
+ */
594
+ tls.ContentType = {
595
+ change_cipher_spec: 20,
596
+ alert: 21,
597
+ handshake: 22,
598
+ application_data: 23,
599
+ heartbeat: 24
600
+ };
601
+
602
+ /**
603
+ * TLS handshake types.
604
+ * enum {
605
+ * hello_request(0), client_hello(1), server_hello(2),
606
+ * certificate(11), server_key_exchange (12),
607
+ * certificate_request(13), server_hello_done(14),
608
+ * certificate_verify(15), client_key_exchange(16),
609
+ * finished(20), (255)
610
+ * } HandshakeType;
611
+ */
612
+ tls.HandshakeType = {
613
+ hello_request: 0,
614
+ client_hello: 1,
615
+ server_hello: 2,
616
+ certificate: 11,
617
+ server_key_exchange: 12,
618
+ certificate_request: 13,
619
+ server_hello_done: 14,
620
+ certificate_verify: 15,
621
+ client_key_exchange: 16,
622
+ finished: 20
623
+ };
624
+
625
+ /**
626
+ * TLS Alert Protocol.
627
+ *
628
+ * enum { warning(1), fatal(2), (255) } AlertLevel;
629
+ *
630
+ * enum {
631
+ * close_notify(0),
632
+ * unexpected_message(10),
633
+ * bad_record_mac(20),
634
+ * decryption_failed(21),
635
+ * record_overflow(22),
636
+ * decompression_failure(30),
637
+ * handshake_failure(40),
638
+ * bad_certificate(42),
639
+ * unsupported_certificate(43),
640
+ * certificate_revoked(44),
641
+ * certificate_expired(45),
642
+ * certificate_unknown(46),
643
+ * illegal_parameter(47),
644
+ * unknown_ca(48),
645
+ * access_denied(49),
646
+ * decode_error(50),
647
+ * decrypt_error(51),
648
+ * export_restriction(60),
649
+ * protocol_version(70),
650
+ * insufficient_security(71),
651
+ * internal_error(80),
652
+ * user_canceled(90),
653
+ * no_renegotiation(100),
654
+ * (255)
655
+ * } AlertDescription;
656
+ *
657
+ * struct {
658
+ * AlertLevel level;
659
+ * AlertDescription description;
660
+ * } Alert;
661
+ */
662
+ tls.Alert = {};
663
+ tls.Alert.Level = {
664
+ warning: 1,
665
+ fatal: 2
666
+ };
667
+ tls.Alert.Description = {
668
+ close_notify: 0,
669
+ unexpected_message: 10,
670
+ bad_record_mac: 20,
671
+ decryption_failed: 21,
672
+ record_overflow: 22,
673
+ decompression_failure: 30,
674
+ handshake_failure: 40,
675
+ bad_certificate: 42,
676
+ unsupported_certificate: 43,
677
+ certificate_revoked: 44,
678
+ certificate_expired: 45,
679
+ certificate_unknown: 46,
680
+ illegal_parameter: 47,
681
+ unknown_ca: 48,
682
+ access_denied: 49,
683
+ decode_error: 50,
684
+ decrypt_error: 51,
685
+ export_restriction: 60,
686
+ protocol_version: 70,
687
+ insufficient_security: 71,
688
+ internal_error: 80,
689
+ user_canceled: 90,
690
+ no_renegotiation: 100
691
+ };
692
+
693
+ /**
694
+ * TLS Heartbeat Message types.
695
+ * enum {
696
+ * heartbeat_request(1),
697
+ * heartbeat_response(2),
698
+ * (255)
699
+ * } HeartbeatMessageType;
700
+ */
701
+ tls.HeartbeatMessageType = {
702
+ heartbeat_request: 1,
703
+ heartbeat_response: 2
704
+ };
705
+
706
+ /**
707
+ * Supported cipher suites.
708
+ */
709
+ tls.CipherSuites = {};
710
+
711
+ /**
712
+ * Gets a supported cipher suite from its 2 byte ID.
713
+ *
714
+ * @param twoBytes two bytes in a string.
715
+ *
716
+ * @return the matching supported cipher suite or null.
717
+ */
718
+ tls.getCipherSuite = function(twoBytes) {
719
+ var rval = null;
720
+ for(var key in tls.CipherSuites) {
721
+ var cs = tls.CipherSuites[key];
722
+ if(cs.id[0] === twoBytes.charCodeAt(0) &&
723
+ cs.id[1] === twoBytes.charCodeAt(1)) {
724
+ rval = cs;
725
+ break;
726
+ }
727
+ }
728
+ return rval;
729
+ };
730
+
731
+ /**
732
+ * Called when an unexpected record is encountered.
733
+ *
734
+ * @param c the connection.
735
+ * @param record the record.
736
+ */
737
+ tls.handleUnexpected = function(c, record) {
738
+ // if connection is client and closed, ignore unexpected messages
739
+ var ignore = (!c.open && c.entity === tls.ConnectionEnd.client);
740
+ if(!ignore) {
741
+ c.error(c, {
742
+ message: 'Unexpected message. Received TLS record out of order.',
743
+ send: true,
744
+ alert: {
745
+ level: tls.Alert.Level.fatal,
746
+ description: tls.Alert.Description.unexpected_message
747
+ }
748
+ });
749
+ }
750
+ };
751
+
752
+ /**
753
+ * Called when a client receives a HelloRequest record.
754
+ *
755
+ * @param c the connection.
756
+ * @param record the record.
757
+ * @param length the length of the handshake message.
758
+ */
759
+ tls.handleHelloRequest = function(c, record, length) {
760
+ // ignore renegotiation requests from the server during a handshake, but
761
+ // if handshaking, send a warning alert that renegotiation is denied
762
+ if(!c.handshaking && c.handshakes > 0) {
763
+ // send alert warning
764
+ tls.queue(c, tls.createAlert(c, {
765
+ level: tls.Alert.Level.warning,
766
+ description: tls.Alert.Description.no_renegotiation
767
+ }));
768
+ tls.flush(c);
769
+ }
770
+
771
+ // continue
772
+ c.process();
773
+ };
774
+
775
+ /**
776
+ * Parses a hello message from a ClientHello or ServerHello record.
777
+ *
778
+ * @param record the record to parse.
779
+ *
780
+ * @return the parsed message.
781
+ */
782
+ tls.parseHelloMessage = function(c, record, length) {
783
+ var msg = null;
784
+
785
+ var client = (c.entity === tls.ConnectionEnd.client);
786
+
787
+ // minimum of 38 bytes in message
788
+ if(length < 38) {
789
+ c.error(c, {
790
+ message: client ?
791
+ 'Invalid ServerHello message. Message too short.' :
792
+ 'Invalid ClientHello message. Message too short.',
793
+ send: true,
794
+ alert: {
795
+ level: tls.Alert.Level.fatal,
796
+ description: tls.Alert.Description.illegal_parameter
797
+ }
798
+ });
799
+ } else {
800
+ // use 'remaining' to calculate # of remaining bytes in the message
801
+ var b = record.fragment;
802
+ var remaining = b.length();
803
+ msg = {
804
+ version: {
805
+ major: b.getByte(),
806
+ minor: b.getByte()
807
+ },
808
+ random: forge.util.createBuffer(b.getBytes(32)),
809
+ session_id: readVector(b, 1),
810
+ extensions: []
811
+ };
812
+ if(client) {
813
+ msg.cipher_suite = b.getBytes(2);
814
+ msg.compression_method = b.getByte();
815
+ } else {
816
+ msg.cipher_suites = readVector(b, 2);
817
+ msg.compression_methods = readVector(b, 1);
818
+ }
819
+
820
+ // read extensions if there are any bytes left in the message
821
+ remaining = length - (remaining - b.length());
822
+ if(remaining > 0) {
823
+ // parse extensions
824
+ var exts = readVector(b, 2);
825
+ while(exts.length() > 0) {
826
+ msg.extensions.push({
827
+ type: [exts.getByte(), exts.getByte()],
828
+ data: readVector(exts, 2)
829
+ });
830
+ }
831
+
832
+ // TODO: make extension support modular
833
+ if(!client) {
834
+ for(var i = 0; i < msg.extensions.length; ++i) {
835
+ var ext = msg.extensions[i];
836
+
837
+ // support SNI extension
838
+ if(ext.type[0] === 0x00 && ext.type[1] === 0x00) {
839
+ // get server name list
840
+ var snl = readVector(ext.data, 2);
841
+ while(snl.length() > 0) {
842
+ // read server name type
843
+ var snType = snl.getByte();
844
+
845
+ // only HostName type (0x00) is known, break out if
846
+ // another type is detected
847
+ if(snType !== 0x00) {
848
+ break;
849
+ }
850
+
851
+ // add host name to server name list
852
+ c.session.extensions.server_name.serverNameList.push(
853
+ readVector(snl, 2).getBytes());
854
+ }
855
+ }
856
+ }
857
+ }
858
+ }
859
+
860
+ // version already set, do not allow version change
861
+ if(c.session.version) {
862
+ if(msg.version.major !== c.session.version.major ||
863
+ msg.version.minor !== c.session.version.minor) {
864
+ return c.error(c, {
865
+ message: 'TLS version change is disallowed during renegotiation.',
866
+ send: true,
867
+ alert: {
868
+ level: tls.Alert.Level.fatal,
869
+ description: tls.Alert.Description.protocol_version
870
+ }
871
+ });
872
+ }
873
+ }
874
+
875
+ // get the chosen (ServerHello) cipher suite
876
+ if(client) {
877
+ // FIXME: should be checking configured acceptable cipher suites
878
+ c.session.cipherSuite = tls.getCipherSuite(msg.cipher_suite);
879
+ } else {
880
+ // get a supported preferred (ClientHello) cipher suite
881
+ // choose the first supported cipher suite
882
+ var tmp = forge.util.createBuffer(msg.cipher_suites.bytes());
883
+ while(tmp.length() > 0) {
884
+ // FIXME: should be checking configured acceptable suites
885
+ // cipher suites take up 2 bytes
886
+ c.session.cipherSuite = tls.getCipherSuite(tmp.getBytes(2));
887
+ if(c.session.cipherSuite !== null) {
888
+ break;
889
+ }
890
+ }
891
+ }
892
+
893
+ // cipher suite not supported
894
+ if(c.session.cipherSuite === null) {
895
+ return c.error(c, {
896
+ message: 'No cipher suites in common.',
897
+ send: true,
898
+ alert: {
899
+ level: tls.Alert.Level.fatal,
900
+ description: tls.Alert.Description.handshake_failure
901
+ },
902
+ cipherSuite: forge.util.bytesToHex(msg.cipher_suite)
903
+ });
904
+ }
905
+
906
+ // TODO: handle compression methods
907
+ if(client) {
908
+ // the ClientHello only offers no compression (RFC 5246 7.4.1.3)
909
+ if(msg.compression_method !== tls.CompressionMethod.none) {
910
+ return c.error(c, {
911
+ message: 'Unsupported compression method.',
912
+ send: true,
913
+ alert: {
914
+ level: tls.Alert.Level.fatal,
915
+ description: tls.Alert.Description.illegal_parameter
916
+ }
917
+ });
918
+ }
919
+ c.session.compressionMethod = msg.compression_method;
920
+ } else {
921
+ // no compression
922
+ c.session.compressionMethod = tls.CompressionMethod.none;
923
+ }
924
+ }
925
+
926
+ return msg;
927
+ };
928
+
929
+ /**
930
+ * Creates security parameters for the given connection based on the given
931
+ * hello message.
932
+ *
933
+ * @param c the TLS connection.
934
+ * @param msg the hello message.
935
+ */
936
+ tls.createSecurityParameters = function(c, msg) {
937
+ /* Note: security params are from TLS 1.2, some values like prf_algorithm
938
+ are ignored for TLS 1.0/1.1 and the builtin as specified in the spec is
939
+ used. */
940
+
941
+ // TODO: handle other options from server when more supported
942
+
943
+ // get client and server randoms
944
+ var client = (c.entity === tls.ConnectionEnd.client);
945
+ var msgRandom = msg.random.bytes();
946
+ var cRandom = client ? c.session.sp.client_random : msgRandom;
947
+ var sRandom = client ? msgRandom : tls.createRandom().getBytes();
948
+
949
+ // create new security parameters
950
+ c.session.sp = {
951
+ entity: c.entity,
952
+ prf_algorithm: tls.PRFAlgorithm.tls_prf_sha256,
953
+ bulk_cipher_algorithm: null,
954
+ cipher_type: null,
955
+ enc_key_length: null,
956
+ block_length: null,
957
+ fixed_iv_length: null,
958
+ record_iv_length: null,
959
+ mac_algorithm: null,
960
+ mac_length: null,
961
+ mac_key_length: null,
962
+ compression_algorithm: c.session.compressionMethod,
963
+ pre_master_secret: null,
964
+ master_secret: null,
965
+ client_random: cRandom,
966
+ server_random: sRandom
967
+ };
968
+ };
969
+
970
+ /**
971
+ * Called when a client receives a ServerHello record.
972
+ *
973
+ * When a ServerHello message will be sent:
974
+ * The server will send this message in response to a client hello message
975
+ * when it was able to find an acceptable set of algorithms. If it cannot
976
+ * find such a match, it will respond with a handshake failure alert.
977
+ *
978
+ * uint24 length;
979
+ * struct {
980
+ * ProtocolVersion server_version;
981
+ * Random random;
982
+ * SessionID session_id;
983
+ * CipherSuite cipher_suite;
984
+ * CompressionMethod compression_method;
985
+ * select(extensions_present) {
986
+ * case false:
987
+ * struct {};
988
+ * case true:
989
+ * Extension extensions<0..2^16-1>;
990
+ * };
991
+ * } ServerHello;
992
+ *
993
+ * @param c the connection.
994
+ * @param record the record.
995
+ * @param length the length of the handshake message.
996
+ */
997
+ tls.handleServerHello = function(c, record, length) {
998
+ var msg = tls.parseHelloMessage(c, record, length);
999
+ if(c.fail) {
1000
+ return;
1001
+ }
1002
+
1003
+ // ensure server version is compatible
1004
+ if(msg.version.minor <= c.version.minor) {
1005
+ c.version.minor = msg.version.minor;
1006
+ } else {
1007
+ return c.error(c, {
1008
+ message: 'Incompatible TLS version.',
1009
+ send: true,
1010
+ alert: {
1011
+ level: tls.Alert.Level.fatal,
1012
+ description: tls.Alert.Description.protocol_version
1013
+ }
1014
+ });
1015
+ }
1016
+
1017
+ // indicate session version has been set
1018
+ c.session.version = c.version;
1019
+
1020
+ // get the session ID from the message
1021
+ var sessionId = msg.session_id.bytes();
1022
+
1023
+ // if the session ID is not blank and matches the cached one, resume
1024
+ // the session
1025
+ if(sessionId.length > 0 && sessionId === c.session.id) {
1026
+ // resuming session, expect a ChangeCipherSpec next
1027
+ c.expect = SCC;
1028
+ c.session.resuming = true;
1029
+
1030
+ // get new server random
1031
+ c.session.sp.server_random = msg.random.bytes();
1032
+ } else {
1033
+ // not resuming, expect a server Certificate message next
1034
+ c.expect = SCE;
1035
+ c.session.resuming = false;
1036
+
1037
+ // create new security parameters
1038
+ tls.createSecurityParameters(c, msg);
1039
+ }
1040
+
1041
+ // set new session ID
1042
+ c.session.id = sessionId;
1043
+
1044
+ // continue
1045
+ c.process();
1046
+ };
1047
+
1048
+ /**
1049
+ * Called when a server receives a ClientHello record.
1050
+ *
1051
+ * When a ClientHello message will be sent:
1052
+ * When a client first connects to a server it is required to send the
1053
+ * client hello as its first message. The client can also send a client
1054
+ * hello in response to a hello request or on its own initiative in order
1055
+ * to renegotiate the security parameters in an existing connection.
1056
+ *
1057
+ * @param c the connection.
1058
+ * @param record the record.
1059
+ * @param length the length of the handshake message.
1060
+ */
1061
+ tls.handleClientHello = function(c, record, length) {
1062
+ var msg = tls.parseHelloMessage(c, record, length);
1063
+ if(c.fail) {
1064
+ return;
1065
+ }
1066
+
1067
+ // get the session ID from the message
1068
+ var sessionId = msg.session_id.bytes();
1069
+
1070
+ // see if the given session ID is in the cache
1071
+ var session = null;
1072
+ if(c.sessionCache) {
1073
+ session = c.sessionCache.getSession(sessionId);
1074
+ if(session === null) {
1075
+ // session ID not found
1076
+ sessionId = '';
1077
+ } else if(session.version.major !== msg.version.major ||
1078
+ session.version.minor > msg.version.minor) {
1079
+ // if session version is incompatible with client version, do not resume
1080
+ session = null;
1081
+ sessionId = '';
1082
+ }
1083
+ }
1084
+
1085
+ // no session found to resume, generate a new session ID
1086
+ if(sessionId.length === 0) {
1087
+ sessionId = forge.random.getBytes(32);
1088
+ }
1089
+
1090
+ // update session
1091
+ c.session.id = sessionId;
1092
+ c.session.clientHelloVersion = msg.version;
1093
+ c.session.sp = {};
1094
+ if(session) {
1095
+ // use version and security parameters from resumed session
1096
+ c.version = c.session.version = session.version;
1097
+ c.session.sp = session.sp;
1098
+ } else {
1099
+ // use highest compatible minor version
1100
+ var version;
1101
+ for(var i = 1; i < tls.SupportedVersions.length; ++i) {
1102
+ version = tls.SupportedVersions[i];
1103
+ if(version.minor <= msg.version.minor) {
1104
+ break;
1105
+ }
1106
+ }
1107
+ c.version = {major: version.major, minor: version.minor};
1108
+ c.session.version = c.version;
1109
+ }
1110
+
1111
+ // if a session is set, resume it
1112
+ if(session !== null) {
1113
+ // resuming session, expect a ChangeCipherSpec next
1114
+ c.expect = CCC;
1115
+ c.session.resuming = true;
1116
+
1117
+ // get new client random
1118
+ c.session.sp.client_random = msg.random.bytes();
1119
+ } else {
1120
+ // not resuming, expect a Certificate or ClientKeyExchange
1121
+ c.expect = (c.verifyClient !== false) ? CCE : CKE;
1122
+ c.session.resuming = false;
1123
+
1124
+ // create new security parameters
1125
+ tls.createSecurityParameters(c, msg);
1126
+ }
1127
+
1128
+ // connection now open
1129
+ c.open = true;
1130
+
1131
+ // queue server hello
1132
+ tls.queue(c, tls.createRecord(c, {
1133
+ type: tls.ContentType.handshake,
1134
+ data: tls.createServerHello(c)
1135
+ }));
1136
+
1137
+ if(c.session.resuming) {
1138
+ // queue change cipher spec message
1139
+ tls.queue(c, tls.createRecord(c, {
1140
+ type: tls.ContentType.change_cipher_spec,
1141
+ data: tls.createChangeCipherSpec()
1142
+ }));
1143
+
1144
+ // create pending state
1145
+ c.state.pending = tls.createConnectionState(c);
1146
+
1147
+ // change current write state to pending write state
1148
+ c.state.current.write = c.state.pending.write;
1149
+
1150
+ // queue finished
1151
+ tls.queue(c, tls.createRecord(c, {
1152
+ type: tls.ContentType.handshake,
1153
+ data: tls.createFinished(c)
1154
+ }));
1155
+ } else {
1156
+ // queue server certificate
1157
+ tls.queue(c, tls.createRecord(c, {
1158
+ type: tls.ContentType.handshake,
1159
+ data: tls.createCertificate(c)
1160
+ }));
1161
+
1162
+ if(!c.fail) {
1163
+ // queue server key exchange
1164
+ tls.queue(c, tls.createRecord(c, {
1165
+ type: tls.ContentType.handshake,
1166
+ data: tls.createServerKeyExchange(c)
1167
+ }));
1168
+
1169
+ // request client certificate if set
1170
+ if(c.verifyClient !== false) {
1171
+ // queue certificate request
1172
+ tls.queue(c, tls.createRecord(c, {
1173
+ type: tls.ContentType.handshake,
1174
+ data: tls.createCertificateRequest(c)
1175
+ }));
1176
+ }
1177
+
1178
+ // queue server hello done
1179
+ tls.queue(c, tls.createRecord(c, {
1180
+ type: tls.ContentType.handshake,
1181
+ data: tls.createServerHelloDone(c)
1182
+ }));
1183
+ }
1184
+ }
1185
+
1186
+ // send records
1187
+ tls.flush(c);
1188
+
1189
+ // continue
1190
+ c.process();
1191
+ };
1192
+
1193
+ /**
1194
+ * Called when a client receives a Certificate record.
1195
+ *
1196
+ * When this message will be sent:
1197
+ * The server must send a certificate whenever the agreed-upon key exchange
1198
+ * method is not an anonymous one. This message will always immediately
1199
+ * follow the server hello message.
1200
+ *
1201
+ * Meaning of this message:
1202
+ * The certificate type must be appropriate for the selected cipher suite's
1203
+ * key exchange algorithm, and is generally an X.509v3 certificate. It must
1204
+ * contain a key which matches the key exchange method, as follows. Unless
1205
+ * otherwise specified, the signing algorithm for the certificate must be
1206
+ * the same as the algorithm for the certificate key. Unless otherwise
1207
+ * specified, the public key may be of any length.
1208
+ *
1209
+ * opaque ASN.1Cert<1..2^24-1>;
1210
+ * struct {
1211
+ * ASN.1Cert certificate_list<1..2^24-1>;
1212
+ * } Certificate;
1213
+ *
1214
+ * @param c the connection.
1215
+ * @param record the record.
1216
+ * @param length the length of the handshake message.
1217
+ */
1218
+ tls.handleCertificate = function(c, record, length) {
1219
+ // minimum of 3 bytes in message
1220
+ if(length < 3) {
1221
+ return c.error(c, {
1222
+ message: 'Invalid Certificate message. Message too short.',
1223
+ send: true,
1224
+ alert: {
1225
+ level: tls.Alert.Level.fatal,
1226
+ description: tls.Alert.Description.illegal_parameter
1227
+ }
1228
+ });
1229
+ }
1230
+
1231
+ var b = record.fragment;
1232
+ var msg = {
1233
+ certificate_list: readVector(b, 3)
1234
+ };
1235
+
1236
+ /* The sender's certificate will be first in the list (chain), each
1237
+ subsequent one that follows will certify the previous one, but root
1238
+ certificates (self-signed) that specify the certificate authority may
1239
+ be omitted under the assumption that clients must already possess it. */
1240
+ var cert, asn1;
1241
+ var certs = [];
1242
+ try {
1243
+ while(msg.certificate_list.length() > 0) {
1244
+ // each entry in msg.certificate_list is a vector with 3 len bytes
1245
+ cert = readVector(msg.certificate_list, 3);
1246
+ asn1 = forge.asn1.fromDer(cert);
1247
+ cert = forge.pki.certificateFromAsn1(asn1, true);
1248
+ certs.push(cert);
1249
+ }
1250
+ } catch(ex) {
1251
+ return c.error(c, {
1252
+ message: 'Could not parse certificate list.',
1253
+ cause: ex,
1254
+ send: true,
1255
+ alert: {
1256
+ level: tls.Alert.Level.fatal,
1257
+ description: tls.Alert.Description.bad_certificate
1258
+ }
1259
+ });
1260
+ }
1261
+
1262
+ // ensure at least 1 certificate was provided if in client-mode
1263
+ // or if verifyClient was set to true to require a certificate
1264
+ // (as opposed to 'optional')
1265
+ var client = (c.entity === tls.ConnectionEnd.client);
1266
+ if((client || c.verifyClient === true) && certs.length === 0) {
1267
+ // error, no certificate
1268
+ c.error(c, {
1269
+ message: client ?
1270
+ 'No server certificate provided.' :
1271
+ 'No client certificate provided.',
1272
+ send: true,
1273
+ alert: {
1274
+ level: tls.Alert.Level.fatal,
1275
+ description: tls.Alert.Description.illegal_parameter
1276
+ }
1277
+ });
1278
+ } else if(certs.length === 0) {
1279
+ // no certs to verify
1280
+ // expect a ServerKeyExchange or ClientKeyExchange message next
1281
+ c.expect = client ? SKE : CKE;
1282
+ } else {
1283
+ // save certificate in session
1284
+ if(client) {
1285
+ c.session.serverCertificate = certs[0];
1286
+ } else {
1287
+ c.session.clientCertificate = certs[0];
1288
+ }
1289
+
1290
+ if(tls.verifyCertificateChain(c, certs)) {
1291
+ // expect a ServerKeyExchange or ClientKeyExchange message next
1292
+ c.expect = client ? SKE : CKE;
1293
+ }
1294
+ }
1295
+
1296
+ // continue
1297
+ c.process();
1298
+ };
1299
+
1300
+ /**
1301
+ * Called when a client receives a ServerKeyExchange record.
1302
+ *
1303
+ * When this message will be sent:
1304
+ * This message will be sent immediately after the server certificate
1305
+ * message (or the server hello message, if this is an anonymous
1306
+ * negotiation).
1307
+ *
1308
+ * The server key exchange message is sent by the server only when the
1309
+ * server certificate message (if sent) does not contain enough data to
1310
+ * allow the client to exchange a premaster secret.
1311
+ *
1312
+ * Meaning of this message:
1313
+ * This message conveys cryptographic information to allow the client to
1314
+ * communicate the premaster secret: either an RSA public key to encrypt
1315
+ * the premaster secret with, or a Diffie-Hellman public key with which the
1316
+ * client can complete a key exchange (with the result being the premaster
1317
+ * secret.)
1318
+ *
1319
+ * enum {
1320
+ * dhe_dss, dhe_rsa, dh_anon, rsa, dh_dss, dh_rsa
1321
+ * } KeyExchangeAlgorithm;
1322
+ *
1323
+ * struct {
1324
+ * opaque dh_p<1..2^16-1>;
1325
+ * opaque dh_g<1..2^16-1>;
1326
+ * opaque dh_Ys<1..2^16-1>;
1327
+ * } ServerDHParams;
1328
+ *
1329
+ * struct {
1330
+ * select(KeyExchangeAlgorithm) {
1331
+ * case dh_anon:
1332
+ * ServerDHParams params;
1333
+ * case dhe_dss:
1334
+ * case dhe_rsa:
1335
+ * ServerDHParams params;
1336
+ * digitally-signed struct {
1337
+ * opaque client_random[32];
1338
+ * opaque server_random[32];
1339
+ * ServerDHParams params;
1340
+ * } signed_params;
1341
+ * case rsa:
1342
+ * case dh_dss:
1343
+ * case dh_rsa:
1344
+ * struct {};
1345
+ * };
1346
+ * } ServerKeyExchange;
1347
+ *
1348
+ * @param c the connection.
1349
+ * @param record the record.
1350
+ * @param length the length of the handshake message.
1351
+ */
1352
+ tls.handleServerKeyExchange = function(c, record, length) {
1353
+ // this implementation only supports RSA, no Diffie-Hellman support
1354
+ // so any length > 0 is invalid
1355
+ if(length > 0) {
1356
+ return c.error(c, {
1357
+ message: 'Invalid key parameters. Only RSA is supported.',
1358
+ send: true,
1359
+ alert: {
1360
+ level: tls.Alert.Level.fatal,
1361
+ description: tls.Alert.Description.unsupported_certificate
1362
+ }
1363
+ });
1364
+ }
1365
+
1366
+ // expect an optional CertificateRequest message next
1367
+ c.expect = SCR;
1368
+
1369
+ // continue
1370
+ c.process();
1371
+ };
1372
+
1373
+ /**
1374
+ * Called when a client receives a ClientKeyExchange record.
1375
+ *
1376
+ * @param c the connection.
1377
+ * @param record the record.
1378
+ * @param length the length of the handshake message.
1379
+ */
1380
+ tls.handleClientKeyExchange = function(c, record, length) {
1381
+ // this implementation only supports RSA, no Diffie-Hellman support
1382
+ // so any length < 48 is invalid
1383
+ if(length < 48) {
1384
+ return c.error(c, {
1385
+ message: 'Invalid key parameters. Only RSA is supported.',
1386
+ send: true,
1387
+ alert: {
1388
+ level: tls.Alert.Level.fatal,
1389
+ description: tls.Alert.Description.unsupported_certificate
1390
+ }
1391
+ });
1392
+ }
1393
+
1394
+ var b = record.fragment;
1395
+ var msg = {
1396
+ enc_pre_master_secret: readVector(b, 2).getBytes()
1397
+ };
1398
+
1399
+ // do rsa decryption
1400
+ var privateKey = null;
1401
+ if(c.getPrivateKey) {
1402
+ try {
1403
+ privateKey = c.getPrivateKey(c, c.session.serverCertificate);
1404
+ privateKey = forge.pki.privateKeyFromPem(privateKey);
1405
+ } catch(ex) {
1406
+ c.error(c, {
1407
+ message: 'Could not get private key.',
1408
+ cause: ex,
1409
+ send: true,
1410
+ alert: {
1411
+ level: tls.Alert.Level.fatal,
1412
+ description: tls.Alert.Description.internal_error
1413
+ }
1414
+ });
1415
+ }
1416
+ }
1417
+
1418
+ if(privateKey === null) {
1419
+ return c.error(c, {
1420
+ message: 'No private key set.',
1421
+ send: true,
1422
+ alert: {
1423
+ level: tls.Alert.Level.fatal,
1424
+ description: tls.Alert.Description.internal_error
1425
+ }
1426
+ });
1427
+ }
1428
+
1429
+ try {
1430
+ // decrypt 48-byte pre-master secret
1431
+ var sp = c.session.sp;
1432
+ sp.pre_master_secret = privateKey.decrypt(msg.enc_pre_master_secret);
1433
+
1434
+ // ensure client hello version matches first 2 bytes
1435
+ var version = c.session.clientHelloVersion;
1436
+ if(version.major !== sp.pre_master_secret.charCodeAt(0) ||
1437
+ version.minor !== sp.pre_master_secret.charCodeAt(1)) {
1438
+ // error, do not send alert (see BLEI attack below)
1439
+ throw new Error('TLS version rollback attack detected.');
1440
+ }
1441
+ } catch(ex) {
1442
+ /* Note: Daniel Bleichenbacher [BLEI] can be used to attack a
1443
+ TLS server which is using PKCS#1 encoded RSA, so instead of
1444
+ failing here, we generate 48 random bytes and use that as
1445
+ the pre-master secret. */
1446
+ sp.pre_master_secret = forge.random.getBytes(48);
1447
+ }
1448
+
1449
+ // expect a CertificateVerify message if a Certificate was received that
1450
+ // does not have fixed Diffie-Hellman params, otherwise expect
1451
+ // ChangeCipherSpec
1452
+ c.expect = CCC;
1453
+ if(c.session.clientCertificate !== null) {
1454
+ // only RSA support, so expect CertificateVerify
1455
+ // TODO: support Diffie-Hellman
1456
+ c.expect = CCV;
1457
+ }
1458
+
1459
+ // continue
1460
+ c.process();
1461
+ };
1462
+
1463
+ /**
1464
+ * Called when a client receives a CertificateRequest record.
1465
+ *
1466
+ * When this message will be sent:
1467
+ * A non-anonymous server can optionally request a certificate from the
1468
+ * client, if appropriate for the selected cipher suite. This message, if
1469
+ * sent, will immediately follow the Server Key Exchange message (if it is
1470
+ * sent; otherwise, the Server Certificate message).
1471
+ *
1472
+ * enum {
1473
+ * rsa_sign(1), dss_sign(2), rsa_fixed_dh(3), dss_fixed_dh(4),
1474
+ * rsa_ephemeral_dh_RESERVED(5), dss_ephemeral_dh_RESERVED(6),
1475
+ * fortezza_dms_RESERVED(20), (255)
1476
+ * } ClientCertificateType;
1477
+ *
1478
+ * opaque DistinguishedName<1..2^16-1>;
1479
+ *
1480
+ * struct {
1481
+ * ClientCertificateType certificate_types<1..2^8-1>;
1482
+ * SignatureAndHashAlgorithm supported_signature_algorithms<2^16-1>;
1483
+ * DistinguishedName certificate_authorities<0..2^16-1>;
1484
+ * } CertificateRequest;
1485
+ *
1486
+ * @param c the connection.
1487
+ * @param record the record.
1488
+ * @param length the length of the handshake message.
1489
+ */
1490
+ tls.handleCertificateRequest = function(c, record, length) {
1491
+ // minimum of 3 bytes in message
1492
+ if(length < 3) {
1493
+ return c.error(c, {
1494
+ message: 'Invalid CertificateRequest. Message too short.',
1495
+ send: true,
1496
+ alert: {
1497
+ level: tls.Alert.Level.fatal,
1498
+ description: tls.Alert.Description.illegal_parameter
1499
+ }
1500
+ });
1501
+ }
1502
+
1503
+ // TODO: TLS 1.2+ has different format including
1504
+ // SignatureAndHashAlgorithm after cert types
1505
+ var b = record.fragment;
1506
+ var msg = {
1507
+ certificate_types: readVector(b, 1),
1508
+ certificate_authorities: readVector(b, 2)
1509
+ };
1510
+
1511
+ // save certificate request in session
1512
+ c.session.certificateRequest = msg;
1513
+
1514
+ // expect a ServerHelloDone message next
1515
+ c.expect = SHD;
1516
+
1517
+ // continue
1518
+ c.process();
1519
+ };
1520
+
1521
+ /**
1522
+ * Called when a server receives a CertificateVerify record.
1523
+ *
1524
+ * @param c the connection.
1525
+ * @param record the record.
1526
+ * @param length the length of the handshake message.
1527
+ */
1528
+ tls.handleCertificateVerify = function(c, record, length) {
1529
+ if(length < 2) {
1530
+ return c.error(c, {
1531
+ message: 'Invalid CertificateVerify. Message too short.',
1532
+ send: true,
1533
+ alert: {
1534
+ level: tls.Alert.Level.fatal,
1535
+ description: tls.Alert.Description.illegal_parameter
1536
+ }
1537
+ });
1538
+ }
1539
+
1540
+ // rewind to get full bytes for message so it can be manually
1541
+ // digested below (special case for CertificateVerify messages because
1542
+ // they must be digested *after* handling as opposed to all others)
1543
+ var b = record.fragment;
1544
+ b.read -= 4;
1545
+ var msgBytes = b.bytes();
1546
+ b.read += 4;
1547
+
1548
+ var msg = {
1549
+ signature: readVector(b, 2).getBytes()
1550
+ };
1551
+
1552
+ // TODO: add support for DSA
1553
+
1554
+ // generate data to verify
1555
+ var verify = forge.util.createBuffer();
1556
+ verify.putBuffer(c.session.md5.digest());
1557
+ verify.putBuffer(c.session.sha1.digest());
1558
+ verify = verify.getBytes();
1559
+
1560
+ try {
1561
+ var cert = c.session.clientCertificate;
1562
+ /*b = forge.pki.rsa.decrypt(
1563
+ msg.signature, cert.publicKey, true, verify.length);
1564
+ if(b !== verify) {*/
1565
+ if(!cert.publicKey.verify(verify, msg.signature, 'NONE')) {
1566
+ throw new Error('CertificateVerify signature does not match.');
1567
+ }
1568
+
1569
+ // digest message now that it has been handled
1570
+ c.session.md5.update(msgBytes);
1571
+ c.session.sha1.update(msgBytes);
1572
+ } catch(ex) {
1573
+ return c.error(c, {
1574
+ message: 'Bad signature in CertificateVerify.',
1575
+ send: true,
1576
+ alert: {
1577
+ level: tls.Alert.Level.fatal,
1578
+ description: tls.Alert.Description.handshake_failure
1579
+ }
1580
+ });
1581
+ }
1582
+
1583
+ // expect ChangeCipherSpec
1584
+ c.expect = CCC;
1585
+
1586
+ // continue
1587
+ c.process();
1588
+ };
1589
+
1590
+ /**
1591
+ * Called when a client receives a ServerHelloDone record.
1592
+ *
1593
+ * When this message will be sent:
1594
+ * The server hello done message is sent by the server to indicate the end
1595
+ * of the server hello and associated messages. After sending this message
1596
+ * the server will wait for a client response.
1597
+ *
1598
+ * Meaning of this message:
1599
+ * This message means that the server is done sending messages to support
1600
+ * the key exchange, and the client can proceed with its phase of the key
1601
+ * exchange.
1602
+ *
1603
+ * Upon receipt of the server hello done message the client should verify
1604
+ * that the server provided a valid certificate if required and check that
1605
+ * the server hello parameters are acceptable.
1606
+ *
1607
+ * struct {} ServerHelloDone;
1608
+ *
1609
+ * @param c the connection.
1610
+ * @param record the record.
1611
+ * @param length the length of the handshake message.
1612
+ */
1613
+ tls.handleServerHelloDone = function(c, record, length) {
1614
+ // len must be 0 bytes
1615
+ if(length > 0) {
1616
+ return c.error(c, {
1617
+ message: 'Invalid ServerHelloDone message. Invalid length.',
1618
+ send: true,
1619
+ alert: {
1620
+ level: tls.Alert.Level.fatal,
1621
+ description: tls.Alert.Description.record_overflow
1622
+ }
1623
+ });
1624
+ }
1625
+
1626
+ if(c.session.serverCertificate === null) {
1627
+ // no server certificate was provided
1628
+ var error = {
1629
+ message: 'No server certificate provided. Not enough security.',
1630
+ send: true,
1631
+ alert: {
1632
+ level: tls.Alert.Level.fatal,
1633
+ description: tls.Alert.Description.insufficient_security
1634
+ }
1635
+ };
1636
+
1637
+ // call application callback
1638
+ var depth = 0;
1639
+ var ret = c.verify(c, error.alert.description, depth, []);
1640
+ if(ret !== true) {
1641
+ // check for custom alert info
1642
+ if(ret || ret === 0) {
1643
+ // set custom message and alert description
1644
+ if(typeof ret === 'object' && !forge.util.isArray(ret)) {
1645
+ if(ret.message) {
1646
+ error.message = ret.message;
1647
+ }
1648
+ if(ret.alert) {
1649
+ error.alert.description = ret.alert;
1650
+ }
1651
+ } else if(typeof ret === 'number') {
1652
+ // set custom alert description
1653
+ error.alert.description = ret;
1654
+ }
1655
+ }
1656
+ }
1657
+
1658
+ // send error even if accepted, the RSA key exchange needs the server
1659
+ // certificate
1660
+ return c.error(c, error);
1661
+ }
1662
+
1663
+ // create client certificate message if requested
1664
+ if(c.session.certificateRequest !== null) {
1665
+ record = tls.createRecord(c, {
1666
+ type: tls.ContentType.handshake,
1667
+ data: tls.createCertificate(c)
1668
+ });
1669
+ tls.queue(c, record);
1670
+ }
1671
+
1672
+ // create client key exchange message
1673
+ record = tls.createRecord(c, {
1674
+ type: tls.ContentType.handshake,
1675
+ data: tls.createClientKeyExchange(c)
1676
+ });
1677
+ tls.queue(c, record);
1678
+
1679
+ // expect no messages until the following callback has been called
1680
+ c.expect = SER;
1681
+
1682
+ // create callback to handle client signature (for client-certs)
1683
+ var callback = function(c, signature) {
1684
+ if(c.session.certificateRequest !== null &&
1685
+ c.session.clientCertificate !== null) {
1686
+ // create certificate verify message
1687
+ tls.queue(c, tls.createRecord(c, {
1688
+ type: tls.ContentType.handshake,
1689
+ data: tls.createCertificateVerify(c, signature)
1690
+ }));
1691
+ }
1692
+
1693
+ // create change cipher spec message
1694
+ tls.queue(c, tls.createRecord(c, {
1695
+ type: tls.ContentType.change_cipher_spec,
1696
+ data: tls.createChangeCipherSpec()
1697
+ }));
1698
+
1699
+ // create pending state
1700
+ c.state.pending = tls.createConnectionState(c);
1701
+
1702
+ // change current write state to pending write state
1703
+ c.state.current.write = c.state.pending.write;
1704
+
1705
+ // create finished message
1706
+ tls.queue(c, tls.createRecord(c, {
1707
+ type: tls.ContentType.handshake,
1708
+ data: tls.createFinished(c)
1709
+ }));
1710
+
1711
+ // expect a server ChangeCipherSpec message next
1712
+ c.expect = SCC;
1713
+
1714
+ // send records
1715
+ tls.flush(c);
1716
+
1717
+ // continue
1718
+ c.process();
1719
+ };
1720
+
1721
+ // if there is no certificate request or no client certificate, do
1722
+ // callback immediately
1723
+ if(c.session.certificateRequest === null ||
1724
+ c.session.clientCertificate === null) {
1725
+ return callback(c, null);
1726
+ }
1727
+
1728
+ // otherwise get the client signature
1729
+ tls.getClientSignature(c, callback);
1730
+ };
1731
+
1732
+ /**
1733
+ * Called when a ChangeCipherSpec record is received.
1734
+ *
1735
+ * @param c the connection.
1736
+ * @param record the record.
1737
+ */
1738
+ tls.handleChangeCipherSpec = function(c, record) {
1739
+ if(record.fragment.getByte() !== 0x01) {
1740
+ return c.error(c, {
1741
+ message: 'Invalid ChangeCipherSpec message received.',
1742
+ send: true,
1743
+ alert: {
1744
+ level: tls.Alert.Level.fatal,
1745
+ description: tls.Alert.Description.illegal_parameter
1746
+ }
1747
+ });
1748
+ }
1749
+
1750
+ // create pending state if:
1751
+ // 1. Resuming session in client mode OR
1752
+ // 2. NOT resuming session in server mode
1753
+ var client = (c.entity === tls.ConnectionEnd.client);
1754
+ if((c.session.resuming && client) || (!c.session.resuming && !client)) {
1755
+ c.state.pending = tls.createConnectionState(c);
1756
+ }
1757
+
1758
+ // change current read state to pending read state
1759
+ c.state.current.read = c.state.pending.read;
1760
+
1761
+ // clear pending state if:
1762
+ // 1. NOT resuming session in client mode OR
1763
+ // 2. resuming a session in server mode
1764
+ if((!c.session.resuming && client) || (c.session.resuming && !client)) {
1765
+ c.state.pending = null;
1766
+ }
1767
+
1768
+ // expect a Finished record next
1769
+ c.expect = client ? SFI : CFI;
1770
+
1771
+ // continue
1772
+ c.process();
1773
+ };
1774
+
1775
+ /**
1776
+ * Called when a Finished record is received.
1777
+ *
1778
+ * When this message will be sent:
1779
+ * A finished message is always sent immediately after a change
1780
+ * cipher spec message to verify that the key exchange and
1781
+ * authentication processes were successful. It is essential that a
1782
+ * change cipher spec message be received between the other
1783
+ * handshake messages and the Finished message.
1784
+ *
1785
+ * Meaning of this message:
1786
+ * The finished message is the first protected with the just-
1787
+ * negotiated algorithms, keys, and secrets. Recipients of finished
1788
+ * messages must verify that the contents are correct. Once a side
1789
+ * has sent its Finished message and received and validated the
1790
+ * Finished message from its peer, it may begin to send and receive
1791
+ * application data over the connection.
1792
+ *
1793
+ * struct {
1794
+ * opaque verify_data[verify_data_length];
1795
+ * } Finished;
1796
+ *
1797
+ * verify_data
1798
+ * PRF(master_secret, finished_label, Hash(handshake_messages))
1799
+ * [0..verify_data_length-1];
1800
+ *
1801
+ * finished_label
1802
+ * For Finished messages sent by the client, the string
1803
+ * "client finished". For Finished messages sent by the server, the
1804
+ * string "server finished".
1805
+ *
1806
+ * verify_data_length depends on the cipher suite. If it is not specified
1807
+ * by the cipher suite, then it is 12. Versions of TLS < 1.2 always used
1808
+ * 12 bytes.
1809
+ *
1810
+ * @param c the connection.
1811
+ * @param record the record.
1812
+ * @param length the length of the handshake message.
1813
+ */
1814
+ tls.handleFinished = function(c, record, length) {
1815
+ // rewind to get full bytes for message so it can be manually
1816
+ // digested below (special case for Finished messages because they
1817
+ // must be digested *after* handling as opposed to all others)
1818
+ var b = record.fragment;
1819
+ b.read -= 4;
1820
+ var msgBytes = b.bytes();
1821
+ b.read += 4;
1822
+
1823
+ // message contains only verify_data
1824
+ var vd = record.fragment.getBytes();
1825
+
1826
+ // ensure verify data is correct
1827
+ b = forge.util.createBuffer();
1828
+ b.putBuffer(c.session.md5.digest());
1829
+ b.putBuffer(c.session.sha1.digest());
1830
+
1831
+ // set label based on entity type
1832
+ var client = (c.entity === tls.ConnectionEnd.client);
1833
+ var label = client ? 'server finished' : 'client finished';
1834
+
1835
+ // TODO: determine prf function and verify length for TLS 1.2
1836
+ var sp = c.session.sp;
1837
+ var vdl = 12;
1838
+ var prf = prf_TLS1;
1839
+ b = prf(sp.master_secret, label, b.getBytes(), vdl);
1840
+ if(b.getBytes() !== vd) {
1841
+ return c.error(c, {
1842
+ message: 'Invalid verify_data in Finished message.',
1843
+ send: true,
1844
+ alert: {
1845
+ level: tls.Alert.Level.fatal,
1846
+ description: tls.Alert.Description.decrypt_error
1847
+ }
1848
+ });
1849
+ }
1850
+
1851
+ // digest finished message now that it has been handled
1852
+ c.session.md5.update(msgBytes);
1853
+ c.session.sha1.update(msgBytes);
1854
+
1855
+ // resuming session as client or NOT resuming session as server
1856
+ if((c.session.resuming && client) || (!c.session.resuming && !client)) {
1857
+ // create change cipher spec message
1858
+ tls.queue(c, tls.createRecord(c, {
1859
+ type: tls.ContentType.change_cipher_spec,
1860
+ data: tls.createChangeCipherSpec()
1861
+ }));
1862
+
1863
+ // change current write state to pending write state, clear pending
1864
+ c.state.current.write = c.state.pending.write;
1865
+ c.state.pending = null;
1866
+
1867
+ // create finished message
1868
+ tls.queue(c, tls.createRecord(c, {
1869
+ type: tls.ContentType.handshake,
1870
+ data: tls.createFinished(c)
1871
+ }));
1872
+ }
1873
+
1874
+ // expect application data next
1875
+ c.expect = client ? SAD : CAD;
1876
+
1877
+ // handshake complete
1878
+ c.handshaking = false;
1879
+ ++c.handshakes;
1880
+
1881
+ // save access to peer certificate
1882
+ c.peerCertificate = client ?
1883
+ c.session.serverCertificate : c.session.clientCertificate;
1884
+
1885
+ // send records
1886
+ tls.flush(c);
1887
+
1888
+ // now connected
1889
+ c.isConnected = true;
1890
+ c.connected(c);
1891
+
1892
+ // continue
1893
+ c.process();
1894
+ };
1895
+
1896
+ /**
1897
+ * Called when an Alert record is received.
1898
+ *
1899
+ * @param c the connection.
1900
+ * @param record the record.
1901
+ */
1902
+ tls.handleAlert = function(c, record) {
1903
+ // read alert
1904
+ var b = record.fragment;
1905
+ var alert = {
1906
+ level: b.getByte(),
1907
+ description: b.getByte()
1908
+ };
1909
+
1910
+ // TODO: consider using a table?
1911
+ // get appropriate message
1912
+ var msg;
1913
+ switch(alert.description) {
1914
+ case tls.Alert.Description.close_notify:
1915
+ msg = 'Connection closed.';
1916
+ break;
1917
+ case tls.Alert.Description.unexpected_message:
1918
+ msg = 'Unexpected message.';
1919
+ break;
1920
+ case tls.Alert.Description.bad_record_mac:
1921
+ msg = 'Bad record MAC.';
1922
+ break;
1923
+ case tls.Alert.Description.decryption_failed:
1924
+ msg = 'Decryption failed.';
1925
+ break;
1926
+ case tls.Alert.Description.record_overflow:
1927
+ msg = 'Record overflow.';
1928
+ break;
1929
+ case tls.Alert.Description.decompression_failure:
1930
+ msg = 'Decompression failed.';
1931
+ break;
1932
+ case tls.Alert.Description.handshake_failure:
1933
+ msg = 'Handshake failure.';
1934
+ break;
1935
+ case tls.Alert.Description.bad_certificate:
1936
+ msg = 'Bad certificate.';
1937
+ break;
1938
+ case tls.Alert.Description.unsupported_certificate:
1939
+ msg = 'Unsupported certificate.';
1940
+ break;
1941
+ case tls.Alert.Description.certificate_revoked:
1942
+ msg = 'Certificate revoked.';
1943
+ break;
1944
+ case tls.Alert.Description.certificate_expired:
1945
+ msg = 'Certificate expired.';
1946
+ break;
1947
+ case tls.Alert.Description.certificate_unknown:
1948
+ msg = 'Certificate unknown.';
1949
+ break;
1950
+ case tls.Alert.Description.illegal_parameter:
1951
+ msg = 'Illegal parameter.';
1952
+ break;
1953
+ case tls.Alert.Description.unknown_ca:
1954
+ msg = 'Unknown certificate authority.';
1955
+ break;
1956
+ case tls.Alert.Description.access_denied:
1957
+ msg = 'Access denied.';
1958
+ break;
1959
+ case tls.Alert.Description.decode_error:
1960
+ msg = 'Decode error.';
1961
+ break;
1962
+ case tls.Alert.Description.decrypt_error:
1963
+ msg = 'Decrypt error.';
1964
+ break;
1965
+ case tls.Alert.Description.export_restriction:
1966
+ msg = 'Export restriction.';
1967
+ break;
1968
+ case tls.Alert.Description.protocol_version:
1969
+ msg = 'Unsupported protocol version.';
1970
+ break;
1971
+ case tls.Alert.Description.insufficient_security:
1972
+ msg = 'Insufficient security.';
1973
+ break;
1974
+ case tls.Alert.Description.internal_error:
1975
+ msg = 'Internal error.';
1976
+ break;
1977
+ case tls.Alert.Description.user_canceled:
1978
+ msg = 'User canceled.';
1979
+ break;
1980
+ case tls.Alert.Description.no_renegotiation:
1981
+ msg = 'Renegotiation not supported.';
1982
+ break;
1983
+ default:
1984
+ msg = 'Unknown error.';
1985
+ break;
1986
+ }
1987
+
1988
+ // close connection on close_notify, not an error
1989
+ if(alert.description === tls.Alert.Description.close_notify) {
1990
+ return c.close();
1991
+ }
1992
+
1993
+ // call error handler
1994
+ c.error(c, {
1995
+ message: msg,
1996
+ send: false,
1997
+ // origin is the opposite end
1998
+ origin: (c.entity === tls.ConnectionEnd.client) ? 'server' : 'client',
1999
+ alert: alert
2000
+ });
2001
+
2002
+ // continue
2003
+ c.process();
2004
+ };
2005
+
2006
+ /**
2007
+ * Called when a Handshake record is received.
2008
+ *
2009
+ * @param c the connection.
2010
+ * @param record the record.
2011
+ */
2012
+ tls.handleHandshake = function(c, record) {
2013
+ // get the handshake type and message length
2014
+ var b = record.fragment;
2015
+ var type = b.getByte();
2016
+ var length = b.getInt24();
2017
+
2018
+ // see if the record fragment doesn't yet contain the full message
2019
+ if(length > b.length()) {
2020
+ // cache the record, clear its fragment, and reset the buffer read
2021
+ // pointer before the type and length were read
2022
+ c.fragmented = record;
2023
+ record.fragment = forge.util.createBuffer();
2024
+ b.read -= 4;
2025
+
2026
+ // continue
2027
+ return c.process();
2028
+ }
2029
+
2030
+ // full message now available, clear cache, reset read pointer to
2031
+ // before type and length
2032
+ c.fragmented = null;
2033
+ b.read -= 4;
2034
+
2035
+ // save the handshake bytes for digestion after handler is found
2036
+ // (include type and length of handshake msg)
2037
+ var bytes = b.bytes(length + 4);
2038
+
2039
+ // restore read pointer
2040
+ b.read += 4;
2041
+
2042
+ // handle expected message; a client has no session before handshake()
2043
+ // or after the connection was closed
2044
+ if(type in hsTable[c.entity][c.expect] &&
2045
+ (c.session || c.entity === tls.ConnectionEnd.server)) {
2046
+ // initialize server session
2047
+ if(c.entity === tls.ConnectionEnd.server && !c.open && !c.fail) {
2048
+ c.handshaking = true;
2049
+ c.session = {
2050
+ version: null,
2051
+ extensions: {
2052
+ server_name: {
2053
+ serverNameList: []
2054
+ }
2055
+ },
2056
+ cipherSuite: null,
2057
+ compressionMethod: null,
2058
+ serverCertificate: null,
2059
+ clientCertificate: null,
2060
+ md5: forge.md.md5.create(),
2061
+ sha1: forge.md.sha1.create()
2062
+ };
2063
+ }
2064
+
2065
+ /* Update handshake messages digest. Finished and CertificateVerify
2066
+ messages are not digested here. They can't be digested as part of
2067
+ the verify_data that they contain. These messages are manually
2068
+ digested in their handlers. HelloRequest messages are simply never
2069
+ included in the handshake message digest according to spec. */
2070
+ if(type !== tls.HandshakeType.hello_request &&
2071
+ type !== tls.HandshakeType.certificate_verify &&
2072
+ type !== tls.HandshakeType.finished) {
2073
+ c.session.md5.update(bytes);
2074
+ c.session.sha1.update(bytes);
2075
+ }
2076
+
2077
+ // handle specific handshake type record
2078
+ hsTable[c.entity][c.expect][type](c, record, length);
2079
+ } else {
2080
+ // unexpected record
2081
+ tls.handleUnexpected(c, record);
2082
+ }
2083
+ };
2084
+
2085
+ /**
2086
+ * Called when an ApplicationData record is received.
2087
+ *
2088
+ * @param c the connection.
2089
+ * @param record the record.
2090
+ */
2091
+ tls.handleApplicationData = function(c, record) {
2092
+ // buffer data, notify that its ready
2093
+ c.data.putBuffer(record.fragment);
2094
+ c.dataReady(c);
2095
+
2096
+ // continue
2097
+ c.process();
2098
+ };
2099
+
2100
+ /**
2101
+ * Called when a Heartbeat record is received.
2102
+ *
2103
+ * @param c the connection.
2104
+ * @param record the record.
2105
+ */
2106
+ tls.handleHeartbeat = function(c, record) {
2107
+ // get the heartbeat type and payload
2108
+ var b = record.fragment;
2109
+ var type = b.getByte();
2110
+ var length = b.getInt16();
2111
+ var payload = b.getBytes(length);
2112
+
2113
+ if(type === tls.HeartbeatMessageType.heartbeat_request) {
2114
+ // discard request before the first handshake is complete, during
2115
+ // handshake, or if length is too large
2116
+ if(c.handshakes === 0 || c.handshaking || length > payload.length) {
2117
+ // continue
2118
+ return c.process();
2119
+ }
2120
+ // retransmit payload
2121
+ tls.queue(c, tls.createRecord(c, {
2122
+ type: tls.ContentType.heartbeat,
2123
+ data: tls.createHeartbeat(
2124
+ tls.HeartbeatMessageType.heartbeat_response, payload)
2125
+ }));
2126
+ tls.flush(c);
2127
+ } else if(type === tls.HeartbeatMessageType.heartbeat_response) {
2128
+ // check payload against expected payload, discard heartbeat if no match
2129
+ if(payload !== c.expectedHeartbeatPayload) {
2130
+ // continue
2131
+ return c.process();
2132
+ }
2133
+
2134
+ // notify that a valid heartbeat was received
2135
+ if(c.heartbeatReceived) {
2136
+ c.heartbeatReceived(c, forge.util.createBuffer(payload));
2137
+ }
2138
+ }
2139
+
2140
+ // continue
2141
+ c.process();
2142
+ };
2143
+
2144
+ /**
2145
+ * The transistional state tables for receiving TLS records. It maps the
2146
+ * current TLS engine state and a received record to a function to handle the
2147
+ * record and update the state.
2148
+ *
2149
+ * For instance, if the current state is SHE, then the TLS engine is expecting
2150
+ * a ServerHello record. Once a record is received, the handler function is
2151
+ * looked up using the state SHE and the record's content type.
2152
+ *
2153
+ * The resulting function will either be an error handler or a record handler.
2154
+ * The function will take whatever action is appropriate and update the state
2155
+ * for the next record.
2156
+ *
2157
+ * The states are all based on possible server record types. Note that the
2158
+ * client will never specifically expect to receive a HelloRequest or an alert
2159
+ * from the server so there is no state that reflects this. These messages may
2160
+ * occur at any time.
2161
+ *
2162
+ * There are two tables for mapping states because there is a second tier of
2163
+ * types for handshake messages. Once a record with a content type of handshake
2164
+ * is received, the handshake record handler will look up the handshake type in
2165
+ * the secondary map to get its appropriate handler.
2166
+ *
2167
+ * Valid message orders are as follows:
2168
+ *
2169
+ * =======================FULL HANDSHAKE======================
2170
+ * Client Server
2171
+ *
2172
+ * ClientHello -------->
2173
+ * ServerHello
2174
+ * Certificate*
2175
+ * ServerKeyExchange*
2176
+ * CertificateRequest*
2177
+ * <-------- ServerHelloDone
2178
+ * Certificate*
2179
+ * ClientKeyExchange
2180
+ * CertificateVerify*
2181
+ * [ChangeCipherSpec]
2182
+ * Finished -------->
2183
+ * [ChangeCipherSpec]
2184
+ * <-------- Finished
2185
+ * Application Data <-------> Application Data
2186
+ *
2187
+ * =====================SESSION RESUMPTION=====================
2188
+ * Client Server
2189
+ *
2190
+ * ClientHello -------->
2191
+ * ServerHello
2192
+ * [ChangeCipherSpec]
2193
+ * <-------- Finished
2194
+ * [ChangeCipherSpec]
2195
+ * Finished -------->
2196
+ * Application Data <-------> Application Data
2197
+ */
2198
+ // client expect states (indicate which records are expected to be received)
2199
+ var SHE = 0; // rcv server hello
2200
+ var SCE = 1; // rcv server certificate
2201
+ var SKE = 2; // rcv server key exchange
2202
+ var SCR = 3; // rcv certificate request
2203
+ var SHD = 4; // rcv server hello done
2204
+ var SCC = 5; // rcv change cipher spec
2205
+ var SFI = 6; // rcv finished
2206
+ var SAD = 7; // rcv application data
2207
+ var SER = 8; // not expecting any messages at this point
2208
+
2209
+ // server expect states
2210
+ var CHE = 0; // rcv client hello
2211
+ var CCE = 1; // rcv client certificate
2212
+ var CKE = 2; // rcv client key exchange
2213
+ var CCV = 3; // rcv certificate verify
2214
+ var CCC = 4; // rcv change cipher spec
2215
+ var CFI = 5; // rcv finished
2216
+ var CAD = 6; // rcv application data
2217
+ var CER = 7; // not expecting any messages at this point
2218
+
2219
+ // map client current expect state and content type to function
2220
+ var __ = tls.handleUnexpected;
2221
+ var R0 = tls.handleChangeCipherSpec;
2222
+ var R1 = tls.handleAlert;
2223
+ var R2 = tls.handleHandshake;
2224
+ var R3 = tls.handleApplicationData;
2225
+ var R4 = tls.handleHeartbeat;
2226
+ var ctTable = [];
2227
+ ctTable[tls.ConnectionEnd.client] = [
2228
+ // CC,AL,HS,AD,HB
2229
+ /*SHE*/[__,R1,R2,__,R4],
2230
+ /*SCE*/[__,R1,R2,__,R4],
2231
+ /*SKE*/[__,R1,R2,__,R4],
2232
+ /*SCR*/[__,R1,R2,__,R4],
2233
+ /*SHD*/[__,R1,R2,__,R4],
2234
+ /*SCC*/[R0,R1,__,__,R4],
2235
+ /*SFI*/[__,R1,R2,__,R4],
2236
+ /*SAD*/[__,R1,R2,R3,R4],
2237
+ /*SER*/[__,R1,R2,__,R4]
2238
+ ];
2239
+
2240
+ // map server current expect state and content type to function
2241
+ ctTable[tls.ConnectionEnd.server] = [
2242
+ // CC,AL,HS,AD
2243
+ /*CHE*/[__,R1,R2,__,R4],
2244
+ /*CCE*/[__,R1,R2,__,R4],
2245
+ /*CKE*/[__,R1,R2,__,R4],
2246
+ /*CCV*/[__,R1,R2,__,R4],
2247
+ /*CCC*/[R0,R1,__,__,R4],
2248
+ /*CFI*/[__,R1,R2,__,R4],
2249
+ /*CAD*/[__,R1,R2,R3,R4],
2250
+ /*CER*/[__,R1,R2,__,R4]
2251
+ ];
2252
+
2253
+ // map client current expect state and handshake type to function
2254
+ var H0 = tls.handleHelloRequest;
2255
+ var H1 = tls.handleServerHello;
2256
+ var H2 = tls.handleCertificate;
2257
+ var H3 = tls.handleServerKeyExchange;
2258
+ var H4 = tls.handleCertificateRequest;
2259
+ var H5 = tls.handleServerHelloDone;
2260
+ var H6 = tls.handleFinished;
2261
+ var hsTable = [];
2262
+ hsTable[tls.ConnectionEnd.client] = [
2263
+ // HR,01,SH,03,04,05,06,07,08,09,10,SC,SK,CR,HD,15,CK,17,18,19,FI
2264
+ /*SHE*/[__,__,H1,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__],
2265
+ /*SCE*/[H0,__,__,__,__,__,__,__,__,__,__,H2,H3,H4,H5,__,__,__,__,__,__],
2266
+ /*SKE*/[H0,__,__,__,__,__,__,__,__,__,__,__,H3,H4,H5,__,__,__,__,__,__],
2267
+ /*SCR*/[H0,__,__,__,__,__,__,__,__,__,__,__,__,H4,H5,__,__,__,__,__,__],
2268
+ /*SHD*/[H0,__,__,__,__,__,__,__,__,__,__,__,__,__,H5,__,__,__,__,__,__],
2269
+ /*SCC*/[H0,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__],
2270
+ /*SFI*/[H0,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,H6],
2271
+ /*SAD*/[H0,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__],
2272
+ /*SER*/[H0,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__]
2273
+ ];
2274
+
2275
+ // map server current expect state and handshake type to function
2276
+ // Note: CAD[CH] does not map to FB because renegotiation is prohibited
2277
+ var H7 = tls.handleClientHello;
2278
+ var H8 = tls.handleClientKeyExchange;
2279
+ var H9 = tls.handleCertificateVerify;
2280
+ hsTable[tls.ConnectionEnd.server] = [
2281
+ // 01,CH,02,03,04,05,06,07,08,09,10,CC,12,13,14,CV,CK,17,18,19,FI
2282
+ /*CHE*/[__,H7,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__],
2283
+ /*CCE*/[__,__,__,__,__,__,__,__,__,__,__,H2,__,__,__,__,__,__,__,__,__],
2284
+ /*CKE*/[__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,H8,__,__,__,__],
2285
+ /*CCV*/[__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,H9,__,__,__,__,__],
2286
+ /*CCC*/[__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__],
2287
+ /*CFI*/[__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,H6],
2288
+ /*CAD*/[__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__],
2289
+ /*CER*/[__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__]
2290
+ ];
2291
+
2292
+ /**
2293
+ * Generates the master_secret and keys using the given security parameters.
2294
+ *
2295
+ * The security parameters for a TLS connection state are defined as such:
2296
+ *
2297
+ * struct {
2298
+ * ConnectionEnd entity;
2299
+ * PRFAlgorithm prf_algorithm;
2300
+ * BulkCipherAlgorithm bulk_cipher_algorithm;
2301
+ * CipherType cipher_type;
2302
+ * uint8 enc_key_length;
2303
+ * uint8 block_length;
2304
+ * uint8 fixed_iv_length;
2305
+ * uint8 record_iv_length;
2306
+ * MACAlgorithm mac_algorithm;
2307
+ * uint8 mac_length;
2308
+ * uint8 mac_key_length;
2309
+ * CompressionMethod compression_algorithm;
2310
+ * opaque master_secret[48];
2311
+ * opaque client_random[32];
2312
+ * opaque server_random[32];
2313
+ * } SecurityParameters;
2314
+ *
2315
+ * Note that this definition is from TLS 1.2. In TLS 1.0 some of these
2316
+ * parameters are ignored because, for instance, the PRFAlgorithm is a
2317
+ * builtin-fixed algorithm combining iterations of MD5 and SHA-1 in TLS 1.0.
2318
+ *
2319
+ * The Record Protocol requires an algorithm to generate keys required by the
2320
+ * current connection state.
2321
+ *
2322
+ * The master secret is expanded into a sequence of secure bytes, which is then
2323
+ * split to a client write MAC key, a server write MAC key, a client write
2324
+ * encryption key, and a server write encryption key. In TLS 1.0 a client write
2325
+ * IV and server write IV are also generated. Each of these is generated from
2326
+ * the byte sequence in that order. Unused values are empty. In TLS 1.2, some
2327
+ * AEAD ciphers may additionally require a client write IV and a server write
2328
+ * IV (see Section 6.2.3.3).
2329
+ *
2330
+ * When keys, MAC keys, and IVs are generated, the master secret is used as an
2331
+ * entropy source.
2332
+ *
2333
+ * To generate the key material, compute:
2334
+ *
2335
+ * master_secret = PRF(pre_master_secret, "master secret",
2336
+ * ClientHello.random + ServerHello.random)
2337
+ *
2338
+ * key_block = PRF(SecurityParameters.master_secret,
2339
+ * "key expansion",
2340
+ * SecurityParameters.server_random +
2341
+ * SecurityParameters.client_random);
2342
+ *
2343
+ * until enough output has been generated. Then, the key_block is
2344
+ * partitioned as follows:
2345
+ *
2346
+ * client_write_MAC_key[SecurityParameters.mac_key_length]
2347
+ * server_write_MAC_key[SecurityParameters.mac_key_length]
2348
+ * client_write_key[SecurityParameters.enc_key_length]
2349
+ * server_write_key[SecurityParameters.enc_key_length]
2350
+ * client_write_IV[SecurityParameters.fixed_iv_length]
2351
+ * server_write_IV[SecurityParameters.fixed_iv_length]
2352
+ *
2353
+ * In TLS 1.2, the client_write_IV and server_write_IV are only generated for
2354
+ * implicit nonce techniques as described in Section 3.2.1 of [AEAD]. This
2355
+ * implementation uses TLS 1.0 so IVs are generated.
2356
+ *
2357
+ * Implementation note: The currently defined cipher suite which requires the
2358
+ * most material is AES_256_CBC_SHA256. It requires 2 x 32 byte keys and 2 x 32
2359
+ * byte MAC keys, for a total 128 bytes of key material. In TLS 1.0 it also
2360
+ * requires 2 x 16 byte IVs, so it actually takes 160 bytes of key material.
2361
+ *
2362
+ * @param c the connection.
2363
+ * @param sp the security parameters to use.
2364
+ *
2365
+ * @return the security keys.
2366
+ */
2367
+ tls.generateKeys = function(c, sp) {
2368
+ // TLS_RSA_WITH_AES_128_CBC_SHA (required to be compliant with TLS 1.2) &
2369
+ // TLS_RSA_WITH_AES_256_CBC_SHA are the only cipher suites implemented
2370
+ // at present
2371
+
2372
+ // TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA is required to be compliant with
2373
+ // TLS 1.0 but we don't care right now because AES is better and we have
2374
+ // an implementation for it
2375
+
2376
+ // TODO: TLS 1.2 implementation
2377
+ /*
2378
+ // determine the PRF
2379
+ var prf;
2380
+ switch(sp.prf_algorithm) {
2381
+ case tls.PRFAlgorithm.tls_prf_sha256:
2382
+ prf = prf_sha256;
2383
+ break;
2384
+ default:
2385
+ // should never happen
2386
+ throw new Error('Invalid PRF');
2387
+ }
2388
+ */
2389
+
2390
+ // TLS 1.0/1.1 implementation
2391
+ var prf = prf_TLS1;
2392
+
2393
+ // concatenate server and client random
2394
+ var random = sp.client_random + sp.server_random;
2395
+
2396
+ // only create master secret if session is new
2397
+ if(!c.session.resuming) {
2398
+ // create master secret, clean up pre-master secret
2399
+ sp.master_secret = prf(
2400
+ sp.pre_master_secret, 'master secret', random, 48).bytes();
2401
+ sp.pre_master_secret = null;
2402
+ }
2403
+
2404
+ // generate the amount of key material needed
2405
+ random = sp.server_random + sp.client_random;
2406
+ var length = 2 * sp.mac_key_length + 2 * sp.enc_key_length;
2407
+
2408
+ // include IV for TLS/1.0
2409
+ var tls10 = (c.version.major === tls.Versions.TLS_1_0.major &&
2410
+ c.version.minor === tls.Versions.TLS_1_0.minor);
2411
+ if(tls10) {
2412
+ length += 2 * sp.fixed_iv_length;
2413
+ }
2414
+ var km = prf(sp.master_secret, 'key expansion', random, length);
2415
+
2416
+ // split the key material into the MAC and encryption keys
2417
+ var rval = {
2418
+ client_write_MAC_key: km.getBytes(sp.mac_key_length),
2419
+ server_write_MAC_key: km.getBytes(sp.mac_key_length),
2420
+ client_write_key: km.getBytes(sp.enc_key_length),
2421
+ server_write_key: km.getBytes(sp.enc_key_length)
2422
+ };
2423
+
2424
+ // include TLS 1.0 IVs
2425
+ if(tls10) {
2426
+ rval.client_write_IV = km.getBytes(sp.fixed_iv_length);
2427
+ rval.server_write_IV = km.getBytes(sp.fixed_iv_length);
2428
+ }
2429
+
2430
+ return rval;
2431
+ };
2432
+
2433
+ /**
2434
+ * Creates a new initialized TLS connection state. A connection state has
2435
+ * a read mode and a write mode.
2436
+ *
2437
+ * compression state:
2438
+ * The current state of the compression algorithm.
2439
+ *
2440
+ * cipher state:
2441
+ * The current state of the encryption algorithm. This will consist of the
2442
+ * scheduled key for that connection. For stream ciphers, this will also
2443
+ * contain whatever state information is necessary to allow the stream to
2444
+ * continue to encrypt or decrypt data.
2445
+ *
2446
+ * MAC key:
2447
+ * The MAC key for the connection.
2448
+ *
2449
+ * sequence number:
2450
+ * Each connection state contains a sequence number, which is maintained
2451
+ * separately for read and write states. The sequence number MUST be set to
2452
+ * zero whenever a connection state is made the active state. Sequence
2453
+ * numbers are of type uint64 and may not exceed 2^64-1. Sequence numbers do
2454
+ * not wrap. If a TLS implementation would need to wrap a sequence number,
2455
+ * it must renegotiate instead. A sequence number is incremented after each
2456
+ * record: specifically, the first record transmitted under a particular
2457
+ * connection state MUST use sequence number 0.
2458
+ *
2459
+ * @param c the connection.
2460
+ *
2461
+ * @return the new initialized TLS connection state.
2462
+ */
2463
+ tls.createConnectionState = function(c) {
2464
+ var client = (c.entity === tls.ConnectionEnd.client);
2465
+
2466
+ var createMode = function() {
2467
+ var mode = {
2468
+ // two 32-bit numbers, first is most significant
2469
+ sequenceNumber: [0, 0],
2470
+ macKey: null,
2471
+ macLength: 0,
2472
+ macFunction: null,
2473
+ cipherState: null,
2474
+ cipherFunction: function(record) {return true;},
2475
+ compressionState: null,
2476
+ compressFunction: function(record) {return true;},
2477
+ updateSequenceNumber: function() {
2478
+ if(mode.sequenceNumber[1] === 0xFFFFFFFF) {
2479
+ mode.sequenceNumber[1] = 0;
2480
+ ++mode.sequenceNumber[0];
2481
+ } else {
2482
+ ++mode.sequenceNumber[1];
2483
+ }
2484
+ }
2485
+ };
2486
+ return mode;
2487
+ };
2488
+ var state = {
2489
+ read: createMode(),
2490
+ write: createMode()
2491
+ };
2492
+
2493
+ // update function in read mode will decrypt then decompress a record
2494
+ state.read.update = function(c, record) {
2495
+ if(!state.read.cipherFunction(record, state.read)) {
2496
+ c.error(c, {
2497
+ message: 'Could not decrypt record or bad MAC.',
2498
+ send: true,
2499
+ alert: {
2500
+ level: tls.Alert.Level.fatal,
2501
+ // doesn't matter if decryption failed or MAC was
2502
+ // invalid, return the same error so as not to reveal
2503
+ // which one occurred
2504
+ description: tls.Alert.Description.bad_record_mac
2505
+ }
2506
+ });
2507
+ } else if(!state.read.compressFunction(c, record, state.read)) {
2508
+ c.error(c, {
2509
+ message: 'Could not decompress record.',
2510
+ send: true,
2511
+ alert: {
2512
+ level: tls.Alert.Level.fatal,
2513
+ description: tls.Alert.Description.decompression_failure
2514
+ }
2515
+ });
2516
+ }
2517
+ return !c.fail;
2518
+ };
2519
+
2520
+ // update function in write mode will compress then encrypt a record
2521
+ state.write.update = function(c, record) {
2522
+ if(!state.write.compressFunction(c, record, state.write)) {
2523
+ // error, but do not send alert since it would require
2524
+ // compression as well
2525
+ c.error(c, {
2526
+ message: 'Could not compress record.',
2527
+ send: false,
2528
+ alert: {
2529
+ level: tls.Alert.Level.fatal,
2530
+ description: tls.Alert.Description.internal_error
2531
+ }
2532
+ });
2533
+ } else if(!state.write.cipherFunction(record, state.write)) {
2534
+ // error, but do not send alert since it would require
2535
+ // encryption as well
2536
+ c.error(c, {
2537
+ message: 'Could not encrypt record.',
2538
+ send: false,
2539
+ alert: {
2540
+ level: tls.Alert.Level.fatal,
2541
+ description: tls.Alert.Description.internal_error
2542
+ }
2543
+ });
2544
+ }
2545
+ return !c.fail;
2546
+ };
2547
+
2548
+ // handle security parameters
2549
+ if(c.session) {
2550
+ var sp = c.session.sp;
2551
+ c.session.cipherSuite.initSecurityParameters(sp);
2552
+
2553
+ // generate keys
2554
+ sp.keys = tls.generateKeys(c, sp);
2555
+ state.read.macKey = client ?
2556
+ sp.keys.server_write_MAC_key : sp.keys.client_write_MAC_key;
2557
+ state.write.macKey = client ?
2558
+ sp.keys.client_write_MAC_key : sp.keys.server_write_MAC_key;
2559
+
2560
+ // cipher suite setup
2561
+ c.session.cipherSuite.initConnectionState(state, c, sp);
2562
+
2563
+ // compression setup
2564
+ switch(sp.compression_algorithm) {
2565
+ case tls.CompressionMethod.none:
2566
+ break;
2567
+ case tls.CompressionMethod.deflate:
2568
+ state.read.compressFunction = inflate;
2569
+ state.write.compressFunction = deflate;
2570
+ break;
2571
+ default:
2572
+ throw new Error('Unsupported compression algorithm.');
2573
+ }
2574
+ }
2575
+
2576
+ return state;
2577
+ };
2578
+
2579
+ /**
2580
+ * Creates a Random structure.
2581
+ *
2582
+ * struct {
2583
+ * uint32 gmt_unix_time;
2584
+ * opaque random_bytes[28];
2585
+ * } Random;
2586
+ *
2587
+ * gmt_unix_time:
2588
+ * The current time and date in standard UNIX 32-bit format (seconds since
2589
+ * the midnight starting Jan 1, 1970, UTC, ignoring leap seconds) according
2590
+ * to the sender's internal clock. Clocks are not required to be set
2591
+ * correctly by the basic TLS protocol; higher-level or application
2592
+ * protocols may define additional requirements. Note that, for historical
2593
+ * reasons, the data element is named using GMT, the predecessor of the
2594
+ * current worldwide time base, UTC.
2595
+ * random_bytes:
2596
+ * 28 bytes generated by a secure random number generator.
2597
+ *
2598
+ * @return the Random structure as a byte array.
2599
+ */
2600
+ tls.createRandom = function() {
2601
+ // get UTC milliseconds
2602
+ var d = new Date();
2603
+ var utc = +d + d.getTimezoneOffset() * 60000;
2604
+ var rval = forge.util.createBuffer();
2605
+ rval.putInt32(utc);
2606
+ rval.putBytes(forge.random.getBytes(28));
2607
+ return rval;
2608
+ };
2609
+
2610
+ /**
2611
+ * Creates a TLS record with the given type and data.
2612
+ *
2613
+ * @param c the connection.
2614
+ * @param options:
2615
+ * type: the record type.
2616
+ * data: the plain text data in a byte buffer.
2617
+ *
2618
+ * @return the created record.
2619
+ */
2620
+ tls.createRecord = function(c, options) {
2621
+ if(!options.data) {
2622
+ return null;
2623
+ }
2624
+ var record = {
2625
+ type: options.type,
2626
+ version: {
2627
+ major: c.version.major,
2628
+ minor: c.version.minor
2629
+ },
2630
+ length: options.data.length(),
2631
+ fragment: options.data
2632
+ };
2633
+ return record;
2634
+ };
2635
+
2636
+ /**
2637
+ * Creates a TLS alert record.
2638
+ *
2639
+ * @param c the connection.
2640
+ * @param alert:
2641
+ * level: the TLS alert level.
2642
+ * description: the TLS alert description.
2643
+ *
2644
+ * @return the created alert record.
2645
+ */
2646
+ tls.createAlert = function(c, alert) {
2647
+ var b = forge.util.createBuffer();
2648
+ b.putByte(alert.level);
2649
+ b.putByte(alert.description);
2650
+ return tls.createRecord(c, {
2651
+ type: tls.ContentType.alert,
2652
+ data: b
2653
+ });
2654
+ };
2655
+
2656
+ /* The structure of a TLS handshake message.
2657
+ *
2658
+ * struct {
2659
+ * HandshakeType msg_type; // handshake type
2660
+ * uint24 length; // bytes in message
2661
+ * select(HandshakeType) {
2662
+ * case hello_request: HelloRequest;
2663
+ * case client_hello: ClientHello;
2664
+ * case server_hello: ServerHello;
2665
+ * case certificate: Certificate;
2666
+ * case server_key_exchange: ServerKeyExchange;
2667
+ * case certificate_request: CertificateRequest;
2668
+ * case server_hello_done: ServerHelloDone;
2669
+ * case certificate_verify: CertificateVerify;
2670
+ * case client_key_exchange: ClientKeyExchange;
2671
+ * case finished: Finished;
2672
+ * } body;
2673
+ * } Handshake;
2674
+ */
2675
+
2676
+ /**
2677
+ * Creates a ClientHello message.
2678
+ *
2679
+ * opaque SessionID<0..32>;
2680
+ * enum { null(0), deflate(1), (255) } CompressionMethod;
2681
+ * uint8 CipherSuite[2];
2682
+ *
2683
+ * struct {
2684
+ * ProtocolVersion client_version;
2685
+ * Random random;
2686
+ * SessionID session_id;
2687
+ * CipherSuite cipher_suites<2..2^16-2>;
2688
+ * CompressionMethod compression_methods<1..2^8-1>;
2689
+ * select(extensions_present) {
2690
+ * case false:
2691
+ * struct {};
2692
+ * case true:
2693
+ * Extension extensions<0..2^16-1>;
2694
+ * };
2695
+ * } ClientHello;
2696
+ *
2697
+ * The extension format for extended client hellos and server hellos is:
2698
+ *
2699
+ * struct {
2700
+ * ExtensionType extension_type;
2701
+ * opaque extension_data<0..2^16-1>;
2702
+ * } Extension;
2703
+ *
2704
+ * Here:
2705
+ *
2706
+ * - "extension_type" identifies the particular extension type.
2707
+ * - "extension_data" contains information specific to the particular
2708
+ * extension type.
2709
+ *
2710
+ * The extension types defined in this document are:
2711
+ *
2712
+ * enum {
2713
+ * server_name(0), max_fragment_length(1),
2714
+ * client_certificate_url(2), trusted_ca_keys(3),
2715
+ * truncated_hmac(4), status_request(5), (65535)
2716
+ * } ExtensionType;
2717
+ *
2718
+ * @param c the connection.
2719
+ *
2720
+ * @return the ClientHello byte buffer.
2721
+ */
2722
+ tls.createClientHello = function(c) {
2723
+ // save hello version
2724
+ c.session.clientHelloVersion = {
2725
+ major: c.version.major,
2726
+ minor: c.version.minor
2727
+ };
2728
+
2729
+ // create supported cipher suites
2730
+ var cipherSuites = forge.util.createBuffer();
2731
+ for(var i = 0; i < c.cipherSuites.length; ++i) {
2732
+ var cs = c.cipherSuites[i];
2733
+ cipherSuites.putByte(cs.id[0]);
2734
+ cipherSuites.putByte(cs.id[1]);
2735
+ }
2736
+ var cSuites = cipherSuites.length();
2737
+
2738
+ // create supported compression methods, null always supported, but
2739
+ // also support deflate if connection has inflate and deflate methods
2740
+ var compressionMethods = forge.util.createBuffer();
2741
+ compressionMethods.putByte(tls.CompressionMethod.none);
2742
+ // FIXME: deflate support disabled until issues with raw deflate data
2743
+ // without zlib headers are resolved
2744
+ /*
2745
+ if(c.inflate !== null && c.deflate !== null) {
2746
+ compressionMethods.putByte(tls.CompressionMethod.deflate);
2747
+ }
2748
+ */
2749
+ var cMethods = compressionMethods.length();
2750
+
2751
+ // create TLS SNI (server name indication) extension if virtual host
2752
+ // has been specified, see RFC 3546
2753
+ var extensions = forge.util.createBuffer();
2754
+ if(c.virtualHost) {
2755
+ // create extension struct
2756
+ var ext = forge.util.createBuffer();
2757
+ ext.putByte(0x00); // type server_name (ExtensionType is 2 bytes)
2758
+ ext.putByte(0x00);
2759
+
2760
+ /* In order to provide the server name, clients MAY include an
2761
+ * extension of type "server_name" in the (extended) client hello.
2762
+ * The "extension_data" field of this extension SHALL contain
2763
+ * "ServerNameList" where:
2764
+ *
2765
+ * struct {
2766
+ * NameType name_type;
2767
+ * select(name_type) {
2768
+ * case host_name: HostName;
2769
+ * } name;
2770
+ * } ServerName;
2771
+ *
2772
+ * enum {
2773
+ * host_name(0), (255)
2774
+ * } NameType;
2775
+ *
2776
+ * opaque HostName<1..2^16-1>;
2777
+ *
2778
+ * struct {
2779
+ * ServerName server_name_list<1..2^16-1>
2780
+ * } ServerNameList;
2781
+ */
2782
+ var serverName = forge.util.createBuffer();
2783
+ serverName.putByte(0x00); // type host_name
2784
+ writeVector(serverName, 2, forge.util.createBuffer(c.virtualHost));
2785
+
2786
+ // ServerNameList is in extension_data
2787
+ var snList = forge.util.createBuffer();
2788
+ writeVector(snList, 2, serverName);
2789
+ writeVector(ext, 2, snList);
2790
+ extensions.putBuffer(ext);
2791
+ }
2792
+ var extLength = extensions.length();
2793
+ if(extLength > 0) {
2794
+ // add extension vector length
2795
+ extLength += 2;
2796
+ }
2797
+
2798
+ // determine length of the handshake message
2799
+ // cipher suites and compression methods size will need to be
2800
+ // updated if more get added to the list
2801
+ var sessionId = c.session.id;
2802
+ var length =
2803
+ sessionId.length + 1 + // session ID vector
2804
+ 2 + // version (major + minor)
2805
+ 4 + 28 + // random time and random bytes
2806
+ 2 + cSuites + // cipher suites vector
2807
+ 1 + cMethods + // compression methods vector
2808
+ extLength; // extensions vector
2809
+
2810
+ // build record fragment
2811
+ var rval = forge.util.createBuffer();
2812
+ rval.putByte(tls.HandshakeType.client_hello);
2813
+ rval.putInt24(length); // handshake length
2814
+ rval.putByte(c.version.major); // major version
2815
+ rval.putByte(c.version.minor); // minor version
2816
+ rval.putBytes(c.session.sp.client_random); // random time + bytes
2817
+ writeVector(rval, 1, forge.util.createBuffer(sessionId));
2818
+ writeVector(rval, 2, cipherSuites);
2819
+ writeVector(rval, 1, compressionMethods);
2820
+ if(extLength > 0) {
2821
+ writeVector(rval, 2, extensions);
2822
+ }
2823
+ return rval;
2824
+ };
2825
+
2826
+ /**
2827
+ * Creates a ServerHello message.
2828
+ *
2829
+ * @param c the connection.
2830
+ *
2831
+ * @return the ServerHello byte buffer.
2832
+ */
2833
+ tls.createServerHello = function(c) {
2834
+ // determine length of the handshake message
2835
+ var sessionId = c.session.id;
2836
+ var length =
2837
+ sessionId.length + 1 + // session ID vector
2838
+ 2 + // version (major + minor)
2839
+ 4 + 28 + // random time and random bytes
2840
+ 2 + // chosen cipher suite
2841
+ 1; // chosen compression method
2842
+
2843
+ // build record fragment
2844
+ var rval = forge.util.createBuffer();
2845
+ rval.putByte(tls.HandshakeType.server_hello);
2846
+ rval.putInt24(length); // handshake length
2847
+ rval.putByte(c.version.major); // major version
2848
+ rval.putByte(c.version.minor); // minor version
2849
+ rval.putBytes(c.session.sp.server_random); // random time + bytes
2850
+ writeVector(rval, 1, forge.util.createBuffer(sessionId));
2851
+ rval.putByte(c.session.cipherSuite.id[0]);
2852
+ rval.putByte(c.session.cipherSuite.id[1]);
2853
+ rval.putByte(c.session.compressionMethod);
2854
+ return rval;
2855
+ };
2856
+
2857
+ /**
2858
+ * Creates a Certificate message.
2859
+ *
2860
+ * When this message will be sent:
2861
+ * This is the first message the client can send after receiving a server
2862
+ * hello done message and the first message the server can send after
2863
+ * sending a ServerHello. This client message is only sent if the server
2864
+ * requests a certificate. If no suitable certificate is available, the
2865
+ * client should send a certificate message containing no certificates. If
2866
+ * client authentication is required by the server for the handshake to
2867
+ * continue, it may respond with a fatal handshake failure alert.
2868
+ *
2869
+ * opaque ASN.1Cert<1..2^24-1>;
2870
+ *
2871
+ * struct {
2872
+ * ASN.1Cert certificate_list<0..2^24-1>;
2873
+ * } Certificate;
2874
+ *
2875
+ * @param c the connection.
2876
+ *
2877
+ * @return the Certificate byte buffer.
2878
+ */
2879
+ tls.createCertificate = function(c) {
2880
+ // TODO: check certificate request to ensure types are supported
2881
+
2882
+ // get a certificate (a certificate as a PEM string)
2883
+ var client = (c.entity === tls.ConnectionEnd.client);
2884
+ var cert = null;
2885
+ if(c.getCertificate) {
2886
+ var hint;
2887
+ if(client) {
2888
+ hint = c.session.certificateRequest;
2889
+ } else {
2890
+ hint = c.session.extensions.server_name.serverNameList;
2891
+ }
2892
+ cert = c.getCertificate(c, hint);
2893
+ }
2894
+
2895
+ // buffer to hold certificate list
2896
+ var certList = forge.util.createBuffer();
2897
+ if(cert !== null) {
2898
+ try {
2899
+ // normalize cert to a chain of certificates
2900
+ if(!forge.util.isArray(cert)) {
2901
+ cert = [cert];
2902
+ }
2903
+ var asn1 = null;
2904
+ for(var i = 0; i < cert.length; ++i) {
2905
+ var msg = forge.pem.decode(cert[i])[0];
2906
+ if(msg.type !== 'CERTIFICATE' &&
2907
+ msg.type !== 'X509 CERTIFICATE' &&
2908
+ msg.type !== 'TRUSTED CERTIFICATE') {
2909
+ var error = new Error('Could not convert certificate from PEM; PEM ' +
2910
+ 'header type is not "CERTIFICATE", "X509 CERTIFICATE", or ' +
2911
+ '"TRUSTED CERTIFICATE".');
2912
+ error.headerType = msg.type;
2913
+ throw error;
2914
+ }
2915
+ if(msg.procType && msg.procType.type === 'ENCRYPTED') {
2916
+ throw new Error('Could not convert certificate from PEM; PEM is encrypted.');
2917
+ }
2918
+
2919
+ var der = forge.util.createBuffer(msg.body);
2920
+ if(asn1 === null) {
2921
+ asn1 = forge.asn1.fromDer(der.bytes(), false);
2922
+ }
2923
+
2924
+ // certificate entry is itself a vector with 3 length bytes
2925
+ var certBuffer = forge.util.createBuffer();
2926
+ writeVector(certBuffer, 3, der);
2927
+
2928
+ // add cert vector to cert list vector
2929
+ certList.putBuffer(certBuffer);
2930
+ }
2931
+
2932
+ // save certificate
2933
+ cert = forge.pki.certificateFromAsn1(asn1);
2934
+ if(client) {
2935
+ c.session.clientCertificate = cert;
2936
+ } else {
2937
+ c.session.serverCertificate = cert;
2938
+ }
2939
+ } catch(ex) {
2940
+ return c.error(c, {
2941
+ message: 'Could not send certificate list.',
2942
+ cause: ex,
2943
+ send: true,
2944
+ alert: {
2945
+ level: tls.Alert.Level.fatal,
2946
+ description: tls.Alert.Description.bad_certificate
2947
+ }
2948
+ });
2949
+ }
2950
+ }
2951
+
2952
+ // determine length of the handshake message
2953
+ var length = 3 + certList.length(); // cert list vector
2954
+
2955
+ // build record fragment
2956
+ var rval = forge.util.createBuffer();
2957
+ rval.putByte(tls.HandshakeType.certificate);
2958
+ rval.putInt24(length);
2959
+ writeVector(rval, 3, certList);
2960
+ return rval;
2961
+ };
2962
+
2963
+ /**
2964
+ * Creates a ClientKeyExchange message.
2965
+ *
2966
+ * When this message will be sent:
2967
+ * This message is always sent by the client. It will immediately follow the
2968
+ * client certificate message, if it is sent. Otherwise it will be the first
2969
+ * message sent by the client after it receives the server hello done
2970
+ * message.
2971
+ *
2972
+ * Meaning of this message:
2973
+ * With this message, the premaster secret is set, either though direct
2974
+ * transmission of the RSA-encrypted secret, or by the transmission of
2975
+ * Diffie-Hellman parameters which will allow each side to agree upon the
2976
+ * same premaster secret. When the key exchange method is DH_RSA or DH_DSS,
2977
+ * client certification has been requested, and the client was able to
2978
+ * respond with a certificate which contained a Diffie-Hellman public key
2979
+ * whose parameters (group and generator) matched those specified by the
2980
+ * server in its certificate, this message will not contain any data.
2981
+ *
2982
+ * Meaning of this message:
2983
+ * If RSA is being used for key agreement and authentication, the client
2984
+ * generates a 48-byte premaster secret, encrypts it using the public key
2985
+ * from the server's certificate or the temporary RSA key provided in a
2986
+ * server key exchange message, and sends the result in an encrypted
2987
+ * premaster secret message. This structure is a variant of the client
2988
+ * key exchange message, not a message in itself.
2989
+ *
2990
+ * struct {
2991
+ * select(KeyExchangeAlgorithm) {
2992
+ * case rsa: EncryptedPreMasterSecret;
2993
+ * case diffie_hellman: ClientDiffieHellmanPublic;
2994
+ * } exchange_keys;
2995
+ * } ClientKeyExchange;
2996
+ *
2997
+ * struct {
2998
+ * ProtocolVersion client_version;
2999
+ * opaque random[46];
3000
+ * } PreMasterSecret;
3001
+ *
3002
+ * struct {
3003
+ * public-key-encrypted PreMasterSecret pre_master_secret;
3004
+ * } EncryptedPreMasterSecret;
3005
+ *
3006
+ * A public-key-encrypted element is encoded as a vector <0..2^16-1>.
3007
+ *
3008
+ * @param c the connection.
3009
+ *
3010
+ * @return the ClientKeyExchange byte buffer.
3011
+ */
3012
+ tls.createClientKeyExchange = function(c) {
3013
+ // create buffer to encrypt
3014
+ var b = forge.util.createBuffer();
3015
+
3016
+ // add highest client-supported protocol to help server avoid version
3017
+ // rollback attacks
3018
+ b.putByte(c.session.clientHelloVersion.major);
3019
+ b.putByte(c.session.clientHelloVersion.minor);
3020
+
3021
+ // generate and add 46 random bytes
3022
+ b.putBytes(forge.random.getBytes(46));
3023
+
3024
+ // save pre-master secret
3025
+ var sp = c.session.sp;
3026
+ sp.pre_master_secret = b.getBytes();
3027
+
3028
+ // RSA-encrypt the pre-master secret
3029
+ var key = c.session.serverCertificate.publicKey;
3030
+ b = key.encrypt(sp.pre_master_secret);
3031
+
3032
+ /* Note: The encrypted pre-master secret will be stored in a
3033
+ public-key-encrypted opaque vector that has the length prefixed using
3034
+ 2 bytes, so include those 2 bytes in the handshake message length. This
3035
+ is done as a minor optimization instead of calling writeVector(). */
3036
+
3037
+ // determine length of the handshake message
3038
+ var length = b.length + 2;
3039
+
3040
+ // build record fragment
3041
+ var rval = forge.util.createBuffer();
3042
+ rval.putByte(tls.HandshakeType.client_key_exchange);
3043
+ rval.putInt24(length);
3044
+ // add vector length bytes
3045
+ rval.putInt16(b.length);
3046
+ rval.putBytes(b);
3047
+ return rval;
3048
+ };
3049
+
3050
+ /**
3051
+ * Creates a ServerKeyExchange message.
3052
+ *
3053
+ * @param c the connection.
3054
+ *
3055
+ * @return the ServerKeyExchange byte buffer.
3056
+ */
3057
+ tls.createServerKeyExchange = function(c) {
3058
+ // this implementation only supports RSA, no Diffie-Hellman support,
3059
+ // so this record is empty
3060
+
3061
+ // determine length of the handshake message
3062
+ var length = 0;
3063
+
3064
+ // build record fragment
3065
+ var rval = forge.util.createBuffer();
3066
+ if(length > 0) {
3067
+ rval.putByte(tls.HandshakeType.server_key_exchange);
3068
+ rval.putInt24(length);
3069
+ }
3070
+ return rval;
3071
+ };
3072
+
3073
+ /**
3074
+ * Gets the signed data used to verify a client-side certificate. See
3075
+ * tls.createCertificateVerify() for details.
3076
+ *
3077
+ * @param c the connection.
3078
+ * @param callback the callback to call once the signed data is ready.
3079
+ */
3080
+ tls.getClientSignature = function(c, callback) {
3081
+ // generate data to RSA encrypt
3082
+ var b = forge.util.createBuffer();
3083
+ b.putBuffer(c.session.md5.digest());
3084
+ b.putBuffer(c.session.sha1.digest());
3085
+ b = b.getBytes();
3086
+
3087
+ // create default signing function as necessary
3088
+ c.getSignature = c.getSignature || function(c, b, callback) {
3089
+ // do rsa encryption, call callback
3090
+ var privateKey = null;
3091
+ if(c.getPrivateKey) {
3092
+ try {
3093
+ privateKey = c.getPrivateKey(c, c.session.clientCertificate);
3094
+ privateKey = forge.pki.privateKeyFromPem(privateKey);
3095
+ } catch(ex) {
3096
+ c.error(c, {
3097
+ message: 'Could not get private key.',
3098
+ cause: ex,
3099
+ send: true,
3100
+ alert: {
3101
+ level: tls.Alert.Level.fatal,
3102
+ description: tls.Alert.Description.internal_error
3103
+ }
3104
+ });
3105
+ }
3106
+ }
3107
+ if(privateKey === null) {
3108
+ c.error(c, {
3109
+ message: 'No private key set.',
3110
+ send: true,
3111
+ alert: {
3112
+ level: tls.Alert.Level.fatal,
3113
+ description: tls.Alert.Description.internal_error
3114
+ }
3115
+ });
3116
+ } else {
3117
+ b = privateKey.sign(b, null);
3118
+ }
3119
+ callback(c, b);
3120
+ };
3121
+
3122
+ // get client signature
3123
+ c.getSignature(c, b, callback);
3124
+ };
3125
+
3126
+ /**
3127
+ * Creates a CertificateVerify message.
3128
+ *
3129
+ * Meaning of this message:
3130
+ * This structure conveys the client's Diffie-Hellman public value
3131
+ * (Yc) if it was not already included in the client's certificate.
3132
+ * The encoding used for Yc is determined by the enumerated
3133
+ * PublicValueEncoding. This structure is a variant of the client
3134
+ * key exchange message, not a message in itself.
3135
+ *
3136
+ * When this message will be sent:
3137
+ * This message is used to provide explicit verification of a client
3138
+ * certificate. This message is only sent following a client
3139
+ * certificate that has signing capability (i.e. all certificates
3140
+ * except those containing fixed Diffie-Hellman parameters). When
3141
+ * sent, it will immediately follow the client key exchange message.
3142
+ *
3143
+ * struct {
3144
+ * Signature signature;
3145
+ * } CertificateVerify;
3146
+ *
3147
+ * CertificateVerify.signature.md5_hash
3148
+ * MD5(handshake_messages);
3149
+ *
3150
+ * Certificate.signature.sha_hash
3151
+ * SHA(handshake_messages);
3152
+ *
3153
+ * Here handshake_messages refers to all handshake messages sent or
3154
+ * received starting at client hello up to but not including this
3155
+ * message, including the type and length fields of the handshake
3156
+ * messages.
3157
+ *
3158
+ * select(SignatureAlgorithm) {
3159
+ * case anonymous: struct { };
3160
+ * case rsa:
3161
+ * digitally-signed struct {
3162
+ * opaque md5_hash[16];
3163
+ * opaque sha_hash[20];
3164
+ * };
3165
+ * case dsa:
3166
+ * digitally-signed struct {
3167
+ * opaque sha_hash[20];
3168
+ * };
3169
+ * } Signature;
3170
+ *
3171
+ * In digital signing, one-way hash functions are used as input for a
3172
+ * signing algorithm. A digitally-signed element is encoded as an opaque
3173
+ * vector <0..2^16-1>, where the length is specified by the signing
3174
+ * algorithm and key.
3175
+ *
3176
+ * In RSA signing, a 36-byte structure of two hashes (one SHA and one
3177
+ * MD5) is signed (encrypted with the private key). It is encoded with
3178
+ * PKCS #1 block type 0 or type 1 as described in [PKCS1].
3179
+ *
3180
+ * In DSS, the 20 bytes of the SHA hash are run directly through the
3181
+ * Digital Signing Algorithm with no additional hashing.
3182
+ *
3183
+ * @param c the connection.
3184
+ * @param signature the signature to include in the message.
3185
+ *
3186
+ * @return the CertificateVerify byte buffer.
3187
+ */
3188
+ tls.createCertificateVerify = function(c, signature) {
3189
+ /* Note: The signature will be stored in a "digitally-signed" opaque
3190
+ vector that has the length prefixed using 2 bytes, so include those
3191
+ 2 bytes in the handshake message length. This is done as a minor
3192
+ optimization instead of calling writeVector(). */
3193
+
3194
+ // determine length of the handshake message
3195
+ var length = signature.length + 2;
3196
+
3197
+ // build record fragment
3198
+ var rval = forge.util.createBuffer();
3199
+ rval.putByte(tls.HandshakeType.certificate_verify);
3200
+ rval.putInt24(length);
3201
+ // add vector length bytes
3202
+ rval.putInt16(signature.length);
3203
+ rval.putBytes(signature);
3204
+ return rval;
3205
+ };
3206
+
3207
+ /**
3208
+ * Creates a CertificateRequest message.
3209
+ *
3210
+ * @param c the connection.
3211
+ *
3212
+ * @return the CertificateRequest byte buffer.
3213
+ */
3214
+ tls.createCertificateRequest = function(c) {
3215
+ // TODO: support other certificate types
3216
+ var certTypes = forge.util.createBuffer();
3217
+
3218
+ // common RSA certificate type
3219
+ certTypes.putByte(0x01);
3220
+
3221
+ // add distinguished names from CA store
3222
+ var cAs = forge.util.createBuffer();
3223
+ for(var key in c.caStore.certs) {
3224
+ var cert = c.caStore.certs[key];
3225
+ var dn = forge.pki.distinguishedNameToAsn1(cert.subject);
3226
+ var byteBuffer = forge.asn1.toDer(dn);
3227
+ cAs.putInt16(byteBuffer.length());
3228
+ cAs.putBuffer(byteBuffer);
3229
+ }
3230
+
3231
+ // TODO: TLS 1.2+ has a different format
3232
+
3233
+ // determine length of the handshake message
3234
+ var length =
3235
+ 1 + certTypes.length() +
3236
+ 2 + cAs.length();
3237
+
3238
+ // build record fragment
3239
+ var rval = forge.util.createBuffer();
3240
+ rval.putByte(tls.HandshakeType.certificate_request);
3241
+ rval.putInt24(length);
3242
+ writeVector(rval, 1, certTypes);
3243
+ writeVector(rval, 2, cAs);
3244
+ return rval;
3245
+ };
3246
+
3247
+ /**
3248
+ * Creates a ServerHelloDone message.
3249
+ *
3250
+ * @param c the connection.
3251
+ *
3252
+ * @return the ServerHelloDone byte buffer.
3253
+ */
3254
+ tls.createServerHelloDone = function(c) {
3255
+ // build record fragment
3256
+ var rval = forge.util.createBuffer();
3257
+ rval.putByte(tls.HandshakeType.server_hello_done);
3258
+ rval.putInt24(0);
3259
+ return rval;
3260
+ };
3261
+
3262
+ /**
3263
+ * Creates a ChangeCipherSpec message.
3264
+ *
3265
+ * The change cipher spec protocol exists to signal transitions in
3266
+ * ciphering strategies. The protocol consists of a single message,
3267
+ * which is encrypted and compressed under the current (not the pending)
3268
+ * connection state. The message consists of a single byte of value 1.
3269
+ *
3270
+ * struct {
3271
+ * enum { change_cipher_spec(1), (255) } type;
3272
+ * } ChangeCipherSpec;
3273
+ *
3274
+ * @return the ChangeCipherSpec byte buffer.
3275
+ */
3276
+ tls.createChangeCipherSpec = function() {
3277
+ var rval = forge.util.createBuffer();
3278
+ rval.putByte(0x01);
3279
+ return rval;
3280
+ };
3281
+
3282
+ /**
3283
+ * Creates a Finished message.
3284
+ *
3285
+ * struct {
3286
+ * opaque verify_data[12];
3287
+ * } Finished;
3288
+ *
3289
+ * verify_data
3290
+ * PRF(master_secret, finished_label, MD5(handshake_messages) +
3291
+ * SHA-1(handshake_messages)) [0..11];
3292
+ *
3293
+ * finished_label
3294
+ * For Finished messages sent by the client, the string "client
3295
+ * finished". For Finished messages sent by the server, the
3296
+ * string "server finished".
3297
+ *
3298
+ * handshake_messages
3299
+ * All of the data from all handshake messages up to but not
3300
+ * including this message. This is only data visible at the
3301
+ * handshake layer and does not include record layer headers.
3302
+ * This is the concatenation of all the Handshake structures as
3303
+ * defined in 7.4 exchanged thus far.
3304
+ *
3305
+ * @param c the connection.
3306
+ *
3307
+ * @return the Finished byte buffer.
3308
+ */
3309
+ tls.createFinished = function(c) {
3310
+ // generate verify_data
3311
+ var b = forge.util.createBuffer();
3312
+ b.putBuffer(c.session.md5.digest());
3313
+ b.putBuffer(c.session.sha1.digest());
3314
+
3315
+ // TODO: determine prf function and verify length for TLS 1.2
3316
+ var client = (c.entity === tls.ConnectionEnd.client);
3317
+ var sp = c.session.sp;
3318
+ var vdl = 12;
3319
+ var prf = prf_TLS1;
3320
+ var label = client ? 'client finished' : 'server finished';
3321
+ b = prf(sp.master_secret, label, b.getBytes(), vdl);
3322
+
3323
+ // build record fragment
3324
+ var rval = forge.util.createBuffer();
3325
+ rval.putByte(tls.HandshakeType.finished);
3326
+ rval.putInt24(b.length());
3327
+ rval.putBuffer(b);
3328
+ return rval;
3329
+ };
3330
+
3331
+ /**
3332
+ * Creates a HeartbeatMessage (See RFC 6520).
3333
+ *
3334
+ * struct {
3335
+ * HeartbeatMessageType type;
3336
+ * uint16 payload_length;
3337
+ * opaque payload[HeartbeatMessage.payload_length];
3338
+ * opaque padding[padding_length];
3339
+ * } HeartbeatMessage;
3340
+ *
3341
+ * The total length of a HeartbeatMessage MUST NOT exceed 2^14 or
3342
+ * max_fragment_length when negotiated as defined in [RFC6066].
3343
+ *
3344
+ * type: The message type, either heartbeat_request or heartbeat_response.
3345
+ *
3346
+ * payload_length: The length of the payload.
3347
+ *
3348
+ * payload: The payload consists of arbitrary content.
3349
+ *
3350
+ * padding: The padding is random content that MUST be ignored by the
3351
+ * receiver. The length of a HeartbeatMessage is TLSPlaintext.length
3352
+ * for TLS and DTLSPlaintext.length for DTLS. Furthermore, the
3353
+ * length of the type field is 1 byte, and the length of the
3354
+ * payload_length is 2. Therefore, the padding_length is
3355
+ * TLSPlaintext.length - payload_length - 3 for TLS and
3356
+ * DTLSPlaintext.length - payload_length - 3 for DTLS. The
3357
+ * padding_length MUST be at least 16.
3358
+ *
3359
+ * The sender of a HeartbeatMessage MUST use a random padding of at
3360
+ * least 16 bytes. The padding of a received HeartbeatMessage message
3361
+ * MUST be ignored.
3362
+ *
3363
+ * If the payload_length of a received HeartbeatMessage is too large,
3364
+ * the received HeartbeatMessage MUST be discarded silently.
3365
+ *
3366
+ * @param c the connection.
3367
+ * @param type the tls.HeartbeatMessageType.
3368
+ * @param payload the heartbeat data to send as the payload.
3369
+ * @param [payloadLength] the payload length to use, defaults to the
3370
+ * actual payload length.
3371
+ *
3372
+ * @return the HeartbeatRequest byte buffer.
3373
+ */
3374
+ tls.createHeartbeat = function(type, payload, payloadLength) {
3375
+ if(typeof payloadLength === 'undefined') {
3376
+ payloadLength = payload.length;
3377
+ }
3378
+ // build record fragment
3379
+ var rval = forge.util.createBuffer();
3380
+ rval.putByte(type); // heartbeat message type
3381
+ rval.putInt16(payloadLength); // payload length
3382
+ rval.putBytes(payload); // payload
3383
+ // padding
3384
+ var plaintextLength = rval.length();
3385
+ var paddingLength = Math.max(16, plaintextLength - payloadLength - 3);
3386
+ rval.putBytes(forge.random.getBytes(paddingLength));
3387
+ return rval;
3388
+ };
3389
+
3390
+ /**
3391
+ * Fragments, compresses, encrypts, and queues a record for delivery.
3392
+ *
3393
+ * @param c the connection.
3394
+ * @param record the record to queue.
3395
+ */
3396
+ tls.queue = function(c, record) {
3397
+ // error during record creation
3398
+ if(!record) {
3399
+ return;
3400
+ }
3401
+
3402
+ if(record.fragment.length() === 0) {
3403
+ if(record.type === tls.ContentType.handshake ||
3404
+ record.type === tls.ContentType.alert ||
3405
+ record.type === tls.ContentType.change_cipher_spec) {
3406
+ // Empty handshake, alert of change cipher spec messages are not allowed per the TLS specification and should not be sent.
3407
+ return;
3408
+ }
3409
+ }
3410
+
3411
+ // if the record is a handshake record, update handshake hashes
3412
+ if(record.type === tls.ContentType.handshake) {
3413
+ var bytes = record.fragment.bytes();
3414
+ c.session.md5.update(bytes);
3415
+ c.session.sha1.update(bytes);
3416
+ bytes = null;
3417
+ }
3418
+
3419
+ // handle record fragmentation
3420
+ var records;
3421
+ if(record.fragment.length() <= tls.MaxFragment) {
3422
+ records = [record];
3423
+ } else {
3424
+ // fragment data as long as it is too long
3425
+ records = [];
3426
+ var data = record.fragment.bytes();
3427
+ while(data.length > tls.MaxFragment) {
3428
+ records.push(tls.createRecord(c, {
3429
+ type: record.type,
3430
+ data: forge.util.createBuffer(data.slice(0, tls.MaxFragment))
3431
+ }));
3432
+ data = data.slice(tls.MaxFragment);
3433
+ }
3434
+ // add last record
3435
+ if(data.length > 0) {
3436
+ records.push(tls.createRecord(c, {
3437
+ type: record.type,
3438
+ data: forge.util.createBuffer(data)
3439
+ }));
3440
+ }
3441
+ }
3442
+
3443
+ // compress and encrypt all fragmented records
3444
+ for(var i = 0; i < records.length && !c.fail; ++i) {
3445
+ // update the record using current write state
3446
+ var rec = records[i];
3447
+ var s = c.state.current.write;
3448
+ if(s.update(c, rec)) {
3449
+ // store record
3450
+ c.records.push(rec);
3451
+ }
3452
+ }
3453
+ };
3454
+
3455
+ /**
3456
+ * Flushes all queued records to the output buffer and calls the
3457
+ * tlsDataReady() handler on the given connection.
3458
+ *
3459
+ * @param c the connection.
3460
+ *
3461
+ * @return true on success, false on failure.
3462
+ */
3463
+ tls.flush = function(c) {
3464
+ for(var i = 0; i < c.records.length; ++i) {
3465
+ var record = c.records[i];
3466
+
3467
+ // add record header and fragment
3468
+ c.tlsData.putByte(record.type);
3469
+ c.tlsData.putByte(record.version.major);
3470
+ c.tlsData.putByte(record.version.minor);
3471
+ c.tlsData.putInt16(record.fragment.length());
3472
+ c.tlsData.putBuffer(c.records[i].fragment);
3473
+ }
3474
+ c.records = [];
3475
+ return c.tlsDataReady(c);
3476
+ };
3477
+
3478
+ /**
3479
+ * Maps a pki.certificateError to a tls.Alert.Description.
3480
+ *
3481
+ * @param error the error to map.
3482
+ *
3483
+ * @return the alert description.
3484
+ */
3485
+ var _certErrorToAlertDesc = function(error) {
3486
+ switch(error) {
3487
+ case true:
3488
+ return true;
3489
+ case forge.pki.certificateError.bad_certificate:
3490
+ return tls.Alert.Description.bad_certificate;
3491
+ case forge.pki.certificateError.unsupported_certificate:
3492
+ return tls.Alert.Description.unsupported_certificate;
3493
+ case forge.pki.certificateError.certificate_revoked:
3494
+ return tls.Alert.Description.certificate_revoked;
3495
+ case forge.pki.certificateError.certificate_expired:
3496
+ return tls.Alert.Description.certificate_expired;
3497
+ case forge.pki.certificateError.certificate_unknown:
3498
+ return tls.Alert.Description.certificate_unknown;
3499
+ case forge.pki.certificateError.unknown_ca:
3500
+ return tls.Alert.Description.unknown_ca;
3501
+ default:
3502
+ return tls.Alert.Description.bad_certificate;
3503
+ }
3504
+ };
3505
+
3506
+ /**
3507
+ * Maps a tls.Alert.Description to a pki.certificateError.
3508
+ *
3509
+ * @param desc the alert description.
3510
+ *
3511
+ * @return the certificate error.
3512
+ */
3513
+ var _alertDescToCertError = function(desc) {
3514
+ switch(desc) {
3515
+ case true:
3516
+ return true;
3517
+ case tls.Alert.Description.bad_certificate:
3518
+ return forge.pki.certificateError.bad_certificate;
3519
+ case tls.Alert.Description.unsupported_certificate:
3520
+ return forge.pki.certificateError.unsupported_certificate;
3521
+ case tls.Alert.Description.certificate_revoked:
3522
+ return forge.pki.certificateError.certificate_revoked;
3523
+ case tls.Alert.Description.certificate_expired:
3524
+ return forge.pki.certificateError.certificate_expired;
3525
+ case tls.Alert.Description.certificate_unknown:
3526
+ return forge.pki.certificateError.certificate_unknown;
3527
+ case tls.Alert.Description.unknown_ca:
3528
+ return forge.pki.certificateError.unknown_ca;
3529
+ default:
3530
+ return forge.pki.certificateError.bad_certificate;
3531
+ }
3532
+ };
3533
+
3534
+ /**
3535
+ * Verifies a certificate chain against the given connection's
3536
+ * Certificate Authority store.
3537
+ *
3538
+ * @param c the TLS connection.
3539
+ * @param chain the certificate chain to verify, with the root or highest
3540
+ * authority at the end.
3541
+ *
3542
+ * @return true if successful, false if not.
3543
+ */
3544
+ tls.verifyCertificateChain = function(c, chain) {
3545
+ try {
3546
+ // Make a copy of c.verifyOptions so that we can modify options.verify
3547
+ // without modifying c.verifyOptions.
3548
+ var options = {};
3549
+ for (var key in c.verifyOptions) {
3550
+ options[key] = c.verifyOptions[key];
3551
+ }
3552
+
3553
+ options.verify = function(vfd, depth, chain) {
3554
+ // convert pki.certificateError to tls alert description
3555
+ var desc = _certErrorToAlertDesc(vfd);
3556
+
3557
+ // call application callback
3558
+ var ret = c.verify(c, vfd, depth, chain);
3559
+ if(ret !== true) {
3560
+ if(typeof ret === 'object' && !forge.util.isArray(ret)) {
3561
+ // throw custom error
3562
+ var error = new Error('The application rejected the certificate.');
3563
+ error.send = true;
3564
+ error.alert = {
3565
+ level: tls.Alert.Level.fatal,
3566
+ description: tls.Alert.Description.bad_certificate
3567
+ };
3568
+ if(ret.message) {
3569
+ error.message = ret.message;
3570
+ }
3571
+ if(ret.alert) {
3572
+ error.alert.description = ret.alert;
3573
+ }
3574
+ throw error;
3575
+ }
3576
+
3577
+ // convert tls alert description to pki.certificateError
3578
+ if(ret !== vfd) {
3579
+ ret = _alertDescToCertError(ret);
3580
+ }
3581
+ }
3582
+
3583
+ return ret;
3584
+ };
3585
+
3586
+ // verify chain
3587
+ forge.pki.verifyCertificateChain(c.caStore, chain, options);
3588
+ } catch(ex) {
3589
+ // build tls error if not already customized
3590
+ var err = ex;
3591
+ if(typeof err !== 'object' || forge.util.isArray(err)) {
3592
+ err = {
3593
+ send: true,
3594
+ alert: {
3595
+ level: tls.Alert.Level.fatal,
3596
+ description: _certErrorToAlertDesc(ex)
3597
+ }
3598
+ };
3599
+ }
3600
+ if(!('send' in err)) {
3601
+ err.send = true;
3602
+ }
3603
+ if(!('alert' in err)) {
3604
+ err.alert = {
3605
+ level: tls.Alert.Level.fatal,
3606
+ description: _certErrorToAlertDesc(err.error)
3607
+ };
3608
+ }
3609
+
3610
+ // send error
3611
+ c.error(c, err);
3612
+ }
3613
+
3614
+ return !c.fail;
3615
+ };
3616
+
3617
+ /**
3618
+ * Creates a new TLS session cache.
3619
+ *
3620
+ * @param cache optional map of session ID to cached session.
3621
+ * @param capacity the maximum size for the cache (default: 100).
3622
+ *
3623
+ * @return the new TLS session cache.
3624
+ */
3625
+ tls.createSessionCache = function(cache, capacity) {
3626
+ var rval = null;
3627
+
3628
+ // assume input is already a session cache object
3629
+ if(cache && cache.getSession && cache.setSession && cache.order) {
3630
+ rval = cache;
3631
+ } else {
3632
+ // create cache
3633
+ rval = {};
3634
+ rval.cache = cache || {};
3635
+ rval.capacity = Math.max(capacity || 100, 1);
3636
+ rval.order = [];
3637
+
3638
+ // store order for sessions, delete session overflow
3639
+ for(var key in cache) {
3640
+ if(rval.order.length <= capacity) {
3641
+ rval.order.push(key);
3642
+ } else {
3643
+ delete cache[key];
3644
+ }
3645
+ }
3646
+
3647
+ // get a session from a session ID (or get any session)
3648
+ rval.getSession = function(sessionId) {
3649
+ var session = null;
3650
+ var key = null;
3651
+
3652
+ // if session ID provided, use it
3653
+ if(sessionId) {
3654
+ key = forge.util.bytesToHex(sessionId);
3655
+ } else if(rval.order.length > 0) {
3656
+ // get first session from cache
3657
+ key = rval.order[0];
3658
+ }
3659
+
3660
+ if(key !== null && key in rval.cache) {
3661
+ // get cached session and remove from cache
3662
+ session = rval.cache[key];
3663
+ delete rval.cache[key];
3664
+ for(var i in rval.order) {
3665
+ if(rval.order[i] === key) {
3666
+ rval.order.splice(i, 1);
3667
+ break;
3668
+ }
3669
+ }
3670
+ }
3671
+
3672
+ return session;
3673
+ };
3674
+
3675
+ // set a session in the cache
3676
+ rval.setSession = function(sessionId, session) {
3677
+ // remove session from cache if at capacity
3678
+ if(rval.order.length === rval.capacity) {
3679
+ var key = rval.order.shift();
3680
+ delete rval.cache[key];
3681
+ }
3682
+ // add session to cache
3683
+ var key = forge.util.bytesToHex(sessionId);
3684
+ rval.order.push(key);
3685
+ rval.cache[key] = session;
3686
+ };
3687
+ }
3688
+
3689
+ return rval;
3690
+ };
3691
+
3692
+ /**
3693
+ * Creates a new TLS connection.
3694
+ *
3695
+ * See public createConnection() docs for more details.
3696
+ *
3697
+ * @param options the options for this connection.
3698
+ *
3699
+ * @return the new TLS connection.
3700
+ */
3701
+ tls.createConnection = function(options) {
3702
+ var caStore = null;
3703
+ if(options.caStore) {
3704
+ // if CA store is an array, convert it to a CA store object
3705
+ if(forge.util.isArray(options.caStore)) {
3706
+ caStore = forge.pki.createCaStore(options.caStore);
3707
+ } else {
3708
+ caStore = options.caStore;
3709
+ }
3710
+ } else {
3711
+ // create empty CA store
3712
+ caStore = forge.pki.createCaStore();
3713
+ }
3714
+
3715
+ // setup default cipher suites
3716
+ var cipherSuites = options.cipherSuites || null;
3717
+ if(cipherSuites === null) {
3718
+ cipherSuites = [];
3719
+ for(var key in tls.CipherSuites) {
3720
+ cipherSuites.push(tls.CipherSuites[key]);
3721
+ }
3722
+ }
3723
+
3724
+ // set default entity
3725
+ var entity = (options.server || false) ?
3726
+ tls.ConnectionEnd.server : tls.ConnectionEnd.client;
3727
+
3728
+ // create session cache if requested
3729
+ var sessionCache = options.sessionCache ?
3730
+ tls.createSessionCache(options.sessionCache) : null;
3731
+
3732
+ // create TLS connection
3733
+ var c = {
3734
+ version: {major: tls.Version.major, minor: tls.Version.minor},
3735
+ entity: entity,
3736
+ sessionId: options.sessionId,
3737
+ caStore: caStore,
3738
+ sessionCache: sessionCache,
3739
+ cipherSuites: cipherSuites,
3740
+ connected: options.connected,
3741
+ virtualHost: options.virtualHost || null,
3742
+ verifyClient: options.verifyClient || false,
3743
+ verify: options.verify || function(cn, vfd, dpth, cts) {return vfd;},
3744
+ verifyOptions: options.verifyOptions || {},
3745
+ getCertificate: options.getCertificate || null,
3746
+ getPrivateKey: options.getPrivateKey || null,
3747
+ getSignature: options.getSignature || null,
3748
+ input: forge.util.createBuffer(),
3749
+ tlsData: forge.util.createBuffer(),
3750
+ data: forge.util.createBuffer(),
3751
+ tlsDataReady: options.tlsDataReady,
3752
+ dataReady: options.dataReady,
3753
+ heartbeatReceived: options.heartbeatReceived,
3754
+ closed: options.closed,
3755
+ error: function(c, ex) {
3756
+ // set origin if not set
3757
+ ex.origin = ex.origin ||
3758
+ ((c.entity === tls.ConnectionEnd.client) ? 'client' : 'server');
3759
+
3760
+ // send TLS alert
3761
+ if(ex.send) {
3762
+ tls.queue(c, tls.createAlert(c, ex.alert));
3763
+ tls.flush(c);
3764
+ }
3765
+
3766
+ // error is fatal by default
3767
+ var fatal = (ex.fatal !== false);
3768
+ if(fatal) {
3769
+ // set fail flag
3770
+ c.fail = true;
3771
+ }
3772
+
3773
+ // call error handler first
3774
+ options.error(c, ex);
3775
+
3776
+ if(fatal) {
3777
+ // fatal error, close connection, do not clear fail
3778
+ c.close(false);
3779
+ }
3780
+ },
3781
+ deflate: options.deflate || null,
3782
+ inflate: options.inflate || null
3783
+ };
3784
+
3785
+ /**
3786
+ * Resets a closed TLS connection for reuse. Called in c.close().
3787
+ *
3788
+ * @param clearFail true to clear the fail flag (default: true).
3789
+ */
3790
+ c.reset = function(clearFail) {
3791
+ c.version = {major: tls.Version.major, minor: tls.Version.minor};
3792
+ c.record = null;
3793
+ c.session = null;
3794
+ c.peerCertificate = null;
3795
+ c.state = {
3796
+ pending: null,
3797
+ current: null
3798
+ };
3799
+ c.expect = (c.entity === tls.ConnectionEnd.client) ? SHE : CHE;
3800
+ c.fragmented = null;
3801
+ c.records = [];
3802
+ c.open = false;
3803
+ c.handshakes = 0;
3804
+ c.handshaking = false;
3805
+ c.isConnected = false;
3806
+ c.fail = !(clearFail || typeof(clearFail) === 'undefined');
3807
+ c.input.clear();
3808
+ c.tlsData.clear();
3809
+ c.data.clear();
3810
+ c.state.current = tls.createConnectionState(c);
3811
+ };
3812
+
3813
+ // do initial reset of connection
3814
+ c.reset();
3815
+
3816
+ /**
3817
+ * Updates the current TLS engine state based on the given record.
3818
+ *
3819
+ * @param c the TLS connection.
3820
+ * @param record the TLS record to act on.
3821
+ */
3822
+ var _update = function(c, record) {
3823
+ // get record handler (align type in table by subtracting lowest)
3824
+ var aligned = record.type - tls.ContentType.change_cipher_spec;
3825
+ var handlers = ctTable[c.entity][c.expect];
3826
+ if(aligned in handlers) {
3827
+ handlers[aligned](c, record);
3828
+ } else {
3829
+ // unexpected record
3830
+ tls.handleUnexpected(c, record);
3831
+ }
3832
+ };
3833
+
3834
+ /**
3835
+ * Reads the record header and initializes the next record on the given
3836
+ * connection.
3837
+ *
3838
+ * @param c the TLS connection with the next record.
3839
+ *
3840
+ * @return 0 if the input data could be processed, otherwise the
3841
+ * number of bytes required for data to be processed.
3842
+ */
3843
+ var _readRecordHeader = function(c) {
3844
+ var rval = 0;
3845
+
3846
+ // get input buffer and its length
3847
+ var b = c.input;
3848
+ var len = b.length();
3849
+
3850
+ // need at least 5 bytes to initialize a record
3851
+ if(len < 5) {
3852
+ rval = 5 - len;
3853
+ } else {
3854
+ // enough bytes for header
3855
+ // initialize record
3856
+ c.record = {
3857
+ type: b.getByte(),
3858
+ version: {
3859
+ major: b.getByte(),
3860
+ minor: b.getByte()
3861
+ },
3862
+ length: b.getInt16(),
3863
+ fragment: forge.util.createBuffer(),
3864
+ ready: false
3865
+ };
3866
+
3867
+ // check record version
3868
+ var compatibleVersion = (c.record.version.major === c.version.major);
3869
+ if(compatibleVersion && c.session && c.session.version) {
3870
+ // session version already set, require same minor version
3871
+ compatibleVersion = (c.record.version.minor === c.version.minor);
3872
+ }
3873
+ if(!compatibleVersion) {
3874
+ c.error(c, {
3875
+ message: 'Incompatible TLS version.',
3876
+ send: true,
3877
+ alert: {
3878
+ level: tls.Alert.Level.fatal,
3879
+ description: tls.Alert.Description.protocol_version
3880
+ }
3881
+ });
3882
+ }
3883
+ }
3884
+
3885
+ return rval;
3886
+ };
3887
+
3888
+ /**
3889
+ * Reads the next record's contents and appends its message to any
3890
+ * previously fragmented message.
3891
+ *
3892
+ * @param c the TLS connection with the next record.
3893
+ *
3894
+ * @return 0 if the input data could be processed, otherwise the
3895
+ * number of bytes required for data to be processed.
3896
+ */
3897
+ var _readRecord = function(c) {
3898
+ var rval = 0;
3899
+
3900
+ // ensure there is enough input data to get the entire record
3901
+ var b = c.input;
3902
+ var len = b.length();
3903
+ if(len < c.record.length) {
3904
+ // not enough data yet, return how much is required
3905
+ rval = c.record.length - len;
3906
+ } else {
3907
+ // there is enough data to parse the pending record
3908
+ // fill record fragment and compact input buffer
3909
+ c.record.fragment.putBytes(b.getBytes(c.record.length));
3910
+ b.compact();
3911
+
3912
+ // update record using current read state
3913
+ var s = c.state.current.read;
3914
+ if(s.update(c, c.record)) {
3915
+ // see if there is a previously fragmented message that the
3916
+ // new record's message fragment should be appended to
3917
+ if(c.fragmented !== null) {
3918
+ // if the record type matches a previously fragmented
3919
+ // record, append the record fragment to it
3920
+ if(c.fragmented.type === c.record.type) {
3921
+ // concatenate record fragments
3922
+ c.fragmented.fragment.putBuffer(c.record.fragment);
3923
+ c.record = c.fragmented;
3924
+ } else {
3925
+ // error, invalid fragmented record
3926
+ c.error(c, {
3927
+ message: 'Invalid fragmented record.',
3928
+ send: true,
3929
+ alert: {
3930
+ level: tls.Alert.Level.fatal,
3931
+ description:
3932
+ tls.Alert.Description.unexpected_message
3933
+ }
3934
+ });
3935
+ // fatal error closed and reset the connection (no record)
3936
+ return rval;
3937
+ }
3938
+ }
3939
+
3940
+ // record is now ready
3941
+ c.record.ready = true;
3942
+ }
3943
+ }
3944
+
3945
+ return rval;
3946
+ };
3947
+
3948
+ /**
3949
+ * Performs a handshake using the TLS Handshake Protocol, as a client.
3950
+ *
3951
+ * This method should only be called if the connection is in client mode.
3952
+ *
3953
+ * @param sessionId the session ID to use, null to start a new one.
3954
+ */
3955
+ c.handshake = function(sessionId) {
3956
+ // error to call this in non-client mode
3957
+ if(c.entity !== tls.ConnectionEnd.client) {
3958
+ // not fatal error
3959
+ c.error(c, {
3960
+ message: 'Cannot initiate handshake as a server.',
3961
+ fatal: false
3962
+ });
3963
+ } else if(c.handshaking) {
3964
+ // handshake is already in progress, fail but not fatal error
3965
+ c.error(c, {
3966
+ message: 'Handshake already in progress.',
3967
+ fatal: false
3968
+ });
3969
+ } else {
3970
+ // clear fail flag on reuse
3971
+ if(c.fail && !c.open && c.handshakes === 0) {
3972
+ c.fail = false;
3973
+ }
3974
+
3975
+ // now handshaking
3976
+ c.handshaking = true;
3977
+
3978
+ // default to blank (new session)
3979
+ sessionId = sessionId || '';
3980
+
3981
+ // if a session ID was specified, try to find it in the cache
3982
+ var session = null;
3983
+ if(sessionId.length > 0) {
3984
+ if(c.sessionCache) {
3985
+ session = c.sessionCache.getSession(sessionId);
3986
+ }
3987
+
3988
+ // matching session not found in cache, clear session ID
3989
+ if(session === null) {
3990
+ sessionId = '';
3991
+ }
3992
+ }
3993
+
3994
+ // no session given, grab a session from the cache, if available
3995
+ if(sessionId.length === 0 && c.sessionCache) {
3996
+ session = c.sessionCache.getSession();
3997
+ if(session !== null) {
3998
+ sessionId = session.id;
3999
+ }
4000
+ }
4001
+
4002
+ // set up session
4003
+ c.session = {
4004
+ id: sessionId,
4005
+ version: null,
4006
+ cipherSuite: null,
4007
+ compressionMethod: null,
4008
+ serverCertificate: null,
4009
+ certificateRequest: null,
4010
+ clientCertificate: null,
4011
+ sp: {},
4012
+ md5: forge.md.md5.create(),
4013
+ sha1: forge.md.sha1.create()
4014
+ };
4015
+
4016
+ // use existing session information
4017
+ if(session) {
4018
+ // only update version on connection, session version not yet set
4019
+ c.version = session.version;
4020
+ c.session.sp = session.sp;
4021
+ }
4022
+
4023
+ // generate new client random
4024
+ c.session.sp.client_random = tls.createRandom().getBytes();
4025
+
4026
+ // connection now open
4027
+ c.open = true;
4028
+
4029
+ // send hello
4030
+ tls.queue(c, tls.createRecord(c, {
4031
+ type: tls.ContentType.handshake,
4032
+ data: tls.createClientHello(c)
4033
+ }));
4034
+ tls.flush(c);
4035
+ }
4036
+ };
4037
+
4038
+ // true while c.process() is handling records
4039
+ var _processing = false;
4040
+ // true when c.process() was called again while handling a record
4041
+ var _processNext = false;
4042
+
4043
+ /**
4044
+ * Reads the next record and, once it is complete, passes it to its
4045
+ * handler. Handlers call c.process() to continue with the next record.
4046
+ *
4047
+ * @param c the TLS connection.
4048
+ *
4049
+ * @return 0 if the input data could be processed, otherwise the
4050
+ * number of bytes required for data to be processed.
4051
+ */
4052
+ var _processRecord = function(c) {
4053
+ var rval = 0;
4054
+
4055
+ // process next record if no failure, process will be called after
4056
+ // each record is handled (since handling can be asynchronous)
4057
+ if(!c.fail) {
4058
+ // reset record if ready and now empty
4059
+ if(c.record !== null &&
4060
+ c.record.ready && c.record.fragment.isEmpty()) {
4061
+ c.record = null;
4062
+ }
4063
+
4064
+ // if there is no pending record, try to read record header
4065
+ if(c.record === null) {
4066
+ rval = _readRecordHeader(c);
4067
+ }
4068
+
4069
+ // read the next record (if record not yet ready)
4070
+ if(!c.fail && c.record !== null && !c.record.ready) {
4071
+ rval = _readRecord(c);
4072
+ }
4073
+
4074
+ // record ready to be handled, update engine state
4075
+ if(!c.fail && c.record !== null && c.record.ready) {
4076
+ _update(c, c.record);
4077
+ }
4078
+ }
4079
+
4080
+ return rval;
4081
+ };
4082
+
4083
+ /**
4084
+ * Called when TLS protocol data has been received from somewhere and should
4085
+ * be processed by the TLS engine.
4086
+ *
4087
+ * @param data the TLS protocol data, as a string, to process.
4088
+ *
4089
+ * @return 0 if the data could be processed, otherwise the number of bytes
4090
+ * required for data to be processed.
4091
+ */
4092
+ c.process = function(data) {
4093
+ var rval = 0;
4094
+
4095
+ // buffer input data
4096
+ if(data) {
4097
+ c.input.putBytes(data);
4098
+ }
4099
+
4100
+ // record handlers call c.process() without data to continue with the
4101
+ // next record; while records are being processed, only flag that the
4102
+ // loop below should continue instead of recursing, which could exhaust
4103
+ // the call stack
4104
+ if(_processing && typeof(data) === 'undefined') {
4105
+ _processNext = true;
4106
+ return rval;
4107
+ }
4108
+
4109
+ // new data is processed right away, as before, even in a nested call
4110
+ // (e.g., from a tlsDataReady handler that passes data synchronously
4111
+ // between two connections)
4112
+ var processing = _processing;
4113
+ var processNext = _processNext;
4114
+ _processing = true;
4115
+ _processNext = false;
4116
+ try {
4117
+ // return value is based on the first record, as before
4118
+ rval = _processRecord(c);
4119
+ while(_processNext) {
4120
+ _processNext = false;
4121
+ _processRecord(c);
4122
+ }
4123
+ } finally {
4124
+ _processing = processing;
4125
+ _processNext = processNext;
4126
+ }
4127
+
4128
+ return rval;
4129
+ };
4130
+
4131
+ /**
4132
+ * Requests that application data be packaged into a TLS record. The
4133
+ * tlsDataReady handler will be called when the TLS record(s) have been
4134
+ * prepared.
4135
+ *
4136
+ * @param data the application data, as a raw 'binary' encoded string, to
4137
+ * be sent; to send utf-16/utf-8 string data, use the return value
4138
+ * of util.encodeUtf8(str).
4139
+ *
4140
+ * @return true on success, false on failure.
4141
+ */
4142
+ c.prepare = function(data) {
4143
+ tls.queue(c, tls.createRecord(c, {
4144
+ type: tls.ContentType.application_data,
4145
+ data: forge.util.createBuffer(data)
4146
+ }));
4147
+ return tls.flush(c);
4148
+ };
4149
+
4150
+ /**
4151
+ * Requests that a heartbeat request be packaged into a TLS record for
4152
+ * transmission. The tlsDataReady handler will be called when TLS record(s)
4153
+ * have been prepared.
4154
+ *
4155
+ * When a heartbeat response has been received, the heartbeatReceived
4156
+ * handler will be called with the matching payload. This handler can
4157
+ * be used to clear a retransmission timer, etc.
4158
+ *
4159
+ * @param payload the heartbeat data to send as the payload in the message.
4160
+ * @param [payloadLength] the payload length to use, defaults to the
4161
+ * actual payload length.
4162
+ *
4163
+ * @return true on success, false on failure.
4164
+ */
4165
+ c.prepareHeartbeatRequest = function(payload, payloadLength) {
4166
+ if(payload instanceof forge.util.ByteBuffer) {
4167
+ payload = payload.bytes();
4168
+ }
4169
+ if(typeof payloadLength === 'undefined') {
4170
+ payloadLength = payload.length;
4171
+ }
4172
+ c.expectedHeartbeatPayload = payload;
4173
+ tls.queue(c, tls.createRecord(c, {
4174
+ type: tls.ContentType.heartbeat,
4175
+ data: tls.createHeartbeat(
4176
+ tls.HeartbeatMessageType.heartbeat_request, payload, payloadLength)
4177
+ }));
4178
+ return tls.flush(c);
4179
+ };
4180
+
4181
+ /**
4182
+ * Closes the connection (sends a close_notify alert).
4183
+ *
4184
+ * @param clearFail true to clear the fail flag (default: true).
4185
+ */
4186
+ c.close = function(clearFail) {
4187
+ // save session if connection didn't fail
4188
+ if(!c.fail && c.sessionCache && c.session) {
4189
+ // only need to preserve session ID, version, and security params
4190
+ var session = {
4191
+ id: c.session.id,
4192
+ version: c.session.version,
4193
+ sp: c.session.sp
4194
+ };
4195
+ session.sp.keys = null;
4196
+ c.sessionCache.setSession(session.id, session);
4197
+ }
4198
+
4199
+ if(c.open) {
4200
+ // connection no longer open, clear input
4201
+ c.open = false;
4202
+ c.input.clear();
4203
+
4204
+ // if connected or handshaking, send an alert
4205
+ if(c.isConnected || c.handshaking) {
4206
+ c.isConnected = c.handshaking = false;
4207
+
4208
+ // send close_notify alert
4209
+ tls.queue(c, tls.createAlert(c, {
4210
+ level: tls.Alert.Level.warning,
4211
+ description: tls.Alert.Description.close_notify
4212
+ }));
4213
+ tls.flush(c);
4214
+ }
4215
+
4216
+ // call handler
4217
+ c.closed(c);
4218
+ }
4219
+
4220
+ // reset TLS connection, do not clear fail flag
4221
+ c.reset(clearFail);
4222
+ };
4223
+
4224
+ return c;
4225
+ };
4226
+
4227
+ /* TLS API */
4228
+ module.exports = forge.tls = forge.tls || {};
4229
+
4230
+ // expose non-functions
4231
+ for(var key in tls) {
4232
+ if(typeof tls[key] !== 'function') {
4233
+ forge.tls[key] = tls[key];
4234
+ }
4235
+ }
4236
+
4237
+ // expose prf_tls1 for testing
4238
+ forge.tls.prf_tls1 = prf_TLS1;
4239
+
4240
+ // expose sha1 hmac method
4241
+ forge.tls.hmac_sha1 = hmac_sha1;
4242
+
4243
+ // expose session cache creation
4244
+ forge.tls.createSessionCache = tls.createSessionCache;
4245
+
4246
+ /**
4247
+ * Creates a new TLS connection. This does not make any assumptions about the
4248
+ * transport layer that TLS is working on top of, ie: it does not assume there
4249
+ * is a TCP/IP connection or establish one. A TLS connection is totally
4250
+ * abstracted away from the layer is runs on top of, it merely establishes a
4251
+ * secure channel between a client" and a "server".
4252
+ *
4253
+ * A TLS connection contains 4 connection states: pending read and write, and
4254
+ * current read and write.
4255
+ *
4256
+ * At initialization, the current read and write states will be null. Only once
4257
+ * the security parameters have been set and the keys have been generated can
4258
+ * the pending states be converted into current states. Current states will be
4259
+ * updated for each record processed.
4260
+ *
4261
+ * A custom certificate verify callback may be provided to check information
4262
+ * like the common name on the server's certificate. It will be called for
4263
+ * every certificate in the chain. It has the following signature:
4264
+ *
4265
+ * variable func(c, certs, index, preVerify)
4266
+ * Where:
4267
+ * c The TLS connection
4268
+ * verified Set to true if certificate was verified, otherwise the alert
4269
+ * tls.Alert.Description for why the certificate failed.
4270
+ * depth The current index in the chain, where 0 is the server's cert.
4271
+ * certs The certificate chain, *NOTE* if the server was anonymous then
4272
+ * the chain will be empty.
4273
+ *
4274
+ * The function returns true on success and on failure either the appropriate
4275
+ * tls.Alert.Description or an object with 'alert' set to the appropriate
4276
+ * tls.Alert.Description and 'message' set to a custom error message. If true
4277
+ * is not returned then the connection will abort using, in order of
4278
+ * availability, first the returned alert description, second the preVerify
4279
+ * alert description, and lastly the default 'bad_certificate'.
4280
+ *
4281
+ * There are three callbacks that can be used to make use of client-side
4282
+ * certificates where each takes the TLS connection as the first parameter:
4283
+ *
4284
+ * getCertificate(conn, hint)
4285
+ * The second parameter is a hint as to which certificate should be
4286
+ * returned. If the connection entity is a client, then the hint will be
4287
+ * the CertificateRequest message from the server that is part of the
4288
+ * TLS protocol. If the connection entity is a server, then it will be
4289
+ * the servername list provided via an SNI extension the ClientHello, if
4290
+ * one was provided (empty array if not). The hint can be examined to
4291
+ * determine which certificate to use (advanced). Most implementations
4292
+ * will just return a certificate. The return value must be a
4293
+ * PEM-formatted certificate or an array of PEM-formatted certificates
4294
+ * that constitute a certificate chain, with the first in the array/chain
4295
+ * being the client's certificate.
4296
+ * getPrivateKey(conn, certificate)
4297
+ * The second parameter is an forge.pki X.509 certificate object that
4298
+ * is associated with the requested private key. The return value must
4299
+ * be a PEM-formatted private key.
4300
+ * getSignature(conn, bytes, callback)
4301
+ * This callback can be used instead of getPrivateKey if the private key
4302
+ * is not directly accessible in javascript or should not be. For
4303
+ * instance, a secure external web service could provide the signature
4304
+ * in exchange for appropriate credentials. The second parameter is a
4305
+ * string of bytes to be signed that are part of the TLS protocol. These
4306
+ * bytes are used to verify that the private key for the previously
4307
+ * provided client-side certificate is accessible to the client. The
4308
+ * callback is a function that takes 2 parameters, the TLS connection
4309
+ * and the RSA encrypted (signed) bytes as a string. This callback must
4310
+ * be called once the signature is ready.
4311
+ *
4312
+ * @param options the options for this connection:
4313
+ * server: true if the connection is server-side, false for client.
4314
+ * sessionId: a session ID to reuse, null for a new connection.
4315
+ * caStore: an array of certificates to trust.
4316
+ * sessionCache: a session cache to use.
4317
+ * cipherSuites: an optional array of cipher suites to use,
4318
+ * see tls.CipherSuites.
4319
+ * connected: function(conn) called when the first handshake completes.
4320
+ * virtualHost: the virtual server name to use in a TLS SNI extension.
4321
+ * verifyClient: true to require a client certificate in server mode,
4322
+ * 'optional' to request one, false not to (default: false).
4323
+ * verify: a handler used to custom verify certificates in the chain.
4324
+ * verifyOptions: an object with options for the certificate chain validation.
4325
+ * See documentation of pki.verifyCertificateChain for possible options.
4326
+ * verifyOptions.verify is ignored. If you wish to specify a verify handler
4327
+ * use the verify key.
4328
+ * getCertificate: an optional callback used to get a certificate or
4329
+ * a chain of certificates (as an array).
4330
+ * getPrivateKey: an optional callback used to get a private key.
4331
+ * getSignature: an optional callback used to get a signature.
4332
+ * tlsDataReady: function(conn) called when TLS protocol data has been
4333
+ * prepared and is ready to be used (typically sent over a socket
4334
+ * connection to its destination), read from conn.tlsData buffer.
4335
+ * dataReady: function(conn) called when application data has
4336
+ * been parsed from a TLS record and should be consumed by the
4337
+ * application, read from conn.data buffer.
4338
+ * closed: function(conn) called when the connection has been closed.
4339
+ * error: function(conn, error) called when there was an error.
4340
+ * deflate: function(inBytes) if provided, will deflate TLS records using
4341
+ * the deflate algorithm if the server supports it.
4342
+ * inflate: function(inBytes) if provided, will inflate TLS records using
4343
+ * the deflate algorithm if the server supports it.
4344
+ *
4345
+ * @return the new TLS connection.
4346
+ */
4347
+ forge.tls.createConnection = tls.createConnection;