@psnext/slingcli 3.3.20260911-1 → 3.3.20260914-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{chunk-VDBOM5UG.js → chunk-BRL3MDQL.js} +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/bundle/cli.js +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/bundle/index.js +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/bundle/rpc-entry.js +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/model-selector.js +79 -32
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.browser.js +2 -0
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +25 -8
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.native.js +2 -0
- package/node_modules/@smithy/core/dist-es/submodules/serde/util-stream/getAwsChunkedEncodingStream.browser.js +2 -0
- package/node_modules/@smithy/core/dist-es/submodules/serde/util-stream/getAwsChunkedEncodingStream.js +23 -8
- package/node_modules/@smithy/core/package.json +1 -1
- package/node_modules/@types/node/README.md +2 -2
- package/node_modules/@types/node/assert/strict.d.ts +13 -56
- package/node_modules/@types/node/assert.d.ts +189 -190
- package/node_modules/@types/node/async_hooks.d.ts +151 -43
- package/node_modules/@types/node/buffer.buffer.d.ts +12 -13
- package/node_modules/@types/node/buffer.d.ts +103 -237
- package/node_modules/@types/node/child_process.d.ts +39 -154
- package/node_modules/@types/node/cluster.d.ts +238 -384
- package/node_modules/@types/node/console.d.ts +45 -404
- package/node_modules/@types/node/constants.d.ts +3 -10
- package/node_modules/@types/node/crypto.d.ts +1000 -1593
- package/node_modules/@types/node/dgram.d.ts +133 -81
- package/node_modules/@types/node/diagnostics_channel.d.ts +277 -59
- package/node_modules/@types/node/dns/promises.d.ts +9 -15
- package/node_modules/@types/node/dns.d.ts +136 -183
- package/node_modules/@types/node/domain.d.ts +12 -32
- package/node_modules/@types/node/events.d.ts +872 -840
- package/node_modules/@types/node/ffi.d.ts +486 -0
- package/node_modules/@types/node/fs/promises.d.ts +256 -85
- package/node_modules/@types/node/fs.d.ts +865 -525
- package/node_modules/@types/node/globals.d.ts +12 -34
- package/node_modules/@types/node/globals.typedarray.d.ts +63 -0
- package/node_modules/@types/node/http.d.ts +433 -312
- package/node_modules/@types/node/http2.d.ts +545 -891
- package/node_modules/@types/node/https.d.ts +64 -243
- package/node_modules/@types/node/index.d.ts +25 -7
- package/node_modules/@types/node/inspector/promises.d.ts +35 -0
- package/node_modules/@types/node/inspector.d.ts +70 -58
- package/node_modules/@types/node/inspector.generated.d.ts +764 -410
- package/node_modules/@types/node/module.d.ts +54 -219
- package/node_modules/@types/node/net.d.ts +208 -222
- package/node_modules/@types/node/os.d.ts +41 -49
- package/node_modules/@types/node/package.json +13 -3
- package/node_modules/@types/node/path/posix.d.ts +8 -0
- package/node_modules/@types/node/path/win32.d.ts +8 -0
- package/node_modules/@types/node/path.d.ts +119 -141
- package/node_modules/@types/node/perf_hooks.d.ts +339 -690
- package/node_modules/@types/node/process.d.ts +389 -205
- package/node_modules/@types/node/punycode.d.ts +3 -31
- package/node_modules/@types/node/querystring.d.ts +3 -16
- package/node_modules/@types/node/quic.d.ts +2153 -0
- package/node_modules/@types/node/readline/promises.d.ts +3 -6
- package/node_modules/@types/node/readline.d.ts +66 -152
- package/node_modules/@types/node/repl.d.ts +101 -109
- package/node_modules/@types/node/sea.d.ts +1 -116
- package/node_modules/@types/node/sqlite.d.ts +486 -68
- package/node_modules/@types/node/stream/consumers.d.ts +91 -15
- package/node_modules/@types/node/stream/iter.d.ts +452 -0
- package/node_modules/@types/node/stream/promises.d.ts +136 -15
- package/node_modules/@types/node/stream/web.d.ts +197 -454
- package/node_modules/@types/node/stream.d.ts +603 -491
- package/node_modules/@types/node/string_decoder.d.ts +3 -43
- package/node_modules/@types/node/test/reporters.d.ts +59 -0
- package/node_modules/@types/node/test.d.ts +513 -292
- package/node_modules/@types/node/timers/promises.d.ts +3 -18
- package/node_modules/@types/node/timers.d.ts +3 -141
- package/node_modules/@types/node/tls.d.ts +166 -257
- package/node_modules/@types/node/trace_events.d.ts +3 -97
- package/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +7 -8
- package/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts +71 -0
- package/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +2 -0
- package/node_modules/@types/node/ts5.6/index.d.ts +26 -6
- package/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts +72 -0
- package/node_modules/@types/node/ts5.7/index.d.ts +118 -0
- package/node_modules/@types/node/tty.d.ts +61 -43
- package/node_modules/@types/node/url.d.ts +156 -584
- package/node_modules/@types/node/util/types.d.ts +558 -0
- package/node_modules/@types/node/util.d.ts +170 -1099
- package/node_modules/@types/node/v8.d.ts +175 -36
- package/node_modules/@types/node/vfs.d.ts +211 -0
- package/node_modules/@types/node/vm.d.ts +292 -209
- package/node_modules/@types/node/wasi.d.ts +24 -74
- package/node_modules/@types/node/web-globals/abortcontroller.d.ts +27 -2
- package/node_modules/@types/node/web-globals/blob.d.ts +23 -0
- package/node_modules/@types/node/web-globals/console.d.ts +9 -0
- package/node_modules/@types/node/web-globals/crypto.d.ts +39 -0
- package/node_modules/@types/node/web-globals/domexception.d.ts +15 -0
- package/node_modules/@types/node/web-globals/encoding.d.ts +11 -0
- package/node_modules/@types/node/web-globals/events.d.ts +9 -0
- package/node_modules/@types/node/web-globals/fetch.d.ts +14 -0
- package/node_modules/@types/node/web-globals/importmeta.d.ts +13 -0
- package/node_modules/@types/node/web-globals/messaging.d.ts +23 -0
- package/node_modules/@types/node/web-globals/navigator.d.ts +3 -0
- package/node_modules/@types/node/web-globals/performance.d.ts +45 -0
- package/node_modules/@types/node/web-globals/streams.d.ts +97 -0
- package/node_modules/@types/node/web-globals/timers.d.ts +44 -0
- package/node_modules/@types/node/web-globals/url.d.ts +24 -0
- package/node_modules/@types/node/worker_threads.d.ts +257 -407
- package/node_modules/@types/node/zlib/iter.d.ts +131 -0
- package/node_modules/@types/node/zlib.d.ts +24 -165
- package/node_modules/undici-types/agent.d.ts +12 -13
- package/node_modules/undici-types/api.d.ts +26 -26
- package/node_modules/undici-types/balanced-pool.d.ts +13 -12
- package/node_modules/undici-types/cache-interceptor.d.ts +179 -0
- package/node_modules/undici-types/client-stats.d.ts +15 -0
- package/node_modules/undici-types/client.d.ts +63 -37
- package/node_modules/undici-types/connector.d.ts +5 -2
- package/node_modules/undici-types/cookies.d.ts +3 -1
- package/node_modules/undici-types/diagnostics-channel.d.ts +18 -10
- package/node_modules/undici-types/dispatcher.d.ts +136 -139
- package/node_modules/undici-types/dispatcher1-wrapper.d.ts +7 -0
- package/node_modules/undici-types/env-http-proxy-agent.d.ts +4 -3
- package/node_modules/undici-types/errors.d.ts +92 -54
- package/node_modules/undici-types/eventsource.d.ts +9 -4
- package/node_modules/undici-types/fetch.d.ts +51 -25
- package/node_modules/undici-types/formdata.d.ts +7 -7
- package/node_modules/undici-types/global-dispatcher.d.ts +4 -4
- package/node_modules/undici-types/global-origin.d.ts +5 -5
- package/node_modules/undici-types/h2c-client.d.ts +73 -0
- package/node_modules/undici-types/handlers.d.ts +10 -9
- package/node_modules/undici-types/header.d.ts +162 -1
- package/node_modules/undici-types/index.d.ts +69 -47
- package/node_modules/undici-types/interceptors.d.ts +72 -9
- package/node_modules/undici-types/mock-agent.d.ts +36 -18
- package/node_modules/undici-types/mock-call-history.d.ts +111 -0
- package/node_modules/undici-types/mock-client.d.ts +6 -4
- package/node_modules/undici-types/mock-errors.d.ts +3 -3
- package/node_modules/undici-types/mock-interceptor.d.ts +26 -21
- package/node_modules/undici-types/mock-pool.d.ts +6 -4
- package/node_modules/undici-types/package.json +1 -1
- package/node_modules/undici-types/patch.d.ts +0 -4
- package/node_modules/undici-types/pool-stats.d.ts +8 -8
- package/node_modules/undici-types/pool.d.ts +14 -14
- package/node_modules/undici-types/proxy-agent.d.ts +14 -6
- package/node_modules/undici-types/readable.d.ts +19 -16
- package/node_modules/undici-types/retry-agent.d.ts +1 -1
- package/node_modules/undici-types/retry-handler.d.ts +19 -10
- package/node_modules/undici-types/round-robin-pool.d.ts +39 -0
- package/node_modules/undici-types/snapshot-agent.d.ts +113 -0
- package/node_modules/undici-types/socks5-proxy-agent.d.ts +25 -0
- package/node_modules/undici-types/util.d.ts +3 -3
- package/node_modules/undici-types/utility.d.ts +7 -0
- package/node_modules/undici-types/webidl.d.ts +148 -30
- package/node_modules/undici-types/websocket.d.ts +48 -10
- package/node_modules/zod/README.md +2 -2
- package/node_modules/zod/package.json +1 -1
- package/node_modules/zod/src/v4/classic/checks.ts +1 -0
- package/node_modules/zod/src/v4/classic/schemas.ts +14 -30
- package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +1 -0
- package/node_modules/zod/src/v4/classic/tests/cyclic-data.test.ts +2 -11
- package/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +0 -4
- package/node_modules/zod/src/v4/classic/tests/instance-footprint.test.ts +22 -0
- package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +1 -1
- package/node_modules/zod/src/v4/classic/tests/number.test.ts +39 -0
- package/node_modules/zod/src/v4/classic/tests/properties.test.ts +53 -137
- package/node_modules/zod/src/v4/classic/tests/string.test.ts +70 -1
- package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +87 -35
- package/node_modules/zod/src/v4/core/api.ts +21 -29
- package/node_modules/zod/src/v4/core/checks.ts +61 -1
- package/node_modules/zod/src/v4/core/compile.ts +35 -24
- package/node_modules/zod/src/v4/core/core.ts +1 -3
- package/node_modules/zod/src/v4/core/json-schema-processors.ts +9 -63
- package/node_modules/zod/src/v4/core/memoizer.ts +2 -5
- package/node_modules/zod/src/v4/core/regexes.ts +4 -0
- package/node_modules/zod/src/v4/core/schemas.ts +36 -109
- package/node_modules/zod/src/v4/core/tests/compile-differential.test.ts +35 -0
- package/node_modules/zod/src/v4/core/tests/compile.test.ts +177 -0
- package/node_modules/zod/src/v4/core/tests/url-no-canparse.test.ts +118 -16
- package/node_modules/zod/src/v4/core/to-json-schema.ts +1 -1
- package/node_modules/zod/src/v4/core/util.ts +0 -4
- package/node_modules/zod/src/v4/core/versions.ts +1 -1
- package/node_modules/zod/src/v4/core/visit.ts +0 -11
- package/node_modules/zod/src/v4/locales/ar.ts +1 -0
- package/node_modules/zod/src/v4/locales/az.ts +1 -0
- package/node_modules/zod/src/v4/locales/be.ts +1 -0
- package/node_modules/zod/src/v4/locales/bg.ts +1 -0
- package/node_modules/zod/src/v4/locales/bn.ts +1 -0
- package/node_modules/zod/src/v4/locales/ca.ts +1 -0
- package/node_modules/zod/src/v4/locales/ckb.ts +1 -0
- package/node_modules/zod/src/v4/locales/cs.ts +1 -0
- package/node_modules/zod/src/v4/locales/da.ts +1 -0
- package/node_modules/zod/src/v4/locales/de.ts +1 -0
- package/node_modules/zod/src/v4/locales/el.ts +1 -0
- package/node_modules/zod/src/v4/locales/en.ts +1 -0
- package/node_modules/zod/src/v4/locales/eo.ts +1 -0
- package/node_modules/zod/src/v4/locales/es.ts +1 -0
- package/node_modules/zod/src/v4/locales/fa.ts +1 -0
- package/node_modules/zod/src/v4/locales/fi.ts +1 -0
- package/node_modules/zod/src/v4/locales/fr-CA.ts +1 -0
- package/node_modules/zod/src/v4/locales/fr.ts +1 -0
- package/node_modules/zod/src/v4/locales/gu.ts +1 -0
- package/node_modules/zod/src/v4/locales/he.ts +1 -0
- package/node_modules/zod/src/v4/locales/hi.ts +1 -0
- package/node_modules/zod/src/v4/locales/hr.ts +1 -0
- package/node_modules/zod/src/v4/locales/hu.ts +1 -0
- package/node_modules/zod/src/v4/locales/hy.ts +1 -0
- package/node_modules/zod/src/v4/locales/id.ts +1 -0
- package/node_modules/zod/src/v4/locales/is.ts +1 -0
- package/node_modules/zod/src/v4/locales/it.ts +1 -0
- package/node_modules/zod/src/v4/locales/ja.ts +1 -0
- package/node_modules/zod/src/v4/locales/ka.ts +1 -0
- package/node_modules/zod/src/v4/locales/km.ts +1 -0
- package/node_modules/zod/src/v4/locales/kn.ts +1 -0
- package/node_modules/zod/src/v4/locales/ko.ts +1 -0
- package/node_modules/zod/src/v4/locales/lt.ts +1 -0
- package/node_modules/zod/src/v4/locales/mk.ts +1 -0
- package/node_modules/zod/src/v4/locales/ms.ts +1 -0
- package/node_modules/zod/src/v4/locales/ne.ts +1 -0
- package/node_modules/zod/src/v4/locales/nl.ts +1 -0
- package/node_modules/zod/src/v4/locales/nn.ts +1 -0
- package/node_modules/zod/src/v4/locales/no.ts +1 -0
- package/node_modules/zod/src/v4/locales/ota.ts +1 -0
- package/node_modules/zod/src/v4/locales/pl.ts +1 -0
- package/node_modules/zod/src/v4/locales/ps.ts +1 -0
- package/node_modules/zod/src/v4/locales/pt-BR.ts +1 -0
- package/node_modules/zod/src/v4/locales/pt.ts +1 -0
- package/node_modules/zod/src/v4/locales/ro.ts +1 -0
- package/node_modules/zod/src/v4/locales/ru.ts +1 -0
- package/node_modules/zod/src/v4/locales/sk.ts +1 -0
- package/node_modules/zod/src/v4/locales/sl.ts +1 -0
- package/node_modules/zod/src/v4/locales/sv.ts +1 -0
- package/node_modules/zod/src/v4/locales/ta.ts +1 -0
- package/node_modules/zod/src/v4/locales/tg.ts +1 -0
- package/node_modules/zod/src/v4/locales/th.ts +1 -0
- package/node_modules/zod/src/v4/locales/tk.ts +1 -0
- package/node_modules/zod/src/v4/locales/tr.ts +1 -0
- package/node_modules/zod/src/v4/locales/uk.ts +1 -0
- package/node_modules/zod/src/v4/locales/ur.ts +1 -0
- package/node_modules/zod/src/v4/locales/uz.ts +1 -0
- package/node_modules/zod/src/v4/locales/vi.ts +1 -0
- package/node_modules/zod/src/v4/locales/yo.ts +1 -0
- package/node_modules/zod/src/v4/locales/zh-CN.ts +1 -0
- package/node_modules/zod/src/v4/locales/zh-TW.ts +1 -0
- package/node_modules/zod/src/v4/mini/checks.ts +1 -0
- package/node_modules/zod/src/v4/mini/schemas.ts +12 -23
- package/node_modules/zod/src/v4/mini/tests/index.test.ts +56 -0
- package/node_modules/zod/src/v4/mini/tests/string.test.ts +7 -0
- package/node_modules/zod/v4/classic/checks.cjs +2 -1
- package/node_modules/zod/v4/classic/checks.d.cts +1 -1
- package/node_modules/zod/v4/classic/checks.d.ts +1 -1
- package/node_modules/zod/v4/classic/checks.js +1 -1
- package/node_modules/zod/v4/classic/schemas.cjs +11 -15
- package/node_modules/zod/v4/classic/schemas.d.cts +4 -6
- package/node_modules/zod/v4/classic/schemas.d.ts +4 -6
- package/node_modules/zod/v4/classic/schemas.js +9 -13
- package/node_modules/zod/v4/core/api.cjs +11 -23
- package/node_modules/zod/v4/core/api.d.cts +8 -4
- package/node_modules/zod/v4/core/api.d.ts +8 -4
- package/node_modules/zod/v4/core/api.js +11 -23
- package/node_modules/zod/v4/core/checks.cjs +32 -1
- package/node_modules/zod/v4/core/checks.d.cts +16 -0
- package/node_modules/zod/v4/core/checks.d.ts +16 -0
- package/node_modules/zod/v4/core/checks.js +31 -0
- package/node_modules/zod/v4/core/compile.cjs +12 -17
- package/node_modules/zod/v4/core/compile.js +13 -18
- package/node_modules/zod/v4/core/core.cjs +1 -1
- package/node_modules/zod/v4/core/core.js +1 -1
- package/node_modules/zod/v4/core/json-schema-processors.cjs +8 -44
- package/node_modules/zod/v4/core/json-schema-processors.d.cts +0 -1
- package/node_modules/zod/v4/core/json-schema-processors.d.ts +0 -1
- package/node_modules/zod/v4/core/json-schema-processors.js +8 -43
- package/node_modules/zod/v4/core/memoizer.cjs +2 -5
- package/node_modules/zod/v4/core/memoizer.js +2 -5
- package/node_modules/zod/v4/core/regexes.cjs +4 -2
- package/node_modules/zod/v4/core/regexes.d.cts +1 -0
- package/node_modules/zod/v4/core/regexes.d.ts +1 -0
- package/node_modules/zod/v4/core/regexes.js +2 -0
- package/node_modules/zod/v4/core/schemas.cjs +33 -73
- package/node_modules/zod/v4/core/schemas.d.cts +7 -22
- package/node_modules/zod/v4/core/schemas.d.ts +7 -22
- package/node_modules/zod/v4/core/schemas.js +30 -72
- package/node_modules/zod/v4/core/to-json-schema.cjs +0 -1
- package/node_modules/zod/v4/core/to-json-schema.d.cts +0 -3
- package/node_modules/zod/v4/core/to-json-schema.d.ts +0 -3
- package/node_modules/zod/v4/core/to-json-schema.js +1 -1
- package/node_modules/zod/v4/core/util.cjs +0 -4
- package/node_modules/zod/v4/core/util.js +0 -4
- package/node_modules/zod/v4/core/versions.cjs +1 -1
- package/node_modules/zod/v4/core/versions.js +1 -1
- package/node_modules/zod/v4/core/visit.cjs +0 -12
- package/node_modules/zod/v4/core/visit.js +0 -12
- package/node_modules/zod/v4/locales/ar.cjs +1 -0
- package/node_modules/zod/v4/locales/ar.js +1 -0
- package/node_modules/zod/v4/locales/az.cjs +1 -0
- package/node_modules/zod/v4/locales/az.js +1 -0
- package/node_modules/zod/v4/locales/be.cjs +1 -0
- package/node_modules/zod/v4/locales/be.js +1 -0
- package/node_modules/zod/v4/locales/bg.cjs +1 -0
- package/node_modules/zod/v4/locales/bg.js +1 -0
- package/node_modules/zod/v4/locales/bn.cjs +1 -0
- package/node_modules/zod/v4/locales/bn.js +1 -0
- package/node_modules/zod/v4/locales/ca.cjs +1 -0
- package/node_modules/zod/v4/locales/ca.js +1 -0
- package/node_modules/zod/v4/locales/ckb.cjs +1 -0
- package/node_modules/zod/v4/locales/ckb.js +1 -0
- package/node_modules/zod/v4/locales/cs.cjs +1 -0
- package/node_modules/zod/v4/locales/cs.js +1 -0
- package/node_modules/zod/v4/locales/da.cjs +1 -0
- package/node_modules/zod/v4/locales/da.js +1 -0
- package/node_modules/zod/v4/locales/de.cjs +1 -0
- package/node_modules/zod/v4/locales/de.js +1 -0
- package/node_modules/zod/v4/locales/el.cjs +1 -0
- package/node_modules/zod/v4/locales/el.js +1 -0
- package/node_modules/zod/v4/locales/en.cjs +1 -0
- package/node_modules/zod/v4/locales/en.js +1 -0
- package/node_modules/zod/v4/locales/eo.cjs +1 -0
- package/node_modules/zod/v4/locales/eo.js +1 -0
- package/node_modules/zod/v4/locales/es.cjs +1 -0
- package/node_modules/zod/v4/locales/es.js +1 -0
- package/node_modules/zod/v4/locales/fa.cjs +1 -0
- package/node_modules/zod/v4/locales/fa.js +1 -0
- package/node_modules/zod/v4/locales/fi.cjs +1 -0
- package/node_modules/zod/v4/locales/fi.js +1 -0
- package/node_modules/zod/v4/locales/fr-CA.cjs +1 -0
- package/node_modules/zod/v4/locales/fr-CA.js +1 -0
- package/node_modules/zod/v4/locales/fr.cjs +1 -0
- package/node_modules/zod/v4/locales/fr.js +1 -0
- package/node_modules/zod/v4/locales/gu.cjs +1 -0
- package/node_modules/zod/v4/locales/gu.js +1 -0
- package/node_modules/zod/v4/locales/he.cjs +1 -0
- package/node_modules/zod/v4/locales/he.js +1 -0
- package/node_modules/zod/v4/locales/hi.cjs +1 -0
- package/node_modules/zod/v4/locales/hi.js +1 -0
- package/node_modules/zod/v4/locales/hr.cjs +1 -0
- package/node_modules/zod/v4/locales/hr.js +1 -0
- package/node_modules/zod/v4/locales/hu.cjs +1 -0
- package/node_modules/zod/v4/locales/hu.js +1 -0
- package/node_modules/zod/v4/locales/hy.cjs +1 -0
- package/node_modules/zod/v4/locales/hy.js +1 -0
- package/node_modules/zod/v4/locales/id.cjs +1 -0
- package/node_modules/zod/v4/locales/id.js +1 -0
- package/node_modules/zod/v4/locales/is.cjs +1 -0
- package/node_modules/zod/v4/locales/is.js +1 -0
- package/node_modules/zod/v4/locales/it.cjs +1 -0
- package/node_modules/zod/v4/locales/it.js +1 -0
- package/node_modules/zod/v4/locales/ja.cjs +1 -0
- package/node_modules/zod/v4/locales/ja.js +1 -0
- package/node_modules/zod/v4/locales/ka.cjs +1 -0
- package/node_modules/zod/v4/locales/ka.js +1 -0
- package/node_modules/zod/v4/locales/km.cjs +1 -0
- package/node_modules/zod/v4/locales/km.js +1 -0
- package/node_modules/zod/v4/locales/kn.cjs +1 -0
- package/node_modules/zod/v4/locales/kn.js +1 -0
- package/node_modules/zod/v4/locales/ko.cjs +1 -0
- package/node_modules/zod/v4/locales/ko.js +1 -0
- package/node_modules/zod/v4/locales/lt.cjs +1 -0
- package/node_modules/zod/v4/locales/lt.js +1 -0
- package/node_modules/zod/v4/locales/mk.cjs +1 -0
- package/node_modules/zod/v4/locales/mk.js +1 -0
- package/node_modules/zod/v4/locales/ms.cjs +1 -0
- package/node_modules/zod/v4/locales/ms.js +1 -0
- package/node_modules/zod/v4/locales/ne.cjs +1 -0
- package/node_modules/zod/v4/locales/ne.js +1 -0
- package/node_modules/zod/v4/locales/nl.cjs +1 -0
- package/node_modules/zod/v4/locales/nl.js +1 -0
- package/node_modules/zod/v4/locales/nn.cjs +1 -0
- package/node_modules/zod/v4/locales/nn.js +1 -0
- package/node_modules/zod/v4/locales/no.cjs +1 -0
- package/node_modules/zod/v4/locales/no.js +1 -0
- package/node_modules/zod/v4/locales/ota.cjs +1 -0
- package/node_modules/zod/v4/locales/ota.js +1 -0
- package/node_modules/zod/v4/locales/pl.cjs +1 -0
- package/node_modules/zod/v4/locales/pl.js +1 -0
- package/node_modules/zod/v4/locales/ps.cjs +1 -0
- package/node_modules/zod/v4/locales/ps.js +1 -0
- package/node_modules/zod/v4/locales/pt-BR.cjs +1 -0
- package/node_modules/zod/v4/locales/pt-BR.js +1 -0
- package/node_modules/zod/v4/locales/pt.cjs +1 -0
- package/node_modules/zod/v4/locales/pt.js +1 -0
- package/node_modules/zod/v4/locales/ro.cjs +1 -0
- package/node_modules/zod/v4/locales/ro.js +1 -0
- package/node_modules/zod/v4/locales/ru.cjs +1 -0
- package/node_modules/zod/v4/locales/ru.js +1 -0
- package/node_modules/zod/v4/locales/sk.cjs +1 -0
- package/node_modules/zod/v4/locales/sk.js +1 -0
- package/node_modules/zod/v4/locales/sl.cjs +1 -0
- package/node_modules/zod/v4/locales/sl.js +1 -0
- package/node_modules/zod/v4/locales/sv.cjs +1 -0
- package/node_modules/zod/v4/locales/sv.js +1 -0
- package/node_modules/zod/v4/locales/ta.cjs +1 -0
- package/node_modules/zod/v4/locales/ta.js +1 -0
- package/node_modules/zod/v4/locales/tg.cjs +1 -0
- package/node_modules/zod/v4/locales/tg.js +1 -0
- package/node_modules/zod/v4/locales/th.cjs +1 -0
- package/node_modules/zod/v4/locales/th.js +1 -0
- package/node_modules/zod/v4/locales/tk.cjs +1 -0
- package/node_modules/zod/v4/locales/tk.js +1 -0
- package/node_modules/zod/v4/locales/tr.cjs +1 -0
- package/node_modules/zod/v4/locales/tr.js +1 -0
- package/node_modules/zod/v4/locales/uk.cjs +1 -0
- package/node_modules/zod/v4/locales/uk.js +1 -0
- package/node_modules/zod/v4/locales/ur.cjs +1 -0
- package/node_modules/zod/v4/locales/ur.js +1 -0
- package/node_modules/zod/v4/locales/uz.cjs +1 -0
- package/node_modules/zod/v4/locales/uz.js +1 -0
- package/node_modules/zod/v4/locales/vi.cjs +1 -0
- package/node_modules/zod/v4/locales/vi.js +1 -0
- package/node_modules/zod/v4/locales/yo.cjs +1 -0
- package/node_modules/zod/v4/locales/yo.js +1 -0
- package/node_modules/zod/v4/locales/zh-CN.cjs +1 -0
- package/node_modules/zod/v4/locales/zh-CN.js +1 -0
- package/node_modules/zod/v4/locales/zh-TW.cjs +1 -0
- package/node_modules/zod/v4/locales/zh-TW.js +1 -0
- package/node_modules/zod/v4/mini/checks.cjs +2 -1
- package/node_modules/zod/v4/mini/checks.d.cts +1 -1
- package/node_modules/zod/v4/mini/checks.d.ts +1 -1
- package/node_modules/zod/v4/mini/checks.js +1 -1
- package/node_modules/zod/v4/mini/schemas.cjs +11 -13
- package/node_modules/zod/v4/mini/schemas.d.cts +1 -4
- package/node_modules/zod/v4/mini/schemas.d.ts +1 -4
- package/node_modules/zod/v4/mini/schemas.js +9 -11
- package/package.json +2 -2
- package/slingshot/index.js +183 -182
- package/node_modules/@types/node/compatibility/disposable.d.ts +0 -14
- package/node_modules/@types/node/compatibility/index.d.ts +0 -9
- package/node_modules/@types/node/compatibility/indexable.d.ts +0 -20
- package/node_modules/@types/node/compatibility/iterators.d.ts +0 -20
- package/node_modules/undici-types/file.d.ts +0 -39
- package/node_modules/undici-types/filereader.d.ts +0 -54
|
@@ -1,14 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* The `node:tls` module provides an implementation of the Transport Layer Security
|
|
3
|
-
* (TLS) and Secure Socket Layer (SSL) protocols that is built on top of OpenSSL.
|
|
4
|
-
* The module can be accessed using:
|
|
5
|
-
*
|
|
6
|
-
* ```js
|
|
7
|
-
* import tls from 'node:tls';
|
|
8
|
-
* ```
|
|
9
|
-
* @see [source](https://github.com/nodejs/node/blob/v22.x/lib/tls.js)
|
|
10
|
-
*/
|
|
11
|
-
declare module "tls" {
|
|
1
|
+
declare module "node:tls" {
|
|
12
2
|
import { NonSharedBuffer } from "node:buffer";
|
|
13
3
|
import { X509Certificate } from "node:crypto";
|
|
14
4
|
import * as net from "node:net";
|
|
@@ -200,12 +190,13 @@ declare module "tls" {
|
|
|
200
190
|
* An optional Buffer instance containing a TLS session.
|
|
201
191
|
*/
|
|
202
192
|
session?: Buffer | undefined;
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
193
|
+
}
|
|
194
|
+
interface TLSSocketEventMap extends net.SocketEventMap {
|
|
195
|
+
"keylog": [line: NonSharedBuffer];
|
|
196
|
+
"OCSPResponse": [response: NonSharedBuffer];
|
|
197
|
+
"secure": [];
|
|
198
|
+
"secureConnect": [];
|
|
199
|
+
"session": [session: NonSharedBuffer];
|
|
209
200
|
}
|
|
210
201
|
/**
|
|
211
202
|
* Performs transparent encryption of written data and all required TLS
|
|
@@ -279,11 +270,19 @@ declare module "tls" {
|
|
|
279
270
|
*/
|
|
280
271
|
getCipher(): CipherNameAndProtocol;
|
|
281
272
|
/**
|
|
282
|
-
* Returns an object
|
|
283
|
-
*
|
|
284
|
-
*
|
|
285
|
-
*
|
|
286
|
-
*
|
|
273
|
+
* Returns an object describing ephemeral key agreement in [perfect forward
|
|
274
|
+
* secrecy](https://nodejs.org/docs/latest-v26.x/api/tls.html#perfect-forward-secrecy) on a client connection. It returns an empty object when the key
|
|
275
|
+
* agreement is not ephemeral. As this is only supported on a client socket;
|
|
276
|
+
* `null` is returned if called on a server socket. The supported types are `'DH'`,
|
|
277
|
+
* `'ECDH'`, and `'TLSGroup'`. For `'DH'` and `'ECDH'`, the object describes peer
|
|
278
|
+
* temporary key parameters. For `'TLSGroup'`, the object identifies the negotiated
|
|
279
|
+
* TLS Supported Group used for key agreement when a peer temporary key object is
|
|
280
|
+
* not available.
|
|
281
|
+
*
|
|
282
|
+
* The `name` property is available only when type is `'ECDH'` or `'TLSGroup'`. The
|
|
283
|
+
* `size` property is not available when type is `'TLSGroup'`. For `'TLSGroup'`,
|
|
284
|
+
* `name` is the negotiated TLS Supported Group name. Standardized TLS group names
|
|
285
|
+
* and code points are listed in the [IANA TLS Supported Groups registry](https://www.iana.org/assignments/tls-parameters/tls-parameters.xhtml#tls-parameters-8).
|
|
287
286
|
*
|
|
288
287
|
* For example: `{ type: 'ECDH', name: 'prime256v1', size: 256 }`.
|
|
289
288
|
* @since v5.0.0
|
|
@@ -484,36 +483,48 @@ declare module "tls" {
|
|
|
484
483
|
* @return requested bytes of the keying material
|
|
485
484
|
*/
|
|
486
485
|
exportKeyingMaterial(length: number, label: string, context: Buffer): NonSharedBuffer;
|
|
487
|
-
|
|
488
|
-
addListener
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
emit(
|
|
494
|
-
emit(
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
once(
|
|
507
|
-
|
|
508
|
-
prependListener
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
prependOnceListener
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
486
|
+
// #region InternalEventEmitter
|
|
487
|
+
addListener<E extends keyof TLSSocketEventMap>(
|
|
488
|
+
eventName: E,
|
|
489
|
+
listener: (...args: TLSSocketEventMap[E]) => void,
|
|
490
|
+
): this;
|
|
491
|
+
addListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
|
|
492
|
+
emit<E extends keyof TLSSocketEventMap>(eventName: E, ...args: TLSSocketEventMap[E]): boolean;
|
|
493
|
+
emit(eventName: string | symbol, ...args: any[]): boolean;
|
|
494
|
+
listenerCount<E extends keyof TLSSocketEventMap>(
|
|
495
|
+
eventName: E,
|
|
496
|
+
listener?: (...args: TLSSocketEventMap[E]) => void,
|
|
497
|
+
): number;
|
|
498
|
+
listenerCount(eventName: string | symbol, listener?: (...args: any[]) => void): number;
|
|
499
|
+
listeners<E extends keyof TLSSocketEventMap>(eventName: E): ((...args: TLSSocketEventMap[E]) => void)[];
|
|
500
|
+
listeners(eventName: string | symbol): ((...args: any[]) => void)[];
|
|
501
|
+
off<E extends keyof TLSSocketEventMap>(eventName: E, listener: (...args: TLSSocketEventMap[E]) => void): this;
|
|
502
|
+
off(eventName: string | symbol, listener: (...args: any[]) => void): this;
|
|
503
|
+
on<E extends keyof TLSSocketEventMap>(eventName: E, listener: (...args: TLSSocketEventMap[E]) => void): this;
|
|
504
|
+
on(eventName: string | symbol, listener: (...args: any[]) => void): this;
|
|
505
|
+
once<E extends keyof TLSSocketEventMap>(eventName: E, listener: (...args: TLSSocketEventMap[E]) => void): this;
|
|
506
|
+
once(eventName: string | symbol, listener: (...args: any[]) => void): this;
|
|
507
|
+
prependListener<E extends keyof TLSSocketEventMap>(
|
|
508
|
+
eventName: E,
|
|
509
|
+
listener: (...args: TLSSocketEventMap[E]) => void,
|
|
510
|
+
): this;
|
|
511
|
+
prependListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
|
|
512
|
+
prependOnceListener<E extends keyof TLSSocketEventMap>(
|
|
513
|
+
eventName: E,
|
|
514
|
+
listener: (...args: TLSSocketEventMap[E]) => void,
|
|
515
|
+
): this;
|
|
516
|
+
prependOnceListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
|
|
517
|
+
rawListeners<E extends keyof TLSSocketEventMap>(eventName: E): ((...args: TLSSocketEventMap[E]) => void)[];
|
|
518
|
+
rawListeners(eventName: string | symbol): ((...args: any[]) => void)[];
|
|
519
|
+
// eslint-disable-next-line @definitelytyped/no-unnecessary-generics
|
|
520
|
+
removeAllListeners<E extends keyof TLSSocketEventMap>(eventName?: E): this;
|
|
521
|
+
removeAllListeners(eventName?: string | symbol): this;
|
|
522
|
+
removeListener<E extends keyof TLSSocketEventMap>(
|
|
523
|
+
eventName: E,
|
|
524
|
+
listener: (...args: TLSSocketEventMap[E]) => void,
|
|
525
|
+
): this;
|
|
526
|
+
removeListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
|
|
527
|
+
// #endregion
|
|
517
528
|
}
|
|
518
529
|
interface CommonConnectionOptions {
|
|
519
530
|
/**
|
|
@@ -533,8 +544,12 @@ declare module "tls" {
|
|
|
533
544
|
*/
|
|
534
545
|
requestCert?: boolean | undefined;
|
|
535
546
|
/**
|
|
536
|
-
* An array of strings or a Buffer
|
|
537
|
-
*
|
|
547
|
+
* An array of strings, or a single `Buffer`, `TypedArray`, or `DataView` containing the supported
|
|
548
|
+
* ALPN protocols. Buffers should have the format `[len][name][len][name]...`
|
|
549
|
+
* e.g. `'\x08http/1.1\x08http/1.0'`, where the `len` byte is the length of the
|
|
550
|
+
* next protocol name. Passing an array is usually much simpler, e.g.
|
|
551
|
+
* `['http/1.1', 'http/1.0']`. Protocols earlier in the list have higher
|
|
552
|
+
* preference than those later.
|
|
538
553
|
*/
|
|
539
554
|
ALPNProtocols?: readonly string[] | NodeJS.ArrayBufferView | undefined;
|
|
540
555
|
/**
|
|
@@ -554,6 +569,12 @@ declare module "tls" {
|
|
|
554
569
|
* @default true
|
|
555
570
|
*/
|
|
556
571
|
rejectUnauthorized?: boolean | undefined;
|
|
572
|
+
/**
|
|
573
|
+
* If true, specifies that the OCSP status request extension will be
|
|
574
|
+
* added to the client hello and an 'OCSPResponse' event will be
|
|
575
|
+
* emitted on the socket before establishing a secure communication.
|
|
576
|
+
*/
|
|
577
|
+
requestOCSP?: boolean | undefined;
|
|
557
578
|
}
|
|
558
579
|
interface TlsOptions extends SecureContextOptions, CommonConnectionOptions, net.ServerOpts {
|
|
559
580
|
/**
|
|
@@ -634,6 +655,19 @@ declare module "tls" {
|
|
|
634
655
|
*/
|
|
635
656
|
pskCallback?: ((hint: string | null) => PSKCallbackNegotation | null) | undefined;
|
|
636
657
|
}
|
|
658
|
+
interface ServerEventMap extends net.ServerEventMap {
|
|
659
|
+
"connection": [socket: net.Socket];
|
|
660
|
+
"keylog": [line: NonSharedBuffer, tlsSocket: TLSSocket];
|
|
661
|
+
"newSession": [sessionId: NonSharedBuffer, sessionData: NonSharedBuffer, callback: () => void];
|
|
662
|
+
"OCSPRequest": [
|
|
663
|
+
certificate: NonSharedBuffer,
|
|
664
|
+
issuer: NonSharedBuffer,
|
|
665
|
+
callback: (err: Error | null, resp: Buffer | null) => void,
|
|
666
|
+
];
|
|
667
|
+
"resumeSession": [sessionId: Buffer, callback: (err: Error | null, sessionData?: Buffer) => void];
|
|
668
|
+
"secureConnection": [tlsSocket: TLSSocket];
|
|
669
|
+
"tlsClientError": [exception: Error, tlsSocket: TLSSocket];
|
|
670
|
+
}
|
|
637
671
|
/**
|
|
638
672
|
* Accepts encrypted connections using TLS or SSL.
|
|
639
673
|
* @since v0.3.2
|
|
@@ -679,160 +713,48 @@ declare module "tls" {
|
|
|
679
713
|
* @param keys A 48-byte buffer containing the session ticket keys.
|
|
680
714
|
*/
|
|
681
715
|
setTicketKeys(keys: Buffer): void;
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
): this;
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
) => void,
|
|
704
|
-
): this;
|
|
705
|
-
addListener(
|
|
706
|
-
event: "resumeSession",
|
|
707
|
-
listener: (
|
|
708
|
-
sessionId: NonSharedBuffer,
|
|
709
|
-
callback: (err: Error | null, sessionData: Buffer | null) => void,
|
|
710
|
-
) => void,
|
|
711
|
-
): this;
|
|
712
|
-
addListener(event: "secureConnection", listener: (tlsSocket: TLSSocket) => void): this;
|
|
713
|
-
addListener(event: "keylog", listener: (line: NonSharedBuffer, tlsSocket: TLSSocket) => void): this;
|
|
714
|
-
emit(event: string | symbol, ...args: any[]): boolean;
|
|
715
|
-
emit(event: "tlsClientError", err: Error, tlsSocket: TLSSocket): boolean;
|
|
716
|
-
emit(
|
|
717
|
-
event: "newSession",
|
|
718
|
-
sessionId: NonSharedBuffer,
|
|
719
|
-
sessionData: NonSharedBuffer,
|
|
720
|
-
callback: () => void,
|
|
721
|
-
): boolean;
|
|
722
|
-
emit(
|
|
723
|
-
event: "OCSPRequest",
|
|
724
|
-
certificate: NonSharedBuffer,
|
|
725
|
-
issuer: NonSharedBuffer,
|
|
726
|
-
callback: (err: Error | null, resp: Buffer | null) => void,
|
|
727
|
-
): boolean;
|
|
728
|
-
emit(
|
|
729
|
-
event: "resumeSession",
|
|
730
|
-
sessionId: NonSharedBuffer,
|
|
731
|
-
callback: (err: Error | null, sessionData: Buffer | null) => void,
|
|
732
|
-
): boolean;
|
|
733
|
-
emit(event: "secureConnection", tlsSocket: TLSSocket): boolean;
|
|
734
|
-
emit(event: "keylog", line: NonSharedBuffer, tlsSocket: TLSSocket): boolean;
|
|
735
|
-
on(event: string, listener: (...args: any[]) => void): this;
|
|
736
|
-
on(event: "tlsClientError", listener: (err: Error, tlsSocket: TLSSocket) => void): this;
|
|
737
|
-
on(
|
|
738
|
-
event: "newSession",
|
|
739
|
-
listener: (sessionId: NonSharedBuffer, sessionData: NonSharedBuffer, callback: () => void) => void,
|
|
740
|
-
): this;
|
|
741
|
-
on(
|
|
742
|
-
event: "OCSPRequest",
|
|
743
|
-
listener: (
|
|
744
|
-
certificate: NonSharedBuffer,
|
|
745
|
-
issuer: NonSharedBuffer,
|
|
746
|
-
callback: (err: Error | null, resp: Buffer | null) => void,
|
|
747
|
-
) => void,
|
|
748
|
-
): this;
|
|
749
|
-
on(
|
|
750
|
-
event: "resumeSession",
|
|
751
|
-
listener: (
|
|
752
|
-
sessionId: NonSharedBuffer,
|
|
753
|
-
callback: (err: Error | null, sessionData: Buffer | null) => void,
|
|
754
|
-
) => void,
|
|
755
|
-
): this;
|
|
756
|
-
on(event: "secureConnection", listener: (tlsSocket: TLSSocket) => void): this;
|
|
757
|
-
on(event: "keylog", listener: (line: NonSharedBuffer, tlsSocket: TLSSocket) => void): this;
|
|
758
|
-
once(event: string, listener: (...args: any[]) => void): this;
|
|
759
|
-
once(event: "tlsClientError", listener: (err: Error, tlsSocket: TLSSocket) => void): this;
|
|
760
|
-
once(
|
|
761
|
-
event: "newSession",
|
|
762
|
-
listener: (sessionId: NonSharedBuffer, sessionData: NonSharedBuffer, callback: () => void) => void,
|
|
763
|
-
): this;
|
|
764
|
-
once(
|
|
765
|
-
event: "OCSPRequest",
|
|
766
|
-
listener: (
|
|
767
|
-
certificate: NonSharedBuffer,
|
|
768
|
-
issuer: NonSharedBuffer,
|
|
769
|
-
callback: (err: Error | null, resp: Buffer | null) => void,
|
|
770
|
-
) => void,
|
|
716
|
+
// #region InternalEventEmitter
|
|
717
|
+
addListener<E extends keyof ServerEventMap>(eventName: E, listener: (...args: ServerEventMap[E]) => void): this;
|
|
718
|
+
addListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
|
|
719
|
+
emit<E extends keyof ServerEventMap>(eventName: E, ...args: ServerEventMap[E]): boolean;
|
|
720
|
+
emit(eventName: string | symbol, ...args: any[]): boolean;
|
|
721
|
+
listenerCount<E extends keyof ServerEventMap>(
|
|
722
|
+
eventName: E,
|
|
723
|
+
listener?: (...args: ServerEventMap[E]) => void,
|
|
724
|
+
): number;
|
|
725
|
+
listenerCount(eventName: string | symbol, listener?: (...args: any[]) => void): number;
|
|
726
|
+
listeners<E extends keyof ServerEventMap>(eventName: E): ((...args: ServerEventMap[E]) => void)[];
|
|
727
|
+
listeners(eventName: string | symbol): ((...args: any[]) => void)[];
|
|
728
|
+
off<E extends keyof ServerEventMap>(eventName: E, listener: (...args: ServerEventMap[E]) => void): this;
|
|
729
|
+
off(eventName: string | symbol, listener: (...args: any[]) => void): this;
|
|
730
|
+
on<E extends keyof ServerEventMap>(eventName: E, listener: (...args: ServerEventMap[E]) => void): this;
|
|
731
|
+
on(eventName: string | symbol, listener: (...args: any[]) => void): this;
|
|
732
|
+
once<E extends keyof ServerEventMap>(eventName: E, listener: (...args: ServerEventMap[E]) => void): this;
|
|
733
|
+
once(eventName: string | symbol, listener: (...args: any[]) => void): this;
|
|
734
|
+
prependListener<E extends keyof ServerEventMap>(
|
|
735
|
+
eventName: E,
|
|
736
|
+
listener: (...args: ServerEventMap[E]) => void,
|
|
771
737
|
): this;
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
callback: (err: Error | null, sessionData: Buffer | null) => void,
|
|
777
|
-
) => void,
|
|
738
|
+
prependListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
|
|
739
|
+
prependOnceListener<E extends keyof ServerEventMap>(
|
|
740
|
+
eventName: E,
|
|
741
|
+
listener: (...args: ServerEventMap[E]) => void,
|
|
778
742
|
): this;
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
743
|
+
prependOnceListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
|
|
744
|
+
rawListeners<E extends keyof ServerEventMap>(eventName: E): ((...args: ServerEventMap[E]) => void)[];
|
|
745
|
+
rawListeners(eventName: string | symbol): ((...args: any[]) => void)[];
|
|
746
|
+
// eslint-disable-next-line @definitelytyped/no-unnecessary-generics
|
|
747
|
+
removeAllListeners<E extends keyof ServerEventMap>(eventName?: E): this;
|
|
748
|
+
removeAllListeners(eventName?: string | symbol): this;
|
|
749
|
+
removeListener<E extends keyof ServerEventMap>(
|
|
750
|
+
eventName: E,
|
|
751
|
+
listener: (...args: ServerEventMap[E]) => void,
|
|
786
752
|
): this;
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
listener: (
|
|
790
|
-
certificate: NonSharedBuffer,
|
|
791
|
-
issuer: NonSharedBuffer,
|
|
792
|
-
callback: (err: Error | null, resp: Buffer | null) => void,
|
|
793
|
-
) => void,
|
|
794
|
-
): this;
|
|
795
|
-
prependListener(
|
|
796
|
-
event: "resumeSession",
|
|
797
|
-
listener: (
|
|
798
|
-
sessionId: NonSharedBuffer,
|
|
799
|
-
callback: (err: Error | null, sessionData: Buffer | null) => void,
|
|
800
|
-
) => void,
|
|
801
|
-
): this;
|
|
802
|
-
prependListener(event: "secureConnection", listener: (tlsSocket: TLSSocket) => void): this;
|
|
803
|
-
prependListener(event: "keylog", listener: (line: NonSharedBuffer, tlsSocket: TLSSocket) => void): this;
|
|
804
|
-
prependOnceListener(event: string, listener: (...args: any[]) => void): this;
|
|
805
|
-
prependOnceListener(event: "tlsClientError", listener: (err: Error, tlsSocket: TLSSocket) => void): this;
|
|
806
|
-
prependOnceListener(
|
|
807
|
-
event: "newSession",
|
|
808
|
-
listener: (sessionId: NonSharedBuffer, sessionData: NonSharedBuffer, callback: () => void) => void,
|
|
809
|
-
): this;
|
|
810
|
-
prependOnceListener(
|
|
811
|
-
event: "OCSPRequest",
|
|
812
|
-
listener: (
|
|
813
|
-
certificate: NonSharedBuffer,
|
|
814
|
-
issuer: NonSharedBuffer,
|
|
815
|
-
callback: (err: Error | null, resp: Buffer | null) => void,
|
|
816
|
-
) => void,
|
|
817
|
-
): this;
|
|
818
|
-
prependOnceListener(
|
|
819
|
-
event: "resumeSession",
|
|
820
|
-
listener: (
|
|
821
|
-
sessionId: NonSharedBuffer,
|
|
822
|
-
callback: (err: Error | null, sessionData: Buffer | null) => void,
|
|
823
|
-
) => void,
|
|
824
|
-
): this;
|
|
825
|
-
prependOnceListener(event: "secureConnection", listener: (tlsSocket: TLSSocket) => void): this;
|
|
826
|
-
prependOnceListener(event: "keylog", listener: (line: NonSharedBuffer, tlsSocket: TLSSocket) => void): this;
|
|
827
|
-
}
|
|
828
|
-
/**
|
|
829
|
-
* @deprecated since v0.11.3 Use `tls.TLSSocket` instead.
|
|
830
|
-
*/
|
|
831
|
-
interface SecurePair {
|
|
832
|
-
encrypted: TLSSocket;
|
|
833
|
-
cleartext: TLSSocket;
|
|
753
|
+
removeListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
|
|
754
|
+
// #endregion
|
|
834
755
|
}
|
|
835
756
|
type SecureVersion = "TLSv1.3" | "TLSv1.2" | "TLSv1.1" | "TLSv1";
|
|
757
|
+
type CertificateCompressionAlgorithm = "zlib" | "brotli" | "zstd";
|
|
836
758
|
interface SecureContextOptions {
|
|
837
759
|
/**
|
|
838
760
|
* If set, this will be called when a client opens a connection using the ALPN extension.
|
|
@@ -869,6 +791,15 @@ declare module "tls" {
|
|
|
869
791
|
* able to validate the certificate, and the handshake will fail.
|
|
870
792
|
*/
|
|
871
793
|
cert?: string | Buffer | Array<string | Buffer> | undefined;
|
|
794
|
+
/**
|
|
795
|
+
* An array of supported certificate
|
|
796
|
+
* compression algorithm names, in preference order. Supported values are
|
|
797
|
+
* `'zlib'`, `'brotli'`, and `'zstd'`. When set, enables TLS certificate
|
|
798
|
+
* compression ([RFC 8879](https://tools.ietf.org/html/rfc8879)) which compresses certificates during the TLS
|
|
799
|
+
* handshake, reducing handshake size. Only effective with TLSv1.3.
|
|
800
|
+
* **Default:** `[]` (disabled).
|
|
801
|
+
*/
|
|
802
|
+
certificateCompression?: readonly CertificateCompressionAlgorithm[] | undefined;
|
|
872
803
|
/**
|
|
873
804
|
* Colon-separated list of supported signature algorithms. The list
|
|
874
805
|
* can contain digest algorithms (SHA256, MD5 etc.), public key
|
|
@@ -899,13 +830,16 @@ declare module "tls" {
|
|
|
899
830
|
*/
|
|
900
831
|
dhparam?: string | Buffer | undefined;
|
|
901
832
|
/**
|
|
902
|
-
* A string describing a named curve
|
|
903
|
-
*
|
|
904
|
-
*
|
|
905
|
-
*
|
|
906
|
-
*
|
|
907
|
-
*
|
|
908
|
-
*
|
|
833
|
+
* A string describing a named curve, TLS group, or
|
|
834
|
+
* colon-separated list of named curves or TLS groups to use for key agreement,
|
|
835
|
+
* for example `P-521:P-384:P-256`, `X25519`, or `X25519MLKEM768`. The
|
|
836
|
+
* historical name of this option refers to ECDH key agreement in TLSv1.2 and
|
|
837
|
+
* below. In TLSv1.3, this option configures the TLS Supported Groups and
|
|
838
|
+
* key share groups offered or accepted by the TLS stack. Set to `auto` to
|
|
839
|
+
* select the group automatically. Use `crypto.getCurves()` to obtain a
|
|
840
|
+
* list of available elliptic curve names. For TLS group names, use
|
|
841
|
+
* `openssl list -tls-groups` or consult the [IANA TLS Supported Groups
|
|
842
|
+
* registry](https://www.iana.org/assignments/tls-parameters/tls-parameters.xhtml#tls-parameters-8).
|
|
909
843
|
*/
|
|
910
844
|
ecdhCurve?: string | undefined;
|
|
911
845
|
/**
|
|
@@ -1130,45 +1064,6 @@ declare module "tls" {
|
|
|
1130
1064
|
secureConnectListener?: () => void,
|
|
1131
1065
|
): TLSSocket;
|
|
1132
1066
|
function connect(port: number, options?: ConnectionOptions, secureConnectListener?: () => void): TLSSocket;
|
|
1133
|
-
/**
|
|
1134
|
-
* Creates a new secure pair object with two streams, one of which reads and writes
|
|
1135
|
-
* the encrypted data and the other of which reads and writes the cleartext data.
|
|
1136
|
-
* Generally, the encrypted stream is piped to/from an incoming encrypted data
|
|
1137
|
-
* stream and the cleartext one is used as a replacement for the initial encrypted
|
|
1138
|
-
* stream.
|
|
1139
|
-
*
|
|
1140
|
-
* `tls.createSecurePair()` returns a `tls.SecurePair` object with `cleartext` and `encrypted` stream properties.
|
|
1141
|
-
*
|
|
1142
|
-
* Using `cleartext` has the same API as {@link TLSSocket}.
|
|
1143
|
-
*
|
|
1144
|
-
* The `tls.createSecurePair()` method is now deprecated in favor of`tls.TLSSocket()`. For example, the code:
|
|
1145
|
-
*
|
|
1146
|
-
* ```js
|
|
1147
|
-
* pair = tls.createSecurePair(// ... );
|
|
1148
|
-
* pair.encrypted.pipe(socket);
|
|
1149
|
-
* socket.pipe(pair.encrypted);
|
|
1150
|
-
* ```
|
|
1151
|
-
*
|
|
1152
|
-
* can be replaced by:
|
|
1153
|
-
*
|
|
1154
|
-
* ```js
|
|
1155
|
-
* secureSocket = tls.TLSSocket(socket, options);
|
|
1156
|
-
* ```
|
|
1157
|
-
*
|
|
1158
|
-
* where `secureSocket` has the same API as `pair.cleartext`.
|
|
1159
|
-
* @since v0.3.2
|
|
1160
|
-
* @deprecated Since v0.11.3 - Use {@link TLSSocket} instead.
|
|
1161
|
-
* @param context A secure context object as returned by `tls.createSecureContext()`
|
|
1162
|
-
* @param isServer `true` to specify that this TLS connection should be opened as a server.
|
|
1163
|
-
* @param requestCert `true` to specify whether a server should request a certificate from a connecting client. Only applies when `isServer` is `true`.
|
|
1164
|
-
* @param rejectUnauthorized If not `false` a server automatically reject clients with invalid certificates. Only applies when `isServer` is `true`.
|
|
1165
|
-
*/
|
|
1166
|
-
function createSecurePair(
|
|
1167
|
-
context?: SecureContext,
|
|
1168
|
-
isServer?: boolean,
|
|
1169
|
-
requestCert?: boolean,
|
|
1170
|
-
rejectUnauthorized?: boolean,
|
|
1171
|
-
): SecurePair;
|
|
1172
1067
|
/**
|
|
1173
1068
|
* `{@link createServer}` sets the default value of the `honorCipherOrder` option
|
|
1174
1069
|
* to `true`, other APIs that create secure contexts leave it unset.
|
|
@@ -1225,7 +1120,7 @@ declare module "tls" {
|
|
|
1225
1120
|
* the `ciphers` option of `{@link createSecureContext}`.
|
|
1226
1121
|
*
|
|
1227
1122
|
* Not all supported ciphers are enabled by default. See
|
|
1228
|
-
* [Modifying the default TLS cipher suite](https://nodejs.org/docs/latest-
|
|
1123
|
+
* [Modifying the default TLS cipher suite](https://nodejs.org/docs/latest-v26.x/api/tls.html#modifying-the-default-tls-cipher-suite).
|
|
1229
1124
|
*
|
|
1230
1125
|
* Cipher names that start with `'tls_'` are for TLSv1.3, all the others are for
|
|
1231
1126
|
* TLSv1.2 and below.
|
|
@@ -1236,6 +1131,20 @@ declare module "tls" {
|
|
|
1236
1131
|
* @since v0.10.2
|
|
1237
1132
|
*/
|
|
1238
1133
|
function getCiphers(): string[];
|
|
1134
|
+
/**
|
|
1135
|
+
* Returns an array with the names of the RFC 8879 certificate compression
|
|
1136
|
+
* algorithms supported by the current OpenSSL build, suitable for use in the
|
|
1137
|
+
* `certificateCompression` option of `tls.createSecureContext()`. Possible
|
|
1138
|
+
* values include `'zlib'`, `'brotli'`, and `'zstd'`.
|
|
1139
|
+
*
|
|
1140
|
+
* The array is empty when certificate compression is unavailable.
|
|
1141
|
+
*
|
|
1142
|
+
* ```js
|
|
1143
|
+
* console.log(tls.getCertificateCompressionAlgorithms()); // ['zlib', 'brotli', 'zstd']
|
|
1144
|
+
* ```
|
|
1145
|
+
* @since v26.4.0
|
|
1146
|
+
*/
|
|
1147
|
+
function getCertificateCompressionAlgorithms(): CertificateCompressionAlgorithm[];
|
|
1239
1148
|
/**
|
|
1240
1149
|
* Sets the default CA certificates used by Node.js TLS clients. If the provided
|
|
1241
1150
|
* certificates are parsed successfully, they will become the default CA
|
|
@@ -1264,14 +1173,14 @@ declare module "tls" {
|
|
|
1264
1173
|
* const additionalCerts = ['-----BEGIN CERTIFICATE-----\n...'];
|
|
1265
1174
|
* tls.setDefaultCACertificates([...currentCerts, ...additionalCerts]);
|
|
1266
1175
|
* ```
|
|
1267
|
-
* @since
|
|
1176
|
+
* @since v24.5.0
|
|
1268
1177
|
* @param certs An array of CA certificates in PEM format.
|
|
1269
1178
|
*/
|
|
1270
1179
|
function setDefaultCACertificates(certs: ReadonlyArray<string | NodeJS.ArrayBufferView>): void;
|
|
1271
1180
|
/**
|
|
1272
|
-
* The default curve
|
|
1273
|
-
* The default value is `'auto'`. See `
|
|
1274
|
-
* information.
|
|
1181
|
+
* The default named curve or TLS group list to use for key agreement in a TLS
|
|
1182
|
+
* server. The default value is `'auto'`. See `tls.createSecureContext()` for
|
|
1183
|
+
* further information.
|
|
1275
1184
|
* @since v0.11.13
|
|
1276
1185
|
*/
|
|
1277
1186
|
let DEFAULT_ECDH_CURVE: string;
|
|
@@ -1301,7 +1210,7 @@ declare module "tls" {
|
|
|
1301
1210
|
* It can be assigned any of the supported OpenSSL ciphers.
|
|
1302
1211
|
* Defaults to the content of `crypto.constants.defaultCoreCipherList`, unless
|
|
1303
1212
|
* changed using CLI options using `--tls-default-ciphers`.
|
|
1304
|
-
* @since
|
|
1213
|
+
* @since v19.8.0
|
|
1305
1214
|
*/
|
|
1306
1215
|
let DEFAULT_CIPHERS: string;
|
|
1307
1216
|
/**
|
|
@@ -1314,6 +1223,6 @@ declare module "tls" {
|
|
|
1314
1223
|
*/
|
|
1315
1224
|
const rootCertificates: readonly string[];
|
|
1316
1225
|
}
|
|
1317
|
-
declare module "
|
|
1318
|
-
export * from "tls";
|
|
1226
|
+
declare module "tls" {
|
|
1227
|
+
export * from "node:tls";
|
|
1319
1228
|
}
|
|
@@ -1,98 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* The `node:trace_events` module provides a mechanism to centralize tracing information
|
|
3
|
-
* generated by V8, Node.js core, and userspace code.
|
|
4
|
-
*
|
|
5
|
-
* Tracing can be enabled with the `--trace-event-categories` command-line flag
|
|
6
|
-
* or by using the `trace_events` module. The `--trace-event-categories` flag
|
|
7
|
-
* accepts a list of comma-separated category names.
|
|
8
|
-
*
|
|
9
|
-
* The available categories are:
|
|
10
|
-
*
|
|
11
|
-
* * `node`: An empty placeholder.
|
|
12
|
-
* * `node.async_hooks`: Enables capture of detailed [`async_hooks`](https://nodejs.org/docs/latest-v22.x/api/async_hooks.html) trace data.
|
|
13
|
-
* The [`async_hooks`](https://nodejs.org/docs/latest-v22.x/api/async_hooks.html) events have a unique `asyncId` and a special `triggerId` `triggerAsyncId` property.
|
|
14
|
-
* * `node.bootstrap`: Enables capture of Node.js bootstrap milestones.
|
|
15
|
-
* * `node.console`: Enables capture of `console.time()` and `console.count()` output.
|
|
16
|
-
* * `node.threadpoolwork.sync`: Enables capture of trace data for threadpool synchronous operations, such as `blob`, `zlib`, `crypto` and `node_api`.
|
|
17
|
-
* * `node.threadpoolwork.async`: Enables capture of trace data for threadpool asynchronous operations, such as `blob`, `zlib`, `crypto` and `node_api`.
|
|
18
|
-
* * `node.dns.native`: Enables capture of trace data for DNS queries.
|
|
19
|
-
* * `node.net.native`: Enables capture of trace data for network.
|
|
20
|
-
* * `node.environment`: Enables capture of Node.js Environment milestones.
|
|
21
|
-
* * `node.fs.sync`: Enables capture of trace data for file system sync methods.
|
|
22
|
-
* * `node.fs_dir.sync`: Enables capture of trace data for file system sync directory methods.
|
|
23
|
-
* * `node.fs.async`: Enables capture of trace data for file system async methods.
|
|
24
|
-
* * `node.fs_dir.async`: Enables capture of trace data for file system async directory methods.
|
|
25
|
-
* * `node.perf`: Enables capture of [Performance API](https://nodejs.org/docs/latest-v22.x/api/perf_hooks.html) measurements.
|
|
26
|
-
* * `node.perf.usertiming`: Enables capture of only Performance API User Timing
|
|
27
|
-
* measures and marks.
|
|
28
|
-
* * `node.perf.timerify`: Enables capture of only Performance API timerify
|
|
29
|
-
* measurements.
|
|
30
|
-
* * `node.promises.rejections`: Enables capture of trace data tracking the number
|
|
31
|
-
* of unhandled Promise rejections and handled-after-rejections.
|
|
32
|
-
* * `node.vm.script`: Enables capture of trace data for the `node:vm` module's `runInNewContext()`, `runInContext()`, and `runInThisContext()` methods.
|
|
33
|
-
* * `v8`: The [V8](https://nodejs.org/docs/latest-v22.x/api/v8.html) events are GC, compiling, and execution related.
|
|
34
|
-
* * `node.http`: Enables capture of trace data for http request / response.
|
|
35
|
-
*
|
|
36
|
-
* By default the `node`, `node.async_hooks`, and `v8` categories are enabled.
|
|
37
|
-
*
|
|
38
|
-
* ```bash
|
|
39
|
-
* node --trace-event-categories v8,node,node.async_hooks server.js
|
|
40
|
-
* ```
|
|
41
|
-
*
|
|
42
|
-
* Prior versions of Node.js required the use of the `--trace-events-enabled` flag to enable trace events. This requirement has been removed. However, the `--trace-events-enabled` flag _may_ still be
|
|
43
|
-
* used and will enable the `node`, `node.async_hooks`, and `v8` trace event categories by default.
|
|
44
|
-
*
|
|
45
|
-
* ```bash
|
|
46
|
-
* node --trace-events-enabled
|
|
47
|
-
*
|
|
48
|
-
* # is equivalent to
|
|
49
|
-
*
|
|
50
|
-
* node --trace-event-categories v8,node,node.async_hooks
|
|
51
|
-
* ```
|
|
52
|
-
*
|
|
53
|
-
* Alternatively, trace events may be enabled using the `node:trace_events` module:
|
|
54
|
-
*
|
|
55
|
-
* ```js
|
|
56
|
-
* import trace_events from 'node:trace_events';
|
|
57
|
-
* const tracing = trace_events.createTracing({ categories: ['node.perf'] });
|
|
58
|
-
* tracing.enable(); // Enable trace event capture for the 'node.perf' category
|
|
59
|
-
*
|
|
60
|
-
* // do work
|
|
61
|
-
*
|
|
62
|
-
* tracing.disable(); // Disable trace event capture for the 'node.perf' category
|
|
63
|
-
* ```
|
|
64
|
-
*
|
|
65
|
-
* Running Node.js with tracing enabled will produce log files that can be opened
|
|
66
|
-
* in the [`chrome://tracing`](https://www.chromium.org/developers/how-tos/trace-event-profiling-tool) tab of Chrome.
|
|
67
|
-
*
|
|
68
|
-
* The logging file is by default called `node_trace.${rotation}.log`, where `${rotation}` is an incrementing log-rotation id. The filepath pattern can
|
|
69
|
-
* be specified with `--trace-event-file-pattern` that accepts a template
|
|
70
|
-
* string that supports `${rotation}` and `${pid}`:
|
|
71
|
-
*
|
|
72
|
-
* ```bash
|
|
73
|
-
* node --trace-event-categories v8 --trace-event-file-pattern '${pid}-${rotation}.log' server.js
|
|
74
|
-
* ```
|
|
75
|
-
*
|
|
76
|
-
* To guarantee that the log file is properly generated after signal events like `SIGINT`, `SIGTERM`, or `SIGBREAK`, make sure to have the appropriate handlers
|
|
77
|
-
* in your code, such as:
|
|
78
|
-
*
|
|
79
|
-
* ```js
|
|
80
|
-
* process.on('SIGINT', function onSigint() {
|
|
81
|
-
* console.info('Received SIGINT.');
|
|
82
|
-
* process.exit(130); // Or applicable exit code depending on OS and signal
|
|
83
|
-
* });
|
|
84
|
-
* ```
|
|
85
|
-
*
|
|
86
|
-
* The tracing system uses the same time source
|
|
87
|
-
* as the one used by `process.hrtime()`.
|
|
88
|
-
* However the trace-event timestamps are expressed in microseconds,
|
|
89
|
-
* unlike `process.hrtime()` which returns nanoseconds.
|
|
90
|
-
*
|
|
91
|
-
* The features from this module are not available in [`Worker`](https://nodejs.org/docs/latest-v22.x/api/worker_threads.html#class-worker) threads.
|
|
92
|
-
* @experimental
|
|
93
|
-
* @see [source](https://github.com/nodejs/node/blob/v22.x/lib/trace_events.js)
|
|
94
|
-
*/
|
|
95
|
-
declare module "trace_events" {
|
|
1
|
+
declare module "node:trace_events" {
|
|
96
2
|
/**
|
|
97
3
|
* The `Tracing` object is used to enable or disable tracing for sets of
|
|
98
4
|
* categories. Instances are created using the
|
|
@@ -192,6 +98,6 @@ declare module "trace_events" {
|
|
|
192
98
|
*/
|
|
193
99
|
function getEnabledCategories(): string | undefined;
|
|
194
100
|
}
|
|
195
|
-
declare module "
|
|
196
|
-
export * from "trace_events";
|
|
101
|
+
declare module "trace_events" {
|
|
102
|
+
export * from "node:trace_events";
|
|
197
103
|
}
|