@emulsify/cli 1.5.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 (344) hide show
  1. package/README.md +89 -1
  2. package/dist/handlers/componentInstall.js +9 -5
  3. package/dist/handlers/componentList.js +1 -1
  4. package/dist/handlers/init.js +1 -1
  5. package/dist/handlers/systemInstall.js +27 -11
  6. package/dist/index.js +13 -21
  7. package/dist/node_modules/.package-lock.json +34 -43
  8. package/dist/node_modules/@types/node/LICENSE +0 -0
  9. package/dist/node_modules/@types/node/README.md +3 -3
  10. package/dist/node_modules/@types/node/assert.d.ts +33 -31
  11. package/dist/node_modules/@types/node/async_hooks.d.ts +29 -21
  12. package/dist/node_modules/@types/node/buffer.d.ts +67 -3
  13. package/dist/node_modules/@types/node/child_process.d.ts +230 -62
  14. package/dist/node_modules/@types/node/cluster.d.ts +62 -27
  15. package/dist/node_modules/@types/node/console.d.ts +6 -6
  16. package/dist/node_modules/@types/node/constants.d.ts +12 -11
  17. package/dist/node_modules/@types/node/crypto.d.ts +338 -240
  18. package/dist/node_modules/@types/node/dgram.d.ts +50 -14
  19. package/dist/node_modules/@types/node/dns.d.ts +183 -54
  20. package/dist/node_modules/@types/node/domain.d.ts +4 -4
  21. package/dist/node_modules/@types/node/events.d.ts +4 -4
  22. package/dist/node_modules/@types/node/fs/promises.d.ts +105 -39
  23. package/dist/node_modules/@types/node/fs.d.ts +440 -126
  24. package/dist/node_modules/@types/node/globals.d.ts +176 -24
  25. package/dist/node_modules/@types/node/globals.global.d.ts +0 -0
  26. package/dist/node_modules/@types/node/http.d.ts +309 -218
  27. package/dist/node_modules/@types/node/http2.d.ts +345 -98
  28. package/dist/node_modules/@types/node/https.d.ts +250 -118
  29. package/dist/node_modules/@types/node/index.d.ts +1 -2
  30. package/dist/node_modules/@types/node/inspector.d.ts +2 -3
  31. package/dist/node_modules/@types/node/module.d.ts +4 -4
  32. package/dist/node_modules/@types/node/net.d.ts +42 -14
  33. package/dist/node_modules/@types/node/os.d.ts +5 -4
  34. package/dist/node_modules/@types/node/package.json +10 -8
  35. package/dist/node_modules/@types/node/path.d.ts +35 -24
  36. package/dist/node_modules/@types/node/perf_hooks.d.ts +5 -5
  37. package/dist/node_modules/@types/node/process.d.ts +62 -23
  38. package/dist/node_modules/@types/node/punycode.d.ts +3 -3
  39. package/dist/node_modules/@types/node/querystring.d.ts +15 -5
  40. package/dist/node_modules/@types/node/readline.d.ts +16 -6
  41. package/dist/node_modules/@types/node/repl.d.ts +13 -7
  42. package/dist/node_modules/@types/node/stream.d.ts +190 -31
  43. package/dist/node_modules/@types/node/string_decoder.d.ts +3 -3
  44. package/dist/node_modules/@types/node/timers.d.ts +6 -6
  45. package/dist/node_modules/@types/node/tls.d.ts +113 -30
  46. package/dist/node_modules/@types/node/trace_events.d.ts +3 -3
  47. package/dist/node_modules/@types/node/ts4.8/assert.d.ts +130 -0
  48. package/dist/node_modules/@types/node/ts4.8/async_hooks.d.ts +237 -0
  49. package/dist/node_modules/@types/node/ts4.8/buffer.d.ts +89 -0
  50. package/dist/node_modules/@types/node/ts4.8/child_process.d.ts +682 -0
  51. package/dist/node_modules/@types/node/ts4.8/cluster.d.ts +300 -0
  52. package/dist/node_modules/@types/node/ts4.8/console.d.ts +142 -0
  53. package/dist/node_modules/@types/node/ts4.8/constants.d.ts +19 -0
  54. package/dist/node_modules/@types/node/ts4.8/crypto.d.ts +1287 -0
  55. package/dist/node_modules/@types/node/ts4.8/dgram.d.ts +180 -0
  56. package/dist/node_modules/@types/node/ts4.8/dns.d.ts +516 -0
  57. package/dist/node_modules/@types/node/ts4.8/domain.d.ts +27 -0
  58. package/dist/node_modules/@types/node/ts4.8/events.d.ts +82 -0
  59. package/dist/node_modules/@types/node/ts4.8/fs/promises.d.ts +634 -0
  60. package/dist/node_modules/@types/node/ts4.8/fs.d.ts +2587 -0
  61. package/dist/node_modules/@types/node/ts4.8/globals.d.ts +763 -0
  62. package/dist/node_modules/@types/node/ts4.8/globals.global.d.ts +1 -0
  63. package/dist/node_modules/@types/node/ts4.8/http.d.ts +580 -0
  64. package/dist/node_modules/@types/node/ts4.8/http2.d.ts +1208 -0
  65. package/dist/node_modules/@types/node/ts4.8/https.d.ts +274 -0
  66. package/dist/node_modules/@types/node/ts4.8/index.d.ts +53 -0
  67. package/dist/node_modules/@types/node/ts4.8/inspector.d.ts +3050 -0
  68. package/dist/node_modules/@types/node/ts4.8/module.d.ts +56 -0
  69. package/dist/node_modules/@types/node/ts4.8/net.d.ts +324 -0
  70. package/dist/node_modules/@types/node/ts4.8/os.d.ts +243 -0
  71. package/dist/node_modules/@types/node/ts4.8/path.d.ts +168 -0
  72. package/dist/node_modules/@types/node/ts4.8/perf_hooks.d.ts +274 -0
  73. package/dist/node_modules/@types/node/ts4.8/process.d.ts +452 -0
  74. package/dist/node_modules/@types/node/ts4.8/punycode.d.ts +78 -0
  75. package/dist/node_modules/@types/node/ts4.8/querystring.d.ts +41 -0
  76. package/dist/node_modules/@types/node/ts4.8/readline.d.ts +184 -0
  77. package/dist/node_modules/@types/node/ts4.8/repl.d.ts +404 -0
  78. package/dist/node_modules/@types/node/ts4.8/stream.d.ts +518 -0
  79. package/dist/node_modules/@types/node/ts4.8/string_decoder.d.ts +10 -0
  80. package/dist/node_modules/@types/node/ts4.8/timers.d.ts +19 -0
  81. package/dist/node_modules/@types/node/ts4.8/tls.d.ts +866 -0
  82. package/dist/node_modules/@types/node/ts4.8/trace_events.d.ts +64 -0
  83. package/dist/node_modules/@types/node/ts4.8/tty.d.ts +69 -0
  84. package/dist/node_modules/@types/node/ts4.8/url.d.ts +187 -0
  85. package/dist/node_modules/@types/node/ts4.8/util.d.ts +278 -0
  86. package/dist/node_modules/@types/node/ts4.8/v8.d.ts +189 -0
  87. package/dist/node_modules/@types/node/ts4.8/vm.d.ts +155 -0
  88. package/dist/node_modules/@types/node/ts4.8/wasi.d.ts +88 -0
  89. package/dist/node_modules/@types/node/ts4.8/worker_threads.d.ts +241 -0
  90. package/dist/node_modules/@types/node/ts4.8/zlib.d.ts +364 -0
  91. package/dist/node_modules/@types/node/tty.d.ts +4 -4
  92. package/dist/node_modules/@types/node/url.d.ts +75 -7
  93. package/dist/node_modules/@types/node/util.d.ts +103 -41
  94. package/dist/node_modules/@types/node/v8.d.ts +4 -5
  95. package/dist/node_modules/@types/node/vm.d.ts +7 -7
  96. package/dist/node_modules/@types/node/wasi.d.ts +3 -4
  97. package/dist/node_modules/@types/node/worker_threads.d.ts +8 -8
  98. package/dist/node_modules/@types/node/zlib.d.ts +13 -13
  99. package/dist/node_modules/@types/progress/LICENSE +0 -0
  100. package/dist/node_modules/@types/progress/README.md +2 -3
  101. package/dist/node_modules/@types/progress/index.d.ts +0 -5
  102. package/dist/node_modules/@types/progress/package.json +6 -6
  103. package/dist/node_modules/ajv-formats/node_modules/ajv/README.md +20 -5
  104. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/2019.d.ts +3 -1
  105. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/2019.js +7 -1
  106. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/2019.js.map +1 -1
  107. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/2020.d.ts +3 -1
  108. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/2020.js +7 -1
  109. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/2020.js.map +1 -1
  110. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/ajv.d.ts +3 -1
  111. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/ajv.js +7 -1
  112. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/ajv.js.map +1 -1
  113. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/code.d.ts +6 -5
  114. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/code.js +9 -1
  115. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/code.js.map +1 -1
  116. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/index.d.ts +2 -2
  117. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/index.js.map +1 -1
  118. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/scope.d.ts +5 -5
  119. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/scope.js +1 -1
  120. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/scope.js.map +1 -1
  121. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/errors.js +1 -1
  122. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/errors.js.map +1 -1
  123. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/index.d.ts +1 -1
  124. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/index.js +9 -10
  125. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/index.js.map +1 -1
  126. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/parse.js +1 -1
  127. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/parse.js.map +1 -1
  128. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/serialize.js +19 -8
  129. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/serialize.js.map +1 -1
  130. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/types.d.ts +2 -2
  131. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/names.js +6 -6
  132. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/names.js.map +1 -1
  133. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/ref_error.d.ts +2 -1
  134. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/ref_error.js +3 -3
  135. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/ref_error.js.map +1 -1
  136. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/resolve.d.ts +6 -6
  137. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/resolve.js +16 -14
  138. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/resolve.js.map +1 -1
  139. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/rules.d.ts +2 -2
  140. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/util.d.ts +2 -2
  141. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/util.js +1 -1
  142. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/util.js.map +1 -1
  143. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/boolSchema.js.map +1 -1
  144. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/dataType.d.ts +1 -1
  145. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/dataType.js +2 -1
  146. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/dataType.js.map +1 -1
  147. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/defaults.js.map +1 -1
  148. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/index.js +12 -2
  149. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/index.js.map +1 -1
  150. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/keyword.js.map +1 -1
  151. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/subschema.d.ts +1 -1
  152. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/subschema.js.map +1 -1
  153. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/core.d.ts +7 -5
  154. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/core.js +22 -18
  155. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/core.js.map +1 -1
  156. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/jtd.d.ts +4 -2
  157. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/jtd.js +7 -1
  158. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/jtd.js.map +1 -1
  159. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/equal.d.ts +1 -1
  160. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/parseJson.js +2 -1
  161. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/parseJson.js.map +1 -1
  162. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/re2.d.ts +1 -1
  163. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/ucs2length.js.map +1 -1
  164. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/uri.d.ts +6 -0
  165. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/uri.js +6 -0
  166. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/uri.js.map +1 -0
  167. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/standalone/index.js +8 -1
  168. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/standalone/index.js.map +1 -1
  169. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/types/index.d.ts +25 -19
  170. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/types/json-schema.d.ts +15 -14
  171. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/types/jtd-schema.d.ts +31 -25
  172. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/additionalItems.d.ts +1 -1
  173. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js.map +1 -1
  174. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.d.ts +1 -1
  175. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js.map +1 -1
  176. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/anyOf.d.ts +1 -1
  177. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/contains.d.ts +1 -1
  178. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/contains.js.map +1 -1
  179. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/dependencies.d.ts +2 -2
  180. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/dependencies.js.map +1 -1
  181. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/if.d.ts +1 -1
  182. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/if.js.map +1 -1
  183. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/index.d.ts +1 -1
  184. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/items.js.map +1 -1
  185. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/items2020.d.ts +1 -1
  186. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/not.d.ts +1 -1
  187. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/not.js.map +1 -1
  188. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/oneOf.d.ts +1 -1
  189. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/oneOf.js.map +1 -1
  190. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js.map +1 -1
  191. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/properties.js.map +1 -1
  192. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/propertyNames.d.ts +1 -1
  193. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/code.js.map +1 -1
  194. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/ref.js +1 -1
  195. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/ref.js.map +1 -1
  196. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/index.d.ts +1 -1
  197. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/index.js +10 -3
  198. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/index.js.map +1 -1
  199. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/types.d.ts +1 -1
  200. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/types.js +1 -1
  201. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/types.js.map +1 -1
  202. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js.map +1 -1
  203. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/errors.d.ts +1 -1
  204. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/format/format.d.ts +1 -1
  205. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/format/format.js.map +1 -1
  206. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/discriminator.d.ts +1 -1
  207. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/discriminator.js.map +1 -1
  208. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/elements.d.ts +1 -1
  209. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/enum.d.ts +1 -1
  210. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/enum.js.map +1 -1
  211. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/error.d.ts +1 -1
  212. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/index.d.ts +1 -1
  213. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/metadata.js.map +1 -1
  214. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/nullable.js.map +1 -1
  215. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/properties.d.ts +3 -3
  216. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/properties.js +8 -5
  217. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/properties.js.map +1 -1
  218. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/ref.js +3 -2
  219. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/ref.js.map +1 -1
  220. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/type.d.ts +3 -3
  221. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/type.js.map +1 -1
  222. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/values.d.ts +1 -1
  223. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/values.js +10 -7
  224. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/values.js.map +1 -1
  225. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.d.ts +1 -1
  226. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js.map +1 -1
  227. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.d.ts +1 -1
  228. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js.map +1 -1
  229. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/const.d.ts +1 -1
  230. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/const.js.map +1 -1
  231. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/dependentRequired.d.ts +1 -1
  232. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/enum.d.ts +1 -1
  233. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/enum.js +4 -3
  234. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/enum.js.map +1 -1
  235. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/index.d.ts +2 -2
  236. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitContains.js.map +1 -1
  237. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitNumber.d.ts +3 -3
  238. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +1 -1
  239. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitProperties.js.map +1 -1
  240. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/multipleOf.d.ts +1 -1
  241. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/pattern.d.ts +1 -1
  242. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/required.d.ts +1 -1
  243. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/required.js.map +1 -1
  244. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/uniqueItems.d.ts +1 -1
  245. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/2019.ts +4 -1
  246. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/2020.ts +4 -1
  247. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/ajv.ts +4 -1
  248. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/codegen/code.ts +8 -0
  249. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/codegen/index.ts +25 -5
  250. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/index.ts +8 -8
  251. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/jtd/parse.ts +1 -1
  252. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/jtd/serialize.ts +21 -15
  253. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/jtd/types.ts +1 -1
  254. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/ref_error.ts +4 -3
  255. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/resolve.ts +18 -15
  256. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/rules.ts +1 -1
  257. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/validate/dataType.ts +1 -0
  258. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/validate/index.ts +11 -2
  259. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/core.ts +13 -2
  260. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/jtd.ts +4 -1
  261. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/runtime/parseJson.ts +2 -1
  262. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/runtime/uri.ts +6 -0
  263. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/standalone/index.ts +9 -2
  264. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/types/index.ts +14 -3
  265. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/types/json-schema.ts +2 -4
  266. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/types/jtd-schema.ts +25 -16
  267. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/core/ref.ts +1 -1
  268. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/discriminator/index.ts +11 -3
  269. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/properties.ts +13 -6
  270. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/ref.ts +3 -1
  271. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/values.ts +10 -7
  272. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/enum.ts +5 -3
  273. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/limitProperties.ts +1 -1
  274. package/dist/node_modules/ajv-formats/node_modules/ajv/package.json +40 -38
  275. package/dist/node_modules/commander/Readme.md +407 -169
  276. package/dist/node_modules/commander/esm.mjs +13 -1
  277. package/dist/node_modules/commander/index.js +13 -2206
  278. package/dist/node_modules/commander/lib/argument.js +145 -0
  279. package/dist/node_modules/commander/lib/command.js +2299 -0
  280. package/dist/node_modules/commander/lib/error.js +43 -0
  281. package/dist/node_modules/commander/lib/help.js +457 -0
  282. package/dist/node_modules/commander/lib/option.js +327 -0
  283. package/dist/node_modules/commander/lib/suggestSimilar.js +100 -0
  284. package/dist/node_modules/commander/package.json +46 -34
  285. package/dist/node_modules/commander/typings/esm.d.mts +3 -0
  286. package/dist/node_modules/commander/typings/index.d.ts +889 -617
  287. package/dist/node_modules/debug/README.md +3 -0
  288. package/dist/node_modules/debug/package.json +1 -1
  289. package/dist/node_modules/debug/src/common.js +1 -1
  290. package/dist/node_modules/fs-extra/README.md +3 -5
  291. package/dist/node_modules/fs-extra/lib/{copy-sync → copy}/copy-sync.js +11 -8
  292. package/dist/node_modules/fs-extra/lib/copy/copy.js +12 -9
  293. package/dist/node_modules/fs-extra/lib/copy/index.js +2 -1
  294. package/dist/node_modules/fs-extra/lib/empty/index.js +10 -19
  295. package/dist/node_modules/fs-extra/lib/ensure/index.js +15 -15
  296. package/dist/node_modules/fs-extra/lib/ensure/link.js +10 -7
  297. package/dist/node_modules/fs-extra/lib/ensure/symlink.js +34 -15
  298. package/dist/node_modules/fs-extra/lib/fs/index.js +8 -10
  299. package/dist/node_modules/fs-extra/lib/index.js +1 -12
  300. package/dist/node_modules/fs-extra/lib/json/output-json-sync.js +1 -1
  301. package/dist/node_modules/fs-extra/lib/json/output-json.js +1 -1
  302. package/dist/node_modules/fs-extra/lib/mkdirs/make-dir.js +16 -130
  303. package/dist/node_modules/fs-extra/lib/mkdirs/utils.js +21 -0
  304. package/dist/node_modules/fs-extra/lib/move/index.js +2 -1
  305. package/dist/node_modules/fs-extra/lib/{move-sync → move}/move-sync.js +12 -5
  306. package/dist/node_modules/fs-extra/lib/move/move.js +14 -4
  307. package/dist/node_modules/fs-extra/lib/remove/index.js +15 -2
  308. package/dist/node_modules/fs-extra/lib/util/stat.js +60 -45
  309. package/dist/node_modules/fs-extra/package.json +7 -10
  310. package/dist/node_modules/graceful-fs/LICENSE +1 -1
  311. package/dist/node_modules/graceful-fs/graceful-fs.js +23 -4
  312. package/dist/node_modules/graceful-fs/package.json +6 -3
  313. package/dist/node_modules/graceful-fs/polyfills.js +39 -30
  314. package/dist/node_modules/punycode/README.md +29 -3
  315. package/dist/node_modules/punycode/package.json +7 -7
  316. package/dist/node_modules/punycode/punycode.es6.js +25 -22
  317. package/dist/node_modules/punycode/punycode.js +25 -22
  318. package/dist/node_modules/ramda/dist/ramda.js +4 -4
  319. package/dist/node_modules/ramda/dist/ramda.min.js +1 -1
  320. package/dist/node_modules/ramda/es/trim.js +1 -1
  321. package/dist/node_modules/ramda/package.json +1 -1
  322. package/dist/node_modules/ramda/src/trim.js +1 -1
  323. package/dist/node_modules/universalify/README.md +1 -1
  324. package/dist/node_modules/universalify/index.js +6 -6
  325. package/dist/node_modules/universalify/package.json +2 -2
  326. package/dist/package.json +5 -6
  327. package/dist/schemas/variant.json +28 -5
  328. package/dist/util/cache/cloneIntoCache.js +1 -1
  329. package/dist/util/cache/getCachedItemPath.js +4 -2
  330. package/dist/util/cache/getJsonFromCachedFile.js +2 -2
  331. package/dist/util/getGitRepoNameFromUrl.js +1 -1
  332. package/dist/util/getRepositoryLatestTag.js +16 -0
  333. package/dist/util/platform/getInitSuccessMessageForPlatform.js +4 -3
  334. package/dist/util/project/buildComponentDependencyList.js +20 -0
  335. package/package.json +6 -7
  336. package/dist/node_modules/at-least-node/LICENSE +0 -6
  337. package/dist/node_modules/at-least-node/README.md +0 -25
  338. package/dist/node_modules/at-least-node/index.js +0 -5
  339. package/dist/node_modules/at-least-node/package.json +0 -32
  340. package/dist/node_modules/commander/CHANGELOG.md +0 -440
  341. package/dist/node_modules/fs-extra/CHANGELOG.md +0 -902
  342. package/dist/node_modules/fs-extra/lib/copy-sync/index.js +0 -5
  343. package/dist/node_modules/fs-extra/lib/move-sync/index.js +0 -5
  344. /package/dist/node_modules/fs-extra/lib/{output → output-file}/index.js +0 -0
@@ -1,5 +1,5 @@
1
- declare module 'crypto' {
2
- import * as stream from 'stream';
1
+ declare module "crypto" {
2
+ import * as stream from "stream";
3
3
 
4
4
  interface Certificate {
5
5
  /**
@@ -24,7 +24,7 @@ declare module 'crypto' {
24
24
  }
25
25
  const Certificate: Certificate & {
26
26
  /** @deprecated since v14.9.0 - Use static methods of `crypto.Certificate` instead. */
27
- new (): Certificate;
27
+ new(): Certificate;
28
28
  /** @deprecated since v14.9.0 - Use static methods of `crypto.Certificate` instead. */
29
29
  (): Certificate;
30
30
  };
@@ -140,13 +140,13 @@ declare module 'crypto' {
140
140
  function createHmac(algorithm: string, key: BinaryLike | KeyObject, options?: stream.TransformOptions): Hmac;
141
141
 
142
142
  // https://nodejs.org/api/buffer.html#buffer_buffers_and_character_encodings
143
- type BinaryToTextEncoding = 'base64' | 'base64url' | 'hex';
144
- type CharacterEncoding = 'utf8' | 'utf-8' | 'utf16le' | 'latin1';
145
- type LegacyCharacterEncoding = 'ascii' | 'binary' | 'ucs2' | 'ucs-2';
143
+ type BinaryToTextEncoding = "base64" | "base64url" | "hex";
144
+ type CharacterEncoding = "utf8" | "utf-8" | "utf16le" | "latin1";
145
+ type LegacyCharacterEncoding = "ascii" | "binary" | "ucs2" | "ucs-2";
146
146
 
147
147
  type Encoding = BinaryToTextEncoding | CharacterEncoding | LegacyCharacterEncoding;
148
148
 
149
- type ECDHKeyFormat = 'compressed' | 'uncompressed' | 'hybrid';
149
+ type ECDHKeyFormat = "compressed" | "uncompressed" | "hybrid";
150
150
 
151
151
  class Hash extends stream.Transform {
152
152
  private constructor();
@@ -164,10 +164,10 @@ declare module 'crypto' {
164
164
  digest(encoding: BinaryToTextEncoding): string;
165
165
  }
166
166
 
167
- type KeyObjectType = 'secret' | 'public' | 'private';
167
+ type KeyObjectType = "secret" | "public" | "private";
168
168
 
169
169
  interface KeyExportOptions<T extends KeyFormat> {
170
- type: 'pkcs1' | 'spki' | 'pkcs8' | 'sec1';
170
+ type: "pkcs1" | "spki" | "pkcs8" | "sec1";
171
171
  format: T;
172
172
  cipher?: string | undefined;
173
173
  passphrase?: string | Buffer | undefined;
@@ -181,14 +181,15 @@ declare module 'crypto' {
181
181
  * bytes. This property is `undefined` for symmetric keys.
182
182
  */
183
183
  asymmetricKeySize?: number | undefined;
184
- export(options: KeyExportOptions<'pem'>): string | Buffer;
185
- export(options?: KeyExportOptions<'der'>): Buffer;
184
+ export(options: KeyExportOptions<"pem">): string | Buffer;
185
+ export(options?: KeyExportOptions<"der">): Buffer;
186
186
  symmetricKeySize?: number | undefined;
187
187
  type: KeyObjectType;
188
188
  }
189
189
 
190
- type CipherCCMTypes = 'aes-128-ccm' | 'aes-192-ccm' | 'aes-256-ccm' | 'chacha20-poly1305';
191
- type CipherGCMTypes = 'aes-128-gcm' | 'aes-192-gcm' | 'aes-256-gcm';
190
+ type CipherCCMTypes = "aes-128-ccm" | "aes-192-ccm" | "aes-256-ccm" | "chacha20-poly1305";
191
+ type CipherGCMTypes = "aes-128-gcm" | "aes-192-gcm" | "aes-256-gcm";
192
+ type CipherOCBTypes = "aes-128-ocb" | "aes-192-ocb" | "aes-256-ocb";
192
193
 
193
194
  type BinaryLike = string | NodeJS.ArrayBufferView;
194
195
 
@@ -200,6 +201,9 @@ declare module 'crypto' {
200
201
  interface CipherGCMOptions extends stream.TransformOptions {
201
202
  authTagLength?: number | undefined;
202
203
  }
204
+ interface CipherOCBOptions extends stream.TransformOptions {
205
+ authTagLength: number;
206
+ }
203
207
  /** @deprecated since v10.0.0 use `createCipheriv()` */
204
208
  function createCipher(algorithm: CipherCCMTypes, password: BinaryLike, options: CipherCCMOptions): CipherCCM;
205
209
  /** @deprecated since v10.0.0 use `createCipheriv()` */
@@ -210,13 +214,19 @@ declare module 'crypto' {
210
214
  function createCipheriv(
211
215
  algorithm: CipherCCMTypes,
212
216
  key: CipherKey,
213
- iv: BinaryLike | null,
217
+ iv: BinaryLike,
214
218
  options: CipherCCMOptions,
215
219
  ): CipherCCM;
220
+ function createCipheriv(
221
+ algorithm: CipherOCBTypes,
222
+ key: CipherKey,
223
+ iv: BinaryLike,
224
+ options: CipherOCBOptions,
225
+ ): CipherOCB;
216
226
  function createCipheriv(
217
227
  algorithm: CipherGCMTypes,
218
228
  key: CipherKey,
219
- iv: BinaryLike | null,
229
+ iv: BinaryLike,
220
230
  options?: CipherGCMOptions,
221
231
  ): CipherGCM;
222
232
  function createCipheriv(
@@ -246,6 +256,10 @@ declare module 'crypto' {
246
256
  setAAD(buffer: NodeJS.ArrayBufferView, options?: { plaintextLength: number }): this;
247
257
  getAuthTag(): Buffer;
248
258
  }
259
+ interface CipherOCB extends Cipher {
260
+ setAAD(buffer: NodeJS.ArrayBufferView, options?: { plaintextLength: number }): this;
261
+ getAuthTag(): Buffer;
262
+ }
249
263
  /** @deprecated since v10.0.0 use `createDecipheriv()` */
250
264
  function createDecipher(algorithm: CipherCCMTypes, password: BinaryLike, options: CipherCCMOptions): DecipherCCM;
251
265
  /** @deprecated since v10.0.0 use `createDecipheriv()` */
@@ -256,13 +270,19 @@ declare module 'crypto' {
256
270
  function createDecipheriv(
257
271
  algorithm: CipherCCMTypes,
258
272
  key: CipherKey,
259
- iv: BinaryLike | null,
273
+ iv: BinaryLike,
260
274
  options: CipherCCMOptions,
261
275
  ): DecipherCCM;
276
+ function createDecipheriv(
277
+ algorithm: CipherOCBTypes,
278
+ key: CipherKey,
279
+ iv: BinaryLike,
280
+ options: CipherOCBOptions,
281
+ ): DecipherOCB;
262
282
  function createDecipheriv(
263
283
  algorithm: CipherGCMTypes,
264
284
  key: CipherKey,
265
- iv: BinaryLike | null,
285
+ iv: BinaryLike,
266
286
  options?: CipherGCMOptions,
267
287
  ): DecipherGCM;
268
288
  function createDecipheriv(
@@ -292,31 +312,35 @@ declare module 'crypto' {
292
312
  setAuthTag(buffer: NodeJS.ArrayBufferView): this;
293
313
  setAAD(buffer: NodeJS.ArrayBufferView, options?: { plaintextLength: number }): this;
294
314
  }
315
+ interface DecipherOCB extends Decipher {
316
+ setAuthTag(buffer: NodeJS.ArrayBufferView): this;
317
+ setAAD(buffer: NodeJS.ArrayBufferView, options?: { plaintextLength: number }): this;
318
+ }
295
319
 
296
320
  interface PrivateKeyInput {
297
321
  key: string | Buffer;
298
322
  format?: KeyFormat | undefined;
299
- type?: 'pkcs1' | 'pkcs8' | 'sec1' | undefined;
323
+ type?: "pkcs1" | "pkcs8" | "sec1" | undefined;
300
324
  passphrase?: string | Buffer | undefined;
301
325
  }
302
326
 
303
327
  interface PublicKeyInput {
304
328
  key: string | Buffer;
305
329
  format?: KeyFormat | undefined;
306
- type?: 'pkcs1' | 'spki' | undefined;
330
+ type?: "pkcs1" | "spki" | undefined;
307
331
  }
308
332
 
309
333
  function createPrivateKey(key: PrivateKeyInput | string | Buffer): KeyObject;
310
334
  function createPublicKey(key: PublicKeyInput | string | Buffer | KeyObject): KeyObject;
311
335
  function createSecretKey(key: NodeJS.ArrayBufferView): KeyObject;
312
336
 
313
- function createSign(algorithm: string, options?: stream.WritableOptions): Signer;
337
+ function createSign(algorithm: string, options?: stream.WritableOptions): Sign;
314
338
 
315
- type DSAEncoding = 'der' | 'ieee-p1363';
339
+ type DSAEncoding = "der" | "ieee-p1363";
316
340
 
317
341
  interface SigningOptions {
318
342
  /**
319
- * @See crypto.constants.RSA_PKCS1_PADDING
343
+ * @see crypto.constants.RSA_PKCS1_PADDING
320
344
  */
321
345
  padding?: number | undefined;
322
346
  saltLength?: number | undefined;
@@ -334,11 +358,11 @@ declare module 'crypto' {
334
358
 
335
359
  type KeyLike = string | Buffer | KeyObject;
336
360
 
337
- class Signer extends stream.Writable {
361
+ class Sign extends stream.Writable {
338
362
  private constructor();
339
363
 
340
- update(data: BinaryLike): Signer;
341
- update(data: string, input_encoding: Encoding): Signer;
364
+ update(data: BinaryLike): Sign;
365
+ update(data: string, input_encoding: Encoding): Sign;
342
366
  sign(private_key: KeyLike | SignKeyObjectInput | SignPrivateKeyInput): Buffer;
343
367
  sign(
344
368
  private_key: KeyLike | SignKeyObjectInput | SignPrivateKeyInput,
@@ -382,9 +406,13 @@ declare module 'crypto' {
382
406
  private constructor();
383
407
  generateKeys(): Buffer;
384
408
  generateKeys(encoding: BinaryToTextEncoding): string;
385
- computeSecret(other_public_key: NodeJS.ArrayBufferView): Buffer;
386
- computeSecret(other_public_key: string, input_encoding: BinaryToTextEncoding): Buffer;
387
- computeSecret(other_public_key: NodeJS.ArrayBufferView, output_encoding: BinaryToTextEncoding): string;
409
+ computeSecret(otherPublicKey: NodeJS.ArrayBufferView, inputEncoding?: null, outputEncoding?: null): Buffer;
410
+ computeSecret(otherPublicKey: string, inputEncoding: BinaryToTextEncoding, outputEncoding?: null): Buffer;
411
+ computeSecret(
412
+ otherPublicKey: NodeJS.ArrayBufferView,
413
+ inputEncoding: null,
414
+ outputEncoding: BinaryToTextEncoding,
415
+ ): string;
388
416
  computeSecret(
389
417
  other_public_key: string,
390
418
  input_encoding: BinaryToTextEncoding,
@@ -404,7 +432,42 @@ declare module 'crypto' {
404
432
  setPrivateKey(private_key: string, encoding: BufferEncoding): void;
405
433
  verifyError: number;
406
434
  }
407
- function getDiffieHellman(group_name: string): DiffieHellman;
435
+ /**
436
+ * The `DiffieHellmanGroup` class takes a well-known modp group as its argument.
437
+ * It works the same as `DiffieHellman`, except that it does not allow changing its keys after creation.
438
+ * In other words, it does not implement `setPublicKey()` or `setPrivateKey()` methods.
439
+ *
440
+ * ```js
441
+ * const { createDiffieHellmanGroup } = await import('node:crypto');
442
+ * const dh = createDiffieHellmanGroup('modp1');
443
+ * ```
444
+ * The name (e.g. `'modp1'`) is taken from [RFC 2412](https://www.rfc-editor.org/rfc/rfc2412.txt) (modp1 and 2) and [RFC 3526](https://www.rfc-editor.org/rfc/rfc3526.txt):
445
+ * ```bash
446
+ * $ perl -ne 'print "$1\n" if /"(modp\d+)"/' src/node_crypto_groups.h
447
+ * modp1 # 768 bits
448
+ * modp2 # 1024 bits
449
+ * modp5 # 1536 bits
450
+ * modp14 # 2048 bits
451
+ * modp15 # etc.
452
+ * modp16
453
+ * modp17
454
+ * modp18
455
+ * ```
456
+ * @since v0.7.5
457
+ */
458
+ const DiffieHellmanGroup: DiffieHellmanGroupConstructor;
459
+ interface DiffieHellmanGroupConstructor {
460
+ new(name: string): DiffieHellmanGroup;
461
+ (name: string): DiffieHellmanGroup;
462
+ readonly prototype: DiffieHellmanGroup;
463
+ }
464
+ type DiffieHellmanGroup = Omit<DiffieHellman, "setPublicKey" | "setPrivateKey">;
465
+ function getDiffieHellman(groupName: string): DiffieHellmanGroup;
466
+ /**
467
+ * An alias for {@link getDiffieHellman}
468
+ * @since v0.9.3
469
+ */
470
+ function createDiffieHellmanGroup(name: string): DiffieHellmanGroup;
408
471
  function pbkdf2(
409
472
  password: BinaryLike,
410
473
  salt: BinaryLike,
@@ -459,8 +522,8 @@ declare module 'crypto' {
459
522
  */
460
523
  disableEntropyCache?: boolean | undefined;
461
524
  }
462
-
463
- function randomUUID(options?: RandomUUIDOptions): string;
525
+ type UUID = `${string}-${string}-${string}-${string}-${string}`;
526
+ function randomUUID(options?: RandomUUIDOptions): UUID;
464
527
 
465
528
  interface ScryptOptions {
466
529
  cost?: number | undefined;
@@ -507,6 +570,12 @@ declare module 'crypto' {
507
570
  function getCiphers(): string[];
508
571
  function getCurves(): string[];
509
572
  function getFips(): 1 | 0;
573
+ /**
574
+ * Enables the FIPS compliant crypto provider in a FIPS-enabled Node.js build. Throws an error if FIPS mode is not available.
575
+ * @since v10.0.0
576
+ * @param bool `true` to enable FIPS mode.
577
+ */
578
+ function setFips(bool: boolean): void;
510
579
  function getHashes(): string[];
511
580
  class ECDH {
512
581
  private constructor();
@@ -514,8 +583,8 @@ declare module 'crypto' {
514
583
  key: BinaryLike,
515
584
  curve: string,
516
585
  inputEncoding?: BinaryToTextEncoding,
517
- outputEncoding?: 'latin1' | 'hex' | 'base64' | 'base64url',
518
- format?: 'uncompressed' | 'compressed' | 'hybrid',
586
+ outputEncoding?: "latin1" | "hex" | "base64" | "base64url",
587
+ format?: "uncompressed" | "compressed" | "hybrid",
519
588
  ): Buffer | string;
520
589
  generateKeys(): Buffer;
521
590
  generateKeys(encoding: BinaryToTextEncoding, format?: ECDHKeyFormat): string;
@@ -539,8 +608,8 @@ declare module 'crypto' {
539
608
  /** @deprecated since v10.0.0 */
540
609
  const DEFAULT_ENCODING: BufferEncoding;
541
610
 
542
- type KeyType = 'rsa' | 'dsa' | 'ec' | 'ed25519' | 'ed448' | 'x25519' | 'x448';
543
- type KeyFormat = 'pem' | 'der';
611
+ type KeyType = "rsa" | "dsa" | "ec" | "ed25519" | "ed448" | "x25519" | "x448";
612
+ type KeyFormat = "pem" | "der";
544
613
 
545
614
  interface BasePrivateKeyEncodingOptions<T extends KeyFormat> {
546
615
  format: T;
@@ -619,11 +688,11 @@ declare module 'crypto' {
619
688
  publicExponent?: number | undefined;
620
689
 
621
690
  publicKeyEncoding: {
622
- type: 'pkcs1' | 'spki';
691
+ type: "pkcs1" | "spki";
623
692
  format: PubF;
624
693
  };
625
694
  privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
626
- type: 'pkcs1' | 'pkcs8';
695
+ type: "pkcs1" | "pkcs8";
627
696
  };
628
697
  }
629
698
 
@@ -638,11 +707,11 @@ declare module 'crypto' {
638
707
  divisorLength: number;
639
708
 
640
709
  publicKeyEncoding: {
641
- type: 'spki';
710
+ type: "spki";
642
711
  format: PubF;
643
712
  };
644
713
  privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
645
- type: 'pkcs8';
714
+ type: "pkcs8";
646
715
  };
647
716
  }
648
717
 
@@ -653,51 +722,51 @@ declare module 'crypto' {
653
722
  namedCurve: string;
654
723
 
655
724
  publicKeyEncoding: {
656
- type: 'pkcs1' | 'spki';
725
+ type: "pkcs1" | "spki";
657
726
  format: PubF;
658
727
  };
659
728
  privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
660
- type: 'sec1' | 'pkcs8';
729
+ type: "sec1" | "pkcs8";
661
730
  };
662
731
  }
663
732
 
664
733
  interface ED25519KeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> {
665
734
  publicKeyEncoding: {
666
- type: 'spki';
735
+ type: "spki";
667
736
  format: PubF;
668
737
  };
669
738
  privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
670
- type: 'pkcs8';
739
+ type: "pkcs8";
671
740
  };
672
741
  }
673
742
 
674
743
  interface ED448KeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> {
675
744
  publicKeyEncoding: {
676
- type: 'spki';
745
+ type: "spki";
677
746
  format: PubF;
678
747
  };
679
748
  privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
680
- type: 'pkcs8';
749
+ type: "pkcs8";
681
750
  };
682
751
  }
683
752
 
684
753
  interface X25519KeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> {
685
754
  publicKeyEncoding: {
686
- type: 'spki';
755
+ type: "spki";
687
756
  format: PubF;
688
757
  };
689
758
  privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
690
- type: 'pkcs8';
759
+ type: "pkcs8";
691
760
  };
692
761
  }
693
762
 
694
763
  interface X448KeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> {
695
764
  publicKeyEncoding: {
696
- type: 'spki';
765
+ type: "spki";
697
766
  format: PubF;
698
767
  };
699
768
  privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
700
- type: 'pkcs8';
769
+ type: "pkcs8";
701
770
  };
702
771
  }
703
772
 
@@ -707,445 +776,445 @@ declare module 'crypto' {
707
776
  }
708
777
 
709
778
  function generateKeyPairSync(
710
- type: 'rsa',
711
- options: RSAKeyPairOptions<'pem', 'pem'>,
779
+ type: "rsa",
780
+ options: RSAKeyPairOptions<"pem", "pem">,
712
781
  ): KeyPairSyncResult<string, string>;
713
782
  function generateKeyPairSync(
714
- type: 'rsa',
715
- options: RSAKeyPairOptions<'pem', 'der'>,
783
+ type: "rsa",
784
+ options: RSAKeyPairOptions<"pem", "der">,
716
785
  ): KeyPairSyncResult<string, Buffer>;
717
786
  function generateKeyPairSync(
718
- type: 'rsa',
719
- options: RSAKeyPairOptions<'der', 'pem'>,
787
+ type: "rsa",
788
+ options: RSAKeyPairOptions<"der", "pem">,
720
789
  ): KeyPairSyncResult<Buffer, string>;
721
790
  function generateKeyPairSync(
722
- type: 'rsa',
723
- options: RSAKeyPairOptions<'der', 'der'>,
791
+ type: "rsa",
792
+ options: RSAKeyPairOptions<"der", "der">,
724
793
  ): KeyPairSyncResult<Buffer, Buffer>;
725
- function generateKeyPairSync(type: 'rsa', options: RSAKeyPairKeyObjectOptions): KeyPairKeyObjectResult;
794
+ function generateKeyPairSync(type: "rsa", options: RSAKeyPairKeyObjectOptions): KeyPairKeyObjectResult;
726
795
 
727
796
  function generateKeyPairSync(
728
- type: 'dsa',
729
- options: DSAKeyPairOptions<'pem', 'pem'>,
797
+ type: "dsa",
798
+ options: DSAKeyPairOptions<"pem", "pem">,
730
799
  ): KeyPairSyncResult<string, string>;
731
800
  function generateKeyPairSync(
732
- type: 'dsa',
733
- options: DSAKeyPairOptions<'pem', 'der'>,
801
+ type: "dsa",
802
+ options: DSAKeyPairOptions<"pem", "der">,
734
803
  ): KeyPairSyncResult<string, Buffer>;
735
804
  function generateKeyPairSync(
736
- type: 'dsa',
737
- options: DSAKeyPairOptions<'der', 'pem'>,
805
+ type: "dsa",
806
+ options: DSAKeyPairOptions<"der", "pem">,
738
807
  ): KeyPairSyncResult<Buffer, string>;
739
808
  function generateKeyPairSync(
740
- type: 'dsa',
741
- options: DSAKeyPairOptions<'der', 'der'>,
809
+ type: "dsa",
810
+ options: DSAKeyPairOptions<"der", "der">,
742
811
  ): KeyPairSyncResult<Buffer, Buffer>;
743
- function generateKeyPairSync(type: 'dsa', options: DSAKeyPairKeyObjectOptions): KeyPairKeyObjectResult;
812
+ function generateKeyPairSync(type: "dsa", options: DSAKeyPairKeyObjectOptions): KeyPairKeyObjectResult;
744
813
 
745
814
  function generateKeyPairSync(
746
- type: 'ec',
747
- options: ECKeyPairOptions<'pem', 'pem'>,
815
+ type: "ec",
816
+ options: ECKeyPairOptions<"pem", "pem">,
748
817
  ): KeyPairSyncResult<string, string>;
749
818
  function generateKeyPairSync(
750
- type: 'ec',
751
- options: ECKeyPairOptions<'pem', 'der'>,
819
+ type: "ec",
820
+ options: ECKeyPairOptions<"pem", "der">,
752
821
  ): KeyPairSyncResult<string, Buffer>;
753
822
  function generateKeyPairSync(
754
- type: 'ec',
755
- options: ECKeyPairOptions<'der', 'pem'>,
823
+ type: "ec",
824
+ options: ECKeyPairOptions<"der", "pem">,
756
825
  ): KeyPairSyncResult<Buffer, string>;
757
826
  function generateKeyPairSync(
758
- type: 'ec',
759
- options: ECKeyPairOptions<'der', 'der'>,
827
+ type: "ec",
828
+ options: ECKeyPairOptions<"der", "der">,
760
829
  ): KeyPairSyncResult<Buffer, Buffer>;
761
- function generateKeyPairSync(type: 'ec', options: ECKeyPairKeyObjectOptions): KeyPairKeyObjectResult;
830
+ function generateKeyPairSync(type: "ec", options: ECKeyPairKeyObjectOptions): KeyPairKeyObjectResult;
762
831
 
763
832
  function generateKeyPairSync(
764
- type: 'ed25519',
765
- options: ED25519KeyPairOptions<'pem', 'pem'>,
833
+ type: "ed25519",
834
+ options: ED25519KeyPairOptions<"pem", "pem">,
766
835
  ): KeyPairSyncResult<string, string>;
767
836
  function generateKeyPairSync(
768
- type: 'ed25519',
769
- options: ED25519KeyPairOptions<'pem', 'der'>,
837
+ type: "ed25519",
838
+ options: ED25519KeyPairOptions<"pem", "der">,
770
839
  ): KeyPairSyncResult<string, Buffer>;
771
840
  function generateKeyPairSync(
772
- type: 'ed25519',
773
- options: ED25519KeyPairOptions<'der', 'pem'>,
841
+ type: "ed25519",
842
+ options: ED25519KeyPairOptions<"der", "pem">,
774
843
  ): KeyPairSyncResult<Buffer, string>;
775
844
  function generateKeyPairSync(
776
- type: 'ed25519',
777
- options: ED25519KeyPairOptions<'der', 'der'>,
845
+ type: "ed25519",
846
+ options: ED25519KeyPairOptions<"der", "der">,
778
847
  ): KeyPairSyncResult<Buffer, Buffer>;
779
- function generateKeyPairSync(type: 'ed25519', options?: ED25519KeyPairKeyObjectOptions): KeyPairKeyObjectResult;
848
+ function generateKeyPairSync(type: "ed25519", options?: ED25519KeyPairKeyObjectOptions): KeyPairKeyObjectResult;
780
849
 
781
850
  function generateKeyPairSync(
782
- type: 'ed448',
783
- options: ED448KeyPairOptions<'pem', 'pem'>,
851
+ type: "ed448",
852
+ options: ED448KeyPairOptions<"pem", "pem">,
784
853
  ): KeyPairSyncResult<string, string>;
785
854
  function generateKeyPairSync(
786
- type: 'ed448',
787
- options: ED448KeyPairOptions<'pem', 'der'>,
855
+ type: "ed448",
856
+ options: ED448KeyPairOptions<"pem", "der">,
788
857
  ): KeyPairSyncResult<string, Buffer>;
789
858
  function generateKeyPairSync(
790
- type: 'ed448',
791
- options: ED448KeyPairOptions<'der', 'pem'>,
859
+ type: "ed448",
860
+ options: ED448KeyPairOptions<"der", "pem">,
792
861
  ): KeyPairSyncResult<Buffer, string>;
793
862
  function generateKeyPairSync(
794
- type: 'ed448',
795
- options: ED448KeyPairOptions<'der', 'der'>,
863
+ type: "ed448",
864
+ options: ED448KeyPairOptions<"der", "der">,
796
865
  ): KeyPairSyncResult<Buffer, Buffer>;
797
- function generateKeyPairSync(type: 'ed448', options?: ED448KeyPairKeyObjectOptions): KeyPairKeyObjectResult;
866
+ function generateKeyPairSync(type: "ed448", options?: ED448KeyPairKeyObjectOptions): KeyPairKeyObjectResult;
798
867
 
799
868
  function generateKeyPairSync(
800
- type: 'x25519',
801
- options: X25519KeyPairOptions<'pem', 'pem'>,
869
+ type: "x25519",
870
+ options: X25519KeyPairOptions<"pem", "pem">,
802
871
  ): KeyPairSyncResult<string, string>;
803
872
  function generateKeyPairSync(
804
- type: 'x25519',
805
- options: X25519KeyPairOptions<'pem', 'der'>,
873
+ type: "x25519",
874
+ options: X25519KeyPairOptions<"pem", "der">,
806
875
  ): KeyPairSyncResult<string, Buffer>;
807
876
  function generateKeyPairSync(
808
- type: 'x25519',
809
- options: X25519KeyPairOptions<'der', 'pem'>,
877
+ type: "x25519",
878
+ options: X25519KeyPairOptions<"der", "pem">,
810
879
  ): KeyPairSyncResult<Buffer, string>;
811
880
  function generateKeyPairSync(
812
- type: 'x25519',
813
- options: X25519KeyPairOptions<'der', 'der'>,
881
+ type: "x25519",
882
+ options: X25519KeyPairOptions<"der", "der">,
814
883
  ): KeyPairSyncResult<Buffer, Buffer>;
815
- function generateKeyPairSync(type: 'x25519', options?: X25519KeyPairKeyObjectOptions): KeyPairKeyObjectResult;
884
+ function generateKeyPairSync(type: "x25519", options?: X25519KeyPairKeyObjectOptions): KeyPairKeyObjectResult;
816
885
 
817
886
  function generateKeyPairSync(
818
- type: 'x448',
819
- options: X448KeyPairOptions<'pem', 'pem'>,
887
+ type: "x448",
888
+ options: X448KeyPairOptions<"pem", "pem">,
820
889
  ): KeyPairSyncResult<string, string>;
821
890
  function generateKeyPairSync(
822
- type: 'x448',
823
- options: X448KeyPairOptions<'pem', 'der'>,
891
+ type: "x448",
892
+ options: X448KeyPairOptions<"pem", "der">,
824
893
  ): KeyPairSyncResult<string, Buffer>;
825
894
  function generateKeyPairSync(
826
- type: 'x448',
827
- options: X448KeyPairOptions<'der', 'pem'>,
895
+ type: "x448",
896
+ options: X448KeyPairOptions<"der", "pem">,
828
897
  ): KeyPairSyncResult<Buffer, string>;
829
898
  function generateKeyPairSync(
830
- type: 'x448',
831
- options: X448KeyPairOptions<'der', 'der'>,
899
+ type: "x448",
900
+ options: X448KeyPairOptions<"der", "der">,
832
901
  ): KeyPairSyncResult<Buffer, Buffer>;
833
- function generateKeyPairSync(type: 'x448', options?: X448KeyPairKeyObjectOptions): KeyPairKeyObjectResult;
902
+ function generateKeyPairSync(type: "x448", options?: X448KeyPairKeyObjectOptions): KeyPairKeyObjectResult;
834
903
 
835
904
  function generateKeyPair(
836
- type: 'rsa',
837
- options: RSAKeyPairOptions<'pem', 'pem'>,
905
+ type: "rsa",
906
+ options: RSAKeyPairOptions<"pem", "pem">,
838
907
  callback: (err: Error | null, publicKey: string, privateKey: string) => void,
839
908
  ): void;
840
909
  function generateKeyPair(
841
- type: 'rsa',
842
- options: RSAKeyPairOptions<'pem', 'der'>,
910
+ type: "rsa",
911
+ options: RSAKeyPairOptions<"pem", "der">,
843
912
  callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void,
844
913
  ): void;
845
914
  function generateKeyPair(
846
- type: 'rsa',
847
- options: RSAKeyPairOptions<'der', 'pem'>,
915
+ type: "rsa",
916
+ options: RSAKeyPairOptions<"der", "pem">,
848
917
  callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void,
849
918
  ): void;
850
919
  function generateKeyPair(
851
- type: 'rsa',
852
- options: RSAKeyPairOptions<'der', 'der'>,
920
+ type: "rsa",
921
+ options: RSAKeyPairOptions<"der", "der">,
853
922
  callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void,
854
923
  ): void;
855
924
  function generateKeyPair(
856
- type: 'rsa',
925
+ type: "rsa",
857
926
  options: RSAKeyPairKeyObjectOptions,
858
927
  callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void,
859
928
  ): void;
860
929
 
861
930
  function generateKeyPair(
862
- type: 'dsa',
863
- options: DSAKeyPairOptions<'pem', 'pem'>,
931
+ type: "dsa",
932
+ options: DSAKeyPairOptions<"pem", "pem">,
864
933
  callback: (err: Error | null, publicKey: string, privateKey: string) => void,
865
934
  ): void;
866
935
  function generateKeyPair(
867
- type: 'dsa',
868
- options: DSAKeyPairOptions<'pem', 'der'>,
936
+ type: "dsa",
937
+ options: DSAKeyPairOptions<"pem", "der">,
869
938
  callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void,
870
939
  ): void;
871
940
  function generateKeyPair(
872
- type: 'dsa',
873
- options: DSAKeyPairOptions<'der', 'pem'>,
941
+ type: "dsa",
942
+ options: DSAKeyPairOptions<"der", "pem">,
874
943
  callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void,
875
944
  ): void;
876
945
  function generateKeyPair(
877
- type: 'dsa',
878
- options: DSAKeyPairOptions<'der', 'der'>,
946
+ type: "dsa",
947
+ options: DSAKeyPairOptions<"der", "der">,
879
948
  callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void,
880
949
  ): void;
881
950
  function generateKeyPair(
882
- type: 'dsa',
951
+ type: "dsa",
883
952
  options: DSAKeyPairKeyObjectOptions,
884
953
  callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void,
885
954
  ): void;
886
955
 
887
956
  function generateKeyPair(
888
- type: 'ec',
889
- options: ECKeyPairOptions<'pem', 'pem'>,
957
+ type: "ec",
958
+ options: ECKeyPairOptions<"pem", "pem">,
890
959
  callback: (err: Error | null, publicKey: string, privateKey: string) => void,
891
960
  ): void;
892
961
  function generateKeyPair(
893
- type: 'ec',
894
- options: ECKeyPairOptions<'pem', 'der'>,
962
+ type: "ec",
963
+ options: ECKeyPairOptions<"pem", "der">,
895
964
  callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void,
896
965
  ): void;
897
966
  function generateKeyPair(
898
- type: 'ec',
899
- options: ECKeyPairOptions<'der', 'pem'>,
967
+ type: "ec",
968
+ options: ECKeyPairOptions<"der", "pem">,
900
969
  callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void,
901
970
  ): void;
902
971
  function generateKeyPair(
903
- type: 'ec',
904
- options: ECKeyPairOptions<'der', 'der'>,
972
+ type: "ec",
973
+ options: ECKeyPairOptions<"der", "der">,
905
974
  callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void,
906
975
  ): void;
907
976
  function generateKeyPair(
908
- type: 'ec',
977
+ type: "ec",
909
978
  options: ECKeyPairKeyObjectOptions,
910
979
  callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void,
911
980
  ): void;
912
981
 
913
982
  function generateKeyPair(
914
- type: 'ed25519',
915
- options: ED25519KeyPairOptions<'pem', 'pem'>,
983
+ type: "ed25519",
984
+ options: ED25519KeyPairOptions<"pem", "pem">,
916
985
  callback: (err: Error | null, publicKey: string, privateKey: string) => void,
917
986
  ): void;
918
987
  function generateKeyPair(
919
- type: 'ed25519',
920
- options: ED25519KeyPairOptions<'pem', 'der'>,
988
+ type: "ed25519",
989
+ options: ED25519KeyPairOptions<"pem", "der">,
921
990
  callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void,
922
991
  ): void;
923
992
  function generateKeyPair(
924
- type: 'ed25519',
925
- options: ED25519KeyPairOptions<'der', 'pem'>,
993
+ type: "ed25519",
994
+ options: ED25519KeyPairOptions<"der", "pem">,
926
995
  callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void,
927
996
  ): void;
928
997
  function generateKeyPair(
929
- type: 'ed25519',
930
- options: ED25519KeyPairOptions<'der', 'der'>,
998
+ type: "ed25519",
999
+ options: ED25519KeyPairOptions<"der", "der">,
931
1000
  callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void,
932
1001
  ): void;
933
1002
  function generateKeyPair(
934
- type: 'ed25519',
1003
+ type: "ed25519",
935
1004
  options: ED25519KeyPairKeyObjectOptions | undefined,
936
1005
  callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void,
937
1006
  ): void;
938
1007
 
939
1008
  function generateKeyPair(
940
- type: 'ed448',
941
- options: ED448KeyPairOptions<'pem', 'pem'>,
1009
+ type: "ed448",
1010
+ options: ED448KeyPairOptions<"pem", "pem">,
942
1011
  callback: (err: Error | null, publicKey: string, privateKey: string) => void,
943
1012
  ): void;
944
1013
  function generateKeyPair(
945
- type: 'ed448',
946
- options: ED448KeyPairOptions<'pem', 'der'>,
1014
+ type: "ed448",
1015
+ options: ED448KeyPairOptions<"pem", "der">,
947
1016
  callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void,
948
1017
  ): void;
949
1018
  function generateKeyPair(
950
- type: 'ed448',
951
- options: ED448KeyPairOptions<'der', 'pem'>,
1019
+ type: "ed448",
1020
+ options: ED448KeyPairOptions<"der", "pem">,
952
1021
  callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void,
953
1022
  ): void;
954
1023
  function generateKeyPair(
955
- type: 'ed448',
956
- options: ED448KeyPairOptions<'der', 'der'>,
1024
+ type: "ed448",
1025
+ options: ED448KeyPairOptions<"der", "der">,
957
1026
  callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void,
958
1027
  ): void;
959
1028
  function generateKeyPair(
960
- type: 'ed448',
1029
+ type: "ed448",
961
1030
  options: ED448KeyPairKeyObjectOptions | undefined,
962
1031
  callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void,
963
1032
  ): void;
964
1033
 
965
1034
  function generateKeyPair(
966
- type: 'x25519',
967
- options: X25519KeyPairOptions<'pem', 'pem'>,
1035
+ type: "x25519",
1036
+ options: X25519KeyPairOptions<"pem", "pem">,
968
1037
  callback: (err: Error | null, publicKey: string, privateKey: string) => void,
969
1038
  ): void;
970
1039
  function generateKeyPair(
971
- type: 'x25519',
972
- options: X25519KeyPairOptions<'pem', 'der'>,
1040
+ type: "x25519",
1041
+ options: X25519KeyPairOptions<"pem", "der">,
973
1042
  callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void,
974
1043
  ): void;
975
1044
  function generateKeyPair(
976
- type: 'x25519',
977
- options: X25519KeyPairOptions<'der', 'pem'>,
1045
+ type: "x25519",
1046
+ options: X25519KeyPairOptions<"der", "pem">,
978
1047
  callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void,
979
1048
  ): void;
980
1049
  function generateKeyPair(
981
- type: 'x25519',
982
- options: X25519KeyPairOptions<'der', 'der'>,
1050
+ type: "x25519",
1051
+ options: X25519KeyPairOptions<"der", "der">,
983
1052
  callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void,
984
1053
  ): void;
985
1054
  function generateKeyPair(
986
- type: 'x25519',
1055
+ type: "x25519",
987
1056
  options: X25519KeyPairKeyObjectOptions | undefined,
988
1057
  callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void,
989
1058
  ): void;
990
1059
 
991
1060
  function generateKeyPair(
992
- type: 'x448',
993
- options: X448KeyPairOptions<'pem', 'pem'>,
1061
+ type: "x448",
1062
+ options: X448KeyPairOptions<"pem", "pem">,
994
1063
  callback: (err: Error | null, publicKey: string, privateKey: string) => void,
995
1064
  ): void;
996
1065
  function generateKeyPair(
997
- type: 'x448',
998
- options: X448KeyPairOptions<'pem', 'der'>,
1066
+ type: "x448",
1067
+ options: X448KeyPairOptions<"pem", "der">,
999
1068
  callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void,
1000
1069
  ): void;
1001
1070
  function generateKeyPair(
1002
- type: 'x448',
1003
- options: X448KeyPairOptions<'der', 'pem'>,
1071
+ type: "x448",
1072
+ options: X448KeyPairOptions<"der", "pem">,
1004
1073
  callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void,
1005
1074
  ): void;
1006
1075
  function generateKeyPair(
1007
- type: 'x448',
1008
- options: X448KeyPairOptions<'der', 'der'>,
1076
+ type: "x448",
1077
+ options: X448KeyPairOptions<"der", "der">,
1009
1078
  callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void,
1010
1079
  ): void;
1011
1080
  function generateKeyPair(
1012
- type: 'x448',
1081
+ type: "x448",
1013
1082
  options: X448KeyPairKeyObjectOptions | undefined,
1014
1083
  callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void,
1015
1084
  ): void;
1016
1085
 
1017
1086
  namespace generateKeyPair {
1018
1087
  function __promisify__(
1019
- type: 'rsa',
1020
- options: RSAKeyPairOptions<'pem', 'pem'>,
1088
+ type: "rsa",
1089
+ options: RSAKeyPairOptions<"pem", "pem">,
1021
1090
  ): Promise<{ publicKey: string; privateKey: string }>;
1022
1091
  function __promisify__(
1023
- type: 'rsa',
1024
- options: RSAKeyPairOptions<'pem', 'der'>,
1092
+ type: "rsa",
1093
+ options: RSAKeyPairOptions<"pem", "der">,
1025
1094
  ): Promise<{ publicKey: string; privateKey: Buffer }>;
1026
1095
  function __promisify__(
1027
- type: 'rsa',
1028
- options: RSAKeyPairOptions<'der', 'pem'>,
1096
+ type: "rsa",
1097
+ options: RSAKeyPairOptions<"der", "pem">,
1029
1098
  ): Promise<{ publicKey: Buffer; privateKey: string }>;
1030
1099
  function __promisify__(
1031
- type: 'rsa',
1032
- options: RSAKeyPairOptions<'der', 'der'>,
1100
+ type: "rsa",
1101
+ options: RSAKeyPairOptions<"der", "der">,
1033
1102
  ): Promise<{ publicKey: Buffer; privateKey: Buffer }>;
1034
- function __promisify__(type: 'rsa', options: RSAKeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>;
1103
+ function __promisify__(type: "rsa", options: RSAKeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>;
1035
1104
 
1036
1105
  function __promisify__(
1037
- type: 'dsa',
1038
- options: DSAKeyPairOptions<'pem', 'pem'>,
1106
+ type: "dsa",
1107
+ options: DSAKeyPairOptions<"pem", "pem">,
1039
1108
  ): Promise<{ publicKey: string; privateKey: string }>;
1040
1109
  function __promisify__(
1041
- type: 'dsa',
1042
- options: DSAKeyPairOptions<'pem', 'der'>,
1110
+ type: "dsa",
1111
+ options: DSAKeyPairOptions<"pem", "der">,
1043
1112
  ): Promise<{ publicKey: string; privateKey: Buffer }>;
1044
1113
  function __promisify__(
1045
- type: 'dsa',
1046
- options: DSAKeyPairOptions<'der', 'pem'>,
1114
+ type: "dsa",
1115
+ options: DSAKeyPairOptions<"der", "pem">,
1047
1116
  ): Promise<{ publicKey: Buffer; privateKey: string }>;
1048
1117
  function __promisify__(
1049
- type: 'dsa',
1050
- options: DSAKeyPairOptions<'der', 'der'>,
1118
+ type: "dsa",
1119
+ options: DSAKeyPairOptions<"der", "der">,
1051
1120
  ): Promise<{ publicKey: Buffer; privateKey: Buffer }>;
1052
- function __promisify__(type: 'dsa', options: DSAKeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>;
1121
+ function __promisify__(type: "dsa", options: DSAKeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>;
1053
1122
 
1054
1123
  function __promisify__(
1055
- type: 'ec',
1056
- options: ECKeyPairOptions<'pem', 'pem'>,
1124
+ type: "ec",
1125
+ options: ECKeyPairOptions<"pem", "pem">,
1057
1126
  ): Promise<{ publicKey: string; privateKey: string }>;
1058
1127
  function __promisify__(
1059
- type: 'ec',
1060
- options: ECKeyPairOptions<'pem', 'der'>,
1128
+ type: "ec",
1129
+ options: ECKeyPairOptions<"pem", "der">,
1061
1130
  ): Promise<{ publicKey: string; privateKey: Buffer }>;
1062
1131
  function __promisify__(
1063
- type: 'ec',
1064
- options: ECKeyPairOptions<'der', 'pem'>,
1132
+ type: "ec",
1133
+ options: ECKeyPairOptions<"der", "pem">,
1065
1134
  ): Promise<{ publicKey: Buffer; privateKey: string }>;
1066
1135
  function __promisify__(
1067
- type: 'ec',
1068
- options: ECKeyPairOptions<'der', 'der'>,
1136
+ type: "ec",
1137
+ options: ECKeyPairOptions<"der", "der">,
1069
1138
  ): Promise<{ publicKey: Buffer; privateKey: Buffer }>;
1070
- function __promisify__(type: 'ec', options: ECKeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>;
1139
+ function __promisify__(type: "ec", options: ECKeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>;
1071
1140
 
1072
1141
  function __promisify__(
1073
- type: 'ed25519',
1074
- options: ED25519KeyPairOptions<'pem', 'pem'>,
1142
+ type: "ed25519",
1143
+ options: ED25519KeyPairOptions<"pem", "pem">,
1075
1144
  ): Promise<{ publicKey: string; privateKey: string }>;
1076
1145
  function __promisify__(
1077
- type: 'ed25519',
1078
- options: ED25519KeyPairOptions<'pem', 'der'>,
1146
+ type: "ed25519",
1147
+ options: ED25519KeyPairOptions<"pem", "der">,
1079
1148
  ): Promise<{ publicKey: string; privateKey: Buffer }>;
1080
1149
  function __promisify__(
1081
- type: 'ed25519',
1082
- options: ED25519KeyPairOptions<'der', 'pem'>,
1150
+ type: "ed25519",
1151
+ options: ED25519KeyPairOptions<"der", "pem">,
1083
1152
  ): Promise<{ publicKey: Buffer; privateKey: string }>;
1084
1153
  function __promisify__(
1085
- type: 'ed25519',
1086
- options: ED25519KeyPairOptions<'der', 'der'>,
1154
+ type: "ed25519",
1155
+ options: ED25519KeyPairOptions<"der", "der">,
1087
1156
  ): Promise<{ publicKey: Buffer; privateKey: Buffer }>;
1088
1157
  function __promisify__(
1089
- type: 'ed25519',
1158
+ type: "ed25519",
1090
1159
  options?: ED25519KeyPairKeyObjectOptions,
1091
1160
  ): Promise<KeyPairKeyObjectResult>;
1092
1161
 
1093
1162
  function __promisify__(
1094
- type: 'ed448',
1095
- options: ED448KeyPairOptions<'pem', 'pem'>,
1163
+ type: "ed448",
1164
+ options: ED448KeyPairOptions<"pem", "pem">,
1096
1165
  ): Promise<{ publicKey: string; privateKey: string }>;
1097
1166
  function __promisify__(
1098
- type: 'ed448',
1099
- options: ED448KeyPairOptions<'pem', 'der'>,
1167
+ type: "ed448",
1168
+ options: ED448KeyPairOptions<"pem", "der">,
1100
1169
  ): Promise<{ publicKey: string; privateKey: Buffer }>;
1101
1170
  function __promisify__(
1102
- type: 'ed448',
1103
- options: ED448KeyPairOptions<'der', 'pem'>,
1171
+ type: "ed448",
1172
+ options: ED448KeyPairOptions<"der", "pem">,
1104
1173
  ): Promise<{ publicKey: Buffer; privateKey: string }>;
1105
1174
  function __promisify__(
1106
- type: 'ed448',
1107
- options: ED448KeyPairOptions<'der', 'der'>,
1175
+ type: "ed448",
1176
+ options: ED448KeyPairOptions<"der", "der">,
1108
1177
  ): Promise<{ publicKey: Buffer; privateKey: Buffer }>;
1109
- function __promisify__(type: 'ed448', options?: ED448KeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>;
1178
+ function __promisify__(type: "ed448", options?: ED448KeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>;
1110
1179
 
1111
1180
  function __promisify__(
1112
- type: 'x25519',
1113
- options: X25519KeyPairOptions<'pem', 'pem'>,
1181
+ type: "x25519",
1182
+ options: X25519KeyPairOptions<"pem", "pem">,
1114
1183
  ): Promise<{ publicKey: string; privateKey: string }>;
1115
1184
  function __promisify__(
1116
- type: 'x25519',
1117
- options: X25519KeyPairOptions<'pem', 'der'>,
1185
+ type: "x25519",
1186
+ options: X25519KeyPairOptions<"pem", "der">,
1118
1187
  ): Promise<{ publicKey: string; privateKey: Buffer }>;
1119
1188
  function __promisify__(
1120
- type: 'x25519',
1121
- options: X25519KeyPairOptions<'der', 'pem'>,
1189
+ type: "x25519",
1190
+ options: X25519KeyPairOptions<"der", "pem">,
1122
1191
  ): Promise<{ publicKey: Buffer; privateKey: string }>;
1123
1192
  function __promisify__(
1124
- type: 'x25519',
1125
- options: X25519KeyPairOptions<'der', 'der'>,
1193
+ type: "x25519",
1194
+ options: X25519KeyPairOptions<"der", "der">,
1126
1195
  ): Promise<{ publicKey: Buffer; privateKey: Buffer }>;
1127
1196
  function __promisify__(
1128
- type: 'x25519',
1197
+ type: "x25519",
1129
1198
  options?: X25519KeyPairKeyObjectOptions,
1130
1199
  ): Promise<KeyPairKeyObjectResult>;
1131
1200
 
1132
1201
  function __promisify__(
1133
- type: 'x448',
1134
- options: X448KeyPairOptions<'pem', 'pem'>,
1202
+ type: "x448",
1203
+ options: X448KeyPairOptions<"pem", "pem">,
1135
1204
  ): Promise<{ publicKey: string; privateKey: string }>;
1136
1205
  function __promisify__(
1137
- type: 'x448',
1138
- options: X448KeyPairOptions<'pem', 'der'>,
1206
+ type: "x448",
1207
+ options: X448KeyPairOptions<"pem", "der">,
1139
1208
  ): Promise<{ publicKey: string; privateKey: Buffer }>;
1140
1209
  function __promisify__(
1141
- type: 'x448',
1142
- options: X448KeyPairOptions<'der', 'pem'>,
1210
+ type: "x448",
1211
+ options: X448KeyPairOptions<"der", "pem">,
1143
1212
  ): Promise<{ publicKey: Buffer; privateKey: string }>;
1144
1213
  function __promisify__(
1145
- type: 'x448',
1146
- options: X448KeyPairOptions<'der', 'der'>,
1214
+ type: "x448",
1215
+ options: X448KeyPairOptions<"der", "der">,
1147
1216
  ): Promise<{ publicKey: Buffer; privateKey: Buffer }>;
1148
- function __promisify__(type: 'x448', options?: X448KeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>;
1217
+ function __promisify__(type: "x448", options?: X448KeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>;
1149
1218
  }
1150
1219
 
1151
1220
  /**
@@ -1183,7 +1252,36 @@ declare module 'crypto' {
1183
1252
  * 'dh' (for Diffie-Hellman), 'ec' (for ECDH), 'x448', or 'x25519' (for ECDH-ES).
1184
1253
  */
1185
1254
  function diffieHellman(options: { privateKey: KeyObject; publicKey: KeyObject }): Buffer;
1255
+ /**
1256
+ * Load and set the `engine` for some or all OpenSSL functions (selected by flags).
1257
+ *
1258
+ * `engine` could be either an id or a path to the engine's shared library.
1259
+ *
1260
+ * The optional `flags` argument uses `ENGINE_METHOD_ALL` by default.
1261
+ * The `flags` is a bit field taking one of or a mix of the following flags (defined in `crypto.constants`):
1262
+ *
1263
+ * - `crypto.constants.ENGINE_METHOD_RSA`
1264
+ * - `crypto.constants.ENGINE_METHOD_DSA`
1265
+ * - `crypto.constants.ENGINE_METHOD_DH`
1266
+ * - `crypto.constants.ENGINE_METHOD_RAND`
1267
+ * - `crypto.constants.ENGINE_METHOD_EC`
1268
+ * - `crypto.constants.ENGINE_METHOD_CIPHERS`
1269
+ * - `crypto.constants.ENGINE_METHOD_DIGESTS`
1270
+ * - `crypto.constants.ENGINE_METHOD_PKEY_METHS`
1271
+ * - `crypto.constants.ENGINE_METHOD_PKEY_ASN1_METHS`
1272
+ * - `crypto.constants.ENGINE_METHOD_ALL`
1273
+ * - `crypto.constants.ENGINE_METHOD_NONE`
1274
+ *
1275
+ * The flags below are deprecated in OpenSSL-1.1.0.
1276
+ *
1277
+ * - `crypto.constants.ENGINE_METHOD_ECDH`
1278
+ * - `crypto.constants.ENGINE_METHOD_ECDSA`
1279
+ * - `crypto.constants.ENGINE_METHOD_STORE`
1280
+ * @since v0.11.11
1281
+ * @param [flags=crypto.constants.ENGINE_METHOD_ALL]
1282
+ */
1283
+ function setEngine(engine: string, flags?: number): void;
1186
1284
  }
1187
- declare module 'node:crypto' {
1188
- export * from 'crypto';
1285
+ declare module "node:crypto" {
1286
+ export * from "crypto";
1189
1287
  }