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