cloudstructs 0.9.38 → 0.9.40
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.
- package/.jsii +5 -5
- package/assets/slack-textract/detect.lambda/index.js +16394 -16013
- package/lib/codecommit-mirror/index.js +2 -2
- package/lib/dmarc/index.js +1 -1
- package/lib/ecs-service-roller/index.js +2 -2
- package/lib/email-receiver/receiver.js +1 -1
- package/lib/mjml-template/index.js +1 -1
- package/lib/saml-identity-provider/index.js +2 -2
- package/lib/slack-app/manifest.js +1 -1
- package/lib/slack-app/slack-app.js +2 -2
- package/lib/slack-events/index.js +1 -1
- package/lib/slack-textract/index.js +1 -1
- package/lib/ssl-server-test/index.js +1 -1
- package/lib/state-machine-cr-provider/index.js +1 -1
- package/lib/static-website/index.js +1 -1
- package/lib/toolkit-cleaner/index.js +1 -1
- package/lib/url-shortener/index.js +1 -1
- package/node_modules/@babel/runtime/helpers/applyDecs2203.js +1 -1
- package/node_modules/@babel/runtime/helpers/applyDecs2203R.js +1 -1
- package/node_modules/@babel/runtime/helpers/applyDecs2301.js +1 -1
- package/node_modules/@babel/runtime/helpers/applyDecs2311.js +1 -1
- package/node_modules/@babel/runtime/helpers/esm/applyDecs2203.js +1 -1
- package/node_modules/@babel/runtime/helpers/esm/applyDecs2203R.js +1 -1
- package/node_modules/@babel/runtime/helpers/esm/applyDecs2301.js +1 -1
- package/node_modules/@babel/runtime/helpers/esm/applyDecs2311.js +1 -1
- package/node_modules/@babel/runtime/package.json +1 -1
- package/node_modules/@isaacs/cliui/node_modules/ansi-regex/index.js +8 -4
- package/node_modules/@isaacs/cliui/node_modules/ansi-regex/package.json +1 -1
- package/node_modules/@isaacs/cliui/node_modules/ansi-regex/readme.md +6 -0
- package/node_modules/@isaacs/cliui/node_modules/ansi-styles/index.d.ts +12 -12
- package/node_modules/@isaacs/cliui/node_modules/ansi-styles/index.js +3 -3
- package/node_modules/@isaacs/cliui/node_modules/ansi-styles/package.json +4 -4
- package/node_modules/@isaacs/cliui/node_modules/strip-ansi/package.json +3 -1
- package/node_modules/@isaacs/cliui/node_modules/strip-ansi/readme.md +5 -9
- package/node_modules/@slack/logger/node_modules/@types/node/README.md +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/assert/strict.d.ts +105 -2
- package/node_modules/@slack/logger/node_modules/@types/node/assert.d.ts +119 -95
- package/node_modules/@slack/logger/node_modules/@types/node/buffer.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/child_process.d.ts +16 -10
- package/node_modules/@slack/logger/node_modules/@types/node/cluster.d.ts +4 -5
- package/node_modules/@slack/logger/node_modules/@types/node/crypto.d.ts +1049 -198
- package/node_modules/@slack/logger/node_modules/@types/node/diagnostics_channel.d.ts +0 -2
- package/node_modules/@slack/logger/node_modules/@types/node/dns.d.ts +6 -1
- package/node_modules/@slack/logger/node_modules/@types/node/events.d.ts +80 -34
- package/node_modules/@slack/logger/node_modules/@types/node/fs/promises.d.ts +22 -0
- package/node_modules/@slack/logger/node_modules/@types/node/fs.d.ts +272 -11
- package/node_modules/@slack/logger/node_modules/@types/node/globals.d.ts +149 -346
- package/node_modules/@slack/logger/node_modules/@types/node/http.d.ts +71 -13
- package/node_modules/@slack/logger/node_modules/@types/node/http2.d.ts +149 -30
- package/node_modules/@slack/logger/node_modules/@types/node/https.d.ts +14 -12
- package/node_modules/@slack/logger/node_modules/@types/node/index.d.ts +9 -2
- package/node_modules/@slack/logger/node_modules/@types/node/inspector.d.ts +205 -4139
- package/node_modules/@slack/logger/node_modules/@types/node/inspector.generated.d.ts +4233 -0
- package/node_modules/@slack/logger/node_modules/@types/node/module.d.ts +1 -0
- package/node_modules/@slack/logger/node_modules/@types/node/net.d.ts +26 -5
- package/node_modules/@slack/logger/node_modules/@types/node/os.d.ts +13 -3
- package/node_modules/@slack/logger/node_modules/@types/node/package.json +3 -3
- package/node_modules/@slack/logger/node_modules/@types/node/perf_hooks.d.ts +6 -8
- package/node_modules/@slack/logger/node_modules/@types/node/process.d.ts +7 -19
- package/node_modules/@slack/logger/node_modules/@types/node/readline/promises.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/sea.d.ts +9 -0
- package/node_modules/@slack/logger/node_modules/@types/node/sqlite.d.ts +40 -4
- package/node_modules/@slack/logger/node_modules/@types/node/stream/web.d.ts +6 -55
- package/node_modules/@slack/logger/node_modules/@types/node/stream.d.ts +38 -23
- package/node_modules/@slack/logger/node_modules/@types/node/test.d.ts +31 -26
- package/node_modules/@slack/logger/node_modules/@types/node/tls.d.ts +34 -2
- package/node_modules/@slack/logger/node_modules/@types/node/ts5.6/index.d.ts +9 -2
- package/node_modules/@slack/logger/node_modules/@types/node/ts5.7/index.d.ts +9 -2
- package/node_modules/@slack/logger/node_modules/@types/node/url.d.ts +14 -6
- package/node_modules/@slack/logger/node_modules/@types/node/util.d.ts +12 -5
- package/node_modules/@slack/logger/node_modules/@types/node/v8.d.ts +18 -2
- package/node_modules/@slack/logger/node_modules/@types/node/vm.d.ts +219 -96
- package/node_modules/@slack/logger/node_modules/@types/node/wasi.d.ts +22 -1
- package/node_modules/@slack/logger/node_modules/@types/node/web-globals/abortcontroller.d.ts +34 -0
- package/node_modules/@slack/logger/node_modules/@types/node/web-globals/crypto.d.ts +32 -0
- package/node_modules/@slack/logger/node_modules/@types/node/web-globals/domexception.d.ts +68 -0
- package/node_modules/@slack/logger/node_modules/@types/node/{dom-events.d.ts → web-globals/events.d.ts} +49 -51
- package/node_modules/@slack/logger/node_modules/@types/node/web-globals/fetch.d.ts +50 -0
- package/node_modules/@slack/logger/node_modules/@types/node/web-globals/navigator.d.ts +25 -0
- package/node_modules/@slack/logger/node_modules/@types/node/web-globals/storage.d.ts +24 -0
- package/node_modules/@slack/logger/node_modules/@types/node/web-globals/streams.d.ts +22 -0
- package/node_modules/@slack/logger/node_modules/@types/node/worker_threads.d.ts +123 -51
- package/node_modules/@slack/logger/node_modules/@types/node/zlib.d.ts +6 -0
- package/node_modules/@slack/logger/node_modules/undici-types/agent.d.ts +0 -4
- package/node_modules/@slack/logger/node_modules/undici-types/client.d.ts +0 -2
- package/node_modules/@slack/logger/node_modules/undici-types/diagnostics-channel.d.ts +9 -0
- package/node_modules/@slack/logger/node_modules/undici-types/dispatcher.d.ts +3 -8
- package/node_modules/@slack/logger/node_modules/undici-types/env-http-proxy-agent.d.ts +2 -1
- package/node_modules/@slack/logger/node_modules/undici-types/eventsource.d.ts +9 -4
- package/node_modules/@slack/logger/node_modules/undici-types/fetch.d.ts +1 -0
- package/node_modules/@slack/logger/node_modules/undici-types/h2c-client.d.ts +0 -2
- package/node_modules/@slack/logger/node_modules/undici-types/handlers.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/undici-types/index.d.ts +6 -1
- package/node_modules/@slack/logger/node_modules/undici-types/mock-client.d.ts +2 -0
- package/node_modules/@slack/logger/node_modules/undici-types/mock-interceptor.d.ts +2 -1
- package/node_modules/@slack/logger/node_modules/undici-types/mock-pool.d.ts +2 -0
- package/node_modules/@slack/logger/node_modules/undici-types/package.json +1 -1
- package/node_modules/@slack/logger/node_modules/undici-types/retry-handler.d.ts +9 -0
- package/node_modules/@slack/logger/node_modules/undici-types/snapshot-agent.d.ts +107 -0
- package/node_modules/@slack/logger/node_modules/undici-types/webidl.d.ts +29 -15
- package/node_modules/@slack/logger/node_modules/undici-types/websocket.d.ts +3 -1
- package/node_modules/@slack/types/dist/block-kit/block-elements.d.ts +134 -58
- package/node_modules/@slack/types/dist/block-kit/block-elements.d.ts.map +1 -1
- package/node_modules/@slack/types/dist/block-kit/block-elements.js +1 -1
- package/node_modules/@slack/types/dist/block-kit/block-elements.js.map +1 -1
- package/node_modules/@slack/types/dist/block-kit/blocks.d.ts +62 -29
- package/node_modules/@slack/types/dist/block-kit/blocks.d.ts.map +1 -1
- package/node_modules/@slack/types/dist/block-kit/composition-objects.d.ts +19 -19
- package/node_modules/@slack/types/dist/block-kit/composition-objects.js +1 -1
- package/node_modules/@slack/types/dist/block-kit/composition-objects.js.map +1 -1
- package/node_modules/@slack/types/dist/block-kit/extensions.d.ts +5 -5
- package/node_modules/@slack/types/dist/calls.d.ts +1 -1
- package/node_modules/@slack/types/dist/calls.js +2 -2
- package/node_modules/@slack/types/dist/calls.js.map +1 -1
- package/node_modules/@slack/types/dist/dialog.d.ts +1 -1
- package/node_modules/@slack/types/dist/events/index.d.ts +1 -1
- package/node_modules/@slack/types/dist/events/message.d.ts +1 -0
- package/node_modules/@slack/types/dist/events/message.d.ts.map +1 -1
- package/node_modules/@slack/types/dist/message-attachments.d.ts +10 -10
- package/node_modules/@slack/types/dist/message-metadata.d.ts +2 -2
- package/node_modules/@slack/types/dist/views.d.ts +6 -6
- package/node_modules/@slack/types/package.json +6 -3
- package/node_modules/@slack/web-api/README.md +14 -14
- package/node_modules/@slack/web-api/dist/WebClient.d.ts +38 -11
- package/node_modules/@slack/web-api/dist/WebClient.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/WebClient.js +53 -9
- package/node_modules/@slack/web-api/dist/WebClient.js.map +1 -1
- package/node_modules/@slack/web-api/dist/chat-stream.d.ts +86 -0
- package/node_modules/@slack/web-api/dist/chat-stream.d.ts.map +1 -0
- package/node_modules/@slack/web-api/dist/chat-stream.js +149 -0
- package/node_modules/@slack/web-api/dist/chat-stream.js.map +1 -0
- package/node_modules/@slack/web-api/dist/file-upload.d.ts +2 -2
- package/node_modules/@slack/web-api/dist/file-upload.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/file-upload.js +3 -2
- package/node_modules/@slack/web-api/dist/file-upload.js.map +1 -1
- package/node_modules/@slack/web-api/dist/index.d.ts +5 -5
- package/node_modules/@slack/web-api/dist/index.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/index.js +10 -9
- package/node_modules/@slack/web-api/dist/index.js.map +1 -1
- package/node_modules/@slack/web-api/dist/instrument.js +1 -1
- package/node_modules/@slack/web-api/dist/instrument.js.map +1 -1
- package/node_modules/@slack/web-api/dist/logger.d.ts +1 -1
- package/node_modules/@slack/web-api/dist/logger.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/methods.d.ts +297 -263
- package/node_modules/@slack/web-api/dist/methods.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/methods.js +297 -263
- package/node_modules/@slack/web-api/dist/methods.js.map +1 -1
- package/node_modules/@slack/web-api/dist/types/request/admin/analytics.d.ts +2 -2
- package/node_modules/@slack/web-api/dist/types/request/admin/conversations.d.ts +1 -1
- package/node_modules/@slack/web-api/dist/types/request/admin/roles.d.ts +2 -2
- package/node_modules/@slack/web-api/dist/types/request/assistant.d.ts +3 -1
- package/node_modules/@slack/web-api/dist/types/request/assistant.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/request/calls.d.ts +1 -1
- package/node_modules/@slack/web-api/dist/types/request/chat.d.ts +39 -10
- package/node_modules/@slack/web-api/dist/types/request/chat.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/request/common.d.ts +1 -1
- package/node_modules/@slack/web-api/dist/types/request/files.d.ts +3 -3
- package/node_modules/@slack/web-api/dist/types/request/index.d.ts +32 -32
- package/node_modules/@slack/web-api/dist/types/request/index.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/request/manifest.d.ts +34 -34
- package/node_modules/@slack/web-api/dist/types/request/manifest.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/request/oauth.d.ts +1 -1
- package/node_modules/@slack/web-api/dist/types/request/oauth.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/request/reminders.d.ts +1 -1
- package/node_modules/@slack/web-api/dist/types/request/rtm.d.ts +1 -1
- package/node_modules/@slack/web-api/dist/types/request/search.d.ts +1 -1
- package/node_modules/@slack/web-api/dist/types/request/users.d.ts +3 -3
- package/node_modules/@slack/web-api/dist/types/request/views.d.ts +2 -2
- package/node_modules/@slack/web-api/dist/types/request/views.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/request/workflows.d.ts +40 -0
- package/node_modules/@slack/web-api/dist/types/request/workflows.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/ChatAppendStreamResponse.d.ts +10 -0
- package/node_modules/@slack/web-api/dist/types/response/ChatAppendStreamResponse.d.ts.map +1 -0
- package/node_modules/@slack/web-api/dist/types/response/ChatAppendStreamResponse.js +3 -0
- package/node_modules/@slack/web-api/dist/types/response/ChatAppendStreamResponse.js.map +1 -0
- package/node_modules/@slack/web-api/dist/types/response/ChatStartStreamResponse.d.ts +10 -0
- package/node_modules/@slack/web-api/dist/types/response/ChatStartStreamResponse.d.ts.map +1 -0
- package/node_modules/@slack/web-api/dist/types/response/ChatStartStreamResponse.js +3 -0
- package/node_modules/@slack/web-api/dist/types/response/ChatStartStreamResponse.js.map +1 -0
- package/node_modules/@slack/web-api/dist/types/response/ChatStopStreamResponse.d.ts +24 -0
- package/node_modules/@slack/web-api/dist/types/response/ChatStopStreamResponse.d.ts.map +1 -0
- package/node_modules/@slack/web-api/dist/types/response/ChatStopStreamResponse.js +3 -0
- package/node_modules/@slack/web-api/dist/types/response/ChatStopStreamResponse.js.map +1 -0
- package/node_modules/@slack/web-api/dist/types/response/WorkflowsFeaturedAddResponse.d.ts +3 -0
- package/node_modules/@slack/web-api/dist/types/response/WorkflowsFeaturedAddResponse.d.ts.map +1 -0
- package/node_modules/@slack/web-api/dist/types/response/WorkflowsFeaturedAddResponse.js +3 -0
- package/node_modules/@slack/web-api/dist/types/response/WorkflowsFeaturedAddResponse.js.map +1 -0
- package/node_modules/@slack/web-api/dist/types/response/WorkflowsFeaturedListResponse.d.ts +11 -0
- package/node_modules/@slack/web-api/dist/types/response/WorkflowsFeaturedListResponse.d.ts.map +1 -0
- package/node_modules/@slack/web-api/dist/types/response/WorkflowsFeaturedListResponse.js +3 -0
- package/node_modules/@slack/web-api/dist/types/response/WorkflowsFeaturedListResponse.js.map +1 -0
- package/node_modules/@slack/web-api/dist/types/response/WorkflowsFeaturedRemoveResponse.d.ts +3 -0
- package/node_modules/@slack/web-api/dist/types/response/WorkflowsFeaturedRemoveResponse.d.ts.map +1 -0
- package/node_modules/@slack/web-api/dist/types/response/WorkflowsFeaturedRemoveResponse.js +3 -0
- package/node_modules/@slack/web-api/dist/types/response/WorkflowsFeaturedRemoveResponse.js.map +1 -0
- package/node_modules/@slack/web-api/dist/types/response/WorkflowsFeaturedSetResponse.d.ts +3 -0
- package/node_modules/@slack/web-api/dist/types/response/WorkflowsFeaturedSetResponse.d.ts.map +1 -0
- package/node_modules/@slack/web-api/dist/types/response/WorkflowsFeaturedSetResponse.js +3 -0
- package/node_modules/@slack/web-api/dist/types/response/WorkflowsFeaturedSetResponse.js.map +1 -0
- package/node_modules/@slack/web-api/dist/types/response/index.d.ts +15 -8
- package/node_modules/@slack/web-api/dist/types/response/index.d.ts.map +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/README.md +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/assert/strict.d.ts +105 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/assert.d.ts +119 -95
- package/node_modules/@slack/web-api/node_modules/@types/node/buffer.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/child_process.d.ts +16 -10
- package/node_modules/@slack/web-api/node_modules/@types/node/cluster.d.ts +4 -5
- package/node_modules/@slack/web-api/node_modules/@types/node/crypto.d.ts +1049 -198
- package/node_modules/@slack/web-api/node_modules/@types/node/diagnostics_channel.d.ts +0 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/dns.d.ts +6 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/events.d.ts +80 -34
- package/node_modules/@slack/web-api/node_modules/@types/node/fs/promises.d.ts +22 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/fs.d.ts +272 -11
- package/node_modules/@slack/web-api/node_modules/@types/node/globals.d.ts +149 -346
- package/node_modules/@slack/web-api/node_modules/@types/node/http.d.ts +71 -13
- package/node_modules/@slack/web-api/node_modules/@types/node/http2.d.ts +149 -30
- package/node_modules/@slack/web-api/node_modules/@types/node/https.d.ts +14 -12
- package/node_modules/@slack/web-api/node_modules/@types/node/index.d.ts +9 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/inspector.d.ts +205 -4139
- package/node_modules/@slack/web-api/node_modules/@types/node/inspector.generated.d.ts +4233 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/module.d.ts +1 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/net.d.ts +26 -5
- package/node_modules/@slack/web-api/node_modules/@types/node/os.d.ts +13 -3
- package/node_modules/@slack/web-api/node_modules/@types/node/package.json +3 -3
- package/node_modules/@slack/web-api/node_modules/@types/node/perf_hooks.d.ts +6 -8
- package/node_modules/@slack/web-api/node_modules/@types/node/process.d.ts +7 -19
- package/node_modules/@slack/web-api/node_modules/@types/node/readline/promises.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/sea.d.ts +9 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/sqlite.d.ts +40 -4
- package/node_modules/@slack/web-api/node_modules/@types/node/stream/web.d.ts +6 -55
- package/node_modules/@slack/web-api/node_modules/@types/node/stream.d.ts +38 -23
- package/node_modules/@slack/web-api/node_modules/@types/node/test.d.ts +31 -26
- package/node_modules/@slack/web-api/node_modules/@types/node/tls.d.ts +34 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/ts5.6/index.d.ts +9 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/ts5.7/index.d.ts +9 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/url.d.ts +14 -6
- package/node_modules/@slack/web-api/node_modules/@types/node/util.d.ts +12 -5
- package/node_modules/@slack/web-api/node_modules/@types/node/v8.d.ts +18 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/vm.d.ts +219 -96
- package/node_modules/@slack/web-api/node_modules/@types/node/wasi.d.ts +22 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/web-globals/abortcontroller.d.ts +34 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/web-globals/crypto.d.ts +32 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/web-globals/domexception.d.ts +68 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/{dom-events.d.ts → web-globals/events.d.ts} +49 -51
- package/node_modules/@slack/web-api/node_modules/@types/node/web-globals/fetch.d.ts +50 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/web-globals/navigator.d.ts +25 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/web-globals/storage.d.ts +24 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/web-globals/streams.d.ts +22 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/worker_threads.d.ts +123 -51
- package/node_modules/@slack/web-api/node_modules/@types/node/zlib.d.ts +6 -0
- package/node_modules/@slack/web-api/node_modules/undici-types/agent.d.ts +0 -4
- package/node_modules/@slack/web-api/node_modules/undici-types/client.d.ts +0 -2
- package/node_modules/@slack/web-api/node_modules/undici-types/diagnostics-channel.d.ts +9 -0
- package/node_modules/@slack/web-api/node_modules/undici-types/dispatcher.d.ts +3 -8
- package/node_modules/@slack/web-api/node_modules/undici-types/env-http-proxy-agent.d.ts +2 -1
- package/node_modules/@slack/web-api/node_modules/undici-types/eventsource.d.ts +9 -4
- package/node_modules/@slack/web-api/node_modules/undici-types/fetch.d.ts +1 -0
- package/node_modules/@slack/web-api/node_modules/undici-types/h2c-client.d.ts +0 -2
- package/node_modules/@slack/web-api/node_modules/undici-types/handlers.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/undici-types/index.d.ts +6 -1
- package/node_modules/@slack/web-api/node_modules/undici-types/mock-client.d.ts +2 -0
- package/node_modules/@slack/web-api/node_modules/undici-types/mock-interceptor.d.ts +2 -1
- package/node_modules/@slack/web-api/node_modules/undici-types/mock-pool.d.ts +2 -0
- package/node_modules/@slack/web-api/node_modules/undici-types/package.json +1 -1
- package/node_modules/@slack/web-api/node_modules/undici-types/retry-handler.d.ts +9 -0
- package/node_modules/@slack/web-api/node_modules/undici-types/snapshot-agent.d.ts +107 -0
- package/node_modules/@slack/web-api/node_modules/undici-types/webidl.d.ts +29 -15
- package/node_modules/@slack/web-api/node_modules/undici-types/websocket.d.ts +3 -1
- package/node_modules/@slack/web-api/package.json +25 -10
- package/node_modules/@types/cacheable-request/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/assert/strict.d.ts +105 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/assert.d.ts +119 -95
- package/node_modules/@types/cacheable-request/node_modules/@types/node/buffer.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/child_process.d.ts +16 -10
- package/node_modules/@types/cacheable-request/node_modules/@types/node/cluster.d.ts +4 -5
- package/node_modules/@types/cacheable-request/node_modules/@types/node/crypto.d.ts +1049 -198
- package/node_modules/@types/cacheable-request/node_modules/@types/node/diagnostics_channel.d.ts +0 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/dns.d.ts +6 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/events.d.ts +80 -34
- package/node_modules/@types/cacheable-request/node_modules/@types/node/fs/promises.d.ts +22 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/fs.d.ts +272 -11
- package/node_modules/@types/cacheable-request/node_modules/@types/node/globals.d.ts +149 -346
- package/node_modules/@types/cacheable-request/node_modules/@types/node/http.d.ts +71 -13
- package/node_modules/@types/cacheable-request/node_modules/@types/node/http2.d.ts +149 -30
- package/node_modules/@types/cacheable-request/node_modules/@types/node/https.d.ts +14 -12
- package/node_modules/@types/cacheable-request/node_modules/@types/node/index.d.ts +9 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/inspector.d.ts +205 -4139
- package/node_modules/@types/cacheable-request/node_modules/@types/node/inspector.generated.d.ts +4233 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/module.d.ts +1 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/net.d.ts +26 -5
- package/node_modules/@types/cacheable-request/node_modules/@types/node/os.d.ts +13 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +3 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/perf_hooks.d.ts +6 -8
- package/node_modules/@types/cacheable-request/node_modules/@types/node/process.d.ts +7 -19
- package/node_modules/@types/cacheable-request/node_modules/@types/node/readline/promises.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/sea.d.ts +9 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/sqlite.d.ts +40 -4
- package/node_modules/@types/cacheable-request/node_modules/@types/node/stream/web.d.ts +6 -55
- package/node_modules/@types/cacheable-request/node_modules/@types/node/stream.d.ts +38 -23
- package/node_modules/@types/cacheable-request/node_modules/@types/node/test.d.ts +31 -26
- package/node_modules/@types/cacheable-request/node_modules/@types/node/tls.d.ts +34 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts5.6/index.d.ts +9 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts5.7/index.d.ts +9 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/url.d.ts +14 -6
- package/node_modules/@types/cacheable-request/node_modules/@types/node/util.d.ts +12 -5
- package/node_modules/@types/cacheable-request/node_modules/@types/node/v8.d.ts +18 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/vm.d.ts +219 -96
- package/node_modules/@types/cacheable-request/node_modules/@types/node/wasi.d.ts +22 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/web-globals/abortcontroller.d.ts +34 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/web-globals/crypto.d.ts +32 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/web-globals/domexception.d.ts +68 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/{dom-events.d.ts → web-globals/events.d.ts} +49 -51
- package/node_modules/@types/cacheable-request/node_modules/@types/node/web-globals/fetch.d.ts +50 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/web-globals/navigator.d.ts +25 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/web-globals/storage.d.ts +24 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/web-globals/streams.d.ts +22 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/worker_threads.d.ts +123 -51
- package/node_modules/@types/cacheable-request/node_modules/@types/node/zlib.d.ts +6 -0
- package/node_modules/@types/cacheable-request/node_modules/undici-types/agent.d.ts +0 -4
- package/node_modules/@types/cacheable-request/node_modules/undici-types/client.d.ts +0 -2
- package/node_modules/@types/cacheable-request/node_modules/undici-types/diagnostics-channel.d.ts +9 -0
- package/node_modules/@types/cacheable-request/node_modules/undici-types/dispatcher.d.ts +3 -8
- package/node_modules/@types/cacheable-request/node_modules/undici-types/env-http-proxy-agent.d.ts +2 -1
- package/node_modules/@types/cacheable-request/node_modules/undici-types/eventsource.d.ts +9 -4
- package/node_modules/@types/cacheable-request/node_modules/undici-types/fetch.d.ts +1 -0
- package/node_modules/@types/cacheable-request/node_modules/undici-types/h2c-client.d.ts +0 -2
- package/node_modules/@types/cacheable-request/node_modules/undici-types/handlers.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/undici-types/index.d.ts +6 -1
- package/node_modules/@types/cacheable-request/node_modules/undici-types/mock-client.d.ts +2 -0
- package/node_modules/@types/cacheable-request/node_modules/undici-types/mock-interceptor.d.ts +2 -1
- package/node_modules/@types/cacheable-request/node_modules/undici-types/mock-pool.d.ts +2 -0
- package/node_modules/@types/cacheable-request/node_modules/undici-types/package.json +1 -1
- package/node_modules/@types/cacheable-request/node_modules/undici-types/retry-handler.d.ts +9 -0
- package/node_modules/@types/cacheable-request/node_modules/undici-types/snapshot-agent.d.ts +107 -0
- package/node_modules/@types/cacheable-request/node_modules/undici-types/webidl.d.ts +29 -15
- package/node_modules/@types/cacheable-request/node_modules/undici-types/websocket.d.ts +3 -1
- package/node_modules/@types/keyv/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/assert/strict.d.ts +105 -2
- package/node_modules/@types/keyv/node_modules/@types/node/assert.d.ts +119 -95
- package/node_modules/@types/keyv/node_modules/@types/node/buffer.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/child_process.d.ts +16 -10
- package/node_modules/@types/keyv/node_modules/@types/node/cluster.d.ts +4 -5
- package/node_modules/@types/keyv/node_modules/@types/node/crypto.d.ts +1049 -198
- package/node_modules/@types/keyv/node_modules/@types/node/diagnostics_channel.d.ts +0 -2
- package/node_modules/@types/keyv/node_modules/@types/node/dns.d.ts +6 -1
- package/node_modules/@types/keyv/node_modules/@types/node/events.d.ts +80 -34
- package/node_modules/@types/keyv/node_modules/@types/node/fs/promises.d.ts +22 -0
- package/node_modules/@types/keyv/node_modules/@types/node/fs.d.ts +272 -11
- package/node_modules/@types/keyv/node_modules/@types/node/globals.d.ts +149 -346
- package/node_modules/@types/keyv/node_modules/@types/node/http.d.ts +71 -13
- package/node_modules/@types/keyv/node_modules/@types/node/http2.d.ts +149 -30
- package/node_modules/@types/keyv/node_modules/@types/node/https.d.ts +14 -12
- package/node_modules/@types/keyv/node_modules/@types/node/index.d.ts +9 -2
- package/node_modules/@types/keyv/node_modules/@types/node/inspector.d.ts +205 -4139
- package/node_modules/@types/keyv/node_modules/@types/node/inspector.generated.d.ts +4233 -0
- package/node_modules/@types/keyv/node_modules/@types/node/module.d.ts +1 -0
- package/node_modules/@types/keyv/node_modules/@types/node/net.d.ts +26 -5
- package/node_modules/@types/keyv/node_modules/@types/node/os.d.ts +13 -3
- package/node_modules/@types/keyv/node_modules/@types/node/package.json +3 -3
- package/node_modules/@types/keyv/node_modules/@types/node/perf_hooks.d.ts +6 -8
- package/node_modules/@types/keyv/node_modules/@types/node/process.d.ts +7 -19
- package/node_modules/@types/keyv/node_modules/@types/node/readline/promises.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/sea.d.ts +9 -0
- package/node_modules/@types/keyv/node_modules/@types/node/sqlite.d.ts +40 -4
- package/node_modules/@types/keyv/node_modules/@types/node/stream/web.d.ts +6 -55
- package/node_modules/@types/keyv/node_modules/@types/node/stream.d.ts +38 -23
- package/node_modules/@types/keyv/node_modules/@types/node/test.d.ts +31 -26
- package/node_modules/@types/keyv/node_modules/@types/node/tls.d.ts +34 -2
- package/node_modules/@types/keyv/node_modules/@types/node/ts5.6/index.d.ts +9 -2
- package/node_modules/@types/keyv/node_modules/@types/node/ts5.7/index.d.ts +9 -2
- package/node_modules/@types/keyv/node_modules/@types/node/url.d.ts +14 -6
- package/node_modules/@types/keyv/node_modules/@types/node/util.d.ts +12 -5
- package/node_modules/@types/keyv/node_modules/@types/node/v8.d.ts +18 -2
- package/node_modules/@types/keyv/node_modules/@types/node/vm.d.ts +219 -96
- package/node_modules/@types/keyv/node_modules/@types/node/wasi.d.ts +22 -1
- package/node_modules/@types/keyv/node_modules/@types/node/web-globals/abortcontroller.d.ts +34 -0
- package/node_modules/@types/keyv/node_modules/@types/node/web-globals/crypto.d.ts +32 -0
- package/node_modules/@types/keyv/node_modules/@types/node/web-globals/domexception.d.ts +68 -0
- package/node_modules/@types/keyv/node_modules/@types/node/{dom-events.d.ts → web-globals/events.d.ts} +49 -51
- package/node_modules/@types/keyv/node_modules/@types/node/web-globals/fetch.d.ts +50 -0
- package/node_modules/@types/keyv/node_modules/@types/node/web-globals/navigator.d.ts +25 -0
- package/node_modules/@types/keyv/node_modules/@types/node/web-globals/storage.d.ts +24 -0
- package/node_modules/@types/keyv/node_modules/@types/node/web-globals/streams.d.ts +22 -0
- package/node_modules/@types/keyv/node_modules/@types/node/worker_threads.d.ts +123 -51
- package/node_modules/@types/keyv/node_modules/@types/node/zlib.d.ts +6 -0
- package/node_modules/@types/keyv/node_modules/undici-types/agent.d.ts +0 -4
- package/node_modules/@types/keyv/node_modules/undici-types/client.d.ts +0 -2
- package/node_modules/@types/keyv/node_modules/undici-types/diagnostics-channel.d.ts +9 -0
- package/node_modules/@types/keyv/node_modules/undici-types/dispatcher.d.ts +3 -8
- package/node_modules/@types/keyv/node_modules/undici-types/env-http-proxy-agent.d.ts +2 -1
- package/node_modules/@types/keyv/node_modules/undici-types/eventsource.d.ts +9 -4
- package/node_modules/@types/keyv/node_modules/undici-types/fetch.d.ts +1 -0
- package/node_modules/@types/keyv/node_modules/undici-types/h2c-client.d.ts +0 -2
- package/node_modules/@types/keyv/node_modules/undici-types/handlers.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/undici-types/index.d.ts +6 -1
- package/node_modules/@types/keyv/node_modules/undici-types/mock-client.d.ts +2 -0
- package/node_modules/@types/keyv/node_modules/undici-types/mock-interceptor.d.ts +2 -1
- package/node_modules/@types/keyv/node_modules/undici-types/mock-pool.d.ts +2 -0
- package/node_modules/@types/keyv/node_modules/undici-types/package.json +1 -1
- package/node_modules/@types/keyv/node_modules/undici-types/retry-handler.d.ts +9 -0
- package/node_modules/@types/keyv/node_modules/undici-types/snapshot-agent.d.ts +107 -0
- package/node_modules/@types/keyv/node_modules/undici-types/webidl.d.ts +29 -15
- package/node_modules/@types/keyv/node_modules/undici-types/websocket.d.ts +3 -1
- package/node_modules/@types/responselike/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/assert/strict.d.ts +105 -2
- package/node_modules/@types/responselike/node_modules/@types/node/assert.d.ts +119 -95
- package/node_modules/@types/responselike/node_modules/@types/node/buffer.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/child_process.d.ts +16 -10
- package/node_modules/@types/responselike/node_modules/@types/node/cluster.d.ts +4 -5
- package/node_modules/@types/responselike/node_modules/@types/node/crypto.d.ts +1049 -198
- package/node_modules/@types/responselike/node_modules/@types/node/diagnostics_channel.d.ts +0 -2
- package/node_modules/@types/responselike/node_modules/@types/node/dns.d.ts +6 -1
- package/node_modules/@types/responselike/node_modules/@types/node/events.d.ts +80 -34
- package/node_modules/@types/responselike/node_modules/@types/node/fs/promises.d.ts +22 -0
- package/node_modules/@types/responselike/node_modules/@types/node/fs.d.ts +272 -11
- package/node_modules/@types/responselike/node_modules/@types/node/globals.d.ts +149 -346
- package/node_modules/@types/responselike/node_modules/@types/node/http.d.ts +71 -13
- package/node_modules/@types/responselike/node_modules/@types/node/http2.d.ts +149 -30
- package/node_modules/@types/responselike/node_modules/@types/node/https.d.ts +14 -12
- package/node_modules/@types/responselike/node_modules/@types/node/index.d.ts +9 -2
- package/node_modules/@types/responselike/node_modules/@types/node/inspector.d.ts +205 -4139
- package/node_modules/@types/responselike/node_modules/@types/node/inspector.generated.d.ts +4233 -0
- package/node_modules/@types/responselike/node_modules/@types/node/module.d.ts +1 -0
- package/node_modules/@types/responselike/node_modules/@types/node/net.d.ts +26 -5
- package/node_modules/@types/responselike/node_modules/@types/node/os.d.ts +13 -3
- package/node_modules/@types/responselike/node_modules/@types/node/package.json +3 -3
- package/node_modules/@types/responselike/node_modules/@types/node/perf_hooks.d.ts +6 -8
- package/node_modules/@types/responselike/node_modules/@types/node/process.d.ts +7 -19
- package/node_modules/@types/responselike/node_modules/@types/node/readline/promises.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/sea.d.ts +9 -0
- package/node_modules/@types/responselike/node_modules/@types/node/sqlite.d.ts +40 -4
- package/node_modules/@types/responselike/node_modules/@types/node/stream/web.d.ts +6 -55
- package/node_modules/@types/responselike/node_modules/@types/node/stream.d.ts +38 -23
- package/node_modules/@types/responselike/node_modules/@types/node/test.d.ts +31 -26
- package/node_modules/@types/responselike/node_modules/@types/node/tls.d.ts +34 -2
- package/node_modules/@types/responselike/node_modules/@types/node/ts5.6/index.d.ts +9 -2
- package/node_modules/@types/responselike/node_modules/@types/node/ts5.7/index.d.ts +9 -2
- package/node_modules/@types/responselike/node_modules/@types/node/url.d.ts +14 -6
- package/node_modules/@types/responselike/node_modules/@types/node/util.d.ts +12 -5
- package/node_modules/@types/responselike/node_modules/@types/node/v8.d.ts +18 -2
- package/node_modules/@types/responselike/node_modules/@types/node/vm.d.ts +219 -96
- package/node_modules/@types/responselike/node_modules/@types/node/wasi.d.ts +22 -1
- package/node_modules/@types/responselike/node_modules/@types/node/web-globals/abortcontroller.d.ts +34 -0
- package/node_modules/@types/responselike/node_modules/@types/node/web-globals/crypto.d.ts +32 -0
- package/node_modules/@types/responselike/node_modules/@types/node/web-globals/domexception.d.ts +68 -0
- package/node_modules/@types/responselike/node_modules/@types/node/web-globals/events.d.ts +97 -0
- package/node_modules/@types/responselike/node_modules/@types/node/web-globals/fetch.d.ts +50 -0
- package/node_modules/@types/responselike/node_modules/@types/node/web-globals/navigator.d.ts +25 -0
- package/node_modules/@types/responselike/node_modules/@types/node/web-globals/storage.d.ts +24 -0
- package/node_modules/@types/responselike/node_modules/@types/node/web-globals/streams.d.ts +22 -0
- package/node_modules/@types/responselike/node_modules/@types/node/worker_threads.d.ts +123 -51
- package/node_modules/@types/responselike/node_modules/@types/node/zlib.d.ts +6 -0
- package/node_modules/@types/responselike/node_modules/undici-types/agent.d.ts +0 -4
- package/node_modules/@types/responselike/node_modules/undici-types/client.d.ts +0 -2
- package/node_modules/@types/responselike/node_modules/undici-types/diagnostics-channel.d.ts +9 -0
- package/node_modules/@types/responselike/node_modules/undici-types/dispatcher.d.ts +3 -8
- package/node_modules/@types/responselike/node_modules/undici-types/env-http-proxy-agent.d.ts +2 -1
- package/node_modules/@types/responselike/node_modules/undici-types/eventsource.d.ts +9 -4
- package/node_modules/@types/responselike/node_modules/undici-types/fetch.d.ts +1 -0
- package/node_modules/@types/responselike/node_modules/undici-types/h2c-client.d.ts +0 -2
- package/node_modules/@types/responselike/node_modules/undici-types/handlers.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/undici-types/index.d.ts +6 -1
- package/node_modules/@types/responselike/node_modules/undici-types/mock-client.d.ts +2 -0
- package/node_modules/@types/responselike/node_modules/undici-types/mock-interceptor.d.ts +2 -1
- package/node_modules/@types/responselike/node_modules/undici-types/mock-pool.d.ts +2 -0
- package/node_modules/@types/responselike/node_modules/undici-types/package.json +1 -1
- package/node_modules/@types/responselike/node_modules/undici-types/retry-handler.d.ts +9 -0
- package/node_modules/@types/responselike/node_modules/undici-types/snapshot-agent.d.ts +107 -0
- package/node_modules/@types/responselike/node_modules/undici-types/webidl.d.ts +29 -15
- package/node_modules/@types/responselike/node_modules/undici-types/websocket.d.ts +3 -1
- package/node_modules/axios/CHANGELOG.md +58 -0
- package/node_modules/axios/README.md +87 -10
- package/node_modules/axios/dist/axios.js +355 -289
- package/node_modules/axios/dist/axios.js.map +1 -1
- package/node_modules/axios/dist/axios.min.js +2 -2
- package/node_modules/axios/dist/axios.min.js.map +1 -1
- package/node_modules/axios/dist/browser/axios.cjs +286 -213
- package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
- package/node_modules/axios/dist/esm/axios.js +286 -213
- package/node_modules/axios/dist/esm/axios.js.map +1 -1
- package/node_modules/axios/dist/esm/axios.min.js +2 -2
- package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
- package/node_modules/axios/dist/node/axios.cjs +377 -213
- package/node_modules/axios/dist/node/axios.cjs.map +1 -1
- package/node_modules/axios/index.d.cts +12 -5
- package/node_modules/axios/index.d.ts +13 -4
- package/node_modules/axios/lib/adapters/adapters.js +6 -4
- package/node_modules/axios/lib/adapters/fetch.js +221 -162
- package/node_modules/axios/lib/adapters/http.js +18 -0
- package/node_modules/axios/lib/adapters/xhr.js +11 -8
- package/node_modules/axios/lib/core/Axios.js +0 -2
- package/node_modules/axios/lib/core/AxiosError.js +10 -3
- package/node_modules/axios/lib/core/dispatchRequest.js +1 -1
- package/node_modules/axios/lib/defaults/index.js +1 -1
- package/node_modules/axios/lib/env/data.js +1 -1
- package/node_modules/axios/lib/helpers/buildURL.js +1 -3
- package/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js +73 -0
- package/node_modules/axios/lib/helpers/resolveConfig.js +13 -9
- package/node_modules/axios/lib/utils.js +5 -3
- package/node_modules/axios/package.json +18 -12
- package/node_modules/mjml/package.json +8 -9
- package/node_modules/mjml-accordion/README.md +2 -1
- package/node_modules/mjml-accordion/lib/Accordion.js +3 -5
- package/node_modules/mjml-accordion/lib/AccordionElement.js +2 -3
- package/node_modules/mjml-accordion/lib/AccordionText.js +2 -3
- package/node_modules/mjml-accordion/lib/AccordionTitle.js +4 -3
- package/node_modules/mjml-accordion/package.json +4 -5
- package/node_modules/mjml-body/README.md +1 -1
- package/node_modules/mjml-body/lib/index.js +9 -4
- package/node_modules/mjml-body/package.json +4 -5
- package/node_modules/mjml-button/lib/index.js +2 -3
- package/node_modules/mjml-button/package.json +4 -5
- package/node_modules/mjml-carousel/lib/Carousel.js +4 -6
- package/node_modules/mjml-carousel/lib/CarouselImage.js +2 -3
- package/node_modules/mjml-carousel/package.json +4 -5
- package/node_modules/mjml-cli/lib/commands/watchFiles.js +4 -1
- package/node_modules/mjml-cli/package.json +7 -8
- package/node_modules/mjml-column/lib/index.js +2 -3
- package/node_modules/mjml-column/package.json +4 -5
- package/node_modules/mjml-core/lib/createComponent.js +12 -9
- package/node_modules/mjml-core/lib/index.js +2 -2
- package/node_modules/mjml-core/lib/types/boolean.js +2 -3
- package/node_modules/mjml-core/lib/types/color.js +2 -3
- package/node_modules/mjml-core/lib/types/enum.js +1 -1
- package/node_modules/mjml-core/lib/types/integer.js +1 -1
- package/node_modules/mjml-core/lib/types/string.js +1 -1
- package/node_modules/mjml-core/lib/types/type.js +1 -2
- package/node_modules/mjml-core/lib/types/unit.js +1 -1
- package/node_modules/mjml-core/package.json +6 -7
- package/node_modules/mjml-divider/lib/index.js +2 -3
- package/node_modules/mjml-divider/package.json +4 -5
- package/node_modules/mjml-group/lib/index.js +2 -3
- package/node_modules/mjml-group/package.json +4 -5
- package/node_modules/mjml-head/lib/index.js +2 -3
- package/node_modules/mjml-head/package.json +4 -5
- package/node_modules/mjml-head-attributes/lib/index.js +2 -3
- package/node_modules/mjml-head-attributes/package.json +4 -5
- package/node_modules/mjml-head-breakpoint/lib/index.js +2 -3
- package/node_modules/mjml-head-breakpoint/package.json +4 -5
- package/node_modules/mjml-head-font/lib/index.js +2 -3
- package/node_modules/mjml-head-font/package.json +4 -5
- package/node_modules/mjml-head-html-attributes/lib/index.js +2 -3
- package/node_modules/mjml-head-html-attributes/package.json +4 -5
- package/node_modules/mjml-head-preview/lib/index.js +2 -3
- package/node_modules/mjml-head-preview/package.json +4 -5
- package/node_modules/mjml-head-style/lib/index.js +2 -3
- package/node_modules/mjml-head-style/package.json +4 -5
- package/node_modules/mjml-head-title/lib/index.js +2 -3
- package/node_modules/mjml-head-title/package.json +4 -5
- package/node_modules/mjml-hero/lib/index.js +3 -5
- package/node_modules/mjml-hero/package.json +4 -5
- package/node_modules/mjml-image/lib/index.js +3 -5
- package/node_modules/mjml-image/package.json +4 -5
- package/node_modules/mjml-migrate/package.json +5 -6
- package/node_modules/mjml-navbar/lib/Navbar.js +3 -5
- package/node_modules/mjml-navbar/lib/NavbarLink.js +2 -3
- package/node_modules/mjml-navbar/package.json +4 -5
- package/node_modules/mjml-parser-xml/lib/index.js +1 -1
- package/node_modules/mjml-parser-xml/package.json +6 -6
- package/node_modules/mjml-preset-core/package.json +28 -29
- package/node_modules/mjml-raw/lib/index.js +2 -3
- package/node_modules/mjml-raw/package.json +4 -5
- package/node_modules/mjml-section/lib/index.js +18 -7
- package/node_modules/mjml-section/package.json +4 -5
- package/node_modules/mjml-social/README.md +1 -0
- package/node_modules/mjml-social/lib/Social.js +2 -3
- package/node_modules/mjml-social/lib/SocialElement.js +18 -9
- package/node_modules/mjml-social/package.json +4 -5
- package/node_modules/mjml-spacer/lib/index.js +2 -3
- package/node_modules/mjml-spacer/package.json +4 -5
- package/node_modules/mjml-table/README.md +1 -1
- package/node_modules/mjml-table/lib/index.js +6 -4
- package/node_modules/mjml-table/package.json +4 -5
- package/node_modules/mjml-text/lib/index.js +2 -3
- package/node_modules/mjml-text/package.json +4 -5
- package/node_modules/mjml-validator/package.json +3 -3
- package/node_modules/mjml-wrapper/lib/index.js +2 -3
- package/node_modules/mjml-wrapper/package.json +5 -6
- package/node_modules/semver/classes/range.js +1 -0
- package/node_modules/semver/classes/semver.js +19 -5
- package/node_modules/semver/internal/identifiers.js +4 -0
- package/node_modules/semver/package.json +3 -3
- package/package.json +20 -20
- package/node_modules/@types/responselike/node_modules/@types/node/dom-events.d.ts +0 -99
- package/node_modules/mjml/LICENSE.md +0 -21
- package/node_modules/mjml-accordion/LICENSE.md +0 -21
- package/node_modules/mjml-body/LICENSE.md +0 -21
- package/node_modules/mjml-button/LICENSE.md +0 -21
- package/node_modules/mjml-carousel/LICENSE.md +0 -21
- package/node_modules/mjml-cli/LICENSE.md +0 -21
- package/node_modules/mjml-cli/lib/helpers/promesify.js +0 -48
- package/node_modules/mjml-cli/lib/helpers/timePad.js +0 -18
- package/node_modules/mjml-column/LICENSE.md +0 -21
- package/node_modules/mjml-core/LICENSE.md +0 -21
- package/node_modules/mjml-core/lib/Error.js +0 -86
- package/node_modules/mjml-core/lib/MJMLElementsCollection.js +0 -37
- package/node_modules/mjml-core/lib/MJMLHead.js +0 -38
- package/node_modules/mjml-core/lib/MJMLRenderer.js +0 -275
- package/node_modules/mjml-core/lib/configs/defaultContainer.js +0 -15
- package/node_modules/mjml-core/lib/configs/defaultStyle.js +0 -6
- package/node_modules/mjml-core/lib/configs/listFontsImports.js +0 -21
- package/node_modules/mjml-core/lib/decorators/MJMLElement.js +0 -356
- package/node_modules/mjml-core/lib/helpers/colors.js +0 -7
- package/node_modules/mjml-core/lib/helpers/dom.js +0 -109
- package/node_modules/mjml-core/lib/helpers/html.js +0 -9
- package/node_modules/mjml-core/lib/helpers/importFonts.js +0 -46
- package/node_modules/mjml-core/lib/helpers/index.js +0 -40
- package/node_modules/mjml-core/lib/helpers/isBrowser.js +0 -11
- package/node_modules/mjml-core/lib/helpers/mjAttribute.js +0 -62
- package/node_modules/mjml-core/lib/helpers/mjml.js +0 -46
- package/node_modules/mjml-core/lib/helpers/parseAttributes.js +0 -29
- package/node_modules/mjml-core/lib/helpers/postRender.js +0 -33
- package/node_modules/mjml-core/lib/helpers/removeCDATA.js +0 -19
- package/node_modules/mjml-core/lib/helpers/traverseMJML.js +0 -41
- package/node_modules/mjml-core/lib/includeExternal.js +0 -92
- package/node_modules/mjml-core/lib/parsers/config.js +0 -130
- package/node_modules/mjml-core/lib/parsers/document.js +0 -189
- package/node_modules/mjml-divider/LICENSE.md +0 -21
- package/node_modules/mjml-group/LICENSE.md +0 -21
- package/node_modules/mjml-head/LICENSE.md +0 -21
- package/node_modules/mjml-head-attributes/LICENSE.md +0 -21
- package/node_modules/mjml-head-breakpoint/LICENSE.md +0 -21
- package/node_modules/mjml-head-font/LICENSE.md +0 -21
- package/node_modules/mjml-head-html-attributes/LICENSE.md +0 -21
- package/node_modules/mjml-head-preview/LICENSE.md +0 -21
- package/node_modules/mjml-head-style/LICENSE.md +0 -21
- package/node_modules/mjml-head-title/LICENSE.md +0 -21
- package/node_modules/mjml-hero/LICENSE.md +0 -21
- package/node_modules/mjml-image/LICENSE.md +0 -21
- package/node_modules/mjml-navbar/LICENSE.md +0 -21
- package/node_modules/mjml-navbar/lib/InlineLinks.js +0 -227
- package/node_modules/mjml-navbar/lib/Link.js +0 -130
- package/node_modules/mjml-parser-xml/lib/helpers/addCDATASection.js +0 -31
- package/node_modules/mjml-parser-xml/lib/helpers/parseAttributes.js +0 -37
- package/node_modules/mjml-preset-core/LICENSE.md +0 -21
- package/node_modules/mjml-raw/LICENSE.md +0 -21
- package/node_modules/mjml-section/LICENSE.md +0 -21
- package/node_modules/mjml-social/LICENSE.md +0 -21
- package/node_modules/mjml-spacer/LICENSE.md +0 -21
- package/node_modules/mjml-table/LICENSE.md +0 -21
- package/node_modules/mjml-text/LICENSE.md +0 -21
- package/node_modules/mjml-validator/lib/rules/index.js +0 -29
- package/node_modules/mjml-validator/lib/types/boolean.js +0 -57
- package/node_modules/mjml-validator/lib/types/color.js +0 -51
- package/node_modules/mjml-validator/lib/types/enum.js +0 -57
- package/node_modules/mjml-validator/lib/types/helpers/colors.js +0 -7
- package/node_modules/mjml-validator/lib/types/index.js +0 -41
- package/node_modules/mjml-validator/lib/types/integer.js +0 -47
- package/node_modules/mjml-validator/lib/types/string.js +0 -47
- package/node_modules/mjml-validator/lib/types/type.js +0 -93
- package/node_modules/mjml-validator/lib/types/unit.js +0 -57
- package/node_modules/mjml-wrapper/LICENSE.md +0 -21
|
@@ -510,50 +510,50 @@ declare module "crypto" {
|
|
|
510
510
|
format: "jwk";
|
|
511
511
|
}
|
|
512
512
|
interface JsonWebKey {
|
|
513
|
-
crv?: string
|
|
514
|
-
d?: string
|
|
515
|
-
dp?: string
|
|
516
|
-
dq?: string
|
|
517
|
-
e?: string
|
|
518
|
-
k?: string
|
|
519
|
-
kty?: string
|
|
520
|
-
n?: string
|
|
521
|
-
p?: string
|
|
522
|
-
q?: string
|
|
523
|
-
qi?: string
|
|
524
|
-
x?: string
|
|
525
|
-
y?: string
|
|
513
|
+
crv?: string;
|
|
514
|
+
d?: string;
|
|
515
|
+
dp?: string;
|
|
516
|
+
dq?: string;
|
|
517
|
+
e?: string;
|
|
518
|
+
k?: string;
|
|
519
|
+
kty?: string;
|
|
520
|
+
n?: string;
|
|
521
|
+
p?: string;
|
|
522
|
+
q?: string;
|
|
523
|
+
qi?: string;
|
|
524
|
+
x?: string;
|
|
525
|
+
y?: string;
|
|
526
526
|
[key: string]: unknown;
|
|
527
527
|
}
|
|
528
528
|
interface AsymmetricKeyDetails {
|
|
529
529
|
/**
|
|
530
530
|
* Key size in bits (RSA, DSA).
|
|
531
531
|
*/
|
|
532
|
-
modulusLength?: number
|
|
532
|
+
modulusLength?: number;
|
|
533
533
|
/**
|
|
534
534
|
* Public exponent (RSA).
|
|
535
535
|
*/
|
|
536
|
-
publicExponent?: bigint
|
|
536
|
+
publicExponent?: bigint;
|
|
537
537
|
/**
|
|
538
538
|
* Name of the message digest (RSA-PSS).
|
|
539
539
|
*/
|
|
540
|
-
hashAlgorithm?: string
|
|
540
|
+
hashAlgorithm?: string;
|
|
541
541
|
/**
|
|
542
542
|
* Name of the message digest used by MGF1 (RSA-PSS).
|
|
543
543
|
*/
|
|
544
|
-
mgf1HashAlgorithm?: string
|
|
544
|
+
mgf1HashAlgorithm?: string;
|
|
545
545
|
/**
|
|
546
546
|
* Minimal salt length in bytes (RSA-PSS).
|
|
547
547
|
*/
|
|
548
|
-
saltLength?: number
|
|
548
|
+
saltLength?: number;
|
|
549
549
|
/**
|
|
550
550
|
* Size of q in bits (DSA).
|
|
551
551
|
*/
|
|
552
|
-
divisorLength?: number
|
|
552
|
+
divisorLength?: number;
|
|
553
553
|
/**
|
|
554
554
|
* Name of the curve (EC).
|
|
555
555
|
*/
|
|
556
|
-
namedCurve?: string
|
|
556
|
+
namedCurve?: string;
|
|
557
557
|
}
|
|
558
558
|
/**
|
|
559
559
|
* Node.js uses a `KeyObject` class to represent a symmetric or asymmetric key,
|
|
@@ -591,24 +591,14 @@ declare module "crypto" {
|
|
|
591
591
|
*/
|
|
592
592
|
static from(key: webcrypto.CryptoKey): KeyObject;
|
|
593
593
|
/**
|
|
594
|
-
* For asymmetric keys, this property represents the type of the key.
|
|
595
|
-
* types
|
|
596
|
-
*
|
|
597
|
-
* * `'rsa'` (OID 1.2.840.113549.1.1.1)
|
|
598
|
-
* * `'rsa-pss'` (OID 1.2.840.113549.1.1.10)
|
|
599
|
-
* * `'dsa'` (OID 1.2.840.10040.4.1)
|
|
600
|
-
* * `'ec'` (OID 1.2.840.10045.2.1)
|
|
601
|
-
* * `'x25519'` (OID 1.3.101.110)
|
|
602
|
-
* * `'x448'` (OID 1.3.101.111)
|
|
603
|
-
* * `'ed25519'` (OID 1.3.101.112)
|
|
604
|
-
* * `'ed448'` (OID 1.3.101.113)
|
|
605
|
-
* * `'dh'` (OID 1.2.840.113549.1.3.1)
|
|
594
|
+
* For asymmetric keys, this property represents the type of the key. See the
|
|
595
|
+
* supported [asymmetric key types](https://nodejs.org/docs/latest-v24.x/api/crypto.html#asymmetric-key-types).
|
|
606
596
|
*
|
|
607
597
|
* This property is `undefined` for unrecognized `KeyObject` types and symmetric
|
|
608
598
|
* keys.
|
|
609
599
|
* @since v11.6.0
|
|
610
600
|
*/
|
|
611
|
-
asymmetricKeyType?: KeyType
|
|
601
|
+
asymmetricKeyType?: KeyType;
|
|
612
602
|
/**
|
|
613
603
|
* This property exists only on asymmetric keys. Depending on the type of the key,
|
|
614
604
|
* this object contains information about the key. None of the information obtained
|
|
@@ -622,7 +612,7 @@ declare module "crypto" {
|
|
|
622
612
|
* Other key details might be exposed via this API using additional attributes.
|
|
623
613
|
* @since v15.7.0
|
|
624
614
|
*/
|
|
625
|
-
asymmetricKeyDetails?: AsymmetricKeyDetails
|
|
615
|
+
asymmetricKeyDetails?: AsymmetricKeyDetails;
|
|
626
616
|
/**
|
|
627
617
|
* For symmetric keys, the following encoding options can be used:
|
|
628
618
|
*
|
|
@@ -661,7 +651,7 @@ declare module "crypto" {
|
|
|
661
651
|
* property is `undefined` for asymmetric keys.
|
|
662
652
|
* @since v11.6.0
|
|
663
653
|
*/
|
|
664
|
-
symmetricKeySize?: number
|
|
654
|
+
symmetricKeySize?: number;
|
|
665
655
|
/**
|
|
666
656
|
* Converts a `KeyObject` instance to a `CryptoKey`.
|
|
667
657
|
* @since 22.10.0
|
|
@@ -1320,6 +1310,7 @@ declare module "crypto" {
|
|
|
1320
1310
|
* @since v0.1.92
|
|
1321
1311
|
* @param options `stream.Writable` options
|
|
1322
1312
|
*/
|
|
1313
|
+
// TODO: signing algorithm type
|
|
1323
1314
|
function createSign(algorithm: string, options?: stream.WritableOptions): Sign;
|
|
1324
1315
|
type DSAEncoding = "der" | "ieee-p1363";
|
|
1325
1316
|
interface SigningOptions {
|
|
@@ -1329,6 +1320,7 @@ declare module "crypto" {
|
|
|
1329
1320
|
padding?: number | undefined;
|
|
1330
1321
|
saltLength?: number | undefined;
|
|
1331
1322
|
dsaEncoding?: DSAEncoding | undefined;
|
|
1323
|
+
context?: ArrayBuffer | NodeJS.ArrayBufferView | undefined;
|
|
1332
1324
|
}
|
|
1333
1325
|
interface SignPrivateKeyInput extends PrivateKeyInput, SigningOptions {}
|
|
1334
1326
|
interface SignKeyObjectInput extends SigningOptions {
|
|
@@ -2456,7 +2448,34 @@ declare module "crypto" {
|
|
|
2456
2448
|
* @since v6.6.0
|
|
2457
2449
|
*/
|
|
2458
2450
|
function timingSafeEqual(a: NodeJS.ArrayBufferView, b: NodeJS.ArrayBufferView): boolean;
|
|
2459
|
-
type KeyType =
|
|
2451
|
+
type KeyType =
|
|
2452
|
+
| "dh"
|
|
2453
|
+
| "dsa"
|
|
2454
|
+
| "ec"
|
|
2455
|
+
| "ed25519"
|
|
2456
|
+
| "ed448"
|
|
2457
|
+
| "ml-dsa-44"
|
|
2458
|
+
| "ml-dsa-65"
|
|
2459
|
+
| "ml-dsa-87"
|
|
2460
|
+
| "ml-kem-1024"
|
|
2461
|
+
| "ml-kem-512"
|
|
2462
|
+
| "ml-kem-768"
|
|
2463
|
+
| "rsa-pss"
|
|
2464
|
+
| "rsa"
|
|
2465
|
+
| "slh-dsa-sha2-128f"
|
|
2466
|
+
| "slh-dsa-sha2-128s"
|
|
2467
|
+
| "slh-dsa-sha2-192f"
|
|
2468
|
+
| "slh-dsa-sha2-192s"
|
|
2469
|
+
| "slh-dsa-sha2-256f"
|
|
2470
|
+
| "slh-dsa-sha2-256s"
|
|
2471
|
+
| "slh-dsa-shake-128f"
|
|
2472
|
+
| "slh-dsa-shake-128s"
|
|
2473
|
+
| "slh-dsa-shake-192f"
|
|
2474
|
+
| "slh-dsa-shake-192s"
|
|
2475
|
+
| "slh-dsa-shake-256f"
|
|
2476
|
+
| "slh-dsa-shake-256s"
|
|
2477
|
+
| "x25519"
|
|
2478
|
+
| "x448";
|
|
2460
2479
|
type KeyFormat = "pem" | "der" | "jwk";
|
|
2461
2480
|
interface BasePrivateKeyEncodingOptions<T extends KeyFormat> {
|
|
2462
2481
|
format: T;
|
|
@@ -2471,6 +2490,9 @@ declare module "crypto" {
|
|
|
2471
2490
|
interface ED448KeyPairKeyObjectOptions {}
|
|
2472
2491
|
interface X25519KeyPairKeyObjectOptions {}
|
|
2473
2492
|
interface X448KeyPairKeyObjectOptions {}
|
|
2493
|
+
interface MLDSAKeyPairKeyObjectOptions {}
|
|
2494
|
+
interface MLKEMKeyPairKeyObjectOptions {}
|
|
2495
|
+
interface SLHDSAKeyPairKeyObjectOptions {}
|
|
2474
2496
|
interface ECKeyPairKeyObjectOptions {
|
|
2475
2497
|
/**
|
|
2476
2498
|
* Name of the curve to use
|
|
@@ -2505,15 +2527,15 @@ declare module "crypto" {
|
|
|
2505
2527
|
/**
|
|
2506
2528
|
* Name of the message digest
|
|
2507
2529
|
*/
|
|
2508
|
-
hashAlgorithm?: string;
|
|
2530
|
+
hashAlgorithm?: string | undefined;
|
|
2509
2531
|
/**
|
|
2510
2532
|
* Name of the message digest used by MGF1
|
|
2511
2533
|
*/
|
|
2512
|
-
mgf1HashAlgorithm?: string;
|
|
2534
|
+
mgf1HashAlgorithm?: string | undefined;
|
|
2513
2535
|
/**
|
|
2514
2536
|
* Minimal salt length in bytes
|
|
2515
2537
|
*/
|
|
2516
|
-
saltLength?: string;
|
|
2538
|
+
saltLength?: string | undefined;
|
|
2517
2539
|
}
|
|
2518
2540
|
interface DSAKeyPairKeyObjectOptions {
|
|
2519
2541
|
/**
|
|
@@ -2556,15 +2578,15 @@ declare module "crypto" {
|
|
|
2556
2578
|
/**
|
|
2557
2579
|
* Name of the message digest
|
|
2558
2580
|
*/
|
|
2559
|
-
hashAlgorithm?: string;
|
|
2581
|
+
hashAlgorithm?: string | undefined;
|
|
2560
2582
|
/**
|
|
2561
2583
|
* Name of the message digest used by MGF1
|
|
2562
2584
|
*/
|
|
2563
|
-
mgf1HashAlgorithm?: string;
|
|
2585
|
+
mgf1HashAlgorithm?: string | undefined;
|
|
2564
2586
|
/**
|
|
2565
2587
|
* Minimal salt length in bytes
|
|
2566
2588
|
*/
|
|
2567
|
-
saltLength?: string;
|
|
2589
|
+
saltLength?: string | undefined;
|
|
2568
2590
|
publicKeyEncoding: {
|
|
2569
2591
|
type: "spki";
|
|
2570
2592
|
format: PubF;
|
|
@@ -2635,13 +2657,40 @@ declare module "crypto" {
|
|
|
2635
2657
|
type: "pkcs8";
|
|
2636
2658
|
};
|
|
2637
2659
|
}
|
|
2660
|
+
interface MLDSAKeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> {
|
|
2661
|
+
publicKeyEncoding: {
|
|
2662
|
+
type: "spki";
|
|
2663
|
+
format: PubF;
|
|
2664
|
+
};
|
|
2665
|
+
privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
|
|
2666
|
+
type: "pkcs8";
|
|
2667
|
+
};
|
|
2668
|
+
}
|
|
2669
|
+
interface MLKEMKeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> {
|
|
2670
|
+
publicKeyEncoding: {
|
|
2671
|
+
type: "spki";
|
|
2672
|
+
format: PubF;
|
|
2673
|
+
};
|
|
2674
|
+
privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
|
|
2675
|
+
type: "pkcs8";
|
|
2676
|
+
};
|
|
2677
|
+
}
|
|
2678
|
+
interface SLHDSAKeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> {
|
|
2679
|
+
publicKeyEncoding: {
|
|
2680
|
+
type: "spki";
|
|
2681
|
+
format: PubF;
|
|
2682
|
+
};
|
|
2683
|
+
privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
|
|
2684
|
+
type: "pkcs8";
|
|
2685
|
+
};
|
|
2686
|
+
}
|
|
2638
2687
|
interface KeyPairSyncResult<T1 extends string | Buffer, T2 extends string | Buffer> {
|
|
2639
2688
|
publicKey: T1;
|
|
2640
2689
|
privateKey: T2;
|
|
2641
2690
|
}
|
|
2642
2691
|
/**
|
|
2643
2692
|
* Generates a new asymmetric key pair of the given `type`. RSA, RSA-PSS, DSA, EC,
|
|
2644
|
-
* Ed25519, Ed448, X25519, X448, and
|
|
2693
|
+
* Ed25519, Ed448, X25519, X448, DH, and ML-DSA are currently supported.
|
|
2645
2694
|
*
|
|
2646
2695
|
* If a `publicKeyEncoding` or `privateKeyEncoding` was specified, this function
|
|
2647
2696
|
* behaves as if `keyObject.export()` had been called on its result. Otherwise,
|
|
@@ -2678,7 +2727,8 @@ declare module "crypto" {
|
|
|
2678
2727
|
* When PEM encoding was selected, the respective key will be a string, otherwise
|
|
2679
2728
|
* it will be a buffer containing the data encoded as DER.
|
|
2680
2729
|
* @since v10.12.0
|
|
2681
|
-
* @param type
|
|
2730
|
+
* @param type The asymmetric key type to generate. See the
|
|
2731
|
+
* supported [asymmetric key types](https://nodejs.org/docs/latest-v24.x/api/crypto.html#asymmetric-key-types).
|
|
2682
2732
|
*/
|
|
2683
2733
|
function generateKeyPairSync(
|
|
2684
2734
|
type: "rsa",
|
|
@@ -2816,6 +2866,126 @@ declare module "crypto" {
|
|
|
2816
2866
|
options: X448KeyPairOptions<"der", "der">,
|
|
2817
2867
|
): KeyPairSyncResult<Buffer, Buffer>;
|
|
2818
2868
|
function generateKeyPairSync(type: "x448", options?: X448KeyPairKeyObjectOptions): KeyPairKeyObjectResult;
|
|
2869
|
+
function generateKeyPairSync(
|
|
2870
|
+
type: "ml-dsa-44" | "ml-dsa-65" | "ml-dsa-87",
|
|
2871
|
+
options: MLDSAKeyPairOptions<"pem", "pem">,
|
|
2872
|
+
): KeyPairSyncResult<string, string>;
|
|
2873
|
+
function generateKeyPairSync(
|
|
2874
|
+
type: "ml-dsa-44" | "ml-dsa-65" | "ml-dsa-87",
|
|
2875
|
+
options: MLDSAKeyPairOptions<"pem", "der">,
|
|
2876
|
+
): KeyPairSyncResult<string, Buffer>;
|
|
2877
|
+
function generateKeyPairSync(
|
|
2878
|
+
type: "ml-dsa-44" | "ml-dsa-65" | "ml-dsa-87",
|
|
2879
|
+
options: MLDSAKeyPairOptions<"der", "pem">,
|
|
2880
|
+
): KeyPairSyncResult<Buffer, string>;
|
|
2881
|
+
function generateKeyPairSync(
|
|
2882
|
+
type: "ml-dsa-44" | "ml-dsa-65" | "ml-dsa-87",
|
|
2883
|
+
options: MLDSAKeyPairOptions<"der", "der">,
|
|
2884
|
+
): KeyPairSyncResult<Buffer, Buffer>;
|
|
2885
|
+
function generateKeyPairSync(
|
|
2886
|
+
type: "ml-dsa-44" | "ml-dsa-65" | "ml-dsa-87",
|
|
2887
|
+
options?: MLDSAKeyPairKeyObjectOptions,
|
|
2888
|
+
): KeyPairKeyObjectResult;
|
|
2889
|
+
function generateKeyPairSync(
|
|
2890
|
+
type: "ml-kem-1024" | "ml-kem-512" | "ml-kem-768",
|
|
2891
|
+
options: MLKEMKeyPairOptions<"pem", "pem">,
|
|
2892
|
+
): KeyPairSyncResult<string, string>;
|
|
2893
|
+
function generateKeyPairSync(
|
|
2894
|
+
type: "ml-kem-1024" | "ml-kem-512" | "ml-kem-768",
|
|
2895
|
+
options: MLKEMKeyPairOptions<"pem", "der">,
|
|
2896
|
+
): KeyPairSyncResult<string, Buffer>;
|
|
2897
|
+
function generateKeyPairSync(
|
|
2898
|
+
type: "ml-kem-1024" | "ml-kem-512" | "ml-kem-768",
|
|
2899
|
+
options: MLKEMKeyPairOptions<"der", "pem">,
|
|
2900
|
+
): KeyPairSyncResult<Buffer, string>;
|
|
2901
|
+
function generateKeyPairSync(
|
|
2902
|
+
type: "ml-kem-1024" | "ml-kem-512" | "ml-kem-768",
|
|
2903
|
+
options: MLKEMKeyPairOptions<"der", "der">,
|
|
2904
|
+
): KeyPairSyncResult<Buffer, Buffer>;
|
|
2905
|
+
function generateKeyPairSync(
|
|
2906
|
+
type: "ml-kem-1024" | "ml-kem-512" | "ml-kem-768",
|
|
2907
|
+
options?: MLKEMKeyPairKeyObjectOptions,
|
|
2908
|
+
): KeyPairKeyObjectResult;
|
|
2909
|
+
function generateKeyPairSync(
|
|
2910
|
+
type:
|
|
2911
|
+
| "slh-dsa-sha2-128f"
|
|
2912
|
+
| "slh-dsa-sha2-128s"
|
|
2913
|
+
| "slh-dsa-sha2-192f"
|
|
2914
|
+
| "slh-dsa-sha2-192s"
|
|
2915
|
+
| "slh-dsa-sha2-256f"
|
|
2916
|
+
| "slh-dsa-sha2-256s"
|
|
2917
|
+
| "slh-dsa-shake-128f"
|
|
2918
|
+
| "slh-dsa-shake-128s"
|
|
2919
|
+
| "slh-dsa-shake-192f"
|
|
2920
|
+
| "slh-dsa-shake-192s"
|
|
2921
|
+
| "slh-dsa-shake-256f"
|
|
2922
|
+
| "slh-dsa-shake-256s",
|
|
2923
|
+
options: SLHDSAKeyPairOptions<"pem", "pem">,
|
|
2924
|
+
): KeyPairSyncResult<string, string>;
|
|
2925
|
+
function generateKeyPairSync(
|
|
2926
|
+
type:
|
|
2927
|
+
| "slh-dsa-sha2-128f"
|
|
2928
|
+
| "slh-dsa-sha2-128s"
|
|
2929
|
+
| "slh-dsa-sha2-192f"
|
|
2930
|
+
| "slh-dsa-sha2-192s"
|
|
2931
|
+
| "slh-dsa-sha2-256f"
|
|
2932
|
+
| "slh-dsa-sha2-256s"
|
|
2933
|
+
| "slh-dsa-shake-128f"
|
|
2934
|
+
| "slh-dsa-shake-128s"
|
|
2935
|
+
| "slh-dsa-shake-192f"
|
|
2936
|
+
| "slh-dsa-shake-192s"
|
|
2937
|
+
| "slh-dsa-shake-256f"
|
|
2938
|
+
| "slh-dsa-shake-256s",
|
|
2939
|
+
options: SLHDSAKeyPairOptions<"pem", "der">,
|
|
2940
|
+
): KeyPairSyncResult<string, Buffer>;
|
|
2941
|
+
function generateKeyPairSync(
|
|
2942
|
+
type:
|
|
2943
|
+
| "slh-dsa-sha2-128f"
|
|
2944
|
+
| "slh-dsa-sha2-128s"
|
|
2945
|
+
| "slh-dsa-sha2-192f"
|
|
2946
|
+
| "slh-dsa-sha2-192s"
|
|
2947
|
+
| "slh-dsa-sha2-256f"
|
|
2948
|
+
| "slh-dsa-sha2-256s"
|
|
2949
|
+
| "slh-dsa-shake-128f"
|
|
2950
|
+
| "slh-dsa-shake-128s"
|
|
2951
|
+
| "slh-dsa-shake-192f"
|
|
2952
|
+
| "slh-dsa-shake-192s"
|
|
2953
|
+
| "slh-dsa-shake-256f"
|
|
2954
|
+
| "slh-dsa-shake-256s",
|
|
2955
|
+
options: SLHDSAKeyPairOptions<"der", "pem">,
|
|
2956
|
+
): KeyPairSyncResult<Buffer, string>;
|
|
2957
|
+
function generateKeyPairSync(
|
|
2958
|
+
type:
|
|
2959
|
+
| "slh-dsa-sha2-128f"
|
|
2960
|
+
| "slh-dsa-sha2-128s"
|
|
2961
|
+
| "slh-dsa-sha2-192f"
|
|
2962
|
+
| "slh-dsa-sha2-192s"
|
|
2963
|
+
| "slh-dsa-sha2-256f"
|
|
2964
|
+
| "slh-dsa-sha2-256s"
|
|
2965
|
+
| "slh-dsa-shake-128f"
|
|
2966
|
+
| "slh-dsa-shake-128s"
|
|
2967
|
+
| "slh-dsa-shake-192f"
|
|
2968
|
+
| "slh-dsa-shake-192s"
|
|
2969
|
+
| "slh-dsa-shake-256f"
|
|
2970
|
+
| "slh-dsa-shake-256s",
|
|
2971
|
+
options: SLHDSAKeyPairOptions<"der", "der">,
|
|
2972
|
+
): KeyPairSyncResult<Buffer, Buffer>;
|
|
2973
|
+
function generateKeyPairSync(
|
|
2974
|
+
type:
|
|
2975
|
+
| "slh-dsa-sha2-128f"
|
|
2976
|
+
| "slh-dsa-sha2-128s"
|
|
2977
|
+
| "slh-dsa-sha2-192f"
|
|
2978
|
+
| "slh-dsa-sha2-192s"
|
|
2979
|
+
| "slh-dsa-sha2-256f"
|
|
2980
|
+
| "slh-dsa-sha2-256s"
|
|
2981
|
+
| "slh-dsa-shake-128f"
|
|
2982
|
+
| "slh-dsa-shake-128s"
|
|
2983
|
+
| "slh-dsa-shake-192f"
|
|
2984
|
+
| "slh-dsa-shake-192s"
|
|
2985
|
+
| "slh-dsa-shake-256f"
|
|
2986
|
+
| "slh-dsa-shake-256s",
|
|
2987
|
+
options?: SLHDSAKeyPairKeyObjectOptions,
|
|
2988
|
+
): KeyPairKeyObjectResult;
|
|
2819
2989
|
/**
|
|
2820
2990
|
* Generates a new asymmetric key pair of the given `type`. RSA, RSA-PSS, DSA, EC,
|
|
2821
2991
|
* Ed25519, Ed448, X25519, X448, and DH are currently supported.
|
|
@@ -2853,7 +3023,8 @@ declare module "crypto" {
|
|
|
2853
3023
|
* If this method is invoked as its `util.promisify()` ed version, it returns
|
|
2854
3024
|
* a `Promise` for an `Object` with `publicKey` and `privateKey` properties.
|
|
2855
3025
|
* @since v10.12.0
|
|
2856
|
-
* @param type
|
|
3026
|
+
* @param type The asymmetric key type to generate. See the
|
|
3027
|
+
* supported [asymmetric key types](https://nodejs.org/docs/latest-v24.x/api/crypto.html#asymmetric-key-types).
|
|
2857
3028
|
*/
|
|
2858
3029
|
function generateKeyPair(
|
|
2859
3030
|
type: "rsa",
|
|
@@ -3055,6 +3226,141 @@ declare module "crypto" {
|
|
|
3055
3226
|
options: X448KeyPairKeyObjectOptions | undefined,
|
|
3056
3227
|
callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void,
|
|
3057
3228
|
): void;
|
|
3229
|
+
function generateKeyPair(
|
|
3230
|
+
type: "ml-dsa-44" | "ml-dsa-65" | "ml-dsa-87",
|
|
3231
|
+
options: MLDSAKeyPairOptions<"pem", "pem">,
|
|
3232
|
+
callback: (err: Error | null, publicKey: string, privateKey: string) => void,
|
|
3233
|
+
): void;
|
|
3234
|
+
function generateKeyPair(
|
|
3235
|
+
type: "ml-dsa-44" | "ml-dsa-65" | "ml-dsa-87",
|
|
3236
|
+
options: MLDSAKeyPairOptions<"pem", "der">,
|
|
3237
|
+
callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void,
|
|
3238
|
+
): void;
|
|
3239
|
+
function generateKeyPair(
|
|
3240
|
+
type: "ml-dsa-44" | "ml-dsa-65" | "ml-dsa-87",
|
|
3241
|
+
options: MLDSAKeyPairOptions<"der", "pem">,
|
|
3242
|
+
callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void,
|
|
3243
|
+
): void;
|
|
3244
|
+
function generateKeyPair(
|
|
3245
|
+
type: "ml-dsa-44" | "ml-dsa-65" | "ml-dsa-87",
|
|
3246
|
+
options: MLDSAKeyPairOptions<"der", "der">,
|
|
3247
|
+
callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void,
|
|
3248
|
+
): void;
|
|
3249
|
+
function generateKeyPair(
|
|
3250
|
+
type: "ml-dsa-44" | "ml-dsa-65" | "ml-dsa-87",
|
|
3251
|
+
options: MLDSAKeyPairKeyObjectOptions | undefined,
|
|
3252
|
+
callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void,
|
|
3253
|
+
): void;
|
|
3254
|
+
function generateKeyPair(
|
|
3255
|
+
type: "ml-kem-1024" | "ml-kem-512" | "ml-kem-768",
|
|
3256
|
+
options: MLKEMKeyPairOptions<"pem", "pem">,
|
|
3257
|
+
callback: (err: Error | null, publicKey: string, privateKey: string) => void,
|
|
3258
|
+
): void;
|
|
3259
|
+
function generateKeyPair(
|
|
3260
|
+
type: "ml-kem-1024" | "ml-kem-512" | "ml-kem-768",
|
|
3261
|
+
options: MLKEMKeyPairOptions<"pem", "der">,
|
|
3262
|
+
callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void,
|
|
3263
|
+
): void;
|
|
3264
|
+
function generateKeyPair(
|
|
3265
|
+
type: "ml-kem-1024" | "ml-kem-512" | "ml-kem-768",
|
|
3266
|
+
options: MLKEMKeyPairOptions<"der", "pem">,
|
|
3267
|
+
callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void,
|
|
3268
|
+
): void;
|
|
3269
|
+
function generateKeyPair(
|
|
3270
|
+
type: "ml-kem-1024" | "ml-kem-512" | "ml-kem-768",
|
|
3271
|
+
options: MLKEMKeyPairOptions<"der", "der">,
|
|
3272
|
+
callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void,
|
|
3273
|
+
): void;
|
|
3274
|
+
function generateKeyPair(
|
|
3275
|
+
type: "ml-kem-1024" | "ml-kem-512" | "ml-kem-768",
|
|
3276
|
+
options: MLKEMKeyPairKeyObjectOptions | undefined,
|
|
3277
|
+
callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void,
|
|
3278
|
+
): void;
|
|
3279
|
+
function generateKeyPair(
|
|
3280
|
+
type:
|
|
3281
|
+
| "slh-dsa-sha2-128f"
|
|
3282
|
+
| "slh-dsa-sha2-128s"
|
|
3283
|
+
| "slh-dsa-sha2-192f"
|
|
3284
|
+
| "slh-dsa-sha2-192s"
|
|
3285
|
+
| "slh-dsa-sha2-256f"
|
|
3286
|
+
| "slh-dsa-sha2-256s"
|
|
3287
|
+
| "slh-dsa-shake-128f"
|
|
3288
|
+
| "slh-dsa-shake-128s"
|
|
3289
|
+
| "slh-dsa-shake-192f"
|
|
3290
|
+
| "slh-dsa-shake-192s"
|
|
3291
|
+
| "slh-dsa-shake-256f"
|
|
3292
|
+
| "slh-dsa-shake-256s",
|
|
3293
|
+
options: SLHDSAKeyPairOptions<"pem", "pem">,
|
|
3294
|
+
callback: (err: Error | null, publicKey: string, privateKey: string) => void,
|
|
3295
|
+
): void;
|
|
3296
|
+
function generateKeyPair(
|
|
3297
|
+
type:
|
|
3298
|
+
| "slh-dsa-sha2-128f"
|
|
3299
|
+
| "slh-dsa-sha2-128s"
|
|
3300
|
+
| "slh-dsa-sha2-192f"
|
|
3301
|
+
| "slh-dsa-sha2-192s"
|
|
3302
|
+
| "slh-dsa-sha2-256f"
|
|
3303
|
+
| "slh-dsa-sha2-256s"
|
|
3304
|
+
| "slh-dsa-shake-128f"
|
|
3305
|
+
| "slh-dsa-shake-128s"
|
|
3306
|
+
| "slh-dsa-shake-192f"
|
|
3307
|
+
| "slh-dsa-shake-192s"
|
|
3308
|
+
| "slh-dsa-shake-256f"
|
|
3309
|
+
| "slh-dsa-shake-256s",
|
|
3310
|
+
options: SLHDSAKeyPairOptions<"pem", "der">,
|
|
3311
|
+
callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void,
|
|
3312
|
+
): void;
|
|
3313
|
+
function generateKeyPair(
|
|
3314
|
+
type:
|
|
3315
|
+
| "slh-dsa-sha2-128f"
|
|
3316
|
+
| "slh-dsa-sha2-128s"
|
|
3317
|
+
| "slh-dsa-sha2-192f"
|
|
3318
|
+
| "slh-dsa-sha2-192s"
|
|
3319
|
+
| "slh-dsa-sha2-256f"
|
|
3320
|
+
| "slh-dsa-sha2-256s"
|
|
3321
|
+
| "slh-dsa-shake-128f"
|
|
3322
|
+
| "slh-dsa-shake-128s"
|
|
3323
|
+
| "slh-dsa-shake-192f"
|
|
3324
|
+
| "slh-dsa-shake-192s"
|
|
3325
|
+
| "slh-dsa-shake-256f"
|
|
3326
|
+
| "slh-dsa-shake-256s",
|
|
3327
|
+
options: SLHDSAKeyPairOptions<"der", "pem">,
|
|
3328
|
+
callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void,
|
|
3329
|
+
): void;
|
|
3330
|
+
function generateKeyPair(
|
|
3331
|
+
type:
|
|
3332
|
+
| "slh-dsa-sha2-128f"
|
|
3333
|
+
| "slh-dsa-sha2-128s"
|
|
3334
|
+
| "slh-dsa-sha2-192f"
|
|
3335
|
+
| "slh-dsa-sha2-192s"
|
|
3336
|
+
| "slh-dsa-sha2-256f"
|
|
3337
|
+
| "slh-dsa-sha2-256s"
|
|
3338
|
+
| "slh-dsa-shake-128f"
|
|
3339
|
+
| "slh-dsa-shake-128s"
|
|
3340
|
+
| "slh-dsa-shake-192f"
|
|
3341
|
+
| "slh-dsa-shake-192s"
|
|
3342
|
+
| "slh-dsa-shake-256f"
|
|
3343
|
+
| "slh-dsa-shake-256s",
|
|
3344
|
+
options: SLHDSAKeyPairOptions<"der", "der">,
|
|
3345
|
+
callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void,
|
|
3346
|
+
): void;
|
|
3347
|
+
function generateKeyPair(
|
|
3348
|
+
type:
|
|
3349
|
+
| "slh-dsa-sha2-128f"
|
|
3350
|
+
| "slh-dsa-sha2-128s"
|
|
3351
|
+
| "slh-dsa-sha2-192f"
|
|
3352
|
+
| "slh-dsa-sha2-192s"
|
|
3353
|
+
| "slh-dsa-sha2-256f"
|
|
3354
|
+
| "slh-dsa-sha2-256s"
|
|
3355
|
+
| "slh-dsa-shake-128f"
|
|
3356
|
+
| "slh-dsa-shake-128s"
|
|
3357
|
+
| "slh-dsa-shake-192f"
|
|
3358
|
+
| "slh-dsa-shake-192s"
|
|
3359
|
+
| "slh-dsa-shake-256f"
|
|
3360
|
+
| "slh-dsa-shake-256s",
|
|
3361
|
+
options: SLHDSAKeyPairKeyObjectOptions | undefined,
|
|
3362
|
+
callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void,
|
|
3363
|
+
): void;
|
|
3058
3364
|
namespace generateKeyPair {
|
|
3059
3365
|
function __promisify__(
|
|
3060
3366
|
type: "rsa",
|
|
@@ -3297,11 +3603,170 @@ declare module "crypto" {
|
|
|
3297
3603
|
privateKey: Buffer;
|
|
3298
3604
|
}>;
|
|
3299
3605
|
function __promisify__(type: "x448", options?: X448KeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>;
|
|
3606
|
+
function __promisify__(
|
|
3607
|
+
type: "ml-dsa-44" | "ml-dsa-65" | "ml-dsa-87",
|
|
3608
|
+
options: MLDSAKeyPairOptions<"pem", "pem">,
|
|
3609
|
+
): Promise<{
|
|
3610
|
+
publicKey: string;
|
|
3611
|
+
privateKey: string;
|
|
3612
|
+
}>;
|
|
3613
|
+
function __promisify__(
|
|
3614
|
+
type: "ml-dsa-44" | "ml-dsa-65" | "ml-dsa-87",
|
|
3615
|
+
options: MLDSAKeyPairOptions<"pem", "der">,
|
|
3616
|
+
): Promise<{
|
|
3617
|
+
publicKey: string;
|
|
3618
|
+
privateKey: Buffer;
|
|
3619
|
+
}>;
|
|
3620
|
+
function __promisify__(
|
|
3621
|
+
type: "ml-dsa-44" | "ml-dsa-65" | "ml-dsa-87",
|
|
3622
|
+
options: MLDSAKeyPairOptions<"der", "pem">,
|
|
3623
|
+
): Promise<{
|
|
3624
|
+
publicKey: Buffer;
|
|
3625
|
+
privateKey: string;
|
|
3626
|
+
}>;
|
|
3627
|
+
function __promisify__(
|
|
3628
|
+
type: "ml-dsa-44" | "ml-dsa-65" | "ml-dsa-87",
|
|
3629
|
+
options: MLDSAKeyPairOptions<"der", "der">,
|
|
3630
|
+
): Promise<{
|
|
3631
|
+
publicKey: Buffer;
|
|
3632
|
+
privateKey: Buffer;
|
|
3633
|
+
}>;
|
|
3634
|
+
function __promisify__(
|
|
3635
|
+
type: "ml-dsa-44" | "ml-dsa-65" | "ml-dsa-87",
|
|
3636
|
+
options?: MLDSAKeyPairKeyObjectOptions,
|
|
3637
|
+
): Promise<KeyPairKeyObjectResult>;
|
|
3638
|
+
function __promisify__(
|
|
3639
|
+
type: "ml-kem-1024" | "ml-kem-512" | "ml-kem-768",
|
|
3640
|
+
options: MLKEMKeyPairOptions<"pem", "pem">,
|
|
3641
|
+
): Promise<{
|
|
3642
|
+
publicKey: string;
|
|
3643
|
+
privateKey: string;
|
|
3644
|
+
}>;
|
|
3645
|
+
function __promisify__(
|
|
3646
|
+
type: "ml-kem-1024" | "ml-kem-512" | "ml-kem-768",
|
|
3647
|
+
options: MLKEMKeyPairOptions<"pem", "der">,
|
|
3648
|
+
): Promise<{
|
|
3649
|
+
publicKey: string;
|
|
3650
|
+
privateKey: Buffer;
|
|
3651
|
+
}>;
|
|
3652
|
+
function __promisify__(
|
|
3653
|
+
type: "ml-kem-1024" | "ml-kem-512" | "ml-kem-768",
|
|
3654
|
+
options: MLKEMKeyPairOptions<"der", "pem">,
|
|
3655
|
+
): Promise<{
|
|
3656
|
+
publicKey: Buffer;
|
|
3657
|
+
privateKey: string;
|
|
3658
|
+
}>;
|
|
3659
|
+
function __promisify__(
|
|
3660
|
+
type: "ml-kem-1024" | "ml-kem-512" | "ml-kem-768",
|
|
3661
|
+
options: MLKEMKeyPairOptions<"der", "der">,
|
|
3662
|
+
): Promise<{
|
|
3663
|
+
publicKey: Buffer;
|
|
3664
|
+
privateKey: Buffer;
|
|
3665
|
+
}>;
|
|
3666
|
+
function __promisify__(
|
|
3667
|
+
type: "ml-kem-1024" | "ml-kem-512" | "ml-kem-768",
|
|
3668
|
+
options?: MLKEMKeyPairKeyObjectOptions,
|
|
3669
|
+
): Promise<KeyPairKeyObjectResult>;
|
|
3670
|
+
function __promisify__(
|
|
3671
|
+
type:
|
|
3672
|
+
| "slh-dsa-sha2-128f"
|
|
3673
|
+
| "slh-dsa-sha2-128s"
|
|
3674
|
+
| "slh-dsa-sha2-192f"
|
|
3675
|
+
| "slh-dsa-sha2-192s"
|
|
3676
|
+
| "slh-dsa-sha2-256f"
|
|
3677
|
+
| "slh-dsa-sha2-256s"
|
|
3678
|
+
| "slh-dsa-shake-128f"
|
|
3679
|
+
| "slh-dsa-shake-128s"
|
|
3680
|
+
| "slh-dsa-shake-192f"
|
|
3681
|
+
| "slh-dsa-shake-192s"
|
|
3682
|
+
| "slh-dsa-shake-256f"
|
|
3683
|
+
| "slh-dsa-shake-256s",
|
|
3684
|
+
options: SLHDSAKeyPairOptions<"pem", "pem">,
|
|
3685
|
+
): Promise<{
|
|
3686
|
+
publicKey: string;
|
|
3687
|
+
privateKey: string;
|
|
3688
|
+
}>;
|
|
3689
|
+
function __promisify__(
|
|
3690
|
+
type:
|
|
3691
|
+
| "slh-dsa-sha2-128f"
|
|
3692
|
+
| "slh-dsa-sha2-128s"
|
|
3693
|
+
| "slh-dsa-sha2-192f"
|
|
3694
|
+
| "slh-dsa-sha2-192s"
|
|
3695
|
+
| "slh-dsa-sha2-256f"
|
|
3696
|
+
| "slh-dsa-sha2-256s"
|
|
3697
|
+
| "slh-dsa-shake-128f"
|
|
3698
|
+
| "slh-dsa-shake-128s"
|
|
3699
|
+
| "slh-dsa-shake-192f"
|
|
3700
|
+
| "slh-dsa-shake-192s"
|
|
3701
|
+
| "slh-dsa-shake-256f"
|
|
3702
|
+
| "slh-dsa-shake-256s",
|
|
3703
|
+
options: SLHDSAKeyPairOptions<"pem", "der">,
|
|
3704
|
+
): Promise<{
|
|
3705
|
+
publicKey: string;
|
|
3706
|
+
privateKey: Buffer;
|
|
3707
|
+
}>;
|
|
3708
|
+
function __promisify__(
|
|
3709
|
+
type:
|
|
3710
|
+
| "slh-dsa-sha2-128f"
|
|
3711
|
+
| "slh-dsa-sha2-128s"
|
|
3712
|
+
| "slh-dsa-sha2-192f"
|
|
3713
|
+
| "slh-dsa-sha2-192s"
|
|
3714
|
+
| "slh-dsa-sha2-256f"
|
|
3715
|
+
| "slh-dsa-sha2-256s"
|
|
3716
|
+
| "slh-dsa-shake-128f"
|
|
3717
|
+
| "slh-dsa-shake-128s"
|
|
3718
|
+
| "slh-dsa-shake-192f"
|
|
3719
|
+
| "slh-dsa-shake-192s"
|
|
3720
|
+
| "slh-dsa-shake-256f"
|
|
3721
|
+
| "slh-dsa-shake-256s",
|
|
3722
|
+
options: SLHDSAKeyPairOptions<"der", "pem">,
|
|
3723
|
+
): Promise<{
|
|
3724
|
+
publicKey: Buffer;
|
|
3725
|
+
privateKey: string;
|
|
3726
|
+
}>;
|
|
3727
|
+
function __promisify__(
|
|
3728
|
+
type:
|
|
3729
|
+
| "slh-dsa-sha2-128f"
|
|
3730
|
+
| "slh-dsa-sha2-128s"
|
|
3731
|
+
| "slh-dsa-sha2-192f"
|
|
3732
|
+
| "slh-dsa-sha2-192s"
|
|
3733
|
+
| "slh-dsa-sha2-256f"
|
|
3734
|
+
| "slh-dsa-sha2-256s"
|
|
3735
|
+
| "slh-dsa-shake-128f"
|
|
3736
|
+
| "slh-dsa-shake-128s"
|
|
3737
|
+
| "slh-dsa-shake-192f"
|
|
3738
|
+
| "slh-dsa-shake-192s"
|
|
3739
|
+
| "slh-dsa-shake-256f"
|
|
3740
|
+
| "slh-dsa-shake-256s",
|
|
3741
|
+
options: SLHDSAKeyPairOptions<"der", "der">,
|
|
3742
|
+
): Promise<{
|
|
3743
|
+
publicKey: Buffer;
|
|
3744
|
+
privateKey: Buffer;
|
|
3745
|
+
}>;
|
|
3746
|
+
function __promisify__(
|
|
3747
|
+
type:
|
|
3748
|
+
| "slh-dsa-sha2-128f"
|
|
3749
|
+
| "slh-dsa-sha2-128s"
|
|
3750
|
+
| "slh-dsa-sha2-192f"
|
|
3751
|
+
| "slh-dsa-sha2-192s"
|
|
3752
|
+
| "slh-dsa-sha2-256f"
|
|
3753
|
+
| "slh-dsa-sha2-256s"
|
|
3754
|
+
| "slh-dsa-shake-128f"
|
|
3755
|
+
| "slh-dsa-shake-128s"
|
|
3756
|
+
| "slh-dsa-shake-192f"
|
|
3757
|
+
| "slh-dsa-shake-192s"
|
|
3758
|
+
| "slh-dsa-shake-256f"
|
|
3759
|
+
| "slh-dsa-shake-256s",
|
|
3760
|
+
options?: SLHDSAKeyPairKeyObjectOptions,
|
|
3761
|
+
): Promise<KeyPairKeyObjectResult>;
|
|
3300
3762
|
}
|
|
3301
3763
|
/**
|
|
3302
3764
|
* Calculates and returns the signature for `data` using the given private key and
|
|
3303
3765
|
* algorithm. If `algorithm` is `null` or `undefined`, then the algorithm is
|
|
3304
|
-
* dependent upon the key type
|
|
3766
|
+
* dependent upon the key type.
|
|
3767
|
+
*
|
|
3768
|
+
* `algorithm` is required to be `null` or `undefined` for Ed25519, Ed448, and
|
|
3769
|
+
* ML-DSA.
|
|
3305
3770
|
*
|
|
3306
3771
|
* If `key` is not a `KeyObject`, this function behaves as if `key` had been
|
|
3307
3772
|
* passed to {@link createPrivateKey}. If it is an object, the following
|
|
@@ -3322,8 +3787,12 @@ declare module "crypto" {
|
|
|
3322
3787
|
callback: (error: Error | null, data: Buffer) => void,
|
|
3323
3788
|
): void;
|
|
3324
3789
|
/**
|
|
3325
|
-
* Verifies the given signature for `data` using the given key and algorithm. If
|
|
3326
|
-
*
|
|
3790
|
+
* Verifies the given signature for `data` using the given key and algorithm. If
|
|
3791
|
+
* `algorithm` is `null` or `undefined`, then the algorithm is dependent upon the
|
|
3792
|
+
* key type.
|
|
3793
|
+
*
|
|
3794
|
+
* `algorithm` is required to be `null` or `undefined` for Ed25519, Ed448, and
|
|
3795
|
+
* ML-DSA.
|
|
3327
3796
|
*
|
|
3328
3797
|
* If `key` is not a `KeyObject`, this function behaves as if `key` had been
|
|
3329
3798
|
* passed to {@link createPublicKey}. If it is an object, the following
|
|
@@ -3351,9 +3820,37 @@ declare module "crypto" {
|
|
|
3351
3820
|
callback: (error: Error | null, result: boolean) => void,
|
|
3352
3821
|
): void;
|
|
3353
3822
|
/**
|
|
3354
|
-
*
|
|
3355
|
-
*
|
|
3356
|
-
*
|
|
3823
|
+
* Key decapsulation using a KEM algorithm with a private key.
|
|
3824
|
+
*
|
|
3825
|
+
* Supported key types and their KEM algorithms are:
|
|
3826
|
+
*
|
|
3827
|
+
* * `'rsa'` RSA Secret Value Encapsulation
|
|
3828
|
+
* * `'ec'` DHKEM(P-256, HKDF-SHA256), DHKEM(P-384, HKDF-SHA256), DHKEM(P-521, HKDF-SHA256)
|
|
3829
|
+
* * `'x25519'` DHKEM(X25519, HKDF-SHA256)
|
|
3830
|
+
* * `'x448'` DHKEM(X448, HKDF-SHA512)
|
|
3831
|
+
* * `'ml-kem-512'` ML-KEM
|
|
3832
|
+
* * `'ml-kem-768'` ML-KEM
|
|
3833
|
+
* * `'ml-kem-1024'` ML-KEM
|
|
3834
|
+
*
|
|
3835
|
+
* If `key` is not a {@link KeyObject}, this function behaves as if `key` had been
|
|
3836
|
+
* passed to `crypto.createPrivateKey()`.
|
|
3837
|
+
*
|
|
3838
|
+
* If the `callback` function is provided this function uses libuv's threadpool.
|
|
3839
|
+
* @since v24.7.0
|
|
3840
|
+
*/
|
|
3841
|
+
function decapsulate(
|
|
3842
|
+
key: KeyLike | PrivateKeyInput | JsonWebKeyInput,
|
|
3843
|
+
ciphertext: ArrayBuffer | NodeJS.ArrayBufferView,
|
|
3844
|
+
): Buffer;
|
|
3845
|
+
function decapsulate(
|
|
3846
|
+
key: KeyLike | PrivateKeyInput | JsonWebKeyInput,
|
|
3847
|
+
ciphertext: ArrayBuffer | NodeJS.ArrayBufferView,
|
|
3848
|
+
callback: (err: Error, sharedKey: Buffer) => void,
|
|
3849
|
+
): void;
|
|
3850
|
+
/**
|
|
3851
|
+
* Computes the Diffie-Hellman shared secret based on a `privateKey` and a `publicKey`.
|
|
3852
|
+
* Both keys must have the same `asymmetricKeyType` and must support either the DH or
|
|
3853
|
+
* ECDH operation.
|
|
3357
3854
|
*
|
|
3358
3855
|
* If the `callback` function is provided this function uses libuv's threadpool.
|
|
3359
3856
|
* @since v13.9.0, v12.17.0
|
|
@@ -3364,10 +3861,59 @@ declare module "crypto" {
|
|
|
3364
3861
|
callback: (err: Error | null, secret: Buffer) => void,
|
|
3365
3862
|
): void;
|
|
3366
3863
|
/**
|
|
3367
|
-
*
|
|
3368
|
-
*
|
|
3369
|
-
*
|
|
3370
|
-
*
|
|
3864
|
+
* Key encapsulation using a KEM algorithm with a public key.
|
|
3865
|
+
*
|
|
3866
|
+
* Supported key types and their KEM algorithms are:
|
|
3867
|
+
*
|
|
3868
|
+
* * `'rsa'` RSA Secret Value Encapsulation
|
|
3869
|
+
* * `'ec'` DHKEM(P-256, HKDF-SHA256), DHKEM(P-384, HKDF-SHA256), DHKEM(P-521, HKDF-SHA256)
|
|
3870
|
+
* * `'x25519'` DHKEM(X25519, HKDF-SHA256)
|
|
3871
|
+
* * `'x448'` DHKEM(X448, HKDF-SHA512)
|
|
3872
|
+
* * `'ml-kem-512'` ML-KEM
|
|
3873
|
+
* * `'ml-kem-768'` ML-KEM
|
|
3874
|
+
* * `'ml-kem-1024'` ML-KEM
|
|
3875
|
+
*
|
|
3876
|
+
* If `key` is not a {@link KeyObject}, this function behaves as if `key` had been
|
|
3877
|
+
* passed to `crypto.createPublicKey()`.
|
|
3878
|
+
*
|
|
3879
|
+
* If the `callback` function is provided this function uses libuv's threadpool.
|
|
3880
|
+
* @since v24.7.0
|
|
3881
|
+
*/
|
|
3882
|
+
function encapsulate(key: KeyLike | PublicKeyInput | JsonWebKeyInput): { sharedKey: Buffer; ciphertext: Buffer };
|
|
3883
|
+
function encapsulate(
|
|
3884
|
+
key: KeyLike | PublicKeyInput | JsonWebKeyInput,
|
|
3885
|
+
callback: (err: Error, result: { sharedKey: Buffer; ciphertext: Buffer }) => void,
|
|
3886
|
+
): void;
|
|
3887
|
+
interface OneShotDigestOptions {
|
|
3888
|
+
/**
|
|
3889
|
+
* Encoding used to encode the returned digest.
|
|
3890
|
+
* @default 'hex'
|
|
3891
|
+
*/
|
|
3892
|
+
outputEncoding?: BinaryToTextEncoding | "buffer" | undefined;
|
|
3893
|
+
/**
|
|
3894
|
+
* For XOF hash functions such as 'shake256', the outputLength option
|
|
3895
|
+
* can be used to specify the desired output length in bytes.
|
|
3896
|
+
*/
|
|
3897
|
+
outputLength?: number | undefined;
|
|
3898
|
+
}
|
|
3899
|
+
interface OneShotDigestOptionsWithStringEncoding extends OneShotDigestOptions {
|
|
3900
|
+
outputEncoding?: BinaryToTextEncoding | undefined;
|
|
3901
|
+
}
|
|
3902
|
+
interface OneShotDigestOptionsWithBufferEncoding extends OneShotDigestOptions {
|
|
3903
|
+
outputEncoding: "buffer";
|
|
3904
|
+
}
|
|
3905
|
+
/**
|
|
3906
|
+
* A utility for creating one-shot hash digests of data. It can be faster than
|
|
3907
|
+
* the object-based `crypto.createHash()` when hashing a smaller amount of data
|
|
3908
|
+
* (<= 5MB) that's readily available. If the data can be big or if it is streamed,
|
|
3909
|
+
* it's still recommended to use `crypto.createHash()` instead.
|
|
3910
|
+
*
|
|
3911
|
+
* The `algorithm` is dependent on the available algorithms supported by the
|
|
3912
|
+
* version of OpenSSL on the platform. Examples are `'sha256'`, `'sha512'`, etc.
|
|
3913
|
+
* On recent releases of OpenSSL, `openssl list -digest-algorithms` will
|
|
3914
|
+
* display the available digest algorithms.
|
|
3915
|
+
*
|
|
3916
|
+
* If `options` is a string, then it specifies the `outputEncoding`.
|
|
3371
3917
|
*
|
|
3372
3918
|
* Example:
|
|
3373
3919
|
*
|
|
@@ -3387,16 +3933,25 @@ declare module "crypto" {
|
|
|
3387
3933
|
* console.log(crypto.hash('sha1', Buffer.from(base64, 'base64'), 'buffer'));
|
|
3388
3934
|
* ```
|
|
3389
3935
|
* @since v21.7.0, v20.12.0
|
|
3390
|
-
* @param data When `data` is a string, it will be encoded as UTF-8 before being hashed. If a different
|
|
3391
|
-
*
|
|
3392
|
-
*
|
|
3936
|
+
* @param data When `data` is a string, it will be encoded as UTF-8 before being hashed. If a different
|
|
3937
|
+
* input encoding is desired for a string input, user could encode the string
|
|
3938
|
+
* into a `TypedArray` using either `TextEncoder` or `Buffer.from()` and passing
|
|
3939
|
+
* the encoded `TypedArray` into this API instead.
|
|
3393
3940
|
*/
|
|
3394
|
-
function hash(algorithm: string, data: BinaryLike, outputEncoding?: BinaryToTextEncoding): string;
|
|
3395
|
-
function hash(algorithm: string, data: BinaryLike, outputEncoding: "buffer"): Buffer;
|
|
3396
3941
|
function hash(
|
|
3397
3942
|
algorithm: string,
|
|
3398
3943
|
data: BinaryLike,
|
|
3399
|
-
|
|
3944
|
+
options?: OneShotDigestOptionsWithStringEncoding | BinaryToTextEncoding,
|
|
3945
|
+
): string;
|
|
3946
|
+
function hash(
|
|
3947
|
+
algorithm: string,
|
|
3948
|
+
data: BinaryLike,
|
|
3949
|
+
options: OneShotDigestOptionsWithBufferEncoding | "buffer",
|
|
3950
|
+
): Buffer;
|
|
3951
|
+
function hash(
|
|
3952
|
+
algorithm: string,
|
|
3953
|
+
data: BinaryLike,
|
|
3954
|
+
options: OneShotDigestOptions | BinaryToTextEncoding | "buffer",
|
|
3400
3955
|
): string | Buffer;
|
|
3401
3956
|
type CipherMode = "cbc" | "ccm" | "cfb" | "ctr" | "ecb" | "gcm" | "ocb" | "ofb" | "stream" | "wrap" | "xts";
|
|
3402
3957
|
interface CipherInfoOptions {
|
|
@@ -3561,23 +4116,23 @@ declare module "crypto" {
|
|
|
3561
4116
|
/**
|
|
3562
4117
|
* @default 'always'
|
|
3563
4118
|
*/
|
|
3564
|
-
subject?: "always" | "default" | "never";
|
|
4119
|
+
subject?: "always" | "default" | "never" | undefined;
|
|
3565
4120
|
/**
|
|
3566
4121
|
* @default true
|
|
3567
4122
|
*/
|
|
3568
|
-
wildcards?: boolean;
|
|
4123
|
+
wildcards?: boolean | undefined;
|
|
3569
4124
|
/**
|
|
3570
4125
|
* @default true
|
|
3571
4126
|
*/
|
|
3572
|
-
partialWildcards?: boolean;
|
|
4127
|
+
partialWildcards?: boolean | undefined;
|
|
3573
4128
|
/**
|
|
3574
4129
|
* @default false
|
|
3575
4130
|
*/
|
|
3576
|
-
multiLabelWildcards?: boolean;
|
|
4131
|
+
multiLabelWildcards?: boolean | undefined;
|
|
3577
4132
|
/**
|
|
3578
4133
|
* @default false
|
|
3579
4134
|
*/
|
|
3580
|
-
singleLabelSubdomains?: boolean;
|
|
4135
|
+
singleLabelSubdomains?: boolean | undefined;
|
|
3581
4136
|
}
|
|
3582
4137
|
/**
|
|
3583
4138
|
* Encapsulates an X509 certificate and provides read-only access to
|
|
@@ -3679,7 +4234,7 @@ declare module "crypto" {
|
|
|
3679
4234
|
* available.
|
|
3680
4235
|
* @since v15.9.0
|
|
3681
4236
|
*/
|
|
3682
|
-
readonly issuerCertificate
|
|
4237
|
+
readonly issuerCertificate: X509Certificate | undefined;
|
|
3683
4238
|
/**
|
|
3684
4239
|
* The public key `KeyObject` for this certificate.
|
|
3685
4240
|
* @since v15.6.0
|
|
@@ -3971,6 +4526,130 @@ declare module "crypto" {
|
|
|
3971
4526
|
* @return Returns `typedArray`.
|
|
3972
4527
|
*/
|
|
3973
4528
|
function getRandomValues<T extends webcrypto.BufferSource>(typedArray: T): T;
|
|
4529
|
+
type Argon2Algorithm = "argon2d" | "argon2i" | "argon2id";
|
|
4530
|
+
interface Argon2Parameters {
|
|
4531
|
+
/**
|
|
4532
|
+
* REQUIRED, this is the password for password hashing applications of Argon2.
|
|
4533
|
+
*/
|
|
4534
|
+
message: string | ArrayBuffer | NodeJS.ArrayBufferView;
|
|
4535
|
+
/**
|
|
4536
|
+
* REQUIRED, must be at least 8 bytes long. This is the salt for password hashing applications of Argon2.
|
|
4537
|
+
*/
|
|
4538
|
+
nonce: string | ArrayBuffer | NodeJS.ArrayBufferView;
|
|
4539
|
+
/**
|
|
4540
|
+
* REQUIRED, degree of parallelism determines how many computational chains (lanes)
|
|
4541
|
+
* can be run. Must be greater than 1 and less than `2**24-1`.
|
|
4542
|
+
*/
|
|
4543
|
+
parallelism: number;
|
|
4544
|
+
/**
|
|
4545
|
+
* REQUIRED, the length of the key to generate. Must be greater than 4 and
|
|
4546
|
+
* less than `2**32-1`.
|
|
4547
|
+
*/
|
|
4548
|
+
tagLength: number;
|
|
4549
|
+
/**
|
|
4550
|
+
* REQUIRED, memory cost in 1KiB blocks. Must be greater than
|
|
4551
|
+
* `8 * parallelism` and less than `2**32-1`. The actual number of blocks is rounded
|
|
4552
|
+
* down to the nearest multiple of `4 * parallelism`.
|
|
4553
|
+
*/
|
|
4554
|
+
memory: number;
|
|
4555
|
+
/**
|
|
4556
|
+
* REQUIRED, number of passes (iterations). Must be greater than 1 and less
|
|
4557
|
+
* than `2**32-1`.
|
|
4558
|
+
*/
|
|
4559
|
+
passes: number;
|
|
4560
|
+
/**
|
|
4561
|
+
* OPTIONAL, Random additional input,
|
|
4562
|
+
* similar to the salt, that should **NOT** be stored with the derived key. This is known as pepper in
|
|
4563
|
+
* password hashing applications. If used, must have a length not greater than `2**32-1` bytes.
|
|
4564
|
+
*/
|
|
4565
|
+
secret?: string | ArrayBuffer | NodeJS.ArrayBufferView | undefined;
|
|
4566
|
+
/**
|
|
4567
|
+
* OPTIONAL, Additional data to
|
|
4568
|
+
* be added to the hash, functionally equivalent to salt or secret, but meant for
|
|
4569
|
+
* non-random data. If used, must have a length not greater than `2**32-1` bytes.
|
|
4570
|
+
*/
|
|
4571
|
+
associatedData?: string | ArrayBuffer | NodeJS.ArrayBufferView | undefined;
|
|
4572
|
+
}
|
|
4573
|
+
/**
|
|
4574
|
+
* Provides an asynchronous [Argon2](https://www.rfc-editor.org/rfc/rfc9106.html) implementation. Argon2 is a password-based
|
|
4575
|
+
* key derivation function that is designed to be expensive computationally and
|
|
4576
|
+
* memory-wise in order to make brute-force attacks unrewarding.
|
|
4577
|
+
*
|
|
4578
|
+
* The `nonce` should be as unique as possible. It is recommended that a nonce is
|
|
4579
|
+
* random and at least 16 bytes long. See [NIST SP 800-132](https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-132.pdf) for details.
|
|
4580
|
+
*
|
|
4581
|
+
* When passing strings for `message`, `nonce`, `secret` or `associatedData`, please
|
|
4582
|
+
* consider [caveats when using strings as inputs to cryptographic APIs](https://nodejs.org/docs/latest-v24.x/api/crypto.html#using-strings-as-inputs-to-cryptographic-apis).
|
|
4583
|
+
*
|
|
4584
|
+
* The `callback` function is called with two arguments: `err` and `derivedKey`.
|
|
4585
|
+
* `err` is an exception object when key derivation fails, otherwise `err` is
|
|
4586
|
+
* `null`. `derivedKey` is passed to the callback as a `Buffer`.
|
|
4587
|
+
*
|
|
4588
|
+
* An exception is thrown when any of the input arguments specify invalid values
|
|
4589
|
+
* or types.
|
|
4590
|
+
*
|
|
4591
|
+
* ```js
|
|
4592
|
+
* const { argon2, randomBytes } = await import('node:crypto');
|
|
4593
|
+
*
|
|
4594
|
+
* const parameters = {
|
|
4595
|
+
* message: 'password',
|
|
4596
|
+
* nonce: randomBytes(16),
|
|
4597
|
+
* parallelism: 4,
|
|
4598
|
+
* tagLength: 64,
|
|
4599
|
+
* memory: 65536,
|
|
4600
|
+
* passes: 3,
|
|
4601
|
+
* };
|
|
4602
|
+
*
|
|
4603
|
+
* argon2('argon2id', parameters, (err, derivedKey) => {
|
|
4604
|
+
* if (err) throw err;
|
|
4605
|
+
* console.log(derivedKey.toString('hex')); // 'af91dad...9520f15'
|
|
4606
|
+
* });
|
|
4607
|
+
* ```
|
|
4608
|
+
* @since v24.7.0
|
|
4609
|
+
* @param algorithm Variant of Argon2, one of `"argon2d"`, `"argon2i"` or `"argon2id"`.
|
|
4610
|
+
* @experimental
|
|
4611
|
+
*/
|
|
4612
|
+
function argon2(
|
|
4613
|
+
algorithm: Argon2Algorithm,
|
|
4614
|
+
parameters: Argon2Parameters,
|
|
4615
|
+
callback: (err: Error | null, derivedKey: Buffer) => void,
|
|
4616
|
+
): void;
|
|
4617
|
+
/**
|
|
4618
|
+
* Provides a synchronous [Argon2][] implementation. Argon2 is a password-based
|
|
4619
|
+
* key derivation function that is designed to be expensive computationally and
|
|
4620
|
+
* memory-wise in order to make brute-force attacks unrewarding.
|
|
4621
|
+
*
|
|
4622
|
+
* The `nonce` should be as unique as possible. It is recommended that a nonce is
|
|
4623
|
+
* random and at least 16 bytes long. See [NIST SP 800-132](https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-132.pdf) for details.
|
|
4624
|
+
*
|
|
4625
|
+
* When passing strings for `message`, `nonce`, `secret` or `associatedData`, please
|
|
4626
|
+
* consider [caveats when using strings as inputs to cryptographic APIs](https://nodejs.org/docs/latest-v24.x/api/crypto.html#using-strings-as-inputs-to-cryptographic-apis).
|
|
4627
|
+
*
|
|
4628
|
+
* An exception is thrown when key derivation fails, otherwise the derived key is
|
|
4629
|
+
* returned as a `Buffer`.
|
|
4630
|
+
*
|
|
4631
|
+
* An exception is thrown when any of the input arguments specify invalid values
|
|
4632
|
+
* or types.
|
|
4633
|
+
*
|
|
4634
|
+
* ```js
|
|
4635
|
+
* const { argon2Sync, randomBytes } = await import('node:crypto');
|
|
4636
|
+
*
|
|
4637
|
+
* const parameters = {
|
|
4638
|
+
* message: 'password',
|
|
4639
|
+
* nonce: randomBytes(16),
|
|
4640
|
+
* parallelism: 4,
|
|
4641
|
+
* tagLength: 64,
|
|
4642
|
+
* memory: 65536,
|
|
4643
|
+
* passes: 3,
|
|
4644
|
+
* };
|
|
4645
|
+
*
|
|
4646
|
+
* const derivedKey = argon2Sync('argon2id', parameters);
|
|
4647
|
+
* console.log(derivedKey.toString('hex')); // 'af91dad...9520f15'
|
|
4648
|
+
* ```
|
|
4649
|
+
* @since v24.7.0
|
|
4650
|
+
* @experimental
|
|
4651
|
+
*/
|
|
4652
|
+
function argon2Sync(algorithm: Argon2Algorithm, parameters: Argon2Parameters): Buffer;
|
|
3974
4653
|
/**
|
|
3975
4654
|
* A convenient alias for `crypto.webcrypto.subtle`.
|
|
3976
4655
|
* @since v17.4.0
|
|
@@ -3985,21 +4664,30 @@ declare module "crypto" {
|
|
|
3985
4664
|
const webcrypto: webcrypto.Crypto;
|
|
3986
4665
|
namespace webcrypto {
|
|
3987
4666
|
type BufferSource = ArrayBufferView | ArrayBuffer;
|
|
3988
|
-
type KeyFormat = "jwk" | "pkcs8" | "raw" | "spki";
|
|
4667
|
+
type KeyFormat = "jwk" | "pkcs8" | "raw" | "raw-public" | "raw-secret" | "raw-seed" | "spki";
|
|
3989
4668
|
type KeyType = "private" | "public" | "secret";
|
|
3990
4669
|
type KeyUsage =
|
|
3991
|
-
| "decrypt"
|
|
3992
|
-
| "deriveBits"
|
|
3993
|
-
| "deriveKey"
|
|
3994
4670
|
| "encrypt"
|
|
4671
|
+
| "decrypt"
|
|
3995
4672
|
| "sign"
|
|
3996
|
-
| "unwrapKey"
|
|
3997
4673
|
| "verify"
|
|
3998
|
-
| "
|
|
4674
|
+
| "deriveKey"
|
|
4675
|
+
| "deriveBits"
|
|
4676
|
+
| "encapsulateBits"
|
|
4677
|
+
| "decapsulateBits"
|
|
4678
|
+
| "encapsulateKey"
|
|
4679
|
+
| "decapsulateKey"
|
|
4680
|
+
| "wrapKey"
|
|
4681
|
+
| "unwrapKey";
|
|
3999
4682
|
type AlgorithmIdentifier = Algorithm | string;
|
|
4000
4683
|
type HashAlgorithmIdentifier = AlgorithmIdentifier;
|
|
4001
4684
|
type NamedCurve = string;
|
|
4002
4685
|
type BigInteger = Uint8Array;
|
|
4686
|
+
interface AeadParams extends Algorithm {
|
|
4687
|
+
additionalData?: BufferSource;
|
|
4688
|
+
iv: BufferSource;
|
|
4689
|
+
tagLength: number;
|
|
4690
|
+
}
|
|
4003
4691
|
interface AesCbcParams extends Algorithm {
|
|
4004
4692
|
iv: BufferSource;
|
|
4005
4693
|
}
|
|
@@ -4010,6 +4698,8 @@ declare module "crypto" {
|
|
|
4010
4698
|
interface AesDerivedKeyParams extends Algorithm {
|
|
4011
4699
|
length: number;
|
|
4012
4700
|
}
|
|
4701
|
+
// TODO: remove in next major
|
|
4702
|
+
/** @deprecated Replaced by `AeadParams`. */
|
|
4013
4703
|
interface AesGcmParams extends Algorithm {
|
|
4014
4704
|
additionalData?: BufferSource;
|
|
4015
4705
|
iv: BufferSource;
|
|
@@ -4024,6 +4714,23 @@ declare module "crypto" {
|
|
|
4024
4714
|
interface Algorithm {
|
|
4025
4715
|
name: string;
|
|
4026
4716
|
}
|
|
4717
|
+
interface Argon2Params extends Algorithm {
|
|
4718
|
+
associatedData?: BufferSource;
|
|
4719
|
+
memory: number;
|
|
4720
|
+
nonce: BufferSource;
|
|
4721
|
+
parallelism: number;
|
|
4722
|
+
passes: number;
|
|
4723
|
+
secretValue?: BufferSource;
|
|
4724
|
+
version?: number;
|
|
4725
|
+
}
|
|
4726
|
+
interface CShakeParams extends Algorithm {
|
|
4727
|
+
customization?: BufferSource;
|
|
4728
|
+
functionName?: BufferSource;
|
|
4729
|
+
length: number;
|
|
4730
|
+
}
|
|
4731
|
+
interface ContextParams extends Algorithm {
|
|
4732
|
+
context?: BufferSource;
|
|
4733
|
+
}
|
|
4027
4734
|
interface EcKeyAlgorithm extends KeyAlgorithm {
|
|
4028
4735
|
namedCurve: NamedCurve;
|
|
4029
4736
|
}
|
|
@@ -4039,9 +4746,6 @@ declare module "crypto" {
|
|
|
4039
4746
|
interface EcdsaParams extends Algorithm {
|
|
4040
4747
|
hash: HashAlgorithmIdentifier;
|
|
4041
4748
|
}
|
|
4042
|
-
interface Ed448Params extends Algorithm {
|
|
4043
|
-
context?: BufferSource;
|
|
4044
|
-
}
|
|
4045
4749
|
interface HkdfParams extends Algorithm {
|
|
4046
4750
|
hash: HashAlgorithmIdentifier;
|
|
4047
4751
|
info: BufferSource;
|
|
@@ -4082,6 +4786,19 @@ declare module "crypto" {
|
|
|
4082
4786
|
interface KeyAlgorithm {
|
|
4083
4787
|
name: string;
|
|
4084
4788
|
}
|
|
4789
|
+
interface KmacImportParams extends Algorithm {
|
|
4790
|
+
length?: number;
|
|
4791
|
+
}
|
|
4792
|
+
interface KmacKeyAlgorithm extends KeyAlgorithm {
|
|
4793
|
+
length: number;
|
|
4794
|
+
}
|
|
4795
|
+
interface KmacKeyGenParams extends Algorithm {
|
|
4796
|
+
length?: number;
|
|
4797
|
+
}
|
|
4798
|
+
interface KmacParams extends Algorithm {
|
|
4799
|
+
customization?: BufferSource;
|
|
4800
|
+
length: number;
|
|
4801
|
+
}
|
|
4085
4802
|
interface Pbkdf2Params extends Algorithm {
|
|
4086
4803
|
hash: HashAlgorithmIdentifier;
|
|
4087
4804
|
iterations: number;
|
|
@@ -4135,22 +4852,15 @@ declare module "crypto" {
|
|
|
4135
4852
|
* An error will be thrown if the given `typedArray` is larger than 65,536 bytes.
|
|
4136
4853
|
* @since v15.0.0
|
|
4137
4854
|
*/
|
|
4138
|
-
getRandomValues<T extends Exclude<NodeJS.TypedArray, Float32Array | Float64Array>>(
|
|
4855
|
+
getRandomValues<T extends Exclude<NodeJS.TypedArray, Float16Array | Float32Array | Float64Array>>(
|
|
4856
|
+
typedArray: T,
|
|
4857
|
+
): T;
|
|
4139
4858
|
/**
|
|
4140
4859
|
* Generates a random {@link https://www.rfc-editor.org/rfc/rfc4122.txt RFC 4122} version 4 UUID.
|
|
4141
4860
|
* The UUID is generated using a cryptographic pseudorandom number generator.
|
|
4142
4861
|
* @since v16.7.0
|
|
4143
4862
|
*/
|
|
4144
4863
|
randomUUID(): UUID;
|
|
4145
|
-
CryptoKey: CryptoKeyConstructor;
|
|
4146
|
-
}
|
|
4147
|
-
// This constructor throws ILLEGAL_CONSTRUCTOR so it should not be newable.
|
|
4148
|
-
interface CryptoKeyConstructor {
|
|
4149
|
-
/** Illegal constructor */
|
|
4150
|
-
(_: { readonly _: unique symbol }): never; // Allows instanceof to work but not be callable by the user.
|
|
4151
|
-
readonly length: 0;
|
|
4152
|
-
readonly name: "CryptoKey";
|
|
4153
|
-
readonly prototype: CryptoKey;
|
|
4154
4864
|
}
|
|
4155
4865
|
/**
|
|
4156
4866
|
* @since v15.0.0
|
|
@@ -4205,31 +4915,81 @@ declare module "crypto" {
|
|
|
4205
4915
|
*/
|
|
4206
4916
|
publicKey: CryptoKey;
|
|
4207
4917
|
}
|
|
4918
|
+
interface EncapsulatedBits {
|
|
4919
|
+
sharedKey: ArrayBuffer;
|
|
4920
|
+
ciphertext: ArrayBuffer;
|
|
4921
|
+
}
|
|
4922
|
+
interface EncapsulatedKey {
|
|
4923
|
+
sharedKey: CryptoKey;
|
|
4924
|
+
ciphertext: ArrayBuffer;
|
|
4925
|
+
}
|
|
4208
4926
|
/**
|
|
4209
4927
|
* @since v15.0.0
|
|
4210
4928
|
*/
|
|
4211
4929
|
interface SubtleCrypto {
|
|
4930
|
+
/**
|
|
4931
|
+
* A message recipient uses their asymmetric private key to decrypt an
|
|
4932
|
+
* "encapsulated key" (ciphertext), thereby recovering a temporary symmetric
|
|
4933
|
+
* key (represented as `ArrayBuffer`) which is then used to decrypt a message.
|
|
4934
|
+
*
|
|
4935
|
+
* The algorithms currently supported include:
|
|
4936
|
+
*
|
|
4937
|
+
* * `'ML-KEM-512'`
|
|
4938
|
+
* * `'ML-KEM-768'`
|
|
4939
|
+
* * `'ML-KEM-1024'`
|
|
4940
|
+
* @since v24.7.0
|
|
4941
|
+
* @returns Fulfills with `ArrayBuffer` upon success.
|
|
4942
|
+
*/
|
|
4943
|
+
decapsulateBits(
|
|
4944
|
+
decapsulationAlgorithm: AlgorithmIdentifier,
|
|
4945
|
+
decapsulationKey: CryptoKey,
|
|
4946
|
+
ciphertext: BufferSource,
|
|
4947
|
+
): Promise<ArrayBuffer>;
|
|
4948
|
+
/**
|
|
4949
|
+
* A message recipient uses their asymmetric private key to decrypt an
|
|
4950
|
+
* "encapsulated key" (ciphertext), thereby recovering a temporary symmetric
|
|
4951
|
+
* key (represented as `CryptoKey`) which is then used to decrypt a message.
|
|
4952
|
+
*
|
|
4953
|
+
* The algorithms currently supported include:
|
|
4954
|
+
*
|
|
4955
|
+
* * `'ML-KEM-512'`
|
|
4956
|
+
* * `'ML-KEM-768'`
|
|
4957
|
+
* * `'ML-KEM-1024'`
|
|
4958
|
+
* @since v24.7.0
|
|
4959
|
+
* @param usages See [Key usages](https://nodejs.org/docs/latest-v24.x/api/webcrypto.html#cryptokeyusages).
|
|
4960
|
+
* @returns Fulfills with `CryptoKey` upon success.
|
|
4961
|
+
*/
|
|
4962
|
+
decapsulateKey(
|
|
4963
|
+
decapsulationAlgorithm: AlgorithmIdentifier,
|
|
4964
|
+
decapsulationKey: CryptoKey,
|
|
4965
|
+
ciphertext: BufferSource,
|
|
4966
|
+
sharedKeyAlgorithm: AlgorithmIdentifier | HmacImportParams | AesDerivedKeyParams | KmacImportParams,
|
|
4967
|
+
extractable: boolean,
|
|
4968
|
+
usages: KeyUsage[],
|
|
4969
|
+
): Promise<CryptoKey>;
|
|
4212
4970
|
/**
|
|
4213
4971
|
* Using the method and parameters specified in `algorithm` and the keying material provided by `key`,
|
|
4214
|
-
*
|
|
4972
|
+
* this method attempts to decipher the provided `data`. If successful,
|
|
4215
4973
|
* the returned promise will be resolved with an `<ArrayBuffer>` containing the plaintext result.
|
|
4216
4974
|
*
|
|
4217
4975
|
* The algorithms currently supported include:
|
|
4218
4976
|
*
|
|
4219
|
-
*
|
|
4220
|
-
*
|
|
4221
|
-
*
|
|
4222
|
-
*
|
|
4977
|
+
* * `'AES-CBC'`
|
|
4978
|
+
* * `'AES-CTR'`
|
|
4979
|
+
* * `'AES-GCM'`
|
|
4980
|
+
* * `'AES-OCB'`
|
|
4981
|
+
* * `'ChaCha20-Poly1305'`
|
|
4982
|
+
* * `'RSA-OAEP'`
|
|
4223
4983
|
* @since v15.0.0
|
|
4224
4984
|
*/
|
|
4225
4985
|
decrypt(
|
|
4226
|
-
algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams |
|
|
4986
|
+
algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AeadParams,
|
|
4227
4987
|
key: CryptoKey,
|
|
4228
4988
|
data: BufferSource,
|
|
4229
4989
|
): Promise<ArrayBuffer>;
|
|
4230
4990
|
/**
|
|
4231
4991
|
* Using the method and parameters specified in `algorithm` and the keying material provided by `baseKey`,
|
|
4232
|
-
*
|
|
4992
|
+
* this method attempts to generate `length` bits.
|
|
4233
4993
|
* The Node.js implementation requires that when `length` is a number it must be multiple of `8`.
|
|
4234
4994
|
* When `length` is `null` the maximum number of bits for a given algorithm is generated. This is allowed
|
|
4235
4995
|
* for the `'ECDH'`, `'X25519'`, and `'X448'` algorithms.
|
|
@@ -4237,11 +4997,14 @@ declare module "crypto" {
|
|
|
4237
4997
|
*
|
|
4238
4998
|
* The algorithms currently supported include:
|
|
4239
4999
|
*
|
|
4240
|
-
*
|
|
4241
|
-
*
|
|
4242
|
-
*
|
|
4243
|
-
*
|
|
4244
|
-
*
|
|
5000
|
+
* * `'Argon2d'`
|
|
5001
|
+
* * `'Argon2i'`
|
|
5002
|
+
* * `'Argon2id'`
|
|
5003
|
+
* * `'ECDH'`
|
|
5004
|
+
* * `'HKDF'`
|
|
5005
|
+
* * `'PBKDF2'`
|
|
5006
|
+
* * `'X25519'`
|
|
5007
|
+
* * `'X448'`
|
|
4245
5008
|
* @since v15.0.0
|
|
4246
5009
|
*/
|
|
4247
5010
|
deriveBits(
|
|
@@ -4250,31 +5013,34 @@ declare module "crypto" {
|
|
|
4250
5013
|
length?: number | null,
|
|
4251
5014
|
): Promise<ArrayBuffer>;
|
|
4252
5015
|
deriveBits(
|
|
4253
|
-
algorithm: EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params,
|
|
5016
|
+
algorithm: EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params | Argon2Params,
|
|
4254
5017
|
baseKey: CryptoKey,
|
|
4255
5018
|
length: number,
|
|
4256
5019
|
): Promise<ArrayBuffer>;
|
|
4257
5020
|
/**
|
|
4258
5021
|
* Using the method and parameters specified in `algorithm`, and the keying material provided by `baseKey`,
|
|
4259
|
-
*
|
|
5022
|
+
* this method attempts to generate a new <CryptoKey>` based on the method and parameters in `derivedKeyAlgorithm`.
|
|
4260
5023
|
*
|
|
4261
5024
|
* Calling `subtle.deriveKey()` is equivalent to calling `subtle.deriveBits()` to generate raw keying material,
|
|
4262
5025
|
* then passing the result into the `subtle.importKey()` method using the `deriveKeyAlgorithm`, `extractable`, and `keyUsages` parameters as input.
|
|
4263
5026
|
*
|
|
4264
5027
|
* The algorithms currently supported include:
|
|
4265
5028
|
*
|
|
4266
|
-
*
|
|
4267
|
-
*
|
|
4268
|
-
*
|
|
4269
|
-
*
|
|
4270
|
-
*
|
|
5029
|
+
* * `'Argon2d'`
|
|
5030
|
+
* * `'Argon2i'`
|
|
5031
|
+
* * `'Argon2id'`
|
|
5032
|
+
* * `'ECDH'`
|
|
5033
|
+
* * `'HKDF'`
|
|
5034
|
+
* * `'PBKDF2'`
|
|
5035
|
+
* * `'X25519'`
|
|
5036
|
+
* * `'X448'`
|
|
4271
5037
|
* @param keyUsages See {@link https://nodejs.org/docs/latest/api/webcrypto.html#cryptokeyusages Key usages}.
|
|
4272
5038
|
* @since v15.0.0
|
|
4273
5039
|
*/
|
|
4274
5040
|
deriveKey(
|
|
4275
|
-
algorithm: EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params,
|
|
5041
|
+
algorithm: EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params | Argon2Params,
|
|
4276
5042
|
baseKey: CryptoKey,
|
|
4277
|
-
derivedKeyAlgorithm: AlgorithmIdentifier | HmacImportParams | AesDerivedKeyParams,
|
|
5043
|
+
derivedKeyAlgorithm: AlgorithmIdentifier | HmacImportParams | AesDerivedKeyParams | KmacImportParams,
|
|
4278
5044
|
extractable: boolean,
|
|
4279
5045
|
keyUsages: readonly KeyUsage[],
|
|
4280
5046
|
): Promise<CryptoKey>;
|
|
@@ -4284,30 +5050,73 @@ declare module "crypto" {
|
|
|
4284
5050
|
*
|
|
4285
5051
|
* If `algorithm` is provided as a `<string>`, it must be one of:
|
|
4286
5052
|
*
|
|
4287
|
-
*
|
|
4288
|
-
*
|
|
4289
|
-
*
|
|
4290
|
-
*
|
|
5053
|
+
* * `'cSHAKE128'`
|
|
5054
|
+
* * `'cSHAKE256'`
|
|
5055
|
+
* * `'SHA-1'`
|
|
5056
|
+
* * `'SHA-256'`
|
|
5057
|
+
* * `'SHA-384'`
|
|
5058
|
+
* * `'SHA-512'`
|
|
5059
|
+
* * `'SHA3-256'`
|
|
5060
|
+
* * `'SHA3-384'`
|
|
5061
|
+
* * `'SHA3-512'`
|
|
4291
5062
|
*
|
|
4292
5063
|
* If `algorithm` is provided as an `<Object>`, it must have a `name` property whose value is one of the above.
|
|
4293
5064
|
* @since v15.0.0
|
|
4294
5065
|
*/
|
|
4295
|
-
digest(algorithm: AlgorithmIdentifier, data: BufferSource): Promise<ArrayBuffer>;
|
|
5066
|
+
digest(algorithm: AlgorithmIdentifier | CShakeParams, data: BufferSource): Promise<ArrayBuffer>;
|
|
5067
|
+
/**
|
|
5068
|
+
* Uses a message recipient's asymmetric public key to encrypt a temporary symmetric key.
|
|
5069
|
+
* This encrypted key is the "encapsulated key" represented as `EncapsulatedBits`.
|
|
5070
|
+
*
|
|
5071
|
+
* The algorithms currently supported include:
|
|
5072
|
+
*
|
|
5073
|
+
* * `'ML-KEM-512'`
|
|
5074
|
+
* * `'ML-KEM-768'`
|
|
5075
|
+
* * `'ML-KEM-1024'`
|
|
5076
|
+
* @since v24.7.0
|
|
5077
|
+
* @returns Fulfills with `EncapsulatedBits` upon success.
|
|
5078
|
+
*/
|
|
5079
|
+
encapsulateBits(
|
|
5080
|
+
encapsulationAlgorithm: AlgorithmIdentifier,
|
|
5081
|
+
encapsulationKey: CryptoKey,
|
|
5082
|
+
): Promise<EncapsulatedBits>;
|
|
5083
|
+
/**
|
|
5084
|
+
* Uses a message recipient's asymmetric public key to encrypt a temporary symmetric key.
|
|
5085
|
+
* This encrypted key is the "encapsulated key" represented as `EncapsulatedKey`.
|
|
5086
|
+
*
|
|
5087
|
+
* The algorithms currently supported include:
|
|
5088
|
+
*
|
|
5089
|
+
* * `'ML-KEM-512'`
|
|
5090
|
+
* * `'ML-KEM-768'`
|
|
5091
|
+
* * `'ML-KEM-1024'`
|
|
5092
|
+
* @since v24.7.0
|
|
5093
|
+
* @param usages See [Key usages](https://nodejs.org/docs/latest-v24.x/api/webcrypto.html#cryptokeyusages).
|
|
5094
|
+
* @returns Fulfills with `EncapsulatedKey` upon success.
|
|
5095
|
+
*/
|
|
5096
|
+
encapsulateKey(
|
|
5097
|
+
encapsulationAlgorithm: AlgorithmIdentifier,
|
|
5098
|
+
encapsulationKey: CryptoKey,
|
|
5099
|
+
sharedKeyAlgorithm: AlgorithmIdentifier | HmacImportParams | AesDerivedKeyParams | KmacImportParams,
|
|
5100
|
+
extractable: boolean,
|
|
5101
|
+
usages: KeyUsage[],
|
|
5102
|
+
): Promise<EncapsulatedKey>;
|
|
4296
5103
|
/**
|
|
4297
5104
|
* Using the method and parameters specified by `algorithm` and the keying material provided by `key`,
|
|
4298
|
-
*
|
|
5105
|
+
* this method attempts to encipher `data`. If successful,
|
|
4299
5106
|
* the returned promise is resolved with an `<ArrayBuffer>` containing the encrypted result.
|
|
4300
5107
|
*
|
|
4301
5108
|
* The algorithms currently supported include:
|
|
4302
5109
|
*
|
|
4303
|
-
*
|
|
4304
|
-
*
|
|
4305
|
-
*
|
|
4306
|
-
*
|
|
5110
|
+
* * `'AES-CBC'`
|
|
5111
|
+
* * `'AES-CTR'`
|
|
5112
|
+
* * `'AES-GCM'`
|
|
5113
|
+
* * `'AES-OCB'`
|
|
5114
|
+
* * `'ChaCha20-Poly1305'`
|
|
5115
|
+
* * `'RSA-OAEP'`
|
|
4307
5116
|
* @since v15.0.0
|
|
4308
5117
|
*/
|
|
4309
5118
|
encrypt(
|
|
4310
|
-
algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams |
|
|
5119
|
+
algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AeadParams,
|
|
4311
5120
|
key: CryptoKey,
|
|
4312
5121
|
data: BufferSource,
|
|
4313
5122
|
): Promise<ArrayBuffer>;
|
|
@@ -4321,35 +5130,47 @@ declare module "crypto" {
|
|
|
4321
5130
|
*
|
|
4322
5131
|
* When `format` is `'jwk'` and the export is successful, the returned promise will be resolved with a
|
|
4323
5132
|
* JavaScript object conforming to the {@link https://tools.ietf.org/html/rfc7517 JSON Web Key} specification.
|
|
4324
|
-
* @param format Must be one of `'raw'`, `'pkcs8'`, `'spki'`,
|
|
5133
|
+
* @param format Must be one of `'raw'`, `'pkcs8'`, `'spki'`, `'jwk'`, `'raw-secret'`,
|
|
5134
|
+
* `'raw-public'`, or `'raw-seed'`.
|
|
4325
5135
|
* @returns `<Promise>` containing `<ArrayBuffer>`.
|
|
4326
5136
|
* @since v15.0.0
|
|
4327
5137
|
*/
|
|
4328
5138
|
exportKey(format: "jwk", key: CryptoKey): Promise<JsonWebKey>;
|
|
4329
5139
|
exportKey(format: Exclude<KeyFormat, "jwk">, key: CryptoKey): Promise<ArrayBuffer>;
|
|
4330
5140
|
/**
|
|
4331
|
-
* Using the method and parameters provided in `algorithm`,
|
|
4332
|
-
*
|
|
4333
|
-
*
|
|
5141
|
+
* Using the method and parameters provided in `algorithm`, `subtle.generateKey()`
|
|
5142
|
+
* attempts to generate new keying material. Depending the method used, the method
|
|
5143
|
+
* may generate either a single `CryptoKey` or a `CryptoKeyPair`.
|
|
4334
5144
|
*
|
|
4335
|
-
* The
|
|
5145
|
+
* The `CryptoKeyPair` (public and private key) generating algorithms supported
|
|
5146
|
+
* include:
|
|
4336
5147
|
*
|
|
4337
|
-
*
|
|
4338
|
-
*
|
|
4339
|
-
*
|
|
4340
|
-
*
|
|
4341
|
-
*
|
|
4342
|
-
*
|
|
4343
|
-
*
|
|
4344
|
-
*
|
|
4345
|
-
*
|
|
4346
|
-
*
|
|
5148
|
+
* * `'ECDH'`
|
|
5149
|
+
* * `'ECDSA'`
|
|
5150
|
+
* * `'Ed25519'`
|
|
5151
|
+
* * `'Ed448'`
|
|
5152
|
+
* * `'ML-DSA-44'`
|
|
5153
|
+
* * `'ML-DSA-65'`
|
|
5154
|
+
* * `'ML-DSA-87'`
|
|
5155
|
+
* * `'ML-KEM-512'`
|
|
5156
|
+
* * `'ML-KEM-768'`
|
|
5157
|
+
* * `'ML-KEM-1024'`
|
|
5158
|
+
* * `'RSA-OAEP'`
|
|
5159
|
+
* * `'RSA-PSS'`
|
|
5160
|
+
* * `'RSASSA-PKCS1-v1_5'`
|
|
5161
|
+
* * `'X25519'`
|
|
5162
|
+
* * `'X448'`
|
|
4347
5163
|
*
|
|
4348
|
-
*
|
|
4349
|
-
*
|
|
4350
|
-
*
|
|
4351
|
-
*
|
|
4352
|
-
*
|
|
5164
|
+
* The `CryptoKey` (secret key) generating algorithms supported include:
|
|
5165
|
+
* * `'AES-CBC'`
|
|
5166
|
+
* * `'AES-CTR'`
|
|
5167
|
+
* * `'AES-GCM'`
|
|
5168
|
+
* * `'AES-KW'`
|
|
5169
|
+
* * `'AES-OCB'`
|
|
5170
|
+
* * `'ChaCha20-Poly1305'`
|
|
5171
|
+
* * `'HMAC'`
|
|
5172
|
+
* * `'KMAC128'`
|
|
5173
|
+
* * `'KMAC256'`
|
|
4353
5174
|
* @param keyUsages See {@link https://nodejs.org/docs/latest/api/webcrypto.html#cryptokeyusages Key usages}.
|
|
4354
5175
|
* @since v15.0.0
|
|
4355
5176
|
*/
|
|
@@ -4359,7 +5180,7 @@ declare module "crypto" {
|
|
|
4359
5180
|
keyUsages: readonly KeyUsage[],
|
|
4360
5181
|
): Promise<CryptoKeyPair>;
|
|
4361
5182
|
generateKey(
|
|
4362
|
-
algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params,
|
|
5183
|
+
algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params | KmacKeyGenParams,
|
|
4363
5184
|
extractable: boolean,
|
|
4364
5185
|
keyUsages: readonly KeyUsage[],
|
|
4365
5186
|
): Promise<CryptoKey>;
|
|
@@ -4368,13 +5189,22 @@ declare module "crypto" {
|
|
|
4368
5189
|
extractable: boolean,
|
|
4369
5190
|
keyUsages: KeyUsage[],
|
|
4370
5191
|
): Promise<CryptoKeyPair | CryptoKey>;
|
|
5192
|
+
/**
|
|
5193
|
+
* Derives the public key from a given private key.
|
|
5194
|
+
* @since v24.7.0
|
|
5195
|
+
* @param key A private key from which to derive the corresponding public key.
|
|
5196
|
+
* @param keyUsages See [Key usages](https://nodejs.org/docs/latest-v24.x/api/webcrypto.html#cryptokeyusages).
|
|
5197
|
+
* @returns Fulfills with a `CryptoKey` upon success.
|
|
5198
|
+
*/
|
|
5199
|
+
getPublicKey(key: CryptoKey, keyUsages: KeyUsage[]): Promise<CryptoKey>;
|
|
4371
5200
|
/**
|
|
4372
5201
|
* The `subtle.importKey()` method attempts to interpret the provided `keyData` as the given `format`
|
|
4373
5202
|
* to create a `<CryptoKey>` instance using the provided `algorithm`, `extractable`, and `keyUsages` arguments.
|
|
4374
5203
|
* If the import is successful, the returned promise will be resolved with the created `<CryptoKey>`.
|
|
4375
5204
|
*
|
|
4376
|
-
* If importing
|
|
4377
|
-
* @param format Must be one of `'raw'`, `'pkcs8'`, `'spki'`,
|
|
5205
|
+
* If importing KDF algorithm keys, `extractable` must be `false`.
|
|
5206
|
+
* @param format Must be one of `'raw'`, `'pkcs8'`, `'spki'`, `'jwk'`, `'raw-secret'`,
|
|
5207
|
+
* `'raw-public'`, or `'raw-seed'`.
|
|
4378
5208
|
* @param keyUsages See {@link https://nodejs.org/docs/latest/api/webcrypto.html#cryptokeyusages Key usages}.
|
|
4379
5209
|
* @since v15.0.0
|
|
4380
5210
|
*/
|
|
@@ -4386,7 +5216,8 @@ declare module "crypto" {
|
|
|
4386
5216
|
| RsaHashedImportParams
|
|
4387
5217
|
| EcKeyImportParams
|
|
4388
5218
|
| HmacImportParams
|
|
4389
|
-
| AesKeyAlgorithm
|
|
5219
|
+
| AesKeyAlgorithm
|
|
5220
|
+
| KmacImportParams,
|
|
4390
5221
|
extractable: boolean,
|
|
4391
5222
|
keyUsages: readonly KeyUsage[],
|
|
4392
5223
|
): Promise<CryptoKey>;
|
|
@@ -4398,62 +5229,81 @@ declare module "crypto" {
|
|
|
4398
5229
|
| RsaHashedImportParams
|
|
4399
5230
|
| EcKeyImportParams
|
|
4400
5231
|
| HmacImportParams
|
|
4401
|
-
| AesKeyAlgorithm
|
|
5232
|
+
| AesKeyAlgorithm
|
|
5233
|
+
| KmacImportParams,
|
|
4402
5234
|
extractable: boolean,
|
|
4403
5235
|
keyUsages: KeyUsage[],
|
|
4404
5236
|
): Promise<CryptoKey>;
|
|
4405
5237
|
/**
|
|
4406
5238
|
* Using the method and parameters given by `algorithm` and the keying material provided by `key`,
|
|
4407
|
-
*
|
|
5239
|
+
* this method attempts to generate a cryptographic signature of `data`. If successful,
|
|
4408
5240
|
* the returned promise is resolved with an `<ArrayBuffer>` containing the generated signature.
|
|
4409
5241
|
*
|
|
4410
5242
|
* The algorithms currently supported include:
|
|
4411
5243
|
*
|
|
4412
|
-
*
|
|
4413
|
-
*
|
|
4414
|
-
*
|
|
4415
|
-
*
|
|
4416
|
-
*
|
|
4417
|
-
*
|
|
5244
|
+
* * `'ECDSA'`
|
|
5245
|
+
* * `'Ed25519'`
|
|
5246
|
+
* * `'Ed448'`
|
|
5247
|
+
* * `'HMAC'`
|
|
5248
|
+
* * `'KMAC128'`
|
|
5249
|
+
* * `'KMAC256'`
|
|
5250
|
+
* * `'ML-DSA-44'`
|
|
5251
|
+
* * `'ML-DSA-65'`
|
|
5252
|
+
* * `'ML-DSA-87'`
|
|
5253
|
+
* * `'RSA-PSS'`
|
|
5254
|
+
* * `'RSASSA-PKCS1-v1_5'`
|
|
4418
5255
|
* @since v15.0.0
|
|
4419
5256
|
*/
|
|
4420
5257
|
sign(
|
|
4421
|
-
algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams |
|
|
5258
|
+
algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams | ContextParams | KmacParams,
|
|
4422
5259
|
key: CryptoKey,
|
|
4423
5260
|
data: BufferSource,
|
|
4424
5261
|
): Promise<ArrayBuffer>;
|
|
4425
5262
|
/**
|
|
4426
5263
|
* In cryptography, "wrapping a key" refers to exporting and then encrypting the keying material.
|
|
4427
|
-
*
|
|
5264
|
+
* This method attempts to decrypt a wrapped key and create a `<CryptoKey>` instance.
|
|
4428
5265
|
* It is equivalent to calling `subtle.decrypt()` first on the encrypted key data (using the `wrappedKey`, `unwrapAlgo`, and `unwrappingKey` arguments as input)
|
|
4429
5266
|
* then passing the results in to the `subtle.importKey()` method using the `unwrappedKeyAlgo`, `extractable`, and `keyUsages` arguments as inputs.
|
|
4430
5267
|
* If successful, the returned promise is resolved with a `<CryptoKey>` object.
|
|
4431
5268
|
*
|
|
4432
5269
|
* The wrapping algorithms currently supported include:
|
|
4433
5270
|
*
|
|
4434
|
-
*
|
|
4435
|
-
*
|
|
4436
|
-
*
|
|
4437
|
-
*
|
|
4438
|
-
*
|
|
5271
|
+
* * `'AES-CBC'`
|
|
5272
|
+
* * `'AES-CTR'`
|
|
5273
|
+
* * `'AES-GCM'`
|
|
5274
|
+
* * `'AES-KW'`
|
|
5275
|
+
* * `'AES-OCB'`
|
|
5276
|
+
* * `'ChaCha20-Poly1305'`
|
|
5277
|
+
* * `'RSA-OAEP'`
|
|
4439
5278
|
*
|
|
4440
5279
|
* The unwrapped key algorithms supported include:
|
|
4441
5280
|
*
|
|
4442
|
-
*
|
|
4443
|
-
*
|
|
4444
|
-
*
|
|
4445
|
-
*
|
|
4446
|
-
*
|
|
4447
|
-
*
|
|
4448
|
-
*
|
|
4449
|
-
*
|
|
4450
|
-
*
|
|
4451
|
-
*
|
|
4452
|
-
*
|
|
4453
|
-
*
|
|
4454
|
-
*
|
|
4455
|
-
*
|
|
4456
|
-
*
|
|
5281
|
+
* * `'AES-CBC'`
|
|
5282
|
+
* * `'AES-CTR'`
|
|
5283
|
+
* * `'AES-GCM'`
|
|
5284
|
+
* * `'AES-KW'`
|
|
5285
|
+
* * `'AES-OCB'`
|
|
5286
|
+
* * `'ChaCha20-Poly1305'`
|
|
5287
|
+
* * `'ECDH'`
|
|
5288
|
+
* * `'ECDSA'`
|
|
5289
|
+
* * `'Ed25519'`
|
|
5290
|
+
* * `'Ed448'`
|
|
5291
|
+
* * `'HMAC'`
|
|
5292
|
+
* * `'KMAC128'`
|
|
5293
|
+
* * `'KMAC256'`
|
|
5294
|
+
* * `'ML-DSA-44'`
|
|
5295
|
+
* * `'ML-DSA-65'`
|
|
5296
|
+
* * `'ML-DSA-87'`
|
|
5297
|
+
* * `'ML-KEM-512'`
|
|
5298
|
+
* * `'ML-KEM-768'`
|
|
5299
|
+
* * `'ML-KEM-1024'`
|
|
5300
|
+
* * `'RSA-OAEP'`
|
|
5301
|
+
* * `'RSA-PSS'`
|
|
5302
|
+
* * `'RSASSA-PKCS1-v1_5'`
|
|
5303
|
+
* * `'X25519'`
|
|
5304
|
+
* * `'X448'`
|
|
5305
|
+
* @param format Must be one of `'raw'`, `'pkcs8'`, `'spki'`, `'jwk'`, `'raw-secret'`,
|
|
5306
|
+
* `'raw-public'`, or `'raw-seed'`.
|
|
4457
5307
|
* @param keyUsages See {@link https://nodejs.org/docs/latest/api/webcrypto.html#cryptokeyusages Key usages}.
|
|
4458
5308
|
* @since v15.0.0
|
|
4459
5309
|
*/
|
|
@@ -4461,40 +5311,46 @@ declare module "crypto" {
|
|
|
4461
5311
|
format: KeyFormat,
|
|
4462
5312
|
wrappedKey: BufferSource,
|
|
4463
5313
|
unwrappingKey: CryptoKey,
|
|
4464
|
-
unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams |
|
|
5314
|
+
unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AeadParams,
|
|
4465
5315
|
unwrappedKeyAlgorithm:
|
|
4466
5316
|
| AlgorithmIdentifier
|
|
4467
5317
|
| RsaHashedImportParams
|
|
4468
5318
|
| EcKeyImportParams
|
|
4469
5319
|
| HmacImportParams
|
|
4470
|
-
| AesKeyAlgorithm
|
|
5320
|
+
| AesKeyAlgorithm
|
|
5321
|
+
| KmacImportParams,
|
|
4471
5322
|
extractable: boolean,
|
|
4472
5323
|
keyUsages: KeyUsage[],
|
|
4473
5324
|
): Promise<CryptoKey>;
|
|
4474
5325
|
/**
|
|
4475
5326
|
* Using the method and parameters given in `algorithm` and the keying material provided by `key`,
|
|
4476
|
-
*
|
|
5327
|
+
* This method attempts to verify that `signature` is a valid cryptographic signature of `data`.
|
|
4477
5328
|
* The returned promise is resolved with either `true` or `false`.
|
|
4478
5329
|
*
|
|
4479
5330
|
* The algorithms currently supported include:
|
|
4480
5331
|
*
|
|
4481
|
-
*
|
|
4482
|
-
*
|
|
4483
|
-
*
|
|
4484
|
-
*
|
|
4485
|
-
*
|
|
4486
|
-
*
|
|
5332
|
+
* * `'ECDSA'`
|
|
5333
|
+
* * `'Ed25519'`
|
|
5334
|
+
* * `'Ed448'`
|
|
5335
|
+
* * `'HMAC'`
|
|
5336
|
+
* * `'KMAC128'`
|
|
5337
|
+
* * `'KMAC256'`
|
|
5338
|
+
* * `'ML-DSA-44'`
|
|
5339
|
+
* * `'ML-DSA-65'`
|
|
5340
|
+
* * `'ML-DSA-87'`
|
|
5341
|
+
* * `'RSA-PSS'`
|
|
5342
|
+
* * `'RSASSA-PKCS1-v1_5'`
|
|
4487
5343
|
* @since v15.0.0
|
|
4488
5344
|
*/
|
|
4489
5345
|
verify(
|
|
4490
|
-
algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams |
|
|
5346
|
+
algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams | ContextParams | KmacParams,
|
|
4491
5347
|
key: CryptoKey,
|
|
4492
5348
|
signature: BufferSource,
|
|
4493
5349
|
data: BufferSource,
|
|
4494
5350
|
): Promise<boolean>;
|
|
4495
5351
|
/**
|
|
4496
5352
|
* In cryptography, "wrapping a key" refers to exporting and then encrypting the keying material.
|
|
4497
|
-
*
|
|
5353
|
+
* This method exports the keying material into the format identified by `format`,
|
|
4498
5354
|
* then encrypts it using the method and parameters specified by `wrapAlgo` and the keying material provided by `wrappingKey`.
|
|
4499
5355
|
* It is the equivalent to calling `subtle.exportKey()` using `format` and `key` as the arguments,
|
|
4500
5356
|
* then passing the result to the `subtle.encrypt()` method using `wrappingKey` and `wrapAlgo` as inputs.
|
|
@@ -4502,30 +5358,25 @@ declare module "crypto" {
|
|
|
4502
5358
|
*
|
|
4503
5359
|
* The wrapping algorithms currently supported include:
|
|
4504
5360
|
*
|
|
4505
|
-
*
|
|
4506
|
-
*
|
|
4507
|
-
*
|
|
4508
|
-
*
|
|
4509
|
-
*
|
|
4510
|
-
*
|
|
5361
|
+
* * `'AES-CBC'`
|
|
5362
|
+
* * `'AES-CTR'`
|
|
5363
|
+
* * `'AES-GCM'`
|
|
5364
|
+
* * `'AES-KW'`
|
|
5365
|
+
* * `'AES-OCB'`
|
|
5366
|
+
* * `'ChaCha20-Poly1305'`
|
|
5367
|
+
* * `'RSA-OAEP'`
|
|
5368
|
+
* @param format Must be one of `'raw'`, `'pkcs8'`, `'spki'`, `'jwk'`, `'raw-secret'`,
|
|
5369
|
+
* `'raw-public'`, or `'raw-seed'`.
|
|
4511
5370
|
* @since v15.0.0
|
|
4512
5371
|
*/
|
|
4513
5372
|
wrapKey(
|
|
4514
5373
|
format: KeyFormat,
|
|
4515
5374
|
key: CryptoKey,
|
|
4516
5375
|
wrappingKey: CryptoKey,
|
|
4517
|
-
wrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams |
|
|
5376
|
+
wrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AeadParams,
|
|
4518
5377
|
): Promise<ArrayBuffer>;
|
|
4519
5378
|
}
|
|
4520
5379
|
}
|
|
4521
|
-
|
|
4522
|
-
global {
|
|
4523
|
-
var crypto: typeof globalThis extends {
|
|
4524
|
-
crypto: infer T;
|
|
4525
|
-
onmessage: any;
|
|
4526
|
-
} ? T
|
|
4527
|
-
: webcrypto.Crypto;
|
|
4528
|
-
}
|
|
4529
5380
|
}
|
|
4530
5381
|
declare module "node:crypto" {
|
|
4531
5382
|
export * from "crypto";
|