@emulsify/cli 1.6.0 → 1.8.0

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
@@ -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,15 +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';
192
- type CipherOCBTypes = 'aes-128-ocb' | 'aes-192-ocb' | 'aes-256-ocb';
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";
193
193
 
194
194
  type BinaryLike = string | NodeJS.ArrayBufferView;
195
195
 
@@ -320,27 +320,27 @@ declare module 'crypto' {
320
320
  interface PrivateKeyInput {
321
321
  key: string | Buffer;
322
322
  format?: KeyFormat | undefined;
323
- type?: 'pkcs1' | 'pkcs8' | 'sec1' | undefined;
323
+ type?: "pkcs1" | "pkcs8" | "sec1" | undefined;
324
324
  passphrase?: string | Buffer | undefined;
325
325
  }
326
326
 
327
327
  interface PublicKeyInput {
328
328
  key: string | Buffer;
329
329
  format?: KeyFormat | undefined;
330
- type?: 'pkcs1' | 'spki' | undefined;
330
+ type?: "pkcs1" | "spki" | undefined;
331
331
  }
332
332
 
333
333
  function createPrivateKey(key: PrivateKeyInput | string | Buffer): KeyObject;
334
334
  function createPublicKey(key: PublicKeyInput | string | Buffer | KeyObject): KeyObject;
335
335
  function createSecretKey(key: NodeJS.ArrayBufferView): KeyObject;
336
336
 
337
- function createSign(algorithm: string, options?: stream.WritableOptions): Signer;
337
+ function createSign(algorithm: string, options?: stream.WritableOptions): Sign;
338
338
 
339
- type DSAEncoding = 'der' | 'ieee-p1363';
339
+ type DSAEncoding = "der" | "ieee-p1363";
340
340
 
341
341
  interface SigningOptions {
342
342
  /**
343
- * @See crypto.constants.RSA_PKCS1_PADDING
343
+ * @see crypto.constants.RSA_PKCS1_PADDING
344
344
  */
345
345
  padding?: number | undefined;
346
346
  saltLength?: number | undefined;
@@ -358,11 +358,11 @@ declare module 'crypto' {
358
358
 
359
359
  type KeyLike = string | Buffer | KeyObject;
360
360
 
361
- class Signer extends stream.Writable {
361
+ class Sign extends stream.Writable {
362
362
  private constructor();
363
363
 
364
- update(data: BinaryLike): Signer;
365
- update(data: string, input_encoding: Encoding): Signer;
364
+ update(data: BinaryLike): Sign;
365
+ update(data: string, input_encoding: Encoding): Sign;
366
366
  sign(private_key: KeyLike | SignKeyObjectInput | SignPrivateKeyInput): Buffer;
367
367
  sign(
368
368
  private_key: KeyLike | SignKeyObjectInput | SignPrivateKeyInput,
@@ -406,9 +406,13 @@ declare module 'crypto' {
406
406
  private constructor();
407
407
  generateKeys(): Buffer;
408
408
  generateKeys(encoding: BinaryToTextEncoding): string;
409
- computeSecret(other_public_key: NodeJS.ArrayBufferView): Buffer;
410
- computeSecret(other_public_key: string, input_encoding: BinaryToTextEncoding): Buffer;
411
- 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;
412
416
  computeSecret(
413
417
  other_public_key: string,
414
418
  input_encoding: BinaryToTextEncoding,
@@ -428,7 +432,42 @@ declare module 'crypto' {
428
432
  setPrivateKey(private_key: string, encoding: BufferEncoding): void;
429
433
  verifyError: number;
430
434
  }
431
- 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;
432
471
  function pbkdf2(
433
472
  password: BinaryLike,
434
473
  salt: BinaryLike,
@@ -483,8 +522,8 @@ declare module 'crypto' {
483
522
  */
484
523
  disableEntropyCache?: boolean | undefined;
485
524
  }
486
-
487
- function randomUUID(options?: RandomUUIDOptions): string;
525
+ type UUID = `${string}-${string}-${string}-${string}-${string}`;
526
+ function randomUUID(options?: RandomUUIDOptions): UUID;
488
527
 
489
528
  interface ScryptOptions {
490
529
  cost?: number | undefined;
@@ -531,6 +570,12 @@ declare module 'crypto' {
531
570
  function getCiphers(): string[];
532
571
  function getCurves(): string[];
533
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;
534
579
  function getHashes(): string[];
535
580
  class ECDH {
536
581
  private constructor();
@@ -538,8 +583,8 @@ declare module 'crypto' {
538
583
  key: BinaryLike,
539
584
  curve: string,
540
585
  inputEncoding?: BinaryToTextEncoding,
541
- outputEncoding?: 'latin1' | 'hex' | 'base64' | 'base64url',
542
- format?: 'uncompressed' | 'compressed' | 'hybrid',
586
+ outputEncoding?: "latin1" | "hex" | "base64" | "base64url",
587
+ format?: "uncompressed" | "compressed" | "hybrid",
543
588
  ): Buffer | string;
544
589
  generateKeys(): Buffer;
545
590
  generateKeys(encoding: BinaryToTextEncoding, format?: ECDHKeyFormat): string;
@@ -563,8 +608,8 @@ declare module 'crypto' {
563
608
  /** @deprecated since v10.0.0 */
564
609
  const DEFAULT_ENCODING: BufferEncoding;
565
610
 
566
- type KeyType = 'rsa' | 'dsa' | 'ec' | 'ed25519' | 'ed448' | 'x25519' | 'x448';
567
- type KeyFormat = 'pem' | 'der';
611
+ type KeyType = "rsa" | "dsa" | "ec" | "ed25519" | "ed448" | "x25519" | "x448";
612
+ type KeyFormat = "pem" | "der";
568
613
 
569
614
  interface BasePrivateKeyEncodingOptions<T extends KeyFormat> {
570
615
  format: T;
@@ -643,11 +688,11 @@ declare module 'crypto' {
643
688
  publicExponent?: number | undefined;
644
689
 
645
690
  publicKeyEncoding: {
646
- type: 'pkcs1' | 'spki';
691
+ type: "pkcs1" | "spki";
647
692
  format: PubF;
648
693
  };
649
694
  privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
650
- type: 'pkcs1' | 'pkcs8';
695
+ type: "pkcs1" | "pkcs8";
651
696
  };
652
697
  }
653
698
 
@@ -662,11 +707,11 @@ declare module 'crypto' {
662
707
  divisorLength: number;
663
708
 
664
709
  publicKeyEncoding: {
665
- type: 'spki';
710
+ type: "spki";
666
711
  format: PubF;
667
712
  };
668
713
  privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
669
- type: 'pkcs8';
714
+ type: "pkcs8";
670
715
  };
671
716
  }
672
717
 
@@ -677,51 +722,51 @@ declare module 'crypto' {
677
722
  namedCurve: string;
678
723
 
679
724
  publicKeyEncoding: {
680
- type: 'pkcs1' | 'spki';
725
+ type: "pkcs1" | "spki";
681
726
  format: PubF;
682
727
  };
683
728
  privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
684
- type: 'sec1' | 'pkcs8';
729
+ type: "sec1" | "pkcs8";
685
730
  };
686
731
  }
687
732
 
688
733
  interface ED25519KeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> {
689
734
  publicKeyEncoding: {
690
- type: 'spki';
735
+ type: "spki";
691
736
  format: PubF;
692
737
  };
693
738
  privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
694
- type: 'pkcs8';
739
+ type: "pkcs8";
695
740
  };
696
741
  }
697
742
 
698
743
  interface ED448KeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> {
699
744
  publicKeyEncoding: {
700
- type: 'spki';
745
+ type: "spki";
701
746
  format: PubF;
702
747
  };
703
748
  privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
704
- type: 'pkcs8';
749
+ type: "pkcs8";
705
750
  };
706
751
  }
707
752
 
708
753
  interface X25519KeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> {
709
754
  publicKeyEncoding: {
710
- type: 'spki';
755
+ type: "spki";
711
756
  format: PubF;
712
757
  };
713
758
  privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
714
- type: 'pkcs8';
759
+ type: "pkcs8";
715
760
  };
716
761
  }
717
762
 
718
763
  interface X448KeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> {
719
764
  publicKeyEncoding: {
720
- type: 'spki';
765
+ type: "spki";
721
766
  format: PubF;
722
767
  };
723
768
  privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
724
- type: 'pkcs8';
769
+ type: "pkcs8";
725
770
  };
726
771
  }
727
772
 
@@ -731,445 +776,445 @@ declare module 'crypto' {
731
776
  }
732
777
 
733
778
  function generateKeyPairSync(
734
- type: 'rsa',
735
- options: RSAKeyPairOptions<'pem', 'pem'>,
779
+ type: "rsa",
780
+ options: RSAKeyPairOptions<"pem", "pem">,
736
781
  ): KeyPairSyncResult<string, string>;
737
782
  function generateKeyPairSync(
738
- type: 'rsa',
739
- options: RSAKeyPairOptions<'pem', 'der'>,
783
+ type: "rsa",
784
+ options: RSAKeyPairOptions<"pem", "der">,
740
785
  ): KeyPairSyncResult<string, Buffer>;
741
786
  function generateKeyPairSync(
742
- type: 'rsa',
743
- options: RSAKeyPairOptions<'der', 'pem'>,
787
+ type: "rsa",
788
+ options: RSAKeyPairOptions<"der", "pem">,
744
789
  ): KeyPairSyncResult<Buffer, string>;
745
790
  function generateKeyPairSync(
746
- type: 'rsa',
747
- options: RSAKeyPairOptions<'der', 'der'>,
791
+ type: "rsa",
792
+ options: RSAKeyPairOptions<"der", "der">,
748
793
  ): KeyPairSyncResult<Buffer, Buffer>;
749
- function generateKeyPairSync(type: 'rsa', options: RSAKeyPairKeyObjectOptions): KeyPairKeyObjectResult;
794
+ function generateKeyPairSync(type: "rsa", options: RSAKeyPairKeyObjectOptions): KeyPairKeyObjectResult;
750
795
 
751
796
  function generateKeyPairSync(
752
- type: 'dsa',
753
- options: DSAKeyPairOptions<'pem', 'pem'>,
797
+ type: "dsa",
798
+ options: DSAKeyPairOptions<"pem", "pem">,
754
799
  ): KeyPairSyncResult<string, string>;
755
800
  function generateKeyPairSync(
756
- type: 'dsa',
757
- options: DSAKeyPairOptions<'pem', 'der'>,
801
+ type: "dsa",
802
+ options: DSAKeyPairOptions<"pem", "der">,
758
803
  ): KeyPairSyncResult<string, Buffer>;
759
804
  function generateKeyPairSync(
760
- type: 'dsa',
761
- options: DSAKeyPairOptions<'der', 'pem'>,
805
+ type: "dsa",
806
+ options: DSAKeyPairOptions<"der", "pem">,
762
807
  ): KeyPairSyncResult<Buffer, string>;
763
808
  function generateKeyPairSync(
764
- type: 'dsa',
765
- options: DSAKeyPairOptions<'der', 'der'>,
809
+ type: "dsa",
810
+ options: DSAKeyPairOptions<"der", "der">,
766
811
  ): KeyPairSyncResult<Buffer, Buffer>;
767
- function generateKeyPairSync(type: 'dsa', options: DSAKeyPairKeyObjectOptions): KeyPairKeyObjectResult;
812
+ function generateKeyPairSync(type: "dsa", options: DSAKeyPairKeyObjectOptions): KeyPairKeyObjectResult;
768
813
 
769
814
  function generateKeyPairSync(
770
- type: 'ec',
771
- options: ECKeyPairOptions<'pem', 'pem'>,
815
+ type: "ec",
816
+ options: ECKeyPairOptions<"pem", "pem">,
772
817
  ): KeyPairSyncResult<string, string>;
773
818
  function generateKeyPairSync(
774
- type: 'ec',
775
- options: ECKeyPairOptions<'pem', 'der'>,
819
+ type: "ec",
820
+ options: ECKeyPairOptions<"pem", "der">,
776
821
  ): KeyPairSyncResult<string, Buffer>;
777
822
  function generateKeyPairSync(
778
- type: 'ec',
779
- options: ECKeyPairOptions<'der', 'pem'>,
823
+ type: "ec",
824
+ options: ECKeyPairOptions<"der", "pem">,
780
825
  ): KeyPairSyncResult<Buffer, string>;
781
826
  function generateKeyPairSync(
782
- type: 'ec',
783
- options: ECKeyPairOptions<'der', 'der'>,
827
+ type: "ec",
828
+ options: ECKeyPairOptions<"der", "der">,
784
829
  ): KeyPairSyncResult<Buffer, Buffer>;
785
- function generateKeyPairSync(type: 'ec', options: ECKeyPairKeyObjectOptions): KeyPairKeyObjectResult;
830
+ function generateKeyPairSync(type: "ec", options: ECKeyPairKeyObjectOptions): KeyPairKeyObjectResult;
786
831
 
787
832
  function generateKeyPairSync(
788
- type: 'ed25519',
789
- options: ED25519KeyPairOptions<'pem', 'pem'>,
833
+ type: "ed25519",
834
+ options: ED25519KeyPairOptions<"pem", "pem">,
790
835
  ): KeyPairSyncResult<string, string>;
791
836
  function generateKeyPairSync(
792
- type: 'ed25519',
793
- options: ED25519KeyPairOptions<'pem', 'der'>,
837
+ type: "ed25519",
838
+ options: ED25519KeyPairOptions<"pem", "der">,
794
839
  ): KeyPairSyncResult<string, Buffer>;
795
840
  function generateKeyPairSync(
796
- type: 'ed25519',
797
- options: ED25519KeyPairOptions<'der', 'pem'>,
841
+ type: "ed25519",
842
+ options: ED25519KeyPairOptions<"der", "pem">,
798
843
  ): KeyPairSyncResult<Buffer, string>;
799
844
  function generateKeyPairSync(
800
- type: 'ed25519',
801
- options: ED25519KeyPairOptions<'der', 'der'>,
845
+ type: "ed25519",
846
+ options: ED25519KeyPairOptions<"der", "der">,
802
847
  ): KeyPairSyncResult<Buffer, Buffer>;
803
- function generateKeyPairSync(type: 'ed25519', options?: ED25519KeyPairKeyObjectOptions): KeyPairKeyObjectResult;
848
+ function generateKeyPairSync(type: "ed25519", options?: ED25519KeyPairKeyObjectOptions): KeyPairKeyObjectResult;
804
849
 
805
850
  function generateKeyPairSync(
806
- type: 'ed448',
807
- options: ED448KeyPairOptions<'pem', 'pem'>,
851
+ type: "ed448",
852
+ options: ED448KeyPairOptions<"pem", "pem">,
808
853
  ): KeyPairSyncResult<string, string>;
809
854
  function generateKeyPairSync(
810
- type: 'ed448',
811
- options: ED448KeyPairOptions<'pem', 'der'>,
855
+ type: "ed448",
856
+ options: ED448KeyPairOptions<"pem", "der">,
812
857
  ): KeyPairSyncResult<string, Buffer>;
813
858
  function generateKeyPairSync(
814
- type: 'ed448',
815
- options: ED448KeyPairOptions<'der', 'pem'>,
859
+ type: "ed448",
860
+ options: ED448KeyPairOptions<"der", "pem">,
816
861
  ): KeyPairSyncResult<Buffer, string>;
817
862
  function generateKeyPairSync(
818
- type: 'ed448',
819
- options: ED448KeyPairOptions<'der', 'der'>,
863
+ type: "ed448",
864
+ options: ED448KeyPairOptions<"der", "der">,
820
865
  ): KeyPairSyncResult<Buffer, Buffer>;
821
- function generateKeyPairSync(type: 'ed448', options?: ED448KeyPairKeyObjectOptions): KeyPairKeyObjectResult;
866
+ function generateKeyPairSync(type: "ed448", options?: ED448KeyPairKeyObjectOptions): KeyPairKeyObjectResult;
822
867
 
823
868
  function generateKeyPairSync(
824
- type: 'x25519',
825
- options: X25519KeyPairOptions<'pem', 'pem'>,
869
+ type: "x25519",
870
+ options: X25519KeyPairOptions<"pem", "pem">,
826
871
  ): KeyPairSyncResult<string, string>;
827
872
  function generateKeyPairSync(
828
- type: 'x25519',
829
- options: X25519KeyPairOptions<'pem', 'der'>,
873
+ type: "x25519",
874
+ options: X25519KeyPairOptions<"pem", "der">,
830
875
  ): KeyPairSyncResult<string, Buffer>;
831
876
  function generateKeyPairSync(
832
- type: 'x25519',
833
- options: X25519KeyPairOptions<'der', 'pem'>,
877
+ type: "x25519",
878
+ options: X25519KeyPairOptions<"der", "pem">,
834
879
  ): KeyPairSyncResult<Buffer, string>;
835
880
  function generateKeyPairSync(
836
- type: 'x25519',
837
- options: X25519KeyPairOptions<'der', 'der'>,
881
+ type: "x25519",
882
+ options: X25519KeyPairOptions<"der", "der">,
838
883
  ): KeyPairSyncResult<Buffer, Buffer>;
839
- function generateKeyPairSync(type: 'x25519', options?: X25519KeyPairKeyObjectOptions): KeyPairKeyObjectResult;
884
+ function generateKeyPairSync(type: "x25519", options?: X25519KeyPairKeyObjectOptions): KeyPairKeyObjectResult;
840
885
 
841
886
  function generateKeyPairSync(
842
- type: 'x448',
843
- options: X448KeyPairOptions<'pem', 'pem'>,
887
+ type: "x448",
888
+ options: X448KeyPairOptions<"pem", "pem">,
844
889
  ): KeyPairSyncResult<string, string>;
845
890
  function generateKeyPairSync(
846
- type: 'x448',
847
- options: X448KeyPairOptions<'pem', 'der'>,
891
+ type: "x448",
892
+ options: X448KeyPairOptions<"pem", "der">,
848
893
  ): KeyPairSyncResult<string, Buffer>;
849
894
  function generateKeyPairSync(
850
- type: 'x448',
851
- options: X448KeyPairOptions<'der', 'pem'>,
895
+ type: "x448",
896
+ options: X448KeyPairOptions<"der", "pem">,
852
897
  ): KeyPairSyncResult<Buffer, string>;
853
898
  function generateKeyPairSync(
854
- type: 'x448',
855
- options: X448KeyPairOptions<'der', 'der'>,
899
+ type: "x448",
900
+ options: X448KeyPairOptions<"der", "der">,
856
901
  ): KeyPairSyncResult<Buffer, Buffer>;
857
- function generateKeyPairSync(type: 'x448', options?: X448KeyPairKeyObjectOptions): KeyPairKeyObjectResult;
902
+ function generateKeyPairSync(type: "x448", options?: X448KeyPairKeyObjectOptions): KeyPairKeyObjectResult;
858
903
 
859
904
  function generateKeyPair(
860
- type: 'rsa',
861
- options: RSAKeyPairOptions<'pem', 'pem'>,
905
+ type: "rsa",
906
+ options: RSAKeyPairOptions<"pem", "pem">,
862
907
  callback: (err: Error | null, publicKey: string, privateKey: string) => void,
863
908
  ): void;
864
909
  function generateKeyPair(
865
- type: 'rsa',
866
- options: RSAKeyPairOptions<'pem', 'der'>,
910
+ type: "rsa",
911
+ options: RSAKeyPairOptions<"pem", "der">,
867
912
  callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void,
868
913
  ): void;
869
914
  function generateKeyPair(
870
- type: 'rsa',
871
- options: RSAKeyPairOptions<'der', 'pem'>,
915
+ type: "rsa",
916
+ options: RSAKeyPairOptions<"der", "pem">,
872
917
  callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void,
873
918
  ): void;
874
919
  function generateKeyPair(
875
- type: 'rsa',
876
- options: RSAKeyPairOptions<'der', 'der'>,
920
+ type: "rsa",
921
+ options: RSAKeyPairOptions<"der", "der">,
877
922
  callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void,
878
923
  ): void;
879
924
  function generateKeyPair(
880
- type: 'rsa',
925
+ type: "rsa",
881
926
  options: RSAKeyPairKeyObjectOptions,
882
927
  callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void,
883
928
  ): void;
884
929
 
885
930
  function generateKeyPair(
886
- type: 'dsa',
887
- options: DSAKeyPairOptions<'pem', 'pem'>,
931
+ type: "dsa",
932
+ options: DSAKeyPairOptions<"pem", "pem">,
888
933
  callback: (err: Error | null, publicKey: string, privateKey: string) => void,
889
934
  ): void;
890
935
  function generateKeyPair(
891
- type: 'dsa',
892
- options: DSAKeyPairOptions<'pem', 'der'>,
936
+ type: "dsa",
937
+ options: DSAKeyPairOptions<"pem", "der">,
893
938
  callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void,
894
939
  ): void;
895
940
  function generateKeyPair(
896
- type: 'dsa',
897
- options: DSAKeyPairOptions<'der', 'pem'>,
941
+ type: "dsa",
942
+ options: DSAKeyPairOptions<"der", "pem">,
898
943
  callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void,
899
944
  ): void;
900
945
  function generateKeyPair(
901
- type: 'dsa',
902
- options: DSAKeyPairOptions<'der', 'der'>,
946
+ type: "dsa",
947
+ options: DSAKeyPairOptions<"der", "der">,
903
948
  callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void,
904
949
  ): void;
905
950
  function generateKeyPair(
906
- type: 'dsa',
951
+ type: "dsa",
907
952
  options: DSAKeyPairKeyObjectOptions,
908
953
  callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void,
909
954
  ): void;
910
955
 
911
956
  function generateKeyPair(
912
- type: 'ec',
913
- options: ECKeyPairOptions<'pem', 'pem'>,
957
+ type: "ec",
958
+ options: ECKeyPairOptions<"pem", "pem">,
914
959
  callback: (err: Error | null, publicKey: string, privateKey: string) => void,
915
960
  ): void;
916
961
  function generateKeyPair(
917
- type: 'ec',
918
- options: ECKeyPairOptions<'pem', 'der'>,
962
+ type: "ec",
963
+ options: ECKeyPairOptions<"pem", "der">,
919
964
  callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void,
920
965
  ): void;
921
966
  function generateKeyPair(
922
- type: 'ec',
923
- options: ECKeyPairOptions<'der', 'pem'>,
967
+ type: "ec",
968
+ options: ECKeyPairOptions<"der", "pem">,
924
969
  callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void,
925
970
  ): void;
926
971
  function generateKeyPair(
927
- type: 'ec',
928
- options: ECKeyPairOptions<'der', 'der'>,
972
+ type: "ec",
973
+ options: ECKeyPairOptions<"der", "der">,
929
974
  callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void,
930
975
  ): void;
931
976
  function generateKeyPair(
932
- type: 'ec',
977
+ type: "ec",
933
978
  options: ECKeyPairKeyObjectOptions,
934
979
  callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void,
935
980
  ): void;
936
981
 
937
982
  function generateKeyPair(
938
- type: 'ed25519',
939
- options: ED25519KeyPairOptions<'pem', 'pem'>,
983
+ type: "ed25519",
984
+ options: ED25519KeyPairOptions<"pem", "pem">,
940
985
  callback: (err: Error | null, publicKey: string, privateKey: string) => void,
941
986
  ): void;
942
987
  function generateKeyPair(
943
- type: 'ed25519',
944
- options: ED25519KeyPairOptions<'pem', 'der'>,
988
+ type: "ed25519",
989
+ options: ED25519KeyPairOptions<"pem", "der">,
945
990
  callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void,
946
991
  ): void;
947
992
  function generateKeyPair(
948
- type: 'ed25519',
949
- options: ED25519KeyPairOptions<'der', 'pem'>,
993
+ type: "ed25519",
994
+ options: ED25519KeyPairOptions<"der", "pem">,
950
995
  callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void,
951
996
  ): void;
952
997
  function generateKeyPair(
953
- type: 'ed25519',
954
- options: ED25519KeyPairOptions<'der', 'der'>,
998
+ type: "ed25519",
999
+ options: ED25519KeyPairOptions<"der", "der">,
955
1000
  callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void,
956
1001
  ): void;
957
1002
  function generateKeyPair(
958
- type: 'ed25519',
1003
+ type: "ed25519",
959
1004
  options: ED25519KeyPairKeyObjectOptions | undefined,
960
1005
  callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void,
961
1006
  ): void;
962
1007
 
963
1008
  function generateKeyPair(
964
- type: 'ed448',
965
- options: ED448KeyPairOptions<'pem', 'pem'>,
1009
+ type: "ed448",
1010
+ options: ED448KeyPairOptions<"pem", "pem">,
966
1011
  callback: (err: Error | null, publicKey: string, privateKey: string) => void,
967
1012
  ): void;
968
1013
  function generateKeyPair(
969
- type: 'ed448',
970
- options: ED448KeyPairOptions<'pem', 'der'>,
1014
+ type: "ed448",
1015
+ options: ED448KeyPairOptions<"pem", "der">,
971
1016
  callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void,
972
1017
  ): void;
973
1018
  function generateKeyPair(
974
- type: 'ed448',
975
- options: ED448KeyPairOptions<'der', 'pem'>,
1019
+ type: "ed448",
1020
+ options: ED448KeyPairOptions<"der", "pem">,
976
1021
  callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void,
977
1022
  ): void;
978
1023
  function generateKeyPair(
979
- type: 'ed448',
980
- options: ED448KeyPairOptions<'der', 'der'>,
1024
+ type: "ed448",
1025
+ options: ED448KeyPairOptions<"der", "der">,
981
1026
  callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void,
982
1027
  ): void;
983
1028
  function generateKeyPair(
984
- type: 'ed448',
1029
+ type: "ed448",
985
1030
  options: ED448KeyPairKeyObjectOptions | undefined,
986
1031
  callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void,
987
1032
  ): void;
988
1033
 
989
1034
  function generateKeyPair(
990
- type: 'x25519',
991
- options: X25519KeyPairOptions<'pem', 'pem'>,
1035
+ type: "x25519",
1036
+ options: X25519KeyPairOptions<"pem", "pem">,
992
1037
  callback: (err: Error | null, publicKey: string, privateKey: string) => void,
993
1038
  ): void;
994
1039
  function generateKeyPair(
995
- type: 'x25519',
996
- options: X25519KeyPairOptions<'pem', 'der'>,
1040
+ type: "x25519",
1041
+ options: X25519KeyPairOptions<"pem", "der">,
997
1042
  callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void,
998
1043
  ): void;
999
1044
  function generateKeyPair(
1000
- type: 'x25519',
1001
- options: X25519KeyPairOptions<'der', 'pem'>,
1045
+ type: "x25519",
1046
+ options: X25519KeyPairOptions<"der", "pem">,
1002
1047
  callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void,
1003
1048
  ): void;
1004
1049
  function generateKeyPair(
1005
- type: 'x25519',
1006
- options: X25519KeyPairOptions<'der', 'der'>,
1050
+ type: "x25519",
1051
+ options: X25519KeyPairOptions<"der", "der">,
1007
1052
  callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void,
1008
1053
  ): void;
1009
1054
  function generateKeyPair(
1010
- type: 'x25519',
1055
+ type: "x25519",
1011
1056
  options: X25519KeyPairKeyObjectOptions | undefined,
1012
1057
  callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void,
1013
1058
  ): void;
1014
1059
 
1015
1060
  function generateKeyPair(
1016
- type: 'x448',
1017
- options: X448KeyPairOptions<'pem', 'pem'>,
1061
+ type: "x448",
1062
+ options: X448KeyPairOptions<"pem", "pem">,
1018
1063
  callback: (err: Error | null, publicKey: string, privateKey: string) => void,
1019
1064
  ): void;
1020
1065
  function generateKeyPair(
1021
- type: 'x448',
1022
- options: X448KeyPairOptions<'pem', 'der'>,
1066
+ type: "x448",
1067
+ options: X448KeyPairOptions<"pem", "der">,
1023
1068
  callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void,
1024
1069
  ): void;
1025
1070
  function generateKeyPair(
1026
- type: 'x448',
1027
- options: X448KeyPairOptions<'der', 'pem'>,
1071
+ type: "x448",
1072
+ options: X448KeyPairOptions<"der", "pem">,
1028
1073
  callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void,
1029
1074
  ): void;
1030
1075
  function generateKeyPair(
1031
- type: 'x448',
1032
- options: X448KeyPairOptions<'der', 'der'>,
1076
+ type: "x448",
1077
+ options: X448KeyPairOptions<"der", "der">,
1033
1078
  callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void,
1034
1079
  ): void;
1035
1080
  function generateKeyPair(
1036
- type: 'x448',
1081
+ type: "x448",
1037
1082
  options: X448KeyPairKeyObjectOptions | undefined,
1038
1083
  callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void,
1039
1084
  ): void;
1040
1085
 
1041
1086
  namespace generateKeyPair {
1042
1087
  function __promisify__(
1043
- type: 'rsa',
1044
- options: RSAKeyPairOptions<'pem', 'pem'>,
1088
+ type: "rsa",
1089
+ options: RSAKeyPairOptions<"pem", "pem">,
1045
1090
  ): Promise<{ publicKey: string; privateKey: string }>;
1046
1091
  function __promisify__(
1047
- type: 'rsa',
1048
- options: RSAKeyPairOptions<'pem', 'der'>,
1092
+ type: "rsa",
1093
+ options: RSAKeyPairOptions<"pem", "der">,
1049
1094
  ): Promise<{ publicKey: string; privateKey: Buffer }>;
1050
1095
  function __promisify__(
1051
- type: 'rsa',
1052
- options: RSAKeyPairOptions<'der', 'pem'>,
1096
+ type: "rsa",
1097
+ options: RSAKeyPairOptions<"der", "pem">,
1053
1098
  ): Promise<{ publicKey: Buffer; privateKey: string }>;
1054
1099
  function __promisify__(
1055
- type: 'rsa',
1056
- options: RSAKeyPairOptions<'der', 'der'>,
1100
+ type: "rsa",
1101
+ options: RSAKeyPairOptions<"der", "der">,
1057
1102
  ): Promise<{ publicKey: Buffer; privateKey: Buffer }>;
1058
- function __promisify__(type: 'rsa', options: RSAKeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>;
1103
+ function __promisify__(type: "rsa", options: RSAKeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>;
1059
1104
 
1060
1105
  function __promisify__(
1061
- type: 'dsa',
1062
- options: DSAKeyPairOptions<'pem', 'pem'>,
1106
+ type: "dsa",
1107
+ options: DSAKeyPairOptions<"pem", "pem">,
1063
1108
  ): Promise<{ publicKey: string; privateKey: string }>;
1064
1109
  function __promisify__(
1065
- type: 'dsa',
1066
- options: DSAKeyPairOptions<'pem', 'der'>,
1110
+ type: "dsa",
1111
+ options: DSAKeyPairOptions<"pem", "der">,
1067
1112
  ): Promise<{ publicKey: string; privateKey: Buffer }>;
1068
1113
  function __promisify__(
1069
- type: 'dsa',
1070
- options: DSAKeyPairOptions<'der', 'pem'>,
1114
+ type: "dsa",
1115
+ options: DSAKeyPairOptions<"der", "pem">,
1071
1116
  ): Promise<{ publicKey: Buffer; privateKey: string }>;
1072
1117
  function __promisify__(
1073
- type: 'dsa',
1074
- options: DSAKeyPairOptions<'der', 'der'>,
1118
+ type: "dsa",
1119
+ options: DSAKeyPairOptions<"der", "der">,
1075
1120
  ): Promise<{ publicKey: Buffer; privateKey: Buffer }>;
1076
- function __promisify__(type: 'dsa', options: DSAKeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>;
1121
+ function __promisify__(type: "dsa", options: DSAKeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>;
1077
1122
 
1078
1123
  function __promisify__(
1079
- type: 'ec',
1080
- options: ECKeyPairOptions<'pem', 'pem'>,
1124
+ type: "ec",
1125
+ options: ECKeyPairOptions<"pem", "pem">,
1081
1126
  ): Promise<{ publicKey: string; privateKey: string }>;
1082
1127
  function __promisify__(
1083
- type: 'ec',
1084
- options: ECKeyPairOptions<'pem', 'der'>,
1128
+ type: "ec",
1129
+ options: ECKeyPairOptions<"pem", "der">,
1085
1130
  ): Promise<{ publicKey: string; privateKey: Buffer }>;
1086
1131
  function __promisify__(
1087
- type: 'ec',
1088
- options: ECKeyPairOptions<'der', 'pem'>,
1132
+ type: "ec",
1133
+ options: ECKeyPairOptions<"der", "pem">,
1089
1134
  ): Promise<{ publicKey: Buffer; privateKey: string }>;
1090
1135
  function __promisify__(
1091
- type: 'ec',
1092
- options: ECKeyPairOptions<'der', 'der'>,
1136
+ type: "ec",
1137
+ options: ECKeyPairOptions<"der", "der">,
1093
1138
  ): Promise<{ publicKey: Buffer; privateKey: Buffer }>;
1094
- function __promisify__(type: 'ec', options: ECKeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>;
1139
+ function __promisify__(type: "ec", options: ECKeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>;
1095
1140
 
1096
1141
  function __promisify__(
1097
- type: 'ed25519',
1098
- options: ED25519KeyPairOptions<'pem', 'pem'>,
1142
+ type: "ed25519",
1143
+ options: ED25519KeyPairOptions<"pem", "pem">,
1099
1144
  ): Promise<{ publicKey: string; privateKey: string }>;
1100
1145
  function __promisify__(
1101
- type: 'ed25519',
1102
- options: ED25519KeyPairOptions<'pem', 'der'>,
1146
+ type: "ed25519",
1147
+ options: ED25519KeyPairOptions<"pem", "der">,
1103
1148
  ): Promise<{ publicKey: string; privateKey: Buffer }>;
1104
1149
  function __promisify__(
1105
- type: 'ed25519',
1106
- options: ED25519KeyPairOptions<'der', 'pem'>,
1150
+ type: "ed25519",
1151
+ options: ED25519KeyPairOptions<"der", "pem">,
1107
1152
  ): Promise<{ publicKey: Buffer; privateKey: string }>;
1108
1153
  function __promisify__(
1109
- type: 'ed25519',
1110
- options: ED25519KeyPairOptions<'der', 'der'>,
1154
+ type: "ed25519",
1155
+ options: ED25519KeyPairOptions<"der", "der">,
1111
1156
  ): Promise<{ publicKey: Buffer; privateKey: Buffer }>;
1112
1157
  function __promisify__(
1113
- type: 'ed25519',
1158
+ type: "ed25519",
1114
1159
  options?: ED25519KeyPairKeyObjectOptions,
1115
1160
  ): Promise<KeyPairKeyObjectResult>;
1116
1161
 
1117
1162
  function __promisify__(
1118
- type: 'ed448',
1119
- options: ED448KeyPairOptions<'pem', 'pem'>,
1163
+ type: "ed448",
1164
+ options: ED448KeyPairOptions<"pem", "pem">,
1120
1165
  ): Promise<{ publicKey: string; privateKey: string }>;
1121
1166
  function __promisify__(
1122
- type: 'ed448',
1123
- options: ED448KeyPairOptions<'pem', 'der'>,
1167
+ type: "ed448",
1168
+ options: ED448KeyPairOptions<"pem", "der">,
1124
1169
  ): Promise<{ publicKey: string; privateKey: Buffer }>;
1125
1170
  function __promisify__(
1126
- type: 'ed448',
1127
- options: ED448KeyPairOptions<'der', 'pem'>,
1171
+ type: "ed448",
1172
+ options: ED448KeyPairOptions<"der", "pem">,
1128
1173
  ): Promise<{ publicKey: Buffer; privateKey: string }>;
1129
1174
  function __promisify__(
1130
- type: 'ed448',
1131
- options: ED448KeyPairOptions<'der', 'der'>,
1175
+ type: "ed448",
1176
+ options: ED448KeyPairOptions<"der", "der">,
1132
1177
  ): Promise<{ publicKey: Buffer; privateKey: Buffer }>;
1133
- function __promisify__(type: 'ed448', options?: ED448KeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>;
1178
+ function __promisify__(type: "ed448", options?: ED448KeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>;
1134
1179
 
1135
1180
  function __promisify__(
1136
- type: 'x25519',
1137
- options: X25519KeyPairOptions<'pem', 'pem'>,
1181
+ type: "x25519",
1182
+ options: X25519KeyPairOptions<"pem", "pem">,
1138
1183
  ): Promise<{ publicKey: string; privateKey: string }>;
1139
1184
  function __promisify__(
1140
- type: 'x25519',
1141
- options: X25519KeyPairOptions<'pem', 'der'>,
1185
+ type: "x25519",
1186
+ options: X25519KeyPairOptions<"pem", "der">,
1142
1187
  ): Promise<{ publicKey: string; privateKey: Buffer }>;
1143
1188
  function __promisify__(
1144
- type: 'x25519',
1145
- options: X25519KeyPairOptions<'der', 'pem'>,
1189
+ type: "x25519",
1190
+ options: X25519KeyPairOptions<"der", "pem">,
1146
1191
  ): Promise<{ publicKey: Buffer; privateKey: string }>;
1147
1192
  function __promisify__(
1148
- type: 'x25519',
1149
- options: X25519KeyPairOptions<'der', 'der'>,
1193
+ type: "x25519",
1194
+ options: X25519KeyPairOptions<"der", "der">,
1150
1195
  ): Promise<{ publicKey: Buffer; privateKey: Buffer }>;
1151
1196
  function __promisify__(
1152
- type: 'x25519',
1197
+ type: "x25519",
1153
1198
  options?: X25519KeyPairKeyObjectOptions,
1154
1199
  ): Promise<KeyPairKeyObjectResult>;
1155
1200
 
1156
1201
  function __promisify__(
1157
- type: 'x448',
1158
- options: X448KeyPairOptions<'pem', 'pem'>,
1202
+ type: "x448",
1203
+ options: X448KeyPairOptions<"pem", "pem">,
1159
1204
  ): Promise<{ publicKey: string; privateKey: string }>;
1160
1205
  function __promisify__(
1161
- type: 'x448',
1162
- options: X448KeyPairOptions<'pem', 'der'>,
1206
+ type: "x448",
1207
+ options: X448KeyPairOptions<"pem", "der">,
1163
1208
  ): Promise<{ publicKey: string; privateKey: Buffer }>;
1164
1209
  function __promisify__(
1165
- type: 'x448',
1166
- options: X448KeyPairOptions<'der', 'pem'>,
1210
+ type: "x448",
1211
+ options: X448KeyPairOptions<"der", "pem">,
1167
1212
  ): Promise<{ publicKey: Buffer; privateKey: string }>;
1168
1213
  function __promisify__(
1169
- type: 'x448',
1170
- options: X448KeyPairOptions<'der', 'der'>,
1214
+ type: "x448",
1215
+ options: X448KeyPairOptions<"der", "der">,
1171
1216
  ): Promise<{ publicKey: Buffer; privateKey: Buffer }>;
1172
- function __promisify__(type: 'x448', options?: X448KeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>;
1217
+ function __promisify__(type: "x448", options?: X448KeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>;
1173
1218
  }
1174
1219
 
1175
1220
  /**
@@ -1207,7 +1252,36 @@ declare module 'crypto' {
1207
1252
  * 'dh' (for Diffie-Hellman), 'ec' (for ECDH), 'x448', or 'x25519' (for ECDH-ES).
1208
1253
  */
1209
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;
1210
1284
  }
1211
- declare module 'node:crypto' {
1212
- export * from 'crypto';
1285
+ declare module "node:crypto" {
1286
+ export * from "crypto";
1213
1287
  }