@emulsify/cli 1.1.0 → 1.4.1

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 (632) hide show
  1. package/README.md +5 -4
  2. package/dist/handlers/componentInstall.js +35 -16
  3. package/dist/handlers/componentList.js +11 -11
  4. package/dist/handlers/hofs/withProgressBar.js +16 -0
  5. package/dist/handlers/init.js +63 -59
  6. package/dist/handlers/systemInstall.js +46 -18
  7. package/dist/handlers/systemList.js +1 -1
  8. package/dist/index.js +3 -1
  9. package/dist/lib/constants.js +4 -3
  10. package/dist/lib/log.js +5 -4
  11. package/dist/node_modules/.package-lock.json +68 -7
  12. package/dist/node_modules/@types/node/LICENSE +21 -0
  13. package/dist/node_modules/@types/node/README.md +16 -0
  14. package/dist/node_modules/@types/node/assert.d.ts +128 -0
  15. package/dist/node_modules/@types/node/async_hooks.d.ts +229 -0
  16. package/dist/node_modules/@types/node/buffer.d.ts +25 -0
  17. package/dist/node_modules/@types/node/child_process.d.ts +514 -0
  18. package/dist/node_modules/@types/node/cluster.d.ts +265 -0
  19. package/dist/node_modules/@types/node/console.d.ts +142 -0
  20. package/dist/node_modules/@types/node/constants.d.ts +18 -0
  21. package/dist/node_modules/@types/node/crypto.d.ts +1189 -0
  22. package/dist/node_modules/@types/node/dgram.d.ts +144 -0
  23. package/dist/node_modules/@types/node/dns.d.ts +387 -0
  24. package/dist/node_modules/@types/node/domain.d.ts +27 -0
  25. package/dist/node_modules/@types/node/events.d.ts +82 -0
  26. package/dist/node_modules/@types/node/fs/promises.d.ts +568 -0
  27. package/dist/node_modules/@types/node/fs.d.ts +2273 -0
  28. package/dist/node_modules/@types/node/globals.d.ts +613 -0
  29. package/dist/node_modules/@types/node/globals.global.d.ts +1 -0
  30. package/dist/node_modules/@types/node/http.d.ts +490 -0
  31. package/dist/node_modules/@types/node/http2.d.ts +961 -0
  32. package/dist/node_modules/@types/node/https.d.ts +142 -0
  33. package/dist/node_modules/@types/node/index.d.ts +99 -0
  34. package/dist/node_modules/@types/node/inspector.d.ts +3051 -0
  35. package/dist/node_modules/@types/node/module.d.ts +56 -0
  36. package/dist/node_modules/@types/node/net.d.ts +296 -0
  37. package/dist/node_modules/@types/node/os.d.ts +242 -0
  38. package/dist/node_modules/@types/node/package.json +230 -0
  39. package/dist/node_modules/@types/node/path.d.ts +157 -0
  40. package/dist/node_modules/@types/node/perf_hooks.d.ts +274 -0
  41. package/dist/node_modules/@types/node/process.d.ts +413 -0
  42. package/dist/node_modules/@types/node/punycode.d.ts +78 -0
  43. package/dist/node_modules/@types/node/querystring.d.ts +31 -0
  44. package/dist/node_modules/@types/node/readline.d.ts +174 -0
  45. package/dist/node_modules/@types/node/repl.d.ts +398 -0
  46. package/dist/node_modules/@types/node/stream.d.ts +359 -0
  47. package/dist/node_modules/@types/node/string_decoder.d.ts +10 -0
  48. package/dist/node_modules/@types/node/timers.d.ts +19 -0
  49. package/dist/node_modules/@types/node/tls.d.ts +783 -0
  50. package/dist/node_modules/@types/node/trace_events.d.ts +64 -0
  51. package/dist/node_modules/@types/node/tty.d.ts +69 -0
  52. package/dist/node_modules/@types/node/url.d.ts +119 -0
  53. package/dist/node_modules/@types/node/util.d.ts +216 -0
  54. package/dist/node_modules/@types/node/v8.d.ts +190 -0
  55. package/dist/node_modules/@types/node/vm.d.ts +155 -0
  56. package/dist/node_modules/@types/node/wasi.d.ts +89 -0
  57. package/dist/node_modules/@types/node/worker_threads.d.ts +241 -0
  58. package/dist/node_modules/@types/node/zlib.d.ts +364 -0
  59. package/dist/node_modules/@types/progress/LICENSE +21 -0
  60. package/dist/node_modules/@types/progress/README.md +16 -0
  61. package/dist/node_modules/@types/progress/index.d.ts +148 -0
  62. package/dist/node_modules/@types/progress/package.json +27 -0
  63. package/dist/node_modules/ajv-formats/LICENSE +21 -0
  64. package/dist/node_modules/ajv-formats/README.md +123 -0
  65. package/dist/node_modules/ajv-formats/dist/formats.d.ts +9 -0
  66. package/dist/node_modules/ajv-formats/dist/formats.js +173 -0
  67. package/dist/node_modules/ajv-formats/dist/formats.js.map +1 -0
  68. package/dist/node_modules/ajv-formats/dist/index.d.ts +15 -0
  69. package/dist/node_modules/ajv-formats/dist/index.js +37 -0
  70. package/dist/node_modules/ajv-formats/dist/index.js.map +1 -0
  71. package/dist/node_modules/ajv-formats/dist/limit.d.ts +10 -0
  72. package/dist/node_modules/ajv-formats/dist/limit.js +69 -0
  73. package/dist/node_modules/ajv-formats/dist/limit.js.map +1 -0
  74. package/dist/node_modules/ajv-formats/node_modules/ajv/.runkit_example.js +23 -0
  75. package/dist/node_modules/ajv-formats/node_modules/ajv/LICENSE +22 -0
  76. package/dist/node_modules/ajv-formats/node_modules/ajv/README.md +192 -0
  77. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/2019.d.ts +17 -0
  78. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/2019.js +55 -0
  79. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/2019.js.map +1 -0
  80. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/2020.d.ts +17 -0
  81. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/2020.js +49 -0
  82. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/2020.js.map +1 -0
  83. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/ajv.d.ts +16 -0
  84. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/ajv.js +44 -0
  85. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/ajv.js.map +1 -0
  86. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/code.d.ts +39 -0
  87. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/code.js +147 -0
  88. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/code.js.map +1 -0
  89. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/index.d.ts +79 -0
  90. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/index.js +697 -0
  91. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/index.js.map +1 -0
  92. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/scope.d.ts +79 -0
  93. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/scope.js +143 -0
  94. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/scope.js.map +1 -0
  95. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/errors.d.ts +13 -0
  96. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/errors.js +123 -0
  97. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/errors.js.map +1 -0
  98. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/index.d.ts +80 -0
  99. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/index.js +243 -0
  100. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/index.js.map +1 -0
  101. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/parse.d.ts +4 -0
  102. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/parse.js +350 -0
  103. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/parse.js.map +1 -0
  104. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/serialize.d.ts +4 -0
  105. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/serialize.js +218 -0
  106. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/serialize.js.map +1 -0
  107. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/types.d.ts +6 -0
  108. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/types.js +14 -0
  109. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/types.js.map +1 -0
  110. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/names.d.ts +20 -0
  111. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/names.js +28 -0
  112. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/names.js.map +1 -0
  113. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/ref_error.d.ts +5 -0
  114. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/ref_error.js +12 -0
  115. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/ref_error.js.map +1 -0
  116. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/resolve.d.ts +12 -0
  117. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/resolve.js +153 -0
  118. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/resolve.js.map +1 -0
  119. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/rules.d.ts +28 -0
  120. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/rules.js +26 -0
  121. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/rules.js.map +1 -0
  122. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/util.d.ts +40 -0
  123. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/util.js +178 -0
  124. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/util.js.map +1 -0
  125. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/applicability.d.ts +6 -0
  126. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/applicability.js +19 -0
  127. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/applicability.js.map +1 -0
  128. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/boolSchema.d.ts +4 -0
  129. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/boolSchema.js +50 -0
  130. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/boolSchema.js.map +1 -0
  131. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/dataType.d.ts +17 -0
  132. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/dataType.js +202 -0
  133. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/dataType.js.map +1 -0
  134. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/defaults.d.ts +2 -0
  135. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/defaults.js +35 -0
  136. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/defaults.js.map +1 -0
  137. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/index.d.ts +42 -0
  138. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/index.js +510 -0
  139. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/index.js.map +1 -0
  140. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/keyword.d.ts +8 -0
  141. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/keyword.js +124 -0
  142. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/keyword.js.map +1 -0
  143. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/subschema.d.ts +47 -0
  144. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/subschema.js +81 -0
  145. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/subschema.js.map +1 -0
  146. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/core.d.ts +171 -0
  147. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/core.js +614 -0
  148. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/core.js.map +1 -0
  149. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/jtd.d.ts +45 -0
  150. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/jtd.js +66 -0
  151. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/jtd.js.map +1 -0
  152. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/data.json +13 -0
  153. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/index.d.ts +2 -0
  154. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/index.js +28 -0
  155. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/index.js.map +1 -0
  156. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/meta/applicator.json +53 -0
  157. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/meta/content.json +17 -0
  158. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/meta/core.json +57 -0
  159. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/meta/format.json +14 -0
  160. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/meta/meta-data.json +37 -0
  161. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/meta/validation.json +90 -0
  162. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/schema.json +39 -0
  163. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/index.d.ts +2 -0
  164. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/index.js +30 -0
  165. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/index.js.map +1 -0
  166. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/meta/applicator.json +48 -0
  167. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/meta/content.json +17 -0
  168. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/meta/core.json +51 -0
  169. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json +14 -0
  170. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json +37 -0
  171. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json +15 -0
  172. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/meta/validation.json +90 -0
  173. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/schema.json +55 -0
  174. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-draft-06.json +137 -0
  175. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-draft-07.json +151 -0
  176. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-secure.json +88 -0
  177. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/jtd-schema.d.ts +3 -0
  178. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/jtd-schema.js +118 -0
  179. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/jtd-schema.js.map +1 -0
  180. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/equal.d.ts +6 -0
  181. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/equal.js +7 -0
  182. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/equal.js.map +1 -0
  183. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/parseJson.d.ts +18 -0
  184. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/parseJson.js +184 -0
  185. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/parseJson.js.map +1 -0
  186. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/quote.d.ts +5 -0
  187. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/quote.js +30 -0
  188. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/quote.js.map +1 -0
  189. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/re2.d.ts +6 -0
  190. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/re2.js +6 -0
  191. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/re2.js.map +1 -0
  192. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/timestamp.d.ts +5 -0
  193. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/timestamp.js +42 -0
  194. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/timestamp.js.map +1 -0
  195. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/ucs2length.d.ts +5 -0
  196. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/ucs2length.js +24 -0
  197. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/ucs2length.js.map +1 -0
  198. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/validation_error.d.ts +7 -0
  199. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/validation_error.js +11 -0
  200. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/validation_error.js.map +1 -0
  201. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/standalone/index.d.ts +6 -0
  202. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/standalone/index.js +83 -0
  203. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/standalone/index.js.map +1 -0
  204. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/standalone/instance.d.ts +12 -0
  205. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/standalone/instance.js +35 -0
  206. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/standalone/instance.js.map +1 -0
  207. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/types/index.d.ts +177 -0
  208. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/types/index.js +3 -0
  209. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/types/index.js.map +1 -0
  210. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/types/json-schema.d.ts +124 -0
  211. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/types/json-schema.js +3 -0
  212. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/types/json-schema.js.map +1 -0
  213. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/types/jtd-schema.d.ts +168 -0
  214. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/types/jtd-schema.js +3 -0
  215. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/types/jtd-schema.js.map +1 -0
  216. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/additionalItems.d.ts +8 -0
  217. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js +49 -0
  218. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js.map +1 -0
  219. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.d.ts +6 -0
  220. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js +106 -0
  221. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js.map +1 -0
  222. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/allOf.d.ts +3 -0
  223. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/allOf.js +23 -0
  224. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/allOf.js.map +1 -0
  225. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/anyOf.d.ts +4 -0
  226. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/anyOf.js +12 -0
  227. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/anyOf.js.map +1 -0
  228. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/contains.d.ts +7 -0
  229. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/contains.js +95 -0
  230. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/contains.js.map +1 -0
  231. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/dependencies.d.ts +21 -0
  232. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/dependencies.js +85 -0
  233. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/dependencies.js.map +1 -0
  234. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.d.ts +3 -0
  235. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js +11 -0
  236. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js.map +1 -0
  237. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/if.d.ts +6 -0
  238. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/if.js +66 -0
  239. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/if.js.map +1 -0
  240. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/index.d.ts +13 -0
  241. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/index.js +44 -0
  242. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/index.js.map +1 -0
  243. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/items.d.ts +5 -0
  244. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/items.js +52 -0
  245. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/items.js.map +1 -0
  246. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/items2020.d.ts +6 -0
  247. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/items2020.js +30 -0
  248. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/items2020.js.map +1 -0
  249. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/not.d.ts +4 -0
  250. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/not.js +26 -0
  251. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/not.js.map +1 -0
  252. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/oneOf.d.ts +6 -0
  253. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/oneOf.js +60 -0
  254. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/oneOf.js.map +1 -0
  255. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/patternProperties.d.ts +3 -0
  256. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js +75 -0
  257. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js.map +1 -0
  258. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/prefixItems.d.ts +3 -0
  259. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js +12 -0
  260. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js.map +1 -0
  261. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/properties.d.ts +3 -0
  262. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/properties.js +54 -0
  263. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/properties.js.map +1 -0
  264. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/propertyNames.d.ts +6 -0
  265. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js +38 -0
  266. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js.map +1 -0
  267. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/thenElse.d.ts +3 -0
  268. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/thenElse.js +13 -0
  269. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/thenElse.js.map +1 -0
  270. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/code.d.ts +17 -0
  271. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/code.js +131 -0
  272. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/code.js.map +1 -0
  273. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/id.d.ts +3 -0
  274. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/id.js +10 -0
  275. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/id.js.map +1 -0
  276. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/index.d.ts +3 -0
  277. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/index.js +16 -0
  278. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/index.js.map +1 -0
  279. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/ref.d.ts +8 -0
  280. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/ref.js +122 -0
  281. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/ref.js.map +1 -0
  282. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/index.d.ts +5 -0
  283. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/index.js +93 -0
  284. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/index.js.map +1 -0
  285. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/types.d.ts +10 -0
  286. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/types.js +9 -0
  287. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/types.js.map +1 -0
  288. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/draft2020.d.ts +3 -0
  289. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/draft2020.js +23 -0
  290. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/draft2020.js.map +1 -0
  291. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/draft7.d.ts +3 -0
  292. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/draft7.js +17 -0
  293. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/draft7.js.map +1 -0
  294. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.d.ts +5 -0
  295. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js +30 -0
  296. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js.map +1 -0
  297. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.d.ts +5 -0
  298. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js +51 -0
  299. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js.map +1 -0
  300. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/index.d.ts +3 -0
  301. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/index.js +9 -0
  302. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/index.js.map +1 -0
  303. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.d.ts +3 -0
  304. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js +16 -0
  305. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js.map +1 -0
  306. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.d.ts +3 -0
  307. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js +10 -0
  308. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js.map +1 -0
  309. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/errors.d.ts +9 -0
  310. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/errors.js +3 -0
  311. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/errors.js.map +1 -0
  312. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/format/format.d.ts +8 -0
  313. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/format/format.js +92 -0
  314. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/format/format.js.map +1 -0
  315. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/format/index.d.ts +3 -0
  316. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/format/index.js +6 -0
  317. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/format/index.js.map +1 -0
  318. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/discriminator.d.ts +6 -0
  319. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/discriminator.js +71 -0
  320. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/discriminator.js.map +1 -0
  321. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/elements.d.ts +5 -0
  322. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/elements.js +24 -0
  323. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/elements.js.map +1 -0
  324. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/enum.d.ts +6 -0
  325. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/enum.js +43 -0
  326. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/enum.js.map +1 -0
  327. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/error.d.ts +9 -0
  328. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/error.js +20 -0
  329. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/error.js.map +1 -0
  330. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/index.d.ts +10 -0
  331. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/index.js +29 -0
  332. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/index.js.map +1 -0
  333. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/metadata.d.ts +5 -0
  334. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/metadata.js +25 -0
  335. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/metadata.js.map +1 -0
  336. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/nullable.d.ts +4 -0
  337. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/nullable.js +22 -0
  338. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/nullable.js.map +1 -0
  339. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.d.ts +3 -0
  340. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js +15 -0
  341. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js.map +1 -0
  342. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/properties.d.ts +22 -0
  343. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/properties.js +146 -0
  344. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/properties.js.map +1 -0
  345. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/ref.d.ts +4 -0
  346. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/ref.js +66 -0
  347. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/ref.js.map +1 -0
  348. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/type.d.ts +10 -0
  349. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/type.js +69 -0
  350. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/type.js.map +1 -0
  351. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/union.d.ts +3 -0
  352. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/union.js +12 -0
  353. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/union.js.map +1 -0
  354. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/values.d.ts +5 -0
  355. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/values.js +48 -0
  356. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/values.js.map +1 -0
  357. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/metadata.d.ts +3 -0
  358. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/metadata.js +18 -0
  359. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/metadata.js.map +1 -0
  360. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/next.d.ts +3 -0
  361. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/next.js +8 -0
  362. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/next.js.map +1 -0
  363. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/index.d.ts +3 -0
  364. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/index.js +7 -0
  365. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/index.js.map +1 -0
  366. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.d.ts +6 -0
  367. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js +40 -0
  368. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js.map +1 -0
  369. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.d.ts +6 -0
  370. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js +65 -0
  371. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js.map +1 -0
  372. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/const.d.ts +6 -0
  373. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/const.js +25 -0
  374. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/const.js.map +1 -0
  375. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/dependentRequired.d.ts +5 -0
  376. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js +12 -0
  377. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js.map +1 -0
  378. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/enum.d.ts +8 -0
  379. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/enum.js +47 -0
  380. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/enum.js.map +1 -0
  381. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/index.d.ts +16 -0
  382. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/index.js +33 -0
  383. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/index.js.map +1 -0
  384. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitContains.d.ts +3 -0
  385. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitContains.js +15 -0
  386. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitContains.js.map +1 -0
  387. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitItems.d.ts +3 -0
  388. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitItems.js +24 -0
  389. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitItems.js.map +1 -0
  390. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitLength.d.ts +3 -0
  391. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitLength.js +27 -0
  392. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitLength.js.map +1 -0
  393. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitNumber.d.ts +11 -0
  394. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitNumber.js +27 -0
  395. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitNumber.js.map +1 -0
  396. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitProperties.d.ts +3 -0
  397. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +24 -0
  398. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitProperties.js.map +1 -0
  399. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/multipleOf.d.ts +8 -0
  400. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/multipleOf.js +26 -0
  401. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/multipleOf.js.map +1 -0
  402. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/pattern.d.ts +8 -0
  403. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/pattern.js +24 -0
  404. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/pattern.js.map +1 -0
  405. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/required.d.ts +8 -0
  406. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/required.js +79 -0
  407. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/required.js.map +1 -0
  408. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/uniqueItems.d.ts +9 -0
  409. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js +64 -0
  410. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js.map +1 -0
  411. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/2019.ts +78 -0
  412. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/2020.ts +72 -0
  413. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/ajv.ts +67 -0
  414. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/codegen/code.ts +160 -0
  415. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/codegen/index.ts +832 -0
  416. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/codegen/scope.ts +215 -0
  417. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/errors.ts +184 -0
  418. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/index.ts +324 -0
  419. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/jtd/parse.ts +411 -0
  420. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/jtd/serialize.ts +260 -0
  421. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/jtd/types.ts +16 -0
  422. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/names.ts +27 -0
  423. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/ref_error.ts +12 -0
  424. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/resolve.ts +146 -0
  425. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/rules.ts +50 -0
  426. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/util.ts +213 -0
  427. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/validate/applicability.ts +22 -0
  428. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/validate/boolSchema.ts +47 -0
  429. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/validate/dataType.ts +229 -0
  430. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/validate/defaults.ts +32 -0
  431. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/validate/index.ts +573 -0
  432. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/validate/keyword.ts +171 -0
  433. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/validate/subschema.ts +135 -0
  434. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/core.ts +880 -0
  435. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/jtd.ts +129 -0
  436. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/data.json +13 -0
  437. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2019-09/index.ts +28 -0
  438. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2019-09/meta/applicator.json +53 -0
  439. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2019-09/meta/content.json +17 -0
  440. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2019-09/meta/core.json +57 -0
  441. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2019-09/meta/format.json +14 -0
  442. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2019-09/meta/meta-data.json +37 -0
  443. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2019-09/meta/validation.json +90 -0
  444. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2019-09/schema.json +39 -0
  445. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2020-12/index.ts +30 -0
  446. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2020-12/meta/applicator.json +48 -0
  447. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2020-12/meta/content.json +17 -0
  448. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2020-12/meta/core.json +51 -0
  449. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2020-12/meta/format-annotation.json +14 -0
  450. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2020-12/meta/meta-data.json +37 -0
  451. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2020-12/meta/unevaluated.json +15 -0
  452. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2020-12/meta/validation.json +90 -0
  453. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2020-12/schema.json +55 -0
  454. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-draft-06.json +137 -0
  455. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-draft-07.json +151 -0
  456. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-secure.json +88 -0
  457. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/jtd-schema.ts +130 -0
  458. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/runtime/equal.ts +7 -0
  459. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/runtime/parseJson.ts +176 -0
  460. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/runtime/quote.ts +31 -0
  461. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/runtime/re2.ts +6 -0
  462. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/runtime/timestamp.ts +46 -0
  463. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/runtime/ucs2length.ts +20 -0
  464. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/runtime/validation_error.ts +13 -0
  465. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/standalone/index.ts +93 -0
  466. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/standalone/instance.ts +36 -0
  467. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/types/index.ts +233 -0
  468. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/types/json-schema.ts +189 -0
  469. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/types/jtd-schema.ts +264 -0
  470. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/additionalItems.ts +56 -0
  471. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/additionalProperties.ts +118 -0
  472. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/allOf.ts +22 -0
  473. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/anyOf.ts +14 -0
  474. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/contains.ts +109 -0
  475. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/dependencies.ts +112 -0
  476. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/dependentSchemas.ts +11 -0
  477. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/if.ts +80 -0
  478. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/index.ts +53 -0
  479. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/items.ts +59 -0
  480. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/items2020.ts +36 -0
  481. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/not.ts +38 -0
  482. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/oneOf.ts +82 -0
  483. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/patternProperties.ts +91 -0
  484. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/prefixItems.ts +12 -0
  485. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/properties.ts +57 -0
  486. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/propertyNames.ts +50 -0
  487. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/thenElse.ts +13 -0
  488. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/code.ts +168 -0
  489. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/core/id.ts +10 -0
  490. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/core/index.ts +16 -0
  491. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/core/ref.ts +129 -0
  492. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/discriminator/index.ts +102 -0
  493. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/discriminator/types.ts +12 -0
  494. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/draft2020.ts +23 -0
  495. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/draft7.ts +17 -0
  496. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/dynamic/dynamicAnchor.ts +31 -0
  497. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/dynamic/dynamicRef.ts +51 -0
  498. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/dynamic/index.ts +9 -0
  499. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/dynamic/recursiveAnchor.ts +14 -0
  500. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/dynamic/recursiveRef.ts +10 -0
  501. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/errors.ts +18 -0
  502. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/format/format.ts +120 -0
  503. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/format/index.ts +6 -0
  504. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/discriminator.ts +89 -0
  505. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/elements.ts +32 -0
  506. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/enum.ts +45 -0
  507. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/error.ts +23 -0
  508. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/index.ts +37 -0
  509. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/metadata.ts +24 -0
  510. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/nullable.ts +21 -0
  511. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/optionalProperties.ts +15 -0
  512. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/properties.ts +177 -0
  513. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/ref.ts +74 -0
  514. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/type.ts +75 -0
  515. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/union.ts +12 -0
  516. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/values.ts +55 -0
  517. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/metadata.ts +17 -0
  518. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/next.ts +8 -0
  519. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/unevaluated/index.ts +7 -0
  520. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedItems.ts +47 -0
  521. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedProperties.ts +85 -0
  522. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/const.ts +28 -0
  523. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/dependentRequired.ts +23 -0
  524. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/enum.ts +52 -0
  525. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/index.ts +49 -0
  526. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/limitContains.ts +16 -0
  527. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/limitItems.ts +26 -0
  528. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/limitLength.ts +30 -0
  529. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/limitNumber.ts +42 -0
  530. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/limitProperties.ts +26 -0
  531. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/multipleOf.ts +34 -0
  532. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/pattern.ts +28 -0
  533. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/required.ts +98 -0
  534. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/uniqueItems.ts +79 -0
  535. package/dist/node_modules/ajv-formats/node_modules/ajv/package.json +124 -0
  536. package/dist/node_modules/ajv-formats/package.json +74 -0
  537. package/dist/node_modules/ajv-formats/src/formats.ts +232 -0
  538. package/dist/node_modules/ajv-formats/src/index.ts +62 -0
  539. package/dist/node_modules/ajv-formats/src/limit.ts +99 -0
  540. package/dist/node_modules/consola/CHANGELOG.md +706 -0
  541. package/dist/node_modules/consola/README.md +288 -0
  542. package/dist/node_modules/consola/dist/consola.browser.js +1 -0
  543. package/dist/node_modules/consola/dist/consola.js +1 -0
  544. package/dist/node_modules/consola/package.json +80 -0
  545. package/dist/node_modules/consola/src/browser.js +20 -0
  546. package/dist/node_modules/consola/src/consola.js +327 -0
  547. package/dist/node_modules/consola/src/index.js +7 -0
  548. package/dist/node_modules/consola/src/logLevels.js +11 -0
  549. package/dist/node_modules/consola/src/node.js +36 -0
  550. package/dist/node_modules/consola/src/reporters/basic.js +72 -0
  551. package/dist/node_modules/consola/src/reporters/browser.js +54 -0
  552. package/dist/node_modules/consola/src/reporters/fancy.js +87 -0
  553. package/dist/node_modules/consola/src/reporters/index.js +5 -0
  554. package/dist/node_modules/consola/src/reporters/json.js +9 -0
  555. package/dist/node_modules/consola/src/reporters/winston.js +45 -0
  556. package/dist/node_modules/consola/src/types.js +50 -0
  557. package/dist/node_modules/consola/src/utils/chalk.js +37 -0
  558. package/dist/node_modules/consola/src/utils/date.js +5 -0
  559. package/dist/node_modules/consola/src/utils/error.js +16 -0
  560. package/dist/node_modules/consola/src/utils/fancy.js +10 -0
  561. package/dist/node_modules/consola/src/utils/format.js +30 -0
  562. package/dist/node_modules/consola/src/utils/global.js +38 -0
  563. package/dist/node_modules/consola/src/utils/index.js +23 -0
  564. package/dist/node_modules/consola/src/utils/stream.js +20 -0
  565. package/dist/node_modules/consola/src/utils/string.js +41 -0
  566. package/dist/node_modules/consola/types/consola.d.ts +182 -0
  567. package/dist/node_modules/debug/LICENSE +10 -9
  568. package/dist/node_modules/debug/README.md +24 -1
  569. package/dist/node_modules/debug/package.json +6 -6
  570. package/dist/node_modules/debug/src/common.js +1 -1
  571. package/dist/node_modules/progress/CHANGELOG.md +115 -0
  572. package/dist/node_modules/progress/LICENSE +22 -0
  573. package/dist/node_modules/progress/Makefile +8 -0
  574. package/dist/node_modules/progress/Readme.md +146 -0
  575. package/dist/node_modules/progress/index.js +1 -0
  576. package/dist/node_modules/progress/lib/node-progress.js +236 -0
  577. package/dist/node_modules/progress/package.json +26 -0
  578. package/dist/node_modules/simple-git/CHANGELOG.md +35 -0
  579. package/dist/node_modules/simple-git/package.json +6 -2
  580. package/dist/node_modules/simple-git/readme.md +8 -1
  581. package/dist/node_modules/simple-git/src/lib/api.d.ts +2 -0
  582. package/dist/node_modules/simple-git/src/lib/api.js +2 -0
  583. package/dist/node_modules/simple-git/src/lib/api.js.map +1 -1
  584. package/dist/node_modules/simple-git/src/lib/errors/git-plugin-error.d.ts +2 -2
  585. package/dist/node_modules/simple-git/src/lib/git-factory.d.ts +1 -0
  586. package/dist/node_modules/simple-git/src/lib/git-factory.js +1 -0
  587. package/dist/node_modules/simple-git/src/lib/git-factory.js.map +1 -1
  588. package/dist/node_modules/simple-git/src/lib/plugins/completion-detection.plugin.d.ts +3 -0
  589. package/dist/node_modules/simple-git/src/lib/plugins/completion-detection.plugin.js +80 -0
  590. package/dist/node_modules/simple-git/src/lib/plugins/completion-detection.plugin.js.map +1 -0
  591. package/dist/node_modules/simple-git/src/lib/plugins/index.d.ts +1 -0
  592. package/dist/node_modules/simple-git/src/lib/plugins/index.js +1 -0
  593. package/dist/node_modules/simple-git/src/lib/plugins/index.js.map +1 -1
  594. package/dist/node_modules/simple-git/src/lib/plugins/simple-git-plugin.d.ts +1 -0
  595. package/dist/node_modules/simple-git/src/lib/responses/StatusSummary.d.ts +12 -33
  596. package/dist/node_modules/simple-git/src/lib/responses/StatusSummary.js +2 -22
  597. package/dist/node_modules/simple-git/src/lib/responses/StatusSummary.js.map +1 -1
  598. package/dist/node_modules/simple-git/src/lib/runners/git-executor-chain.js +9 -23
  599. package/dist/node_modules/simple-git/src/lib/runners/git-executor-chain.js.map +1 -1
  600. package/dist/node_modules/simple-git/src/lib/simple-git-api.js +2 -1
  601. package/dist/node_modules/simple-git/src/lib/simple-git-api.js.map +1 -1
  602. package/dist/node_modules/simple-git/src/lib/tasks/grep.d.ts +12 -0
  603. package/dist/node_modules/simple-git/src/lib/tasks/grep.js +76 -0
  604. package/dist/node_modules/simple-git/src/lib/tasks/grep.js.map +1 -0
  605. package/dist/node_modules/simple-git/src/lib/types/index.d.ts +16 -0
  606. package/dist/node_modules/simple-git/src/lib/utils/util.d.ts +2 -0
  607. package/dist/node_modules/simple-git/src/lib/utils/util.js +6 -1
  608. package/dist/node_modules/simple-git/src/lib/utils/util.js.map +1 -1
  609. package/dist/node_modules/simple-git/typings/response.d.ts +38 -1
  610. package/dist/node_modules/simple-git/typings/simple-git.d.ts +7 -0
  611. package/dist/node_modules/simple-git/typings/types.d.ts +2 -1
  612. package/dist/package.json +7 -3
  613. package/dist/schemas/system.json +74 -0
  614. package/dist/schemas/variant.json +137 -0
  615. package/dist/scripts/jsonSchemaToTs.js +5 -5
  616. package/dist/util/cache/cloneIntoCache.js +6 -6
  617. package/dist/util/cache/copyItemFromCache.js +3 -3
  618. package/dist/util/cache/getCachedItemCheckout.js +2 -2
  619. package/dist/util/cache/getCachedItemPath.js +2 -2
  620. package/dist/util/cache/getJsonFromCachedFile.js +1 -1
  621. package/dist/util/fs/executeScript.js +1 -1
  622. package/dist/util/fs/findFileInCurrentPath.js +5 -5
  623. package/dist/util/platform/getDrupalInfo.js +4 -4
  624. package/dist/util/platform/getInitSuccessMessageForPlatform.js +35 -0
  625. package/dist/util/platform/getPlatformInfo.js +1 -1
  626. package/dist/util/project/getEmulsifyConfig.js +2 -2
  627. package/dist/util/project/installComponentFromCache.js +4 -4
  628. package/dist/util/project/installDependencies.js +1 -1
  629. package/dist/util/project/installGeneralAssetsFromCache.js +3 -3
  630. package/dist/util/project/setEmulsifyConfig.js +3 -3
  631. package/dist/util/strToMachineName.js +5 -2
  632. package/package.json +8 -4
@@ -0,0 +1,783 @@
1
+ declare module 'tls' {
2
+ import * as net from 'net';
3
+
4
+ const CLIENT_RENEG_LIMIT: number;
5
+ const CLIENT_RENEG_WINDOW: number;
6
+
7
+ interface Certificate {
8
+ /**
9
+ * Country code.
10
+ */
11
+ C: string;
12
+ /**
13
+ * Street.
14
+ */
15
+ ST: string;
16
+ /**
17
+ * Locality.
18
+ */
19
+ L: string;
20
+ /**
21
+ * Organization.
22
+ */
23
+ O: string;
24
+ /**
25
+ * Organizational unit.
26
+ */
27
+ OU: string;
28
+ /**
29
+ * Common name.
30
+ */
31
+ CN: string;
32
+ }
33
+
34
+ interface PeerCertificate {
35
+ subject: Certificate;
36
+ issuer: Certificate;
37
+ subjectaltname: string;
38
+ infoAccess: NodeJS.Dict<string[]>;
39
+ modulus: string;
40
+ exponent: string;
41
+ valid_from: string;
42
+ valid_to: string;
43
+ fingerprint: string;
44
+ fingerprint256: string;
45
+ ext_key_usage: string[];
46
+ serialNumber: string;
47
+ raw: Buffer;
48
+ }
49
+
50
+ interface DetailedPeerCertificate extends PeerCertificate {
51
+ issuerCertificate: DetailedPeerCertificate;
52
+ }
53
+
54
+ interface CipherNameAndProtocol {
55
+ /**
56
+ * The cipher name.
57
+ */
58
+ name: string;
59
+ /**
60
+ * SSL/TLS protocol version.
61
+ */
62
+ version: string;
63
+
64
+ /**
65
+ * IETF name for the cipher suite.
66
+ */
67
+ standardName: string;
68
+ }
69
+
70
+ interface EphemeralKeyInfo {
71
+ /**
72
+ * The supported types are 'DH' and 'ECDH'.
73
+ */
74
+ type: string;
75
+ /**
76
+ * The name property is available only when type is 'ECDH'.
77
+ */
78
+ name?: string | undefined;
79
+ /**
80
+ * The size of parameter of an ephemeral key exchange.
81
+ */
82
+ size: number;
83
+ }
84
+
85
+ interface KeyObject {
86
+ /**
87
+ * Private keys in PEM format.
88
+ */
89
+ pem: string | Buffer;
90
+ /**
91
+ * Optional passphrase.
92
+ */
93
+ passphrase?: string | undefined;
94
+ }
95
+
96
+ interface PxfObject {
97
+ /**
98
+ * PFX or PKCS12 encoded private key and certificate chain.
99
+ */
100
+ buf: string | Buffer;
101
+ /**
102
+ * Optional passphrase.
103
+ */
104
+ passphrase?: string | undefined;
105
+ }
106
+
107
+ interface TLSSocketOptions extends SecureContextOptions, CommonConnectionOptions {
108
+ /**
109
+ * If true the TLS socket will be instantiated in server-mode.
110
+ * Defaults to false.
111
+ */
112
+ isServer?: boolean | undefined;
113
+ /**
114
+ * An optional net.Server instance.
115
+ */
116
+ server?: net.Server | undefined;
117
+
118
+ /**
119
+ * An optional Buffer instance containing a TLS session.
120
+ */
121
+ session?: Buffer | undefined;
122
+ /**
123
+ * If true, specifies that the OCSP status request extension will be
124
+ * added to the client hello and an 'OCSPResponse' event will be
125
+ * emitted on the socket before establishing a secure communication
126
+ */
127
+ requestOCSP?: boolean | undefined;
128
+ }
129
+
130
+ class TLSSocket extends net.Socket {
131
+ /**
132
+ * Construct a new tls.TLSSocket object from an existing TCP socket.
133
+ */
134
+ constructor(socket: net.Socket, options?: TLSSocketOptions);
135
+
136
+ /**
137
+ * A boolean that is true if the peer certificate was signed by one of the specified CAs, otherwise false.
138
+ */
139
+ authorized: boolean;
140
+ /**
141
+ * The reason why the peer's certificate has not been verified.
142
+ * This property becomes available only when tlsSocket.authorized === false.
143
+ */
144
+ authorizationError: Error;
145
+ /**
146
+ * Static boolean value, always true.
147
+ * May be used to distinguish TLS sockets from regular ones.
148
+ */
149
+ encrypted: boolean;
150
+
151
+ /**
152
+ * String containing the selected ALPN protocol.
153
+ * Before a handshake has completed, this value is always null.
154
+ * When a handshake is completed but not ALPN protocol was selected, tlsSocket.alpnProtocol equals false.
155
+ */
156
+ alpnProtocol: string | false | null;
157
+
158
+ /**
159
+ * Returns an object representing the local certificate. The returned
160
+ * object has some properties corresponding to the fields of the
161
+ * certificate.
162
+ *
163
+ * See tls.TLSSocket.getPeerCertificate() for an example of the
164
+ * certificate structure.
165
+ *
166
+ * If there is no local certificate, an empty object will be returned.
167
+ * If the socket has been destroyed, null will be returned.
168
+ */
169
+ getCertificate(): PeerCertificate | object | null;
170
+ /**
171
+ * Returns an object representing the cipher name and the SSL/TLS protocol version of the current connection.
172
+ * @returns Returns an object representing the cipher name
173
+ * and the SSL/TLS protocol version of the current connection.
174
+ */
175
+ getCipher(): CipherNameAndProtocol;
176
+ /**
177
+ * Returns an object representing the type, name, and size of parameter
178
+ * of an ephemeral key exchange in Perfect Forward Secrecy on a client
179
+ * connection. It returns an empty object when the key exchange is not
180
+ * ephemeral. As this is only supported on a client socket; null is
181
+ * returned if called on a server socket. The supported types are 'DH'
182
+ * and 'ECDH'. The name property is available only when type is 'ECDH'.
183
+ *
184
+ * For example: { type: 'ECDH', name: 'prime256v1', size: 256 }.
185
+ */
186
+ getEphemeralKeyInfo(): EphemeralKeyInfo | object | null;
187
+ /**
188
+ * Returns the latest Finished message that has
189
+ * been sent to the socket as part of a SSL/TLS handshake, or undefined
190
+ * if no Finished message has been sent yet.
191
+ *
192
+ * As the Finished messages are message digests of the complete
193
+ * handshake (with a total of 192 bits for TLS 1.0 and more for SSL
194
+ * 3.0), they can be used for external authentication procedures when
195
+ * the authentication provided by SSL/TLS is not desired or is not
196
+ * enough.
197
+ *
198
+ * Corresponds to the SSL_get_finished routine in OpenSSL and may be
199
+ * used to implement the tls-unique channel binding from RFC 5929.
200
+ */
201
+ getFinished(): Buffer | undefined;
202
+ /**
203
+ * Returns an object representing the peer's certificate.
204
+ * The returned object has some properties corresponding to the field of the certificate.
205
+ * If detailed argument is true the full chain with issuer property will be returned,
206
+ * if false only the top certificate without issuer property.
207
+ * If the peer does not provide a certificate, it returns null or an empty object.
208
+ * @param detailed - If true; the full chain with issuer property will be returned.
209
+ * @returns An object representing the peer's certificate.
210
+ */
211
+ getPeerCertificate(detailed: true): DetailedPeerCertificate;
212
+ getPeerCertificate(detailed?: false): PeerCertificate;
213
+ getPeerCertificate(detailed?: boolean): PeerCertificate | DetailedPeerCertificate;
214
+ /**
215
+ * Returns the latest Finished message that is expected or has actually
216
+ * been received from the socket as part of a SSL/TLS handshake, or
217
+ * undefined if there is no Finished message so far.
218
+ *
219
+ * As the Finished messages are message digests of the complete
220
+ * handshake (with a total of 192 bits for TLS 1.0 and more for SSL
221
+ * 3.0), they can be used for external authentication procedures when
222
+ * the authentication provided by SSL/TLS is not desired or is not
223
+ * enough.
224
+ *
225
+ * Corresponds to the SSL_get_peer_finished routine in OpenSSL and may
226
+ * be used to implement the tls-unique channel binding from RFC 5929.
227
+ */
228
+ getPeerFinished(): Buffer | undefined;
229
+ /**
230
+ * Returns a string containing the negotiated SSL/TLS protocol version of the current connection.
231
+ * The value `'unknown'` will be returned for connected sockets that have not completed the handshaking process.
232
+ * The value `null` will be returned for server sockets or disconnected client sockets.
233
+ * See https://www.openssl.org/docs/man1.0.2/ssl/SSL_get_version.html for more information.
234
+ * @returns negotiated SSL/TLS protocol version of the current connection
235
+ */
236
+ getProtocol(): string | null;
237
+ /**
238
+ * Could be used to speed up handshake establishment when reconnecting to the server.
239
+ * @returns ASN.1 encoded TLS session or undefined if none was negotiated.
240
+ */
241
+ getSession(): Buffer | undefined;
242
+ /**
243
+ * Returns a list of signature algorithms shared between the server and
244
+ * the client in the order of decreasing preference.
245
+ */
246
+ getSharedSigalgs(): string[];
247
+ /**
248
+ * NOTE: Works only with client TLS sockets.
249
+ * Useful only for debugging, for session reuse provide session option to tls.connect().
250
+ * @returns TLS session ticket or undefined if none was negotiated.
251
+ */
252
+ getTLSTicket(): Buffer | undefined;
253
+ /**
254
+ * Returns true if the session was reused, false otherwise.
255
+ */
256
+ isSessionReused(): boolean;
257
+ /**
258
+ * Initiate TLS renegotiation process.
259
+ *
260
+ * NOTE: Can be used to request peer's certificate after the secure connection has been established.
261
+ * ANOTHER NOTE: When running as the server, socket will be destroyed with an error after handshakeTimeout timeout.
262
+ * @param options - The options may contain the following fields: rejectUnauthorized,
263
+ * requestCert (See tls.createServer() for details).
264
+ * @param callback - callback(err) will be executed with null as err, once the renegotiation
265
+ * is successfully completed.
266
+ * @return `undefined` when socket is destroy, `false` if negotiaion can't be initiated.
267
+ */
268
+ renegotiate(options: { rejectUnauthorized?: boolean | undefined, requestCert?: boolean | undefined }, callback: (err: Error | null) => void): undefined | boolean;
269
+ /**
270
+ * Set maximum TLS fragment size (default and maximum value is: 16384, minimum is: 512).
271
+ * Smaller fragment size decreases buffering latency on the client: large fragments are buffered by
272
+ * the TLS layer until the entire fragment is received and its integrity is verified;
273
+ * large fragments can span multiple roundtrips, and their processing can be delayed due to packet
274
+ * loss or reordering. However, smaller fragments add extra TLS framing bytes and CPU overhead,
275
+ * which may decrease overall server throughput.
276
+ * @param size - TLS fragment size (default and maximum value is: 16384, minimum is: 512).
277
+ * @returns Returns true on success, false otherwise.
278
+ */
279
+ setMaxSendFragment(size: number): boolean;
280
+
281
+ /**
282
+ * Disables TLS renegotiation for this TLSSocket instance. Once called,
283
+ * attempts to renegotiate will trigger an 'error' event on the
284
+ * TLSSocket.
285
+ */
286
+ disableRenegotiation(): void;
287
+
288
+ /**
289
+ * When enabled, TLS packet trace information is written to `stderr`. This can be
290
+ * used to debug TLS connection problems.
291
+ *
292
+ * Note: The format of the output is identical to the output of `openssl s_client
293
+ * -trace` or `openssl s_server -trace`. While it is produced by OpenSSL's
294
+ * `SSL_trace()` function, the format is undocumented, can change without notice,
295
+ * and should not be relied on.
296
+ */
297
+ enableTrace(): void;
298
+
299
+ /**
300
+ * @param length number of bytes to retrieve from keying material
301
+ * @param label an application specific label, typically this will be a value from the
302
+ * [IANA Exporter Label Registry](https://www.iana.org/assignments/tls-parameters/tls-parameters.xhtml#exporter-labels).
303
+ * @param context optionally provide a context.
304
+ */
305
+ exportKeyingMaterial(length: number, label: string, context: Buffer): Buffer;
306
+
307
+ addListener(event: string, listener: (...args: any[]) => void): this;
308
+ addListener(event: "OCSPResponse", listener: (response: Buffer) => void): this;
309
+ addListener(event: "secureConnect", listener: () => void): this;
310
+ addListener(event: "session", listener: (session: Buffer) => void): this;
311
+ addListener(event: "keylog", listener: (line: Buffer) => void): this;
312
+
313
+ emit(event: string | symbol, ...args: any[]): boolean;
314
+ emit(event: "OCSPResponse", response: Buffer): boolean;
315
+ emit(event: "secureConnect"): boolean;
316
+ emit(event: "session", session: Buffer): boolean;
317
+ emit(event: "keylog", line: Buffer): boolean;
318
+
319
+ on(event: string, listener: (...args: any[]) => void): this;
320
+ on(event: "OCSPResponse", listener: (response: Buffer) => void): this;
321
+ on(event: "secureConnect", listener: () => void): this;
322
+ on(event: "session", listener: (session: Buffer) => void): this;
323
+ on(event: "keylog", listener: (line: Buffer) => void): this;
324
+
325
+ once(event: string, listener: (...args: any[]) => void): this;
326
+ once(event: "OCSPResponse", listener: (response: Buffer) => void): this;
327
+ once(event: "secureConnect", listener: () => void): this;
328
+ once(event: "session", listener: (session: Buffer) => void): this;
329
+ once(event: "keylog", listener: (line: Buffer) => void): this;
330
+
331
+ prependListener(event: string, listener: (...args: any[]) => void): this;
332
+ prependListener(event: "OCSPResponse", listener: (response: Buffer) => void): this;
333
+ prependListener(event: "secureConnect", listener: () => void): this;
334
+ prependListener(event: "session", listener: (session: Buffer) => void): this;
335
+ prependListener(event: "keylog", listener: (line: Buffer) => void): this;
336
+
337
+ prependOnceListener(event: string, listener: (...args: any[]) => void): this;
338
+ prependOnceListener(event: "OCSPResponse", listener: (response: Buffer) => void): this;
339
+ prependOnceListener(event: "secureConnect", listener: () => void): this;
340
+ prependOnceListener(event: "session", listener: (session: Buffer) => void): this;
341
+ prependOnceListener(event: "keylog", listener: (line: Buffer) => void): this;
342
+ }
343
+
344
+ interface CommonConnectionOptions {
345
+ /**
346
+ * An optional TLS context object from tls.createSecureContext()
347
+ */
348
+ secureContext?: SecureContext | undefined;
349
+
350
+ /**
351
+ * When enabled, TLS packet trace information is written to `stderr`. This can be
352
+ * used to debug TLS connection problems.
353
+ * @default false
354
+ */
355
+ enableTrace?: boolean | undefined;
356
+ /**
357
+ * If true the server will request a certificate from clients that
358
+ * connect and attempt to verify that certificate. Defaults to
359
+ * false.
360
+ */
361
+ requestCert?: boolean | undefined;
362
+ /**
363
+ * An array of strings or a Buffer naming possible ALPN protocols.
364
+ * (Protocols should be ordered by their priority.)
365
+ */
366
+ ALPNProtocols?: string[] | Uint8Array[] | Uint8Array | undefined;
367
+ /**
368
+ * SNICallback(servername, cb) <Function> A function that will be
369
+ * called if the client supports SNI TLS extension. Two arguments
370
+ * will be passed when called: servername and cb. SNICallback should
371
+ * invoke cb(null, ctx), where ctx is a SecureContext instance.
372
+ * (tls.createSecureContext(...) can be used to get a proper
373
+ * SecureContext.) If SNICallback wasn't provided the default callback
374
+ * with high-level API will be used (see below).
375
+ */
376
+ SNICallback?: ((servername: string, cb: (err: Error | null, ctx: SecureContext) => void) => void) | undefined;
377
+ /**
378
+ * If true the server will reject any connection which is not
379
+ * authorized with the list of supplied CAs. This option only has an
380
+ * effect if requestCert is true.
381
+ * @default true
382
+ */
383
+ rejectUnauthorized?: boolean | undefined;
384
+ }
385
+
386
+ interface TlsOptions extends SecureContextOptions, CommonConnectionOptions, net.ServerOpts {
387
+ /**
388
+ * Abort the connection if the SSL/TLS handshake does not finish in the
389
+ * specified number of milliseconds. A 'tlsClientError' is emitted on
390
+ * the tls.Server object whenever a handshake times out. Default:
391
+ * 120000 (120 seconds).
392
+ */
393
+ handshakeTimeout?: number | undefined;
394
+ /**
395
+ * The number of seconds after which a TLS session created by the
396
+ * server will no longer be resumable. See Session Resumption for more
397
+ * information. Default: 300.
398
+ */
399
+ sessionTimeout?: number | undefined;
400
+ /**
401
+ * 48-bytes of cryptographically strong pseudo-random data.
402
+ */
403
+ ticketKeys?: Buffer | undefined;
404
+
405
+ /**
406
+ *
407
+ * @param socket
408
+ * @param identity identity parameter sent from the client.
409
+ * @return pre-shared key that must either be
410
+ * a buffer or `null` to stop the negotiation process. Returned PSK must be
411
+ * compatible with the selected cipher's digest.
412
+ *
413
+ * When negotiating TLS-PSK (pre-shared keys), this function is called
414
+ * with the identity provided by the client.
415
+ * If the return value is `null` the negotiation process will stop and an
416
+ * "unknown_psk_identity" alert message will be sent to the other party.
417
+ * If the server wishes to hide the fact that the PSK identity was not known,
418
+ * the callback must provide some random data as `psk` to make the connection
419
+ * fail with "decrypt_error" before negotiation is finished.
420
+ * PSK ciphers are disabled by default, and using TLS-PSK thus
421
+ * requires explicitly specifying a cipher suite with the `ciphers` option.
422
+ * More information can be found in the RFC 4279.
423
+ */
424
+
425
+ pskCallback?(socket: TLSSocket, identity: string): DataView | NodeJS.TypedArray | null;
426
+ /**
427
+ * hint to send to a client to help
428
+ * with selecting the identity during TLS-PSK negotiation. Will be ignored
429
+ * in TLS 1.3. Upon failing to set pskIdentityHint `tlsClientError` will be
430
+ * emitted with `ERR_TLS_PSK_SET_IDENTIY_HINT_FAILED` code.
431
+ */
432
+ pskIdentityHint?: string | undefined;
433
+ }
434
+
435
+ interface PSKCallbackNegotation {
436
+ psk: DataView | NodeJS.TypedArray;
437
+ identity: string;
438
+ }
439
+
440
+ interface ConnectionOptions extends SecureContextOptions, CommonConnectionOptions {
441
+ host?: string | undefined;
442
+ port?: number | undefined;
443
+ path?: string | undefined; // Creates unix socket connection to path. If this option is specified, `host` and `port` are ignored.
444
+ socket?: net.Socket | undefined; // Establish secure connection on a given socket rather than creating a new socket
445
+ checkServerIdentity?: typeof checkServerIdentity | undefined;
446
+ servername?: string | undefined; // SNI TLS Extension
447
+ session?: Buffer | undefined;
448
+ minDHSize?: number | undefined;
449
+ lookup?: net.LookupFunction | undefined;
450
+ timeout?: number | undefined;
451
+ /**
452
+ * When negotiating TLS-PSK (pre-shared keys), this function is called
453
+ * with optional identity `hint` provided by the server or `null`
454
+ * in case of TLS 1.3 where `hint` was removed.
455
+ * It will be necessary to provide a custom `tls.checkServerIdentity()`
456
+ * for the connection as the default one will try to check hostname/IP
457
+ * of the server against the certificate but that's not applicable for PSK
458
+ * because there won't be a certificate present.
459
+ * More information can be found in the RFC 4279.
460
+ *
461
+ * @param hint message sent from the server to help client
462
+ * decide which identity to use during negotiation.
463
+ * Always `null` if TLS 1.3 is used.
464
+ * @returns Return `null` to stop the negotiation process. `psk` must be
465
+ * compatible with the selected cipher's digest.
466
+ * `identity` must use UTF-8 encoding.
467
+ */
468
+ pskCallback?(hint: string | null): PSKCallbackNegotation | null;
469
+ }
470
+
471
+ class Server extends net.Server {
472
+ constructor(secureConnectionListener?: (socket: TLSSocket) => void);
473
+ constructor(options: TlsOptions, secureConnectionListener?: (socket: TLSSocket) => void);
474
+
475
+ /**
476
+ * The server.addContext() method adds a secure context that will be
477
+ * used if the client request's SNI name matches the supplied hostname
478
+ * (or wildcard).
479
+ */
480
+ addContext(hostName: string, credentials: SecureContextOptions): void;
481
+ /**
482
+ * Returns the session ticket keys.
483
+ */
484
+ getTicketKeys(): Buffer;
485
+ /**
486
+ *
487
+ * The server.setSecureContext() method replaces the
488
+ * secure context of an existing server. Existing connections to the
489
+ * server are not interrupted.
490
+ */
491
+ setSecureContext(details: SecureContextOptions): void;
492
+ /**
493
+ * The server.setSecureContext() method replaces the secure context of
494
+ * an existing server. Existing connections to the server are not
495
+ * interrupted.
496
+ */
497
+ setTicketKeys(keys: Buffer): void;
498
+
499
+ /**
500
+ * events.EventEmitter
501
+ * 1. tlsClientError
502
+ * 2. newSession
503
+ * 3. OCSPRequest
504
+ * 4. resumeSession
505
+ * 5. secureConnection
506
+ * 6. keylog
507
+ */
508
+ addListener(event: string, listener: (...args: any[]) => void): this;
509
+ addListener(event: "tlsClientError", listener: (err: Error, tlsSocket: TLSSocket) => void): this;
510
+ addListener(event: "newSession", listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void): this;
511
+ addListener(event: "OCSPRequest", listener: (certificate: Buffer, issuer: Buffer, callback: (err: Error | null, resp: Buffer) => void) => void): this;
512
+ addListener(event: "resumeSession", listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void): this;
513
+ addListener(event: "secureConnection", listener: (tlsSocket: TLSSocket) => void): this;
514
+ addListener(event: "keylog", listener: (line: Buffer, tlsSocket: TLSSocket) => void): this;
515
+
516
+ emit(event: string | symbol, ...args: any[]): boolean;
517
+ emit(event: "tlsClientError", err: Error, tlsSocket: TLSSocket): boolean;
518
+ emit(event: "newSession", sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void): boolean;
519
+ emit(event: "OCSPRequest", certificate: Buffer, issuer: Buffer, callback: (err: Error | null, resp: Buffer) => void): boolean;
520
+ emit(event: "resumeSession", sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void): boolean;
521
+ emit(event: "secureConnection", tlsSocket: TLSSocket): boolean;
522
+ emit(event: "keylog", line: Buffer, tlsSocket: TLSSocket): boolean;
523
+
524
+ on(event: string, listener: (...args: any[]) => void): this;
525
+ on(event: "tlsClientError", listener: (err: Error, tlsSocket: TLSSocket) => void): this;
526
+ on(event: "newSession", listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void): this;
527
+ on(event: "OCSPRequest", listener: (certificate: Buffer, issuer: Buffer, callback: (err: Error | null, resp: Buffer) => void) => void): this;
528
+ on(event: "resumeSession", listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void): this;
529
+ on(event: "secureConnection", listener: (tlsSocket: TLSSocket) => void): this;
530
+ on(event: "keylog", listener: (line: Buffer, tlsSocket: TLSSocket) => void): this;
531
+
532
+ once(event: string, listener: (...args: any[]) => void): this;
533
+ once(event: "tlsClientError", listener: (err: Error, tlsSocket: TLSSocket) => void): this;
534
+ once(event: "newSession", listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void): this;
535
+ once(event: "OCSPRequest", listener: (certificate: Buffer, issuer: Buffer, callback: (err: Error | null, resp: Buffer) => void) => void): this;
536
+ once(event: "resumeSession", listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void): this;
537
+ once(event: "secureConnection", listener: (tlsSocket: TLSSocket) => void): this;
538
+ once(event: "keylog", listener: (line: Buffer, tlsSocket: TLSSocket) => void): this;
539
+
540
+ prependListener(event: string, listener: (...args: any[]) => void): this;
541
+ prependListener(event: "tlsClientError", listener: (err: Error, tlsSocket: TLSSocket) => void): this;
542
+ prependListener(event: "newSession", listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void): this;
543
+ prependListener(event: "OCSPRequest", listener: (certificate: Buffer, issuer: Buffer, callback: (err: Error | null, resp: Buffer) => void) => void): this;
544
+ prependListener(event: "resumeSession", listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void): this;
545
+ prependListener(event: "secureConnection", listener: (tlsSocket: TLSSocket) => void): this;
546
+ prependListener(event: "keylog", listener: (line: Buffer, tlsSocket: TLSSocket) => void): this;
547
+
548
+ prependOnceListener(event: string, listener: (...args: any[]) => void): this;
549
+ prependOnceListener(event: "tlsClientError", listener: (err: Error, tlsSocket: TLSSocket) => void): this;
550
+ prependOnceListener(event: "newSession", listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void): this;
551
+ prependOnceListener(event: "OCSPRequest", listener: (certificate: Buffer, issuer: Buffer, callback: (err: Error | null, resp: Buffer) => void) => void): this;
552
+ prependOnceListener(event: "resumeSession", listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void): this;
553
+ prependOnceListener(event: "secureConnection", listener: (tlsSocket: TLSSocket) => void): this;
554
+ prependOnceListener(event: "keylog", listener: (line: Buffer, tlsSocket: TLSSocket) => void): this;
555
+ }
556
+
557
+ interface SecurePair {
558
+ encrypted: TLSSocket;
559
+ cleartext: TLSSocket;
560
+ }
561
+
562
+ type SecureVersion = 'TLSv1.3' | 'TLSv1.2' | 'TLSv1.1' | 'TLSv1';
563
+
564
+ interface SecureContextOptions {
565
+ /**
566
+ * Optionally override the trusted CA certificates. Default is to trust
567
+ * the well-known CAs curated by Mozilla. Mozilla's CAs are completely
568
+ * replaced when CAs are explicitly specified using this option.
569
+ */
570
+ ca?: string | Buffer | Array<string | Buffer> | undefined;
571
+ /**
572
+ * Cert chains in PEM format. One cert chain should be provided per
573
+ * private key. Each cert chain should consist of the PEM formatted
574
+ * certificate for a provided private key, followed by the PEM
575
+ * formatted intermediate certificates (if any), in order, and not
576
+ * including the root CA (the root CA must be pre-known to the peer,
577
+ * see ca). When providing multiple cert chains, they do not have to
578
+ * be in the same order as their private keys in key. If the
579
+ * intermediate certificates are not provided, the peer will not be
580
+ * able to validate the certificate, and the handshake will fail.
581
+ */
582
+ cert?: string | Buffer | Array<string | Buffer> | undefined;
583
+ /**
584
+ * Colon-separated list of supported signature algorithms. The list
585
+ * can contain digest algorithms (SHA256, MD5 etc.), public key
586
+ * algorithms (RSA-PSS, ECDSA etc.), combination of both (e.g
587
+ * 'RSA+SHA384') or TLS v1.3 scheme names (e.g. rsa_pss_pss_sha512).
588
+ */
589
+ sigalgs?: string | undefined;
590
+ /**
591
+ * Cipher suite specification, replacing the default. For more
592
+ * information, see modifying the default cipher suite. Permitted
593
+ * ciphers can be obtained via tls.getCiphers(). Cipher names must be
594
+ * uppercased in order for OpenSSL to accept them.
595
+ */
596
+ ciphers?: string | undefined;
597
+ /**
598
+ * Name of an OpenSSL engine which can provide the client certificate.
599
+ */
600
+ clientCertEngine?: string | undefined;
601
+ /**
602
+ * PEM formatted CRLs (Certificate Revocation Lists).
603
+ */
604
+ crl?: string | Buffer | Array<string | Buffer> | undefined;
605
+ /**
606
+ * Diffie Hellman parameters, required for Perfect Forward Secrecy. Use
607
+ * openssl dhparam to create the parameters. The key length must be
608
+ * greater than or equal to 1024 bits or else an error will be thrown.
609
+ * Although 1024 bits is permissible, use 2048 bits or larger for
610
+ * stronger security. If omitted or invalid, the parameters are
611
+ * silently discarded and DHE ciphers will not be available.
612
+ */
613
+ dhparam?: string | Buffer | undefined;
614
+ /**
615
+ * A string describing a named curve or a colon separated list of curve
616
+ * NIDs or names, for example P-521:P-384:P-256, to use for ECDH key
617
+ * agreement. Set to auto to select the curve automatically. Use
618
+ * crypto.getCurves() to obtain a list of available curve names. On
619
+ * recent releases, openssl ecparam -list_curves will also display the
620
+ * name and description of each available elliptic curve. Default:
621
+ * tls.DEFAULT_ECDH_CURVE.
622
+ */
623
+ ecdhCurve?: string | undefined;
624
+ /**
625
+ * Attempt to use the server's cipher suite preferences instead of the
626
+ * client's. When true, causes SSL_OP_CIPHER_SERVER_PREFERENCE to be
627
+ * set in secureOptions
628
+ */
629
+ honorCipherOrder?: boolean | undefined;
630
+ /**
631
+ * Private keys in PEM format. PEM allows the option of private keys
632
+ * being encrypted. Encrypted keys will be decrypted with
633
+ * options.passphrase. Multiple keys using different algorithms can be
634
+ * provided either as an array of unencrypted key strings or buffers,
635
+ * or an array of objects in the form {pem: <string|buffer>[,
636
+ * passphrase: <string>]}. The object form can only occur in an array.
637
+ * object.passphrase is optional. Encrypted keys will be decrypted with
638
+ * object.passphrase if provided, or options.passphrase if it is not.
639
+ */
640
+ key?: string | Buffer | Array<Buffer | KeyObject> | undefined;
641
+ /**
642
+ * Name of an OpenSSL engine to get private key from. Should be used
643
+ * together with privateKeyIdentifier.
644
+ */
645
+ privateKeyEngine?: string | undefined;
646
+ /**
647
+ * Identifier of a private key managed by an OpenSSL engine. Should be
648
+ * used together with privateKeyEngine. Should not be set together with
649
+ * key, because both options define a private key in different ways.
650
+ */
651
+ privateKeyIdentifier?: string | undefined;
652
+ /**
653
+ * Optionally set the maximum TLS version to allow. One
654
+ * of `'TLSv1.3'`, `'TLSv1.2'`, `'TLSv1.1'`, or `'TLSv1'`. Cannot be specified along with the
655
+ * `secureProtocol` option, use one or the other.
656
+ * **Default:** `'TLSv1.3'`, unless changed using CLI options. Using
657
+ * `--tls-max-v1.2` sets the default to `'TLSv1.2'`. Using `--tls-max-v1.3` sets the default to
658
+ * `'TLSv1.3'`. If multiple of the options are provided, the highest maximum is used.
659
+ */
660
+ maxVersion?: SecureVersion | undefined;
661
+ /**
662
+ * Optionally set the minimum TLS version to allow. One
663
+ * of `'TLSv1.3'`, `'TLSv1.2'`, `'TLSv1.1'`, or `'TLSv1'`. Cannot be specified along with the
664
+ * `secureProtocol` option, use one or the other. It is not recommended to use
665
+ * less than TLSv1.2, but it may be required for interoperability.
666
+ * **Default:** `'TLSv1.2'`, unless changed using CLI options. Using
667
+ * `--tls-v1.0` sets the default to `'TLSv1'`. Using `--tls-v1.1` sets the default to
668
+ * `'TLSv1.1'`. Using `--tls-min-v1.3` sets the default to
669
+ * 'TLSv1.3'. If multiple of the options are provided, the lowest minimum is used.
670
+ */
671
+ minVersion?: SecureVersion | undefined;
672
+ /**
673
+ * Shared passphrase used for a single private key and/or a PFX.
674
+ */
675
+ passphrase?: string | undefined;
676
+ /**
677
+ * PFX or PKCS12 encoded private key and certificate chain. pfx is an
678
+ * alternative to providing key and cert individually. PFX is usually
679
+ * encrypted, if it is, passphrase will be used to decrypt it. Multiple
680
+ * PFX can be provided either as an array of unencrypted PFX buffers,
681
+ * or an array of objects in the form {buf: <string|buffer>[,
682
+ * passphrase: <string>]}. The object form can only occur in an array.
683
+ * object.passphrase is optional. Encrypted PFX will be decrypted with
684
+ * object.passphrase if provided, or options.passphrase if it is not.
685
+ */
686
+ pfx?: string | Buffer | Array<string | Buffer | PxfObject> | undefined;
687
+ /**
688
+ * Optionally affect the OpenSSL protocol behavior, which is not
689
+ * usually necessary. This should be used carefully if at all! Value is
690
+ * a numeric bitmask of the SSL_OP_* options from OpenSSL Options
691
+ */
692
+ secureOptions?: number | undefined; // Value is a numeric bitmask of the `SSL_OP_*` options
693
+ /**
694
+ * Legacy mechanism to select the TLS protocol version to use, it does
695
+ * not support independent control of the minimum and maximum version,
696
+ * and does not support limiting the protocol to TLSv1.3. Use
697
+ * minVersion and maxVersion instead. The possible values are listed as
698
+ * SSL_METHODS, use the function names as strings. For example, use
699
+ * 'TLSv1_1_method' to force TLS version 1.1, or 'TLS_method' to allow
700
+ * any TLS protocol version up to TLSv1.3. It is not recommended to use
701
+ * TLS versions less than 1.2, but it may be required for
702
+ * interoperability. Default: none, see minVersion.
703
+ */
704
+ secureProtocol?: string | undefined;
705
+ /**
706
+ * Opaque identifier used by servers to ensure session state is not
707
+ * shared between applications. Unused by clients.
708
+ */
709
+ sessionIdContext?: string | undefined;
710
+ /**
711
+ * 48-bytes of cryptographically strong pseudo-random data.
712
+ * See Session Resumption for more information.
713
+ */
714
+ ticketKeys?: Buffer | undefined;
715
+ /**
716
+ * The number of seconds after which a TLS session created by the
717
+ * server will no longer be resumable. See Session Resumption for more
718
+ * information. Default: 300.
719
+ */
720
+ sessionTimeout?: number | undefined;
721
+ }
722
+
723
+ interface SecureContext {
724
+ context: any;
725
+ }
726
+
727
+ /*
728
+ * Verifies the certificate `cert` is issued to host `host`.
729
+ * @host The hostname to verify the certificate against
730
+ * @cert PeerCertificate representing the peer's certificate
731
+ *
732
+ * Returns Error object, populating it with the reason, host and cert on failure. On success, returns undefined.
733
+ */
734
+ function checkServerIdentity(host: string, cert: PeerCertificate): Error | undefined;
735
+ function createServer(secureConnectionListener?: (socket: TLSSocket) => void): Server;
736
+ function createServer(options: TlsOptions, secureConnectionListener?: (socket: TLSSocket) => void): Server;
737
+ function connect(options: ConnectionOptions, secureConnectListener?: () => void): TLSSocket;
738
+ function connect(port: number, host?: string, options?: ConnectionOptions, secureConnectListener?: () => void): TLSSocket;
739
+ function connect(port: number, options?: ConnectionOptions, secureConnectListener?: () => void): TLSSocket;
740
+ /**
741
+ * @deprecated since v0.11.3 Use `tls.TLSSocket` instead.
742
+ */
743
+ function createSecurePair(credentials?: SecureContext, isServer?: boolean, requestCert?: boolean, rejectUnauthorized?: boolean): SecurePair;
744
+ function createSecureContext(options?: SecureContextOptions): SecureContext;
745
+ function getCiphers(): string[];
746
+
747
+ /**
748
+ * The default curve name to use for ECDH key agreement in a tls server.
749
+ * The default value is 'auto'. See tls.createSecureContext() for further
750
+ * information.
751
+ */
752
+ let DEFAULT_ECDH_CURVE: string;
753
+ /**
754
+ * The default value of the maxVersion option of
755
+ * tls.createSecureContext(). It can be assigned any of the supported TLS
756
+ * protocol versions, 'TLSv1.3', 'TLSv1.2', 'TLSv1.1', or 'TLSv1'. Default:
757
+ * 'TLSv1.3', unless changed using CLI options. Using --tls-max-v1.2 sets
758
+ * the default to 'TLSv1.2'. Using --tls-max-v1.3 sets the default to
759
+ * 'TLSv1.3'. If multiple of the options are provided, the highest maximum
760
+ * is used.
761
+ */
762
+ let DEFAULT_MAX_VERSION: SecureVersion;
763
+ /**
764
+ * The default value of the minVersion option of tls.createSecureContext().
765
+ * It can be assigned any of the supported TLS protocol versions,
766
+ * 'TLSv1.3', 'TLSv1.2', 'TLSv1.1', or 'TLSv1'. Default: 'TLSv1.2', unless
767
+ * changed using CLI options. Using --tls-min-v1.0 sets the default to
768
+ * 'TLSv1'. Using --tls-min-v1.1 sets the default to 'TLSv1.1'. Using
769
+ * --tls-min-v1.3 sets the default to 'TLSv1.3'. If multiple of the options
770
+ * are provided, the lowest minimum is used.
771
+ */
772
+ let DEFAULT_MIN_VERSION: SecureVersion;
773
+
774
+ /**
775
+ * An immutable array of strings representing the root certificates (in PEM
776
+ * format) used for verifying peer certificates. This is the default value
777
+ * of the ca option to tls.createSecureContext().
778
+ */
779
+ const rootCertificates: ReadonlyArray<string>;
780
+ }
781
+ declare module 'node:tls' {
782
+ export * from 'tls';
783
+ }